/* Store checkout, product, tracking and report pages. Always light so text is easy to read;
   buttons use --cta (the seller's brand, lifted so it clearly looks clickable). */
:root {
  --bg: #f6f5f0;
  --paper: #ffffff;
  --ink: #1d1f1a;
  --muted: #6a6d63;
  --line: #e2e1d8;
  --cta: #1f8a52;
  --on-cta: #ffffff;
  --corn: #f2b632;
  --corn-soft: #fdf1d2;
  --chrome: #e7e8e3;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }



.hero { position: relative; padding: 28px 24px 22px; background:
  radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--corn) 35%, transparent) 0%, transparent 55%), var(--paper);
  border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.logo { width: 72px; height: 72px; border-radius: 18px; background: var(--cta); display: grid; place-items: center; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: var(--muted); font-size: .88rem; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--cta) 14%, transparent); color: var(--cta); }
.badge.corn { background: var(--corn-soft); color: var(--ink); }
.badge svg { width: 14px; height: 14px; }

.promo { margin: 18px 24px 0; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.promo .tag { font-family: var(--mono); font-size: .75rem; background: var(--corn); color: #1d1f1a; padding: 3px 8px; border-radius: 6px; font-weight: 500; }
.promo p { flex: 1 1 240px; min-width: 0; }
.promo strong { font-family: var(--display); font-size: 1.05rem; display: block; }

.section { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.25rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 5px 12px; font-size: .84rem; font-weight: 600; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.prod { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: var(--paper); }
.pic { aspect-ratio: 4 / 3; max-width: 100%; display: grid; place-items: center; position: relative; }
.pic svg { width: 46%; height: auto; }
.pic .ribbon { position: absolute; top: 10px; left: 10px; background: var(--paper); color: var(--ink); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.pbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pbody h3 { font-size: 1rem; font-weight: 600; font-family: var(--body); }
.pbody .desc { color: var(--muted); font-size: .84rem; flex: 1; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.price small { font-family: var(--body); font-weight: 600; font-size: .75rem; color: var(--muted); }
.add { border: 0; background: var(--cta); color: var(--on-cta); font-weight: 700; padding: 7px 14px; border-radius: 10px; font-size: .88rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { border: 0; background: transparent; width: 32px; height: 32px; font-weight: 700; font-size: 1.05rem; }
.stepper span { min-width: 28px; text-align: center; font-family: var(--mono); }
.stock { font-size: .76rem; font-weight: 700; }
.stock.low { color: #b3611c; }

.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.info h3 { font-size: .95rem; margin-bottom: 4px; }
.info p { color: var(--muted); font-size: .86rem; }
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.review { border-left: 3px solid var(--corn); padding: 4px 0 4px 12px; }
.review p { font-size: .92rem; }
.review span { font-size: .8rem; color: var(--muted); }
.stars { color: var(--corn); letter-spacing: 2px; font-size: .85rem; }

.foot { border-top: 1px solid var(--line); padding: 16px 24px 90px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.foot a { color: var(--cta); font-weight: 700; }

.cartbar { position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cartbar .sum { display: flex; flex-direction: column; line-height: 1.2; }
.cartbar .sum b { font-family: var(--display); font-size: 1.1rem; }
.btn { border: 0; background: var(--cta); color: var(--on-cta); font-weight: 700; padding: 11px 18px; border-radius: 12px; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.wa-btn { background: #25d366; color: #0b2a17; }

.sheet-bg { position: fixed; inset: 0; background: rgba(15,20,15,.5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--paper); width: 100%; max-width: 520px; max-height: 92%; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 20px max(18px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 18px; } }
.sheet h2 { font-size: 1.3rem; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--cta); background: color-mix(in srgb, var(--cta) 8%, transparent); }
.opt input { accent-color: var(--cta); }
.opt small { display: block; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; font-weight: 600; }
.field input, .field select { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--paper); font-weight: 400; }
.total { display: flex; justify-content: space-between; font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { flex: 1 1 160px; }
.ok-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cta); display: grid; place-items: center; }
.acct { background: var(--corn-soft); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; font-size: .9rem; }
.acct b { font-family: var(--mono); font-size: 1.05rem; }

@media (max-width: 720px) {
  .info, .reviews { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 22px 16px 18px; }
  .promo { margin: 16px 16px 0; }
  .section { padding: 20px 16px; }
  .foot { padding: 16px 16px 90px; }
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pbody { padding: 10px; }
  .prow { flex-direction: column; align-items: stretch; }
  .add { width: 100%; }
  .stepper { justify-content: space-between; }
  .dots { display: none; }
}
@media (max-width: 380px) { .products { grid-template-columns: 1fr; } }

/* Additions for the real store */
.shop { max-width: 1060px; margin: 0 auto; background: var(--paper); min-height: 100vh; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
a { color: var(--cta); }
.btn { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
.filters a { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 5px 12px; font-size: .84rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.filters a[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.blank { background: color-mix(in srgb, var(--cta) 10%, var(--paper)); font-family: var(--display); font-size: 2rem; color: var(--cta); }
.logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.logo span { color: var(--on-cta); font-family: var(--display); font-weight: 800; font-size: 1.8rem; }
.wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.errorlist, .error { color: #b3261e; font-size: .8rem; list-style: none; margin: 0; padding: 0; }
.qty { width: 64px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: var(--paper); }
.linkbtn { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: .8rem; padding: 0; }

/* Phones: 16px text in fields so iPhone doesn't zoom in when you tap one */
@media (max-width: 760px) { input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; } html { overflow-x: clip; } }

/* Clear, pressable buttons (they looked dim on dark pages). */
.btn { box-shadow: 0 2px 0 color-mix(in srgb, var(--cta) 55%, #000), 0 6px 16px color-mix(in srgb, var(--cta) 28%, transparent); transition: transform .08s, filter .15s; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 color-mix(in srgb, var(--cta) 55%, #000); }
.btn-ghost, .wa-btn { box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid #cfccc1; }
.wa-btn { background: #25d366; color: #0b2a17; }
.shop { background: var(--paper); color: var(--ink); }
.k-inner { background: var(--bg); color: var(--ink); min-height: 60vh; }
.protect { background: #f6f4ee !important; color: var(--ink); border: 1px solid #e4e1d6; }
.protect b { color: var(--ink); }
.flash { background: #e6f4ea; color: #154c2c; padding: 10px 12px; border-radius: 10px; }
.field input, .field select, .field textarea { color: var(--ink); background: #fff; border: 1px solid #d9d6cb; }
.opt { background: #fff; }
.product-page { max-width: 1060px; margin: 0 auto; padding: 22px 16px 48px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.product-page .pp-media { border-radius: 18px; overflow: hidden; background: #f0efe9; aspect-ratio: 1 / 1; }
.product-page .pp-media img, .product-page .pp-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-page .pp-info { display: flex; flex-direction: column; gap: 14px; }
.product-page h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.product-page .pp-price { font-family: var(--display); font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.product-page .pp-price s { font-size: .6em; color: var(--muted); font-weight: 500; margin-right: 6px; }
.product-page .pp-cat { display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: #eef3ec; color: #2c4a35; font-size: .8rem; font-weight: 700; text-decoration: none; }
.product-page .pp-desc { color: #3d4038; white-space: pre-line; }
.product-page .pp-buy { display: flex; gap: 10px; align-items: stretch; }
.product-page .pp-buy .qty { width: 76px; font-size: 1rem; text-align: center; }
.product-page .pp-buy .btn { flex: 1; padding: 14px 18px; font-size: 1.02rem; }
.product-page .pp-back { color: var(--muted); font-size: .9rem; text-decoration: none; }
.product-page .pp-trust { display: grid; gap: 6px; font-size: .86rem; color: #4a4d44; padding: 12px 14px; border-radius: 12px; background: #f6f4ee; border: 1px solid #e4e1d6; }
.related { max-width: 1060px; margin: 0 auto; padding: 0 16px 40px; }
.related h2 { font-size: 1.2rem; margin-bottom: 12px; }
.related .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.related a { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.related .im { aspect-ratio: 1; background: #f0efe9; }
.related .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related b, .related span { display: block; padding: 0 10px; }
.related b { padding-top: 8px; font-size: .92rem; }
.related span { padding-bottom: 10px; font-weight: 800; }
@media (max-width: 760px) { .product-page { grid-template-columns: 1fr; gap: 18px; padding-top: 14px; } }
.muted { color: var(--muted); }
.related .im { display: grid; place-items: center; aspect-ratio: 4/3; background: color-mix(in srgb, var(--cta) 12%, #fff); }
.related .im i { font-style: normal; font-weight: 800; font-size: 1.8rem; color: var(--cta); }
[data-mode-toggle], .tb-mode { display: none !important; }
