@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&display=swap');
/* ==========================================================
   BHOZO — online ordering (customer site + delivery partner portal)
   Same palette as the rest of BHOZO: cloche green, fork orange, warm paper.
   Built mobile-first, app-like: top bar + bottom tab bar, no clutter.
   ========================================================== */

:root {
  --green:      #12693c;
  --green-dark: #0b4a2a;
  --green-soft: #e6f2ea;
  --orange:     #ea6a1e;
  --orange-soft:#fdeee2;
  --amber:      #e8a33d;
  --paper:      #f7f4ee;
  --card:       #ffffff;
  --ink:        #1c1a17;
  --muted:      #6d675f;
  --line:       #e7e2d8;
  --danger:     #c0392b;
  --danger-soft:#fbeae7;
  --radius:     16px;
  --shadow:     0 1px 2px rgba(28,26,23,.06), 0 8px 24px rgba(28,26,23,.06);
  --tap:        46px;
  --safe-b:     env(safe-area-inset-bottom, 0px);
  --bar-h:      64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: rgba(234,106,30,.15); }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  overscroll-behavior-y: contain;
  padding-bottom: calc(var(--bar-h) + 14px + var(--safe-b));
}
body.no-tabbar { padding-bottom: 0; }

a { color: var(--green); text-decoration: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; display: block; }

/* ---------------------------------------------------------- app top bar */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: rgba(247,244,238,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .back {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink); background: var(--card); border: 1px solid var(--line); flex: none;
}
.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green-dark); }
.topbar .brand img { height: 30px; width: auto; }
.topbar h1 { font-size: 18px; margin: 0; flex: 1; }
.topbar .cart-link {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green-soft); color: var(--green-dark); flex: none;
}
.topbar .cart-link svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px;
  text-align: center; border-radius: 10px; border: 2px solid var(--paper);
}

/* ---------------------------------------------------------- shell / wrap */

.wrap { max-width: 1040px; margin: 0 auto; padding: 14px 14px 10px; }
.wrap.narrow { max-width: 480px; }

.alert { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.alert.ok   { background: var(--green-soft); color: var(--green-dark); }
.alert.err  { background: var(--danger-soft); color: var(--danger); }
.alert.warn { background: var(--orange-soft); color: #7a3b0e; }

.page-title { font-size: 20px; font-weight: 800; margin: 4px 0 14px; color: var(--green-dark); }
.page-title small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 4px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}
.empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 15px; }

/* ---------------------------------------------------------- category pills */

.cat-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: none; padding: 9px 16px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.cat-pill.on { background: var(--green); border-color: var(--green); color: #fff; }

.search-box { position: relative; margin-bottom: 14px; }
.search-box input {
  width: 100%; padding: 12px 14px 12px 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); font-size: 15px; min-height: var(--tap);
}
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }

/* ---------------------------------------------------------- product grid */

.prod-sec-title { font-size: 15px; font-weight: 800; color: var(--green-dark); margin: 18px 2px 10px; }
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 620px)  { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .prod-grid { grid-template-columns: repeat(4, 1fr); } }

.prod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.prod-img {
  aspect-ratio: 4/3; background: var(--green-soft) center/cover no-repeat; position: relative;
  display: grid; place-items: center; color: var(--green);
}
.prod-img svg { width: 34px; height: 34px; opacity: .5; }
.prod-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.prod-desc { font-size: 12px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.prod-price { font-weight: 800; color: var(--green-dark); font-size: 15px; }


/* ---------------------------------------------------------- sticky cart bar */

.cart-bar {
  position: fixed; left: 14px; right: 14px; bottom: calc(var(--bar-h) + 10px + var(--safe-b)); z-index: 35;
  background: var(--green); color: #fff; border-radius: 14px; padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between; box-shadow: 0 10px 28px rgba(11,74,42,.35);
  max-width: 1012px; margin: 0 auto;
}
.cart-bar .l { font-size: 13px; opacity: .9; }
.cart-bar .amt { font-size: 16px; font-weight: 800; }
.cart-bar .go { display: flex; align-items: center; gap: 6px; font-weight: 700; }

/* ---------------------------------------------------------- cart / checkout list rows */

.cart-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row:last-child { border-bottom: none; }
.cart-thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--green-soft) center/cover no-repeat; flex: none; }
.cart-info { flex: 1; min-width: 0; }
.cart-info .nm { font-weight: 700; font-size: 14px; }
.cart-info .pr { color: var(--muted); font-size: 13px; }
.cart-remove { color: var(--danger); font-size: 13px; font-weight: 600; background: none; border: none; padding: 4px; }

.totals-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--muted); }
.totals-row.grand { font-size: 17px; font-weight: 800; color: var(--ink); border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }

/* ---------------------------------------------------------- forms */

label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number],
textarea, select {
  width: 100%; min-height: var(--tap); padding: 10px 13px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--card); color: var(--ink); font-size: 15px; font-family: inherit;
}
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.field { margin-bottom: 14px; }
.help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.inline-btn-field { display: flex; gap: 8px; }
.inline-btn-field input { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: 12px; border: none;
  background: var(--green); color: #fff; font-weight: 700; font-size: 15px; width: 100%;
}
.btn.orange { background: var(--orange); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13px; width: auto; }
.btn[disabled] { opacity: .5; }

/* ---------------------------------------------------------- auth cards (login/register) */

.auth-shell { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; background: var(--paper); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 26px 22px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-logo img { height: 56px; }
.auth-title { text-align: center; font-size: 19px; font-weight: 800; color: var(--green-dark); margin: 0 0 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.auth-switch { text-align: center; font-size: 14px; margin-top: 16px; color: var(--muted); }
.auth-switch a { font-weight: 700; }

.loc-pick { display: flex; gap: 8px; margin-bottom: 8px; }
.loc-pick button { flex: 1; }

/* ---------------------------------------------------------- order status */

.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.placed, .pill.confirmed { background: var(--orange-soft); color: #7a3b0e; }
.pill.preparing { background: #fff3cd; color: #845a00; }
.pill.out_for_delivery { background: #e3eefd; color: #1a4a8a; }
.pill.delivered { background: var(--green-soft); color: var(--green-dark); }
.pill.cancelled { background: var(--danger-soft); color: var(--danger); }

.order-card { display: block; }
.order-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.order-card .no { font-weight: 800; font-size: 14px; }
.order-card .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 28px; font-size: 14px; color: var(--muted); }
.timeline li::before {
  content: ''; position: absolute; left: 4px; top: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--line); border: 2px solid var(--card);
}
.timeline li::after {
  content: ''; position: absolute; left: 9px; top: 16px; bottom: -6px; width: 2px; background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); font-weight: 700; }
.timeline li.done::before { background: var(--green); }
.timeline li.cur::before { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }

/* ---------------------------------------------------------- bottom tab bar */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + var(--safe-b));
  box-shadow: 0 -4px 18px rgba(28,26,23,.06);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative;
  min-height: var(--tap);
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--green); }
.tabbar a .tb-badge {
  position: absolute; top: 2px; right: calc(50% - 20px); min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--orange); color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; border-radius: 9px;
}

/* ---------------------------------------------------------- misc */

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.thumb-prev { width: 86px; height: 86px; border-radius: 12px; object-fit: cover; margin-bottom: 8px; background: var(--green-soft); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: none; }

.table-scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th, table.list td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }


/* ==========================================================
   HOME / ITEMS / OFFER — food-delivery-app look
   ========================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- top bar on the home page: logo + "Delivering to" ---- */
.topbar .brand img { height: 34px; }
.topbar .loc { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.loc-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.loc-addr { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- search ---- */
.search-box { margin-bottom: 14px; }
.search-box input {
  border-radius: 14px; border: 1px solid var(--line); min-height: 50px; font-size: 15px; padding-left: 44px;
  box-shadow: 0 2px 10px rgba(28,26,23,.05);
}
.search-box svg { left: 15px; width: 20px; height: 20px; }

/* ---- live order strip ---- */
.track-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(120deg, var(--green), var(--green-dark)); color: #fff;
  border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.track-card .tc-l { font-size: 12px; opacity: .85; }
.track-card .tc-s { font-size: 16px; font-weight: 800; }
.track-card .tc-go { background: rgba(255,255,255,.16); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; }

/* ---- banner carousel ---- */
.hero-slider { margin: 0 -14px 6px; }
.hs-track {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 14px 6px;
  scroll-snap-type: x mandatory; scroll-padding: 0 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hs-track::-webkit-scrollbar { display: none; }
.hs-slide {
  position: relative; flex: 0 0 88%; scroll-snap-align: center; aspect-ratio: 16 / 8; border-radius: 20px; overflow: hidden;
  background: var(--green-dark) center / cover no-repeat; display: flex; align-items: flex-end; color: #fff;
  box-shadow: var(--shadow);
}
.hs-slide:only-child { flex-basis: 100%; }
.hs-slide:not(.hs-plain)::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,0) 100%);
}
.hs-caption { position: relative; z-index: 1; padding: 16px 18px; max-width: 70%; }
.hs-caption h2 { margin: 0 0 4px; font-size: 21px; line-height: 1.15; font-weight: 800; }
.hs-caption p { margin: 0; font-size: 13px; opacity: .92; line-height: 1.35; }
.hs-kicker { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; opacity: .85; margin-bottom: 6px; }
.hs-cta {
  display: inline-block; margin-top: 11px; background: var(--orange); color: #fff; border-radius: 999px;
  padding: 7px 15px; font-size: 12.5px; font-weight: 800;
}
.hs-default { background: linear-gradient(135deg, #12693c 0%, #0b4a2a 100%); }
.hs-default::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 190px; height: 190px; border-radius: 50%;
  background: var(--orange); opacity: .9;
}
.hs-default::before {
  content: ''; position: absolute; right: 50px; bottom: -60px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--amber); opacity: .85; background-image: none;
}
.hs-default .hs-caption { z-index: 2; }
.hs-dots { display: flex; justify-content: center; gap: 6px; padding-top: 8px; }
.hs-dots i { width: 6px; height: 6px; border-radius: 3px; background: #cfc8bb; transition: width .25s, background .25s; }
.hs-dots i.on { width: 20px; background: var(--green); }
@media (min-width: 720px) {
  .hs-slide { flex-basis: calc(50% - 6px); aspect-ratio: 16 / 7; }
  .hs-caption h2 { font-size: 26px; }
  .hero-slider { margin: 0 0 6px; }
  .hs-track { padding-left: 0; padding-right: 0; }
}

/* ---- section headings ---- */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 2px 12px; }
.sec-h h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.see-all { font-size: 13px; font-weight: 800; color: var(--green); }

/* ---- category circles ---- */
.cat-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-item { flex: 0 0 78px; text-align: center; color: var(--ink); }
.cat-circle {
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 8px;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  border: 3px solid #fff; box-shadow: 0 4px 12px rgba(28,26,23,.12); color: var(--green);
}
.cat-circle svg { width: 30px; height: 30px; opacity: .8; }
.cat-name { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.25; }

/* ---- horizontal rows + grids of dish cards ---- */
.hscroll {
  display: flex; gap: 12px; overflow-x: auto; margin: 0 -14px; padding: 4px 14px 24px;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > .pc { flex: 0 0 160px; scroll-snap-align: start; }
@media (min-width: 720px) {
  .hscroll { margin: 0; padding-left: 2px; padding-right: 2px; }
  .hscroll > .pc { flex-basis: 196px; }
}
.pc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 12px; padding-bottom: 14px; }
@media (min-width: 620px) { .pc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .pc-grid { grid-template-columns: repeat(4, 1fr); gap: 30px 16px; } }

.pc { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.pc-img {
  position: relative; aspect-ratio: 1 / .82; border-radius: 17px 17px 0 0; background: #eef3ee center / cover no-repeat;
  display: grid; place-items: center; color: var(--green);
}
.pc-img > svg { width: 38px; height: 38px; opacity: .4; }
.pc-flag { position: absolute; top: 9px; left: 9px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 7px; }
.pc-add { position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); z-index: 2; }
.pc-body { padding: 26px 12px 13px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pc-name { font-size: 14.5px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-desc { font-size: 12px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-price { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 800; color: var(--ink); }

/* ADD button + stepper (home, items, offer and cart) */
.qty-btn {
  min-width: 92px; height: 36px; border-radius: 10px; border: 1px solid #dcd6ca; background: #fff; color: var(--green);
  font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 4px 12px rgba(28,26,23,.14);
}
.qty-btn:active { transform: translateY(1px); }
.qty-step {
  display: inline-flex; align-items: center; justify-content: space-between; min-width: 92px; height: 36px;
  border-radius: 10px; background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(11,74,42,.3);
}
.qty-step button { width: 32px; height: 36px; border: 0; background: transparent; color: #fff; font-size: 19px; font-weight: 700; line-height: 1; }
.qty-step span { min-width: 20px; text-align: center; font-weight: 800; font-size: 14px; }
.cart-row .qty-step { box-shadow: none; }

/* ---- Items page chips ---- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 14px; scrollbar-width: none; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 17px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }

/* ---- offer page ---- */
.offer-hero {
  position: relative; aspect-ratio: 16 / 7; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #12693c, #0b4a2a) center / cover no-repeat; color: #fff; box-shadow: var(--shadow);
}
.offer-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.68), rgba(0,0,0,0) 65%); }
.offer-cap { position: relative; z-index: 1; padding: 14px 18px; }
.offer-cap h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.15; }
.offer-cap p { margin: 4px 0 0; font-size: 13px; opacity: .92; }

/* ---- floating cart bar ---- */
.cartbar-gap { display: none; height: 66px; }
.cart-bar:not(.hidden) + .cartbar-gap { display: block; }
.cart-bar { border-radius: 16px; }

/* ---- visit card + footer ---- */
.visit-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0; box-shadow: var(--shadow); }
.visit-card img { height: 54px; width: auto; flex: none; }
.vc-name { font-weight: 800; font-size: 15px; }
.vc-line { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.vc-call { color: var(--green); font-weight: 700; }
.vc-text { min-width: 0; }
.vc-social { display: flex; gap: 10px; margin-top: 10px; }
.vc-social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark); transition: background .15s, color .15s, transform .15s;
}
.vc-social a svg { width: 18px; height: 18px; }
.vc-social a:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.vc-social a.vc-instagram:hover { background: #d6249f; }
.vc-social a.vc-youtube:hover { background: #e62117; }
.vc-social a.vc-facebook:hover { background: #1877f2; }
.home-foot { text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.home-foot a { color: var(--muted); text-decoration: underline; }

/* ---- toast ---- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 84px + var(--safe-b)); transform: translate(-50%, 12px);
  background: #2b2824; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.hs-track { position: relative; }

/* Customer pages: when the content is shorter than the screen, the cafe card sits at the bottom, just above the tab bar. */
body.cust { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.cust > .wrap { flex: 1 0 auto; width: 100%; display: flex; flex-direction: column; }
body.cust > .wrap > * { flex-shrink: 0; }
.vc-wrap { margin-top: auto; padding-top: 28px; }

/* ---------------------------------------------------------- product page + whole-card tap */
.pc-name { color: var(--ink); }
.pc-name::after { content: ''; position: absolute; inset: 0; border-radius: 18px; z-index: 1; }   /* whole card opens the dish page */
.pc-add { z-index: 3; }                                                                          /* ...except the ADD button */
.pc-flag { z-index: 2; pointer-events: none; }

.pd { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.pd-img {
  position: relative; aspect-ratio: 4 / 3; background: #eef3ee center / cover no-repeat; display: grid; place-items: center; color: var(--green);
}
.pd-img > svg { width: 64px; height: 64px; opacity: .35; }
.pd-body { padding: 18px 18px 20px; }
.pd-cat { display: inline-block; background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; letter-spacing: .02em; }
.pd-name { margin: 10px 0 4px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.pd-price { font-size: 22px; font-weight: 800; color: var(--green-dark); }
.pd-h { margin: 20px 0 6px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pd-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.pd-add { margin-top: 20px; }
.pd-add .qty-btn, .pd-add .qty-step { width: 100%; height: 50px; border-radius: 14px; font-size: 15px; }
.pd-add .qty-btn { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(11,74,42,.28); }
.pd-add .qty-step { justify-content: space-between; }
.pd-add .qty-step button { width: 64px; height: 50px; font-size: 24px; }
.pd-add .qty-step span { font-size: 17px; }
@media (min-width: 720px) {
  .pd { display: grid; grid-template-columns: 1fr 1fr; }
  .pd-img { aspect-ratio: auto; min-height: 340px; }
  .pd-body { padding: 26px; align-self: center; }
}


/* ==========================================================
   LAPTOP / DESKTOP (900px and wider) — keep it tidy.
   The phone layout above is the main design; this only stops it
   from stretching across a big screen.
   ========================================================== */
@media (min-width: 900px) {
  /* top bar lines up with the page content */
  .topbar { padding-left: max(16px, calc((100% - 1040px) / 2 + 14px)); padding-right: max(16px, calc((100% - 1040px) / 2 + 14px)); }
  .topbar h1, .topbar .loc { flex: 0 0 250px; width: 250px; margin-right: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* the four bottom tabs become a menu in the middle of the top bar */
  .tabbar {
    top: 0; bottom: auto; right: auto; transform: none;
    /* starts just after the logo + address block, so it can never run into them */
    left: calc(max(16px, (100% - 1040px) / 2 + 14px) + 336px);
    height: 65px; padding: 0; background: transparent; border: 0; box-shadow: none; z-index: 45;
  }
  .tabbar a {
    flex: none; flex-direction: row; gap: 8px; padding: 0 20px; min-height: 0; height: 65px;
    align-items: center; justify-content: center; font-size: 14px; color: var(--ink);
  }
  .tabbar a svg { width: 19px; height: 19px; }
  .tabbar a:hover { color: var(--green); }
  .tabbar a.on { color: var(--green); box-shadow: inset 0 -3px 0 var(--orange); }

  body { padding-bottom: 40px; }
  body.cust { padding-bottom: 0; }
  body.cust .visit-card { margin-bottom: 40px; }

  /* floating cart bar: a compact centred pill instead of full width */
  .cart-bar {
    left: 50%; right: auto; transform: translateX(-50%); bottom: 22px;
    width: min(540px, calc(100% - 28px)); max-width: none; margin: 0;
  }
  .toast { bottom: 110px; }

  /* wide screens: rows wrap into a grid instead of needing a sideways swipe */
  .hscroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 16px; overflow: visible; margin: 0; padding: 4px 0 18px; }
  .hscroll > .pc { flex: none; width: auto; }
  .cat-row { flex-wrap: wrap; overflow: visible; margin: 0; padding-left: 2px; padding-right: 2px; row-gap: 14px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding-left: 0; padding-right: 0; }
  .search-box { max-width: 620px; }

  /* forms and lists read better in a narrower column */
  .page-cart .wrap, .page-checkout .wrap, .page-orders .wrap, .page-order_view .wrap, .page-account .wrap { max-width: 720px; }
  .topbar .brand img { height: 36px; }
}


/* ---------------------------------------------------------- order placed: success screen */
.order-ok {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(11, 40, 24, .62); backdrop-filter: blur(3px);
  animation: plFade .25s ease-out both, plOut .45s ease-in 6s forwards;
}
.order-ok.gone { animation: plOut .25s ease-in forwards; }
.placed-box {
  position: relative; width: min(360px, 100%); background: #fff; border-radius: 24px; padding: 30px 24px 24px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; animation: plPop .5s cubic-bezier(.2, 1.4, .4, 1) .05s both;
}
.placed-check { width: 92px; height: 92px; display: block; margin: 0 auto 12px; }
.pc-circle { fill: #e6f2ea; stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: plDraw .6s ease-out .25s forwards; }
.pc-tick { fill: none; stroke: var(--green); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: plDraw .35s ease-out .8s forwards; }
.placed-check { animation: plBump .4s ease-out .8s; }
.order-ok h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--green-dark); animation: plUp .4s ease-out .95s both; }
.order-ok .placed-sub { margin: 0 0 16px; font-size: 14px; color: var(--muted); line-height: 1.5; animation: plUp .4s ease-out 1.05s both; }
.order-ok .placed-meta { display: grid; gap: 2px; background: var(--paper); border-radius: 12px; padding: 10px 12px; margin-bottom: 18px; font-size: 13px; color: var(--muted); animation: plUp .4s ease-out 1.15s both; }
.order-ok .placed-meta span:first-child { font-size: 15px; font-weight: 800; color: var(--ink); }
.placed-btn { width: 100%; animation: plUp .4s ease-out 1.25s both; }

.confetti { position: absolute; left: 0; right: 0; top: 78px; height: 0; pointer-events: none; }
.confetti i {
  position: absolute; left: calc(50% + var(--x)); top: 0; width: var(--s); height: calc(var(--s) * 1.6); background: var(--c); border-radius: 2px;
  opacity: 0; animation: plConfetti calc(1.3s + var(--d) * 3) ease-out calc(.75s + var(--d)) forwards;
}

@keyframes plFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes plOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes plPop { from { opacity: 0; transform: scale(.7) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plBump { 0% { transform: scale(1); } 50% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes plUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes plConfetti {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0); }
  25%  { opacity: 1; transform: translate(0, var(--up)) rotate(calc(var(--r) / 3)); }
  100% { opacity: 0; transform: translate(0, var(--h)) rotate(var(--r)); }
}
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .placed-box, .order-ok h2, .order-ok .placed-sub, .order-ok .placed-meta, .placed-btn, .placed-check { animation: none; }
  .pc-circle, .pc-tick { animation: none; stroke-dashoffset: 0; }
}