/* ============================================================
   EARTHY WELLNESS — Storefront Stylesheet
   Palette taken from the brand mark: forest green + sage + cream
   ============================================================ */

:root {
    --ew-forest: #263d35;
    --ew-forest-900: #172720;
    --ew-forest-700: #2f4a40;
    --ew-teal: #3e6b5e;
    --ew-sage: #d3dbcb;
    --ew-sage-100: #e8eee3;
    --ew-sage-50: #f1f4ed;
    --ew-cream: #f6f3ec;
    --ew-paper: #fbf9f4;
    --ew-white: #ffffff;
    --ew-gold: #b08d57;
    --ew-gold-soft: #e7d9bf;
    --ew-ink: #1c2621;
    --ew-text: #3c4842;
    --ew-muted: #67736c;
    --ew-line: rgba(28, 38, 33, 0.1);
    --ew-danger: #b4483c;
    --ew-success: #3f7a52;
    --ew-warning: #c28a2c;

    /* Legacy aliases used by older markup */
    --ew-primary: var(--ew-forest);
    --ew-accent: var(--ew-teal);
    --ew-secondary: var(--ew-gold);

    --ew-font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --ew-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ew-font-primary: var(--ew-font-body);

    --ew-radius-sm: 10px;
    --ew-radius: 18px;
    --ew-radius-lg: 28px;
    --ew-radius-pill: 999px;

    --ew-shadow-sm: 0 2px 10px rgba(23, 39, 32, 0.06);
    --ew-shadow: 0 12px 36px rgba(23, 39, 32, 0.09);
    --ew-shadow-lg: 0 24px 60px rgba(23, 39, 32, 0.14);

    --ew-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ew-section-py: 110px;
    --ew-header-h: 76px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 90px; }
/* Bootstrap turns on smooth scrolling for :root; ScrollTrigger needs instant scroll to measure correctly
   (in-page anchors are smoothed in main.js instead) */
:root { scroll-behavior: auto; }
/* Clip (not hide) so animated edges never cause sideways scrolling — `clip` keeps sticky elements working */
main, .newsletter-wrap, .site-footer { overflow-x: clip; }

body {
    font-family: var(--ew-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ew-text);
    background: var(--ew-paper);
    overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

a { color: var(--ew-forest); text-decoration: none; transition: color .25s var(--ew-ease); }
a:hover { color: var(--ew-teal); }
img { max-width: 100%; height: auto; }
::selection { background: var(--ew-forest); color: var(--ew-sage); }

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--ew-font-heading);
    font-weight: 500;
    color: var(--ew-ink);
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-variation-settings: "SOFT" 50, "WONK" 0;
}

.text-muted { color: var(--ew-muted) !important; }
.text-forest { color: var(--ew-forest) !important; }
.text-gold { color: var(--ew-gold) !important; }
.bg-forest { background: var(--ew-forest) !important; }
.bg-cream { background: var(--ew-cream) !important; }
.bg-paper { background: var(--ew-paper) !important; }
.bg-sage { background: var(--ew-sage-50) !important; }
.bg-white { background: var(--ew-white) !important; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 10000;
    background: var(--ew-forest); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 2px solid var(--ew-teal); outline-offset: 3px; }

.container { padding-left: 20px; padding-right: 20px; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--ew-font-body);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ew-teal); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--ew-sage); }
.eyebrow.center::after { content: ''; width: 28px; height: 1px; background: currentColor; }

.section-title { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: 18px; }
.section-title em { font-style: italic; color: var(--ew-teal); }
.section-lead { font-size: 1.08rem; color: var(--ew-muted); max-width: 620px; }
.section-head.text-center .section-lead { margin-left: auto; margin-right: auto; }

.section { padding: var(--ew-section-py) 0; position: relative; }
.section-sm { padding: 70px 0; }

/* Split text helpers (GSAP) */
.w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w { display: inline-block; will-change: transform; }
.js-anim [data-split], .js-anim .page-hero h1, .js-anim .hero-content, .js-anim .hero-visual { opacity: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-ew, .btn-ew-primary, .btn-ew-outline, .btn-ew-light, .btn-ew-gold, .btn-ew-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px; border-radius: var(--ew-radius-pill);
    font-family: var(--ew-font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
    border: 1.5px solid transparent; cursor: pointer; line-height: 1.2;
    transition: background .35s var(--ew-ease), color .35s var(--ew-ease), border-color .35s var(--ew-ease), box-shadow .35s var(--ew-ease), transform .35s var(--ew-ease);
    text-decoration: none; white-space: nowrap; position: relative; overflow: hidden;
}
.btn-ew-primary { background: var(--ew-forest); color: var(--ew-sage-50); }
.btn-ew-primary:hover, .btn-ew-primary:focus-visible { background: var(--ew-forest-900); color: #fff; box-shadow: 0 14px 30px rgba(23, 39, 32, 0.25); }
.btn-ew-outline { background: transparent; color: var(--ew-forest); border-color: rgba(38, 61, 53, 0.35); }
.btn-ew-outline:hover { background: var(--ew-forest); color: #fff; border-color: var(--ew-forest); }
.btn-ew-light { background: var(--ew-sage-50); color: var(--ew-forest); }
.btn-ew-light:hover { background: #fff; color: var(--ew-forest-900); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }
.btn-ew-gold { background: var(--ew-gold); color: #fff; }
.btn-ew-gold:hover { background: #987545; color: #fff; }
.btn-ew-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ew-ghost:hover { background: #fff; color: var(--ew-forest); }
.btn-ew-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-ew-block { width: 100%; }
.btn-ew-primary:disabled, .btn-ew-outline:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
a.btn-ew-primary.disabled, a.btn-ew-outline.disabled { opacity: .5; pointer-events: none; }
.btn-ew .bi, .btn-ew-primary .bi, .btn-ew-outline .bi { transition: transform .35s var(--ew-ease); }
.btn-ew-primary:hover .bi-arrow-right, .btn-ew-outline:hover .bi-arrow-right, .btn-ew-light:hover .bi-arrow-right { transform: translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ew-forest); }
.link-arrow .bi { transition: transform .3s var(--ew-ease); }
.link-arrow:hover .bi { transform: translateX(4px); }

/* ============================================================
   3D PRELOADER (homepage, first visit per session)
   Light stage + CSS 3D gyroscope; the WebGL bottle is drawn
   above it on #bottleCanvas while it "scans" into existence.
   ============================================================ */
.preloader3d {
    position: fixed; inset: 0; z-index: 100000; display: none; overflow: hidden;
    background:
        radial-gradient(circle at 50% 44%, #ffffff 0%, rgba(255, 255, 255, 0) 38%),
        radial-gradient(1200px 800px at 50% 110%, #dfe7d7 0%, rgba(223, 231, 215, 0) 60%),
        linear-gradient(180deg, #f8f6ef 0%, #f1efe6 100%);
    color: var(--ew-forest);
    --hole: 0vmax;
    -webkit-mask-image: radial-gradient(circle at 50% 44%, transparent var(--hole), #000 calc(var(--hole) + 1px));
    mask-image: radial-gradient(circle at 50% 44%, transparent var(--hole), #000 calc(var(--hole) + 1px));
}
html.home-3d:not(.intro-seen) .preloader3d { display: block; }
html.home-3d:not(.intro-seen) body { overflow: hidden; }
.preloader3d.is-done { display: none !important; }

/* Gyroscope: three rings orbiting the bottle in 3D */
.pl-orbit {
    position: absolute; left: 50%; top: 44%; width: min(64vmin, 560px); aspect-ratio: 1;
    transform: translate(-50%, -50%); perspective: 1100px; pointer-events: none;
}
.pl-orbit .ring {
    position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d;
    border: 1px solid rgba(38, 61, 53, 0.16);
}
.pl-orbit .ring::before {
    content: ''; position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%;
    background: var(--ew-gold); box-shadow: 0 0 0 6px rgba(176, 141, 87, 0.14), 0 0 18px rgba(176, 141, 87, 0.6);
}
.pl-orbit .r1 { animation: plRing1 7s linear infinite; }
.pl-orbit .r2 { inset: 9%; border-color: rgba(62, 107, 94, 0.2); animation: plRing2 9s linear infinite; }
.pl-orbit .r2::before { background: var(--ew-teal); box-shadow: 0 0 0 6px rgba(62, 107, 94, 0.12), 0 0 16px rgba(62, 107, 94, 0.5); }
.pl-orbit .r3 { inset: 18%; border-style: dashed; border-color: rgba(176, 141, 87, 0.28); animation: plRing3 11s linear infinite; }
.pl-orbit .r3::before { width: 7px; height: 7px; top: -4px; left: calc(50% - 3.5px); }
@keyframes plRing1 { from { transform: rotateX(72deg) rotateZ(0deg); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes plRing2 { from { transform: rotateY(66deg) rotateX(18deg) rotateZ(0deg); } to { transform: rotateY(66deg) rotateX(18deg) rotateZ(-360deg); } }
@keyframes plRing3 { from { transform: rotateX(58deg) rotateY(-34deg) rotateZ(0deg); } to { transform: rotateX(58deg) rotateY(-34deg) rotateZ(360deg); } }

/* Shown only until WebGL takes over */
.pl-seed {
    position: absolute; left: 50%; top: 44%; width: 74px; height: 74px; transform: translate(-50%, -50%);
    animation: plSeed 1.6s ease-in-out infinite;
}
html.webgl-on .pl-seed { opacity: 0; transition: opacity .4s; }
@keyframes plSeed { 0%, 100% { transform: translate(-50%, -50%) scale(.92); } 50% { transform: translate(-50%, -50%) scale(1.04); } }

.pl-brand {
    position: absolute; top: clamp(22px, 5vh, 46px); left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
    font-family: var(--ew-font-heading); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ew-forest);
}
.pl-brand img { width: 34px; height: 34px; }
.pl-meta { position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 64px); text-align: center; padding: 0 20px; }
.pl-count { font-family: var(--ew-font-heading); font-weight: 300; font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: 1; color: var(--ew-forest); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.pl-count sup { font-size: .32em; top: -1.6em; margin-left: 4px; color: var(--ew-gold); font-weight: 400; }
.pl-tag { margin-top: 10px; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ew-muted); }
.pl-bar { width: min(260px, 60vw); height: 2px; margin: 18px auto 0; background: rgba(38, 61, 53, 0.12); border-radius: 2px; overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ew-teal), var(--ew-gold)); transform-origin: left; transform: scaleX(0); }
.pl-corner { position: absolute; bottom: clamp(28px, 7vh, 64px); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ew-muted); }
.pl-corner.left { left: clamp(18px, 4vw, 48px); }
.pl-corner.right { right: clamp(18px, 4vw, 48px); }
@media (max-width: 767.98px) { .pl-corner { display: none; } }

/* ============================================================
   ANNOUNCEMENT + HEADER
   ============================================================ */
.announcement {
    background: var(--ew-forest-900); color: var(--ew-sage);
    font-size: 0.82rem; letter-spacing: 0.02em; padding: 9px 0; text-align: center;
}
.announcement a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announcement .bi { color: var(--ew-gold-soft); }

.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(251, 249, 244, 0.86);
    backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: transform .45s var(--ew-ease), box-shadow .35s var(--ew-ease), border-color .35s;
}
.site-header.is-scrolled { border-bottom-color: var(--ew-line); box-shadow: 0 8px 30px rgba(23, 39, 32, 0.06); }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--ew-header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ew-ink); }
.brand img { width: 50px; height: 50px; object-fit: contain; transition: transform .5s var(--ew-ease); }
.brand:hover img { transform: rotate(-8deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--ew-font-heading); font-size: 1.32rem; font-weight: 600; color: var(--ew-forest); letter-spacing: -0.01em; }
.brand-tag { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ew-muted); margin-top: 5px; }

.main-nav { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    position: relative; display: block; padding: 10px 16px; font-weight: 500; font-size: 0.95rem; color: var(--ew-ink);
}
.main-nav a::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1.5px; background: var(--ew-forest);
    transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ew-ease);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.active { color: var(--ew-forest); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 0; background: transparent; color: var(--ew-ink); font-size: 1.2rem; cursor: pointer;
    transition: background .3s var(--ew-ease), color .3s;
}
.icon-btn:hover { background: var(--ew-sage-100); color: var(--ew-forest); }
.cart-count {
    position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 10px; background: var(--ew-gold); color: #fff; font-size: 0.68rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.cart-count.is-empty { display: none; }
.header-cta { margin-left: 6px; }
.nav-toggle { display: none; }

.account-menu .dropdown-menu {
    border: 1px solid var(--ew-line); border-radius: 16px; padding: 8px; box-shadow: var(--ew-shadow); min-width: 220px;
}
.account-menu .dropdown-item { border-radius: 10px; padding: 9px 12px; font-size: 0.92rem; }
.account-menu .dropdown-item:hover { background: var(--ew-sage-50); }

/* Mobile menu (offcanvas) */
.mobile-menu { background: var(--ew-paper); width: min(88vw, 360px) !important; }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--ew-line); }
.mobile-nav { list-style: none; padding: 0; margin: 0 0 24px; }
.mobile-nav a {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 4px;
    font-family: var(--ew-font-heading); font-size: 1.5rem; color: var(--ew-ink); border-bottom: 1px solid var(--ew-line);
}
.mobile-nav a.active { color: var(--ew-teal); }
.mobile-contact { font-size: 0.92rem; color: var(--ew-muted); }
.mobile-contact a { color: var(--ew-forest); font-weight: 600; }

/* Search overlay */
.search-overlay {
    position: fixed; inset: 0; z-index: 2000; background: rgba(23, 39, 32, 0.92);
    backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 18vh 20px 20px;
}
.search-overlay.is-open { display: flex; }
.search-box { width: 100%; max-width: 680px; }
.search-box label { color: var(--ew-sage); font-family: var(--ew-font-heading); font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 18px; display: block; }
.search-field { display: flex; border-bottom: 1.5px solid rgba(211, 219, 203, 0.5); }
.search-field input { flex: 1; background: transparent; border: 0; color: #fff; font-size: 1.25rem; padding: 14px 0; outline: none; }
.search-field input::placeholder { color: rgba(211, 219, 203, 0.55); }
.search-field button { background: transparent; border: 0; color: var(--ew-sage); font-size: 1.4rem; }
.search-close { position: absolute; top: 24px; right: 24px; color: #fff; background: rgba(255, 255, 255, 0.08); }
.search-close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* Flash */
.flash-wrap { position: relative; z-index: 5; }
.flash-alert { border-radius: 14px; border: 0; box-shadow: var(--ew-shadow-sm); margin: 16px 0 0; }
.alert-success { background: #e6efe6; color: #24502f; }
.alert-danger { background: #f7e5e2; color: #7d2a20; }
.alert-warning { background: #f8efdc; color: #6f4d0e; }
.alert-info { background: var(--ew-sage-100); color: var(--ew-forest); }

/* ============================================================
   HERO (HOME)
   ============================================================ */
/* Layering (no stacking context on .hero so the fixed 3D canvas at z-index 1
   sits above section backgrounds but below text at z-index 2+) */
.hero {
    position: relative; overflow: hidden;
    min-height: calc(100svh - var(--ew-header-h) - 38px);
    display: flex; align-items: center; padding: 70px 0 90px;
    background: radial-gradient(1100px 600px at 75% 40%, #e3eadc 0%, transparent 60%), linear-gradient(180deg, var(--ew-sage-50) 0%, var(--ew-cream) 100%);
}
.hero-leaves {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url('../images/brand/leaf-cover.png') center top / cover no-repeat; opacity: .9;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, transparent 22%, transparent 55%, #000 80%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, transparent 22%, transparent 55%, #000 80%);
}
@media (max-width: 991.98px) {
    .hero-leaves { -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 28%); mask-image: linear-gradient(180deg, #000 0%, transparent 28%); opacity: .6; }
}
.float-leaf { position: absolute; z-index: 0; pointer-events: none; width: clamp(60px, 8vw, 140px); will-change: transform; }
.float-leaf.front { z-index: 3; filter: drop-shadow(0 12px 14px rgba(23, 39, 32, 0.18)); }
.float-leaf.leaf-a { left: -2%; bottom: -4%; width: 120px; }
.float-leaf.leaf-b { left: 52%; top: 6%; width: 62px; }
.float-leaf.leaf-c { right: 3%; bottom: 6%; }
.float-leaf.leaf-d { left: 44%; bottom: 5%; width: 84px; }
@media (max-width: 991.98px) {
    /* Same drifting leaves on phones — smaller and tucked into the margins around the stacked hero */
    .float-leaf.leaf-a { left: -16px; bottom: auto; top: 44%; width: 66px; }
    .float-leaf.leaf-b { left: auto; right: 5%; top: 14%; width: 38px; }
    .float-leaf.leaf-c { right: 2%; bottom: 7%; width: 58px; }
    .float-leaf.leaf-d { left: 4%; bottom: 2%; width: 48px; }
}
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: 1.02; margin-bottom: 26px; font-weight: 400; }
.hero-title em { font-style: italic; color: var(--ew-teal); font-weight: 400; }
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ew-muted); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--ew-radius-pill);
    background: rgba(255, 255, 255, 0.7); border: 1px solid var(--ew-line); font-size: 0.85rem; font-weight: 500; color: var(--ew-forest);
    backdrop-filter: blur(6px);
}
.chip .bi { color: var(--ew-gold); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.hero-disc {
    position: absolute; z-index: 0; width: min(500px, 88%); aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #4d7f70 0%, var(--ew-forest) 70%);
    box-shadow: inset 0 -30px 80px rgba(0, 0, 0, 0.25), 0 40px 80px rgba(23, 39, 32, 0.25);
}
.hero-product { position: relative; width: min(560px, 104%); filter: drop-shadow(0 40px 50px rgba(10, 20, 15, 0.35)); will-change: transform; }
.hero-badge { position: absolute; right: 2%; top: 4%; width: 138px; height: 138px; z-index: 3; }
.hero-badge svg { width: 100%; height: 100%; }
@media (min-width: 992px) { html.home-3d:not(.no-3d) .hero-badge { top: -3%; right: -2%; } }
.hero-badge .badge-center {
    position: absolute; inset: 30px; border-radius: 50%; background: var(--ew-gold); color: #fff;
    display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; line-height: 1.05;
    font-family: var(--ew-font-heading); box-shadow: 0 10px 24px rgba(176, 141, 87, 0.45);
}
.hero-badge .badge-center strong { font-size: 1.15rem; font-weight: 600; }
.hero-badge .badge-center small { font-size: 0.62rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--ew-font-body); }
.scroll-cue {
    position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ew-muted);
}
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(var(--ew-forest), transparent); }

/* ============================================================
   3D STAGE — WebGL bottle + scrollytelling showcase
   ============================================================ */
/* Sized to the *large* viewport so a phone's sliding URL bar never resizes the WebGL canvas mid-scroll */
.bottle-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none;
    display: none; opacity: 0; transition: opacity .5s var(--ew-ease);
}
html.home-3d .bottle-canvas { display: block; }
html.webgl-on .bottle-canvas { opacity: 1; }
.bottle-canvas.is-intro { z-index: 100001; }
html.webgl-on .bottle-canvas.is-away { opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
html.no-3d .bottle-canvas { display: none !important; }
html.home-3d .hero-product { visibility: hidden; }
html.home-3d.no-3d .hero-product { visibility: visible; }

.stage3d { position: relative; }
.showcase {
    position: relative; height: 420vh; height: 420svh;
    background:
        radial-gradient(900px 700px at 50% 50%, rgba(211, 219, 203, 0.55) 0%, rgba(211, 219, 203, 0) 70%),
        linear-gradient(180deg, var(--ew-cream) 0%, var(--ew-sage-50) 55%, var(--ew-cream) 100%);
}
/* Sticky boxes form their own stacking context, so the stage is split in two:
   the backdrop paints below the fixed 3D canvas (z 1) and the text layer above it */
.showcase-sticky, .showcase-front { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.showcase-front { z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.showcase-front > * { pointer-events: auto; }
.showcase-bgword {
    position: absolute; top: 50%; left: 0; z-index: 0; transform: translateY(-50%);
    white-space: nowrap; pointer-events: none; user-select: none; will-change: transform;
    font-family: var(--ew-font-heading); font-weight: 500; font-size: clamp(6rem, 21vw, 21rem); line-height: 1; letter-spacing: -0.03em;
    color: transparent; -webkit-text-stroke: 1.5px rgba(38, 61, 53, 0.11);
}
.showcase-halo {
    position: absolute; left: 50%; top: 50%; z-index: 0; width: min(74vmin, 680px); aspect-ratio: 1; transform: translate(-50%, -50%);
    border-radius: 50%; border: 1px solid rgba(38, 61, 53, 0.1);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 64%);
}
.showcase-halo::after { content: ''; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgba(176, 141, 87, 0.3); }
.showcase-static {
    position: absolute; left: 50%; top: 50%; z-index: 1; width: min(400px, 60vw); transform: translate(-50%, -50%);
    border-radius: 28px; box-shadow: var(--ew-shadow-lg); display: none;
}
html:not(.webgl-on) .showcase-static { display: block; }
.showcase-panel { position: absolute; z-index: 2; top: 0; bottom: 0; margin: auto 0; height: fit-content; width: min(430px, 33vw); }
.showcase-panel.left { left: max(5vw, calc((100vw - 1320px) / 2 + 20px)); }
.showcase-panel.right { right: max(5vw, calc((100vw - 1320px) / 2 + 20px)); }
.js-anim .showcase-panel { opacity: 0; visibility: hidden; }
.showcase-panel .panel-num { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ew-font-heading); font-style: italic; color: var(--ew-gold); font-size: 1.05rem; }
.showcase-panel .panel-num::after { content: ''; width: 34px; height: 1px; background: currentColor; }
.showcase-panel h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); margin: 12px 0 16px; font-weight: 400; }
.showcase-panel h2 em { font-style: italic; color: var(--ew-teal); }
.showcase-panel p { color: var(--ew-muted); margin-bottom: 18px; }
.showcase-panel .chip { margin: 0 6px 8px 0; }
.label-callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--ew-line); margin-bottom: 10px; backdrop-filter: blur(6px); }
.label-callout .bi { color: var(--ew-teal); font-size: 1.1rem; margin-top: 2px; }
.label-callout strong { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ew-ink); }
.label-callout span { font-size: .93rem; color: var(--ew-text); }
.showcase-rail { position: absolute; z-index: 2; right: 26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.showcase-rail span { display: block; width: 3px; height: 38px; border-radius: 3px; background: rgba(38, 61, 53, 0.14); overflow: hidden; position: relative; }
.showcase-rail span i { position: absolute; inset: 0; background: var(--ew-forest); transform: scaleY(0); transform-origin: top; }
.showcase-hint { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ew-muted); }

/* The next section slides over the pinned stage ("swap") */
.collection-over {
    position: relative; z-index: 3; margin-top: -100vh; margin-top: -100svh;
    background: var(--ew-paper); border-radius: 44px 44px 0 0;
    box-shadow: 0 -30px 70px rgba(23, 39, 32, 0.1);
}

@media (max-width: 991.98px) {
    .showcase-panel, .showcase-panel.left, .showcase-panel.right {
        top: auto; left: 16px; right: 16px; bottom: calc(4vh + env(safe-area-inset-bottom)); width: auto; margin: 0; height: auto;
        text-align: center; padding: 18px 18px 14px; border-radius: 22px;
        background: rgba(251, 249, 244, 0.9); border: 1px solid var(--ew-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    }
    .showcase-panel h2 { font-size: clamp(1.45rem, 6vw, 1.9rem); margin: 6px 0 8px; }
    .showcase-panel p { font-size: .9rem; margin-bottom: 10px; }
    .showcase-panel .label-callout { text-align: left; padding: 10px 12px; margin-bottom: 6px; }
    .showcase-panel .chip { font-size: .75rem; padding: 6px 11px; }
    .showcase-panel .hide-sm { display: none; }
    .showcase-rail { right: auto; left: 50%; top: calc(var(--ew-header-h) + 14px); transform: translateX(-50%); flex-direction: row; }
    .showcase-rail span { width: 38px; height: 3px; }
    .showcase-rail span i { transform: scaleX(0); transform-origin: left; }
    /* Sits above the progress rail (the header slides away while scrolling down), clear of the bottle */
    .showcase-hint { top: calc(var(--ew-header-h) - 18px); bottom: auto; font-size: .6rem; letter-spacing: .22em; white-space: nowrap; }
    .showcase-static { top: 34%; width: 58vw; }
    .collection-over { border-radius: 30px 30px 0 0; }
}

/* Without motion (reduced motion, no JS, or GSAP unavailable) the story becomes a normal stacked section */
.reduced-motion .showcase, .no-js .showcase, .static-story .showcase { height: auto; }
.reduced-motion .showcase-sticky, .no-js .showcase-sticky, .static-story .showcase-sticky,
.reduced-motion .showcase-front, .no-js .showcase-front, .static-story .showcase-front {
    position: relative; height: auto; overflow: visible; padding: 90px 16px 0; display: grid; gap: 26px; justify-items: center; margin-top: 0;
}
.reduced-motion .showcase-front, .no-js .showcase-front, .static-story .showcase-front { padding: 26px 16px 90px; }
.reduced-motion .showcase-panel, .no-js .showcase-panel, .static-story .showcase-panel {
    position: relative; inset: auto; transform: none; width: min(620px, 100%); opacity: 1 !important; visibility: visible !important; text-align: center;
    background: #fff; border: 1px solid var(--ew-line); border-radius: 22px; padding: 26px;
}
.reduced-motion .showcase-static, .no-js .showcase-static, .static-story .showcase-static { position: relative; left: auto; top: auto; transform: none; display: block; }
.reduced-motion .showcase-rail, .no-js .showcase-rail, .static-story .showcase-rail,
.reduced-motion .showcase-hint, .no-js .showcase-hint, .static-story .showcase-hint,
.reduced-motion .showcase-bgword, .no-js .showcase-bgword, .static-story .showcase-bgword,
.reduced-motion .showcase-halo, .no-js .showcase-halo, .static-story .showcase-halo { display: none; }
.reduced-motion .collection-over, .no-js .collection-over, .static-story .collection-over { margin-top: 0; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { background: var(--ew-forest); color: var(--ew-sage); overflow: hidden; padding: 20px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--ew-font-heading); font-size: clamp(1.1rem, 2vw, 1.5rem); white-space: nowrap; font-style: italic; }
.marquee-item img { width: 26px; height: 26px; opacity: .85; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
    position: relative; height: 100%; display: flex; flex-direction: column;
    background: var(--ew-white); border-radius: var(--ew-radius-lg); overflow: hidden;
    border: 1px solid var(--ew-line); transition: box-shadow .5s var(--ew-ease), transform .5s var(--ew-ease);
}
.product-card:hover { box-shadow: var(--ew-shadow-lg); transform: translateY(-6px); }
.product-media {
    position: relative; display: block; aspect-ratio: 1 / 0.92; overflow: hidden;
    background: radial-gradient(circle at 50% 45%, #fff 0%, var(--ew-sage-50) 70%);
}
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .9s var(--ew-ease), opacity .6s; }
.product-media img.cover { object-fit: cover; padding: 0; }
.product-media .img-alt { opacity: 0; transform: scale(1.08); }
.product-card:hover .product-media .img-main { transform: scale(1.06); }
.product-card:hover .product-media .img-alt { opacity: 1; transform: scale(1); }
.product-card:hover .product-media .img-main.has-alt { opacity: 0; }
.product-badges { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--ew-radius-pill);
    font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
}
.badge-offer { background: var(--ew-gold); color: #fff; }
.badge-sale { background: var(--ew-danger); color: #fff; }
.badge-soldout { background: var(--ew-ink); color: #fff; }
.badge-low { background: #fff; color: var(--ew-warning); border: 1px solid #ecd9b4; }
.product-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ew-teal); margin-bottom: 8px; }
.product-title { font-size: 1.35rem; margin-bottom: 10px; line-height: 1.25; }
.product-title a { color: var(--ew-ink); }
.product-title a:hover { color: var(--ew-teal); }
.product-excerpt { color: var(--ew-muted); font-size: 0.93rem; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 3px; color: var(--ew-gold); font-size: .85rem; margin-bottom: 10px; }
.product-rating .count { color: var(--ew-muted); margin-left: 6px; font-size: .8rem; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price-current { font-family: var(--ew-font-heading); font-size: 1.5rem; font-weight: 600; color: var(--ew-forest); }
.price-old { color: var(--ew-muted); text-decoration: line-through; font-size: .95rem; }

/* ============================================================
   FEATURE / BENEFIT BLOCKS
   ============================================================ */
.benefits-section { color: var(--ew-sage-50); background: var(--ew-forest-900); overflow: hidden; isolation: isolate; }
.section-bg { position: absolute; inset: -12% 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
.section-bg-overlay { position: absolute; inset: 0; z-index: -1; }
.benefits-section .section-bg-overlay { background: linear-gradient(180deg, rgba(23, 39, 32, 0.92) 0%, rgba(23, 39, 32, 0.82) 50%, rgba(23, 39, 32, 0.94) 100%); }
.benefits-section .section-title { color: #fff; }
.benefits-section .section-title em { color: var(--ew-sage); }
.benefits-section .section-lead { color: rgba(232, 238, 227, 0.75); }
.benefit-card {
    height: 100%; padding: 34px 28px; border-radius: var(--ew-radius); position: relative;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(211, 219, 203, 0.14);
    transition: background .4s var(--ew-ease), transform .4s var(--ew-ease), border-color .4s;
}
.benefit-card:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-6px); border-color: rgba(211, 219, 203, 0.3); }
.benefit-icon {
    width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--ew-sage); color: var(--ew-forest); font-size: 1.5rem; margin-bottom: 22px;
}
.benefit-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.benefit-card p { color: rgba(232, 238, 227, 0.72); font-size: .95rem; margin: 0; }
.benefit-num { position: absolute; top: 22px; right: 24px; font-family: var(--ew-font-heading); font-style: italic; color: rgba(211, 219, 203, 0.35); font-size: 1.1rem; }

.feature-tile {
    height: 100%; background: #fff; border: 1px solid var(--ew-line); border-radius: var(--ew-radius); padding: 30px 26px;
    transition: box-shadow .4s var(--ew-ease), transform .4s var(--ew-ease);
}
.feature-tile:hover { box-shadow: var(--ew-shadow); transform: translateY(-4px); }
.feature-tile .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ew-sage-100); color: var(--ew-forest); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 18px; }
.feature-tile h3, .feature-tile h4 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-tile p { color: var(--ew-muted); font-size: .93rem; margin: 0; }

/* ============================================================
   STORY / SPLIT SECTIONS
   ============================================================ */
.story-media { position: relative; }
.story-img { border-radius: var(--ew-radius-lg); overflow: hidden; position: relative; box-shadow: var(--ew-shadow-lg); }
.story-img img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 4.4; transform-origin: center; }
.story-img-sm {
    position: absolute; right: -6%; bottom: -8%; width: 46%; border-radius: var(--ew-radius); overflow: hidden;
    border: 8px solid var(--ew-paper); box-shadow: var(--ew-shadow);
}
.story-img-sm img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.story-quote { font-family: var(--ew-font-heading); font-size: clamp(1.25rem, 2vw, 1.55rem); font-style: italic; color: var(--ew-forest); line-height: 1.45; border-left: 2px solid var(--ew-gold); padding-left: 22px; margin: 28px 0; }
.signature { display: flex; align-items: center; gap: 18px; }
.signature img { height: 54px; width: auto; }
.signature strong { display: block; color: var(--ew-ink); font-weight: 600; }
.signature small { color: var(--ew-muted); }
.stat-row { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 30px; }
.stat-row .stat strong { display: block; font-family: var(--ew-font-heading); font-size: 2.1rem; color: var(--ew-forest); line-height: 1; font-weight: 500; }
.stat-row .stat span { font-size: .85rem; color: var(--ew-muted); }

/* ============================================================
   STEPS (HOW TO USE)
   ============================================================ */
.steps { position: relative; }
.steps-line { position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: var(--ew-line); }
.steps-line span { position: absolute; inset: 0; background: var(--ew-forest); transform-origin: left; transform: scaleX(0); }
.step { text-align: center; position: relative; padding: 0 10px; }
.step-num {
    width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: var(--ew-paper); border: 2px solid var(--ew-forest);
    display: flex; align-items: center; justify-content: center; font-family: var(--ew-font-heading); font-size: 1.5rem; color: var(--ew-forest);
    position: relative; z-index: 1;
}
@media (max-width: 767.98px) {
    /* Stacked steps become a vertical timeline; the same progress line fills top → bottom */
    .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 0 calc(var(--bs-gutter-x) * .5); }
    .step-num { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: 1.3rem; }
    .step h3 { margin: 12px 0 6px; }
    .steps-line { top: var(--steps-line-y, 28px); bottom: auto; left: var(--steps-line-x, 27px); right: auto; width: 2px; height: var(--steps-line-h, 70%); }
    .steps-line span { transform-origin: top; transform: scaleY(0); }
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--ew-muted); font-size: .95rem; max-width: 300px; margin: 0 auto; }

/* ============================================================
   OFFER BANNER
   ============================================================ */
.offer-banner { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--ew-radius-lg); background: var(--ew-teal); color: #fff; }
.offer-banner .section-bg { inset: -15% 0; background-position: center right; }
.offer-banner .section-bg-overlay { background: linear-gradient(90deg, rgba(23, 39, 32, 0.95) 0%, rgba(23, 39, 32, 0.78) 45%, rgba(23, 39, 32, 0.1) 100%); }
.offer-inner { padding: clamp(48px, 7vw, 96px) clamp(26px, 6vw, 80px); max-width: 640px; }
.offer-big { font-family: var(--ew-font-heading); font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; color: #fff; margin-bottom: 18px; }
.offer-big em { color: var(--ew-gold-soft); }
.offer-banner p { color: rgba(255, 255, 255, 0.8); font-size: 1.05rem; margin-bottom: 30px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    height: 100%; background: #fff; border-radius: var(--ew-radius-lg); padding: 34px 30px; border: 1px solid var(--ew-line);
    display: flex; flex-direction: column; position: relative; transition: box-shadow .4s var(--ew-ease), transform .4s var(--ew-ease);
}
.testimonial-card:hover { box-shadow: var(--ew-shadow); transform: translateY(-4px); }
.testimonial-card .quote-mark { font-family: var(--ew-font-heading); font-size: 4.5rem; line-height: .6; color: var(--ew-sage); height: 34px; }
.testimonial-stars { color: var(--ew-gold); font-size: .9rem; margin-bottom: 14px; display: flex; gap: 3px; }
.testimonial-text { font-size: 1.05rem; color: var(--ew-text); flex: 1; margin-bottom: 26px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--ew-line); }
.testimonial-author img, .testimonial-author .avatar {
    width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: var(--ew-sage-100); color: var(--ew-forest); display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.testimonial-author strong { display: block; color: var(--ew-ink); }
.testimonial-author small { color: var(--ew-muted); display: inline-flex; align-items: center; gap: 5px; }
.testimonial-author small .bi { color: var(--ew-success); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--ew-line); }
.faq-item button {
    width: 100%; background: transparent; border: 0; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 24px 2px; font-family: var(--ew-font-heading); font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ew-ink); cursor: pointer;
}
.faq-item button .faq-icon {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ew-line); display: flex; align-items: center; justify-content: center;
    transition: transform .45s var(--ew-ease), background .3s, color .3s;
}
.faq-item button[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--ew-forest); color: #fff; border-color: var(--ew-forest); }
.faq-item .faq-answer { color: var(--ew-muted); padding: 0 50px 24px 2px; margin: 0; }

/* ============================================================
   PAGE HERO (INNER PAGES)
   ============================================================ */
.page-hero {
    position: relative; overflow: hidden; isolation: isolate; text-align: center;
    padding: clamp(70px, 10vw, 120px) 0 clamp(60px, 8vw, 100px);
    background: linear-gradient(180deg, var(--ew-sage-50), var(--ew-cream));
}
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../images/brand/leaf-cover.png') center top / cover no-repeat; opacity: .85; }
.page-hero.dark { background: var(--ew-forest-900); color: #fff; }
.page-hero.dark::before { opacity: .25; }
.page-hero.dark h1 { color: #fff; }
.page-hero.has-image { background: var(--ew-forest-900); padding: clamp(100px, 14vw, 170px) 0 clamp(80px, 11vw, 130px); }
.page-hero.has-image::before { display: none; }
.page-hero.has-image::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 39, 32, 0.5) 0%, rgba(23, 39, 32, 0.82) 100%); }
.page-hero .hero-bg-img { position: absolute; inset: -12% 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
.page-hero.has-image h1 { color: #fff; }
.page-hero.has-image .eyebrow { color: var(--ew-sage); }
.page-hero.has-image p { color: rgba(255, 255, 255, 0.82); }
.page-hero.has-image .breadcrumb-item a { color: #fff; }
.page-hero.has-image .breadcrumb-item.active, .page-hero.has-image .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.65); }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); margin-bottom: 14px; font-weight: 400; }
.page-hero p { color: var(--ew-muted); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb { justify-content: center; margin: 18px 0 0; font-size: .85rem; }
.breadcrumb-item a { color: var(--ew-forest); }
.breadcrumb-item.active { color: var(--ew-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--ew-muted); }

/* ============================================================
   SHOP
   ============================================================ */
.shop-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px; background: #fff; border-radius: var(--ew-radius); border: 1px solid var(--ew-line); margin-bottom: 36px;
}
.shop-search { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 420px; background: var(--ew-paper); border-radius: var(--ew-radius-pill); padding: 4px 6px 4px 18px; border: 1px solid var(--ew-line); }
.shop-search input { border: 0; background: transparent; flex: 1; outline: none; padding: 8px 0; min-width: 0; }
.shop-search button { border: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--ew-forest); color: #fff; }
.shop-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-chips a { padding: 8px 16px; border-radius: var(--ew-radius-pill); border: 1px solid var(--ew-line); font-size: .88rem; color: var(--ew-text); background: #fff; }
.shop-chips a.active, .shop-chips a:hover { background: var(--ew-forest); border-color: var(--ew-forest); color: #fff; }
.shop-sort { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ew-muted); }
.shop-sort select { border-radius: var(--ew-radius-pill); border: 1px solid var(--ew-line); padding: 9px 36px 9px 16px; background-color: #fff; font-size: .9rem; }
.empty-state { text-align: center; padding: 70px 20px; background: #fff; border: 1px dashed rgba(38, 61, 53, 0.25); border-radius: var(--ew-radius-lg); }
.empty-state .bi { font-size: 3rem; color: var(--ew-sage); }
.empty-state h3 { margin: 16px 0 8px; }

.pagination { gap: 6px; }
.pagination .page-link { border-radius: 50% !important; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ew-line); color: var(--ew-forest); }
.pagination .page-item.active .page-link { background: var(--ew-forest); border-color: var(--ew-forest); color: #fff; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.pd-gallery { position: sticky; top: calc(var(--ew-header-h) + 24px); }
.pd-main {
    position: relative; border-radius: var(--ew-radius-lg); overflow: hidden; aspect-ratio: 1;
    background: radial-gradient(circle at 50% 45%, #fff 0%, var(--ew-sage-50) 75%); border: 1px solid var(--ew-line);
}
.pd-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: opacity .35s; }
.pd-main img.cover { object-fit: cover; padding: 0; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumb {
    width: 84px; height: 84px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--ew-sage-50); cursor: pointer;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active { border-color: var(--ew-forest); }
.pd-title { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 14px; font-weight: 400; }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 20px; }
.pd-price .price-current { font-size: 2.1rem; }
.pd-short { color: var(--ew-muted); font-size: 1.04rem; margin-bottom: 26px; }
.offer-box {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--ew-radius); margin-bottom: 26px;
    background: linear-gradient(135deg, #f7efe0, #f3ead8); border: 1px solid var(--ew-gold-soft);
}
.offer-box .bi { font-size: 1.4rem; color: var(--ew-gold); }
.offer-box strong { color: var(--ew-ink); display: block; }
.offer-box span { color: var(--ew-text); font-size: .92rem; }
.qty {
    display: inline-flex; align-items: center; border: 1px solid var(--ew-line); border-radius: var(--ew-radius-pill); background: #fff; height: 54px;
}
.qty button { width: 46px; height: 100%; border: 0; background: transparent; color: var(--ew-forest); font-size: 1.1rem; border-radius: var(--ew-radius-pill); }
.qty button:hover { background: var(--ew-sage-50); }
.qty input { width: 46px; text-align: center; border: 0; background: transparent; font-weight: 700; color: var(--ew-ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 42px; }
.qty-sm button { width: 36px; }
.qty-sm input { width: 34px; font-size: .92rem; }
.pd-buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pd-buy .btn-ew-primary { flex: 1 1 200px; height: 54px; }
.pd-live-total { font-size: .9rem; color: var(--ew-muted); margin-top: 12px; min-height: 1.4em; }
.pd-live-total strong { color: var(--ew-forest); }
.stock-note { font-size: .9rem; margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.stock-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ew-success); box-shadow: 0 0 0 4px rgba(63, 122, 82, 0.15); }
.stock-note.low .dot { background: var(--ew-warning); box-shadow: 0 0 0 4px rgba(194, 138, 44, 0.15); }
.trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--ew-line); }
.trust-list div { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ew-text); }
.trust-list .bi { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--ew-sage-50); color: var(--ew-forest); display: flex; align-items: center; justify-content: center; }
.btn-whatsapp { background: #fff; border: 1.5px solid #c9e8d3; color: #1f7a45; }
.btn-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }

.pd-tabs { border-bottom: 1px solid var(--ew-line); gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pd-tabs .nav-link { border: 0; color: var(--ew-muted); font-weight: 600; padding: 14px 20px; border-bottom: 2px solid transparent; border-radius: 0; white-space: nowrap; background: transparent; }
.pd-tabs .nav-link.active { color: var(--ew-forest); border-bottom-color: var(--ew-forest); background: transparent; }
.pd-desc h4 { font-size: 1.25rem; margin: 26px 0 10px; }
.pd-desc p { color: var(--ew-text); }
.review-item { padding: 24px 0; border-bottom: 1px solid var(--ew-line); }
.review-item:last-child { border-bottom: 0; }
.review-summary { background: var(--ew-sage-50); border-radius: var(--ew-radius); padding: 28px; text-align: center; }
.review-summary .big { font-family: var(--ew-font-heading); font-size: 3.4rem; color: var(--ew-forest); line-height: 1; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.6rem; color: #d9d2c2; cursor: pointer; transition: color .2s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--ew-gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--ew-teal); border-radius: 4px; }

.sticky-buy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--ew-line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: none;
    transform: translateY(110%); transition: transform .45s var(--ew-ease);
}
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-buy .name { font-weight: 600; font-size: .9rem; color: var(--ew-ink); line-height: 1.2; }

/* ============================================================
   CART & CHECKOUT
   ============================================================ */
.panel { background: #fff; border: 1px solid var(--ew-line); border-radius: var(--ew-radius-lg); padding: clamp(20px, 3vw, 32px); }
.panel-title { font-size: 1.45rem; margin-bottom: 22px; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--ew-line); }
.cart-row:first-child { padding-top: 4px; }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: var(--ew-sage-50); display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-name { font-family: var(--ew-font-heading); font-size: 1.12rem; color: var(--ew-ink); line-height: 1.3; display: block; margin-bottom: 4px; }
.cart-meta { font-size: .85rem; color: var(--ew-muted); }
.cart-promo { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ew-gold); margin-top: 6px; }
.cart-line-total { font-family: var(--ew-font-heading); font-weight: 600; font-size: 1.15rem; color: var(--ew-forest); text-align: right; white-space: nowrap; }
.cart-line-total .saved { display: block; font-family: var(--ew-font-body); font-size: .75rem; color: var(--ew-success); font-weight: 600; }
.cart-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.link-remove { background: none; border: 0; padding: 0; color: var(--ew-muted); font-size: .85rem; display: inline-flex; align-items: center; gap: 5px; }
.link-remove:hover { color: var(--ew-danger); }
.cart-warning { font-size: .82rem; color: var(--ew-danger); margin-top: 6px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; color: var(--ew-text); }
.summary-row.total { border-top: 1px solid var(--ew-line); margin-top: 10px; padding-top: 18px; font-size: 1.2rem; font-weight: 700; color: var(--ew-ink); }
.summary-row.total span:last-child { font-family: var(--ew-font-heading); color: var(--ew-forest); font-size: 1.5rem; }
.summary-row .discount { color: var(--ew-success); font-weight: 600; }
.coupon-form { display: flex; gap: 8px; margin: 18px 0 6px; }
.coupon-form input { text-transform: uppercase; }
.applied-coupon { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #e6efe6; color: #24502f; border-radius: 12px; padding: 10px 14px; font-size: .9rem; margin-top: 16px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .82rem; color: var(--ew-muted); margin-top: 14px; }
.sticky-summary { position: sticky; top: calc(var(--ew-header-h) + 20px); }

.form-label { font-size: .82rem; font-weight: 600; color: var(--ew-ink); margin-bottom: 6px; }
.form-control, .form-select {
    border-radius: 12px; border: 1px solid rgba(28, 38, 33, 0.16); padding: 12px 15px; font-size: .97rem; background-color: #fff; color: var(--ew-ink);
}
.form-control:focus, .form-select:focus { border-color: var(--ew-teal); box-shadow: 0 0 0 4px rgba(62, 107, 94, 0.14); }
.form-control-ew { border-radius: 12px; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--ew-danger); }
.input-icon { position: relative; }
.input-icon .bi { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ew-muted); pointer-events: none; }
.input-icon .form-control { padding-left: 42px; }
.toggle-password { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ew-muted); width: 40px; height: 40px; }
.form-check-input:checked { background-color: var(--ew-forest); border-color: var(--ew-forest); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(62, 107, 94, 0.14); border-color: var(--ew-teal); }

.pay-option { display: block; cursor: pointer; margin-bottom: 12px; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option .pay-card { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--ew-line); border-radius: 16px; padding: 16px 18px; transition: border-color .3s, background .3s; }
.pay-option .pay-card .bi { font-size: 1.4rem; color: var(--ew-forest); }
.pay-option .pay-card small { display: block; color: var(--ew-muted); }
.pay-option input:checked + .pay-card { border-color: var(--ew-forest); background: var(--ew-sage-50); }
.pay-option input:focus-visible + .pay-card { outline: 2px solid var(--ew-teal); outline-offset: 2px; }

.checkout-steps { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; font-size: .85rem; }
.checkout-steps span { display: inline-flex; align-items: center; gap: 8px; color: var(--ew-muted); }
.checkout-steps span.active { color: var(--ew-forest); font-weight: 600; }
.checkout-steps span + span::before { content: ''; width: 26px; height: 1px; background: var(--ew-line); }

.mini-item { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.mini-item .thumb { position: relative; width: 62px; height: 62px; border-radius: 12px; background: var(--ew-sage-50); flex-shrink: 0; }
.mini-item .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mini-item .thumb .qty-badge { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--ew-forest); color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mini-item .name { font-weight: 600; font-size: .92rem; color: var(--ew-ink); line-height: 1.3; }

.success-mark { width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 50%; background: var(--ew-sage-100); color: var(--ew-forest); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }

/* ============================================================
   TRACKING
   ============================================================ */
.track-progress { display: flex; justify-content: space-between; position: relative; margin: 10px 0 34px; }
.track-progress::before { content: ''; position: absolute; top: 19px; left: 6%; right: 6%; height: 2px; background: var(--ew-line); }
.track-progress .bar { position: absolute; top: 19px; left: 6%; height: 2px; background: var(--ew-forest); transition: width 1.2s var(--ew-ease); }
.track-step { position: relative; z-index: 1; text-align: center; flex: 1; font-size: .78rem; color: var(--ew-muted); }
.track-step .dot { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%; background: #fff; border: 2px solid var(--ew-line); display: flex; align-items: center; justify-content: center; color: var(--ew-muted); }
.track-step.done .dot { background: var(--ew-forest); border-color: var(--ew-forest); color: #fff; }
.track-step.done { color: var(--ew-forest); font-weight: 600; }
.timeline { list-style: none; padding: 0 0 0 26px; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--ew-line); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ew-forest); border: 3px solid var(--ew-sage-100); }
.timeline li:last-child { padding-bottom: 0; }
.timeline strong { display: block; color: var(--ew-ink); }
.timeline small { color: var(--ew-muted); }

.status-badge { display: inline-block; padding: 6px 12px; border-radius: var(--ew-radius-pill); font-size: .74rem; font-weight: 700; letter-spacing: .03em; }
.status-pending { background: #f8efdc; color: #7a560f; }
.status-confirmed { background: #e3eef3; color: #1f5a73; }
.status-processing { background: #e8e6f5; color: #45397f; }
.status-shipped { background: #e2f0ec; color: #23604f; }
.status-delivered { background: #e3efe3; color: #2c5e36; }
.status-cancelled { background: #f6e3df; color: #8a2f22; }
.status-returned { background: #ececec; color: #4b4b4b; }

/* ============================================================
   ACCOUNT / AUTH
   ============================================================ */
.auth-wrap { min-height: 72vh; display: flex; align-items: center; padding: 60px 0; }
.auth-card { background: #fff; border-radius: var(--ew-radius-lg); border: 1px solid var(--ew-line); box-shadow: var(--ew-shadow); overflow: hidden; }
.auth-side { position: relative; background: var(--ew-forest); color: var(--ew-sage); padding: 48px 40px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.auth-side::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../images/brand/fern-bg.jpg') center / cover; opacity: .18; }
.auth-side h2 { color: #fff; font-size: 2rem; }
.auth-side ul { list-style: none; padding: 0; margin: 0; }
.auth-side li { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.auth-body { padding: clamp(28px, 5vw, 52px); }

.account-nav { background: #fff; border: 1px solid var(--ew-line); border-radius: var(--ew-radius-lg); padding: 22px; }
.account-user { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--ew-line); }
.account-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--ew-forest); color: var(--ew-sage); display: flex; align-items: center; justify-content: center; font-family: var(--ew-font-heading); font-size: 1.4rem; flex-shrink: 0; }
.account-nav .nav-link { display: flex; align-items: center; gap: 12px; color: var(--ew-text); padding: 11px 14px; border-radius: 12px; font-weight: 500; }
.account-nav .nav-link:hover { background: var(--ew-sage-50); color: var(--ew-forest); }
.account-nav .nav-link.active { background: var(--ew-forest); color: #fff; }
.stat-tile { background: var(--ew-sage-50); border-radius: var(--ew-radius); padding: 22px; height: 100%; }
.stat-tile .bi { font-size: 1.5rem; color: var(--ew-forest); }
.stat-tile strong { display: block; font-family: var(--ew-font-heading); font-size: 1.9rem; color: var(--ew-ink); margin-top: 8px; line-height: 1.1; }
.stat-tile span { font-size: .85rem; color: var(--ew-muted); }
.table-ew { --bs-table-bg: transparent; }
.table-ew thead th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ew-muted); font-weight: 600; border-bottom-color: var(--ew-line); }
.table-ew td { border-bottom-color: var(--ew-line); vertical-align: middle; }

/* ============================================================
   CONTACT / ABOUT / POLICY
   ============================================================ */
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border-radius: var(--ew-radius); border: 1px solid var(--ew-line); height: 100%; transition: box-shadow .4s, transform .4s var(--ew-ease); }
.contact-card:hover { box-shadow: var(--ew-shadow); transform: translateY(-3px); }
.contact-card .icon { width: 50px; height: 50px; border-radius: 14px; background: var(--ew-forest); color: var(--ew-sage); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { margin: 0; color: var(--ew-muted); word-break: break-word; }
.contact-card a:hover { color: var(--ew-forest); }
.policy-content { max-width: 820px; margin: 0 auto; }
.policy-content h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p, .policy-content li { color: var(--ew-text); }
.policy-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .85rem; color: var(--ew-muted); margin-bottom: 18px; }
.policy-meta .bi { color: var(--ew-teal); margin-right: 4px; }
.policy-entity { font-size: .9rem; line-height: 1.65; padding: 14px 18px; border-left: 3px solid var(--ew-gold); background: var(--ew-cream); border-radius: 0 14px 14px 0; margin-bottom: 26px; }
.policy-summary { background: var(--ew-sage-50); border: 1px solid var(--ew-line); border-radius: 18px; padding: 20px 24px; margin-bottom: 10px; }
.policy-content .policy-summary h2 { font-family: var(--ew-font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ew-teal); margin: 0 0 10px; }
.policy-summary ul { margin: 0; padding-left: 1.1rem; }
.policy-summary li { margin-bottom: 4px; }
.policy-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.policy-table th, .policy-table td { padding: 11px 12px; border-bottom: 1px solid var(--ew-line); text-align: left; vertical-align: top; }
.policy-table th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ew-muted); background: var(--ew-cream); }
.policy-table code { color: var(--ew-forest); font-size: .85em; white-space: nowrap; }
@media (max-width: 575.98px) { .policy-summary { padding: 16px 18px; } .policy-content h2 { font-size: 1.3rem; margin-top: 30px; } }
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 44px; }
.policy-nav a { padding: 9px 18px; border-radius: var(--ew-radius-pill); border: 1px solid var(--ew-line); background: #fff; font-size: .9rem; color: var(--ew-text); }
.policy-nav a.active, .policy-nav a:hover { background: var(--ew-forest); border-color: var(--ew-forest); color: #fff; }
.value-card { text-align: center; padding: 34px 24px; background: #fff; border-radius: var(--ew-radius); border: 1px solid var(--ew-line); height: 100%; }
.value-card .bi { font-size: 1.8rem; color: var(--ew-teal); }
.value-card h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.value-card p { color: var(--ew-muted); font-size: .93rem; margin: 0; }

/* ============================================================
   NEWSLETTER + FOOTER
   ============================================================ */
.newsletter {
    position: relative; overflow: hidden; isolation: isolate; border-radius: var(--ew-radius-lg); padding: clamp(36px, 5vw, 60px);
    background: var(--ew-sage-100); margin-bottom: -90px; z-index: 3;
}
.newsletter::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; background: url('../images/logo-mark.svg') center / contain no-repeat; opacity: .08; z-index: -1; }
.newsletter h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.newsletter-form { display: flex; gap: 10px; background: #fff; border-radius: var(--ew-radius-pill); padding: 6px; border: 1px solid var(--ew-line); }
.newsletter-form input { flex: 1; border: 0; outline: none; padding: 0 18px; background: transparent; min-width: 0; font-size: .97rem; }
.newsletter-msg { font-size: .88rem; margin-top: 10px; min-height: 1.3em; }

.site-footer { background: var(--ew-forest-900); color: rgba(232, 238, 227, 0.72); padding: 160px 0 0; position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../images/brand/fern-bg.jpg') center / cover; opacity: .06; }
.footer-brand img { width: 62px; height: 62px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: .94rem; max-width: 330px; margin: 18px 0 0; }
.footer-title { font-family: var(--ew-font-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ew-sage); font-weight: 600; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(232, 238, 227, 0.72); font-size: .95rem; position: relative; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .95rem; }
.footer-contact .bi { color: var(--ew-sage); margin-top: 3px; }
.footer-contact a { color: rgba(232, 238, 227, 0.85); }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(211, 219, 203, 0.22); color: var(--ew-sage); display: flex; align-items: center; justify-content: center; transition: all .3s var(--ew-ease); }
.footer-social a:hover { background: var(--ew-sage); color: var(--ew-forest); transform: translateY(-3px); }
.footer-giant { font-family: var(--ew-font-heading); font-size: clamp(3.2rem, 13vw, 11.5rem); line-height: .9; color: rgba(211, 219, 203, 0.07); text-align: center; white-space: nowrap; margin: 50px 0 -12px; user-select: none; letter-spacing: -0.03em; }
.footer-bottom { border-top: 1px solid rgba(211, 219, 203, 0.12); padding: 22px 0; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom a { color: rgba(232, 238, 227, 0.72); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .links { display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: center; }
.footer-bottom .link-btn { color: rgba(232, 238, 227, 0.72); }

/* Floating buttons */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 1010; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4); transition: transform .35s var(--ew-ease);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.whatsapp-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.back-to-top {
    position: fixed; right: 26px; bottom: 92px; z-index: 1009; width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--ew-forest); color: #fff; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .4s var(--ew-ease); box-shadow: var(--ew-shadow);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { position: absolute; inset: -3px; width: 52px; height: 52px; transform: rotate(-90deg); }
.back-to-top svg circle { fill: none; stroke: var(--ew-gold); stroke-width: 2; }
@media (max-width: 991.98px) {
    .whatsapp-float { transition: transform .35s var(--ew-ease), opacity .35s, visibility .35s; }
    body.in-showcase .whatsapp-float, body.in-showcase .back-to-top.is-visible { opacity: 0; visibility: hidden; transform: translateY(16px); }
}

.newsletter-note { font-size: .78rem; color: var(--ew-muted); margin: 10px 0 0; }
.newsletter-note a { color: var(--ew-forest); text-decoration: underline; text-underline-offset: 2px; }

/* Cookie consent */
.cookie-banner {
    position: fixed; left: 24px; bottom: 24px; z-index: 1090; width: min(440px, calc(100vw - 48px));
    background: #fff; border: 1px solid var(--ew-line); border-radius: 22px; padding: 22px 22px 18px;
    box-shadow: 0 24px 60px rgba(23, 39, 32, 0.18);
    opacity: 0; transform: translateY(24px); transition: opacity .45s var(--ew-ease), transform .45s var(--ew-ease);
}
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-main { display: flex; gap: 14px; align-items: flex-start; }
.cookie-icon { flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--ew-sage-100); color: var(--ew-forest); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.cookie-banner h2 { font-family: var(--ew-font-heading); font-size: 1.15rem; font-weight: 600; margin: 2px 0 6px; color: var(--ew-ink); }
.cookie-banner p { font-size: .86rem; line-height: 1.55; color: var(--ew-text); margin: 0; }
.cookie-banner p a { color: var(--ew-forest); text-decoration: underline; text-underline-offset: 2px; }
.cookie-prefs { margin-top: 14px; border-top: 1px solid var(--ew-line); }
.cookie-pref { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--ew-line); cursor: pointer; }
.cookie-pref strong { display: block; font-size: .88rem; color: var(--ew-ink); }
.cookie-pref small { display: block; font-size: .78rem; color: var(--ew-muted); line-height: 1.4; }
.cookie-pref .form-check-input { width: 2.4em; height: 1.3em; margin: 0; flex: 0 0 auto; border-radius: 2em; cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%2838,61,53,.35%29'/%3e%3c/svg%3e"); background-position: left center; background-repeat: no-repeat; transition: background-position .2s; }
.cookie-pref .form-check-input:checked { background-color: var(--ew-forest); border-color: var(--ew-forest); background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); }
.cookie-pref .form-check-input:disabled { opacity: .6; cursor: not-allowed; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-actions > * { flex: 1 1 auto; padding-left: 14px; padding-right: 14px; }
.cookie-actions [data-consent="customize"] { color: var(--ew-forest); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions [data-consent="customize"]:hover { background: var(--ew-sage-50); color: var(--ew-forest); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.link-btn:hover { color: #fff; }
@media (max-width: 575.98px) {
    .cookie-banner { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; padding: 18px 16px 14px; border-radius: 20px; max-height: calc(100vh - 20px); overflow-y: auto; }
    .cookie-actions > [data-consent="all"] { order: -1; flex-basis: 100%; }
    body.cookie-open .whatsapp-float, body.cookie-open .back-to-top, body.cookie-open .sticky-buy { opacity: 0; visibility: hidden; }
}

/* Toasts */
.toast-stack { position: fixed; top: 18px; right: 18px; left: auto; z-index: 3000; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 36px); }
.ew-toast {
    display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 380px; padding: 14px 16px; border-radius: 16px;
    background: var(--ew-ink); color: #fff; box-shadow: var(--ew-shadow-lg); font-size: .92rem; cursor: pointer;
}
.ew-toast .bi { font-size: 1.2rem; }
.ew-toast.success .bi { color: #9fd3a9; }
.ew-toast.error .bi { color: #f1a196; }
.ew-toast.warning .bi { color: #f3cf86; }
.ew-toast a { color: var(--ew-sage); text-decoration: underline; margin-left: auto; white-space: nowrap; }

/* Fly-to-cart clone */
.fly-img { position: fixed; z-index: 4000; pointer-events: none; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: var(--ew-shadow); }

/* ============================================================
   404
   ============================================================ */
.notfound { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.notfound .big { font-family: var(--ew-font-heading); font-size: clamp(6rem, 20vw, 12rem); line-height: 1; color: var(--ew-forest); }

/* ============================================================
   REVEAL STATES (set before GSAP runs to avoid flashes)
   ============================================================ */
.js-anim [data-reveal], .js-anim [data-reveal-stagger] > * { opacity: 0; }
.no-js [data-reveal], .reduced-motion [data-reveal], .reduced-motion [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
    .main-nav a { padding: 10px 11px; }
}

@media (max-width: 991.98px) {
    :root { --ew-section-py: 84px; --ew-header-h: 68px; }
    .main-nav, .header-cta { display: none !important; }
    .nav-toggle { display: inline-flex; }
    .brand img { width: 44px; height: 44px; }
    .hero { padding: 40px 0 72px; text-align: center; min-height: auto; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-chips { justify-content: center; }
    .hero-visual { min-height: 380px; margin-top: 30px; }
    .hero-badge { width: 110px; height: 110px; right: 4%; }
    .hero-badge .badge-center { inset: 24px; }

    /* Phones/tablets: title → product → copy, so the bottle is in the very first screen */
    .hero .row { margin-top: 0; }
    .hero-content { display: contents; }
    .hero-content > * { position: relative; z-index: 2; width: 100%; max-width: 100%; padding-left: calc(var(--bs-gutter-x) * .5); padding-right: calc(var(--bs-gutter-x) * .5); }
    .hero-content > .eyebrow { order: 1; justify-content: center; margin-bottom: 14px; }
    .hero-content > .hero-title { order: 2; margin-bottom: 0; }
    .hero .row > :not(.hero-content) { order: 3; margin-top: 6px; }
    .hero-content > .hero-lead { order: 4; margin-top: 6px; margin-bottom: 26px; }
    .hero-content > .hero-actions { order: 5; margin-bottom: 26px; }
    .hero-content > .hero-chips { order: 6; }
    .js-anim .hero-content > * { opacity: 0; }
    .hero .hero-visual { margin-top: 0; }
    html.home-3d:not(.no-3d) .hero-badge { left: 0; right: auto; top: -2%; width: 96px; height: 96px; }
    html.home-3d:not(.no-3d) .hero-badge .badge-center { inset: 21px; }
    html.home-3d:not(.no-3d) .hero-badge .badge-center strong { font-size: 1rem; }
    .scroll-cue { display: none; }
    .pd-gallery { position: static; }
    .sticky-summary { position: static; }
    .story-img-sm { right: 4%; }
    .newsletter { margin-bottom: -70px; }
    .site-footer { padding-top: 130px; }
}

@media (max-width: 767.98px) {
    :root { --ew-section-py: 68px; }
    body { font-size: 15px; }
    .container { padding-left: 16px; padding-right: 16px; }
    .page-hero { padding: 52px 0 44px; }
    .page-hero.has-image { padding: 84px 0 64px; }
    .page-hero p { font-size: .98rem; }
    /* Wide gutters would poke 8px past the 16px container padding */
    .row.g-5, .row.gx-5 { --bs-gutter-x: 2rem; }
    .row.g-5, .row.gy-5 { --bs-gutter-y: 2.25rem; }
    .announcement { font-size: .74rem; padding: 7px 0; }
    .brand-tag { display: none; }
    .brand-name { font-size: 1.15rem; }
    .icon-btn { width: 40px; height: 40px; font-size: 1.1rem; }
    .hero-title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
    .eyebrow { font-size: .68rem; letter-spacing: .16em; gap: 8px; }
    .hero .eyebrow::before, .page-hero .eyebrow::before, .page-hero .eyebrow::after { display: none; }
    .hero-chips .chip { font-size: .8rem; padding: 8px 13px; }
    .hero-visual { min-height: 320px; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn-ew-primary, .hero-actions .btn-ew-outline { flex: 1 1 calc(50% - 5px); padding-left: 16px; padding-right: 16px; }
    .product-body { padding: 20px; }
    .cart-row { grid-template-columns: 76px 1fr; gap: 14px; }
    .cart-thumb { width: 76px; height: 76px; }
    .cart-line-total { grid-column: 2; text-align: left; }
    .trust-list { grid-template-columns: 1fr; }
    .sticky-buy { display: flex; align-items: center; gap: 12px; }
    body.has-sticky-buy .whatsapp-float { bottom: 92px; }
    body.has-sticky-buy .back-to-top { bottom: 162px; }
    .faq-item .faq-answer { padding-right: 4px; }
    .newsletter-form { flex-direction: column; background: transparent; border: 0; padding: 0; }
    .newsletter-form input { background: #fff; border: 1px solid var(--ew-line); border-radius: var(--ew-radius-pill); padding: 14px 18px; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
    .track-step { font-size: .68rem; }
    .track-step .dot { width: 32px; height: 32px; font-size: .85rem; }
    .track-progress::before, .track-progress .bar { top: 15px; }
    .story-img-sm { width: 42%; bottom: -6%; }
    .shop-toolbar { padding: 12px; }
    .shop-sort { width: 100%; justify-content: space-between; }
    .toast-stack { left: 12px; right: 12px; top: 12px; }
    .ew-toast { max-width: none; min-width: 0; }
    .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; font-size: 1.5rem; }
    .back-to-top { right: 19px; bottom: 80px; }
}

/* Extra-small phones (320–380px) */
@media (max-width: 380px) {
    .container { padding-left: 12px; padding-right: 12px; }
    .header-inner { gap: 8px; }
    .brand { gap: 8px; }
    .brand img { width: 38px; height: 38px; }
    .brand-name { font-size: 1.02rem; }
    .header-actions { gap: 2px; }
    .icon-btn { width: 36px; height: 36px; font-size: 1.02rem; }
    .row.g-4, .row.gx-4 { --bs-gutter-x: 1.25rem; }
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
    .hero-title { font-size: clamp(2.05rem, 10.5vw, 2.6rem); }
    .hero-actions .btn-ew-primary, .hero-actions .btn-ew-outline { padding-left: 12px; padding-right: 12px; font-size: .9rem; }
    .showcase-panel { padding: 14px 14px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .announcement, .site-header, .site-footer, .whatsapp-float, .back-to-top, .newsletter, .sticky-buy, .no-print { display: none !important; }
    body { background: #fff; }
}
