/* ============================================================
   GREEN NEPAL — Herbal & Ayurvedic Wellness
   Design system + components
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Greens */
  --forest: #143324;
  --pine:   #1d5138;
  --leaf:   #2d7a51;
  --herb:   #3f9d6b;
  --sage:   #7cc59a;
  --mint:   #b9e7cd;
  --wash:   #e4f5ea;

  /* Accent */
  --gold:   #c79a3b;
  --gold-2: #e7c876;

  /* Neutrals */
  --cream:  #fbf9f3;
  --paper:  #ffffff;
  --sand:   #f3efe4;
  --ink:    #16241d;
  --muted:  #5d6f66;
  --line:   #e7e2d4;

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(20, 51, 36, .06);
  --shadow:    0 14px 40px -16px rgba(20, 51, 36, .28);
  --shadow-lg: 0 36px 80px -28px rgba(20, 51, 36, .42);
  --ring:      0 0 0 4px rgba(63, 157, 107, .18);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --container: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.6rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--leaf);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow.center::after { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; color: var(--forest); }
.h-xl { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h-lg { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); }
.section-head { max-width: 640px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: .9rem 0 .7rem; }

.text-grad {
  background: linear-gradient(100deg, var(--herb), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .92rem; --pad-x: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px; font-weight: 700; font-size: .95rem;
  letter-spacing: .01em; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--pine), var(--leaf));
  color: #fff; box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--forest); box-shadow: 0 14px 34px -16px rgba(199,154,59,.7); }
.btn-gold:hover { transform: translateY(-3px); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--leaf); transform: translateY(-3px); color: var(--leaf); }
.btn-block { width: 100%; }
.btn-sm { --pad-y: .6rem; --pad-x: 1.05rem; font-size: .85rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding: 1.1rem 0;
}
.nav.scrolled {
  background: rgba(251, 249, 243, .82);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(20,51,36,.07), var(--shadow-sm);
  padding: .65rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 600; font-size: 1.32rem; color: var(--forest); }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand > span { white-space: nowrap; }
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--leaf); font-weight: 700; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links a {
  padding: .55rem .8rem; border-radius: 100px; font-weight: 600; font-size: .92rem;
  color: var(--ink); transition: color .25s, background .25s; position: relative; white-space: nowrap;
}
.nav-links a:hover { color: var(--leaf); background: var(--wash); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--forest); transition: background .25s, transform .25s; position: relative;
}
.icon-btn:hover { background: var(--wash); transform: translateY(-2px); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--gold); color: var(--forest); font-size: .68rem; font-weight: 800;
  border-radius: 100px; display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--ease);
}
.cart-count.show { transform: scale(1); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background:
    radial-gradient(900px 520px at 78% -8%, var(--wash), transparent 60%),
    radial-gradient(700px 600px at 5% 110%, #eef7ee, transparent 55%),
    var(--cream);
}
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; z-index: -1; }
.blob.b1 { width: 420px; height: 420px; right: -80px; top: -40px; background: radial-gradient(circle, var(--sage), transparent 70%); animation: float 14s var(--ease) infinite; }
.blob.b2 { width: 360px; height: 360px; left: -120px; bottom: 40px; background: radial-gradient(circle, var(--gold-2), transparent 70%); opacity: .35; animation: float 18s var(--ease) infinite reverse; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--paper);
  padding: .5rem .5rem .5rem .9rem; border-radius: 100px; box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 1.6rem;
}
.hero-badge b { color: var(--forest); }
.hero-badge .pill { background: var(--wash); color: var(--leaf); font-weight: 800; padding: .25rem .6rem; border-radius: 100px; font-size: .72rem; }
.hero h1 { margin-bottom: 1.3rem; }
.hero p.lead { max-width: 30rem; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stat .num { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: var(--forest); }
.stat .lbl { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* Hero visual */
.hero-visual { position: relative; aspect-ratio: 1 / 1.04; }
.hero-card {
  position: absolute; background: var(--paper); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-card.main { inset: 6% 4% 8% 8%; }
.hero-card.main .pic { height: 100%; display: grid; place-items: center; position: relative;
  background: linear-gradient(160deg, #eaf6ee, #d3eedd); }
.hero-leaf { width: 62%; opacity: .96; animation: sway 7s ease-in-out infinite; transform-origin: bottom center; }
.hero-tag {
  position: absolute; left: 1.3rem; bottom: 1.3rem; right: 1.3rem;
  background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  padding: .9rem 1.1rem; border-radius: var(--r); display: flex; align-items: center; gap: .8rem;
  box-shadow: var(--shadow-sm);
}
.hero-tag .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--wash); display: grid; place-items: center; flex: none; color: var(--leaf); }
.hero-tag .ic svg { width: 22px; }
.hero-tag b { display: block; color: var(--forest); font-size: .95rem; }
.hero-tag span { font-size: .78rem; color: var(--muted); }

.float-chip {
  position: absolute; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow);
  padding: .7rem .95rem; display: flex; align-items: center; gap: .6rem; font-weight: 700;
  font-size: .85rem; color: var(--forest); z-index: 3;
}
.float-chip .dot { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; }
.float-chip.c1 { top: 2%; right: -2%; animation: floatY 6s ease-in-out infinite; }
.float-chip.c2 { bottom: 14%; left: -5%; animation: floatY 7.5s ease-in-out infinite .5s; }
.float-chip .rating { color: var(--gold); letter-spacing: .05em; }

/* ---------- Marquee / trust ---------- */
.marquee { background: var(--forest); color: #dceede; padding: 1.05rem 0; overflow: hidden; }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: scrollX 26s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .95rem; white-space: nowrap; opacity: .92; }
.marquee-track span svg { width: 18px; color: var(--gold-2); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.cat-card {
  position: relative; padding: 2rem 1.6rem; border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: .7rem; min-height: 240px;
}
.cat-card::after { content: ""; position: absolute; inset: auto -30% -40% auto; width: 180px; height: 180px; border-radius: 50%; background: var(--grad, var(--wash)); opacity: .5; transition: transform .5s var(--ease); }
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cat-card:hover::after { transform: scale(1.4); }
.cat-ic { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; position: relative; z-index: 1; background: var(--wash); }
.cat-card h3 { font-size: 1.3rem; position: relative; z-index: 1; }
.cat-card p { color: var(--muted); font-size: .9rem; position: relative; z-index: 1; flex: 1; }
.cat-card .go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; color: var(--leaf); position: relative; z-index: 1; }
.cat-card .go svg { width: 16px; transition: transform .3s; }
.cat-card:hover .go svg { transform: translateX(4px); }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.prod-card {
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column; position: relative;
}
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.prod-media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.prod-emoji { font-size: 4.4rem; filter: drop-shadow(0 10px 16px rgba(20,51,36,.18)); transition: transform .5s var(--ease); z-index: 1; }
.prod-card:hover .prod-emoji { transform: scale(1.12) rotate(-4deg); }
.prod-leaf-bg { position: absolute; inset: 0; opacity: .14; color: var(--forest); }
.prod-badge {
  position: absolute; top: .85rem; left: .85rem; z-index: 2; font-size: .68rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: .32rem .6rem; border-radius: 100px;
  background: var(--forest); color: #fff;
}
.prod-badge.sale { background: var(--gold); color: var(--forest); }
.prod-badge.new  { background: var(--leaf); }
.wish {
  position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.85); display: grid; place-items: center; color: var(--muted);
  opacity: 0; transform: translateY(-6px); transition: .3s var(--ease);
}
.prod-card:hover .wish { opacity: 1; transform: none; }
.wish:hover, .wish.on { color: #e0567a; }
.wish svg { width: 19px; }
.prod-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.prod-cat { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); }
.prod-name { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; color: var(--forest); line-height: 1.2; }
.prod-rate { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.prod-rate .stars { color: var(--gold); letter-spacing: .04em; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .6rem; }
.price { font-family: var(--font-head); font-weight: 600; font-size: 1.22rem; color: var(--forest); }
.price s { font-family: var(--font-body); font-size: .82rem; color: var(--muted); font-weight: 500; margin-left: .35rem; }
.add-btn {
  width: 44px; height: 44px; border-radius: 13px; background: var(--forest); color: #fff;
  display: grid; place-items: center; transition: transform .3s var(--ease), background .3s;
}
.add-btn:hover { background: var(--leaf); transform: scale(1.08) rotate(90deg); }
.add-btn svg { width: 20px; }

/* ---------- Filter bar (shop) ---------- */
.shop-head { padding-top: clamp(7rem, 12vw, 9rem); padding-bottom: 2rem; background:
  radial-gradient(700px 360px at 85% -20%, var(--wash), transparent 60%), var(--cream); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 2.4rem; }
.chip {
  padding: .6rem 1.15rem; border-radius: 100px; font-weight: 600; font-size: .9rem; color: var(--muted);
  background: var(--paper); border: 1.5px solid var(--line); transition: .25s;
}
.chip:hover { border-color: var(--sage); color: var(--forest); }
.chip.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.shop-tools { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
.search-box { display: flex; align-items: center; gap: .5rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: 100px; padding: .55rem 1rem; }
.search-box:focus-within { border-color: var(--leaf); box-shadow: var(--ring); }
.search-box input { border: none; outline: none; background: none; width: 180px; }
.search-box svg { width: 18px; color: var(--muted); }
.count-note { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }

/* ---------- Feature / why ---------- */
.why { background: linear-gradient(180deg, var(--cream), #f1f8f1); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.feat {
  background: var(--paper); border-radius: var(--r-lg); padding: 2.2rem 1.8rem; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease);
}
.feat:hover { transform: translateY(-6px); }
.feat .fic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--wash), var(--mint)); color: var(--pine); }
.feat .fic svg { width: 30px; }
.feat h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.feat p { color: var(--muted); font-size: .94rem; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; }
.about-visual { position: relative; }
.about-frame {
  border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/4.6; box-shadow: var(--shadow-lg);
  background: linear-gradient(155deg, #1d5138, #2d7a51 55%, #3f9d6b);
  display: grid; place-items: center; position: relative;
}
.about-frame .big-leaf { width: 70%; color: rgba(255,255,255,.92); animation: sway 8s ease-in-out infinite; }
.about-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1.4px, transparent 1.4px); background-size: 22px 22px; }
.about-badge {
  position: absolute; right: -18px; bottom: 34px; background: var(--paper); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: .9rem;
}
.about-badge .seal { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),var(--gold-2)); display: grid; place-items: center; color: var(--forest); flex: none; }
.about-badge .seal svg { width: 28px; }
.about-badge b { display: block; font-family: var(--font-head); color: var(--forest); font-size: 1.05rem; }
.about-badge span { font-size: .78rem; color: var(--muted); }
.about-list { display: grid; gap: 1rem; margin: 1.6rem 0 2rem; }
.about-list li { display: flex; gap: .9rem; align-items: flex-start; }
.about-list .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--wash); color: var(--leaf); display: grid; place-items: center; flex: none; margin-top: 2px; }
.about-list .tick svg { width: 15px; }
.about-list b { color: var(--forest); }
.about-list p { color: var(--muted); font-size: .92rem; }

/* ---------- Banner CTA ---------- */
.banner {
  border-radius: var(--r-xl); padding: clamp(2.6rem, 5vw, 4.4rem); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--forest), var(--pine) 60%, var(--leaf));
  color: #eaf6ee; text-align: center;
}
.banner h2 { color: #fff; max-width: 18ch; margin: .8rem auto 1rem; }
.banner p { max-width: 46ch; margin: 0 auto 2rem; color: #cfe7d7; }
.banner .blob { opacity: .25; }
.banner-leaf { position: absolute; opacity: .12; color: #fff; }
.banner-leaf.l { left: -40px; top: -30px; width: 240px; transform: rotate(20deg); }
.banner-leaf.r { right: -50px; bottom: -60px; width: 280px; transform: rotate(-160deg); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi {
  background: var(--paper); border-radius: var(--r-lg); padding: 2rem 1.8rem; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem;
}
.testi .stars { color: var(--gold); letter-spacing: .08em; }
.testi p { color: var(--ink); font-size: 1rem; }
.testi .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.testi .avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; flex: none; }
.testi .who b { display: block; color: var(--forest); }
.testi .who span { font-size: .82rem; color: var(--muted); }

/* ---------- Newsletter / contact ---------- */
.news-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow); padding: clamp(2.4rem, 4.5vw, 4rem); display: grid;
  grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; position: relative; overflow: hidden;
}
.news-form { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.news-form input {
  flex: 1; min-width: 220px; padding: 1rem 1.2rem; border-radius: 100px; border: 1.5px solid var(--line);
  background: var(--cream); outline: none; transition: .25s;
}
.news-form input:focus { border-color: var(--leaf); box-shadow: var(--ring); background: #fff; }
.contact-list { display: grid; gap: 1.1rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; }
.contact-item .ci { width: 50px; height: 50px; border-radius: 15px; background: var(--wash); color: var(--leaf); display: grid; place-items: center; flex: none; }
.contact-item .ci svg { width: 24px; }
.contact-item b { display: block; color: var(--forest); }
.contact-item span { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: #bcd6c5; padding: clamp(3.5rem,6vw,5rem) 0 2rem; position: relative; overflow: hidden; }
.footer a { transition: color .25s; }
.footer a:hover { color: var(--gold-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.4rem; }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer .brand small { color: var(--sage); }
.foot-about { max-width: 32ch; font-size: .92rem; line-height: 1.7; }
.foot-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.foot-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cfe7d7; transition: .3s; }
.foot-social a:hover { background: var(--leaf); color: #fff; transform: translateY(-3px); }
.foot-social svg { width: 20px; }
.foot-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.foot-col ul { display: grid; gap: .65rem; font-size: .93rem; }
.foot-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8fb29c; }
.footer .blob.fb { width: 500px; height: 500px; right: -160px; bottom: -240px; background: radial-gradient(circle, var(--leaf), transparent 70%); opacity: .25; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15,32,24,.5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: .35s; z-index: 200; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--cream);
  z-index: 210; transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { padding: 1.4rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.3rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-item { display: flex; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem; }
.cart-item .ci-emoji { width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center; font-size: 1.8rem; background: var(--wash); flex: none; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-info b { display: block; font-family: var(--font-head); color: var(--forest); font-size: 1rem; line-height: 1.2; }
.cart-item .ci-info span { font-size: .82rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.qty button { width: 26px; height: 26px; border-radius: 8px; background: var(--wash); color: var(--forest); font-weight: 800; display: grid; place-items: center; transition: .2s; }
.qty button:hover { background: var(--mint); }
.qty span { min-width: 20px; text-align: center; font-weight: 700; font-size: .9rem; }
.ci-remove { color: var(--muted); align-self: flex-start; transition: color .2s; }
.ci-remove:hover { color: #e0567a; }
.ci-remove svg { width: 18px; }
.cart-empty { text-align: center; color: var(--muted); margin: auto; padding: 2rem; }
.cart-empty .big { font-size: 3.4rem; margin-bottom: .6rem; }
.drawer-foot { padding: 1.3rem 1.5rem 1.6rem; border-top: 1px solid var(--line); background: var(--paper); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart-total b { font-family: var(--font-head); font-size: 1.5rem; color: var(--forest); }
.cart-total span { color: var(--muted); font-size: .9rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); z-index: 300;
  background: var(--forest); color: #fff; padding: .9rem 1.4rem; border-radius: 100px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; transition: transform .45s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 20px; color: var(--gold-2); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- Keyframes ---------- */
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-18px, 22px); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes sway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes scrollX { to { transform: translateX(-50%); } }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.4rem; }
  .about-visual { max-width: 440px; margin-inline: auto; }
  .news-card { grid-template-columns: 1fr; gap: 2rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
/* Collapse nav to a mobile menu before it can get cramped */
@media (max-width: 900px) {
  /* hide nav links + the primary action button, but keep the Sign In / profile slot */
  .nav-links, .nav .nav-actions > .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 1rem 1.3rem 1.6rem; box-shadow: var(--shadow); gap: .2rem;
  }
  .nav.open .nav-links a { padding: .9rem 1rem; }
}
@media (max-width: 720px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .feat-grid, .testi-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; flex-wrap: wrap; }
  .shop-tools { margin-left: 0; width: 100%; }
  .search-box { flex: 1; } .search-box input { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .float-chip.c1 { right: 2%; } .float-chip.c2 { left: 0; }
  .prod-emoji { font-size: 3.4rem; }
}
@media (max-width: 420px) {
  .prod-grid, .cat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AUTH · CLOUD CART · QR CHECKOUT  (added in upgrade)
   HSL-based tokens so the new UI blends with the palette.
   ============================================================ */
:root {
  --h-brand: 152;
  --glass-bg:       hsla(150, 40%, 99%, .9);
  --glass-brd:      hsla(152, 25%, 60%, .35);
  --modal-backdrop: hsla(156, 45%, 6%, .55);
  --field-bg:       hsl(150, 36%, 98%);
  --field-bg-focus: hsl(0, 0%, 100%);
  --field-brd:      hsl(150, 20%, 87%);
  --field-brd-focus:hsl(152, 45%, 42%);
  --ring-hsl:       hsla(152, 50%, 45%, .18);
  --ok-bg:   hsl(146, 55%, 93%); --ok-fg:   hsl(150, 55%, 27%);
  --warn-bg: hsl(41, 92%, 92%);  --warn-fg: hsl(33, 70%, 32%);
  --err-bg:  hsl(352, 82%, 96%); --err-fg:  hsl(352, 60%, 45%);
  --info-bg: hsl(210, 80%, 94%); --info-fg: hsl(212, 60%, 40%);
  --danger:  hsl(352, 55%, 48%);
}

/* ---------- Shared form fields ---------- */
.field { display: grid; gap: .35rem; margin-bottom: .9rem; text-align: left; }
.field label { font-size: .82rem; font-weight: 600; color: var(--forest); }
.field input, .field textarea {
  width: 100%; padding: .82rem 1rem; border-radius: 12px; font-size: .95rem;
  border: 1.5px solid var(--field-brd); background: var(--field-bg); color: var(--ink);
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--field-brd-focus); box-shadow: 0 0 0 4px var(--ring-hsl); background: var(--field-bg-focus);
}
.field em { color: var(--danger); font-style: normal; }

/* ---------- Generic glass modal ---------- */
.gn-modal {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 1.2rem;
  background: var(--modal-backdrop); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.gn-modal.open { opacity: 1; visibility: visible; }
.gn-modal-card {
  position: relative; width: min(440px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--glass-bg); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-brd); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 2rem 1.8rem 1.8rem; transform: translateY(16px) scale(.985); transition: transform .42s var(--ease);
}
.gn-modal.open .gn-modal-card { transform: none; }
.gn-modal-x {
  position: absolute; top: .9rem; right: .9rem; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted); background: hsla(150, 20%, 90%, .6); transition: .25s; z-index: 2;
}
.gn-modal-x:hover { background: var(--wash); color: var(--forest); transform: rotate(90deg); }
.gn-modal-x svg { width: 18px; }

/* ---------- Auth modal ---------- */
.auth-head { text-align: center; margin-bottom: 1.3rem; }
.auth-logo { font-family: var(--font-head); color: var(--leaf); font-weight: 600; font-size: 1.05rem; }
.auth-head h3 { font-size: clamp(1.4rem, 3vw, 1.7rem); margin: .5rem 0 .3rem; }
.auth-head p { color: var(--muted); font-size: .9rem; }
.auth-tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3rem;
  background: hsla(150, 25%, 92%, .65); padding: .3rem; border-radius: 100px; margin-bottom: 1.4rem;
}
.auth-tab { padding: .6rem; border-radius: 100px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: .25s; }
.auth-tab.is-on { background: #fff; color: var(--forest); box-shadow: var(--shadow-sm); }
.auth-panel { display: none; animation: authIn .4s var(--ease); }
.auth-panel.is-on { display: block; }
@keyframes authIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .7rem;
  padding: .95rem; border-radius: 14px; background: #fff; color: hsl(0, 0%, 22%); font-weight: 700; font-size: .98rem;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s;
}
.btn-google:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-google svg { width: 22px; height: 22px; }
.auth-tiny { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1rem; }
.link { color: var(--leaf); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; background: none; }
.link:hover { color: var(--pine); }
.auth-note { margin-top: 1rem; padding: .7rem .9rem; border-radius: 12px; font-size: .85rem; font-weight: 500; text-align: center; }
.auth-note.err  { background: var(--err-bg);  color: var(--err-fg); }
.auth-note.ok   { background: var(--ok-bg);   color: var(--ok-fg); }
.auth-note.warn { background: var(--warn-bg); color: var(--warn-fg); }
.auth-note code, .qr-fallback code, .co-sub code { background: hsla(150, 25%, 88%, .8); padding: .1rem .4rem; border-radius: 6px; font-size: .92em; }
#recaptcha-container { display: flex; justify-content: center; margin-top: .5rem; }

/* ---------- Nav auth slot + profile dropdown ---------- */
.auth-slot { display: flex; align-items: center; }
.signin-btn { gap: .45rem; }
.signin-btn svg { width: 18px; }
.profile { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: .5rem; padding: .32rem .7rem .32rem .38rem; border-radius: 100px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); transition: .25s; max-width: 210px;
}
.profile-btn:hover { box-shadow: inset 0 0 0 1.5px var(--sage); }
.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pine), var(--leaf)); color: #fff; font-weight: 700; font-size: .9rem;
}
.avatar-sm.lg { width: 46px; height: 46px; font-size: 1.15rem; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-weight: 600; font-size: .9rem; color: var(--forest); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--muted); transition: transform .25s; }
.profile-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.profile-menu {
  position: absolute; top: calc(100% + .6rem); right: 0; width: 252px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: .6rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .28s var(--ease); z-index: 60;
}
.profile-menu.open { opacity: 1; visibility: visible; transform: none; }
.profile-head { display: flex; gap: .7rem; align-items: center; padding: .55rem .6rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.profile-id { min-width: 0; }
.profile-id b { display: block; color: var(--forest); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-id span { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-link {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .7rem; border-radius: 12px;
  font-weight: 600; font-size: .92rem; color: var(--ink); transition: background .2s, color .2s; text-align: left;
}
.profile-link svg { width: 19px; color: var(--leaf); }
.profile-link:hover { background: var(--wash); }
.profile-link.danger, .profile-link.danger svg { color: var(--danger); }
.profile-link.danger:hover { background: var(--err-bg); }

/* ---------- My Orders drawer ---------- */
.drawer-wide { width: min(460px, 100%); }
.orders-loading { display: flex; align-items: center; gap: .6rem; color: var(--muted); justify-content: center; padding: 2.4rem 1rem; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--mint); border-top-color: var(--leaf); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.order-date { font-size: .82rem; color: var(--muted); font-weight: 600; }
.ostatus { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .32rem .6rem; border-radius: 100px; white-space: nowrap; }
.ostatus.pending { background: var(--warn-bg); color: var(--warn-fg); }
.ostatus.ok { background: var(--ok-bg); color: var(--ok-fg); }
.ostatus.info { background: var(--info-bg); color: var(--info-fg); }
.ostatus.danger { background: var(--err-bg); color: var(--err-fg); }
.order-items { display: grid; gap: .4rem; margin-bottom: .8rem; padding-bottom: .8rem; border-bottom: 1px dashed var(--line); }
.order-items li { display: flex; justify-content: space-between; gap: .8rem; font-size: .88rem; color: var(--ink); }
.order-items em { color: var(--muted); font-style: normal; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.order-ref { font-size: .82rem; color: var(--muted); }
.order-ref b, .order-total b { color: var(--forest); }
.order-total { font-size: .9rem; color: var(--muted); }
.order-total b { font-family: var(--font-head); font-size: 1.15rem; margin-left: .3rem; }

/* ---------- Checkout modal ---------- */
.co-card { width: min(470px, 100%); }
.co-steps { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-bottom: 1.5rem; }
.co-step { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.co-step i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: hsla(150, 25%, 90%, .85); color: var(--muted); font-style: normal; font-size: .82rem; transition: .3s; }
.co-step span { display: none; }
.co-step.is-on span { display: inline; color: var(--forest); }
.co-step.is-on i { background: var(--forest); color: #fff; }
.co-step.is-done i { background: var(--leaf); color: #fff; }
.co-step::after { content: ""; width: 18px; height: 2px; background: var(--line); border-radius: 2px; }
.co-step:last-child::after { display: none; }
.co-panel { display: none; animation: authIn .4s var(--ease); }
.co-panel.is-on { display: block; }
.co-h { font-size: 1.35rem; margin-bottom: .35rem; text-align: center; }
.co-sub { color: var(--muted); font-size: .9rem; text-align: center; margin-bottom: 1.1rem; }
.co-sub.co-small { font-size: .82rem; }
.co-amount { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.2rem; border-radius: 14px; background: linear-gradient(135deg, var(--wash), var(--mint)); margin-bottom: 1.2rem; }
.co-amount span { color: var(--pine); font-weight: 600; font-size: .9rem; }
.co-amount b { font-family: var(--font-head); font-size: 1.55rem; color: var(--forest); }
.qr-box { display: grid; place-items: center; margin-bottom: 1.2rem; }
.qr-box img { width: 190px; height: 190px; object-fit: contain; border-radius: 16px; border: 1px solid var(--line); background: #fff; padding: .5rem; box-shadow: var(--shadow-sm); }
.qr-fallback { display: none; place-items: center; gap: .6rem; text-align: center; }
.qr-svg { width: 180px; height: 180px; border-radius: 14px; border: 1px solid var(--line); padding: .5rem; background: #fff; box-shadow: var(--shadow-sm); }
.qr-fallback span { font-size: .78rem; color: var(--muted); max-width: 230px; }
.co-guest { display: flex; gap: .6rem; align-items: center; padding: .75rem .9rem; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); font-size: .85rem; margin-bottom: 1rem; }
.co-guest svg { width: 20px; flex: none; }
.co-guest .link { color: var(--warn-fg); }
.co-row { display: grid; grid-template-columns: auto 1fr; gap: .7rem; }
.co-row .btn { width: 100%; }
.co-done { text-align: center; }
.co-check { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: linear-gradient(135deg, var(--leaf), var(--sage)); color: #fff; animation: pop .5s var(--ease); }
.co-check svg { width: 34px; }
.co-ref { font-family: var(--font-head); font-size: 1.5rem; color: var(--forest); letter-spacing: .04em; background: var(--wash); border-radius: 12px; padding: .6rem; margin-bottom: 1rem; word-break: break-all; }

/* ---------- Responsive tweaks for new UI ---------- */
@media (max-width: 480px) {
  .profile-name { display: none; }
  .gn-modal-card { padding: 1.6rem 1.2rem 1.3rem; }
  .co-step span { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
