/* =========================================================
   DADOS DE VITRINE DO V2 (cards e página de produto)
   Nome curto, subtítulo, selos, "Mais vendido", preço por unidade e
   cor escrita. Os dados vêm de config/storefront-lines.php
   (App\Support\Storefront\ProductMeta). Medidas do site de referência.
   ========================================================= */

/* Card ------------------------------------------------------------- */

body.storefront-body .catalog-card--lunar .catalog-card__media {
    position: relative;
}

body.storefront-body .catalog-card__badges {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 64px);
    pointer-events: none;
}

body.storefront-body .catalog-card__badges span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 2px 8px rgb(6 28 64 / 14%);
    color: #061c40;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

body.storefront-body .catalog-card__badges span.is-sterile {
    background: #061c40;
    color: #ffffff;
}

body.storefront-body .catalog-card__best {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 6px;
    background: #ff7a1a;
    box-shadow: 0 3px 10px rgb(255 122 26 / 35%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    pointer-events: none;
}

body.storefront-body .catalog-card__subtitle {
    margin: 2px 0 0;
    overflow: hidden;
    color: #5b6b82;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.storefront-body .catalog-card__option-group--single {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.storefront-body .catalog-card__colour-name {
    color: #5b6b82;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Nome em uma linha quando há subtítulo, e preço por unidade embaixo do preço */
body.storefront-body .catalog-card--lunar .catalog-card__content:has(.catalog-card__subtitle) .catalog-card__title {
    min-height: 0;
}

body.storefront-body .catalog-card--lunar .catalog-card__purchase:has(.catalog-card__unit) {
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 0;
}

body.storefront-body .catalog-card__unit {
    display: block;
    flex-basis: 100%;
    margin: 2px 0 0;
    color: #5b6b82;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.4;
}

body.storefront-body .catalog-card__unit b {
    color: #061c40;
    font-weight: 700;
}

/* Página de produto ------------------------------------------------- */

body.storefront-body .product-best {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

body.storefront-body .product-best span {
    padding: 5px 9px;
    border-radius: 6px;
    background: #ff7a1a;
    box-shadow: 0 3px 10px rgb(255 122 26 / 35%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.storefront-body .product-best a {
    color: #1a5db6;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

body.storefront-body .product-best a:hover {
    text-decoration: underline;
}

body.storefront-body .product-subtitle {
    margin: 6px 0 0;
    color: #5b6b82;
    font-size: 14.5px;
}

body.storefront-body .product-unit {
    margin: 4px 0 0;
    color: #5b6b82;
    font-size: 13px;
}

body.storefront-body .product-unit b {
    color: #061c40;
}

@media (max-width: 900px) {
    body.storefront-body .catalog-card__badges {
        left: 7px;
        bottom: 7px;
        gap: 4px;
        max-width: calc(100% - 44px);
    }

    body.storefront-body .catalog-card__badges span {
        padding: 3px 7px;
        font-size: 8.5px;
    }

    body.storefront-body .catalog-card__best {
        top: 7px;
        right: 7px;
        padding: 4px 7px;
        border-radius: 5px;
        font-size: 8.5px;
        letter-spacing: 0.04em;
    }

    body.storefront-body .catalog-card__subtitle {
        font-size: 11px;
    }

    body.storefront-body .catalog-card__colour-name {
        font-size: 10.5px;
    }

    body.storefront-body .catalog-card__unit {
        font-size: 10px;
    }

    body.storefront-body .product-best span {
        padding: 5px 9px;
        font-size: 9.5px;
    }

    body.storefront-body .product-best a {
        font-size: 12px;
    }
}
