/* ==================================================================
   PÉGASE — UNIFIED SITE STYLESHEET
   Enqueued by pegase-child/functions.php after the Astra parent and the
   child style.css.
   ==================================================================
   CONTENTS
   ==================================================================
     1. Brand tokens (CSS variables)
     2. Page base + typography utilities
     3. Scrollbar + selection
     4. Animations (keyframes + reduced motion)
     5. Homepage — meteor effects (sheen, impact, particle canvas)
     6. Homepage — mobile menu drawer
     7. Homepage — scent cards (flip behavior)
     8. Homepage — reviews carousel, FAQ, social icons, fade-in
     9. Site navbar (Astra header + Bootstrap-class fallbacks)
    10. Buttons + form controls (generic, Bootstrap-class friendly)
    13. Alerts, footer, links, tables
    14. Content pages (policy, thank-you, about, contact)
    15. Semantic layout classes (Tailwind migration)
    16. WooCommerce blocks — cart, checkout, product
   ==================================================================
*/


/* ==================================================================
   1. BRAND TOKENS
   ================================================================== */
:root {
    /* Gold gradient (5 nodes) */
    --color-gold-edge-1: #8A5A19;
    --color-gold-highlight: #FDE08B;
    --color-gold-mid: #D4AF37;
    --color-gold-shadow: #AA771C;
    --color-gold-edge-2: #F3D060;

    /* Surfaces */
    --color-bg-deep: #05070a;
    --color-bg-card-gradient: linear-gradient(135deg, rgba(13, 17, 23, 0.9), rgba(20, 25, 35, 0.95));
    --color-glass-border: rgba(212, 175, 55, 0.25);

    /* Text */
    --color-text-main: #e6edf3;
    --color-text-dim: #9ca3af;

    /* Fonts */
    --font-brand: 'Noto Serif', serif;
    --font-label: 'JetBrains Mono', 'Adwaita Mono', ui-monospace, monospace;
    --font-body: 'Manrope', system-ui, sans-serif;

    /* Motion */
    --transition-standard: 0.3s ease;
    --transition-slow: 0.7s ease-in-out;
}


/* ==================================================================
   2. PAGE BASE + TYPOGRAPHY UTILITIES
   ================================================================== */
body,
.page-content {
    background-color: var(--color-bg-deep) !important;
    color: var(--color-text-main);
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.brand-font, .prose-serif {
    font-family: var(--font-brand);
    color: var(--color-text-main);
}

.perfume-font, .label-mono {
    font-family: var(--font-label);
}

.text-gradient {
    background: linear-gradient(45deg, var(--color-gold-edge-1), var(--color-gold-highlight), var(--color-gold-mid), var(--color-gold-shadow), var(--color-gold-edge-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.text-gold { color: var(--color-gold-mid) !important; }
.text-amber { color: var(--color-gold-highlight) !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==================================================================
   3. SCROLLBAR + SELECTION
   ================================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--color-gold-edge-1), var(--color-gold-mid), var(--color-gold-edge-1));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-highlight); }

::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--color-gold-highlight);
}


/* ==================================================================
   4. ANIMATIONS (keyframes + reduced motion)
   ================================================================== */
@keyframes sheen-move {
    from { transform: skewX(-20deg) translateX(-110%); }
    to   { transform: skewX(-20deg) translateX(110%); }
}

@keyframes shudder {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(1px, -1px); }
    50%  { transform: translate(-1px, 1px); }
    75%  { transform: translate(0.5px, -0.5px); }
    100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    #particle-canvas { display: none !important; }
    .js .fade-in { opacity: 1 !important; transform: none !important; }
    .hero-content { transform: none !important; }
}


/* ==================================================================
   5. HOMEPAGE — METEOR EFFECTS
   ================================================================== */
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.logo-container,
.scent-card-container,
.faq-group,
.review-card,
.hero-title {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-title {
    display: inline-block;
    padding: 0 0.1em;
}

.sheen-active::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 35%,
        rgba(253, 224, 139, 0.04) 48%,
        rgba(253, 224, 139, 0.12) 50%,
        rgba(253, 224, 139, 0.04) 52%,
        rgba(255, 255, 255, 0) 65%
    );
    transform: skewX(-20deg) translateX(-110%);
    animation: sheen-move 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
    z-index: 2;
}

.impact-hit { animation: shudder 0.3s ease-out; }


/* ==================================================================
   6. HOMEPAGE — MOBILE MENU DRAWER
   ================================================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-panel {
    position: absolute;
    top: 0; right: 0;
    height: 100%;
    width: min(85vw, 360px);
    background: linear-gradient(180deg, #05070a 0%, #0d1117 100%);
    border-left: 1px solid var(--color-glass-border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 1, 0.3, 1);
    padding: 2rem;
}
.mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-link {
    color: var(--color-text-main);
    transition: color var(--transition-standard);
}
.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
    color: var(--color-gold-highlight);
}

body.menu-open { overflow: hidden; }


/* ==================================================================
   7. HOMEPAGE — SCENT CARDS (flip behavior)
   ================================================================== */
.scent-card-container {
    position: relative;
    min-height: 34rem;
    height: 34rem;
    width: 100%;
    perspective: 1000px;
    cursor: pointer;
}
.scent-card-container:focus-visible {
    outline: 2px solid var(--color-gold-mid);
    outline-offset: 6px;
    border-radius: 1rem;
}

/* Price tag on the front face */
.card-price {
    margin-top: 1.25rem;
    font-family: var(--font-label);
    font-size: 0.95rem;
    letter-spacing: 0.25em;
    color: var(--color-gold-highlight);
}

/* PURCHASE button on the back face. Specificity beats the global gold-link
   rule in section 13 — without this the dark text was inheriting gold. */
a.purchase-btn,
.card-back a.purchase-btn {
    background: var(--color-gold-mid) !important;
    border: 1px solid var(--color-gold-mid) !important;
    color: var(--color-bg-deep) !important;
    transition: background var(--transition-standard), border-color var(--transition-standard), transform var(--transition-standard) !important;
}
a.purchase-btn:hover,
a.purchase-btn:focus,
.card-back a.purchase-btn:hover,
.card-back a.purchase-btn:focus {
    background: var(--color-gold-highlight) !important;
    border-color: var(--color-gold-highlight) !important;
    color: var(--color-bg-deep) !important;
    transform: translateY(-1px);
}

.scent-card-container img {
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1), filter 1.2s ease;
}

.scent-card-container:hover img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

.card-face {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    border: 1px solid var(--color-glass-border);
    background: var(--color-bg-card-gradient);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(138, 90, 25, 0.05), 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.card-face::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.05), transparent 60%);
    pointer-events: none;
}

.card-front { pointer-events: auto; }
.card-back  { opacity: 0; transform: scale(0.95); pointer-events: none; }

@media (hover: hover) and (pointer: fine) {
    .scent-card-container:hover .card-front { opacity: 0; transform: scale(0.95); pointer-events: none; }
    .scent-card-container:hover .card-back  { opacity: 1; transform: scale(1);    pointer-events: auto; }
}

.scent-card-container.is-flipped .card-front { opacity: 0; transform: scale(0.95); pointer-events: none; }
.scent-card-container.is-flipped .card-back  { opacity: 1; transform: scale(1);    pointer-events: auto; }


/* ==================================================================
   8. HOMEPAGE — REVIEWS, FAQ, SOCIAL, FADE-IN
   ================================================================== */
.carousel-viewport {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

#review-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 3rem 5%;
    gap: 4rem;
}
#review-track::-webkit-scrollbar { display: none; }

.review-card {
    width: 100%;
    max-width: 450px;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-glass-border);
    border-radius: 3rem;
    padding: 4.5rem 3.5rem;
    transition: var(--transition-standard);
    flex-shrink: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .review-card {
        max-width: 85vw;
        padding: 3.5rem 2rem;
    }
}

.faq-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-glass-border);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: var(--transition-standard);
}
.faq-group:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.03);
}
.faq-toggle {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
}
.faq-toggle:focus-visible {
    outline: 2px solid var(--color-gold-mid);
    outline-offset: 4px;
    border-radius: 4px;
}
.faq-icon { display: inline-block; transition: transform 0.3s ease; }
.faq-group.is-open .faq-icon { transform: rotate(45deg); }
.faq-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}
.faq-group.is-open .faq-details {
    max-height: 400px;
    opacity: 1;
    margin-top: 1rem;
}

.social-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.8) sepia(1) saturate(2) hue-rotate(-10deg);
}
.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    filter: brightness(1.2) sepia(0);
}

.fade-in { transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.js .fade-in { opacity: 0; transform: translateY(30px); }
.js .fade-in.visible { opacity: 1; transform: translateY(0); }


/* ==================================================================
   9. SITE NAVBAR (Astra header + Bootstrap-class fallbacks)
   ================================================================== */
header.navbar,
.navbar.navbar-expand-lg,
.navbar.navbar-light {
    background: rgba(5, 7, 10, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: none !important;
    padding: 1rem 1.5rem !important;
}

.navbar-brand,
.navbar-brand a,
.navbar-brand span {
    color: var(--color-gold-highlight) !important;
    font-family: var(--font-brand) !important;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.navbar .nav-link,
.navbar-nav .nav-link {
    color: var(--color-text-main) !important;
    font-family: var(--font-label) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    transition: color var(--transition-standard) !important;
    padding: 0.5rem 1rem !important;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: var(--color-gold-highlight) !important;
}

.navbar .cart-icon,
.navbar a[href="/cart"],
.shopping-cart-btn {
    color: var(--color-gold-mid) !important;
}

.navbar .badge,
.navbar .cart-badge,
.cart-count {
    background: var(--color-gold-mid) !important;
    color: var(--color-bg-deep) !important;
    font-family: var(--font-label) !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
}

.navbar-toggler {
    border-color: var(--color-glass-border) !important;
    color: var(--color-gold-mid) !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23D4AF37' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar .dropdown-menu,
.dropdown-menu {
    background: #0d1117 !important;
    border: 1px solid var(--color-glass-border) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    border-radius: 0.5rem !important;
}
.dropdown-item {
    color: var(--color-text-main) !important;
    font-family: var(--font-label) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.1em !important;
    padding: 0.6rem 1.25rem !important;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(212, 175, 55, 0.08) !important;
    color: var(--color-gold-highlight) !important;
}
.dropdown-divider {
    border-color: var(--color-glass-border) !important;
}


/* ==================================================================
  10. BUTTONS + FORM CONTROLS (generic, Bootstrap-class friendly)
   ================================================================== */
.btn,
button.btn {
    font-family: var(--font-label) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    transition: all var(--transition-standard) !important;
    padding: 0.75rem 1.5rem !important;
}

.btn-primary,
.btn.btn-primary,
.btn-success {
    background: var(--color-gold-mid) !important;
    border-color: var(--color-gold-mid) !important;
    color: var(--color-bg-deep) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background: var(--color-gold-highlight) !important;
    border-color: var(--color-gold-highlight) !important;
    color: var(--color-bg-deep) !important;
    transform: translateY(-1px);
}

.btn-secondary,
.btn.btn-secondary,
.btn-default {
    background: transparent !important;
    border: 1px solid var(--color-glass-border) !important;
    color: var(--color-gold-mid) !important;
}
.btn-secondary:hover,
.btn-default:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: var(--color-gold-mid) !important;
    color: var(--color-gold-highlight) !important;
}

.form-control,
input.form-control,
textarea.form-control,
select.form-control,
.form-select {
    background: rgba(13, 17, 23, 0.6) !important;
    border: 1px solid var(--color-glass-border) !important;
    color: var(--color-text-main) !important;
    font-family: var(--font-body) !important;
    border-radius: 0.5rem !important;
    padding: 0.6rem 0.9rem !important;
}
.form-control:focus,
.form-select:focus {
    background: rgba(13, 17, 23, 0.8) !important;
    border-color: var(--color-gold-mid) !important;
    box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.25) !important;
    color: var(--color-text-main) !important;
}
.form-control::placeholder { color: var(--color-text-dim) !important; }

label,
.control-label,
.form-label {
    color: var(--color-text-dim) !important;
    font-family: var(--font-label) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    margin-bottom: 0.5rem !important;
}


/* ==================================================================
  13. ALERTS, FOOTER, LINKS, TABLES (generic, no framework coupling)
   ================================================================== */
.alert-success {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: var(--color-gold-mid) !important;
    color: var(--color-gold-highlight) !important;
}
.alert-info {
    background: rgba(212, 175, 55, 0.05) !important;
    border-color: var(--color-glass-border) !important;
    color: var(--color-text-main) !important;
}
.alert-warning {
    background: rgba(253, 224, 139, 0.1) !important;
    border-color: var(--color-gold-highlight) !important;
    color: var(--color-gold-highlight) !important;
}

footer.footer {
    background: var(--color-bg-deep) !important;
    color: var(--color-text-dim) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.1) !important;
}
footer.footer a {
    color: var(--color-text-dim) !important;
}
footer.footer a:hover {
    color: var(--color-gold-highlight) !important;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
    color: var(--color-gold-mid);
    transition: color var(--transition-standard);
}
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand):hover {
    color: var(--color-gold-highlight);
}

.table {
    color: var(--color-text-main) !important;
    background: transparent !important;
}
.table th,
.table td {
    border-color: rgba(212, 175, 55, 0.1) !important;
    background: transparent !important;
}
.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(212, 175, 55, 0.02) !important;
}


/* ==================================================================
  14. CONTENT PAGES (policy, thank-you, about, contact)
   ================================================================== */

/* Shared top bar — sticky across every page. Translucent dark + backdrop
   blur so it reads over the hero without stealing focus. Height is fixed
   at ~3.5rem; non-home pages get a matching body padding-top below. */
.page-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.6rem 0;
    background: rgba(5, 7, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
.page-topbar-logo {
    display: inline-block;
    width: 2rem;
    height: 2rem;
}
.page-topbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.page-topbar-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
@media (max-width: 540px) {
    .page-topbar-nav { gap: 0.9rem; }
    .page-topbar-nav a:not(.topbar-cart) { font-size: 0.65rem; }
}

/* Push every non-homepage main below the fixed topbar. The home page
   leaves this off so the hero (min-h-screen) can fill the viewport with
   the bar floating over it. */
body:not(.home) {
    padding-top: 3.5rem;
}

/* Hide Astra's own header on routes it still owns (shop archive, single
   product, etc.) so our fixed topbar is the only navbar on the page. */
.site-header,
.ast-above-header,
.ast-below-header,
.main-header-bar-wrap {
    display: none !important;
}
.page-topbar-nav a {
    color: var(--color-gold-mid);
    text-decoration: none;
    transition: color 0.3s ease;
}
.page-topbar-nav a:hover,
.page-topbar-nav a:focus-visible {
    color: var(--color-gold-highlight);
}

/* Cart link — icon with a small gold count badge in the top-right corner.
   The badge is hidden when the cart is empty (data-count="0" or [hidden]).
   The count node is the WC fragment-refresh target (see functions.php),
   so it updates without a page reload after add-to-cart. */
.topbar-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}
.topbar-cart-icon {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}
.pegase-cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.3rem;
    background: var(--color-gold-mid);
    color: var(--color-bg-deep);
    border-radius: 999px;
    font-family: var(--font-label);
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.05rem;
    text-align: center;
    letter-spacing: 0;
    pointer-events: none;
}
.pegase-cart-count[hidden],
.pegase-cart-count[data-count="0"] {
    display: none;
}

/* Shared hero strip at the top of each content page */
.page-hero {
    padding: 3rem 1.5rem 3rem;
    text-align: center;
}
.page-hero .eyebrow {
    font-family: var(--font-label);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-gold-mid);
    margin-bottom: 1.5rem;
}
.page-hero h1 {
    font-family: var(--font-brand);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.page-hero .meta {
    font-family: var(--font-label);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #6b7280;
}

/* Prose article body */
.policy-prose {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1.5rem 8rem;
    color: var(--color-text-main);
    font-size: 1rem;
    line-height: 1.75;
}
.policy-prose .lede {
    font-size: 1.125rem;
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.policy-prose h2 {
    font-family: var(--font-brand);
    color: var(--color-gold-highlight);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.policy-prose p {
    margin-bottom: 1.25rem;
    color: var(--color-text-dim);
}
.policy-prose ul,
.policy-prose ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
    counter-reset: pegase-counter;
}
.policy-prose ul li,
.policy-prose ol li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-dim);
}
.policy-prose ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--color-gold-mid);
    font-size: 0.7rem;
    top: 0.45rem;
}
.policy-prose ol li { counter-increment: pegase-counter; }
.policy-prose ol li::before {
    content: counter(pegase-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    color: var(--color-gold-mid);
    font-family: var(--font-label);
    font-size: 0.75rem;
    top: 0.25rem;
    letter-spacing: 0.1em;
}
.policy-prose strong {
    color: var(--color-text-main);
    font-weight: 600;
}
.policy-prose a {
    color: var(--color-gold-mid);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: color var(--transition-standard), border-color var(--transition-standard);
}
.policy-prose a:hover {
    color: var(--color-gold-highlight);
    border-color: var(--color-gold-highlight);
}
.policy-prose address {
    color: var(--color-text-dim);
    line-height: 1.8;
    font-style: normal;
}

/* "At a glance" callout box */
.policy-callout {
    background: var(--color-bg-card-gradient);
    border: 1px solid var(--color-glass-border);
    border-radius: 0.75rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
}
.policy-callout ul { margin-bottom: 0; }
.policy-callout .callout-label {
    display: block;
    font-family: var(--font-label);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold-highlight);
    margin-bottom: 0.75rem;
}

/* Shipping rates table */
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: 0.9375rem;
}
.shipping-table th {
    font-family: var(--font-label);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-mid);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-glass-border);
}
.shipping-table td {
    padding: 1rem;
    color: var(--color-text-dim);
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
.shipping-table tr:last-child td { border-bottom: none; }
.policy-prose .small-note {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* "Return to Pégase" footer link on each content page */
.policy-page-back {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}
.policy-page-back a {
    display: inline-block;
    font-family: var(--font-label);
    color: var(--color-gold-mid) !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5) !important;
    padding-bottom: 0.5rem;
    text-decoration: none;
    transition: var(--transition-standard);
}
.policy-page-back a:hover {
    color: var(--color-gold-highlight) !important;
    border-color: var(--color-gold-highlight) !important;
}

/* --- Thank-you page specifics --- */
.thank-you-mark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}
.thank-you-mark svg { width: 100%; height: 100%; }
.thank-you-mark circle,
.thank-you-mark path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: ty-draw 1.4s ease-out forwards;
}
.thank-you-mark path { animation-delay: 0.6s; }
@keyframes ty-draw { to { stroke-dashoffset: 0; } }

.ty-lede {
    font-size: 1.125rem;
    color: var(--color-text-dim);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

.ty-order-card {
    background: var(--color-bg-card-gradient);
    border: 1px solid var(--color-glass-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 4rem;
}
.ty-order-card .order-ref-label {
    display: block;
    font-family: var(--font-label);
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold-mid);
    margin-bottom: 0.75rem;
}
.ty-order-card .order-ref {
    font-family: var(--font-brand);
    font-size: 1.875rem;
    color: var(--color-gold-highlight);
    word-break: break-all;
    margin: 0;
}

.ty-steps { margin: 3rem 0; }
.ty-steps-label {
    display: block;
    font-family: var(--font-label);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-gold-mid);
    text-align: center;
    margin-bottom: 2.5rem;
}
.ty-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
.ty-step:last-child { border-bottom: none; }
.ty-step-num {
    font-family: var(--font-label);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    color: var(--color-gold-mid);
    flex-shrink: 0;
    padding-top: 0.25rem;
    min-width: 2.5rem;
}
.ty-step h3 {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    color: var(--color-gold-highlight);
    margin: 0 0 0.5rem;
}
.ty-step p {
    color: var(--color-text-dim);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin: 0;
}

.ty-actions {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
@media (min-width: 640px) {
    .ty-actions { flex-direction: row; justify-content: center; }
}
.btn-pill {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    font-family: var(--font-label);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-standard);
}
.btn-pill-primary {
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    color: var(--color-gold-highlight) !important;
}
.btn-pill-primary:hover {
    background: rgba(212, 175, 55, 0.1);
}
.btn-pill-ghost {
    color: var(--color-text-dim) !important;
    border-bottom: none !important;
}
.btn-pill-ghost:hover {
    color: var(--color-gold-highlight) !important;
}

/* ==================================================================
  15. SEMANTIC LAYOUT CLASSES (Tailwind Migration)
   ================================================================== */

.w-full { width: 100%; }
.h-full { height: 100%; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.grid { display: grid; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-12 { gap: 3rem; }
.gap-20 { gap: 5rem; }

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

.min-h-screen { min-height: 100vh; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mt-auto { margin-top: auto; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:w-1\/2 { width: 50%; }
    .md\:text-left { text-align: left; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-8xl { font-size: 6rem; line-height: 1; }
    .md\:py-48 { padding-top: 12rem; padding-bottom: 12rem; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.font-serif { font-family: var(--font-brand); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-light { font-weight: 300; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tighter { letter-spacing: -0.05em; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }

.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15)); }

.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-\[\#8A5A19\]\/50 { border-color: rgba(138, 90, 25, 0.5); }

.bg-\[\#05070a\] { background-color: #05070a; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-\[\#D4AF37\] { background-color: #D4AF37; }
.bg-\[\#D4AF37\]\/10 { background-color: rgba(212, 175, 55, 0.1); }

.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-600 { color: #4b5563; }
.text-\[\#D4AF37\] { color: #D4AF37; }
.text-\[\#FDE08B\] { color: #FDE08B; }

.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

.object-cover { object-position: center; object-fit: cover; }
.opacity-50 { opacity: 0.5; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-500 { transition-duration: 500ms; }

.hover\:bg-\[\#8A5A19\]\/30:hover { background-color: rgba(138, 90, 25, 0.3); }
.hover\:bg-\[\#FDE08B\]:hover { background-color: #FDE08B; }

.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }

.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-24 { width: 6rem; }
.h-1 { height: 0.25rem; }
.w-40 { width: 10rem; }
.h-40 { height: 10rem; }
.w-80 { width: 20rem; }
.h-80 { height: 20rem; }
.h-48 { height: 12rem; }

.leading-relaxed { line-height: 1.625; }

.space-x-4 > * + * { margin-left: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.block { display: block; }
.inline-block { display: inline-block; }

.h-auto { height: auto; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pt-8 { padding-top: 2rem; }

.tracking-wide { letter-spacing: 0.025em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-\[0\.4em\] { letter-spacing: 0.4em; }

.text-\[9px\] { font-size: 9px; }

.border-\[\#D4AF37\]\/30 { border-color: rgba(212, 175, 55, 0.3); }
.border-\[\#D4AF37\]\/50 { border-color: rgba(212, 175, 55, 0.5); }

.hover\:text-\[\#FDE08B\]:hover { color: #FDE08B; }
.hover\:border-\[\#FDE08B\]:hover { border-color: #FDE08B; }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-\[\#D4AF37\]:focus { border-color: #D4AF37; }

.min-h-\[1\.25rem\] { min-height: 1.25rem; }


/* ==================================================================
  16. WOOCOMMERCE BLOCKS — CART, CHECKOUT, PRODUCT
  Targets the .wc-block-* and .wp-block-woocommerce-* class system
  used by the modern Cart and Checkout blocks (WC 8.3+).
  Classic shortcode markup is mostly handled by section 10 + 13.
   ================================================================== */

/* --- 16.1 Page roots and surfaces --- */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout {
    color: var(--color-text-main) !important;
    font-family: var(--font-body) !important;
}

/* Constrain the WC pages so they don't stretch edge-to-edge. page.php
   just dumps the_content() so the blocks themselves have to provide the
   max-width and horizontal padding. */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
    max-width: 1200px;
    margin: 1.5rem auto 4rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Shop / archive grid: same container treatment for the product loop. */
.woocommerce.archive .site-main,
.woocommerce-page .site-main,
.post-type-archive-product .site-main {
    max-width: 1280px;
    margin: 1.5rem auto 4rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Single product page — give it the same breathing room. */
.single-product .site-main {
    max-width: 1200px;
    margin: 1.5rem auto 4rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* WC Blocks wraps each section in a panel; give them the same dark
   glass treatment as our other surfaces. */
.wc-block-components-sidebar,
.wc-block-components-main,
.wc-block-checkout__sidebar,
.wc-block-checkout__main,
.wc-block-cart__main,
.wc-block-cart__sidebar {
    background: transparent !important;
}

.wc-block-components-panel,
.wc-block-checkout__contact-fields,
.wc-block-checkout__shipping-fields,
.wc-block-checkout__billing-fields,
.wc-block-checkout__shipping-method,
.wc-block-checkout__shipping-option,
.wc-block-checkout__payment-method,
.wc-block-checkout__actions,
.wc-block-checkout__order-notes {
    background: rgba(13, 17, 23, 0.5) !important;
    border: 1px solid var(--color-glass-border) !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    margin-bottom: 1.25rem !important;
}

/* --- 16.2 Step headings (Contact / Shipping / Payment) --- */
.wc-block-components-checkout-step__title,
.wc-block-components-checkout-step__heading,
.wc-block-components-title {
    font-family: var(--font-brand) !important;
    color: var(--color-gold-highlight) !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wc-block-components-checkout-step__description {
    color: var(--color-text-dim) !important;
}

/* --- 16.3 Inputs (.wc-block-components-text-input is a floating-label wrapper) --- */
.wc-block-components-text-input,
.wc-block-components-select,
.wc-block-components-combobox {
    background: rgba(13, 17, 23, 0.6) !important;
    border: 1px solid var(--color-glass-border) !important;
    border-radius: 0.5rem !important;
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-select select,
.wc-block-components-combobox input,
.wc-block-components-address-form input,
.wc-block-components-address-form select {
    background: transparent !important;
    color: var(--color-text-main) !important;
    border: none !important;
    font-family: var(--font-body) !important;
    padding: 1rem 0.9rem 0.4rem !important;
}

.wc-block-components-text-input label,
.wc-block-components-select label,
.wc-block-components-combobox label,
.wc-block-components-checkbox__label {
    color: var(--color-text-dim) !important;
    font-family: var(--font-body) !important;
}

.wc-block-components-text-input:focus-within,
.wc-block-components-select:focus-within,
.wc-block-components-combobox:focus-within {
    border-color: var(--color-gold-mid) !important;
    box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.2) !important;
}

/* The floating label gold-highlights when the field is active or filled. */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input:focus-within label,
.wc-block-components-select.is-active label,
.wc-block-components-select:focus-within label {
    color: var(--color-gold-highlight) !important;
}

/* Combobox dropdown panel (country/state autocomplete) */
.wc-block-components-combobox-list {
    background: rgba(13, 17, 23, 0.96) !important;
    border: 1px solid var(--color-glass-border) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}
.wc-block-components-combobox-list-item {
    color: var(--color-text-main) !important;
}
.wc-block-components-combobox-list-item.is-highlighted,
.wc-block-components-combobox-list-item:hover {
    background: rgba(212, 175, 55, 0.12) !important;
    color: var(--color-gold-highlight) !important;
}

/* --- 16.4 Checkboxes and radios --- */
.wc-block-components-checkbox__input,
.wc-block-components-radio-control__input {
    accent-color: var(--color-gold-highlight) !important;
}
.wc-block-components-checkbox__label,
.wc-block-components-radio-control__label {
    color: var(--color-text-main) !important;
}
.wc-block-components-radio-control__option {
    border: 1px solid var(--color-glass-border) !important;
    border-radius: 0.5rem !important;
    background: rgba(13, 17, 23, 0.4) !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem !important;
}
.wc-block-components-radio-control__option-checked {
    border-color: var(--color-gold-mid) !important;
    background: rgba(212, 175, 55, 0.08) !important;
}

/* --- 16.5 Buttons (Place Order, Add to Cart, Apply Coupon) --- */
.wc-block-components-button,
.wp-element-button,
.wc-block-components-checkout-place-order-button {
    background: var(--color-gold-mid) !important;
    border: 1px solid var(--color-gold-highlight) !important;
    color: var(--color-bg-deep) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.wc-block-components-button:hover,
.wp-element-button:hover,
.wc-block-components-checkout-place-order-button:hover {
    background: var(--color-gold-highlight) !important;
    border-color: var(--color-gold-highlight) !important;
    color: var(--color-bg-deep) !important;
    transform: translateY(-1px);
}

/* Outlined / "secondary" button variant — used for "Continue Shopping" etc. */
.wc-block-components-button.outlined,
.wp-element-button.outlined {
    background: transparent !important;
    color: var(--color-gold-highlight) !important;
}
.wc-block-components-button.outlined:hover,
.wp-element-button.outlined:hover {
    background: rgba(212, 175, 55, 0.12) !important;
    color: var(--color-gold-highlight) !important;
}

/* --- 16.6 Cart items table --- */
.wc-block-cart-items,
.wc-block-cart-items__header {
    background: transparent !important;
    color: var(--color-text-main) !important;
}
.wc-block-cart-items__header {
    font-family: var(--font-body) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--color-gold-highlight) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
    padding-bottom: 0.75rem !important;
}
.wc-block-cart-items__row,
.wc-block-cart-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.08) !important;
    padding: 1rem 0 !important;
}
.wc-block-cart-item__product-name,
.wc-block-components-product-name {
    color: var(--color-text-main) !important;
    font-family: var(--font-brand) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}
.wc-block-cart-item__product-name:hover {
    color: var(--color-gold-highlight) !important;
}
.wc-block-cart-item__price,
.wc-block-components-product-price {
    color: var(--color-gold-highlight) !important;
    font-family: var(--font-label) !important;
}
.wc-block-cart-item__remove-link {
    color: var(--color-text-dim) !important;
    text-decoration: underline;
}
.wc-block-cart-item__remove-link:hover {
    color: var(--color-gold-highlight) !important;
}

/* Quantity selector */
.wc-block-components-quantity-selector {
    background: rgba(13, 17, 23, 0.6) !important;
    border: 1px solid var(--color-glass-border) !important;
    border-radius: 0.4rem !important;
}
.wc-block-components-quantity-selector__button {
    color: var(--color-gold-highlight) !important;
    background: transparent !important;
}
.wc-block-components-quantity-selector__input {
    color: var(--color-text-main) !important;
    background: transparent !important;
}

/* --- 16.7 Order summary / totals --- */
.wc-block-components-totals-wrapper,
.wc-block-components-totals-item {
    color: var(--color-text-main) !important;
    border-color: rgba(212, 175, 55, 0.12) !important;
}
.wc-block-components-totals-item__label {
    color: var(--color-text-dim) !important;
}
.wc-block-components-totals-item__value {
    color: var(--color-gold-highlight) !important;
    font-family: var(--font-label) !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

/* Coupon form */
.wc-block-components-totals-coupon,
.wc-block-components-panel__button {
    color: var(--color-gold-highlight) !important;
    background: transparent !important;
}

/* --- 16.8 Notices and validation errors --- */
.wc-block-components-notice-banner {
    background: rgba(13, 17, 23, 0.7) !important;
    border: 1px solid var(--color-glass-border) !important;
    color: var(--color-text-main) !important;
    border-radius: 0.5rem !important;
}
.wc-block-components-notice-banner.is-error {
    border-color: var(--color-gold-edge-1) !important;
}
.wc-block-components-notice-banner.is-success {
    border-color: var(--color-gold-mid) !important;
}
.wc-block-components-validation-error {
    color: var(--color-gold-edge-1) !important;
    font-family: var(--font-body) !important;
    font-size: 0.85rem;
}

/* --- 16.9 Single product page (classic + block) --- */
.product .product_title,
.wc-block-components-product-title {
    color: var(--color-text-main) !important;
    font-family: var(--font-brand) !important;
}
.product .price,
.product .woocommerce-Price-amount,
.wc-block-components-product-price {
    color: var(--color-gold-highlight) !important;
    font-family: var(--font-label) !important;
}
.single_add_to_cart_button {
    background: var(--color-gold-mid) !important;
    border-color: var(--color-gold-highlight) !important;
    color: var(--color-bg-deep) !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.single_add_to_cart_button:hover {
    background: var(--color-gold-highlight) !important;
    color: var(--color-bg-deep) !important;
}

/* --- 16.10 Shop / archive grid --- */
.woocommerce ul.products li.product,
.wc-block-grid__product {
    background: rgba(13, 17, 23, 0.5);
    border: 1px solid var(--color-glass-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
    border-color: var(--color-gold-mid);
    transform: translateY(-2px);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
    color: var(--color-text-main) !important;
    font-family: var(--font-brand) !important;
}

/* --- 16.11 Astra-specific overrides (header, page bg) --- */
body.astra-theme,
.ast-container,
.site,
#page {
    background: var(--color-bg-deep) !important;
    color: var(--color-text-main) !important;
}
.main-header-bar,
.ast-site-header-wrap {
    background: rgba(13, 17, 23, 0.85) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12) !important;
    backdrop-filter: blur(8px);
}
.main-navigation .menu-item > a,
.ast-builder-menu-1 .menu-item > a {
    color: var(--color-text-main) !important;
    font-family: var(--font-body) !important;
    letter-spacing: 0.04em;
}
.main-navigation .menu-item > a:hover,
.ast-builder-menu-1 .menu-item > a:hover {
    color: var(--color-gold-highlight) !important;
}
