/* ============================================================
   SAVIA - ANCESTRAL SKIN RITUALS
   Dark botanical luxury. Square corners, fine gold rules,
   emerald depths, burgundy bloom, iridescent accents.
   ============================================================ */

:root {
    --emerald: #0B302E;
    --emerald-deep: #07201E;
    --emerald-abyss: #041413;
    --burgundy: #5A0F22;
    --turquoise: #0F8FA0;
    --gold: #C9A96B;
    --gold-soft: rgba(201, 169, 107, 0.55);
    --pearl: #E9E4D8;
    --text: #DDD8CB;
    --text-dim: #A8A396;
    --display: 'Cinzel Decorative', 'Times New Roman', serif;
    --body: 'Montserrat', Arial, sans-serif;
    --script: 'Pinyon Script', cursive;
    --rule: 1px solid rgba(201, 169, 107, 0.28);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--emerald-deep);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Shared elements ---------- */

.wrap {
    width: min(1240px, 92%);
    margin: 0 auto;
}

.eyebrow {
    font-family: var(--body);
    font-size: 0.7rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.4rem;
}

.script {
    font-family: var(--script);
    font-size: 1.7rem;
    color: var(--gold);
    line-height: 1.4;
}

.display {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.18;
    color: var(--pearl);
}

.btn {
    display: inline-block;
    font-family: var(--body);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    padding: 0.95rem 2.4rem;
    border: 1px solid var(--gold-soft);
    background: transparent;
    color: var(--pearl);
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn:hover { background: rgba(201, 169, 107, 0.14); border-color: var(--gold); }

.btn-gold {
    background: var(--gold);
    color: var(--emerald-abyss);
    border-color: var(--gold);
}
.btn-gold:hover { background: #D8BC82; color: var(--emerald-abyss); }

.btn-outline { border-color: var(--gold-soft); color: var(--pearl); }
.btn-outline:hover { border-color: var(--gold); background: rgba(201, 169, 107, 0.12); }

.btn-quiet { border-color: rgba(221, 216, 203, 0.25); color: var(--text-dim); }
.btn-quiet:hover { border-color: rgba(221, 216, 203, 0.5); color: var(--pearl); }

.btn-card { padding: 0.7rem 1.4rem; font-size: 0.64rem; width: 100%; text-align: center; }

.btn-large { width: 100%; padding: 1.05rem 2rem; }

.gold-rule {
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border: none;
    margin: 2.2rem 0;
}

.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    margin: 0 auto 2rem;
    color: var(--gold);
}
.ornament-divider::before,
.ornament-divider::after {
    content: '';
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.ornament-divider::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.ornament-divider svg { width: 34px; height: 34px; }

/* Shell emblem */
.emblem {
    display: inline-block;
    color: var(--gold);
}
.emblem svg { display: block; }

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 1.4rem 0;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
    background: rgba(4, 20, 19, 0.94);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 1px 0 rgba(201, 169, 107, 0.2);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    font-family: var(--display);
    font-size: 1.5rem;
    letter-spacing: 0.34em;
    color: var(--pearl);
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.brand span { color: var(--gold); }

.main-nav { display: flex; align-items: center; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.6rem;
    list-style: none;
}
.nav-links a:not(.cart-icon) {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.nav-links a:not(.cart-icon):hover {
    color: var(--gold);
    border-bottom-color: var(--gold-soft);
}

.cart-icon { position: relative; color: var(--pearl); display: flex; align-items: center; }
.cart-icon svg { width: 21px; height: 21px; }
.cart-icon:hover { color: var(--gold); }
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--burgundy);
    color: var(--pearl);
    border: 1px solid var(--gold-soft);
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    letter-spacing: 0;
    padding: 0 3px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    z-index: 960;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: var(--pearl);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero: The Portal ---------- */

.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(4, 20, 19, 0.18) 0%, rgba(4, 20, 19, 0.62) 78%),
        linear-gradient(180deg, rgba(4, 20, 19, 0.55) 0%, rgba(4, 20, 19, 0.25) 30%, rgba(4, 20, 19, 0.28) 65%, rgba(4, 20, 19, 0.92) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 6%;
    max-width: 900px;
    margin: 0 auto;
}
.hero-emblem {
    width: 74px;
    height: 74px;
    margin: 0 auto 2.4rem;
    opacity: 0;
    animation: emblem-in 2.4s ease 0.5s forwards;
}
@keyframes emblem-in {
    from { opacity: 0; transform: scale(0.86) rotate(-4deg); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-emblem { opacity: 1; animation: none; }
}
.hero-wordmark {
    font-family: var(--display);
    font-size: clamp(3.6rem, 11vw, 8.5rem);
    letter-spacing: 0.32em;
    margin-left: 0.32em; /* balance tracking */
    color: var(--pearl);
    text-shadow: 0 2px 30px rgba(4, 20, 19, 0.8);
    line-height: 1;
}
.hero-sub {
    font-size: clamp(0.66rem, 1.6vw, 0.85rem);
    letter-spacing: 0.58em;
    margin-left: 0.58em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1.8rem;
}
.hero-tagline {
    font-family: var(--script);
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    color: rgba(233, 228, 216, 0.82);
    margin-top: 1.4rem;
}
.hero-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(233, 228, 216, 0.66);
}
.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 42px;
    margin: 0.9rem auto 0;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .hero-scroll::after { animation: none; } }

/* ---------- Philosophy ---------- */

.philosophy {
    background: linear-gradient(180deg, var(--emerald-abyss) 0%, var(--emerald-deep) 100%);
    padding: 8.5rem 0 8rem;
}
.philosophy-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.philosophy .display {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    margin-bottom: 2.6rem;
}
.philosophy p {
    max-width: 560px;
    margin: 0 auto 1.4rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 300;
}
.philosophy .script { display: block; margin-top: 2.4rem; font-size: 1.55rem; }

/* ---------- Botanical World ---------- */

.botanical-world {
    background: var(--emerald-deep);
    padding: 7rem 0;
}
.botanical-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}
.botanical-copy .display { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: 2rem; }
.botanical-copy p { color: var(--text-dim); font-size: 0.94rem; font-weight: 300; margin-bottom: 1.2rem; }
.botanical-list {
    list-style: none;
    margin-top: 2.4rem;
    border-top: var(--rule);
}
.botanical-list li {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    padding: 1.05rem 0;
    border-bottom: var(--rule);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pearl);
}
.botanical-list .list-num {
    font-family: var(--display);
    color: var(--gold);
    font-size: 0.8rem;
}

/* ---------- Featured / Product sections ---------- */

.rituals-products {
    background:
        radial-gradient(ellipse at 85% 20%, rgba(90, 15, 34, 0.16) 0%, transparent 55%),
        var(--emerald-abyss);
    padding: 8rem 0;
}
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}
.section-head .display { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 1.4rem; }
.section-head p { color: var(--text-dim); font-size: 0.92rem; font-weight: 300; margin: 0 auto; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.4rem, 2.4vw, 2.2rem);
}

.product-card {
    background: rgba(233, 228, 216, 0.025);
    border: 1px solid rgba(201, 169, 107, 0.16);
    display: flex;
    flex-direction: column;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.product-card:hover {
    border-color: var(--gold-soft);
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}
.product-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-info {
    padding: 1.5rem 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.product-card-subtitle {
    font-family: var(--script);
    font-size: 1.05rem;
    color: var(--gold);
    line-height: 1.3;
}
.product-card-title {
    font-family: var(--body);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pearl);
    line-height: 1.5;
}
.product-card-title a:hover { color: var(--gold); }
.product-card-price {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    margin-bottom: 0.9rem;
}
.product-card .btn-card { margin-top: auto; }
.product-card-status {
    display: block;
    text-align: center;
    font-size: 0.64rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.7rem 0;
    border: 1px dashed rgba(168, 163, 150, 0.35);
}
.section-cta { text-align: center; margin-top: 3.4rem; }

.loading-ritual {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 5rem 0;
}
.loading-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.35;
    animation: dot-breathe 1.4s ease-in-out infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-breathe {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { .loading-dot { animation: none; opacity: 0.7; } }

/* ---------- Ritual Experience ---------- */

.ritual-experience {
    background: linear-gradient(180deg, var(--emerald-abyss) 0%, #0A1F1D 50%, var(--emerald-abyss) 100%);
    padding: 8rem 0;
    overflow: hidden;
}
.ritual-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}
.ritual-steps { margin-top: 2.6rem; border-top: var(--rule); }
.ritual-step {
    display: grid;
    grid-template-columns: 3.4rem 1fr;
    gap: 1.4rem;
    padding: 1.6rem 0;
    border-bottom: var(--rule);
}
.ritual-step-num {
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--gold);
    line-height: 1.1;
}
.ritual-step h3 {
    font-size: 0.78rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--pearl);
    margin-bottom: 0.5rem;
}
.ritual-step p { font-size: 0.88rem; font-weight: 300; color: var(--text-dim); }

/* ---------- Brand Story ---------- */

.brand-story {
    background: var(--emerald-deep);
    padding: 8rem 0;
}
.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: center;
}
.story-image {
    position: relative;
}
.story-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid rgba(201, 169, 107, 0.25);
    padding: 10px;
}
.story-image::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(201, 169, 107, 0.22);
    pointer-events: none;
}
.story-copy .display { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 2rem; }
.story-copy p { color: var(--text-dim); font-size: 0.94rem; font-weight: 300; margin-bottom: 1.2rem; }
.story-copy .script { display: block; margin-top: 2rem; }

/* ---------- Closing Invitation ---------- */

.closing {
    position: relative;
    padding: 11rem 0;
    overflow: hidden;
    text-align: center;
}
.closing-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.closing-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.closing-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(4, 20, 19, 0.82) 0%, rgba(4, 20, 19, 0.6) 45%, rgba(4, 20, 19, 0.9) 100%);
}
.closing-content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.closing .display { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.closing p.lead { color: rgba(233, 228, 216, 0.78); font-size: 0.95rem; font-weight: 300; margin: 1.6rem auto 2.6rem; max-width: 460px; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--emerald-abyss);
    border-top: 1px solid rgba(201, 169, 107, 0.22);
    padding: 4.5rem 0 2.8rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}
.footer-brand .brand { font-size: 1.3rem; }
.footer-brand p {
    margin-top: 1.2rem;
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-dim);
    max-width: 300px;
}
.footer-col h4 {
    font-size: 0.66rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.3rem;
    font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    margin-top: 3.4rem;
    padding-top: 1.8rem;
    border-top: var(--rule);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(168, 163, 150, 0.7);
    letter-spacing: 0.12em;
}
.footer-bottom a { color: inherit; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
    position: relative;
    padding: 11rem 0 4.5rem;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(15, 143, 160, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(90, 15, 34, 0.2) 0%, transparent 55%),
        var(--emerald-abyss);
    text-align: center;
}
.page-hero .display { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero p {
    max-width: 540px;
    margin: 1.4rem auto 0;
    color: var(--text-dim);
    font-size: 0.92rem;
    font-weight: 300;
}

/* ---------- Shop page ---------- */

.catalog {
    background: var(--emerald-deep);
    padding: 4.5rem 0 8rem;
}
.catalog-anchor { scroll-margin-top: 90px; }
.catalog-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 3.4rem;
    align-items: start;
}

.filters-sidebar { position: sticky; top: 110px; }
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 1.1rem;
    border-bottom: var(--rule);
    margin-bottom: 1.6rem;
}
.filters-header h3 {
    font-family: var(--body);
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--pearl);
    font-weight: 500;
}
.btn-text {
    background: none;
    border: none;
    color: var(--gold);
    font-family: var(--body);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
}
.btn-text:hover { color: var(--pearl); }

.filter-group { margin-bottom: 2.2rem; }
.filter-group h4 {
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 0.9rem;
}
.price-inputs { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.price-inputs span { color: var(--text-dim); }
.price-input {
    width: 100%;
    background: rgba(233, 228, 216, 0.04);
    border: 1px solid rgba(201, 169, 107, 0.25);
    color: var(--pearl);
    padding: 0.6rem 0.8rem;
    font-family: var(--body);
    font-size: 0.8rem;
}
.price-input:focus { outline: none; border-color: var(--gold); }
.btn-small { padding: 0.6rem 1.4rem; font-size: 0.62rem; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text);
    cursor: pointer;
}
.checkbox-label input {
    accent-color: var(--gold);
    width: 15px; height: 15px;
}

select,
.sort-select {
    width: 100%;
    background: rgba(233, 228, 216, 0.04);
    border: 1px solid rgba(201, 169, 107, 0.25);
    color: var(--pearl);
    padding: 0.7rem 0.9rem;
    font-family: var(--body);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}
select:focus, .sort-select:focus { outline: none; border-color: var(--gold); }
select option { background: var(--emerald-abyss); color: var(--pearl); }

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.6rem;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
}
#product-count, .result-count {
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.catalog-toolbar .sort-wrap { width: 210px; }

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-dim);
    font-weight: 300;
    padding: 4rem 1rem;
}
.no-products a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }

/* Search results inherit the catalog grid; keep single-column on small screens */
@media (max-width: 560px) {
    .product-grid { gap: 1rem; }
}

/* Pagination */
.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 3.4rem;
    flex-wrap: wrap;
}
.pagination-btn {
    background: transparent;
    border: 1px solid rgba(201, 169, 107, 0.3);
    color: var(--text);
    font-family: var(--body);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.pagination-btn:hover { border-color: var(--gold); color: var(--gold); }
.pagination-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--emerald-abyss);
}
.pagination-ellipsis { color: var(--text-dim); align-self: center; }

/* ---------- Product detail page ---------- */

.product-detail {
    background:
        radial-gradient(ellipse at 80% 10%, rgba(90, 15, 34, 0.14) 0%, transparent 50%),
        var(--emerald-deep);
    padding: 8.5rem 0 7rem;
}
.product-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}
.product-images img {
    width: 100%;
    border: 1px solid rgba(201, 169, 107, 0.2);
    padding: 8px;
}
.thumbnail-gallery {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.9rem;
    overflow-x: auto;
}
.thumbnail-gallery img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border: 1px solid rgba(201, 169, 107, 0.2);
    padding: 0;
    flex-shrink: 0;
}
.product-eyebrow {
    font-family: var(--script);
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 0.7rem;
}
.product-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.25;
    color: var(--pearl);
    margin-bottom: 1.4rem;
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin: 1rem 0 0.6rem;
    font-size: 1.35rem;
    color: var(--pearl);
    letter-spacing: 0.06em;
}
.price-compare { color: var(--text-dim); text-decoration: line-through; font-size: 1rem; }
.price-discount { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--gold); }
.product-inventory { margin: 0.4rem 0 1.6rem; }
.inventory-status {
    display: inline-block;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(201, 169, 107, 0.3);
    color: var(--gold);
}
.inventory-status.out-of-stock { border-color: rgba(90, 15, 34, 0.9); color: #C98A96; }
.product-description {
    color: var(--text-dim);
    font-size: 0.94rem;
    font-weight: 300;
    margin-bottom: 2.2rem;
    max-width: 480px;
}
.variant-selector { margin-bottom: 1.8rem; }
.variant-label {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.7rem;
}
.variant-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.variant-button {
    background: transparent;
    border: 1px solid rgba(201, 169, 107, 0.3);
    color: var(--text);
    font-family: var(--body);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.variant-button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.variant-button.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--emerald-abyss);
}
.variant-button:disabled, .variant-button.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}
.add-to-cart-button { width: 100%; max-width: 420px; }
.add-to-cart-button:disabled {
    background: transparent;
    border-color: rgba(168, 163, 150, 0.35);
    color: var(--text-dim);
    cursor: not-allowed;
}
.product-ritual-note {
    margin-top: 2.4rem;
    padding: 1.5rem 1.7rem;
    border-left: 1px solid var(--gold);
    background: rgba(201, 169, 107, 0.05);
}
.ritual-note-text { font-family: var(--script); font-size: 1.25rem; color: rgba(233, 228, 216, 0.85); line-height: 1.5; }

.breadcrumb {
    font-size: 0.66rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2.6rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--pearl); }

/* ---------- Search page ---------- */

.search-section {
    background: var(--emerald-deep);
    padding: 4rem 0 8rem;
    min-height: 60vh;
}
.search-form-wrap { max-width: 620px; margin: 0 auto 3rem; }
.search-form { display: flex; gap: 0; }
.search-form input {
    flex: 1;
    background: rgba(233, 228, 216, 0.04);
    border: 1px solid rgba(201, 169, 107, 0.3);
    border-right: none;
    color: var(--pearl);
    padding: 1rem 1.3rem;
    font-family: var(--body);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
}
.search-form input:focus { outline: none; border-color: var(--gold); }
.search-form button {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--emerald-abyss);
    font-family: var(--body);
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding: 0 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.search-form button:hover { background: #D8BC82; }
#search-info { text-align: center; margin-bottom: 2.4rem; color: var(--text-dim); font-size: 0.8rem; letter-spacing: 0.14em; }
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4.5rem 1.5rem;
    color: var(--text-dim);
    font-weight: 300;
}
.empty-state p:first-child { font-family: var(--display); font-size: 1.4rem; color: var(--pearl); margin-bottom: 0.8rem; }
.empty-state-sub { font-size: 0.86rem; margin-bottom: 2rem; }

/* ---------- Cart drawer ---------- */

#cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
}
#cart-drawer.active { visibility: visible; pointer-events: none; }

.cart-drawer-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 10, 9, 0.72);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}
#cart-drawer.active .cart-drawer-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-drawer-content {
    position: fixed;
    top: 0;
    right: -420px;
    width: min(420px, 100%);
    height: 100vh;
    background: var(--emerald-abyss);
    border-left: 1px solid rgba(201, 169, 107, 0.3);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.35, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}
#cart-drawer.active .cart-drawer-content { right: 0; }

.cart-drawer-header {
    padding: 1.6rem 1.8rem;
    border-bottom: var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-drawer-header h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--pearl);
}
.close-cart {
    background: none;
    border: none;
    font-size: 1.9rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-dim);
    line-height: 1;
}
.close-cart:hover { color: var(--gold); }

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
    font-weight: 300;
}
.cart-emblem { width: 58px; height: 58px; color: var(--gold); opacity: 0.8; }
.cart-emblem svg { width: 100%; height: 100%; }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.8rem; }
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: var(--rule);
}
.cart-item img { width: 74px; height: 96px; object-fit: cover; border: 1px solid rgba(201, 169, 107, 0.2); }
.cart-item-details { flex: 1; }
.cart-item-details h4 {
    font-family: var(--body);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pearl);
    margin: 0 0 4px 0;
    line-height: 1.5;
}
.cart-item-details .variant-title { margin: 3px 0; font-size: 0.72rem; color: var(--text-dim); font-weight: 300; }
.cart-item-details .item-price { margin: 3px 0; font-size: 0.8rem; color: var(--gold); letter-spacing: 0.08em; }
.cart-item-status { font-size: 0.66rem; font-weight: 500; margin: 5px 0; }
.cart-item-status.out-of-stock { color: #C98A96; }

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.6rem;
}
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.quantity-controls button {
    width: 26px; height: 26px;
    background: transparent;
    border: 1px solid rgba(201, 169, 107, 0.35);
    color: var(--pearl);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.quantity-controls button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.quantity-controls button:disabled { opacity: 0.3; cursor: not-allowed; }
.quantity-controls span { font-size: 0.82rem; color: var(--pearl); min-width: 16px; text-align: center; }
.remove-btn {
    background: none;
    border: none;
    font-family: var(--body);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0;
}
.remove-btn:hover { color: var(--gold); }

.cart-item-unavailable { opacity: 0.55; }
.cart-item-unavailable .quantity-controls button:disabled { opacity: 0.3; cursor: not-allowed; }

.cart-footer {
    padding: 1.5rem 1.8rem 1.8rem;
    border-top: var(--rule);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pearl);
    margin-bottom: 0.5rem;
}
.cart-empty-note { color: var(--text-dim); font-weight: 300; padding: 2rem 0; text-align: center; }

.cart-notification {
    position: fixed;
    top: 90px;
    right: 24px;
    padding: 0.95rem 1.7rem;
    background: var(--emerald);
    border: 1px solid var(--gold);
    color: var(--pearl);
    font-family: var(--body);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-16px);
    transition: all 0.35s ease;
    z-index: 2000;
}
.cart-notification.show { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 2.4rem; }
}

@media (max-width: 860px) {
    .botanical-grid, .ritual-grid, .story-grid, .product-details { grid-template-columns: 1fr; }
    .story-image { max-width: 460px; margin: 0 auto; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-layout { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* Mobile navigation */
    .mobile-menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 82vw);
        height: 100vh;
        background: rgba(4, 20, 19, 0.98);
        border-left: 1px solid rgba(201, 169, 107, 0.3);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2.4rem 2rem;
        gap: 1.6rem;
        transform: translateX(105%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.35, 1);
        z-index: 950;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a:not(.cart-icon) { font-size: 0.8rem; }
    .site-header { background: rgba(4, 20, 19, 0.94); backdrop-filter: blur(10px); }
}

@media (max-width: 560px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
    .product-card-info { padding: 1rem 0.9rem 1.1rem; }
    .product-card-title { font-size: 0.72rem; }
    .brand { font-size: 1.1rem; letter-spacing: 0.26em; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .hero-actions .btn { padding: 0.85rem 1.6rem; font-size: 0.64rem; }
    .catalog-toolbar { flex-direction: column; align-items: stretch; }
    .catalog-toolbar .sort-wrap { width: 100%; }
    .philosophy { padding: 6rem 0; }
    .rituals-products, .ritual-experience, .brand-story, .botanical-world { padding: 5.5rem 0; }
    .closing { padding: 8rem 0; }
    .hero { min-height: 560px; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-hero {
    padding: 9rem 0 4.5rem;
    text-align: center;
    background: var(--emerald-deep);
}

.about-hero .display {
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    max-width: 820px;
    margin: 0 auto;
}

.about-hero .script {
    display: block;
    margin-top: 0.5rem;
}

.about-section { padding: 4.5rem 0; }

.about-alt { background: var(--emerald-abyss); }

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.4rem, 5vw, 5rem);
    align-items: center;
}

.about-grid-reverse .about-image { order: 2; }
.about-grid-reverse .about-copy { order: 1; }

.about-image {
    position: relative;
    max-width: 460px;
}

.about-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25);
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid var(--gold-soft);
    pointer-events: none;
}

.about-copy .eyebrow { margin-bottom: 1.6rem; }

.about-copy p,
.about-narrow p {
    color: var(--text-dim);
    font-size: 0.98rem;
    font-weight: 300;
    margin-bottom: 1.3rem;
}

.about-narrow {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-narrow .eyebrow {
    display: block;
}

.about-closing {
    padding: 5.5rem 0 7rem;
    text-align: center;
    background: var(--emerald-deep);
}

.about-creed {
    font-family: var(--display);
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    color: var(--pearl) !important;
    line-height: 1.4;
    margin: 2.4rem auto !important;
    max-width: 560px;
}

.about-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.6rem;
}

@media (max-width: 860px) {
    .about-hero { padding: 7rem 0 3.5rem; }
    .about-section { padding: 3.5rem 0; }
    .about-grid { grid-template-columns: 1fr; }
    .about-grid-reverse .about-image { order: 1; }
    .about-grid-reverse .about-copy { order: 2; }
    .about-image { max-width: 420px; margin: 0 auto; }
    .about-actions .btn { padding: 0.85rem 1.6rem; font-size: 0.64rem; }
}
