/* ============================================================
   Gaon Dry Fruits — Storefront stylesheet (CLEAN BUILD)
   Palette: warm light background + deep forest green + golden accent

   FIXES APPLIED:
   1. The .img-wrap .shimmer rule was cut mid-line (missing "}").
      That made the browser skip almost every rule written after
      it. The rule is now complete and in the correct section.
   2. Product images now fill their box with absolute positioning
      (width/height 100% + object-fit: cover) so they can never
      collapse, stretch or disappear because of CSS.
   3. A shimmer/emoji placeholder sits UNDER the image, so while
      an image loads (or if it is missing) the card still looks
      clean — no JS needed.
   4. Scroll-reveal animations only activate when JS adds the
      class "js" to <html>. If JS fails, everything stays visible
      instead of the page looking broken.
   =========================================================== */

:root {
  --bg:        #f6f3ea;
  --bg-soft:   #efeadd;
  --card:      #ffffff;
  --green-900: #14301f;
  --green-800: #14301f;
  --green-700: #1c4430;
  --green-600: #27603f;
  --green-500: #34774e;
  --green-100: #e4efe6;
  --green-50:  #f1f7f0;
  --gold:      #c9a227;
  --gold-soft: #f6ead0;
  --ink:       #20241f;
  --muted:     #6d7169;
  --line:      #e6e1d2;
  --danger:    #c2402f;
  --star:      #f5b301;
  --radius:    var(--r-lg, 18px);
  --radius-sm: var(--r-sm, 12px);
  --shadow-sm: 0 4px 14px rgba(28, 45, 32, .07);
  --shadow-md: 0 12px 32px rgba(28, 45, 32, .12);
  --shadow-lg: 0 24px 60px rgba(28, 45, 32, .18);
  --font: var(--font-body, 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif);
}

/* display serif for major headings */
h1, .section-head h2, .deal h2, .about .copy h2, .newsletter h2, .page-hero h1 {
  font-family: var(--font-display);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }
section[id] { scroll-margin-top: 90px; }

.container { width: min(1240px, 92%); margin-inline: auto; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #b9c4b4; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-500); }

/* ============================================================
   SHARED
   ============================================================ */
.section { padding: 74px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-600); background: var(--green-100); padding: 7px 16px;
  border-radius: 999px; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.section-head h2 em { font-style: normal; color: var(--green-600); }
.section-head p { color: var(--muted); margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.22);
  transform: translateX(-110%) skewX(-20deg); transition: transform .5s;
}
.btn:hover::after { transform: translateX(110%) skewX(-20deg); }
.btn-primary { background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff; box-shadow: 0 8px 20px rgba(28,68,48,.28); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(28,68,48,.35); }
.btn-gold { background: linear-gradient(135deg, #d9b23c, var(--gold)); color: #3a2c05; box-shadow: 0 8px 20px rgba(201,162,39,.35); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(201,162,39,.45); }
.btn-ghost { background: #fff; color: var(--green-700); border: 1.5px solid var(--green-100); }
.btn-ghost:hover { border-color: var(--green-600); background: var(--green-50); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--gold); color: #3a2c05; font-size: .68rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.badge.green { background: var(--green-600); color: #fff; }
.badge.red { background: var(--danger); color: #fff; }

.rating { display: inline-flex; align-items: center; gap: 5px; color: var(--star); font-size: .85rem; }
.rating span { color: var(--muted); font-size: .78rem; }

/* ---------- reveal on scroll ----------
   Only active when JS adds class "js" to <html>:
   <script>document.documentElement.classList.add('js')</script>
   If JS is missing/broken, content stays visible — nothing hides. */
html.js .reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22,.9,.3,1);
  will-change: opacity, transform;
}
html.js .reveal.in-view { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: .1s; }
html.js .reveal.d2 { transition-delay: .2s; }
html.js .reveal.d3 { transition-delay: .3s; }
html.js .reveal.d4 { transition-delay: .4s; }

@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   TOP BAR + HEADER
   ============================================================ */
.topbar {
  background: linear-gradient(90deg, var(--green-900), var(--green-600));
  color: #e9f2e7; font-size: .82rem; text-align: center;
  padding: calc(8px + env(safe-area-inset-top, 0px)/2) 16px 8px; letter-spacing: .02em; position: relative; z-index: 60;
}
.topbar b { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(52,119,78,.14);
  transition: box-shadow .3s, background .3s;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.logo .logo-mark {
  width: clamp(180px, 26vw, 320px); height: clamp(64px, 10vw, 120px); border-radius: 0; flex: none;
  background: transparent;
  color: #fff;
  box-shadow: none; animation: floaty 4s ease-in-out infinite;
  overflow: visible; border: none;
  display: flex; align-items: center; justify-content: center;
  min-width: 0;
}
.logo .logo-mark img { width: auto; height: 100%; max-height: clamp(64px, 10vw, 120px); max-width: 100%; object-fit: contain; display: block; }
.site-footer .logo .logo-mark {
  width: 44px; height: 44px; flex: none;
  background: #fff; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 4px 14px rgba(0,0,0,.2);
  overflow: hidden; padding: 3px;
}
.site-footer .logo .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo .logo-mark svg { width: 24px; height: 24px; }
.logo small { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .28em; color: var(--gold); text-transform: uppercase; }

.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  position: relative; padding: 9px 15px; font-weight: 600; font-size: .94rem; color: #39403a;
  border-radius: 999px; transition: color .25s, background .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2.5px;
  background: var(--green-600); border-radius: 3px; transform: translateX(-50%);
  transition: width .3s;
}
.nav a:hover, .nav a.active { color: var(--green-700); background: var(--green-50); }
.nav a:hover::after, .nav a.active::after { width: 50%; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #39403a; background: transparent;
  transition: background .25s, transform .25s, color .25s;
}
.icon-btn:hover { background: var(--green-50); color: var(--green-700); transform: translateY(-2px); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--danger); color: #fff; font-size: .66rem; font-weight: 800;
  border-radius: 999px; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.icon-btn .count.show { transform: scale(1); }
.icon-btn .count.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }

.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: #39403a; }
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #e6c25a);
  color: #3a2c05; display: grid; place-items: center; font-weight: 800; font-size: .8rem;
}

.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); place-items: center; }
.hamburger svg { width: 24px; height: 24px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 220; background: rgba(20,30,22,.55);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu .sheet {
  position: absolute; top: 0; right: 0; height: 100%; height: 100dvh; width: min(320px, 86%);
  background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform .38s cubic-bezier(.22,.9,.3,1);
  box-shadow: var(--shadow-lg); overflow-y: auto;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.mobile-menu.open .sheet { transform: none; }
.mobile-menu .sheet a { padding: 13px 10px; border-radius: 12px; font-weight: 600; border-bottom: 1px dashed var(--line); }
.mobile-menu .sheet a:hover { background: var(--green-50); color: var(--green-700); }
.mobile-menu .sheet .close-m { margin-left: auto; }

/* ---------- ecommerce header: main row + search ---------- */
.header-main { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 18px); padding: 10px 0; min-width: 0; flex-wrap: wrap; }

.header-search {
  flex: 1 1 220px; min-width: 150px; max-width: 300px; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 5px 5px 16px; transition: border-color .25s, box-shadow .25s;
}
.header-search:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(52,119,78,.12); }
.header-search > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.header-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: .92rem; height: 36px;
}
.header-search input::placeholder { color: #a5aa9e; }
.hs-btn {
  flex: none; height: 36px; padding: 0 20px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff; font-weight: 700; font-size: .85rem;
  transition: filter .2s, transform .2s;
}
.hs-btn:hover { filter: brightness(1.08); }

/* category nav row */
.site-header .nav {
  display: flex; flex: 1 1 auto; min-width: 0; gap: 2px; margin: 0;
  justify-content: center; padding: 0; max-height: none; overflow: visible;
}
.site-header .nav a {
  padding: 9px clamp(4px, .55vw, 10px) 8px;
  color: #000;
  border-radius: 8px;
  white-space: nowrap; font-size: clamp(.82rem, .9vw, 1.02rem);
}
.site-header .nav a::after {
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
}
.site-header .nav a:hover,
.site-header .nav a.active {
  color: #000;
  background: var(--green-50);
}

/* visibility utilities */
.only-mobile { display: none !important; }

/* ---------- mobile search overlay ---------- */
.mobile-search {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(246,243,234,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.mobile-search.open { opacity: 1; pointer-events: auto; }
.mobile-search .ms-inner {
  display: flex; align-items: center; gap: 10px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
}
.mobile-search .ms-inner > svg { width: 20px; height: 20px; color: var(--green-700); flex: none; }
.mobile-search input {
  flex: 1; min-width: 0; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 0 18px; font-size: 1rem; outline: none; background: #fff;
}
.mobile-search input:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(52,119,78,.12); }

/* ---------- bottom navigation (mobile app-style) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bottomnav, 150);
  display: none;
  grid-template-columns: repeat(5, 1fr); align-items: end;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(28,45,32,.08);
}
.bottom-nav a {
  position: relative; display: grid; justify-items: center; gap: 3px;
  padding: 5px 0 3px; color: #8a9086; font-size: .66rem; font-weight: 700;
  border-radius: var(--r-sm); transition: color .2s, transform .2s;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--green-700); }
.bottom-nav a:active { transform: scale(.94); }
.bottom-nav .bn-search {
  align-self: center; justify-self: center; width: 52px; height: 52px; margin-top: -22px;
  border-radius: 50%; background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 22px rgba(28,68,48,.4), 0 0 0 5px var(--bg);
  transition: transform .2s, filter .2s;
}
.bottom-nav .bn-search svg { width: 23px; height: 23px; }
.bottom-nav .bn-search:active { transform: scale(.92); }
.bottom-nav .bn-search:hover { filter: brightness(1.08); }
.bottom-nav .bn-badge {
  position: absolute; top: 0; right: 50%; margin-right: -22px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--danger); color: #fff; font-size: .62rem; font-weight: 800;
  border-radius: var(--r-pill); display: grid; place-items: center;
  transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.bottom-nav .bn-badge.show { transform: scale(1); }

@media (max-width: 760px) {
  .only-mobile { display: grid !important; }
  .btn.only-mobile { display: inline-flex !important; }
  .hide-mobile { display: none !important; }
  .bottom-nav { display: grid; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-slider { position: relative; height: clamp(480px, 78vh, 680px); }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; overflow: hidden;
  transition: opacity .9s ease, visibility .9s;
}
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slide .bg {
  position: absolute; inset: -6%; background-size: cover; background-position: center;
  transform: scale(1.12); transition: transform 7.5s cubic-bezier(.2,.6,.3,1);
}
.slide.active .bg { transform: scale(1); }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,34,22,.82) 0%, rgba(20,34,22,.45) 42%, rgba(20,34,22,.06) 75%);
}
.slide .content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 560px; color: #fff; padding: 40px 0;
}
.slide .content .tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25);
  color: #ffe9a8; padding: 7px 16px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px;
}
.slide .content h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 16px; }
.slide .content h1 em { font-style: normal; color: #ffd76a; }
.slide .content p { color: #e7efe4; font-size: 1.04rem; max-width: 460px; margin-bottom: 26px; }
.slide .content .cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* staggered entrance for active slide */
.slide .anim { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.9,.3,1); }
.slide.active .anim { opacity: 1; transform: none; }
.slide.active .anim.a1 { transition-delay: .25s; }
.slide.active .anim.a2 { transition-delay: .4s; }
.slide.active .anim.a3 { transition-delay: .55s; }
.slide.active .anim.a4 { transition-delay: .7s; }

.hero-nav {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.92);
  color: var(--green-800); display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: transform .3s, background .3s; opacity: .85;
}
.hero-nav:hover { transform: translateY(-50%) scale(1.08); background: #fff; opacity: 1; }
.hero-nav.prev { left: 22px; }
.hero-nav.next { right: 22px; }
.hero-nav svg { width: 22px; height: 22px; }

.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 5px; border-radius: 6px; background: rgba(255,255,255,.4); transition: background .3s, width .3s; position: relative; overflow: hidden; }
.hero-dots button.active { background: #fff; width: 46px; }
.hero-dots button.active::after {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform-origin: left; animation: dotProgress 3s linear forwards;
}
@keyframes dotProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-scroll {
  position: absolute; bottom: 20px; right: 26px; z-index: 5; color: #fff;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 10px;
  writing-mode: vertical-rl; opacity: .8;
}
.hero-scroll::after { content: ''; width: 2px; height: 46px; background: linear-gradient(#ffd76a, transparent); animation: scrollLine 2s infinite; }
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee {
  background: var(--gold); color: #3a2c05; overflow: hidden; padding: 13px 0;
  border-block: 1px solid rgba(58,44,5,.15);
}
.marquee .track { display: flex; gap: 44px; width: max-content; animation: marquee 26s linear infinite; }
.marquee span { font-weight: 800; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 44px; white-space: nowrap; }
.marquee span::after { content: '✦'; font-size: .8rem; }

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features { padding: 52px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.2vw, 24px); }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 26px 22px;
  display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .35s, box-shadow .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature .ico {
  width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-600); transition: transform .4s;
}
.feature:hover .ico { animation: floaty 1.4s ease infinite; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h4 { font-size: 1rem; margin-bottom: 3px; }
.feature p { font-size: .82rem; color: var(--muted); }

/* ============================================================
   CATEGORIES
   ============================================================ */
.cats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.8vw, 20px); }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/4.6;
  box-shadow: var(--shadow-sm); cursor: pointer; border: none; padding: 0; text-align: left;
  background: var(--green-100);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.3,1); }
.cat-card:hover img { transform: scale(1.12) rotate(1.5deg); }
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,34,22,0) 30%, rgba(16,32,20,.82) 100%);
}
.cat-card .cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 16px; color: #fff;
  transform: translateY(6px); transition: transform .35s;
}
.cat-card:hover .cap { transform: translateY(0); }
.cat-card .cap h4 { font-size: 1.02rem; font-weight: 800; }
.cat-card .cap small { display: block; color: #ffe9a8; font-size: .75rem; font-weight: 600; margin-top: 2px; opacity: .9; }
.cat-card .cap .arrow {
  position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: #3a2c05; display: grid; place-items: center;
  opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .35s;
}
.cat-card:hover .cap .arrow { opacity: 1; transform: none; }
.cat-card .cap .arrow svg { width: 17px; height: 17px; }

/* ============================================================
   SHOP / PRODUCTS
   ============================================================ */
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 30px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .88rem;
  background: #fff; border: 1.5px solid var(--line); color: #4a4f47; transition: all .3s;
}
.tab:hover { border-color: var(--green-500); color: var(--green-700); transform: translateY(-2px); }
.tab.active { background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(28,68,48,.3); }

.shop-right { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 0 16px; height: 44px; transition: border-color .3s, box-shadow .3s; min-width: 230px;
}
.search-box:focus-within { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(52,119,78,.12); }
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input { border: none; outline: none; background: none; width: 100%; font-size: .9rem; color: var(--ink); }
.sort-select { height: 44px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; background: #fff; font-weight: 600; font-size: .88rem; color: #4a4f47; outline: none; cursor: pointer; }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 26px); }
.prod-card {
  position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.2,.6,.3,1), box-shadow .4s;
  display: flex; flex-direction: column; min-width: 0;
}
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }


/* the image itself — absolute fill so it can never collapse or stretch */
.prod-card:hover .img-wrap img {
  transform: scale(1.04);
}

.prod-card .img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f0e5;
}

.prod-card .img-wrap img {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-card .quick-actions {
  position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 3;
}
.prod-card .qa-btn {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.95); color: #39403a;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateX(14px); transition: opacity .3s, transform .35s, background .25s, color .25s;
}
.prod-card:hover .qa-btn { opacity: 1; transform: none; }
.prod-card .qa-btn:hover { background: var(--green-600); color: #fff; }
.prod-card .qa-btn.wished { background: var(--danger); color: #fff; }
.prod-card .qa-btn svg { width: 18px; height: 18px; }
.prod-card .qa-btn.d1 { transition-delay: .05s; }
.prod-card .qa-btn.d2 { transition-delay: .1s; }

.prod-info { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.prod-info .cat-line { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); }
.prod-info h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; min-height: 2.7em; }
.prod-info .weight { font-size: .78rem; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 9px; margin-top: 2px; }
.price-row .now { font-size: 1.16rem; font-weight: 800; color: var(--green-700); }
.price-row .was { font-size: .86rem; color: #a09d92; text-decoration: line-through; }
.price-row .off { font-size: .75rem; font-weight: 800; color: var(--danger); background: #fdecea; padding: 2px 8px; border-radius: 999px; }
.prod-card .add-row { display: flex; gap: 9px; margin-top: 12px; }
.prod-card .add-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff;
  padding: 10px; border-radius: 12px; font-weight: 700; font-size: .86rem;
  transition: transform .25s, box-shadow .25s;
}
.prod-card .add-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(28,68,48,.3); }
.prod-card .add-btn:active { transform: scale(.96); }
.prod-card .add-btn svg { width: 17px; height: 17px; }
.prod-card .stock-low { font-size: .72rem; font-weight: 700; color: var(--danger); }

.prod-card.soldout .img-wrap img { filter: grayscale(.85); opacity: .6; }
.prod-card.soldout .add-btn { background: #b8bdb4; pointer-events: none; }

.empty-state { text-align: center; padding: 60px 20px; grid-column: 1 / -1; color: var(--muted); }
.empty-state svg { width: 60px; height: 60px; margin: 0 auto 14px; color: #c3c9bd; }
.empty-state h3 { color: var(--ink); margin-bottom: 6px; }

.load-more-wrap { text-align: center; margin-top: 40px; }

/* ============================================================
   DEAL OF THE DAY
   ============================================================ */
.deal {
  position: relative; overflow: hidden; border-radius: 26px; margin: 40px 0;
  background: linear-gradient(120deg, var(--green-900), var(--green-600));
  color: #fff; padding: 58px 54px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.deal::before {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,106,.25), transparent 65%);
  top: -120px; right: -80px; animation: pulse 5s infinite;
}
.deal .eyebrow { background: rgba(255,255,255,.14); color: #ffd76a; }
.deal h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.deal p { color: #dbe8d6; max-width: 460px; margin-bottom: 22px; }
.deal .price-line { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.deal .price-line .now { font-size: 2rem; font-weight: 800; color: #ffd76a; }
.deal .price-line .was { font-size: 1.1rem; color: #a9bda6; text-decoration: line-through; }
.countdown { display: flex; gap: 14px; margin-bottom: 28px; }
.countdown .unit {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(4px);
  border-radius: 14px; padding: 10px 16px; min-width: 74px; text-align: center;
}
.countdown .unit b { display: block; font-size: 1.55rem; font-weight: 800; color: #ffd76a; font-variant-numeric: tabular-nums; }
.countdown .unit span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #c9d8c3; }
.deal .deal-img {
  position: relative; z-index: 2; border-radius: 22px; overflow: hidden; aspect-ratio: 4/3.2;
  box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(2deg); transition: transform .5s;
  background: var(--green-800);
}
.deal .deal-img:hover { transform: rotate(0) scale(1.02); }
.deal .deal-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deal .deal-img .stamp {
  position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--danger); color: #fff;
  font-weight: 800; font-size: .78rem; padding: 7px 14px; border-radius: 999px; letter-spacing: .08em;
  animation: pulse 1.8s infinite;
}

/* ============================================================
   ABOUT / STATS
   ============================================================ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about .media { position: relative; }
.about .media .main-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.about .media .main-img img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; transition: transform .8s; }
.about .media:hover .main-img img { transform: scale(1.05); }
.about .media .float-card {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.about .media .float-card.f1 { top: 24px; left: -26px; animation: floaty 5s ease-in-out infinite; }
.about .media .float-card.f2 { bottom: 24px; right: -22px; animation: floaty 6s ease-in-out infinite reverse; }
.about .media .float-card .fico { width: 42px; height: 42px; border-radius: 12px; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; }
.about .media .float-card .fico svg { width: 22px; height: 22px; }
.about .media .float-card b { display: block; font-size: .95rem; }
.about .media .float-card span { font-size: .74rem; color: var(--muted); }
.about .copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.about .copy h2 em { color: var(--green-600); font-style: normal; }
.about .copy > p { color: var(--muted); margin-bottom: 20px; }
.about .ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.about .ticks li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .92rem; }
.about .ticks .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; flex: none; }
.about .ticks .tick svg { width: 13px; height: 13px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.stat { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 12px; box-shadow: var(--shadow-sm); transition: transform .35s; }
.stat:hover { transform: translateY(-5px); }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--green-700); font-variant-numeric: tabular-nums; }
.stat b .plus { color: var(--gold); }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-wrap { position: relative; overflow: hidden; padding: 8px 0 8px; outline: none; }
.testi-wrap:focus-visible { outline: 2px solid var(--green-600); outline-offset: 4px; border-radius: var(--r-xl); }
.testi-track { display: flex; transition: transform .65s cubic-bezier(.22,.9,.3,1); will-change: transform; }
.testi-card { flex: 0 0 100%; padding: 10px 8px; }
.testi-card .inner {
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(230,225,210,.7); border-radius: var(--r-xl, 26px); padding: 34px 36px;
  max-width: 720px; margin: 0 auto; text-align: center; box-shadow: 0 12px 32px rgba(20,48,31,.10), 0 1px 0 rgba(255,255,255,.6) inset; position: relative; overflow: hidden;
}
.testi-card .inner::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: linear-gradient(90deg, var(--gold), #e6c25a); border-radius: 999px; opacity: .95;
}
.testi-card .quote-mark { font-size: 3.4rem; line-height: 1; color: var(--gold); font-family: Georgia, serif; height: 34px; opacity: .9; }
.testi-card .rating { display: inline-flex; align-items: center; gap: 6px; background: var(--green-50); color: var(--green-700); padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; margin-top: 4px; }
.testi-card .rating span { color: var(--muted); font-weight: 600; font-size: .74rem; }
.testi-card p { font-size: clamp(.95rem, 1.8vw, 1.06rem); color: #2b332b; font-style: italic; line-height: 1.7; margin: 14px 0 22px; }
.testi-card .who { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-card .who .ava {
  width: 48px; height: 48px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(20,48,31,.18);
}
.testi-card .who b { display: block; font-size: .95rem; }
.testi-card .who span { font-size: .78rem; color: var(--muted); }
.testi-nav { display: flex; justify-content: center; gap: 8px; margin-top: 22px; align-items: center; }
.testi-nav button { width: 8px; height: 8px; border-radius: 999px; background: rgba(39,96,63,.18); transition: width .35s cubic-bezier(.22,.9,.3,1), background .3s; position: relative; overflow: hidden; }
.testi-nav button.active { width: 32px; background: linear-gradient(90deg, var(--green-700), var(--green-500)); }
.testi-nav button.active::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.25); transform-origin: left; animation: dotProgress 2s linear forwards; }
@keyframes dotProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.testi-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--green-700); display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 2;
}
.testi-arrow svg { width: 18px; height: 18px; }
.testi-wrap:hover .testi-arrow, .testi-wrap:focus-within .testi-arrow { opacity: 1; pointer-events: auto; }
.testi-arrow.prev { left: 8px; }
.testi-arrow.next { right: 8px; }
.testi-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
@media (max-width: 760px) { .testi-arrow { display: none; } }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: linear-gradient(120deg, var(--gold-soft), #fbf3dd);
  border: 1px solid rgba(201,162,39,.35); border-radius: 26px;
  padding: 52px 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.newsletter::before { content: '🌰'; position: absolute; font-size: 8rem; opacity: .12; right: -12px; top: -30px; transform: rotate(18deg); }
.newsletter h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.newsletter p { color: var(--muted); max-width: 420px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input {
  flex: 1; height: 52px; border-radius: 999px; border: 1.5px solid #e2d5ae; padding: 0 22px;
  font-size: .95rem; outline: none; background: #fff; transition: box-shadow .3s, border-color .3s;
}
.newsletter input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.15); }
.newsletter .success-msg { margin-top: 10px; font-weight: 700; color: var(--green-700); font-size: .92rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--green-900); color: #c9d6c2; margin-top: 74px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding: 60px 0 40px; }
.footer-grid h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-grid h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--gold); }
.footer-grid a, .footer-grid li { color: #b6c6ae; font-size: .92rem; }
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid ul a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s, transform .25s; }
.footer-grid ul a:hover { color: #ffd76a; transform: translateX(4px); }
.footer-grid .brand p { font-size: .92rem; margin: 14px 0 18px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #d8e3d0; transition: background .3s, transform .3s, color .3s;
}
.socials a:hover { background: var(--gold); color: #3a2c05; transform: translateY(-4px) rotate(6deg); }
.socials svg { width: 19px; height: 19px; }
.contact-list li { display: flex; gap: 11px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}
.footer-bottom .pay { display: flex; gap: 8px; }
.footer-bottom .pay span {
  background: #fff; color: var(--green-800); border-radius: 7px; padding: 4px 9px;
  font-weight: 800; font-size: .68rem; letter-spacing: .04em;
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(18,28,20,.55);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .35s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; height: 100dvh; width: min(430px, 94%);
  background: #fff; z-index: 101; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .45s cubic-bezier(.22,.9,.3,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.15rem; }
.drawer-head h3 span { color: var(--green-600); }
.drawer-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); transition: transform .3s, background .3s; }
.drawer-close:hover { background: #f0dedc; transform: rotate(90deg); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); animation: slideIn .4s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.cart-item img { width: 74px; height: 74px; border-radius: 13px; object-fit: cover; background: var(--bg-soft); flex: none; }
.cart-item .meta { flex: 1; min-width: 0; }
.cart-item .meta h4 { font-size: .9rem; line-height: 1.35; margin-bottom: 2px; }
.cart-item .meta .w { font-size: .74rem; color: var(--muted); }
.cart-item .meta .price { font-weight: 800; color: var(--green-700); font-size: .94rem; margin-top: 4px; }
.qty-ctl { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; margin-top: 7px; }
.qty-ctl button { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--green-700); transition: background .2s; }
.qty-ctl button:hover { background: var(--green-100); }
.qty-ctl b { min-width: 26px; text-align: center; font-size: .9rem; }
.cart-item .rm { align-self: flex-start; color: #b3b7ab; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; transition: color .25s, background .25s; }
.cart-item .rm:hover { color: var(--danger); background: #fdecea; }
.cart-item .rm svg { width: 17px; height: 17px; }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty svg { width: 72px; height: 72px; margin: 0 auto 16px; color: #c9cfc0; }
.cart-empty h4 { color: var(--ink); margin-bottom: 6px; }

.free-ship-bar { background: var(--green-50); border: 1px solid var(--green-100); border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; font-size: .82rem; color: var(--green-700); }
.free-ship-bar .bar { height: 7px; background: var(--green-100); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.free-ship-bar .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #e6c25a); border-radius: 99px; transition: width .7s cubic-bezier(.22,.9,.3,1); }

.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 20px; background: #fcfbf6; }
.drawer-foot .totals { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .92rem; }
.drawer-foot .totals.grand { font-weight: 800; font-size: 1.1rem; color: var(--green-800); margin: 10px 0 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.drawer-foot .coupon-row { display: flex; gap: 8px; margin-bottom: 14px; }
.drawer-foot .coupon-row input { flex: 1; height: 40px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 0 12px; font-size: .85rem; outline: none; text-transform: uppercase; }
.drawer-foot .coupon-row input:focus { border-color: var(--gold); }
.drawer-foot .coupon-row button { background: var(--green-50); color: var(--green-700); font-weight: 700; font-size: .82rem; padding: 0 16px; border-radius: 10px; }

/* ============================================================
   MODALS (auth / quick view / checkout / success)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px;
  background: rgba(18,28,20,.6); backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .35s; overflow-y: auto;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 24px; width: min(520px, 100%);
  box-shadow: var(--shadow-lg); transform: translateY(34px) scale(.96);
  transition: transform .45s cubic-bezier(.22,.9,.3,1);
  max-height: 92vh; max-height: 92dvh; overflow-y: auto; position: relative;
  margin: max(12px, env(safe-area-inset-top, 0px)) auto;
}
.modal-overlay.open .modal { transform: none; }
.modal .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 0; }
.modal .modal-head h3 { font-size: 1.25rem; }
.modal .modal-body { padding: 20px 26px 28px; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); transition: transform .3s, background .3s; }
.modal-close:hover { background: #f0dedc; transform: rotate(90deg); }

/* welcome offer */
.offer-modal { display: grid; grid-template-columns: .85fr 1.15fr; width: min(720px, 100%); overflow: hidden; background: #fffdf7; }
.offer-modal > .modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,.82); }
.offer-art { min-height: 420px; background: var(--green-900); position: relative; overflow: hidden; }
.offer-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,48,31,.04), rgba(20,48,31,.48)); pointer-events: none; }
.offer-art img { width: 100%; height: 100%; min-height: 420px; display: block; object-fit: cover; object-position: 58% center; }
.offer-copy { padding: 48px 42px 38px; }
.offer-kicker { color: var(--gold); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.offer-copy h2 { margin: 10px 0 12px; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.08; color: var(--green-900); }
.offer-copy h2 em { color: var(--green-600); font-style: normal; }
.offer-copy > p { color: var(--muted); line-height: 1.65; }
.offer-copy form { display: grid; gap: 10px; margin-top: 22px; }
.offer-copy input { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; font-size: .94rem; outline: none; background: #fff; }
.offer-copy input:focus { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(52,119,78,.12); }
.offer-copy form .btn { width: 100%; }
.offer-note, .offer-success { margin-top: 10px; font-size: .78rem; }
.offer-success { color: var(--green-700); font-weight: 700; }
.offer-continue { display: block; margin: 18px auto 0; color: var(--ink); text-decoration: underline; font-size: .84rem; }

/* auth */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: 14px; padding: 5px; margin-bottom: 22px; }
.auth-tabs button { padding: 11px; border-radius: 11px; font-weight: 700; color: var(--muted); transition: all .3s; }
.auth-tabs button.active { background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: #4a4f47; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 13px; padding: 0 15px;
  font-size: .94rem; outline: none; background: #fdfdfb; transition: border-color .3s, box-shadow .3s;
}
.field textarea { height: auto; padding: 12px 15px; resize: vertical; min-height: 74px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(52,119,78,.12); }
.auth-switch { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 14px; }
.auth-switch a { color: var(--green-600); font-weight: 700; cursor: pointer; }
.auth-note { background: var(--green-50); border: 1px dashed var(--green-100); border-radius: 12px; padding: 10px 14px; font-size: .8rem; color: var(--green-700); margin-top: 16px; }

/* quick view */
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.qv-grid .qv-img { border-radius: 16px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 1/1; }
.qv-grid .qv-img img { width: 100%; height: 100%; object-fit: cover; }
.qv-grid .qv-info h3 { font-size: 1.3rem; margin-bottom: 8px; }
.qv-grid .qv-info .desc { color: var(--muted); font-size: .92rem; margin: 12px 0 16px; }
.qv-qty { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.qv-qty .qty-ctl { margin: 0; }
.qv-qty b { font-size: 1.25rem; color: var(--green-700); }

/* checkout */
.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; }
.checkout-summary { background: var(--bg-soft); border-radius: 16px; padding: 20px; height: fit-content; position: sticky; top: 100px; }
.checkout-summary h4 { margin-bottom: 12px; }
.cs-item { display: flex; justify-content: space-between; font-size: .86rem; padding: 6px 0; color: #4a4f47; }
.cs-item[hidden] { display: none; }
.cs-item b { color: var(--ink); }
.cs-total { border-top: 1.5px dashed #cfc9b8; margin-top: 10px; padding-top: 12px; display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; }
.pay-options { display: grid; gap: 10px; margin-top: 16px; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 15px; cursor: pointer; transition: all .25s; background: #fff; }
.pay-opt:hover { border-color: var(--green-500); }
.pay-opt.sel { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 3px rgba(52,119,78,.15); }
.pay-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9cfc0; display: grid; place-items: center; flex: none; transition: border-color .25s; }
.pay-opt.sel .radio { border-color: var(--green-600); }
.pay-opt.sel .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--green-600); animation: popIn .3s ease; }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

/* success */
.success-box { text-align: center; padding: 26px 10px 10px; }
.success-box .check {
  width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  display: grid; place-items: center; color: #fff; box-shadow: 0 18px 40px rgba(28,68,48,.4);
  animation: popIn .5s cubic-bezier(.3,1.6,.5,1);
}
.success-box .check svg { width: 44px; height: 44px; }
.success-box h3 { font-size: 1.5rem; margin-bottom: 8px; }
.success-box p { color: var(--muted); margin-bottom: 6px; }
.success-box .oid { font-weight: 800; color: var(--green-700); background: var(--green-50); display: inline-block; padding: 8px 18px; border-radius: 999px; margin: 12px 0 20px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 11px; background: #1d2b20; color: #fff;
  padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem;
  animation: toastIn .45s cubic-bezier(.3,1.5,.5,1); max-width: 92vw;
}
.toast.hide { animation: toastOut .4s forwards; }
.toast svg { width: 19px; height: 19px; color: #7fe0a0; flex: none; }
.toast.err svg { color: #ff9c8e; }
@keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px) scale(.92); } }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 48px; height: 48px;
  border-radius: 14px; background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .35s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   CATEGORY CIRCLES (homepage strip)
   ============================================================ */
.cat-strip-section { padding-bottom: 26px; }
.cat-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr);
  gap: 18px; overflow-x: auto; padding: 6px 2px 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
/* marquee variant for Shop by Category – continuous linear movement */
.cat-marquee {
  overflow: hidden;
  padding: 6px 0 14px;
  -webkit-mask: linear-gradient(90deg, transparent, #fff 3%, #fff 97%, transparent);
  mask: linear-gradient(90deg, transparent, #fff 3%, #fff 97%, transparent);
}
.cat-strip.cat-track {
  display: flex; gap: 18px; width: max-content;
  overflow: visible; padding: 6px 2px 14px;
  scroll-snap-type: none; scrollbar-width: none;
  animation: catMarquee 30s linear infinite; will-change: transform;
}
.cat-strip.cat-track::-webkit-scrollbar { display: none; }
.cat-strip.cat-track:hover { animation-play-state: paused; }
@keyframes catMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .cat-strip.cat-track { animation: none; overflow-x: auto; scroll-snap-type: x mandatory; }
}
.cat-strip.cat-track .cat-circle { flex: 0 0 auto; scroll-snap-align: unset; }
.cat-circle {
  scroll-snap-align: start; text-align: center; display: grid; justify-items: center; gap: 3px;
  padding: 6px 4px 10px; border-radius: var(--r-md); transition: transform .25s;
}
.cat-circle:hover { transform: translateY(-4px); }
.cat-circle .cc-img {
  width: clamp(84px, 9vw, 110px); height: clamp(84px, 9vw, 110px);
  border-radius: 50%; overflow: hidden; margin-bottom: 8px;
  border: 3px solid #fff; box-shadow: var(--shadow-md);
  transition: transform .35s, box-shadow .35s;
}
.cat-circle:hover .cc-img { transform: scale(1.06) rotate(-2deg); box-shadow: var(--shadow-lg); }
.cat-circle .cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle b { font-size: .92rem; color: var(--ink); }
.cat-circle small { font-size: .72rem; color: var(--muted); }

/* ============================================================
   DEAL STRIP (homepage banner)
   ============================================================ */
.deal-strip {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,215,106,.22), transparent 42%),
    linear-gradient(120deg, var(--green-900), var(--green-600));
  color: #fff; border-radius: var(--r-xl);
  padding: 30px 36px; position: relative; overflow: hidden;
}
.deal-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 12% 90%, rgba(201,162,39,.16), transparent 45%);
  pointer-events: none;
}
.deal-strip .ds-copy { flex: 1 1 320px; position: relative; }
.deal-strip h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -.01em; }
.deal-strip h2 em { font-style: normal; color: var(--gold-bright); }
.deal-strip p { color: rgba(255,255,255,.75); font-size: .92rem; margin-top: 6px; }
.deal-strip .countdown { display: flex; gap: 10px; position: relative; }
.deal-strip .countdown .unit {
  min-width: 64px; padding: 9px 10px; border-radius: var(--r-sm); text-align: center;
  background: rgba(255,255,255,.1); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16);
}
.deal-strip .countdown .unit b { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.deal-strip .countdown .unit span { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.deal-strip .ds-btn { position: relative; flex: none; }

.eyebrow-gold { color: var(--gold-deep); background: rgba(255,233,168,.14); }

/* ---------- utilities ---------- */
.u-center { display: flex; justify-content: center; }

/* ---------- mobile stacking fixes ---------- */
@media (max-width: 760px) {
  .toast-wrap { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .to-top { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); right: 16px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }

/* ============================================================
   REDUCED MOTION (accessibility + stability)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE — All responsive rules are in responsive.css
   ============================================================ */
