/*
 * Beauty Balance design refresh (2026-09).
 *
 * Softer brand palette taken from the logo and campaign banners:
 * light desktop mega menu, pill product buttons, bookmark SALE ribbon and a
 * light price tag. Loaded last so it layers over Botiga, Max Mega Menu and
 * Merchant output without touching their settings.
 */

:root {
    --bb-ink: #2b2326;
    --bb-ink-soft: #5f5356;
    --bb-rose: #b85c6b;
    --bb-rose-dark: #9c4655;
    --bb-blush: #fbf1ef;
    --bb-line: #efe2df;
    --bb-sale: #e0245e;
    --bb-sale-light: #f25c84;
    --bb-radius-pill: 999px;
    --bb-shadow-soft: 0 6px 24px rgba(43, 35, 38, 0.08);
}

/* ------------------------------------------------------------------
 * Desktop mega menu
 * ------------------------------------------------------------------ */

body #mega-menu-wrap-primary {
    background: #ffffff;
}

body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    background: transparent;
    color: var(--bb-ink);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    position: relative;
    transition: color 0.2s ease;
}

body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link::before {
    background: var(--bb-rose);
    bottom: calc(50% - 14px);
    content: "";
    height: 2px;
    left: 12px;
    position: absolute;
    right: 12px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:focus,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-toggle-on > a.mega-menu-link,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link {
    background: transparent;
    color: var(--bb-rose);
}

body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover::before,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-toggle-on > a.mega-menu-link::before,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link::before {
    transform: scaleX(1);
}

body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link > span.mega-indicator::after {
    color: var(--bb-ink-soft);
}

body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu {
    background: #ffffff;
    border-top: 2px solid var(--bb-rose);
    box-shadow: 0 18px 40px rgba(43, 35, 38, 0.12);
}

body #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item ul.mega-sub-menu a.mega-menu-link {
    color: var(--bb-ink);
    transition: color 0.2s ease;
}

body #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item ul.mega-sub-menu a.mega-menu-link:hover,
body #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item ul.mega-sub-menu a.mega-menu-link:focus {
    background: transparent;
    color: var(--bb-rose);
}

/* ------------------------------------------------------------------
 * Product card buttons (classic loops, block grids, product collections)
 * ------------------------------------------------------------------ */

.woocommerce ul.products li.product a.button,
.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-components-product-button .wc-block-components-product-button__button,
.wc-block-components-product-button .wp-block-button__link {
    background: transparent !important;
    border: 1.5px solid var(--bb-ink) !important;
    border-radius: var(--bb-radius-pill) !important;
    box-shadow: none !important;
    color: var(--bb-ink) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    padding: 11px 22px !important;
    text-transform: uppercase;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product a.button:focus-visible,
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.wc-block-grid__product-add-to-cart .wp-block-button__link:focus-visible,
.wc-block-components-product-button .wc-block-components-product-button__button:hover,
.wc-block-components-product-button .wc-block-components-product-button__button:focus-visible,
.wc-block-components-product-button .wp-block-button__link:hover {
    background: var(--bb-rose) !important;
    border-color: var(--bb-rose) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.woocommerce ul.products li.product a.button.added,
.wc-block-grid__product-add-to-cart .wp-block-button__link.added {
    background: var(--bb-ink) !important;
    border-color: var(--bb-ink) !important;
    color: #ffffff !important;
}

/* Single product and sticky add-to-cart: filled primary action. */
.single-product .single_add_to_cart_button,
.single-product .merchant-sticky-add-to-cart-wrapper .button,
.single-product .botiga-sticky-add-to-cart .button {
    background: var(--bb-ink) !important;
    border: 1.5px solid var(--bb-ink) !important;
    border-radius: var(--bb-radius-pill) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.single-product .single_add_to_cart_button:hover,
.single-product .merchant-sticky-add-to-cart-wrapper .button:hover,
.single-product .botiga-sticky-add-to-cart .button:hover {
    background: var(--bb-rose) !important;
    border-color: var(--bb-rose) !important;
}

/* ------------------------------------------------------------------
 * SALE: bookmark ribbon hanging from the card's top-left corner
 * ------------------------------------------------------------------ */

.merchant-product-labels .merchant-product-labels__label-wrapper.position-top-left,
.wc-block-grid__product-onsale,
.wc-block-components-product-sale-badge {
    background: linear-gradient(180deg, var(--bb-sale-light) 0%, var(--bb-sale) 100%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 6px 14px rgba(224, 36, 94, 0.28) !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    height: auto !important;
    left: 14px !important;
    letter-spacing: 0.12em !important;
    line-height: 1 !important;
    min-height: 0 !important;
    padding: 10px 9px 20px !important;
    right: auto !important;
    text-align: center;
    text-transform: uppercase;
    top: 0 !important;
    width: auto !important;
    z-index: 3;
}

.merchant-product-labels .merchant-product-labels__label-wrapper.position-top-left .merchant-label {
    background: transparent !important;
    color: #ffffff !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    padding: 0 !important;
    width: auto !important;
}

.merchant-product-labels.merchant-product-labels__regular {
    left: 0 !important;
    top: 0 !important;
}

/* ------------------------------------------------------------------
 * Price tag on product images: light instead of black
 * ------------------------------------------------------------------ */

.woocommerce ul.products li.product .price,
.wc-block-grid__product-price {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid var(--bb-line) !important;
    border-radius: var(--bb-radius-pill) !important;
    box-shadow: var(--bb-shadow-soft) !important;
    color: var(--bb-ink) !important;
    font-weight: 700 !important;
}

.woocommerce ul.products li.product .price del,
.wc-block-grid__product-price del {
    color: #9b8f92 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.woocommerce ul.products li.product .price ins,
.wc-block-grid__product-price ins {
    color: var(--bb-sale) !important;
    text-decoration: none !important;
}

.wc-block-components-product-price ins,
.wc-block-components-product-price .wc-block-components-product-price__value.is-discounted {
    color: var(--bb-sale) !important;
}

/* Narrow cards (phones, 2 columns): keep the button label on one line. */
@media (max-width: 767px) {
    .woocommerce ul.products li.product a.button,
    .wc-block-grid__product-add-to-cart .wp-block-button__link,
    .wc-block-components-product-button .wc-block-components-product-button__button,
    .wc-block-components-product-button .wp-block-button__link {
        font-size: 11px !important;
        letter-spacing: 0.02em !important;
        padding: 11px 8px !important;
        white-space: nowrap;
    }

    .woocommerce ul.products li.product .price {
        margin-bottom: 8px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link::before,
    .woocommerce ul.products li.product a.button,
    .wc-block-grid__product-add-to-cart .wp-block-button__link {
        transition: none !important;
    }
}
