/* ============================================================
   zhookaffie · app.css — app shell + views + buddy
   Gen-Z sticker treatment inside locked brand tokens.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: calc(var(--tabbar-h) + var(--sab));
  overscroll-behavior-y: none;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; width: 100%; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  padding-top: var(--sat);
}
.topbar-in {
  display: flex; align-items: center; gap: 10px;
  height: var(--topbar-h);
  max-width: var(--wrap); margin: 0 auto; padding: 0 14px;
}
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { height: 46px; width: auto; } /* +3 sizes per client */
.searchbox {
  flex: 1 1 auto; display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  box-shadow: var(--pop);
  color: var(--ink-60); text-align: left;
  min-width: 0;
  transition: transform .15s var(--snap);
}
.searchbox:active { transform: scale(.97); }
.searchbox .ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.iconbtn {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  box-shadow: var(--pop);
  transition: transform .15s var(--snap);
}
.iconbtn:active { transform: scale(.92); }

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--ink); color: var(--on-ink);
  border-top: 2px solid var(--ink);
  padding-bottom: var(--sab);
}
.tabbar-in {
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 560px; margin: 0 auto; height: var(--tabbar-h);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: rgba(255, 247, 240, .66);
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  position: relative; border-radius: 12px;
  transition: color .2s var(--ease), transform .15s var(--snap);
}
.tab svg { width: 23px; height: 23px; }
.tab:active { transform: scale(.9); }
.tab[aria-current="page"] { color: var(--on-ink); }
.tab[aria-current="page"]::after {
  content: ""; position: absolute; top: 4px; right: calc(50% - 17px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.tab .cartn {
  position: absolute; top: 3px; right: calc(50% - 22px);
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
}

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  box-shadow: var(--pop-2);
  transition: transform .15s var(--snap), box-shadow .15s var(--ease);
}
.btn:active { transform: translate(2px, 3px); box-shadow: 0 1px 0 var(--ink); }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.inkbtn { background: var(--ink); color: var(--on-ink); }
.btn.sm { padding: 8px 16px; font-size: 14px; box-shadow: var(--pop); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  white-space: nowrap;
  transition: transform .12s var(--snap), background .15s var(--ease);
}
.chip:active { transform: scale(.94); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.chiprow { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }

/* ---------- sticker bits ---------- */
.sticker {
  display: inline-block; padding: 6px 14px;
  background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  box-shadow: var(--pop);
  transform: rotate(-3deg);
}
.sticker.alt { background: var(--surface); color: var(--ink); transform: rotate(2deg); }
.paw-dot { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink); color: var(--on-ink);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  overflow: hidden; white-space: nowrap;
  padding: 9px 0;
}
.marquee-track { display: inline-block; animation: marq 22s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase;
  margin: 0 14px;
}
.marquee .paw-dot { color: var(--accent); margin: 0 2px; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { padding: 30px 0 24px; position: relative; overflow: hidden; }
.hero h1 {
  font-size: clamp(34px, 8.5vw, 64px);
  font-weight: 800;
  max-width: 13ch;
}
.hero h1 .hl { color: var(--accent); }
.hero .sub { color: var(--ink-60); font-size: clamp(15px, 4vw, 18px); max-width: 46ch; margin: 12px 0 0; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero .stickers { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
@media (min-width: 700px) {
  .hero .stickers { position: absolute; top: 18px; right: 6px; flex-direction: column; align-items: flex-end; margin: 0; }
}
.hero-paw { position: absolute; right: -70px; bottom: -90px; width: 240px; opacity: .1; pointer-events: none; }

/* ---------- sections ---------- */
.sec { padding: 26px 0 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(22px, 5.5vw, 30px); font-weight: 800; }
.sec-head .more { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent); }

/* line cards */
.lines { display: grid; gap: 14px; }
@media (min-width: 760px) { .lines { grid-template-columns: repeat(3, 1fr); } }
.linecard {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--pop-2);
  padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .18s var(--snap), box-shadow .18s var(--ease);
  color: var(--ink);
}
.linecard:active { transform: translate(2px, 3px); box-shadow: var(--pop); }
.linecard .lc-paw { width: 38px; height: 38px; color: var(--accent); }
.linecard h3 { font-size: 20px; font-weight: 800; }
.linecard p { margin: 0; color: var(--ink-60); font-size: 14px; }
.linecard .lc-go { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 14px; margin-top: 6px; }
.linecard.k { background: var(--accent-soft); }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 920px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 158px; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.pcard {
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop-2);
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.pcard .ptile {
  height: 86px; border-radius: var(--r-xs);
  background: var(--accent-soft);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.pcard .ptile svg { width: 40px; height: 40px; color: var(--accent); opacity: .8; }
.ptile .pimg, .ctile .pimg, .stile .pimg, .bp-tile .pimg {
  width: 100%; height: 100%; object-fit: contain; border-radius: inherit; display: block;
  background: #fff; /* square thumbs sit on white — full product always visible */
}
.ctile, .stile, .bp-tile { overflow: hidden; }
.pcard .ptile:has(.pimg) { background: #fff; border: 1.5px solid var(--line); }
.pcard .best {
  position: absolute; top: 6px; left: 6px;
  background: var(--ink); color: var(--on-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 10px;
  padding: 3px 9px; border-radius: var(--r-pill);
  transform: rotate(-4deg);
}
.pcard .veg {
  position: absolute; top: 6px; right: 6px;
  width: 16px; height: 16px;
  background: var(--surface);
  border: 2px solid var(--veg); border-radius: 4px;
  display: grid; place-items: center;
}
.pcard .veg::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--veg); }
.pcard .pname { font-weight: 500; font-size: 13.5px; line-height: 1.3; min-height: 2.6em; }
.pcard .prow { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.pcard .price { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.pcard .price .unit { font-family: var(--font-body); font-weight: 400; font-size: 10.5px; color: var(--ink-60); display: block; line-height: 1; }
.addbtn {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: var(--pop);
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  transition: transform .12s var(--snap);
}
.addbtn:active { transform: scale(.88); }
.stepper {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--ink); color: var(--on-ink);
  border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: var(--pop);
  overflow: hidden; height: 34px;
}
.stepper button { width: 30px; height: 100%; color: var(--on-ink); font-family: var(--font-display); font-weight: 800; font-size: 16px; display: grid; place-items: center; }
.stepper .qv { min-width: 22px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; }

/* ---------- print rate card ---------- */
.rates { display: flex; flex-direction: column; gap: 10px; }
.rate {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop);
  padding: 12px 14px;
}
.rate .ricon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; background: var(--accent-soft); border-radius: 10px; color: var(--accent); }
.rate .ricon svg { width: 22px; height: 22px; }
.rate .rname { font-weight: 500; font-size: 14.5px; flex: 1; }
.rate .rprice { font-family: var(--font-display); font-weight: 800; font-size: 16px; white-space: nowrap; }
.rate .rprice small { font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--ink-60); display: block; text-align: right; }
.howto { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 760px) { .howto { grid-template-columns: repeat(3, 1fr); } }
.how {
  background: var(--accent-soft);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 14px; font-size: 14px;
}
.how b { font-family: var(--font-display); font-size: 15px; display: block; margin-bottom: 2px; }
.how .n { display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--ink); color: var(--on-ink); border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 13px; margin-bottom: 8px; }

/* ---------- cart ---------- */
.cartlist { display: flex; flex-direction: column; gap: 10px; }
.citem {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop);
  padding: 10px 12px;
}
.citem .ctile { width: 46px; height: 46px; flex: 0 0 auto; background: var(--accent-soft); border-radius: 10px; display: grid; place-items: center; color: var(--accent); }
.citem .ctile svg { width: 24px; height: 24px; }
.citem .cinfo { flex: 1; min-width: 0; }
.citem .cname { font-weight: 500; font-size: 14px; line-height: 1.3; }
.citem .cprice { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink-60); }
.totalcard {
  margin-top: 16px;
  background: var(--ink); color: var(--on-ink);
  border-radius: var(--r-lg);
  border: 2px solid var(--ink);
  box-shadow: var(--pop-2);
  padding: 18px;
}
.totalcard .trow { display: flex; justify-content: space-between; font-size: 14.5px; padding: 3px 0; }
.totalcard .trow.big { font-family: var(--font-display); font-weight: 800; font-size: 20px; padding-top: 8px; }
.totalcard .note { font-size: 12px; color: rgba(255, 247, 240, .65); margin: 8px 0 14px; }
.notefield {
  width: 100%; margin-top: 14px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 12px 14px; font-size: 16px; /* iOS zoom guard */
}
.empty { text-align: center; padding: 44px 16px; }
.empty svg { width: 74px; height: 74px; margin: 0 auto 12px; color: var(--accent); opacity: .55; }
.empty h3 { font-size: 22px; font-weight: 800; }
.empty p { color: var(--ink-60); font-size: 14.5px; }

/* ---------- visit / about ---------- */
.infocard {
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--pop-2);
  padding: 18px;
  margin-bottom: 14px;
}
.infocard h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.infocard p { margin: 4px 0; font-size: 14.5px; color: var(--ink-60); }
.infocard .big { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.hourrow { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 7px 0; font-size: 14.5px; }
.hourrow:last-child { border: 0; }
.hourrow b { font-family: var(--font-display); }

/* ---------- footer ---------- */
.foot { margin-top: 34px; border-top: 2px solid var(--ink); background: var(--surface); padding: 24px 0 30px; }
.foot .frow { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.foot .legal { font-size: 12px; color: var(--ink-40); margin-top: 14px; }
.foot img { height: 30px; }

/* ---------- search overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--cream);
  display: flex; flex-direction: column;
  padding-top: var(--sat);
  animation: ovin .22s var(--ease);
}
@keyframes ovin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ov-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 2px solid var(--ink); }
.ov-input {
  flex: 1; height: 46px; padding: 0 16px;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  box-shadow: var(--pop);
  font-size: 16px;
}
.ov-body { flex: 1; overflow-y: auto; padding: 14px; max-width: var(--wrap); margin: 0 auto; width: 100%; }
.ov-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-60); margin: 12px 0 8px; }
.sres {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop);
  padding: 10px 12px; margin-bottom: 9px;
}
.sres .stile { width: 42px; height: 42px; flex: 0 0 auto; background: var(--accent-soft); border-radius: 10px; display: grid; place-items: center; color: var(--accent); }
.sres .stile svg { width: 22px; height: 22px; }
.sres .sinfo { flex: 1; min-width: 0; }
.sres .sname { font-weight: 500; font-size: 14px; }
.sres .scat { font-size: 12px; color: var(--ink-60); }
.sres .sprice { font-family: var(--font-display); font-weight: 800; font-size: 15px; white-space: nowrap; }

/* ---------- toasts ---------- */
.toasts {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--sab) + 14px);
  z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: min(94vw, 480px); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--on-ink);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  box-shadow: var(--pop-2);
  padding: 10px 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  pointer-events: auto;
  animation: tin .25s var(--snap);
}
@keyframes tin { from { opacity: 0; transform: translateY(12px) scale(.92); } to { opacity: 1; transform: none; } }
.toast button { color: var(--accent); font-family: var(--font-display); font-weight: 800; }

/* ---------- install banner ---------- */
.install {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--sab) + 14px);
  z-index: 110;
  width: min(94vw, 440px);
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--pop-3);
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: center;
  animation: tin .3s var(--snap);
}
.install img { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); }
.install .it { flex: 1; font-size: 13.5px; }
.install .it b { font-family: var(--font-display); font-size: 15px; display: block; }

/* ---------- buddy ---------- */
.buddy-fab {
  position: fixed; right: 14px;
  bottom: calc(var(--tabbar-h) + var(--sab) + 16px);
  z-index: 100;
  display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--on-ink);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  box-shadow: var(--pop-2);
  padding: 9px 16px 9px 11px;
  transition: transform .16s var(--snap);
}
.buddy-fab:active { transform: scale(.93); }
.buddy-fab .bf-paw { width: 26px; height: 26px; color: var(--accent); }
.buddy-fab .bf-label { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.buddy-fab .bf-dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--cream); }

.buddy-panel {
  position: fixed; z-index: 130;
  right: 10px; left: 10px;
  bottom: calc(var(--sab) + 10px);
  top: calc(var(--sat) + 56px);
  background: var(--cream);
  border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--pop-3);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: ovin .24s var(--ease);
}
@media (min-width: 560px) {
  .buddy-panel { left: auto; width: 400px; top: auto; height: min(640px, calc(100vh - 110px)); }
}
.bd-head {
  display: flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--on-ink);
  padding: 13px 14px;
}
.bd-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); border: 2px solid var(--cream); display: grid; place-items: center; color: #fff; }
.bd-ava svg { width: 22px; height: 22px; }
.bd-title { flex: 1; line-height: 1.2; }
.bd-title b { font-family: var(--font-display); font-size: 16px; display: block; }
.bd-title small { font-size: 11.5px; color: rgba(255, 247, 240, .72); display: flex; align-items: center; gap: 5px; }
.bd-title .bd-on { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.bd-x { width: 34px; height: 34px; display: grid; place-items: center; color: var(--on-ink); font-size: 21px; border-radius: 10px; }
.bd-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.bd-m { max-width: 86%; padding: 10px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 1.5; }
.bd-m.bot { align-self: flex-start; background: var(--surface); border: 2px solid var(--ink); border-bottom-left-radius: 6px; box-shadow: var(--pop); }
.bd-m.bot b { font-family: var(--font-display); }
.bd-m.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border: 2px solid var(--ink); border-bottom-right-radius: 6px; box-shadow: var(--pop); }
.bd-m.typing { display: inline-flex; gap: 5px; align-items: center; }
.bd-m.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-40); animation: bd-b 1.1s infinite; }
.bd-m.typing i:nth-child(2) { animation-delay: .18s; }
.bd-m.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes bd-b { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.bd-prod {
  align-self: flex-start; width: 88%;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.bd-prod .bp-tile { width: 38px; height: 38px; flex: 0 0 auto; background: var(--accent-soft); border-radius: 9px; display: grid; place-items: center; color: var(--accent); }
.bd-prod .bp-tile svg { width: 20px; height: 20px; }
.bd-prod .bp-info { flex: 1; min-width: 0; }
.bd-prod .bp-name { font-size: 13px; font-weight: 500; line-height: 1.25; }
.bd-prod .bp-price { font-family: var(--font-display); font-weight: 800; font-size: 13.5px; }
.bd-prod .bp-add {
  flex: 0 0 auto; padding: 7px 13px;
  background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  box-shadow: var(--pop);
}
.bd-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 12px 10px; }
.bd-chip {
  padding: 7px 13px;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  box-shadow: var(--pop);
  transition: transform .12s var(--snap);
}
.bd-chip:active { transform: scale(.93); }
.bd-foot { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--sab)); border-top: 2px solid var(--ink); background: var(--cream); }
.bd-input {
  flex: 1; height: 44px; padding: 0 15px;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  font-size: 16px; /* iOS zoom guard */
  min-width: 0;
}
.bd-send {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--ink); border-radius: 50%;
  box-shadow: var(--pop);
}
.bd-send svg { width: 19px; height: 19px; }

/* ---------- skeleton ---------- */
.skel { border-radius: var(--r-md); background: linear-gradient(100deg, var(--ink-06) 40%, var(--accent-12) 50%, var(--ink-06) 60%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border: 2px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- top nav · get-the-app · sign-in (Swiggy-style header) ---------- */
.topnav, .getapp, .signin-pill { display: none; }
@media (min-width: 920px) {
  .topnav { display: flex; gap: 2px; margin: 0 4px; }
  .topnav-link {
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
    padding: 8px 12px; border-radius: var(--r-pill); color: var(--ink);
    transition: color .15s var(--ease), transform .12s var(--snap);
  }
  .topnav-link:hover { color: var(--accent); }
  .topnav-link:active { transform: scale(.95); }
  .getapp {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--surface); color: var(--ink);
    border: 2px solid var(--ink); border-radius: var(--r-pill);
    padding: 9px 16px;
    font-family: var(--font-display); font-weight: 700; font-size: 14px;
    box-shadow: var(--pop); white-space: nowrap;
    transition: transform .12s var(--snap);
  }
  .getapp:active { transform: scale(.95); }
  .signin-pill {
    display: inline-block;
    background: var(--ink); color: var(--on-ink);
    border: 2px solid var(--ink); border-radius: var(--r-pill);
    padding: 10px 22px;
    font-family: var(--font-display); font-weight: 700; font-size: 14px;
    box-shadow: var(--pop); white-space: nowrap;
    transition: transform .12s var(--snap);
  }
  .signin-pill:active { transform: scale(.95); }
  .iconbtn.acct { display: none; }
}
@media (max-width: 359px) {
  .brand img { height: 38px; }
  .iconbtn { width: 38px; height: 38px; }
  .searchbox { height: 38px; padding: 0 11px; }
}
/* tap responsiveness across android/ios — no 300ms double-tap zoom delay */
button, a, .chip, .tab, input, .searchbox { touch-action: manipulation; }

/* ---------- hero dual inputs (location + search) ---------- */
.hero-inputs { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 4px; max-width: 880px; }
@media (min-width: 760px) {
  .hero-inputs { flex-direction: row; }
  .locwrap { flex: 0 0 300px; }
  .hsearch { flex: 1; }
}
.locwrap { position: relative; }
.loc {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop);
  height: 56px; padding: 0 14px;
  text-align: left;
}
.loc .pin { color: var(--accent); flex: 0 0 auto; }
.loc-label { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; line-height: 1.15; min-width: 0; }
.loc-label small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--ink-60); }
.loc-caret { transition: transform .2s var(--ease); flex: 0 0 auto; }
.loc[aria-expanded="true"] .loc-caret { transform: rotate(180deg); }
.loc-menu {
  position: absolute; top: calc(100% + 8px); left: -2px; right: -2px; z-index: 40;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop-2);
  padding: 8px;
  animation: tin .2s var(--snap);
}
.loc-item { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px; font-size: 14px; }
.loc-item b { font-family: var(--font-display); display: block; font-size: 14.5px; }
.loc-item small { color: var(--ink-60); font-size: 12px; }
.loc-item:not([disabled]):hover { background: var(--accent-soft); }
.loc-item[disabled] { opacity: .55; cursor: not-allowed; }
.hsearch {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--ink-60);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop);
  height: 56px; padding: 0 16px;
  font-size: 15.5px; text-align: left;
  transition: transform .15s var(--snap);
}
.hsearch:active { transform: scale(.985); }
.hsearch .hs-q { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsearch svg { flex: 0 0 auto; }

/* ---------- mascot scene ---------- */
.mascots { margin: 18px auto 0; max-width: 880px; }
.mascots svg { width: 100%; height: auto; display: block; }
.bob { animation: bob 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bob.b2 { animation-delay: .9s; }
.bob.b3 { animation-delay: 1.7s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- auth drawer (right slide-in) ---------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(43, 16, 13, .58);
  animation: fadein .25s var(--ease);
}
@keyframes fadein { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(440px, 100vw);
  background: var(--cream);
  border-left: 2px solid var(--ink);
  padding: calc(18px + var(--sat)) 26px calc(24px + var(--sab));
  overflow-y: auto;
  animation: din .28s var(--ease);
}
@keyframes din { from { transform: translateX(48px); opacity: 0; } }
.drawer-x { width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; border-radius: 10px; margin-left: -8px; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin: 10px 0 24px; }
.drawer-head h2 { font-size: 32px; font-weight: 800; }
.drawer-head .alt { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-60); }
.drawer-rule { display: block; width: 38px; height: 3px; background: var(--ink); margin-top: 16px; }
.drawer-art {
  flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent-soft); border: 2px solid var(--ink);
  display: grid; place-items: center; color: var(--accent);
}
.drawer-art svg { width: 48px; height: 48px; }
.linklike { color: var(--accent); font-weight: 700; padding: 0; display: inline; font-size: inherit; font-family: inherit; }
.googlebtn {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 11px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  box-shadow: var(--pop-2);
  transition: transform .15s var(--snap), box-shadow .15s var(--ease);
}
.googlebtn:active { transform: translate(2px, 3px); box-shadow: 0 1px 0 var(--ink); }
.drawer-note { font-size: 13.5px; color: var(--ink-60); margin: 16px 0 0; line-height: 1.55; }
.drawer-legal { font-size: 12.5px; color: var(--ink-60); margin: 20px 0 0; border-top: 1px dashed var(--line); padding-top: 14px; }
.drawer-store { font-size: 13px; color: var(--ink-60); margin: 16px 0 0; background: var(--accent-soft); border-radius: var(--r-md); padding: 11px 14px; }
.field { display: block; margin-bottom: 13px; }
.field-label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.field-label small { font-family: var(--font-body); font-weight: 400; color: var(--ink-60); }
.field input {
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 13px 14px; font-size: 16px; /* ≥16px: iOS Safari zooms on focus below this */
}
.field-err { color: var(--accent); font-weight: 700; font-size: 13.5px; margin: 2px 0 10px; }
.drawer-cta { width: 100%; margin-top: 4px; }
.drawer-success { text-align: center; padding: 26px 6px; }
.drawer-success svg { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--accent); }
.drawer-success h3 { font-size: 21px; font-weight: 800; }
.drawer-success p { color: var(--ink-60); font-size: 14px; }

/* ---------- cookie consent (DPDP) ---------- */
.consent {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--sab) + 12px);
  z-index: 115;
  width: min(94vw, 560px);
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--pop-3);
  padding: 16px 18px;
  animation: tin .3s var(--snap);
}
.c-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; margin: 0 0 6px; }
.c-body { font-size: 13.5px; color: var(--ink-60); margin: 0 0 12px; line-height: 1.5; }
.c-opts { display: flex; flex-direction: column; gap: 9px; background: var(--accent-soft); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 12px; }
.c-opt { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; }
.c-opt input { accent-color: var(--accent); margin-top: 2px; }
.c-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- legal views ---------- */
.legal .infocard { margin-bottom: 14px; }
.legal h3 { display: flex; align-items: center; gap: 8px; }
.legal p, .legal li { font-size: 14px; color: var(--ink-60); line-height: 1.6; }
.legal ul { margin: 6px 0; padding-left: 20px; }
.legal .eff { font-size: 12.5px; color: var(--ink-40); }
.legal .hourrow b { font-size: 13.5px; }

/* ---------- footer columns ---------- */
.fcols { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 760px) { .fcols { grid-template-columns: 1.4fr 1fr 1fr; } }
.fcol h4 { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
.flink { display: block; text-align: left; padding: 4px 0; font-size: 14px; color: var(--ink-60); transition: color .15s var(--ease); }
.flink:hover { color: var(--accent); }
.bottombar { border-top: 2px solid var(--ink); margin-top: 22px; padding-top: 14px; font-size: 12.5px; color: var(--ink-40); line-height: 1.7; }
.bottombar b { color: var(--ink-60); }

/* ---------- hero v2: rotor, stats ---------- */
.rotor-clip { display: inline-block; overflow: hidden; vertical-align: bottom; }
.rotor { display: inline-block; }
.rotor.roll { animation: rollin .45s var(--snap); }
@keyframes rollin { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  box-shadow: var(--pop);
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
}
.stat:nth-child(2) { transform: rotate(-1.5deg); background: var(--accent-soft); }
.stat:nth-child(3) { transform: rotate(1.2deg); }
.tw { animation: twinkle 2.6s ease-in-out infinite; }
.tw.t2 { animation-delay: .8s; }
.tw.t3 { animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: .12; } 50% { opacity: .5; } }
.bub { animation: bubpop .5s var(--snap) both; }
.bub.b2 { animation-delay: .35s; }
.bub.b3 { animation-delay: .7s; }
@keyframes bubpop { from { opacity: 0; transform: translateY(8px) scale(.8); } to { opacity: 1; transform: none; } }

/* ---------- fulfillment card ---------- */
.fulfil {
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--pop-2);
  padding: 16px;
  margin-top: 16px;
}
.fulfil h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.fmode { display: flex; gap: 8px; flex-wrap: wrap; }
.faddr { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.faddr input, .faddr-row input {
  width: 100%;
  background: var(--cream);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 12px 14px;
}
.faddr-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; }
.floc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fzone { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fz-label { font-size: 13px; color: var(--ink-60); }
.fquote {
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-size: 13.5px; line-height: 1.5;
}
.fquote.blocked { background: var(--ink); color: var(--on-ink); }
.fquote.blocked .linklike { color: var(--accent); }
.fnote { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-60); }

/* ---------- buddy print desk ---------- */
.bd-attach {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 50%;
  box-shadow: var(--pop);
  transition: transform .12s var(--snap);
}
.bd-attach:active { transform: scale(.9); }
.bd-attach svg { width: 19px; height: 19px; }
.bd-chip.on { background: var(--ink); color: var(--on-ink); }
.bd-job {
  align-self: flex-start; width: 94%;
  background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--pop);
  padding: 12px;
}
.bj-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.bj-ico { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; background: var(--accent-soft); border-radius: 10px; font-size: 18px; }
.bj-meta { min-width: 0; }
.bj-meta b { font-family: var(--font-display); font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bj-meta small { color: var(--ink-60); font-size: 11.5px; }
.bj-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.bj-label { font-family: var(--font-display); font-weight: 700; font-size: 12px; min-width: 46px; }
.bj-est { font-size: 13px; background: var(--accent-soft); border-radius: 9px; padding: 7px 11px; margin: 4px 0 8px; }
.bj-privacy { font-size: 11.5px; color: var(--ink-60); margin-bottom: 10px; }
.bj-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- job tracker timeline ---------- */
.trackcard h3 { word-break: break-all; }
.steps { display: flex; align-items: flex-start; margin: 16px 0 6px; }
.step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--ink-40);
  transition: background .3s, border-color .3s;
}
.step.done .step-dot { background: var(--accent); border-color: var(--ink); }
.step.now .step-dot { background: var(--accent); border-color: var(--ink); box-shadow: 0 0 0 5px var(--accent-22); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(235, 81, 11, .08); } }
.step-label { font-family: var(--font-display); font-weight: 700; font-size: 10.5px; text-align: center; color: var(--ink-60); line-height: 1.25; }
.step.done .step-label, .step.now .step-label { color: var(--ink); }
.step-bar { flex: 0 1 26px; height: 3px; background: var(--line); margin-top: 8px; border-radius: 2px; min-width: 6px; }
.track-note { font-size: 12.5px; color: var(--ink-60); background: var(--accent-soft); border-radius: var(--r-md); padding: 9px 12px; margin: 10px 0 0 !important; }

/* ---------- iOS add-to-home-screen sheet ---------- */
.a2hs {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(43, 16, 13, .58);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadein .25s var(--ease);
}
.a2hs-card {
  width: min(480px, 100%);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 22px 22px calc(22px + var(--sab));
  animation: tin .3s var(--snap);
}
.a2hs-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.a2hs-card ol { margin: 0 0 16px; padding-left: 22px; }
.a2hs-card li { font-size: 14.5px; padding: 4px 0; color: var(--ink-60); }
.a2hs-card li b { color: var(--ink); }

/* ---------- desktop niceties ---------- */
@media (min-width: 920px) {
  .hero { padding: 56px 0 36px; }
  .topbar-in { height: 80px; }
  .brand img { height: 56px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}
