/* ============================================================================
   Unique Perfume Classic: cream light mode and brown dark mode, with the switch.
   Loads after style.css and only changes the palette, fonts and a few details.
   ============================================================================ */
:root {
    --cream: #f5efe6;
    --cream-light: #faf7f2;
    --cream-dark: #ebe3d5;
    --warm-white: #fffdf9;
    --gold: #c9a962;
    --gold-dark: #9a7a33;
    --gold-light: #dfc380;
    --ink: #2c2420;
    --ink-light: #4a3f38;
    --ink-strong: #211b16;
    --muted: #6f645a;
    --line: #e3d9c8;
    --line-light: #ebe3d5;
    --surface: #f8f4ed;
    --surface-raised: #ffffff;
    --top-bar-bg: #faf7f2;
    --top-bar-text: #4a3f38;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', 'Helvetica Neue', sans-serif;
    --tab-bar-bg: rgba(250, 247, 242, 0.94);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --cream: #211c16;
        --cream-light: #2a241d;
        --cream-dark: #1a1611;
        --warm-white: #1f1f1f;
        --gold: #c9a962;
        --gold-dark: #b08d3e;
        --gold-light: #dfc380;
        --ink: #f5efe6;
        --ink-light: #d9cfbf;
        --muted: #a89a8a;
        --line: #3a322a;
        --line-light: #2c2620;
        --surface: #1f1f1f;
        --surface-raised: #262320;
        --ink-strong: #faf7f2;
        --top-bar-bg: #1a1611;
        --top-bar-text: #c9a962;
        --tab-bar-bg: rgba(26, 22, 17, 0.95);
    }
}
[data-theme="dark"] {
    --cream: #211c16;
    --cream-light: #2a241d;
    --cream-dark: #1a1611;
    --warm-white: #1f1f1f;
    --gold: #c9a962;
    --gold-dark: #b08d3e;
    --gold-light: #dfc380;
    --ink: #f5efe6;
    --ink-light: #d9cfbf;
    --muted: #a89a8a;
    --line: #3a322a;
    --line-light: #2c2620;
    --surface: #1f1f1f;
    --surface-raised: #262320;
    --ink-strong: #faf7f2;
    --top-bar-bg: #1a1611;
    --top-bar-text: #c9a962;
    --tab-bar-bg: rgba(26, 22, 17, 0.95);
}

/* Logo: the clean mark with the name in real type, so nothing is cut off. */
.classic-logo-mark { width: 74px; height: 74px; margin: 0 auto; }
.classic-logo-name {
    display: block;
    margin-top: 8px;
    font-family: var(--font-serif);
    font-size: 26px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
}
[data-theme="dark"] .classic-logo-name { color: var(--gold); }
.footer-brand .classic-logo-mark { width: 84px; height: 84px; margin: 0; }

/* The serif is lighter than Playfair, so headings need a little more size. */
.home-section-title, .home-scroll-title, .shop-shell-title, .product-title { font-weight: 500; }
.home-comparison-badge { background: #3a1405; color: #f5efe6; }

/* Header logo: stack the mark and the name so they can't overlap. */
.header-brand a { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.classic-logo-mark { display: block; height: 74px; }
.classic-logo-name { margin-top: 0; line-height: 1.2; }

/* Dark mode: brown all the way down, not grey. */
[data-theme="dark"] body,
[data-theme="dark"] .site-main,
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .home-scroll-section,
[data-theme="dark"] .home-trust-strip,
[data-theme="dark"] .home-vs,
[data-theme="dark"] .home-comparison,
[data-theme="dark"] .disclaimer-bar,
[data-theme="dark"] .product-detail-section,
[data-theme="dark"] .product-accordions,
[data-theme="dark"] .product-fair-pricing,
[data-theme="dark"] .breadcrumbs { background-color: var(--cream) !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body { background-color: var(--cream); }
}

/* Shop cards: one line of price, slightly larger names. */
.product-card-price, .woocommerce ul.products li.product .price { font-size: 17px !important; font-weight: 600 !important; white-space: nowrap; }
.product-card-price .woocommerce-Price-amount { font-size: inherit !important; font-weight: inherit !important; }
.product-card-name, .product-card-name a { font-size: 21px !important; font-weight: 500; line-height: 1.2 !important; }
.home-scroll-card-name, .home-scroll-card-name a { font-size: 20px; font-weight: 500; }
@media (max-width: 767px) {
    .product-card-price, .woocommerce ul.products li.product .price { font-size: 15px !important; }
    .product-card-name, .product-card-name a { font-size: 19px !important; }
}

/* Cart and account: buttons and lines that match the theme in both modes. */
.woocommerce a.button:not(.alt):not(.checkout-button),
.woocommerce button.button:not(.alt) {
    background: transparent !important;
    border: 1px solid var(--gold-dark) !important;
    color: var(--gold-dark) !important;
    box-shadow: none !important;
}
[data-theme="dark"] .woocommerce a.button:not(.alt):not(.checkout-button),
[data-theme="dark"] .woocommerce button.button:not(.alt) { border-color: var(--gold) !important; color: var(--gold) !important; }
.woocommerce #coupon_code { min-width: 200px; }
[data-theme="dark"] .woocommerce form .input-text,
[data-theme="dark"] .woocommerce textarea { background: var(--cream-light) !important; border-color: var(--line) !important; color: var(--ink) !important; }
[data-theme="dark"] .cart_totals table th,
[data-theme="dark"] .cart_totals table td,
[data-theme="dark"] .woocommerce table.shop_table td,
[data-theme="dark"] .woocommerce table.shop_table th { border-color: var(--line) !important; }

/* A size that has sold out stays visible but can't be chosen. */
.size-option[disabled] { opacity: 0.45; cursor: not-allowed; }
