/* ==========================================================
   MANOSALVA — PRODUCT CARD
========================================================== */

.ms-product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    flex: 0 0 auto;

    min-width: 0;
    height: auto;

    overflow: hidden;

    scroll-snap-align: start;

    border:
        1px solid
        rgba(13, 50, 91, 0.09);

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 9px 25px
        rgba(15, 48, 84, 0.07);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}


.ms-product-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(13, 70, 130, 0.16);

    box-shadow:
        0 15px 34px
        rgba(15, 48, 84, 0.11);
}


/* ==========================================================
   IMAGEN
========================================================== */

.ms-product-card__media {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f9fbfd 0%,
            #f1f6fa 100%
        );

    border-bottom:
        1px solid
        rgba(13, 50, 91, 0.06);
}


.ms-product-card__image-link {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 18px;

    text-decoration: none;
}


.ms-product-card__image {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain;

    transition:
        transform 0.28s ease;
}


.ms-product-card:hover
.ms-product-card__image {
    transform: scale(1.025);
}


/* ==========================================================
   BADGE OFERTA
========================================================== */

.ms-product-card__badge {
    position: absolute;

    z-index: 4;

    top: 13px;
    left: 13px;

    padding:
        8px
        15px;

    border-radius: 999px;

    background: #ed1c2e;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: 0.02em;

    box-shadow:
        0 7px 18px
        rgba(190, 14, 35, 0.22);
}


/* ==========================================================
   CINTA — INSTALACIÓN INCLUIDA
========================================================== */

.ms-product-card__installation-ribbon {
    position: absolute;

    z-index: 4;

    right: -70px;
    bottom: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 260px;

    box-sizing: border-box;

    padding:
        7px
        24px;

    transform:
        rotate(-42deg);

    transform-origin: center;

    background: #ed1c2e;

    color: #ffffff;

    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.1;

    letter-spacing: 0.01em;

    text-align: center;
    white-space: nowrap;

    box-shadow:
        0 6px 16px
        rgba(190, 14, 35, 0.24);

    pointer-events: none;
}


/* ==========================================================
   MARCA — SUPERPUESTA EN IMAGEN
========================================================== */

.ms-product-card__brand {
    position: absolute;

    z-index: 3;

    left: 14px;
    bottom: 14px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    max-width:
        calc(100% - 28px);

    min-height: 34px;

    padding:
        6px
        10px;

    border:
        1px solid
        rgba(13, 50, 91, 0.07);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.94);

    box-shadow:
        0 8px 20px
        rgba(15, 48, 84, 0.10);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);

    pointer-events: none;
}


.ms-product-card__brand-logo {
    display: block;

    width: auto;
    max-width: 100px;

    height: auto;
    max-height: 26px;

    object-fit: contain;
    object-position: left center;
}


.ms-product-card__brand-name {
    font-size: 12px;
    font-weight: 800;
    line-height: 1;

    color: #526174;
}


/* ==========================================================
   CUERPO
========================================================== */

.ms-product-card__body {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-width: 0;

    padding:
        17px
        18px
        19px;
}


/* ==========================================================
   TÍTULO
========================================================== */

.ms-product-card__title {
    margin:
        0
        0
        10px;

    font-size:
        clamp(16px, 1.15vw, 18px);

    font-weight: 800;
    line-height: 1.2;

    color: #10234b;
}


.ms-product-card
.ms-product-card__title a,
.ms-product-card
.ms-product-card__title a:visited {
    color: #10234b !important;

    text-decoration: none;
}


.ms-product-card
.ms-product-card__title a:hover,
.ms-product-card
.ms-product-card__title a:focus-visible {
    color: #07539a !important;
}


/* ==========================================================
   CHIPS / ETIQUETAS
========================================================== */

.ms-product-card__chips {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 12px;
}


.ms-product-card__chip {
    display: inline-flex;

    align-items: center;

    min-height: 24px;

    padding:
        5px
        9px;

    border-radius: 6px;

    background: #edf3f9;

    color: #5c6b7d;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}


/* ==========================================================
   DESCRIPCIÓN
========================================================== */

.ms-product-card__description {
    display: -webkit-box;

    overflow: hidden;

    margin-bottom: 16px;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    font-size: 12.5px;
    line-height: 1.45;

    color: #617084;
}


/* ==========================================================
   FOOTER
========================================================== */

.ms-product-card__footer {
    display: flex;

    flex-direction: column;

    gap: 13px;

    margin-top: auto;
}


/* ==========================================================
   PRECIO
========================================================== */

.ms-product-card__price {
    display: flex;

    align-items: baseline;
    flex-wrap: wrap;

    gap: 7px;

    min-height: 28px;

    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;

    color: #10234b;
}


.ms-product-card__price del {
    opacity: 1;

    font-size: 12px;
    font-weight: 600;

    color: #8793a1;
}


.ms-product-card__price ins {
    background: transparent;

    color: #d9132b;

    font-size: 21px;
    font-weight: 800;

    text-decoration: none;
}


.ms-product-card__price-consult {
    font-size: 15px;
    font-weight: 700;

    color: #526174;
}


/* ==========================================================
   BOTÓN
========================================================== */

.ms-product-card__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;
    min-height: 42px;

    padding:
        10px
        18px;

    border-radius: 999px;

    background: #10234b;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}


.ms-product-card__button::after {
    content: "→";

    font-size: 16px;
    line-height: 1;
}


.ms-product-card
a.ms-product-card__button,
.ms-product-card
a.ms-product-card__button:visited {
    background: #10234b;

    color: #ffffff !important;

    text-decoration: none;
}


.ms-product-card
a.ms-product-card__button:hover,
.ms-product-card
a.ms-product-card__button:focus-visible {
    transform: translateY(-1px);

    background: #ed1c2e;

    color: #ffffff !important;

    box-shadow:
        0 9px 22px
        rgba(196, 16, 38, 0.18);
}


/* ==========================================================
   ACCESIBILIDAD — FOCO
========================================================== */

.ms-product-card__title a:focus-visible,
.ms-product-card__button:focus-visible {
    outline:
        2px solid
        rgba(7, 83, 154, 0.55);

    outline-offset: 3px;
}


/* ==========================================================
   MÓVIL
========================================================== */

@media (max-width: 575.98px) {

    .ms-product-card {
        border-radius: 15px;
    }


    .ms-product-card__media {
        aspect-ratio: 16 / 11;
    }


    .ms-product-card__image-link {
        padding: 16px;
    }


    .ms-product-card__brand {
        left: 12px;
        bottom: 12px;

        max-width:
            calc(100% - 24px);

        min-height: 31px;

        padding:
            5px
            9px;

        border-radius: 9px;
    }


    .ms-product-card__brand-logo {
        max-width: 88px;
        max-height: 23px;
    }


    .ms-product-card__body {
        padding:
            17px
            16px
            18px;
    }


    .ms-product-card__title {
        font-size: 16px;
    }

}