/* ============================================================
   Byto Home — storefront
   Palette from the logo: forest green, fresh leaf green,
   delivery orange. Applied with restraint on a light canvas.
   ============================================================ */

:root {
  --brand:      #1f9d3d;
  --brand-600:  #18863a;
  --brand-700:  #136b2f;
  --brand-800:  #123c1c;
  --brand-050:  #eef7ef;
  --brand-100:  #d9edda;

  --accent:     #f5901e;
  --accent-050: #fff3e2;

  --ink:    #17251b;
  --muted:  #5f6f5f;
  --faint:  #8a968b;

  --line:   #e9ede3;
  --line-2: #dee4d6;

  --bg:      #ffffff;
  --bg-soft: #f4f7f2;
  --surface: #ffffff;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;

  --shadow-1: 0 1px 2px rgba(18,50,25,.05), 0 1px 3px rgba(18,50,25,.06);
  --shadow-2: 0 8px 20px -8px rgba(18,50,25,.16), 0 16px 40px -20px rgba(18,50,25,.18);
  --shadow-3: 0 24px 60px -16px rgba(18,50,25,.30);

  --wrap: 1180px;
  --ease: cubic-bezier(.4, .1, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { letter-spacing: -0.02em; color: var(--brand-800); line-height: 1.2; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---------- icons ---------- */
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; width: 20px; height: 20px; }
.ic--12 { width: 12px; height: 12px; }
.ic--14 { width: 14px; height: 14px; }
.ic--15 { width: 15px; height: 15px; }
.ic--16 { width: 16px; height: 16px; }
.ic--18 { width: 18px; height: 18px; }
.ic--20 { width: 20px; height: 20px; }
.ic--22 { width: 22px; height: 22px; }
.ic--28 { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px;
  padding: 12px 20px;
  transition: transform .12s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn--light { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-1); }
.btn--light:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn--block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.pill--glass { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); }

/* ============================================================
   Announcement bar
   ============================================================ */
.ann { background: var(--brand-800); color: #d7efdb; font-size: 12.5px; font-weight: 500; }
.ann__inner { display: flex; align-items: center; gap: 12px; height: 36px; }
.ann__inner span { display: inline-flex; align-items: center; gap: 6px; }
.ann__sep { width: 1px; height: 14px; background: rgba(255,255,255,.22); }
.ann__spacer { flex: 1; }
.ann a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 1px; }
@media (max-width: 640px) { .ann__inner span:nth-child(3), .ann__sep { display: none; } }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-2); }

.header__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 58px; width: auto; }

.search2 {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search2:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-050); }
.search2__icon { color: var(--faint); }
.search2 input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 14.5px; }
.search2 input::placeholder { color: var(--faint); }
.search2__clear { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--muted); }
.search2__clear:hover { background: var(--line); }

.header__right { display: flex; align-items: center; gap: 10px; }

.loc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2);
  transition: background .15s, border-color .15s;
}
.loc:hover { background: var(--bg-soft); border-color: var(--brand-100); }
.loc svg { color: var(--brand); }
.loc__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.loc small { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.loc b { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }

.iconbtn2 {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2);
  color: var(--ink);
  transition: background .15s, border-color .15s;
}
.iconbtn2:hover { background: var(--bg-soft); border-color: var(--brand-100); }

.cart2 {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: #fff;
  padding: 9px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  transition: transform .12s var(--ease), box-shadow .16s;
}
.cart2:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.cart2.bump { animation: bump .32s var(--ease); }
@keyframes bump { 30% { transform: scale(1.07); } 60% { transform: scale(.98); } }
.cart2__meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.cart2__meta span { font-size: 11px; font-weight: 600; opacity: .92; }
.cart2__meta strong { font-size: 14px; }

/* ---------- category strip ---------- */
.catbar-wrap { border-top: 1px solid var(--line); }
.catbar {
  display: flex; gap: 8px;
  padding: 11px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.catbar::-webkit-scrollbar { display: none; }
.catchip {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  font-size: 13px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
  transition: all .15s var(--ease);
}
.catchip svg { color: var(--brand); transition: color .15s; }
.catchip:hover { border-color: var(--brand); color: var(--ink); }
.catchip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.catchip.is-active svg { color: #fff; }

/* ============================================================
   Layout
   ============================================================ */
.main { padding: 24px 0 64px; }
.section { margin-top: 40px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__head h2 { font-size: 20px; font-weight: 800; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select {
  border: 1.5px solid var(--line-2); border-radius: var(--radius-xs);
  padding: 7px 10px; background: #fff; font-weight: 600; font-size: 13px; cursor: pointer;
}

/* ============================================================
   Hero
   ============================================================ */
.hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; }

.hero__card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 44px 46px;
  background:
    radial-gradient(130% 130% at 12% 15%, #2bb24b 0%, #14722f 55%, #0f5325 100%);
  color: #fff;
  display: flex; align-items: center;
}
.hero__body { position: relative; z-index: 1; max-width: 30rem; }
.hero__body h1 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin: 16px 0 10px; }
.hero__body p { font-size: 15px; opacity: .94; max-width: 32ch; }
.hero__actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.hero__meta { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; opacity: .95; }
.hero__rings {
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 38%, rgba(255,255,255,.09) 38.5%, rgba(255,255,255,.09) 46%, transparent 46.5%),
    radial-gradient(circle, transparent 58%, rgba(255,255,255,.07) 58.5%, rgba(255,255,255,.07) 66%, transparent 66.5%),
    radial-gradient(circle, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 70%, transparent 71%);
}

.hero__promos { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.promo {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  padding: 22px 22px;
  display: flex; flex-direction: column; justify-content: center;
  border: 1.5px solid var(--line);
  background: #fff;
}
.promo h3 { font-size: 16px; font-weight: 800; }
.promo p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.promo b { color: var(--brand-700); }
.promo__tag {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 999px;
}
.promo--green { background: linear-gradient(135deg, var(--brand-050), #fff); }
.promo--green .promo__tag { background: var(--brand); color: #fff; }
.promo--orange { background: linear-gradient(135deg, var(--accent-050), #fff); }
.promo--orange .promo__tag { background: var(--accent); color: #fff; }

/* ============================================================
   Category tiles
   ============================================================ */
.ctiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.ctile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 8px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: #fff;
  transition: transform .14s var(--ease), border-color .15s, box-shadow .15s;
}
.ctile:hover { transform: translateY(-3px); border-color: var(--brand-100); box-shadow: var(--shadow-2); }
.ctile__ic {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--t, var(--brand-050));
  color: var(--brand-700);
}
.ctile__ic svg { width: 26px; height: 26px; }
.ctile__name { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.25; }

/* ============================================================
   Product grid
   ============================================================ */
.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pcard {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
  transition: transform .14s var(--ease), border-color .15s, box-shadow .15s;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--brand-100); box-shadow: var(--shadow-2); }
.pcard__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: var(--t, var(--bg-soft));
  display: grid; place-items: center;
  overflow: hidden;
}
.pcard__emoji { font-size: 58px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.08)); }
.pcard__img { width: 100%; height: 100%; object-fit: cover; }
.pcard.is-oos .pcard__media { filter: grayscale(1); opacity: .55; }
.pcard.is-oos .pcard__name { color: var(--faint); }
.pcard__flag--oos { background: #40484d; color: #fff; }
.addbtn[disabled] { opacity: .45; cursor: not-allowed; }
.pcard__off {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 3px 7px; border-radius: 7px;
}
.pcard__flag {
  position: absolute; top: 8px; right: 8px;
  background: #fff; color: var(--brand-700);
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 7px; border-radius: 7px;
  box-shadow: var(--shadow-1);
}
.pcard__info { display: flex; flex-direction: column; flex: 1; padding: 10px 4px 4px; }
.pcard__unit { font-size: 11.5px; font-weight: 600; color: var(--faint); }
.pcard__name { font-size: 13.5px; font-weight: 700; color: var(--ink); margin: 3px 0 12px; min-height: 2.7em; }
.pcard__bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__price { display: flex; flex-direction: column; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pcard__price .now { font-size: 15px; font-weight: 800; }
.pcard__price .was { font-size: 11.5px; color: var(--faint); text-decoration: line-through; }

.addbtn {
  border: 1.5px solid var(--brand);
  color: var(--brand-700);
  background: #fff;
  font-weight: 800; font-size: 12px; letter-spacing: .06em;
  padding: 8px 18px; border-radius: var(--radius-xs);
  transition: background .14s, color .14s;
}
.addbtn:hover { background: var(--brand); color: #fff; }

.stepper {
  display: inline-flex; align-items: center;
  background: var(--brand); color: #fff;
  border-radius: var(--radius-xs); overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.stepper button { display: grid; place-items: center; width: 32px; height: 34px; color: #fff; }
.stepper button:hover { background: rgba(255,255,255,.16); }
.stepper button svg { width: 15px; height: 15px; }
.stepper span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 800; }

.empty { text-align: center; color: var(--muted); padding: 56px 0; font-weight: 600; }

/* ============================================================
   Value props
   ============================================================ */
.props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.prop { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; }
.prop__ic {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--brand-050); color: var(--brand-700);
}
.prop h3 { font-size: 14.5px; margin: 12px 0 5px; }
.prop p { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--brand-800); color: #c9e4ce; margin-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding: 48px 0 34px; }
.footer__brand img { width: 128px; background: #fff; border-radius: 12px; padding: 8px 10px; margin-bottom: 14px; }
.footer__brand p { font-size: 13px; max-width: 42ch; }
.footer__chips { display: flex; gap: 16px; margin-top: 16px; }
.footer__chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #fff; }
.footer__col h4 { color: #fff; font-size: 13px; letter-spacing: .04em; margin-bottom: 12px; }
.footer__col a { display: block; font-size: 13px; padding: 5px 0; transition: color .12s; }
.footer__col a:hover { color: #fff; }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px; color: #97bd9e;
}
.footer__social { display: inline-flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); color: #c9e4ce; transition: color .12s, border-color .12s; }
.footer__social a:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* ============================================================
   Scrim / drawer
   ============================================================ */
.scrim { position: fixed; inset: 0; background: rgba(15,35,22,.5); z-index: 50; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 60;
  width: min(430px, 100%); height: 100%;
  background: var(--bg-soft);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  box-shadow: var(--shadow-3);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 17px; font-weight: 800; }

.freebar { padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.freebar__track { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.freebar__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .35s var(--ease); }
.freebar p { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.freebar p strong { color: var(--brand-700); }

.drawer__body { flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.cart-empty { text-align: center; color: var(--muted); padding: 64px 20px; }
.cart-empty svg { width: 42px; height: 42px; color: var(--line-2); margin: 0 auto 12px; }
.cart-empty p { font-weight: 700; color: var(--ink); }
.cart-empty small { font-size: 12px; }

.citem { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px; }
.citem__media { width: 52px; height: 52px; border-radius: 10px; background: var(--t, var(--bg-soft)); display: grid; place-items: center; font-size: 26px; }
.citem__name { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.citem__unit { font-size: 11px; color: var(--faint); }
.citem__price { font-size: 12.5px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.citem .stepper { transform: scale(.92); transform-origin: right; }

.drawer__foot { background: #fff; border-top: 1px solid var(--line); padding: 16px 20px; }
.bill { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.bill__row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.bill__row span:last-child { font-weight: 700; color: var(--ink); }
.bill__row--free span:last-child { color: var(--brand-600); }
.bill__row--total { border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 3px; font-size: 15px; font-weight: 800; color: var(--ink); }
.bill__row--total span:last-child { color: var(--brand-800); }

/* ============================================================
   Checkout modal
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; background: rgba(15,35,22,.5); }
.modal.is-open { display: flex; animation: fade .2s var(--ease); }
.modal__card { width: min(520px, 100%); background: var(--bg-soft); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-3); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 17px; font-weight: 800; }
.modal__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }

.fs { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.fs legend { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); padding: 0 6px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.field:first-of-type { margin-top: 4px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  border: 1.5px solid var(--line-2); border-radius: var(--radius-xs);
  padding: 10px 12px; background: var(--bg-soft); outline: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-050); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.radio { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-top: 9px; border: 1.5px solid var(--line-2); border-radius: var(--radius-xs); background: var(--bg-soft); font-size: 13.5px; font-weight: 600; transition: border-color .14s, background .14s; }
.radio:first-of-type { margin-top: 4px; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-050); }
.radio input { accent-color: var(--brand); width: 16px; height: 16px; }
.radio small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.note { font-size: 11.5px; color: var(--muted); margin-top: 10px; }

.success { padding: 40px 26px; text-align: center; }
.success__tick { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px var(--brand-050); }
.success h3 { font-size: 20px; font-weight: 800; }
.success p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.success__eta { display: inline-flex; align-items: center; gap: 7px; background: var(--brand-050); color: var(--brand-800) !important; border-radius: var(--radius-xs); padding: 10px 14px; font-weight: 700; }
.success .btn { margin-top: 20px; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 140%);
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-3); z-index: 90;
  visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s;
  max-width: calc(100% - 40px);
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .pgrid { grid-template-columns: repeat(4, 1fr); }
  .ctiles { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__promos { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .props { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .header__row { grid-template-columns: auto 1fr auto; row-gap: 12px; }
  .search2 { grid-column: 1 / -1; order: 3; }
  .loc small { display: none; }
}
@media (max-width: 760px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .ctiles { grid-template-columns: repeat(4, 1fr); }
  .hero__card { padding: 34px 28px; }
  .pcard__emoji { font-size: 46px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 28px); }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .ctiles { grid-template-columns: repeat(3, 1fr); }
  .hero__promos { grid-template-columns: 1fr; }
  .section__head h2 { font-size: 17px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bar { flex-direction: column; gap: 14px; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .brand__logo { height: 46px; }
  .loc { display: none; }
  .cart2 { padding: 9px 12px; }
  .cart2__meta { flex-direction: row; gap: 5px; align-items: baseline; }
}

/* ============================================================
   Account / Google sign-in
   ============================================================ */
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); background: var(--bg-soft); }

/* header avatar state */
#loginBtn.is-authed { border-color: var(--brand-100); padding: 0; overflow: hidden; background: var(--brand-050); }
.loginBtn__avatar {
  width: 100%; height: 100%;
  object-fit: cover;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: var(--brand-700);
}

.modal__card--sm { width: min(400px, 100%); }

.acct__welcome { text-align: center; }
.acct__welcome img { width: 84px; margin: 4px auto 12px; }
.acct__welcome p { font-size: 14px; color: var(--muted); max-width: 30ch; margin: 0 auto; }

.acct__me { display: flex; align-items: center; gap: 14px; }
.acct__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; flex: none;
  display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-700);
  font-size: 17px; font-weight: 800;
}
.acct__id { display: flex; flex-direction: column; min-width: 0; }
.acct__id strong { font-size: 15px; font-weight: 800; }
.acct__id span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acct__note { font-size: 11.5px; color: var(--faint); text-align: center; }

.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: 11px;
  padding: 13px 18px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.gbtn:hover { border-color: var(--brand-100); box-shadow: var(--shadow-1); }
.gbtn:disabled { opacity: .6; }
.gbtn svg { flex: none; }

/* ---------- location sheet ---------- */
.loc-gps {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: 13px 14px; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.loc-gps:hover { border-color: var(--brand-100); box-shadow: var(--shadow-1); }
.loc-gps:disabled { opacity: .6; }
.loc-gps__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-050); color: var(--brand-700); flex: none; }
.loc-gps__body { flex: 1; display: flex; flex-direction: column; }
.loc-gps__body b { font-size: 14px; font-weight: 800; }
.loc-gps__body small { font-size: 11.5px; color: var(--faint); }
.loc-or { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--faint); font-weight: 600; margin: 4px 0; }
.loc-or span { flex: 1; height: 1px; background: var(--line); }

/* ---------- account: profile edit ---------- */
.acct__form { display: flex; flex-direction: column; gap: 10px; }
.acct__form .field span { font-size: 12px; font-weight: 700; color: var(--muted); }
.acct__form .field { margin: 0; }
.acct__row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
}
.acct__row:hover { border-color: var(--brand-100); }
.acct__row span { flex: 1; font-size: 13px; font-weight: 700; }
.acct__row span small { font-weight: 500; color: var(--faint); font-size: 11.5px; }
.acct__row em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--brand-700); }
.acct__sec { border-top: 1px solid var(--line); padding-top: 14px; }
.acct__sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.acct__sec-head h3 { font-size: 13px; font-weight: 800; }
.acct__sec-head button { font-size: 12.5px; font-weight: 800; color: var(--brand-700); }
.addrlist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.addr { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; }
.addr__body { flex: 1; display: flex; flex-direction: column; }
.addr__body b { font-size: 12.5px; }
.addr__body span { font-size: 11.5px; color: var(--muted); }
.addr__def { font-size: 9px; font-weight: 800; color: var(--brand-700); background: var(--brand-050); border-radius: 5px; padding: 1px 5px; text-transform: uppercase; }
.addr__actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.addr__actions button { font-size: 11px; font-weight: 800; color: var(--brand-700); }
.addr__actions .addr__rm { color: var(--accent); }
.addr__empty { font-size: 12px; color: var(--faint); }
