/*
 * YouParfum Unified Design System
 * Source of truth: homepage tokens and component language.
 */

:root {
    --yp-black: #111111;
    --yp-onyx: #0a0a0a;
    --yp-ivory: #faf8f5;
    --yp-sand: #f4f0e7;
    --yp-white: #ffffff;
    --yp-gold: #c7b69c;
    --yp-gold-deep: #b59d6a;
    --yp-ink: #222222;
    --yp-muted: #666666;
    --yp-border: #e5dfd2;
    --yp-border-strong: #c7b69c;
    --yp-shadow: 0 4px 18px rgba(32, 28, 22, 0.04);
    --yp-shadow-hover: 0 14px 30px rgba(32, 28, 22, 0.08);
    --yp-radius: 14px;
    --yp-pill: 9999px;
    --yp-font-sans: "AvantGardeGothic", "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--yp-font-sans) !important;
}

body {
    background: var(--yp-ivory) !important;
    color: var(--yp-ink);
}

body,
.site-content,
.main-page-wrapper,
.page-wrapper,
.woocommerce-page .main-page-wrapper {
    background-color: var(--yp-ivory) !important;
}

.site-content,
.main-page-wrapper {
    color: var(--yp-ink);
}

:where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .title,
    .entry-title,
    .page-title
):not(.fml-slide-title):not(.yp-nl-title):not(.fml-editorial-title):not([class*="hero"]):not([class*="slide"]):not([class*="overlay"]) {
    color: var(--yp-black);
    font-family: var(--yp-font-sans) !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    line-height: 1.25 !important;
    text-transform: uppercase;
}

h1,
.entry-title,
.page-title {
    font-size: clamp(24px, 2.4vw, 32px) !important;
}

h2 {
    font-size: clamp(20px, 2vw, 28px) !important;
}

h3 {
    font-size: clamp(16px, 1.6vw, 21px) !important;
}

p,
li,
label,
address,
td,
th,
input,
select,
textarea {
    color: var(--yp-muted);
    line-height: 1.6;
}

a {
    color: var(--yp-black);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--yp-gold-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--yp-gold-deep) !important;
    outline-offset: 3px !important;
}

/* Homepage-style buttons across theme, WooCommerce and custom templates. */
:is(
    button:not(.yp-topbar-nav-btn):not(.fml-slider-bullet):not(.yp-novita-arrow-btn):not(.close-side-widget):not(.fml-drawer-close):not(.fml-hamburger-btn):not(.fml-pill-search-clear):not(.plus):not(.minus):not(.qty-btn):not(.yp-sephora-acc-header):not(.yp-sephora-see-more-btn):not(.yp-carousel-arrow):not(.yp-mobile-filter-btn):not(.yp-drawer-close-btn):not(.yp-drawer-apply-btn):not(.open-filters):not(.yp-category-pill):not(.yp-auth-tab-btn):not(.yp-pwd-toggle):not(.yp-switch-inline-btn):not(.show-password-input):not(.yp-trust-pill):not(.yp-brand-quick-filter),
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    .button:not(.yp-category-pill):not(.yp-mobile-filter-btn):not(.yp-auth-tab-btn):not(.yp-pwd-toggle):not(.yp-switch-inline-btn):not(.show-password-input),
    .btn:not(.yp-category-pill):not(.yp-mobile-filter-btn):not(.yp-auth-tab-btn):not(.yp-pwd-toggle):not(.yp-switch-inline-btn):not(.show-password-input),
    .wp-element-button,
    .yp-btn-primary-pill,
    .yp-btn-secondary-pill,
    .yp-empty-cart-btn,
    .yp-ed-buy-btn,
    .yp-novita-btn,
    .fml-slide-cta-btn,
    #place_order
) {
    align-items: center !important;
    border: 1px solid var(--yp-black) !important;
    border-radius: var(--yp-pill) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    font-family: var(--yp-font-sans) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    justify-content: center !important;
    letter-spacing: 1.5px !important;
    line-height: 1.3 !important;
    min-height: 44px !important;
    padding: 0 28px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}

:is(
    button:not(.yp-topbar-nav-btn):not(.fml-slider-bullet):not(.yp-novita-arrow-btn):not(.close-side-widget):not(.fml-drawer-close):not(.fml-hamburger-btn):not(.fml-pill-search-clear):not(.plus):not(.minus):not(.qty-btn):not(.yp-sephora-acc-header):not(.yp-sephora-see-more-btn):not(.yp-carousel-arrow):not(.yp-mobile-filter-btn):not(.yp-drawer-close-btn):not(.yp-drawer-apply-btn):not(.open-filters):not(.yp-category-pill):not(.yp-auth-tab-btn):not(.yp-pwd-toggle):not(.yp-switch-inline-btn):not(.show-password-input):not(.yp-trust-pill):not(.yp-brand-quick-filter),
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    .button:not(.yp-category-pill):not(.yp-mobile-filter-btn):not(.yp-auth-tab-btn):not(.yp-pwd-toggle):not(.yp-switch-inline-btn):not(.show-password-input),
    .btn:not(.yp-category-pill):not(.yp-mobile-filter-btn):not(.yp-auth-tab-btn):not(.yp-pwd-toggle):not(.yp-switch-inline-btn):not(.show-password-input),
    .wp-element-button,
    .yp-btn-primary-pill,
    .yp-ed-buy-btn,
    .yp-novita-btn,
    .fml-slide-cta-btn,
    #place_order
) {
    background: var(--yp-black) !important;
    color: var(--yp-white) !important;
}

:is(
    button:not(.yp-topbar-nav-btn):not(.fml-slider-bullet):not(.yp-novita-arrow-btn):not(.close-side-widget):not(.fml-drawer-close):not(.fml-hamburger-btn):not(.fml-pill-search-clear):not(.plus):not(.minus):not(.qty-btn):not(.yp-sephora-acc-header):not(.yp-sephora-see-more-btn):not(.yp-carousel-arrow):not(.yp-mobile-filter-btn):not(.yp-drawer-close-btn):not(.yp-drawer-apply-btn):not(.open-filters):not(.yp-category-pill):not(.yp-auth-tab-btn):not(.yp-pwd-toggle):not(.yp-switch-inline-btn):not(.show-password-input):not(.yp-trust-pill):not(.yp-brand-quick-filter),
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    .button:not(.yp-category-pill):not(.yp-mobile-filter-btn):not(.yp-auth-tab-btn):not(.yp-pwd-toggle):not(.yp-switch-inline-btn):not(.show-password-input),
    .btn:not(.yp-category-pill):not(.yp-mobile-filter-btn):not(.yp-auth-tab-btn):not(.yp-pwd-toggle):not(.yp-switch-inline-btn):not(.show-password-input),
    .wp-element-button,
    .yp-btn-primary-pill,
    .yp-ed-buy-btn,
    .yp-novita-btn,
    .fml-slide-cta-btn,
    #place_order
):hover {
    background: var(--yp-white) !important;
    color: var(--yp-black) !important;
    transform: translateY(-2px);
    box-shadow: var(--yp-shadow-hover) !important;
}

.yp-btn-secondary-pill,
.yp-empty-cart-btn {
    background: var(--yp-white) !important;
    color: var(--yp-black) !important;
}

.yp-btn-secondary-pill:hover,
.yp-empty-cart-btn:hover {
    background: var(--yp-black) !important;
    color: var(--yp-white) !important;
}

/* Shared homepage surfaces for content cards and commerce components. */
:is(
    .yp-card,
    .yp-info-card,
    .yp-order-metric-card,
    .yp-order-table-card,
    .yp-auth-card,
    .yp-account-auth-col,
    .yp-empty-cart-card,
    .yp-product-card,
    .product-grid-item,
    .woocommerce-cart-form,
    .cart-collaterals .cart_totals,
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout-review-order,
    .woocommerce form.login,
    .woocommerce form.register,
    .woocommerce-account .woocommerce-MyAccount-content,
    .woocommerce-account .woocommerce-MyAccount-navigation
) {
    background: var(--yp-white) !important;
    border: 1px solid var(--yp-border) !important;
    border-radius: var(--yp-radius) !important;
    box-shadow: var(--yp-shadow) !important;
}

:is(
    .yp-card,
    .yp-info-card,
    .yp-order-metric-card,
    .yp-auth-card,
    .yp-product-card,
    .product-grid-item,
    .woocommerce-account .woocommerce-MyAccount-navigation
):hover {
    border-color: var(--yp-border-strong) !important;
    box-shadow: var(--yp-shadow-hover) !important;
}

.yp-order-hero-card,
.yp-order-concierge-strip,
.yp-shop-hero-wrapper,
.yp-account-hero-container,
.yp-boutique-hero,
.yp-page-hero {
    background: linear-gradient(180deg, var(--yp-ivory) 0%, var(--yp-sand) 50%, var(--yp-ivory) 100%) !important;
    border-color: var(--yp-border) !important;
    border-radius: var(--yp-radius) !important;
}

:is(
    .yp-kicker,
    .yp-shop-kicker,
    .yp-account-kicker,
    .yp-order-kicker,
    .yp-order-hero-card .yp-order-kicker,
    .yp-cookie-kicker
) {
    color: var(--yp-gold-deep) !important;
    font-family: var(--yp-font-sans) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2.2px !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
}

/* Inputs, selects and WooCommerce fields share one quiet-luxury treatment. */
:is(
    input[type="text"]:not(.yp-sephora-search-input):not(.yp-brand-quick-filter),
    input[type="email"]:not(#ypNlEmail),
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="search"]:not(#fmlSearchInput),
    select,
    textarea
) {
    background: var(--yp-white) !important;
    border: 1px solid var(--yp-border) !important;
    border-radius: 8px !important;
    color: var(--yp-ink) !important;
    min-height: 44px;
    padding: 11px 14px !important;
}

:is(
    input[type="text"]:not(.yp-sephora-search-input):not(.yp-brand-quick-filter),
    input[type="email"]:not(#ypNlEmail),
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="search"]:not(#fmlSearchInput),
    select,
    textarea
):focus {
    border-color: var(--yp-gold-deep) !important;
    box-shadow: 0 0 0 3px rgba(181, 157, 106, 0.16) !important;
}

table {
    border-color: var(--yp-border) !important;
}

th {
    color: var(--yp-black) !important;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* Keep the custom navigation and footer aligned with the same base. */
:is(
    #yp-navbar,
    .yp-navbar,
    .fml-navbar,
    .site-header,
    .yp-footer,
    .site-footer
) {
    font-family: var(--yp-font-sans) !important;
}

:is(
    .yp-navbar a,
    .fml-navbar a,
    .site-header a,
    .yp-footer a,
    .site-footer a
) {
    text-decoration: none;
}

@media (max-width: 768px) {
    h1,
    .entry-title,
    .page-title {
        font-size: clamp(22px, 7vw, 28px) !important;
        letter-spacing: 1.1px !important;
    }

    :is(
        button,
        input[type="button"],
        input[type="submit"],
        input[type="reset"],
        .button,
        .btn,
        .wp-element-button,
        .yp-btn-primary-pill,
        .yp-btn-secondary-pill,
        .yp-empty-cart-btn,
        .yp-ed-buy-btn,
        .yp-novita-btn,
        .fml-slide-cta-btn,
        #place_order
    ) {
        min-height: 46px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    :is(
        .yp-order-hero-card,
        .yp-order-concierge-strip,
        .yp-shop-hero-wrapper,
        .yp-account-hero-container,
        .yp-boutique-hero,
        .yp-page-hero
    ) {
        border-radius: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==============================================================
   ZERO BOTTOM NAVIGATION / TOOLBAR TOLERANCE (GLOBAL)
   ============================================================== */
.wd-toolbar,
.woodmart-toolbar,
.whb-sticked-toolbar,
.wd-sticky-toolbar,
.fml-mobile-bottom-bar,
#fmlMobileBottomBar,
.yp-bottom-nav,
.yp-mobile-bottom-nav,
.yp-map-store-preview,
#ypMapStorePreview,
div[class*="toolbar"][class*="bottom"],
div[class*="bottom-nav"],
div[class*="bottom_nav"],
nav[class*="bottom"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: fixed !important;
    bottom: -99999px !important;
    left: -99999px !important;
    z-index: -99999 !important;
    overflow: hidden !important;
}

body,
body.sticky-toolbar-on,
html body.sticky-toolbar-on {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ==============================================================
   FILTER SIDEBAR & DRAWER BUTTON RESET
   Prevent filter accordion headers and controls from becoming giant CTA buttons
   ============================================================== */
.yp-sephora-filters-sidebar button,
.yp-sephora-acc-header,
div.yp-sephora-acc-header,
button.yp-sephora-acc-header,
.yp-sephora-see-more-btn,
.yp-carousel-arrow,
.yp-mobile-filter-btn,
.yp-drawer-close-btn,
.yp-drawer-apply-btn,
.yp-drawer-reset-btn,
.yp-category-pill,
.yp-auth-tab-btn,
button.yp-auth-tab-btn,
div.yp-auth-tab-btn,
.yp-pwd-toggle,
button.yp-pwd-toggle,
span.yp-pwd-toggle,
.yp-switch-inline-btn,
button.yp-switch-inline-btn,
span.yp-switch-inline-btn,
.show-password-input,
button.show-password-input {
    min-height: unset !important;
    height: auto !important;
    letter-spacing: unset !important;
    text-align: unset !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #111111 !important;
}

.yp-sephora-acc-header span,
div.yp-sephora-acc-header span {
    color: #111111 !important;
    background: transparent !important;
}

.yp-sephora-search-input,
input[type="text"].yp-sephora-search-input {
    padding-left: 38px !important;
}


