/* ==========================================================================
   Anti-Sha Atelier — design system
   Archeological Mysticism x Modern Luxury Ritual Object.
   Tokens follow the client's HTML direction templates; the brief's § 6.2
   lapis and patina are kept as per-lineage accents.
   ========================================================================== */

:root {
    --void-black: #050505;
    --void-dark: #0A0A0A;
    --luminous-gold: #E5C07B;
    --gold-deep: #B89150;
    --cinnabar-red: #C73E3A;
    --parchment-white: #F2EFE9;
    --arcane-cyan: #4DFFDB;
    --lapis: #1A3A5C;
    --patina: #3A6B5A;

    --text-main: rgba(242, 239, 233, 0.85);
    --text-muted: rgba(242, 239, 233, 0.5);
    --text-faint: rgba(242, 239, 233, 0.15);
    --border-subtle: rgba(229, 192, 123, 0.25);
    --border-fainter: rgba(229, 192, 123, 0.12);

    --font-heading: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;

    --gutter: 4rem;
    --measure: 68ch;
    --ease-ritual: cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Author-origin display rules (e.g. .promo-bar { display: flex }) outrank the
   user-agent's [hidden] rule, which silently turns `el.hidden = true` into a
   no-op. Restore the contract once, globally. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--void-black);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: rgba(229, 192, 123, 0.25); color: var(--parchment-white); }

/* Focus visibility — the palette is very low contrast, so this must be loud. */
:focus-visible {
    outline: 2px solid var(--arcane-cyan);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute; top: -100px; left: 1rem; z-index: 9999;
    background: var(--void-dark); color: var(--luminous-gold);
    border: 1px solid var(--luminous-gold);
    padding: 0.8rem 1.4rem; font-family: var(--font-heading);
    font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 1.5rem var(--gutter);
    display: flex; justify-content: space-between; align-items: center;
    gap: 2rem;
    /* A header that fades to transparent lets body copy smear through the nav
       and leaves a hard seam where backdrop-filter stops clipping. Solid on
       inner pages; the front page keeps the gradient over its own canvas. */
    background: var(--void-black);
    border-bottom: 1px solid var(--border-fainter);
}
.site-header.is-transparent {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.6) 62%, transparent);
    border-bottom-color: transparent;
    backdrop-filter: blur(6px);
}

.site-logo {
    font-family: var(--font-heading);
    color: var(--parchment-white);
    font-size: 1rem; letter-spacing: 0.3em; text-transform: uppercase;
    font-weight: 500; text-decoration: none; white-space: nowrap;
}
.site-logo:hover { color: var(--luminous-gold); }

.nav-right { display: flex; align-items: center; gap: 2.5rem; }
.primary-nav ul { list-style: none; display: flex; gap: 2.5rem; }
.primary-nav a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.25em;
    transition: color 0.3s ease; white-space: nowrap;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--parchment-white); }

.cart-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--text-muted); text-decoration: none;
    font-family: var(--font-heading); font-size: 0.8rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    transition: color 0.3s ease;
}
.cart-link:hover { color: var(--luminous-gold); }
.cart-count {
    display: inline-grid; place-items: center;
    min-width: 1.5em; height: 1.5em; padding: 0 0.35em;
    border: 1px solid var(--border-subtle); border-radius: 50%;
    font-size: 0.75rem; color: var(--luminous-gold);
}
.cart-link[data-count="0"] .cart-count { opacity: 0.4; }

/* Language / currency dropdown (template 5) */
.locale-dropdown { position: relative; padding-left: 2.5rem; border-left: 1px solid var(--border-subtle); }
.locale-toggle {
    background: none; border: 1px solid var(--border-subtle); color: var(--text-muted);
    padding: 0.5rem 1rem; font-family: var(--font-heading); font-size: 0.8rem;
    letter-spacing: 0.1em; cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s ease;
}
.locale-toggle:hover { border-color: var(--luminous-gold); color: var(--luminous-gold); }
.locale-toggle .arrow { transition: transform 0.3s ease; }
.locale-dropdown.is-open .locale-toggle .arrow { transform: rotate(180deg); }

.locale-menu {
    position: absolute; top: 120%; right: 0; width: 200px;
    background: var(--void-dark); border: 1px solid var(--border-subtle);
    padding: 1rem 0; opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
.locale-dropdown.is-open .locale-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.locale-group-title {
    font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase;
    padding: 0.5rem 1.5rem; letter-spacing: 0.2em;
}
.locale-option {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 1.5rem; text-decoration: none; color: var(--text-muted);
    font-size: 0.9rem; transition: background 0.2s ease, color 0.2s ease;
}
.locale-option:hover { background: rgba(229, 192, 123, 0.1); color: var(--luminous-gold); }
.locale-option.is-active { color: var(--luminous-gold); }
.locale-option .currency { font-size: 0.78rem; color: var(--text-muted); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border-subtle);
    color: var(--text-muted); padding: 0.5rem 0.8rem; cursor: pointer;
    font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.2em; }

/* Header search: a quiet rule that opens on focus */
.header-search { display: flex; align-items: center; }
.header-search input[type="search"] {
    width: 8rem; background: transparent; border: none;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--parchment-white); font-family: var(--font-body);
    font-size: 0.95rem; padding: 0.35rem 0.2rem 0.35rem 1.4rem;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23B89150' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5L14 14' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left center; background-size: 13px;
    transition: width 0.4s var(--ease-ritual), border-color 0.3s ease;
}
.header-search input[type="search"]::placeholder { color: var(--text-muted); font-style: italic; }
.header-search input[type="search"]:focus {
    outline: none; width: 13rem; border-bottom-color: var(--luminous-gold);
}
@media (max-width: 900px) {
    .header-search { width: 100%; }
    .header-search input[type="search"], .header-search input[type="search"]:focus { width: 100%; }
}

/* In normal flow rather than fixed: pinned, it ended up floating over the
   sticky product plate for the length of a 7,000px page. */
.breadcrumb {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin: 7.5rem 0 -3.5rem var(--gutter);
    font-size: 0.85rem; color: var(--text-muted); text-decoration: none;
    transition: color 0.3s ease; position: relative; z-index: 3;
}
.breadcrumb:hover { color: var(--luminous-gold); }

/* ==========================================================================
   Shared ornament
   ========================================================================== */

.rune-divider {
    display: flex; justify-content: center; align-items: center;
    gap: 1.5rem; margin: 2rem auto 6rem; position: relative; z-index: 2;
}
.rune-line { width: 100px; height: 1px; background: linear-gradient(to right, transparent, var(--luminous-gold), transparent); }
.rune-symbol { font-size: 1.5rem; color: var(--luminous-gold); opacity: 0.8; text-shadow: 0 0 10px rgba(229, 192, 123, 0.4); }

.section-eyebrow {
    font-family: var(--font-heading); color: var(--arcane-cyan);
    font-size: 0.85rem; letter-spacing: 0.4em; text-transform: uppercase;
    margin-bottom: 2rem; display: flex; align-items: center; gap: 1.5rem;
    justify-content: center;
}
.section-eyebrow::before, .section-eyebrow::after {
    content: ''; width: 60px; height: 1px; background: var(--arcane-cyan); opacity: 0.6;
}
.section-eyebrow.is-left { justify-content: flex-start; }
.section-eyebrow.is-left::after { display: none; }

.btn-ritual {
    display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
    background: rgba(229, 192, 123, 0.05); border: 1px solid var(--luminous-gold);
    color: var(--luminous-gold); font-family: var(--font-heading);
    font-size: 0.95rem; letter-spacing: 0.25em; text-transform: uppercase;
    cursor: pointer; padding: 1.2rem 2.5rem; text-decoration: none;
    transition: all 0.4s var(--ease-ritual);
    box-shadow: 0 0 15px rgba(229, 192, 123, 0.1);
}
.btn-ritual:hover {
    background: rgba(229, 192, 123, 0.15); color: var(--parchment-white);
    box-shadow: 0 0 30px rgba(229, 192, 123, 0.4); transform: translateY(-2px);
}
.btn-ritual .arrow { transition: transform 0.3s ease; }
.btn-ritual:hover .arrow { transform: translateX(6px); }

.btn-quiet {
    display: inline-flex; align-items: center; gap: 1.2rem;
    background: transparent; border: 1px solid var(--border-subtle);
    color: var(--text-muted); font-family: var(--font-heading); font-size: 0.9rem;
    letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
    padding: 1rem 2rem; transition: all 0.3s ease; text-decoration: none;
}
.btn-quiet:hover { border-color: var(--luminous-gold); color: var(--luminous-gold); background: rgba(229, 192, 123, 0.05); }

/* ==========================================================================
   Front page — the void, the hero, the selector
   ========================================================================== */

#canvas-container { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
#canvas-container canvas { display: block; }

.top-vignette {
    position: fixed; top: 0; left: 0; width: 100%; height: 150px; z-index: 1;
    background: linear-gradient(to bottom, rgba(5,5,5,0.95), transparent);
    pointer-events: none;
}
.bottom-vignette {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 70vh; z-index: 1;
    background: linear-gradient(to top, var(--void-black) 5%, transparent 100%);
    pointer-events: none;
}

.hero {
    position: relative; z-index: 2;
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    /* Top padding clears the fixed header + promo bar, or the eyebrow ends up
       permanently behind them on phones under ~412px. */
    padding: 9rem var(--gutter) 6rem;
}
.hero-content { max-width: 850px; opacity: 0; animation: fadeUp 2.5s 1.2s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-pretitle {
    font-family: var(--font-body); font-style: italic; color: var(--luminous-gold);
    font-size: 1.3rem; margin-bottom: 1.5rem; letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 1rem;
}
.hero-pretitle::before { content: ''; width: 40px; height: 1px; background: var(--luminous-gold); flex: none; }

.hero-title {
    font-family: var(--font-heading); font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 400; color: var(--parchment-white); line-height: 1;
    margin-bottom: 2rem; letter-spacing: 0.02em;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}
.hero-subtitle {
    font-size: 1.4rem; color: var(--text-main); max-width: 650px;
    margin-bottom: 3rem; font-weight: 300; line-height: 1.6;
}
.hero-btn { font-size: 1.05rem; padding: 1.3rem 2.5rem; backdrop-filter: blur(8px); }

.scroll-cue {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    color: var(--text-faint); font-size: 1.4rem; animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* Pain selector overlay */
.pain-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; align-items: center;
    /* Not `center`: when the content is taller than the viewport, centring
       pushes the first cards above the scroll origin where they can never be
       reached (scrollTop cannot go negative). `auto` margins centre it only
       while it fits. */
    justify-content: flex-start;
    opacity: 0; visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    padding: 6rem 2rem 3rem; overflow-y: auto;
}
.pain-overlay > .pain-overlay-header { margin-top: auto; }
.pain-overlay > .pain-grid { margin-bottom: auto; }
.pain-overlay.is-active { opacity: 1; visibility: visible; }

.pain-overlay-header { text-align: center; margin-bottom: 3.5rem; }
/* The reveal animation belongs to the overlay only. The same markup is reused
   inline on the homepage, search and 404 — scoping this to `.pain-overlay >`
   keeps those copies visible instead of hiding the site's main navigation. */
.pain-overlay > .pain-overlay-header {
    transform: translateY(-20px); opacity: 0;
    transition: all 0.8s ease 0.3s;
}
.pain-overlay.is-active > .pain-overlay-header { transform: translateY(0); opacity: 1; }
.pain-overlay-title {
    font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
    color: var(--parchment-white); font-weight: 400; margin-bottom: 1rem;
}
.pain-overlay-subtitle { font-style: italic; color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.pain-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
    max-width: 1300px; width: 100%;
    background: var(--border-fainter); border: 1px solid var(--border-fainter);
}
.pain-card {
    background: rgba(5, 5, 5, 0.95); padding: 2rem 1.5rem;
    cursor: pointer; transition: background 0.4s ease; position: relative;
    text-align: left; text-decoration: none; display: block;
}
/* Hidden only inside the overlay, where the staggered reveal runs. */
.pain-overlay .pain-card { opacity: 0; transform: scale(0.96); }
.pain-overlay.is-active .pain-card { animation: cardReveal 0.6s ease forwards; }
@keyframes cardReveal { to { opacity: 1; transform: scale(1); } }
.pain-card:hover, .pain-card:focus-visible { background: rgba(229, 192, 123, 0.06); z-index: 2; }
.pain-num {
    font-family: var(--font-heading); color: var(--luminous-gold); font-size: 0.75rem;
    display: block; margin-bottom: 1rem; letter-spacing: 0.1em; opacity: 0.7;
}
.pain-title {
    font-family: var(--font-heading); font-size: 1.05rem; color: var(--parchment-white);
    margin-bottom: 0.8rem; transition: color 0.3s ease; line-height: 1.3; font-weight: 400;
}
.pain-card:hover .pain-title, .pain-card:focus-visible .pain-title { color: var(--luminous-gold); }
.pain-desc { font-size: 0.9rem; color: var(--text-muted); font-style: italic; line-height: 1.5; }

.pain-close {
    position: absolute; top: 2rem; right: 2.5rem;
    background: none; border: 1px solid var(--border-subtle); color: var(--text-muted);
    padding: 0.6rem 1rem; cursor: pointer; font-family: var(--font-heading);
    font-size: 0.8rem; letter-spacing: 0.2em; transition: all 0.3s ease;
}
.pain-close:hover { color: var(--cinnabar-red); border-color: var(--cinnabar-red); }

/* Inline (no-JS / scrolled) variant of the selector */
.pain-inline { position: relative; z-index: 2; padding: 6rem var(--gutter) 8rem; background: var(--void-black); }
.pain-inline .pain-grid { margin: 0 auto; }

/* ==========================================================================
   Pain category (taxonomy) page — template 3
   ========================================================================== */

.center-seam::before {
    content: ''; position: fixed; top: 0; left: 50%; width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(229, 192, 123, 0.1), transparent);
    z-index: 0; transform: translateX(-50%); pointer-events: none;
}
/* On form-heavy commerce pages the seam runs through the input rules and
   reads as a rendering fault rather than ornament. */
.woocommerce-checkout.center-seam::before,
.woocommerce-cart.center-seam::before,
.woocommerce-account.center-seam::before { display: none; }

.pain-hero {
    position: relative; z-index: 2; min-height: 90vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 10rem 2rem 4rem; overflow: hidden;
}
.rune-circle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(800px, 90vw); aspect-ratio: 1;
    border: 1px solid var(--border-subtle); border-radius: 50%;
    z-index: -1; opacity: 0.3; animation: rotateCircle 60s linear infinite;
}
.rune-circle::before, .rune-circle::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); border-radius: 50%;
    border: 1px dashed var(--border-subtle);
}
.rune-circle::before { width: 75%; aspect-ratio: 1; }
.rune-circle::after { width: 50%; aspect-ratio: 1; border-style: solid; border-color: var(--border-fainter); }
@keyframes rotateCircle {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.pain-category-num {
    font-family: var(--font-heading); color: var(--text-faint);
    font-size: clamp(8rem, 20vw, 16rem);
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -40%);
    z-index: -1; line-height: 1; user-select: none;
    text-shadow: 0 0 50px rgba(229, 192, 123, 0.1);
}

.pain-hero-title {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--luminous-gold); line-height: 1.1; margin-bottom: 3rem;
    font-weight: 500; text-shadow: 0 0 40px rgba(229, 192, 123, 0.3); max-width: 900px;
}
.pain-hero-text {
    max-width: 700px; font-size: 1.3rem; font-style: italic;
    color: var(--text-muted); line-height: 1.8;
}
.pain-hero-text strong {
    color: var(--luminous-gold); font-style: normal; font-weight: 600; letter-spacing: 0.02em;
}

.transition-text-container { text-align: center; margin-bottom: 6rem; position: relative; z-index: 2; }
.transition-text {
    font-family: var(--font-heading); font-size: 1.1rem; color: var(--luminous-gold);
    letter-spacing: 0.2em; text-transform: uppercase;
}

/* Altar display */
.altar-display-area {
    position: relative; z-index: 2; padding: 0 2rem 8rem;
    display: flex; flex-direction: column; align-items: center;
}
.altar-card {
    max-width: 1000px; width: 100%;
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 8rem; position: relative;
}
.altar-card:last-child { margin-bottom: 4rem; }

.altar-meta {
    display: flex; justify-content: space-between; width: 100%; gap: 1rem;
    margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 1rem;
}
.altar-origin {
    font-family: var(--font-heading); color: var(--arcane-cyan); font-size: 0.8rem;
    letter-spacing: 0.3em; text-transform: uppercase;
}
.altar-price { font-family: var(--font-heading); color: var(--luminous-gold); font-size: 1rem; letter-spacing: 0.1em; }
/* A sold-out relic still earns its place on the altar — scarcity is part of
   the proposition — but the visitor must know before they click. */
.altar-soldout, .related-card-stock.is-out {
    display: inline-block; margin-left: 0.8rem;
    font-family: var(--font-heading); font-size: 0.7rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--cinnabar-red); border: 1px solid rgba(199, 62, 58, 0.45);
    padding: 0.15rem 0.55rem; vertical-align: middle;
}
.related-card-stock.is-out { margin-left: 0; font-style: normal; }

.altar-image-sanctum {
    position: relative; width: 100%; aspect-ratio: 16/9; max-width: 1000px;
    background: #000; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.9);
    display: block;
}
.altar-image-sanctum img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.85) contrast(1.15) sepia(0.1);
    transition: transform 1.5s ease, filter 0.8s ease;
}
.altar-card:hover .altar-image-sanctum img { transform: scale(1.05); filter: brightness(1) contrast(1.12) sepia(0.06); }

.rune-corner {
    position: absolute; width: 40px; height: 40px;
    border: 2px solid var(--luminous-gold);
    transition: all 0.5s ease; box-shadow: 0 0 15px rgba(229, 192, 123, 0.3);
    pointer-events: none;
}
.altar-card:hover .rune-corner { width: 60px; height: 60px; box-shadow: 0 0 30px rgba(229, 192, 123, 0.6); }
.rune-tl { top: 20px; left: 20px; border-bottom: none; border-right: none; }
.rune-tr { top: 20px; right: 20px; border-bottom: none; border-left: none; }
.rune-bl { bottom: 20px; left: 20px; border-top: none; border-right: none; }
.rune-br { bottom: 20px; right: 20px; border-top: none; border-left: none; }

.crosshair {
    position: absolute; inset: 0; pointer-events: none;
    opacity: 0; transition: opacity 0.5s ease;
}
.altar-card:hover .crosshair { opacity: 0.3; }
.crosshair::before, .crosshair::after { content: ''; position: absolute; background: var(--luminous-gold); }
.crosshair::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.crosshair::after { top: 0; left: 50%; width: 1px; height: 100%; transform: translateX(-50%); }

.altar-text-sanctum { text-align: center; margin-top: 3rem; max-width: 700px; }
.altar-name {
    font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--luminous-gold); line-height: 1.2; margin-bottom: 2rem; font-weight: 500;
}
.altar-name a { text-decoration: none; }
.altar-name a:hover { color: var(--parchment-white); }
.altar-quote {
    font-size: 1.2rem; color: var(--parchment-white); font-style: italic;
    margin-bottom: 2rem; padding: 0 2.5rem; position: relative;
}
.altar-quote::before, .altar-quote::after {
    content: '\201C'; font-family: var(--font-heading); font-size: 3rem;
    color: var(--border-subtle); position: absolute; top: -1rem; line-height: 1;
}
.altar-quote::before { left: 0; }
.altar-quote::after { right: 0; content: '\201D'; }
.altar-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 3rem; }

.footer-selector {
    position: relative; z-index: 2; text-align: center;
    padding: 4rem 2rem 8rem; border-top: 1px solid var(--border-subtle);
    margin-top: 4rem; width: 100%;
}
.footer-text { font-style: italic; color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

/* ==========================================================================
   Product page — template 2
   ========================================================================== */

.product-container {
    display: grid; grid-template-columns: 5fr 6fr;
    max-width: 1600px; margin: 0 auto; padding-top: 8rem; min-height: 100vh;
}
/*
   The buy column is sticky, but it is taller than a 900px viewport. Pinning it
   at top:0 meant its lower half — price, stock and the only Acquire button in
   the theme — could never scroll into view on a laptop. Cap it to the viewport
   and let it scroll internally instead.
*/
.product-visuals {
    position: sticky; top: 6.5rem; align-self: start;
    padding: 2rem 3rem; display: flex; flex-direction: column; justify-content: flex-start;
    border-right: 1px solid var(--border-subtle);
    max-height: calc(100vh - 8rem);
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--border-subtle) transparent;
}
.product-visuals::-webkit-scrollbar { width: 6px; }
.product-visuals::-webkit-scrollbar-thumb { background: var(--border-subtle); }

/* Purchase controls lead; the plate follows. A visitor who has already decided
   should not have to scroll past imagery to find the price and the button. */
.product-visuals .purchase-info { order: 1; border-top: none; padding-top: 0; margin-bottom: 2rem; }
.product-visuals .main-image-wrapper { order: 2; }
.product-visuals .thumbnails { order: 3; margin-bottom: 0; }
.main-image-wrapper {
    aspect-ratio: 4/5; background: #000; margin-bottom: 2rem; overflow: hidden;
    position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    border: 1px solid var(--border-subtle);
}
.main-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.85) contrast(1.15) sepia(0.08);
    transition: transform 1s ease;
}
.main-image-wrapper:hover img { transform: scale(1.03); }

.thumbnails { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.thumb {
    width: 60px; height: 75px; background: #000; border: 1px solid var(--border-subtle);
    cursor: pointer; opacity: 0.5; padding: 0;
    transition: opacity 0.3s ease, border-color 0.3s ease; overflow: hidden;
}
.thumb.is-active, .thumb:hover { opacity: 1; border-color: var(--luminous-gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); }

.purchase-info { border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; }
.purchase-info .price {
    font-family: var(--font-heading); font-size: 1.8rem;
    color: var(--luminous-gold); margin-bottom: 0.5rem;
}
.purchase-info .price del { opacity: 0.4; font-size: 0.7em; margin-right: 0.5rem; }
.purchase-info .price ins { text-decoration: none; }
.stock-status {
    font-size: 0.85rem; color: var(--text-muted); font-style: italic;
    margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem;
}
.stock-status::before {
    content: ''; width: 6px; height: 6px; background: var(--arcane-cyan);
    border-radius: 50%; box-shadow: 0 0 8px var(--arcane-cyan); flex: none;
}
.stock-status.is-out::before { background: var(--cinnabar-red); box-shadow: 0 0 8px var(--cinnabar-red); }

.btn-acquire {
    display: block; width: 100%; padding: 1.2rem;
    background: transparent; border: 1px solid var(--luminous-gold);
    color: var(--luminous-gold); font-family: var(--font-heading);
    font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase;
    cursor: pointer; transition: all 0.4s ease; text-align: center; text-decoration: none;
}
.btn-acquire:hover:not(:disabled) {
    background: var(--luminous-gold); color: var(--void-black);
    box-shadow: 0 0 25px rgba(229, 192, 123, 0.4);
}
.btn-acquire:disabled { opacity: 0.35; cursor: not-allowed; }

.product-narrative { padding: 2rem 4rem 8rem; }
.narrative-header { margin-bottom: 4rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 2rem; }
.narrative-origin {
    font-family: var(--font-heading); color: var(--arcane-cyan); font-size: 0.85rem;
    letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem;
}
.narrative-title {
    font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--parchment-white); line-height: 1.2; margin-bottom: 1rem; font-weight: 500;
}
.narrative-subtitle { font-size: 1.3rem; color: var(--text-muted); font-style: italic; }

.ritual-section { margin-bottom: 5rem; }
.section-label {
    font-family: var(--font-heading); color: var(--luminous-gold); font-size: 0.85rem;
    letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 1rem;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--luminous-gold); flex: none; }
.section-title {
    font-family: var(--font-heading); font-size: 1.8rem; color: var(--parchment-white);
    margin-bottom: 1.5rem; font-weight: 500;
}
.section-text p { margin-bottom: 1.5rem; font-size: 1.15rem; max-width: var(--measure); }
.section-text p:last-child { margin-bottom: 0; }
.drop-cap::first-letter {
    font-family: var(--font-heading); font-size: 4.5rem; float: left;
    line-height: 0.9; margin-right: 0.8rem; margin-top: 0.3rem; color: var(--luminous-gold);
}

.sha-callout {
    background: rgba(229, 192, 123, 0.05); border-left: 2px solid var(--luminous-gold);
    padding: 1.5rem 2rem; margin: 2rem 0; font-style: italic;
    font-size: 1.2rem; color: var(--text-main);
}

.ritual-steps { list-style: none; margin-top: 2rem; position: relative; }
.ritual-steps::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 1px; background: var(--border-subtle);
}
.ritual-steps li { position: relative; padding-left: 2.5rem; margin-bottom: 2.5rem; }
.ritual-steps li:last-child { margin-bottom: 0; }
.ritual-steps li::before {
    content: ''; position: absolute; left: -4px; top: 8px;
    width: 9px; height: 9px; background: var(--void-black);
    border: 1px solid var(--luminous-gold); border-radius: 50%;
    box-shadow: 0 0 10px rgba(229, 192, 123, 0.4);
}
.step-time {
    font-family: var(--font-heading); color: var(--arcane-cyan); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; display: block;
}
.step-desc { font-size: 1.1rem; line-height: 1.7; }
.step-desc strong { color: var(--luminous-gold); font-weight: 600; }

.taboo-container {
    border: 1px dashed var(--cinnabar-red); background: rgba(199, 62, 58, 0.05);
    padding: 2rem; margin-top: 1.5rem;
}
.taboo-list { list-style: none; }
.taboo-list li {
    position: relative; padding-left: 2rem; margin-bottom: 1.2rem;
    font-size: 1.1rem; line-height: 1.6;
}
.taboo-list li::before {
    content: '\2715'; color: var(--cinnabar-red); position: absolute; left: 0; top: 0;
    font-weight: bold; filter: drop-shadow(0 0 5px rgba(199, 62, 58, 0.6));
}
.taboo-list li:last-child { margin-bottom: 0; }

.materials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.material-item { border: 1px solid var(--border-subtle); padding: 1rem; }
.material-name { font-family: var(--font-heading); color: var(--parchment-white); font-size: 1rem; margin-bottom: 0.3rem; }
.material-desc { font-size: 0.9rem; color: var(--text-muted); }

/* The disclaimer is the paragraph that says this is not a medical device and
   guarantees no outcome. It must be readable, not decorative — 0.3 alpha
   computes to 2.35:1, below the AA floor. */
.disclaimer {
    margin-top: 6rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.7;
}

/* ==========================================================================
   Archive / atelier — template 4
   ========================================================================== */

.archive-hero {
    position: relative; z-index: 2; min-height: 70vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 10rem 2rem 4rem;
}
.archive-title {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--luminous-gold); line-height: 1.1; margin-bottom: 2rem;
    font-weight: 500; text-shadow: 0 0 40px rgba(229, 192, 123, 0.3);
}
.archive-subtitle { max-width: 700px; font-size: 1.3rem; font-style: italic; color: var(--text-muted); }

.archive-grid {
    position: relative; z-index: 2; display: grid;
    grid-template-columns: repeat(3, 1fr); gap: 1px;
    max-width: 1400px; margin: 0 auto; padding: 0;
    background: var(--border-subtle); border: 1px solid var(--border-subtle);
}
.archive-grid-wrap { padding: 0 2rem 8rem; }
.archive-card {
    background: var(--void-black); padding: 3rem 2rem;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: background 0.4s ease; position: relative; overflow: hidden;
}
.archive-card:hover { background: rgba(229, 192, 123, 0.03); }
.archive-rune-bg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 12rem; color: var(--text-faint); opacity: 0.05;
    pointer-events: none; transition: opacity 0.5s ease, transform 1s ease; line-height: 1;
}
.archive-card:hover .archive-rune-bg { opacity: 0.15; transform: translate(-50%, -50%) scale(1.1); }
.archive-icon { font-size: 2.5rem; color: var(--luminous-gold); margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(229, 192, 123, 0.4); z-index: 1; }
.archive-culture-name {
    font-family: var(--font-heading); font-size: 1.5rem; color: var(--parchment-white);
    margin-bottom: 0.5rem; font-weight: 500; z-index: 1;
}
.archive-region {
    font-size: 0.85rem; color: var(--arcane-cyan); text-transform: uppercase;
    letter-spacing: 0.2em; margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle); padding-bottom: 1rem; width: 100%; z-index: 1;
}
.archive-desc { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem;
    font-style: italic; z-index: 1; flex-grow: 1; }
.archive-link {
    font-family: var(--font-heading); font-size: 0.85rem; color: var(--luminous-gold);
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.2em;
    transition: letter-spacing 0.3s ease; z-index: 1;
}
.archive-card:hover .archive-link { letter-spacing: 0.3em; }

.atelier-section {
    position: relative; z-index: 2; padding: 8rem 2rem;
    max-width: 1000px; margin: 0 auto; text-align: center;
}
.atelier-manifesto {
    font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--parchment-white); line-height: 1.4; margin-bottom: 4rem; font-weight: 500;
}
.atelier-manifesto em { color: var(--luminous-gold); font-style: normal; text-shadow: 0 0 20px rgba(229, 192, 123, 0.3); }
.atelier-text { max-width: 700px; margin: 0 auto 2rem; font-size: 1.25rem;
    color: var(--text-muted); font-style: italic; line-height: 1.8; }

.contrast-grid {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem;
    margin: 6rem auto; max-width: 900px; align-items: center;
}
.contrast-box { padding: 2rem; border: 1px solid var(--border-subtle);
    background: rgba(0,0,0,0.4); text-align: left; }
.contrast-title {
    font-family: var(--font-heading); font-size: 1rem; letter-spacing: 0.2em;
    text-transform: uppercase; margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.8rem;
}
.bad-box .contrast-title { color: var(--cinnabar-red); border-color: rgba(199, 62, 58, 0.3); }
.good-box .contrast-title { color: var(--luminous-gold); border-color: rgba(229, 192, 123, 0.3); }
.contrast-list { list-style: none; }
.contrast-list li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem;
    font-size: 1rem; color: var(--text-muted); }
.bad-box .contrast-list li::before { content: '\2715'; color: var(--cinnabar-red); position: absolute; left: 0; }
.good-box .contrast-list li::before { content: '\25C6'; color: var(--luminous-gold); position: absolute; left: 0; font-size: 0.8rem; top: 4px; }
.contrast-divider { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-muted); }

.atelier-signature { margin-top: 6rem; padding-top: 4rem; border-top: 1px solid var(--border-subtle); }
.signature-text { font-family: var(--font-heading); font-size: 1.2rem; color: var(--luminous-gold); letter-spacing: 0.1em; }

/* ==========================================================================
   Cart & checkout — template 5
   ========================================================================== */

.checkout-container { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 8rem 2rem 4rem; }
.checkout-header { text-align: center; margin-bottom: 3rem; }
.checkout-title {
    font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--luminous-gold); line-height: 1.2; font-weight: 500;
    text-shadow: 0 0 30px rgba(229, 192, 123, 0.3);
}

.antisha-woo-wrap { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 8rem 2rem 6rem; }
.antisha-woo-wrap h1, .antisha-woo-wrap h2 { font-family: var(--font-heading); color: var(--parchment-white); font-weight: 500; }
.antisha-woo-wrap a { color: var(--luminous-gold); }

/* WooCommerce form controls restyled into the atelier language */
.woocommerce form .form-row { display: block; margin-bottom: 1.4rem; }

/* --------------------------------------------------------------------------
   Checkout layout: form left, sealed summary right (sticky), paired fields.
   Kills the fill-scroll-fill crawl of single-column forms.
   -------------------------------------------------------------------------- */
form.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0 4rem;
    align-items: start;
}
/* Row 1 is the full-width band (notices, coupon toggle and its form); the two
   working columns start at row 2 so the summary heading tops out level with
   the first field rather than floating above it. */
form.woocommerce-checkout > .woocommerce-notices-wrapper,
form.woocommerce-checkout > .woocommerce-form-coupon-toggle,
form.woocommerce-checkout > .checkout_coupon { grid-column: 1 / -1; }
form.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 2; min-width: 0; }
/* Heading + panel travel together (see woocommerce/checkout/form-checkout.php). */
form.woocommerce-checkout .antisha-order-column {
    grid-column: 2; grid-row: 2;
    position: sticky; top: 6.5rem;
    min-width: 0;
}
form.woocommerce-checkout #order_review_heading { margin-top: 0; }
form.woocommerce-checkout #order_review {
    border: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.35);
    padding: 1.6rem;
}
form.woocommerce-checkout #order_review table.shop_table { border: none; margin-bottom: 1rem; }
form.woocommerce-checkout #order_review table.shop_table th,
form.woocommerce-checkout #order_review table.shop_table td { padding: 0.7rem 0.4rem; }

/* Woo's col2-set normally floats; flatten it inside our grid column. */
form.woocommerce-checkout .col2-set { display: block; width: 100%; }
form.woocommerce-checkout .col2-set .col-1,
form.woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }

/* Paired half-width fields */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}
.woocommerce form .form-row-first { grid-column: 1; }
.woocommerce form .form-row-last { grid-column: 2; }
.woocommerce form .form-row-wide { grid-column: 1 / -1; }
.woocommerce form .form-row.notes { grid-column: 1 / -1; }

/*
   WooCommerce's per-country locale rules force city/state/postcode/phone to
   form-row-wide — in PHP and again client-side via address-i18n.js when the
   country changes. Pairing them by field id survives both, and letting them
   auto-place (rather than pinning a column) keeps the rhythm correct in
   locales where one of the fields is hidden entirely.
*/
.woocommerce form #billing_city_field,
.woocommerce form #billing_state_field,
.woocommerce form #billing_postcode_field,
.woocommerce form #billing_phone_field,
.woocommerce form #shipping_city_field,
.woocommerce form #shipping_state_field,
.woocommerce form #shipping_postcode_field {
    grid-column: span 1;
}

#order_review .wc_payment_methods { margin-bottom: 1.4rem; }
#order_review .form-row.place-order { margin-bottom: 0; }
#order_review #place_order { width: 100%; }

/* The free-shipping nudge and totals read as one panel */
#order_review .woocommerce-shipping-totals .amount { color: var(--luminous-gold); }

@media (max-width: 1000px) {
    form.woocommerce-checkout { display: block; }
    form.woocommerce-checkout .antisha-order-column { position: static; margin-top: 2.5rem; }
}
@media (max-width: 640px) {
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
    .woocommerce form .form-row-first, .woocommerce form .form-row-last { grid-column: 1; }
}
.woocommerce form .form-row label,
.antisha-woo-wrap label {
    display: block; font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem;
    font-family: var(--font-heading);
}
.woocommerce .input-text, .antisha-woo-wrap input[type="text"],
.antisha-woo-wrap input[type="email"], .antisha-woo-wrap input[type="tel"],
.antisha-woo-wrap input[type="password"], .antisha-woo-wrap input[type="number"],
.antisha-woo-wrap textarea, .antisha-woo-wrap select {
    width: 100%; background: rgba(0,0,0,0.5); border: none;
    border-bottom: 1px solid var(--border-subtle); padding: 0.6rem 0;
    color: var(--parchment-white); font-family: var(--font-body); font-size: 1.05rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.woocommerce .input-text:focus, .antisha-woo-wrap input:focus,
.antisha-woo-wrap textarea:focus, .antisha-woo-wrap select:focus {
    outline: none; border-color: var(--luminous-gold);
    box-shadow: 0 2px 8px -5px rgba(229, 192, 123, 0.3);
}
.antisha-woo-wrap select option { background: var(--void-dark); }

.antisha-woo-wrap select,
.woocommerce select {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.5)
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23E5C07B'/%3E%3C/svg%3E")
        no-repeat right 0.6rem center;
    border: 1px solid var(--border-fainter);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--parchment-white);
    padding: 0.6rem 2rem 0.6rem 0.6rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
}

.antisha-woo-wrap input::placeholder,
.antisha-woo-wrap textarea::placeholder { color: rgba(242, 239, 233, 0.28); font-style: italic; }

/* Section headings inside Woo forms take template 5's gold-bar treatment. */
.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields > h3,
#order_review_heading,
.antisha-woo-wrap .cart_totals > h2 {
    font-family: var(--font-heading);
    color: var(--parchment-white);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    border-left: 2px solid var(--luminous-gold);
    padding-left: 1rem;
    margin: 2.5rem 0 1.4rem;
}

.woocommerce-privacy-policy-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.woocommerce-terms-and-conditions-wrapper { margin-bottom: 1.5rem; }

.wc_payment_methods { list-style: none; margin-bottom: 2rem; }
.wc_payment_method label {
    display: inline;
    font-family: var(--font-heading);
    color: var(--parchment-white);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.wc_payment_method .payment_box {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0.6rem 0 0 1.6rem;
}

/* --------------------------------------------------------------------------
   select2 / selectWoo. WooCommerce swaps the native country and state selects
   for JS widgets and ships its own stylesheet for them; the theme drops Woo's
   general CSS but not select2's, so these rendered as stock-white pills in the
   middle of a black checkout.
   -------------------------------------------------------------------------- */
.select2-container--default .select2-selection--single {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-fainter);
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0; height: auto; min-height: 44px;
    display: flex; align-items: center; padding: 0 2rem 0 0.6rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--parchment-white); font-family: var(--font-body);
    font-size: 1.05rem; line-height: 1.4; padding: 0;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: rgba(242, 239, 233, 0.35); }
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%; right: 0.6rem; top: 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: none; width: 10px; height: 6px; margin-top: -3px; margin-left: -5px;
    background: var(--luminous-gold);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--luminous-gold); }
.select2-container--default.select2-container--open .select2-selection__arrow b { transform: rotate(180deg); }

.select2-dropdown {
    background: var(--void-dark); border: 1px solid var(--border-subtle);
    border-radius: 0; color: var(--text-main);
}
.select2-container--default .select2-results__option {
    background: transparent; color: var(--text-main);
    font-family: var(--font-body); font-size: 1rem; padding: 0.6rem 0.9rem;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background: rgba(229, 192, 123, 0.16); color: var(--luminous-gold);
}
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
    background: rgba(229, 192, 123, 0.08); color: var(--luminous-gold);
}
.select2-container--default .select2-search--dropdown { padding: 0.5rem; }
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(0, 0, 0, 0.6); border: 1px solid var(--border-fainter);
    color: var(--parchment-white); border-radius: 0; padding: 0.5rem 0.7rem;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none; border-color: var(--luminous-gold);
}

/* Native controls inherit the house metal rather than the OS blue. */
.woocommerce input[type="radio"],
.woocommerce input[type="checkbox"],
.antisha-woo-wrap input[type="radio"],
.antisha-woo-wrap input[type="checkbox"] { accent-color: var(--luminous-gold); }

/* WooCommerce's own list resets left with its stylesheet; without these the
   shipping choices show pale disc bullets. */
#shipping_method,
ul.woocommerce-shipping-methods,
.woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }
#shipping_method li { margin-bottom: 0.5rem; }
#shipping_method label { display: inline; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text-main); }

.woocommerce table.shop_table, .antisha-woo-wrap table {
    width: 100%; border-collapse: collapse; border: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td,
.antisha-woo-wrap table th, .antisha-woo-wrap table td {
    padding: 1rem; border-bottom: 1px solid var(--border-fainter); text-align: left;
}
.woocommerce table.shop_table th, .antisha-woo-wrap table th {
    font-family: var(--font-heading); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); font-weight: 400;
}

/* --------------------------------------------------------------------------
   Cart table. WooCommerce serves a 300px thumbnail, which without a width
   constraint turns every cart row into a poster.
   -------------------------------------------------------------------------- */
.woocommerce table.cart td.product-thumbnail { width: 96px; }
.woocommerce table.cart td.product-thumbnail img {
    width: 76px; height: 95px; object-fit: cover;
    border: 1px solid var(--border-fainter);
    filter: brightness(0.9) contrast(1.1);
}
.woocommerce table.cart td.product-remove { width: 2.5rem; text-align: center; }
.woocommerce table.cart a.remove {
    display: inline-grid; place-items: center;
    width: 1.75rem; height: 1.75rem; border-radius: 50%;
    border: 1px solid var(--border-fainter);
    color: var(--text-muted); text-decoration: none; font-size: 1rem; line-height: 1;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.woocommerce table.cart a.remove:hover { color: var(--cinnabar-red); border-color: var(--cinnabar-red); }
.woocommerce table.cart td.product-name a {
    font-family: var(--font-heading); color: var(--parchment-white);
    text-decoration: none; font-size: 1.05rem;
}
.woocommerce table.cart td.product-name a:hover { color: var(--luminous-gold); }
.woocommerce table.cart td.product-price,
.woocommerce table.cart td.product-subtotal { color: var(--luminous-gold); font-family: var(--font-heading); }

/* Objects are sold individually, so the quantity column is always "1" and
   only adds noise. */
.woocommerce table.cart th.product-quantity,
.woocommerce table.cart td.product-quantity { display: none; }

/* Coupon row: field and action side by side, actions right-aligned. */
.woocommerce table.cart td.actions { padding: 1.2rem 1rem; }
.woocommerce table.cart td.actions .coupon {
    display: flex; gap: 0.8rem; align-items: stretch; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.woocommerce table.cart td.actions .coupon label { display: none; }
.woocommerce table.cart td.actions .coupon .input-text {
    flex: 0 1 260px; border: 1px solid var(--border-fainter);
    border-bottom-color: var(--border-subtle); padding: 0.7rem 1rem;
}
.woocommerce table.cart td.actions .coupon .button { flex: none; padding: 0.7rem 1.6rem; }
.woocommerce table.cart td.actions > .button { float: right; padding: 0.7rem 1.6rem; }

.woocommerce .cart-collaterals { margin-top: 2.5rem; }
.woocommerce .cart_totals table { border: 1px solid var(--border-subtle); }
.woocommerce .wc-proceed-to-checkout { margin-top: 1.5rem; }
.woocommerce .wc-proceed-to-checkout .checkout-button { width: 100%; }

@media (max-width: 700px) {
    .woocommerce table.cart td.actions .coupon { flex-direction: column; }
    .woocommerce table.cart td.actions .coupon .input-text,
    .woocommerce table.cart td.actions .coupon .button,
    .woocommerce table.cart td.actions > .button { width: 100%; float: none; }
}

.woocommerce .button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button, .woocommerce #place_order,
.woocommerce button.button.alt, .woocommerce a.button.alt {
    display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
    background: transparent; border: 1px solid var(--luminous-gold);
    color: var(--luminous-gold); font-family: var(--font-heading);
    font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase;
    cursor: pointer; padding: 1.1rem 2rem; text-decoration: none; border-radius: 0;
    transition: all 0.4s var(--ease-ritual);
}
.woocommerce .button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce a.button:hover,
.woocommerce #place_order:hover {
    background: rgba(229, 192, 123, 0.12); color: var(--parchment-white);
    box-shadow: 0 0 30px rgba(229, 192, 123, 0.4);
}

.woocommerce-message, .woocommerce-info, .woocommerce-error {
    border: 1px solid var(--border-subtle); border-left: 2px solid var(--luminous-gold);
    background: rgba(229, 192, 123, 0.05); padding: 1.2rem 1.6rem;
    list-style: none; margin-bottom: 2rem;
}
.woocommerce-error { border-left-color: var(--cinnabar-red); background: rgba(199, 62, 58, 0.06); }

.secure-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-top: 0.8rem; }
.checkout-note { text-align: center; font-style: italic; color: var(--text-muted); margin-top: 1rem; font-size: 1rem; }

/* WooCommerce's password-visibility toggle ships unstyled and renders as a
   stray dark square against this palette. */
.woocommerce form .password-input,
.woocommerce-page form .password-input { display: block; position: relative; }
.woocommerce form .show-password-input {
    position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
    width: 2rem; height: 2rem; padding: 0; cursor: pointer;
    background: transparent; border: none;
    color: var(--text-muted); font-size: 0;
}
.woocommerce form .show-password-input::after {
    content: '👁'; font-size: 0.95rem; line-height: 1; opacity: 0.55;
}
.woocommerce form .show-password-input:hover::after { opacity: 1; }
.woocommerce form .show-password-input.display-password::after { opacity: 1; color: var(--luminous-gold); }

/* Account navigation, when a patron is signed in */
.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2.5rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border-subtle); }
.woocommerce-MyAccount-navigation a {
    font-family: var(--font-heading); font-size: 0.82rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-muted); text-decoration: none;
}
.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a { color: var(--luminous-gold); }

.compliance-footer {
    position: relative; z-index: 2; max-width: 1000px; margin: 6rem auto 0;
    padding: 3rem 2rem; border-top: 1px solid var(--border-subtle); text-align: center;
}
.compliance-title {
    font-family: var(--font-heading); font-size: 0.85rem; color: var(--text-muted);
    letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.compliance-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; max-width: 800px; margin: 0 auto; }

/* ==========================================================================
   Marketing & conversion layer
   ========================================================================== */

.promo-bar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 110;
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    background: linear-gradient(to right, rgba(184, 145, 80, 0.14), rgba(157, 41, 51, 0.10), rgba(184, 145, 80, 0.14)), var(--void-dark);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.55rem 3rem;
}
.promo-bar-text {
    font-family: var(--font-heading); font-size: 0.78rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-main); text-align: center;
}
.promo-bar-text strong { color: var(--luminous-gold); font-weight: 600; letter-spacing: 0.2em; }
.promo-bar-close {
    position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 0.85rem; padding: 0.4rem;
}
.promo-bar-close:hover { color: var(--cinnabar-red); }

body.has-promo-bar .site-header { top: var(--promo-h, 2.2rem); }
@media (max-width: 700px) {
    .promo-bar { padding: 0.5rem 2.6rem 0.5rem 0.8rem; }
    .promo-bar-text { font-size: 0.66rem; letter-spacing: 0.08em; }
    body.has-promo-bar .site-header { top: var(--promo-h, 3.4rem); }
}

/* What arrives / assurances under the Acquire button */
.arrival-list, .assurance-list { list-style: none; margin-top: 1.4rem; }
.arrival-list li, .assurance-list li {
    position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem;
    font-size: 0.95rem; color: var(--text-muted); line-height: 1.5;
}
.arrival-list li::before {
    content: '◆'; position: absolute; left: 0; top: 2px;
    color: var(--luminous-gold); font-size: 0.7rem;
}
.assurance-list { border-top: 1px solid var(--border-fainter); padding-top: 1.2rem; }
.assurance-list li::before {
    content: '✦'; position: absolute; left: 0; top: 0;
    color: var(--arcane-cyan); font-size: 0.75rem; opacity: 0.8;
}

/* Related / masterpiece card strips */
.related-altar, .masters-strip {
    position: relative; z-index: 2;
    max-width: 1300px; margin: 0 auto; padding: 4rem 2rem 6rem;
}
.masters-strip { background: var(--void-black); padding-top: 6rem; }
.related-altar-title {
    font-family: var(--font-heading); text-align: center;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--parchment-white);
    font-weight: 500; margin-bottom: 3rem;
}
.related-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.related-card {
    display: flex; flex-direction: column; gap: 0.5rem;
    border: 1px solid var(--border-fainter); background: rgba(0, 0, 0, 0.35);
    padding: 1.2rem; text-decoration: none;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.related-card:hover {
    border-color: var(--luminous-gold); transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
}
.related-card-img { display: block; aspect-ratio: 4/5; overflow: hidden; margin-bottom: 0.8rem; }
.related-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.85) contrast(1.12);
    transition: transform 1s ease;
}
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card-origin {
    font-family: var(--font-heading); color: var(--arcane-cyan);
    font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.related-card-name {
    font-family: var(--font-heading); color: var(--parchment-white);
    font-size: 1.05rem; line-height: 1.35;
}
.related-card:hover .related-card-name { color: var(--luminous-gold); }
.related-card-price { font-family: var(--font-heading); color: var(--luminous-gold); font-size: 0.95rem; }
.related-card-stock { font-size: 0.85rem; font-style: italic; color: var(--text-muted); }

/* The Standard strip */
.standard-strip {
    position: relative; z-index: 2; background: var(--void-black);
    padding: 2rem 2rem 8rem; max-width: 1100px; margin: 0 auto;
}
.standard-title {
    font-family: var(--font-heading); text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--parchment-white);
    font-weight: 500; margin-bottom: 3rem;
}
.standard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.standard-item { border-top: 1px solid var(--border-subtle); padding-top: 1.4rem; }
.standard-item h3 {
    font-family: var(--font-heading); color: var(--luminous-gold);
    font-size: 1rem; letter-spacing: 0.15em; text-transform: uppercase;
    font-weight: 500; margin-bottom: 0.8rem;
}
.standard-item p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; }

/* The Second Covenant grant on the confirmation page */
.covenant-grant {
    margin: 3.5rem auto; max-width: 620px; text-align: center;
    border: 1px solid var(--border-subtle); background: rgba(229, 192, 123, 0.04);
    padding: 2.5rem 2rem;
}
.covenant-grant-title {
    font-family: var(--font-heading); color: var(--parchment-white);
    font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem;
}
.covenant-grant-text { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.covenant-grant-code {
    font-family: var(--font-heading); color: var(--luminous-gold);
    font-size: 1.6rem; letter-spacing: 0.35em;
    border: 1px dashed var(--gold-deep); display: inline-block;
    padding: 0.7rem 1.6rem; margin-bottom: 1rem;
    text-shadow: 0 0 18px rgba(229, 192, 123, 0.35);
}
.covenant-grant-fine { font-size: 0.85rem; font-style: italic; color: var(--text-muted); }

.antisha-ship-nudge td {
    font-style: italic; color: var(--arcane-cyan); font-size: 0.9rem;
    opacity: 0.85;
}

/* FAQ accordion (native details/summary) */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
    border-bottom: 1px solid var(--border-fainter);
    padding: 1.2rem 0;
}
.faq-list summary {
    font-family: var(--font-heading); color: var(--parchment-white);
    font-size: 1.1rem; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--luminous-gold); font-size: 1.3rem; flex: none; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] summary { color: var(--luminous-gold); }
.faq-list details p { color: var(--text-muted); padding-top: 0.9rem; max-width: 65ch; }

/* Search form (results + 404) */
.search-form {
    display: flex; gap: 0.8rem; margin-top: 2.5rem;
    width: min(520px, 100%); align-items: stretch;
}
.search-form input[type="search"] {
    flex: 1 1 auto; min-width: 0;
    background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-fainter);
    border-bottom-color: var(--border-subtle);
    color: var(--parchment-white); font-family: var(--font-body);
    font-size: 1.05rem; padding: 0.7rem 1rem;
}
.search-form input[type="search"]::placeholder { color: rgba(242, 239, 233, 0.28); font-style: italic; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--luminous-gold); }
.search-form .btn-quiet { flex: none; padding: 0.7rem 1.6rem; }

.search-page-list { list-style: none; max-width: 640px; margin: 0 auto; }
.search-page-list li { border-bottom: 1px solid var(--border-fainter); }
.search-page-list a {
    display: block; padding: 1rem 0; text-decoration: none;
    font-family: var(--font-heading); color: var(--parchment-white);
    letter-spacing: 0.05em; transition: color 0.3s ease;
}
.search-page-list a:hover { color: var(--luminous-gold); }

/* Locale options that are staged but not yet live */
.locale-option.is-soon { opacity: 0.45; cursor: default; pointer-events: none; }
.locale-option.is-soon .currency { font-style: italic; }

@media (max-width: 900px) {
    .related-grid { grid-template-columns: 1fr; }
    .standard-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Site footer
   ========================================================================== */

.site-footer {
    position: relative; z-index: 2; background: var(--void-black);
    border-top: 1px solid var(--border-subtle); padding: 5rem var(--gutter) 3rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
    max-width: 1400px; margin: 0 auto 4rem;
}
.footer-brand-name {
    font-family: var(--font-heading); color: var(--parchment-white);
    font-size: 1rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-brand-text { font-style: italic; color: var(--text-muted); font-size: 1rem; max-width: 40ch; }
.footer-col-title {
    font-family: var(--font-heading); font-size: 0.8rem; color: var(--luminous-gold);
    letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--luminous-gold); }
.footer-base {
    max-width: 1400px; margin: 0 auto; padding-top: 2rem;
    border-top: 1px solid var(--border-fainter);
    display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    font-size: 0.82rem; color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .pain-grid { grid-template-columns: repeat(4, 1fr); }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
    :root { --gutter: 2rem; }
    .product-container { grid-template-columns: 1fr; padding-top: 6rem; }
    .product-visuals {
        position: static; min-height: auto; max-height: none; overflow: visible;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle); padding: 2rem;
    }
    /* On phones the plate reads first — it is the only thing establishing the
       object before the price is asked for. */
    .product-visuals .main-image-wrapper { order: 1; }
    .product-visuals .thumbnails { order: 2; margin-bottom: 2rem; }
    .product-visuals .purchase-info { order: 3; border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; margin-bottom: 0; }
    .product-narrative { padding: 2rem; }
    .breadcrumb { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .pain-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-grid { grid-template-columns: 1fr; }
    .contrast-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .contrast-divider { display: none; }
    .altar-meta { flex-direction: column; gap: 0.5rem; }
    .rune-corner { width: 30px; height: 30px; }
    .materials-grid { grid-template-columns: 1fr; }

    .nav-toggle {
        display: block;
        position: relative;
        z-index: 130;
    }
    .nav-right {
        position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 82vw);
        background: var(--void-dark); border-left: 1px solid var(--border-subtle);
        flex-direction: column; align-items: flex-start; justify-content: flex-start;
        padding: 6rem 2rem 2rem; gap: 2rem;
        transform: translateX(100%); transition: transform 0.4s var(--ease-ritual);
        z-index: 120; overflow-y: auto;
    }
    .nav-right.is-open { transform: translateX(0); }
    .primary-nav ul { flex-direction: column; gap: 1.5rem; }
    .locale-dropdown { padding-left: 0; border-left: none; border-top: 1px solid var(--border-subtle); padding-top: 2rem; width: 100%; }
    .locale-menu { position: static; opacity: 1; visibility: visible; transform: none; width: 100%; box-shadow: none; border: none; padding-left: 0; }
    .locale-menu { display: none; }
    .locale-dropdown.is-open .locale-menu { display: block; }
}

/* Mobile cart. WooCommerce's small-screen stylesheet is dequeued along with
   the rest of its CSS, so the table is stacked here instead. Woo already
   emits data-title on each cell. */
@media (max-width: 768px) {
    .woocommerce table.cart thead { display: none; }
    .woocommerce table.cart,
    .woocommerce table.cart tbody,
    .woocommerce table.cart tr,
    .woocommerce table.cart td { display: block; width: 100%; }
    .woocommerce table.cart tr.cart_item {
        position: relative; display: grid;
        grid-template-columns: 76px 1fr; gap: 0 1rem;
        padding: 1.2rem 2.6rem 1.2rem 0;
        border-bottom: 1px solid var(--border-fainter);
    }
    .woocommerce table.cart td { border: none; padding: 0.15rem 0; }
    .woocommerce table.cart td.product-thumbnail { grid-row: 1 / span 3; width: 76px; }
    .woocommerce table.cart td.product-remove { position: absolute; top: 1.2rem; right: 0; width: auto; }
    .woocommerce table.cart td.product-price::before,
    .woocommerce table.cart td.product-subtotal::before {
        content: attr(data-title) ": ";
        color: var(--text-muted); font-family: var(--font-heading);
        font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
    }
    .woocommerce table.cart td.actions { padding: 1.2rem 0; }
    .woocommerce .cart_totals table th,
    .woocommerce .cart_totals table td { display: table-cell; }
}

@media (max-width: 560px) {
    .pain-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding-bottom: 4rem; }
    .hero-title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
    .altar-quote { padding: 0 1.2rem; }
    .altar-quote::before, .altar-quote::after { display: none; }
    .drop-cap::first-letter { font-size: 3.2rem; }
}

@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;
    }
    .hero-content { opacity: 1; }
    .pain-card { opacity: 1; transform: none; }
}
