/* Carolina Crickets v2 — native-app style shell
   8pt spacing scale, 16–20px radii, farm green + cream + honey accent */
:root {
  --green: #173d2b;
  --green-2: #23573d;
  --green-3: #2f6e4e;
  --green-tint: #e6efe8;
  --cream: #f6f1e7;
  --cream-2: #efe7d8;
  --card: #ffffff;
  --ink: #142019;
  --ink-2: #3a453e;
  --muted: #6d756f;
  --line: rgba(20, 32, 25, .08);
  --accent: #e0902f;       /* warm honey accent */
  --accent-ink: #7a4508;
  --accent-tint: #fdf0dc;
  --danger: #c2412d;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px;
  --r-sm: 12px; --r: 16px; --r-lg: 20px; --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(20,32,25,.06), 0 2px 8px rgba(20,32,25,.06);
  --shadow-2: 0 2px 6px rgba(20,32,25,.06), 0 12px 32px rgba(20,32,25,.12);
  --shadow-3: 0 -8px 40px rgba(20,32,25,.18);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --nav-h: 52px;
  --tab-h: 64px;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.32, 1.25, .5, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--cream); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ui); font-size: 16px; line-height: 1.4; color: var(--ink);
  background: var(--cream); min-height: 100dvh;
  overscroll-behavior-y: none; -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
input, select, textarea, p, li, td { -webkit-user-select: text; user-select: text; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; }
body.locked { overflow: hidden; }

/* ---------- Splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: var(--s1);
  background: radial-gradient(120% 80% at 50% 35%, #215238 0%, var(--green) 60%, #0f2a1d 100%);
  color: #f6f1e7; transition: opacity .45s var(--ease), visibility .45s;
}
#splash img { width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 16px 48px rgba(0,0,0,.35); animation: splashPop .7s var(--spring) both; }
#splash .splash-word { font-family: var(--display); font-size: 30px; font-weight: 600; margin-top: var(--s2); animation: fadeUp .6s .15s var(--ease) both; }
#splash .splash-sub { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; animation: fadeUp .6s .25s var(--ease) both; }
#splash.hide { opacity: 0; visibility: hidden; }
@keyframes splashPop { from { transform: scale(.82); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Navbar (compact, appears on scroll) ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--nav-h) + var(--safe-t)); padding: var(--safe-t) calc(var(--s1) + var(--safe-r)) 0 calc(var(--s1) + var(--safe-l));
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  background: rgba(246, 241, 231, 0); border-bottom: .5px solid transparent;
  transition: background .2s, border-color .2s, -webkit-backdrop-filter .2s, backdrop-filter .2s;
}
body.scrolled .navbar {
  background: rgba(246, 241, 231, .78); border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.nav-title {
  grid-column: 2; text-align: center; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease);
}
body.scrolled .nav-title { opacity: 1; transform: none; }
.nav-back, .nav-action {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--green);
  transition: transform .15s var(--ease), background .2s;
}
.nav-back { grid-column: 1; }
.nav-action { grid-column: 3; justify-self: end; }
.nav-back svg { stroke-width: 2.4; }
body.over-hero:not(.scrolled) .nav-back, body.over-hero:not(.scrolled) .nav-action {
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-1);
}
.nav-badge, .tab-badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--cream);
}
.tab-badge { top: -4px; right: -10px; }
.bump { animation: bump .45s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Screen ---------- */
.screen {
  min-height: 100dvh;
  padding: calc(var(--nav-h) + var(--safe-t)) 0 calc(var(--tab-h) + var(--safe-b) + var(--s3));
  view-transition-name: screen;
}
body.no-tabs .screen { padding-bottom: calc(96px + var(--safe-b)); }
body.over-hero .screen { padding-top: 0; }
.pad { padding-left: calc(var(--s2) + var(--safe-l)); padding-right: calc(var(--s2) + var(--safe-r)); }
.screen.enter { animation: screenIn .38s var(--ease) both; }
.screen.enter-back { animation: screenBack .38s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes screenBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
::view-transition-old(screen) { animation: vtOut .22s var(--ease) both; }
::view-transition-new(screen) { animation: vtIn .32s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.985); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* Large title header (collapses on scroll via --c 0..1) */
.large-head { --c: 0; padding: var(--s1) calc(var(--s2) + var(--safe-r)) var(--s2) calc(var(--s2) + var(--safe-l)); }
.large-head .eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; opacity: calc(1 - var(--c)); }
.large-head h1 {
  margin: 2px 0 0; font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 1.05; letter-spacing: -.01em; color: var(--green);
  transform-origin: left bottom; transform: scale(calc(1 - var(--c) * .2)) translateY(calc(var(--c) * 6px)); opacity: calc(1 - var(--c) * .9);
}
.large-head .sub { margin: var(--s1) 0 0; color: var(--muted); font-size: 15px; opacity: calc(1 - var(--c)); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); }
.avatar { width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--shadow-1); flex: none; }

/* ---------- Section headers & carousels ---------- */
.section { margin-top: var(--s3); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 calc(var(--s2) + var(--safe-r)) var(--s1) calc(var(--s2) + var(--safe-l)); }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.section-head h2.display { font-size: 26px; font-weight: 600; color: var(--green); }
.see-all { color: var(--green-3); font-weight: 600; font-size: 15px; padding: var(--s1) 0 var(--s1) var(--s1); }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px calc(var(--s2) + var(--safe-r)) var(--s2) calc(var(--s2) + var(--safe-l)); scroll-padding: 0 var(--s2);
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.small { grid-auto-columns: 44%; }
.carousel > * { scroll-snap-align: start; }

/* Product photo card */
.pcard {
  position: relative; display: block; text-align: left; border-radius: var(--r-lg); overflow: hidden; background: var(--card);
  box-shadow: var(--shadow-2); transition: transform .18s var(--ease), box-shadow .18s;
}
.pcard .ph { position: relative; aspect-ratio: 4 / 5; background: var(--cream-2); overflow: hidden; }
.carousel.small .pcard .ph { aspect-ratio: 1; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.pcard .ph::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10,24,16,.72)); }
.pcard .ov { position: absolute; left: var(--s2); right: var(--s2); bottom: var(--s2); z-index: 1; color: #fff; }
.pcard .ov .t { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.05; }
.carousel.small .pcard .ov .t { font-size: 19px; }
.pcard .ov .m { font-size: 13px; opacity: .88; margin-top: 4px; }
.pcard .tag { position: absolute; top: 12px; left: 12px; z-index: 1; }
.pcard .price-pill { position: absolute; top: 12px; right: 12px; z-index: 1; }

/* Pills & chips */
.pill-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em; background: rgba(255,255,255,.92); color: var(--green);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill-tag.accent { background: var(--accent); color: #fff; }
.pill-tag.warn { background: var(--accent-tint); color: var(--accent-ink); }
.pill-tag.dark { background: rgba(10,24,16,.55); color: #fff; }
.pill-tag.soft { background: var(--green-tint); color: var(--green); }

/* Press state = haptic feel */
.press { transition: transform .16s var(--ease), filter .16s, opacity .16s; }
.press:active, .pcard:active, .btn:active, .tile:active, .row-item:active, .chip:active, .seg button:active, .tabbar button:active .tab-ic {
  transform: scale(.965); filter: brightness(.96);
}

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: var(--s1); width: 100%;
  height: 54px; padding: 0 var(--s3); border-radius: var(--r); font-size: 17px; font-weight: 650;
  background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(23,61,43,.25);
  transition: transform .16s var(--ease), filter .16s, background .2s;
}
.btn.accent { background: var(--accent); box-shadow: 0 6px 16px rgba(224,144,47,.35); }
.btn.secondary { background: var(--green-tint); color: var(--green); box-shadow: none; }
.btn.light { background: #fff; color: var(--green); box-shadow: var(--shadow-1); }
.btn.ghost { background: transparent; color: var(--green-3); box-shadow: none; height: 44px; }
.btn.sm { height: 40px; width: auto; padding: 0 var(--s2); font-size: 15px; border-radius: 20px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.stack { display: grid; gap: 12px; }

/* ---------- Cards / lists ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--s2) 20px; }
.card + .card { margin-top: 12px; }
.card h3 { margin: 0 0 var(--s1); font-size: 17px; font-weight: 700; }
.card p { margin: 0 0 var(--s1); color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.group { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.group-label { margin: var(--s3) 0 var(--s1) 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.row-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px var(--s2); text-align: left;
  background: var(--card); transition: background .15s, transform .15s;
}
.row-item + .row-item { box-shadow: inset 0 .5px 0 var(--line); }
.row-item .ri-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--green-3); flex: none; }
.row-item .ri-ic svg { width: 18px; height: 18px; stroke-width: 2; }
.row-item .ri-t { flex: 1; min-width: 0; }
.row-item .ri-t strong { display: block; font-weight: 600; font-size: 16px; }
.row-item .ri-t span { display: block; font-size: 13px; color: var(--muted); }
.row-item .chev { color: #b3b8b4; width: 18px; height: 18px; stroke-width: 2.4; }

/* Banners */
.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px var(--s2); border-radius: var(--r);
  background: var(--accent-tint); color: var(--accent-ink); font-size: 14.5px; line-height: 1.4;
}
.banner svg { flex: none; width: 20px; height: 20px; margin-top: 1px; stroke-width: 2; }
.banner.info { background: var(--green-tint); color: var(--green); }
.banner + .banner, .banner + .card, .card + .banner { margin-top: 12px; }

/* ---------- Home ---------- */
.home-hero {
  position: relative; margin: 0 calc(var(--s2) + var(--safe-r)) 0 calc(var(--s2) + var(--safe-l)); border-radius: var(--r-xl); overflow: hidden;
  min-height: 300px; color: #fff; box-shadow: var(--shadow-2); background: var(--green);
}
.home-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,24,16,.05) 20%, rgba(10,24,16,.82) 100%); }
.home-hero .in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 20px; gap: 12px; }
.home-hero h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.02; }
.home-hero p { margin: 0; opacity: .9; font-size: 15px; }
.home-hero .btn { width: auto; align-self: flex-start; height: 48px; border-radius: 24px; }

/* Cutoff pill + widget */
.cutoff-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 17px;
  background: var(--card); box-shadow: var(--shadow-1); font-size: 13.5px; font-weight: 600; color: var(--green);
}
.cutoff-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 4px rgba(47,179,107,.18); animation: pulse 1.8s infinite; }
.cutoff-pill.held .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(224,144,47,.2); }
.cutoff-pill .tm { font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47,179,107,0); } }
.widget {
  border-radius: var(--r-xl); padding: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--green-3) 0%, var(--green) 70%); box-shadow: var(--shadow-2);
}
.widget::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.06); }
.widget .w-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .82; }
.widget .w-time { font-size: 44px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: var(--s1) 0 2px; line-height: 1.05; }
.widget .w-ship { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 14px; background: rgba(255,255,255,.14); font-size: 14px; font-weight: 600; }
.widget .w-msg { font-size: 14.5px; opacity: .88; }
.widget .seg { margin-top: var(--s2); background: rgba(255,255,255,.12); }
.widget .seg button { color: rgba(255,255,255,.85); }
.widget .seg button.on { background: #fff; color: var(--green); }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { display: grid; justify-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: transform .16s var(--ease); }
.tile .ti { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-1); color: var(--green); overflow: hidden; }
.tile .ti img { width: 100%; height: 100%; object-fit: cover; }
.tile .ti svg { width: 26px; height: 26px; }
.tile.club .ti { background: var(--accent); color: #fff; }

/* Reviews */
.review { background: var(--card); border-radius: var(--r-lg); padding: var(--s2); box-shadow: var(--shadow-1); display: grid; gap: 8px; }
.review .stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.review p { margin: 0; font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review .who { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Search & segmented ---------- */
.search {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px;
  background: rgba(118,118,128,.12); color: var(--muted);
}
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.search input::placeholder { color: #8b918d; }
.search .clear { display: none; width: 20px; height: 20px; border-radius: 50%; background: #a8ada9; color: #fff; place-items: center; }
.search .clear svg { width: 12px; height: 12px; stroke-width: 3; }
.search.has .clear { display: grid; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px calc(var(--s2) + var(--safe-r)) 4px calc(var(--s2) + var(--safe-l)); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 16px; border-radius: 18px; font-size: 14.5px; font-weight: 600;
  background: var(--card); color: var(--ink-2); box-shadow: var(--shadow-1); transition: background .2s, color .2s, transform .15s var(--ease);
}
.chip.on { background: var(--green); color: #fff; }
.chip[disabled] { opacity: .38; text-decoration: line-through; pointer-events: none; }
.seg { display: flex; padding: 3px; border-radius: 12px; background: rgba(118,118,128,.12); }
.seg button { flex: 1; height: 34px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s, transform .15s; }
.seg button.on { background: #fff; color: var(--green); box-shadow: 0 2px 6px rgba(0,0,0,.08); }

/* Shop grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .pcard .ph { aspect-ratio: 1; }
.grid2 .pcard .ov .t { font-size: 18px; }
.list-card { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-1); width: 100%; text-align: left; }
.list-card + .list-card { margin-top: 12px; }
.list-card img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--cream-2); flex: none; }
.list-card .lc-t { flex: 1; min-width: 0; }
.list-card .lc-t strong { display: block; font-size: 16px; }
.list-card .lc-t span { font-size: 13.5px; color: var(--muted); }
.list-card .lc-p { font-weight: 700; color: var(--green); white-space: nowrap; }
.empty { text-align: center; padding: var(--s5) var(--s2); color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: #b9beba; margin: 0 auto var(--s2); }

/* ---------- Skeletons ---------- */
.sk { position: relative; overflow: hidden; background: #e7e1d5; border-radius: var(--r-lg); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { aspect-ratio: 4 / 5; }
.sk-line { height: 14px; border-radius: 7px; margin-top: 8px; }
img.lazy { opacity: 0; }
img.loaded { opacity: 1; }

/* ---------- Product detail ---------- */
.pd-hero { position: relative; height: calc(56vh + var(--safe-t)); min-height: 340px; max-height: 560px; background: var(--cream-2); overflow: hidden; }
.pd-gallery { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-gallery::-webkit-scrollbar { display: none; }
.pd-gallery img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.pd-dots { position: absolute; bottom: 36px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.pd-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); transition: width .25s var(--ease), background .25s; }
.pd-dots i.on { width: 18px; background: #fff; }
.pd-body {
  position: relative; z-index: 3; margin-top: -24px; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--cream);
  padding: var(--s3) calc(var(--s2) + var(--safe-r)) var(--s2) calc(var(--s2) + var(--safe-l));
}
.pd-body h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.05; color: var(--green); }
.pd-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pd-price { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.pd-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; margin: var(--s3) 0 var(--s1); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.opt-label b { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 15px; }
.opt-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--s2)); padding: 4px var(--s2); }
.opt-chips::-webkit-scrollbar { display: none; }
.opt-chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.select-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px var(--s2); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-1); text-align: left; margin-top: var(--s2);
}
.select-row .sr-t { flex: 1; }
.select-row .sr-t span { display: block; font-size: 13px; color: var(--muted); }
.select-row .sr-t strong { font-size: 16px; }
.pd-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin: var(--s2) 0 0; overflow-wrap: anywhere; }
.pd-desc p { margin: 0 0 .7em; }
.pd-desc p:last-child { margin-bottom: 0; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: var(--s2); }
.feature-row div { background: var(--card); border-radius: var(--r); padding: 12px 8px; text-align: center; font-size: 12.5px; color: var(--muted); box-shadow: var(--shadow-1); }
.feature-row b { display: block; font-size: 15px; color: var(--green); }

/* Sticky add-to-cart bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; gap: 12px;
  padding: 12px calc(var(--s2) + var(--safe-r)) calc(12px + var(--safe-b)) calc(var(--s2) + var(--safe-l));
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(20,32,25,.06);
  animation: barIn .4s var(--ease) both;
}
@keyframes barIn { from { transform: translateY(100%); } }
.buybar .bb-price { min-width: 92px; }
.buybar .bb-price span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.buybar .bb-price strong { font-size: 22px; letter-spacing: -.01em; }
.buybar .btn { flex: 1; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; height: 40px; border-radius: 20px; background: rgba(118,118,128,.12); }
.stepper button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 20px; color: var(--green); transition: transform .15s var(--ease), background .15s; }
.stepper button:active { background: rgba(0,0,0,.06); transform: scale(.9); }
.stepper svg { width: 18px; height: 18px; stroke-width: 2.4; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Bottom sheets ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(8,18,12,.42); opacity: 0; transition: opacity .3s var(--ease); }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; max-height: calc(100dvh - var(--safe-t) - 24px);
  display: flex; flex-direction: column; background: var(--cream); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-3);
  transform: translateY(105%); transition: transform .42s var(--spring); will-change: transform;
}
.sheet.open { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet .grab { flex: none; padding: 8px 0 4px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet .grab i { width: 36px; height: 5px; border-radius: 3px; background: rgba(60,60,67,.3); }
.sheet .sh-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 4px calc(var(--s2) + var(--safe-r)) 12px calc(var(--s2) + var(--safe-l)); touch-action: none; }
.sheet .sh-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--green); }
.sheet .sh-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(118,118,128,.14); display: grid; place-items: center; color: var(--muted); }
.sheet .sh-close svg { width: 16px; height: 16px; stroke-width: 2.6; }
.sheet .sh-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 calc(var(--s2) + var(--safe-r)) var(--s2) calc(var(--s2) + var(--safe-l)); }
.sheet .sh-foot { flex: none; padding: 12px calc(var(--s2) + var(--safe-r)) calc(12px + var(--safe-b)) calc(var(--s2) + var(--safe-l)); background: rgba(255,255,255,.9); box-shadow: 0 -1px 0 var(--line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }

/* Cart lines with swipe-to-remove */
.cline-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--danger); }
.cline-wrap + .cline-wrap { margin-top: 12px; }
.cline-del { position: absolute; inset: 0 0 0 auto; width: 96px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.cline-del svg { width: 22px; height: 22px; margin: 0 auto 2px; }
.cline {
  position: relative; display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--card);
  touch-action: pan-y; transition: transform .3s var(--ease);
}
.cline.dragging { transition: none; }
.cline img { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; background: var(--cream-2); flex: none; }
.cline .cl-t { flex: 1; min-width: 0; }
.cline .cl-t strong { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cline .cl-t span { display: block; font-size: 13px; color: var(--muted); margin: 2px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cline .cl-p { font-weight: 700; align-self: flex-start; }
.cline-wrap.removing { animation: collapse .3s var(--ease) forwards; }
@keyframes collapse { to { opacity: 0; max-height: 0; margin: 0; } }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; margin: 4px 0; color: var(--ink-2); }
.sum-row.total { font-size: 19px; font-weight: 700; color: var(--ink); margin: 8px 0 12px; }
.swipe-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* ---------- Club ---------- */
.club-hero {
  border-radius: var(--r-xl); padding: var(--s3) 20px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, #3a7d58 0%, var(--green) 55%, #0f2a1d 100%); box-shadow: var(--shadow-2);
}
.club-hero .big { font-family: var(--display); font-size: 76px; font-weight: 600; line-height: .9; color: #f8d9a8; }
.club-hero h2 { margin: var(--s1) 0 6px; font-size: 22px; font-weight: 700; }
.club-hero p { margin: 0; opacity: .88; font-size: 15px; }
.club-hero .badge-star { position: absolute; right: 20px; top: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.club-hero .badge-star svg { width: 28px; height: 28px; fill: #fff; stroke: none; }
.perk { display: flex; gap: 14px; align-items: center; padding: 14px var(--s2); }
.perk + .perk { box-shadow: inset 0 .5px 0 var(--line); }
.perk .pi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); flex: none; }
.perk .pi svg { width: 20px; height: 20px; stroke-width: 2; }
.perk strong { display: block; font-size: 15.5px; }
.perk span { font-size: 13.5px; color: var(--muted); }
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps div { counter-increment: s; display: flex; gap: 12px; align-items: center; font-size: 15px; }
.steps div::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.freq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.freq div { background: var(--card); border-radius: var(--r); padding: 14px 8px; text-align: center; box-shadow: var(--shadow-1); font-size: 13px; color: var(--muted); }
.freq b { display: block; color: var(--green); font-size: 16px; }

/* ---------- Shipping table / timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 10px 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--green-tint); }
.tl:first-child::before { top: 18px; } .tl:last-child::before { bottom: calc(100% - 18px); }
.tl i { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--green-3); margin-top: 1px; position: relative; z-index: 1; }
.tl.now i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(224,144,47,.2); }
.tl strong { display: block; font-size: 15px; }
.tl span { font-size: 13.5px; color: var(--muted); }

/* ---------- Feeding ---------- */
.size-scale { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding: var(--s2) 4px 4px; }
.size-scale div { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: center; flex: 1; }
.size-scale b { display: block; background: var(--green-3); border-radius: 50%; }
.picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.picker button { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-1); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s, transform .15s var(--ease); }
.picker button .em { font-size: 24px; line-height: 1; }
.picker button.on { background: var(--green); color: #fff; }
.result { display: grid; gap: 10px; }
.result .rr { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.result .rr span { color: var(--muted); }
.result .rr b { text-align: right; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl td { padding: 10px 0; border-top: .5px solid var(--line); vertical-align: top; }
.tbl tr:first-child td { border-top: 0; }
.tbl td:last-child { text-align: right; font-weight: 600; color: var(--green); }
details.faq { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 0 var(--s2); }
details.faq + details.faq { margin-top: 8px; }
details.faq summary { list-style: none; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--green-3); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }

/* ---------- Tab bar (frosted, active pill) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding: 6px calc(4px + var(--safe-r)) var(--safe-b) calc(4px + var(--safe-l));
  background: rgba(250, 247, 241, .72); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 -.5px 0 rgba(20,32,25,.12);
  transition: transform .35s var(--ease);
}
body.no-tabs .tabbar { transform: translateY(110%); }
.tabbar button { display: grid; justify-items: center; align-content: start; gap: 3px; padding-top: 2px; color: #7c837e; }
.tab-ic { position: relative; width: 60px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .25s var(--ease), color .2s, transform .16s var(--ease); }
.tab-ic svg { width: 23px; height: 23px; }
.tab-lb { font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.tabbar button.on { color: var(--green); }
.tabbar button.on .tab-ic { background: rgba(23,61,43,.12); }
.tabbar button.on .tab-ic svg { stroke-width: 2.2; }
.tabbar button[data-tab="home"].on svg, .tabbar button[data-tab="club"].on svg { fill: rgba(23,61,43,.16); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--safe-t) + 10px); z-index: 200;
  display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 24px;
  background: rgba(20,32,25,.92); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate(-50%, -140%); opacity: 0; transition: transform .45s var(--spring), opacity .25s; pointer-events: none; white-space: nowrap;
}
.toast .tk { width: 24px; height: 24px; border-radius: 50%; background: #2fb36b; display: grid; place-items: center; }
.toast .tk svg { width: 14px; height: 14px; stroke-width: 3; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Pull to refresh ---------- */
#ptr { position: fixed; top: calc(var(--safe-t) + 8px); left: 50%; z-index: 55; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-2); display: grid; place-items: center; transform: translateY(-80px); opacity: 0; }
#ptr .ptr-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--green-tint); border-top-color: var(--green); }
#ptr.spin .ptr-spin { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mt1 { margin-top: var(--s1); } .mt2 { margin-top: var(--s2); } .mt3 { margin-top: var(--s3); }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .press:active, .pcard:active, .btn:active, .tile:active, .chip:active { transform: none; }
}
@media (min-width: 700px) {
  .carousel { grid-auto-columns: 300px; } .carousel.small { grid-auto-columns: 200px; }
  .screen, .pd-body { max-width: 720px; margin-left: auto; margin-right: auto; }
}

/* ---- v2 additions used by app.js ---- */
.select-row .ri-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); flex: none; }
.select-row .ri-ic svg { width: 20px; height: 20px; }
.select-row .chev { width: 18px; height: 18px; color: #b3b8b4; }
.list-card.flat { box-shadow: none; padding: 0; background: transparent; }
.list-card.flat .lc-p { font-size: 20px; }
.stepper.sm { height: 34px; margin-top: 8px; }
.stepper.sm button { width: 34px; height: 34px; }
.stepper.sm svg { width: 16px; height: 16px; }
.chip small { opacity: .65; font-weight: 500; font-size: 12px; margin-left: 2px; }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.row-item .pill-tag { flex: none; }
.w-ship svg { width: 18px; height: 18px; }
.home-hero .in .pill-tag { align-self: flex-start; }
.head-row { align-items: center; }
.large-head .head-row { align-items: flex-end; }
html[data-dir="fwd"]::view-transition-new(screen) { animation: vtInR .34s var(--ease) both; }
html[data-dir="back"]::view-transition-new(screen) { animation: vtInL .34s var(--ease) both; }
@keyframes vtInR { from { opacity: 0; transform: translateX(28px); } }
@keyframes vtInL { from { opacity: 0; transform: translateX(-28px); } }
[hidden] { display: none !important; }
.home-hero::after { background: linear-gradient(180deg, rgba(10,24,16,.30) 0%, rgba(10,24,16,.55) 40%, rgba(10,24,16,.9) 100%); }
.home-hero img { filter: saturate(.9); }
.pcard .ov .t { font-family: var(--ui); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.carousel.small .pcard .ov .t { font-size: 17px; }
.grid2 .pcard .ov .t { font-size: 16px; }

/* ---- Account / orders ---- */
.signin-hero { border-radius: var(--r-xl); padding: var(--s3) 20px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, #3a7d58 0%, var(--green) 55%, #0f2a1d 100%); box-shadow: var(--shadow-2); }
.signin-hero .si-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.signin-hero .si-ic svg { width: 28px; height: 28px; stroke: #fff; }
.signin-hero h2 { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.05; margin: var(--s2) 0 var(--s1); }
.signin-hero p { margin: 0; opacity: .88; font-size: 15px; }
.signin-hero .tiny svg { stroke: #fff; }
.profile-card { display: flex; align-items: center; gap: var(--s2); padding: var(--s2); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--green-3), var(--green)); box-shadow: 0 4px 14px rgba(23,61,43,.3); }
.pc-t { flex: 1; min-width: 0; }
.pc-t strong { display: block; font-size: 19px; letter-spacing: -.01em; }
.pc-t span { display: block; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card { display: block; width: 100%; text-align: left; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--s2); transition: transform .16s var(--ease); }
.order-card + .order-card { margin-top: 12px; }
.order-card:active { transform: scale(.98); }
.oc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.oc-top strong { display: block; font-size: 17px; }
.oc-top span { font-size: 13.5px; color: var(--muted); }
.oc-top b { font-size: 17px; color: var(--green); font-variant-numeric: tabular-nums; }
.oc-thumbs { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; min-width: 0; }
.oc-thumbs img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--cream-2); flex: none; }
.oc-thumbs > span:not(.oc-names) { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-2); font-weight: 700; color: var(--muted); flex: none; }
.oc-names { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-left: 4px; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.progress::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 9px; height: 3px; border-radius: 2px; background: var(--cream-2); }
.progress div { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.progress div i { width: 20px; height: 20px; border-radius: 50%; background: var(--cream-2); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); z-index: 1; }
.progress div.done i { background: var(--green-3); }
.progress div.done:not(:first-child)::before { content: ""; position: absolute; top: 9px; right: 50%; width: 100%; height: 3px; background: var(--green-3); }
.progress div.cur i { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.progress div.done span { color: var(--ink); }
.track-card { border-radius: var(--r-lg); padding: var(--s2); color: #fff; background: linear-gradient(150deg, var(--green-3), var(--green)); box-shadow: var(--shadow-2); }
.tc-top { display: flex; gap: 12px; align-items: center; }
.tc-top strong { display: block; font-size: 17px; }
.tc-top span { font-size: 13.5px; opacity: .85; }
.tc-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); flex: none; }
.tc-ic svg { width: 24px; height: 24px; stroke: #fff; }
.tc-num { margin-top: var(--s2); padding: 12px; border-radius: 14px; background: rgba(0,0,0,.18); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tc-num span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .02em; }
.track-card .btn.light svg { stroke: currentColor; }
.row-item.oi img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--cream-2); flex: none; }
.row-item.oi .ri-t span { display: block; }
.row-item.oi b { font-variant-numeric: tabular-nums; }
.sh-foot .see-all { padding: 0; font-size: inherit; }
.tc-num { flex-direction: column; align-items: flex-start; gap: 4px; }
.profile-card { position: relative; }
.profile-card > .pill-tag { position: absolute; top: 10px; right: 10px; font-size: 11px; padding: 3px 8px; }
