:root{
  --bg:#f4f7f4;
  --paper:#ffffff;
  --paper-2:#edf3ee;
  --line:#dfe7e0;
  --text:#173025;
  --muted:#6f8178;
  --green:#1d8a5b;
  --green-dark:#116f47;
  --green-soft:#e2f2e9;
  --mint:#cfead9;
  --red:#d65a5a;
  --shadow:0 16px 45px rgba(25,59,42,.10);
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#e9efea;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{display:flex;justify-content:center}
button{font:inherit}
.app-shell{
  width:min(100%,480px);
  min-height:100vh;
  background:
    linear-gradient(180deg,rgba(255,255,255,.94),rgba(244,247,244,.98)),
    radial-gradient(circle at 100% 0,#dff2e5 0,transparent 30%);
  padding:18px 15px 26px;
  overflow:hidden;
}

.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.brand{display:flex;align-items:center;gap:11px;min-width:0}
.brand-mark{
  width:42px;height:42px;border-radius:13px;display:grid;place-items:center;
  background:var(--green);color:#fff;box-shadow:0 8px 19px rgba(29,138,91,.18);
}
.brand-plus{font-size:27px;font-weight:800;line-height:1;transform:translateY(-1px)}
.eyebrow{font-size:8px;letter-spacing:.16em;color:#7d8d85;font-weight:900}
h1{margin:2px 0 0;font-size:18px;letter-spacing:-.045em;white-space:nowrap}
h1 span{color:var(--green)}

.cart-button{
  position:relative;width:42px;height:42px;border:1px solid var(--line);
  background:#fff;color:var(--text);border-radius:13px;cursor:pointer;
  box-shadow:0 6px 16px rgba(23,48,37,.05)
}
.bag-icon{font-size:16px;color:var(--green);font-weight:900}
.cart-count{
  position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;
  border-radius:999px;display:grid;place-items:center;background:var(--green);
  color:#fff;font-size:10px;font-weight:900;border:2px solid #fff
}

.rx-strip{
  display:flex;align-items:center;gap:10px;padding:10px 12px;
  background:var(--green-soft);border:1px solid #d0e7d8;border-radius:14px;margin-bottom:12px
}
.rx-cross{
  width:25px;height:25px;border-radius:8px;background:var(--green);color:#fff;
  display:grid;place-items:center;font-weight:900;font-size:18px
}
.rx-strip strong{display:block;font-size:11px}
.rx-strip span{display:block;color:var(--muted);font-size:9px;margin-top:1px}
.rx-code{margin-left:auto;font-size:8px;font-weight:900;letter-spacing:.12em;color:#60816f}

.hero{
  position:relative;display:flex;justify-content:space-between;gap:12px;padding:19px 18px;
  border:1px solid var(--line);border-radius:22px;background:var(--paper);box-shadow:var(--shadow);overflow:hidden
}
.hero::after{
  content:"";position:absolute;width:160px;height:160px;right:-85px;top:-70px;border-radius:50%;
  background:#e9f5ed
}
.hero-copy{position:relative;z-index:1}
.pill{
  display:inline-flex;padding:6px 9px;border-radius:999px;background:var(--green-soft);
  color:var(--green-dark);font-size:8px;font-weight:900;letter-spacing:.09em
}
.hero h2{margin:13px 0 8px;font-size:31px;line-height:1;letter-spacing:-.06em}
.hero h2 span{color:var(--green)}
.hero p{margin:0;max-width:235px;color:var(--muted);font-size:11px;line-height:1.45}

.hero-bottle{
  position:relative;z-index:1;align-self:flex-end;width:74px;height:103px;margin-top:8px;
  border:1px solid #cfdad3;border-radius:15px 15px 12px 12px;background:linear-gradient(150deg,#fbfdfb,#e8efe9);
  box-shadow:0 11px 20px rgba(41,77,59,.08);display:flex;flex-direction:column;align-items:center
}
.cap{width:39px;height:17px;margin-top:-7px;border-radius:5px;background:#bdd7c7;border:1px solid #a9c6b6}
.bottle-label{
  width:58px;margin-top:18px;padding:7px 4px;border-radius:8px;background:#fff;border:1px solid #dbe5de;
  display:flex;flex-direction:column;align-items:center
}
.bottle-label small{font-size:6px;letter-spacing:.12em;color:var(--green);font-weight:900}
.bottle-label strong{font-size:8px;letter-spacing:-.04em;margin-top:2px}
.bottle-label em{font-style:normal;font-size:5px;letter-spacing:.1em;color:#89958e;margin-top:4px}

.pharmacy-note{
  display:flex;align-items:center;gap:9px;margin:12px 0 21px;padding:10px 12px;
  border:1px dashed #cedbd2;border-radius:12px;background:rgba(255,255,255,.56)
}
.status-light{width:8px;height:8px;border-radius:50%;background:#42aa68;box-shadow:0 0 0 5px #e2f2e8}
.pharmacy-note strong{display:block;font-size:10px}
.pharmacy-note span{display:block;color:var(--muted);font-size:9px;margin-top:1px}

.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;margin-bottom:10px}
.section-head h3{margin:4px 0 0;font-size:18px;letter-spacing:-.045em}
.stock-label{
  color:var(--green-dark);font-size:8px;font-weight:900;border:1px solid #cce0d3;
  background:#f0f8f2;padding:6px 8px;border-radius:999px
}

.products{display:grid;gap:10px}
.product-card{
  display:grid;grid-template-columns:86px minmax(0,1fr);gap:12px;padding:10px;
  border:1px solid var(--line);border-radius:17px;background:var(--paper);
  transition:transform .18s,border-color .18s,box-shadow .18s
}
.product-card:hover{transform:translateY(-1px);border-color:#bfd7c7;box-shadow:0 12px 25px rgba(29,74,50,.07)}

.product-pack{
  position:relative;min-height:112px;border-radius:12px;padding:10px;
  overflow:hidden;border:1px solid rgba(22,81,53,.1);
  display:flex;flex-direction:column;justify-content:space-between
}
.product-pack::after{
  content:"";position:absolute;right:-18px;bottom:-25px;width:68px;height:68px;border-radius:50%;
  background:rgba(255,255,255,.45)
}
.pack-solo{background:linear-gradient(160deg,#eaf7ee,#c9e7d3)}
.pack-duo{background:linear-gradient(160deg,#eef4ef,#d6e6dc)}
.pack-max{background:linear-gradient(160deg,#e2f2e8,#bfdccb)}
.cross-mini{
  position:relative;z-index:1;width:19px;height:19px;border-radius:5px;background:#fff;color:var(--green);
  display:grid;place-items:center;font-weight:900;font-size:13px
}
.product-pack div{position:relative;z-index:1}
.product-pack small{display:block;font-size:6px;letter-spacing:.12em;color:#41745a;font-weight:900}
.product-pack strong{display:block;font-size:10px;letter-spacing:-.03em;margin-top:2px}
.product-pack em{display:block;font-style:normal;font-size:6px;letter-spacing:.12em;color:#6c8276;margin-top:4px}
.pack-number{position:relative;z-index:1;align-self:flex-end;font-size:9px;font-weight:900;color:#557064;letter-spacing:-.04em}

.product-body{display:flex;flex-direction:column;min-width:0}
.product-title-row{display:flex;align-items:center;gap:6px}
.product-title-row h4{margin:0;font-size:13px;letter-spacing:-.02em}
.tag{padding:4px 6px;border-radius:999px;background:var(--green-soft);color:var(--green-dark);font-size:6.5px;font-weight:900;letter-spacing:.07em}
.tag.subtle{background:#f1f4f1;color:#7c8b83}
.product-body>p{margin:7px 0 0;color:var(--muted);font-size:10px;line-height:1.4}
.product-footer{display:flex;justify-content:space-between;align-items:flex-end;gap:8px;margin-top:auto;padding-top:11px}
.product-footer strong{font-size:15px;letter-spacing:-.03em}
.product-footer small{font-size:8px;color:var(--muted);font-weight:800}
.add-btn,.checkout{border:0;cursor:pointer;font-weight:900}
.add-btn{padding:9px 11px;background:var(--green);color:#fff;border-radius:10px;font-size:10px;box-shadow:0 7px 16px rgba(29,138,91,.13)}
.add-btn:active,.checkout:active{transform:scale(.98)}

.footer{display:flex;justify-content:center;gap:8px;margin:19px 0 2px;color:#829088;font-size:9px}

.overlay{position:fixed;inset:0;background:rgba(20,38,28,.35);backdrop-filter:blur(3px);z-index:20}
.cart-drawer{
  position:fixed;z-index:21;left:50%;bottom:0;width:min(100%,480px);transform:translate(-50%,105%);
  transition:transform .28s cubic-bezier(.22,.9,.33,1);background:#fff;border:1px solid var(--line);
  border-bottom:0;border-radius:24px 24px 0 0;box-shadow:0 -20px 60px rgba(25,59,42,.18);
  padding:17px 16px calc(16px + env(safe-area-inset-bottom))
}
.cart-drawer.open{transform:translate(-50%,0)}
.drawer-head{display:flex;justify-content:space-between;align-items:flex-start}
.drawer-head h3{margin:3px 0 0;font-size:20px;letter-spacing:-.04em}
.close-btn{width:34px;height:34px;border:1px solid var(--line);background:#f7faf7;color:var(--text);border-radius:11px;font-size:22px;line-height:1;cursor:pointer}
.cart-items{max-height:43vh;overflow:auto;margin:16px 0}
.empty-state{text-align:center;padding:24px 10px 28px;color:var(--muted)}
.empty-cross{
  width:34px;height:34px;border-radius:10px;margin:0 auto 9px;display:grid;place-items:center;
  background:var(--green-soft);color:var(--green);font-size:23px;font-weight:900
}
.empty-state strong{display:block;color:var(--text);font-size:12px}
.empty-state p{margin:4px 0 0;font-size:10px}
.cart-line{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.cart-line:last-child{border-bottom:0}
.cart-line h4{margin:0;font-size:12px}
.cart-line p{margin:4px 0 0;color:var(--muted);font-size:9px}
.qty{display:flex;align-items:center;gap:7px}
.qty button{width:25px;height:25px;border:1px solid var(--line);background:#f5f8f5;color:var(--text);border-radius:8px;cursor:pointer}
.qty strong{min-width:14px;text-align:center;font-size:10px}
.drawer-bottom{border-top:1px solid var(--line);padding-top:14px}
.total-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}
.total-row span{color:var(--muted);font-size:11px}
.total-row strong{font-size:17px;letter-spacing:-.04em}
.checkout{width:100%;padding:12px;background:var(--green);color:#fff;border-radius:12px;font-size:11px;box-shadow:0 9px 18px rgba(29,138,91,.14)}
.fine-print{margin:8px 0 0;text-align:center;color:#8b9891;font-size:8px}
.toast{
  position:fixed;left:50%;bottom:18px;z-index:30;transform:translate(-50%,14px);opacity:0;pointer-events:none;
  padding:10px 13px;border:1px solid #d9e5dd;background:#fff;color:var(--text);border-radius:11px;
  box-shadow:var(--shadow);font-size:10px;transition:opacity .18s,transform .18s
}
.toast.show{opacity:1;transform:translate(-50%,0)}

@media (max-width:360px){
  .app-shell{padding:14px 12px 20px}
  .hero h2{font-size:28px}
  .hero-bottle{width:67px;height:96px}
  .product-card{grid-template-columns:76px minmax(0,1fr)}
  .product-pack{min-height:104px}
}
