/* =====================================================================
   SAGA — Healthy Everyday Treats
   Design system: mint-green boutique, serif headlines, airy layouts
   ===================================================================== */

/* ---- Design tokens ---- */
:root {
  --mint: #61CFB1;
  --mint-soft: #d9f3ec;
  --mint-tint: #eef9f5;
  --ink: #0F1110;
  --sage: #597D70;
  --gold: #FBCD0A;
  --salmon: #F2A9A0;
  --white: #FFFFFF;
  --cream: #FAF6EF;
  --line: #e7e4dd;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-pill: 21px;
  --radius-lg: 28px;
  --shadow-sm: 0 6px 20px rgba(15, 17, 16, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 17, 16, 0.10);
  --wrap: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage); font-weight: 700; margin: 0 0 14px;
}
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-pill);
  padding: 15px 30px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262a28; box-shadow: var(--shadow-sm); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #52c2a3; }
.btn-block { width: 100%; }

/* =====================================================================
   HEADER
   ===================================================================== */
.announce {
  background: var(--mint); color: var(--ink);
  text-align: center; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 16px;
}
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px 24px; max-width: var(--wrap); margin: 0 auto;
}
.icon-btn {
  background: none; border: none; padding: 8px; color: var(--ink);
  display: inline-flex; border-radius: 50%; transition: background .15s ease;
}
.icon-btn:hover { background: var(--mint-tint); }
.header-left, .header-right { display: flex; align-items: center; gap: 6px; }
.header-right { justify-content: flex-end; }
.brand { text-align: center; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-weight: 800; font-size: 26px;
  letter-spacing: 0.02em; color: var(--ink);
}
.brand-tag {
  display: block; font-size: 9px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--sage); margin-top: 4px; font-weight: 700;
}
.cart-count {
  position: absolute; top: 0; right: 0;
  background: var(--salmon); color: var(--ink);
  font-size: 10px; font-weight: 800; min-width: 17px; height: 17px;
  border-radius: 50%; display: grid; place-items: center; padding: 0 4px;
  font-family: var(--sans);
}
.cart-btn { position: relative; }

/* Mobile nav */
.nav-drawer {
  position: fixed; inset: 0; z-index: 90; visibility: hidden;
}
.nav-drawer.open { visibility: visible; }
.nav-overlay {
  position: absolute; inset: 0; background: rgba(15,17,16,.4);
  opacity: 0; transition: opacity .25s ease;
}
.nav-drawer.open .nav-overlay { opacity: 1; }
.nav-panel {
  position: absolute; top: 0; left: 0; height: 100%; width: 320px; max-width: 84vw;
  background: #fff; padding: 28px; transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1); overflow-y: auto;
}
.nav-drawer.open .nav-panel { transform: translateX(0); }
.nav-panel h3 { font-size: 20px; margin-bottom: 18px; }
.nav-panel a {
  display: block; padding: 13px 0; font-size: 17px; font-weight: 600;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.nav-panel a:hover { color: var(--sage); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 82vh; display: grid; place-items: center;
  text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #6fd6ba 0%, #52c2a3 55%, #3fae90 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(15,17,16,.28) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 40px 24px; max-width: 760px; }
.hero h1 {
  color: #fff; font-size: clamp(42px, 8vw, 88px); margin: 10px 0 18px;
  text-shadow: 0 4px 30px rgba(0,0,0,.2);
}
.hero p { font-size: clamp(15px, 2.2vw, 19px); max-width: 520px; margin: 0 auto 30px; opacity: .95; }
.hero .eyebrow { color: rgba(255,255,255,.9); }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(6px); opacity: .35;
}

/* =====================================================================
   TRUST BADGES
   ===================================================================== */
.trust {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 56px;
  padding: 26px 24px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink);
}
.trust-item svg { color: var(--mint); flex: none; }

/* ---- Circular seals ---- */
.seals { background: var(--mint-tint); }
.seal-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px;
}
.seal {
  width: 132px; height: 132px; border-radius: 50%;
  border: 2px solid var(--mint); color: var(--sage);
  display: grid; place-items: center; text-align: center; padding: 12px;
  background: #fff;
}
.seal svg { color: var(--mint); margin-bottom: 6px; }
.seal span {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; line-height: 1.3;
}

/* =====================================================================
   PRODUCT CARDS + CAROUSEL
   ===================================================================== */
.cat-head { margin-bottom: 30px; }
.cat-head h2 { font-size: clamp(30px, 5vw, 46px); }
.cat-head p { color: var(--sage); margin-top: 8px; }

.carousel {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 24px 22px; margin: 0 -24px; scrollbar-width: thin;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: var(--mint-soft); border-radius: 20px; }
.carousel .card { flex: 0 0 clamp(240px, 78vw, 288px); scroll-snap-align: start; }

.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.card-photo {
  position: relative; aspect-ratio: 1/1; display: grid; place-items: center;
  background: var(--mint-soft);
}
.card-photo .emoji { font-size: 92px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.12)); }
.card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.card-body { padding: 20px 18px 22px; text-align: center; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.card-name a:hover { color: var(--sage); }
.card-rating { font-size: 12px; color: var(--sage); letter-spacing: .04em; }
.card-rating .stars { color: var(--gold); letter-spacing: 1px; }
.card-price { font-size: 15px; font-weight: 600; color: var(--ink); }
.card-price .cur { color: var(--sage); font-weight: 600; }
.card .btn { margin-top: auto; }

/* =====================================================================
   VS COMPARISON
   ===================================================================== */
.vs { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
.vs-side { padding: 56px 44px; }
.vs-mint { background: var(--mint); color: var(--ink); }
.vs-cream { background: var(--cream); color: var(--ink); }
.vs-side h3 { font-size: 30px; margin-bottom: 6px; }
.vs-side .vs-sub { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; opacity: .7; margin-bottom: 24px; }
.vs-list { list-style: none; padding: 0; margin: 0; }
.vs-list li {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid rgba(15,17,16,.12); font-size: 15px; font-weight: 600;
}
.vs-list li svg { flex: none; }
.vs-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 66px; height: 66px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 22px; font-style: italic;
  border: 4px solid #fff; z-index: 2;
}
.vs-wrap { position: relative; }

/* =====================================================================
   LIFESTYLE BANNER
   ===================================================================== */
.banner {
  position: relative; min-height: 460px; display: grid; place-items: center; text-align: center;
  color: #fff;
  background: linear-gradient(120deg, #F2A9A0 0%, #f5bbb3 45%, #FBCD0A 130%);
}
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(15,17,16,.18); }
.banner-inner { position: relative; z-index: 2; padding: 40px; }
.banner h2 { color: #fff; font-size: clamp(32px, 6vw, 60px); text-shadow: 0 4px 24px rgba(0,0,0,.2); }
.banner p { margin: 16px auto 26px; max-width: 440px; }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.testimonials { background: var(--cream); }
.tgrid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tcard { background: #fff; border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.tcard .stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.tcard blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 19px; line-height: 1.45; font-style: italic; }
.tcard .who { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }

/* =====================================================================
   FOUNDER STORY
   ===================================================================== */
.founder { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }
.founder-img {
  min-height: 460px;
  background: linear-gradient(135deg, var(--mint) 0%, #52c2a3 100%);
  display: grid; place-items: center;
}
.founder-img .emoji { font-size: 140px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.15)); }
.founder-text { padding: 64px 56px; }
.founder-text h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.founder-text p { color: #333; margin-bottom: 18px; font-size: 17px; }
.link-underline {
  font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--mint);
  padding-bottom: 2px; display: inline-block;
}
.link-underline:hover { border-color: var(--ink); }

/* =====================================================================
   NEWSLETTER
   ===================================================================== */
.newsletter { background: var(--mint-tint); text-align: center; }
.newsletter h2 { font-size: clamp(30px, 5vw, 48px); }
.newsletter .sub { color: var(--sage); font-size: 17px; margin: 12px 0 28px; font-weight: 600; }
.subscribe {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap;
}
.subscribe input {
  flex: 1; min-width: 200px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius-pill); padding: 15px 22px; font-size: 15px; font-family: inherit;
}
.subscribe input:focus { outline: 2px solid var(--mint); border-color: transparent; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--mint); color: var(--ink); padding: 64px 0 32px; }
.footer-cols {
  display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: center; margin-bottom: 44px;
}
.footer-cols h4 { font-size: 20px; margin-bottom: 16px; }
.footer-cols a { display: block; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--ink); opacity: .82; }
.footer-cols a:hover { opacity: 1; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(15,17,16,.16); padding-top: 28px; }
.footer-social { display: flex; justify-content: center; gap: 18px; margin-bottom: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(15,17,16,.08); display: grid; place-items: center; }
.footer-social a:hover { background: var(--ink); color: var(--mint); }
.footer-brand { font-family: var(--serif); font-size: 30px; font-weight: 800; }
.footer-copy { font-size: 12px; color: var(--sage); margin-top: 8px; }

/* =====================================================================
   COLLECTION PAGE
   ===================================================================== */
.page-head { text-align: center; padding: 56px 24px 10px; }
.page-head h1 { font-size: clamp(38px, 7vw, 64px); }
.page-head p { color: var(--sage); margin-top: 12px; }
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 28px 24px 40px;
}
.pill {
  border: none; background: none; border-radius: var(--radius-pill);
  padding: 10px 22px; font-size: 14px; font-weight: 700; color: var(--sage);
  letter-spacing: .03em; transition: background .15s ease, color .15s ease;
}
.pill:hover { color: var(--ink); background: var(--mint-tint); }
.pill.active { background: var(--salmon); color: var(--ink); }

/* =====================================================================
   PRODUCT DETAIL
   ===================================================================== */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px 0 72px; }
.gallery-main {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); background: var(--mint-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.gallery-main .emoji { font-size: 180px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.14)); }
.thumbs { display: flex; gap: 12px; }
.thumb {
  width: 78px; height: 78px; border-radius: 16px; border: 2px solid transparent;
  background: var(--mint-tint); display: grid; place-items: center; font-size: 34px;
  cursor: pointer; transition: border-color .15s ease;
}
.thumb.active { border-color: var(--mint); }
.pdp-info h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 12px; }
.pdp-rating { color: var(--sage); font-size: 14px; margin-bottom: 16px; }
.pdp-rating .stars { color: var(--gold); letter-spacing: 2px; margin-right: 8px; }
.pdp-tagline { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--sage); margin-bottom: 14px; }
.pdp-desc { font-size: 16px; color: #333; margin-bottom: 24px; }
.pdp-price { font-size: 26px; font-weight: 700; margin-bottom: 28px; }
.pdp-price .cur { color: var(--sage); font-size: 16px; font-weight: 600; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
.benefit { display: flex; align-items: center; gap: 14px; }
.benefit .ring {
  width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--mint);
  display: grid; place-items: center; color: var(--mint); flex: none;
}
.benefit span { font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.qty { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.qty-control button { background: none; border: none; padding: 12px 18px; font-size: 18px; font-weight: 700; }
.qty-control button:hover { background: var(--mint-tint); }
.qty-control span { min-width: 34px; text-align: center; font-weight: 700; }

/* =====================================================================
   CART DRAWER
   ===================================================================== */
.cart-drawer { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cart-overlay { position: absolute; inset: 0; background: rgba(15,17,16,.4); opacity: 0; transition: opacity .25s ease; }
.cart-drawer.open .cart-overlay { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 400px; max-width: 90vw;
  background: #fff; transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.cart-header h3 { font-size: 22px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; color: var(--sage); padding: 60px 20px; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line .ci-photo { width: 62px; height: 62px; border-radius: 14px; background: var(--mint-soft); display: grid; place-items: center; font-size: 30px; flex: none; }
.cart-line .ci-info { flex: 1; }
.cart-line .ci-name { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.cart-line .ci-price { font-size: 13px; color: var(--sage); }
.cart-line .ci-qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 14px; }
.cart-line .ci-qty button { border: 1px solid var(--line); background: #fff; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; }
.ci-remove { background: none; border: none; color: var(--sage); font-size: 12px; text-decoration: underline; padding: 4px 0; }
.cart-footer { padding: 22px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 120;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  .vs { grid-template-columns: 1fr; }
  .vs-badge { top: 0; }
  .founder { grid-template-columns: 1fr; }
  .founder-img { min-height: 300px; }
  .founder-text { padding: 44px 28px; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 21px; }
  .trust-row { gap: 14px 28px; }
  .footer-cols { text-align: center; }
}
