/* ==========================================================================
   Boston Pizza & Kebap — storefront design system
   Mobile-first. Brand family: tomato red, logo yellow, ribbon green, warm neutrals.
   ========================================================================== */

:root {
  /* Brand */
  --brand-50: #fdf3f2;
  --brand-100: #fbe4e2;
  --brand-200: #f5c6c2;
  --brand-500: #c42a26;
  --brand-600: #a8201e;
  --brand-700: #8c1a18;
  --brand-800: #6c1513;
  --accent-50: #fff8db;
  --accent-200: #ffe680;
  --accent-400: #ffcf1a;
  --accent-500: #f5c400;
  --accent-700: #8a6a00;
  --green-50: #ecf7f0;
  --green-600: #1f8a47;
  --green-700: #176b37;

  /* Neutrals (warm) */
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f5f0e8;
  --surface-3: #ede6da;
  --border: #e8e1d6;
  --border-strong: #d6ccbd;
  --text: #1c1917;
  --text-2: #57534e;
  --text-3: #8a847c;
  --danger: #b42318;
  --danger-50: #fef1f0;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.75rem;   /* 12 */
  --fs-sm: 0.8125rem; /* 13 */
  --fs-base: 0.9375rem; /* 15 */
  --fs-md: 1rem;      /* 16 */
  --fs-lg: 1.125rem;  /* 18 */
  --fs-xl: 1.25rem;   /* 20 */
  --fs-2xl: 1.5rem;   /* 24 */
  --fs-3xl: 1.875rem; /* 30 */
  --fs-4xl: 2.375rem; /* 38 */

  /* Shape & depth */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 16px 48px rgba(28, 25, 23, 0.18);

  /* Layout */
  --gutter: 16px;
  --header-h: 60px;
  --tabs-h: 52px;
  --max-w: 1240px;
  --cartbar-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 359px) {
  :root { --gutter: 12px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--tabs-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
  /* Full-height page: the footer always sits at the bottom, no empty band below it. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--bnav-h) + var(--cartbar-h));
}
body > main { flex: 1 0 auto; }
:root { --bnav-h: 0px; }
body.has-cartbar { --cartbar-h: 72px; }
@media (max-width: 959px) { body.has-bnav { --bnav-h: calc(62px + var(--safe-b)); } }
@media (min-width: 960px) { body.has-cartbar { --cartbar-h: 0px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-400); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 8px; color: #fff; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-narrow { max-width: 760px; }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-sm); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--btn-bd); border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--fs-base); line-height: 1; text-align: center;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease), box-shadow .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { color: var(--btn-fg); background: var(--surface-2); }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { --btn-bg: var(--brand-600); --btn-fg: #fff; --btn-bd: var(--brand-600); }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-accent { --btn-bg: var(--accent-500); --btn-fg: #2b1d00; --btn-bd: var(--accent-500); }
.btn-accent:hover { background: var(--accent-400); border-color: var(--accent-400); color: #2b1d00; }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { --btn-bg: rgba(255,255,255,.14); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-lg { min-height: 52px; font-size: var(--fs-md); padding: 0 22px; border-radius: var(--r-lg); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md);
  border: 0; background: transparent; color: inherit; position: relative; -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--surface-2); }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.announcement { background: var(--accent-500); color: #2b1d00; font-size: var(--fs-sm); font-weight: 600; text-align: center; padding: 6px var(--gutter); }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; color: var(--text); }
@media (min-width: 960px) { .brand { flex: 0 0 auto; } }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: var(--fs-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-meta { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; overflow: hidden; }
@media (max-width: 389px) { .brand-loc { display: none; } .brand img { height: 38px; } .header-inner { gap: 4px; } }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 3px var(--green-50); flex: none; }
.status-dot.is-closed { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-50); }
.header-spacer { flex: 1; }
.header-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 2px; }
/* Language switch with flags (visible on phones too) */
.flag { width: 20px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(28,25,23,.12); display: block; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-full); background: var(--surface-2); border: 1px solid var(--border); }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
@media (max-width: 479px) { .lang-switch a span { display: none; } .lang-switch a { padding: 0 7px; } }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--brand-600); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; border: 2px solid #fff;
}
.badge[hidden] { display: none; }
.badge.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }
.desk-only { display: none !important; }
.header-cta { display: none; }

@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 52px; }
  .header-nav { display: flex; gap: 4px; margin-left: 24px; }
  .header-nav a { padding: 10px 14px; border-radius: var(--r-md); color: var(--text-2); font-weight: 600; }
  .header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
  .header-actions { gap: 6px; }
  .desk-only { display: inline-flex !important; }
  .cart-btn {
    align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 10px; border-radius: var(--r-full);
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700;
  }
  .cart-btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
  .cart-btn-ico { position: relative; display: grid; }
  .cart-btn-ico .badge { position: absolute; top: -8px; right: -10px; }
  .cart-btn-total { font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
  .header-cta { display: inline-flex; margin-left: 4px; }
  .menu-toggle { display: none; }
}

/* Drawer (mobile navigation) */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(28,25,23,.45); opacity: 0; transition: opacity .2s var(--ease); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--surface);
  transform: translateX(100%); transition: transform .25s var(--ease); display: flex; flex-direction: column;
  padding-bottom: var(--safe-b);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px var(--gutter); border-bottom: 1px solid var(--border); min-height: var(--header-h); }
.drawer-head img { height: 40px; width: auto; }
.drawer-nav { padding: 8px; overflow-y: auto; flex: 1; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: var(--r-md); color: var(--text); font-weight: 600; }
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] { background: var(--surface-2); }
.drawer-nav hr { border: 0; border-top: 1px solid var(--border); margin: 8px 4px; }
.drawer-foot { padding: 12px var(--gutter) 16px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.lang-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: var(--r-md); }
.lang-row a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); }
.lang-row a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
body.no-scroll { overflow: hidden; }

/* ---------- Flash & toast ---------- */
.flash { margin: 12px 0; padding: 12px 14px; border-radius: var(--r-md); font-weight: 500; font-size: var(--fs-sm); border: 1px solid; }
.flash-success { background: var(--green-50); border-color: #bfe3cd; color: var(--green-700); }
.flash-error { background: var(--danger-50); border-color: #f6c9c4; color: var(--danger); }
.flash-info { background: var(--accent-50); border-color: var(--accent-200); color: #5c4700; }
.toast-region { position: fixed; left: 0; right: 0; bottom: calc(var(--bnav-h) + var(--cartbar-h) + 12px); z-index: 80; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 var(--gutter); }
.toast {
  background: var(--text); color: #fff; padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: var(--fs-sm); display: flex; align-items: center; gap: 10px; max-width: 420px;
  animation: toast-in .25s var(--ease); pointer-events: auto;
}
.toast.is-error { background: var(--danger); }
.toast a { color: var(--accent-400); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Hero (home) ---------- */
.hero { background: var(--brand-600); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,207,26,.22), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(0,0,0,.18), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-200); }
.hero h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.025em; margin-top: 8px; }
.hero p { color: rgba(255,255,255,.86); margin-top: 10px; font-size: var(--fs-md); max-width: 52ch; }
.hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: var(--r-full); background: rgba(0,0,0,.18); font-size: var(--fs-xs); font-weight: 600; color: #fff; }
.fact .status-dot { box-shadow: none; }
.hero-media { display: none; }
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 48px; padding-bottom: 48px; gap: 40px; }
  .hero h1 { font-size: var(--fs-4xl); }
  .hero-ctas { display: flex; }
  .hero-media { display: block; position: relative; }
  .hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
  .hero-media .hero-logo { position: absolute; left: -24px; bottom: -20px; width: 160px; height: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 20px rgba(0,0,0,.25)); }
}

/* ---------- Sections ---------- */
.section { padding: 24px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: var(--fs-xl); font-weight: 750; }
.section-link { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
@media (min-width: 960px) { .section { padding: 40px 0; } .section-title { font-size: var(--fs-2xl); } }

/* Category rail */
.cat-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-tile { scroll-snap-align: start; display: grid; gap: 8px; color: var(--text); text-align: center; }
.cat-tile .thumb { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile span { font-weight: 600; font-size: var(--fs-sm); line-height: 1.25; }
.cat-tile small { display: block; color: var(--text-3); font-weight: 500; font-size: var(--fs-xs); }
@media (min-width: 960px) { .cat-rail { grid-auto-columns: 1fr; grid-auto-flow: column; overflow: visible; margin: 0; padding: 0; } }

/* Info cards */
.info-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.card h3 { font-size: var(--fs-md); margin-bottom: 8px; }
.card-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-icon { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-full); background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.channel-list { display: grid; gap: 8px; }

/* ---------- Menu layout ---------- */
.menu-head { padding-top: 16px; padding-bottom: 4px; }
.menu-head h1 { font-size: var(--fs-2xl); }
.menu-search { position: relative; margin-top: 12px; }
.menu-search input {
  width: 100%; height: 46px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
  padding: 0 40px 0 42px; font-size: var(--fs-md);
}
.menu-search input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.menu-search .icon { position: absolute; left: 12px; top: 12px; color: var(--text-3); }
.menu-search .clear { position: absolute; right: 2px; top: 1px; }

.cat-tabs {
  position: sticky; top: var(--header-h); z-index: 30; background: var(--bg);
  border-bottom: 1px solid var(--border); margin-top: 12px;
}
.cat-tabs-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 8px var(--gutter); scrollbar-width: none; height: var(--tabs-h); align-items: center; }
.cat-tabs-scroll::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none; height: 36px; padding: 0 14px; border-radius: var(--r-full); display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap;
}
.cat-tab .count { color: var(--text-3); font-weight: 500; font-size: var(--fs-xs); }
.cat-tab:hover { color: var(--text); border-color: var(--border-strong); }
.cat-tab.is-active { background: var(--text); border-color: var(--text); color: #fff; }
.cat-tab.is-active .count { color: rgba(255,255,255,.7); }

.menu-layout { display: block; }
.menu-sidebar, .menu-cart { display: none; }
.menu-section { padding-top: 20px; }
.menu-section h2 { font-size: var(--fs-xl); margin-bottom: 4px; }
.menu-section .section-desc { color: var(--text-2); font-size: var(--fs-sm); margin-bottom: 4px; }

/* Product rows (mobile list) */
.product-list { display: grid; }
.product-row {
  display: grid; grid-template-columns: 1fr 104px; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--border); color: var(--text); position: relative;
  background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%;
}
.product-row:last-child { border-bottom: 0; }
.product-row .info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.product-row h3 { font-size: var(--fs-md); font-weight: 650; line-height: 1.3; }
.product-row h3 a { color: inherit; }
.product-row h3 a::after { content: ""; position: absolute; inset: 0; }
.product-row .desc { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-row .price { margin-top: 4px; font-weight: 700; font-size: var(--fs-base); color: var(--text); }
.product-row .price .from { font-weight: 500; color: var(--text-2); font-size: var(--fs-sm); }
.product-row .media { position: relative; width: 104px; height: 104px; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.product-row .media img { width: 100%; height: 100%; object-fit: cover; }
.product-row .media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-3); }
.add-btn {
  position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 36px; height: 36px; border-radius: var(--r-full);
  border: 0; background: var(--surface); color: var(--brand-600); box-shadow: 0 2px 8px rgba(28,25,23,.18);
  display: grid; place-items: center; transition: transform .1s var(--ease), background .15s;
}
.add-btn:hover { background: var(--brand-600); color: #fff; }
.add-btn:active { transform: scale(.92); }
.add-btn .icon { width: 20px; height: 20px; }
.product-row.is-hidden, .menu-section.is-hidden { display: none; }
.menu-empty { padding: 32px 0; text-align: center; color: var(--text-2); }

@media (min-width: 640px) {
  .product-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-row { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 14px; grid-template-columns: 1fr 112px; }
  .product-row:last-child { border-bottom: 1px solid var(--border); }
  .product-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
  .product-row .media { width: 112px; height: 112px; }
}
@media (min-width: 1024px) {
  .menu-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
  .menu-sidebar { display: block; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-top: 20px; }
  .menu-sidebar a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); }
  .menu-sidebar a:hover { background: var(--surface-2); color: var(--text); }
  .menu-sidebar a.is-active { background: var(--brand-50); color: var(--brand-700); }
  .menu-sidebar .count { color: var(--text-3); font-weight: 500; }
  .menu-cart { display: block; position: sticky; top: calc(var(--header-h) + 16px); margin-top: 20px; }
  .cat-tabs { display: none; }
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
}

/* Mini cart (desktop menu sidebar) */
.mini-cart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.mini-cart-head { padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; justify-content: space-between; }
.mini-cart-body { max-height: 46vh; overflow-y: auto; }
.mini-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.mini-line .name { font-weight: 600; }
.mini-line .meta { color: var(--text-3); font-size: var(--fs-xs); grid-column: 1 / -1; }
.mini-cart-empty { padding: 28px 16px; text-align: center; color: var(--text-2); font-size: var(--fs-sm); }
.mini-cart-empty .icon { width: 36px; height: 36px; margin: 0 auto 8px; color: var(--text-3); }
.mini-cart-foot { padding: 14px 16px; display: grid; gap: 10px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- Cart bar (mobile) ---------- */
/* Floating cart pill (phones/tablets), sits above the bottom navigation */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--bnav-h) + 8px); z-index: 45;
  padding: 0 var(--gutter); pointer-events: none;
  transform: translateY(calc(100% + 24px + var(--bnav-h))); opacity: 0; transition: transform .3s var(--ease), opacity .2s;
}
body.has-cartbar .cart-bar { transform: none; opacity: 1; }
.cart-bar a {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 8px 0 10px;
  max-width: 560px; margin: 0 auto; border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff;
  box-shadow: 0 10px 28px rgba(140, 26, 24, .38), inset 0 1px 0 rgba(255,255,255,.18);
}
.cart-bar a, .cart-bar a:hover, .cart-bar a:focus-visible { color: #fff; }
.cart-bar a:active { transform: scale(.985); }
.cb-ico { position: relative; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.cb-ico .icon { width: 20px; height: 20px; }
.cb-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-full);
  background: var(--accent-500); color: #2b1d00; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--brand-600);
}
.cb-text { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cb-text strong { font-size: var(--fs-base); font-weight: 700; }
.cb-text small { font-size: var(--fs-xs); opacity: .82; font-weight: 500; }
.cb-total { background: #fff; color: var(--brand-700); font-weight: 800; padding: 9px 14px; border-radius: 12px; font-variant-numeric: tabular-nums; font-size: var(--fs-base); }
@media (min-width: 960px) { .cart-bar { display: none; } }

/* Bottom navigation (phones/tablets) */
.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(62px + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255,255,255,.97); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(28,25,23,.05);
}
.bnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3);
  font-size: 11px; font-weight: 600; position: relative; -webkit-tap-highlight-color: transparent; min-width: 0;
}
.bnav a span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.bnav a .icon { width: 23px; height: 23px; }
.bnav a[aria-current="page"] { color: var(--brand-600); }
.bnav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-600); }
.bnav-ico { position: relative; display: grid; }
.bnav-ico .badge { position: absolute; top: -6px; right: -11px; }
@media (min-width: 960px) { .bnav { display: none; } }

/* ---------- Product sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: none; }
.sheet.is-open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(28,25,23,.5); animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0; display: flex; flex-direction: column; overflow: hidden;
  animation: sheet-up .28s var(--ease); box-shadow: var(--shadow-lg);
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade-out { to { opacity: 0; } }
.sheet.is-closing .sheet-panel { animation: sheet-down .22s var(--ease) forwards; }
.sheet.is-closing .sheet-backdrop { animation: fade-out .22s var(--ease) forwards; }
.sheet-panel.is-dragging { transition: none; animation: none; }
.sheet-head {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 16px 8px 10px var(--gutter); border-bottom: 1px solid var(--border); flex: none; touch-action: none;
}
.sheet-head h2 { font-size: var(--fs-lg); }
.sheet-head .sheet-grip { top: 6px; background: var(--border-strong); }
.sheet-content, .sheet-content > .product-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.product-page .sheet-scroll { overflow: visible; }
.sheet-close { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); border-radius: var(--r-full); }
.sheet-grip { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,.8); z-index: 3; }
.sheet-media { aspect-ratio: 16 / 10; background: var(--surface-2); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: 16px var(--gutter) 8px; }
.sheet-body h2 { font-size: var(--fs-xl); padding-right: 8px; }
.sheet-body .base-price { margin-top: 4px; font-weight: 700; color: var(--text); }
.sheet-body .desc { color: var(--text-2); margin-top: 8px; font-size: var(--fs-base); }
.opt-group { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.opt-group legend { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 700; font-size: var(--fs-md); }
.opt-group legend small { font-weight: 500; color: var(--text-3); font-size: var(--fs-xs); }
.req-badge { font-size: 11px; font-weight: 700; color: var(--brand-700); background: var(--brand-50); padding: 3px 8px; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: .03em; }
.req-badge.is-done { color: var(--green-700); background: var(--green-50); }
.opt-group.has-error .req-badge { color: #fff; background: var(--brand-600); }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer; transition: border-color .15s, background-color .15s; -webkit-tap-highlight-color: transparent;
}
.opt + .opt { margin-top: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { width: 22px; height: 22px; border: 2px solid var(--border-strong); border-radius: 50%; flex: none; display: grid; place-items: center; transition: all .15s; }
.opt input[type="checkbox"] + .mark { border-radius: 6px; }
.opt .mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s var(--ease); }
.opt input[type="checkbox"] + .mark::after { width: 12px; height: 7px; border-radius: 0; background: none; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -3px; }
.opt input:checked + .mark { background: var(--brand-600); border-color: var(--brand-600); }
.opt input:checked + .mark::after { transform: scale(1); }
.opt input[type="checkbox"]:checked + .mark::after { transform: rotate(-45deg) scale(1); }
.opt input:focus-visible + .mark { outline: 3px solid var(--accent-400); outline-offset: 2px; }
.opt:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.opt .name { flex: 1; font-weight: 500; }
.opt .price { color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.ingredients { display: flex; flex-wrap: wrap; gap: 8px; }
.ing {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-full);
  border: 1px solid var(--border-strong); background: var(--surface); font-size: var(--fs-sm); font-weight: 500; color: var(--text);
}
.ing .x { width: 14px; height: 14px; color: var(--text-3); }
.ing[aria-pressed="true"] { background: var(--surface-2); color: var(--text-3); text-decoration: line-through; border-style: dashed; }
.ing[aria-pressed="true"] .x { transform: rotate(45deg); }
.note-toggle { margin-top: 18px; }
.field textarea, .note-field textarea { min-height: 72px; resize: vertical; }
.sheet-foot {
  display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter) calc(12px + var(--safe-b));
  border-top: 1px solid var(--border); background: var(--surface);
}
.sheet-foot .btn { flex: 1; justify-content: space-between; white-space: nowrap; min-width: 0; padding: 0 8px 0 18px; }
.sheet-foot .btn [data-total], .btn-chip {
  background: rgba(255,255,255,.18); padding: 8px 12px; border-radius: 10px; font-variant-numeric: tabular-nums; font-weight: 800;
}
.btn-split { justify-content: space-between; padding: 0 8px 0 18px; }
@media (max-width: 359px) { .sheet-foot { gap: 8px; } .sheet-foot .stepper button { width: 34px; } .sheet-foot .btn { font-size: var(--fs-base); padding: 0 6px 0 12px; } }
.sheet-error { color: var(--danger); font-size: var(--fs-sm); font-weight: 600; padding: 0 var(--gutter) 8px; }
@media (min-width: 768px) {
  .sheet-panel { left: 50%; top: 50%; bottom: auto; width: min(560px, 92vw); max-height: 88vh; border-radius: var(--r-xl); transform: translate(-50%, -50%); animation: pop .22s var(--ease); }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }
  .sheet-grip { display: none; }
  .sheet.is-closing .sheet-panel { animation: fade-out .18s var(--ease) forwards; }
  /* Cart quick view: right-hand drawer on larger screens */
  .cart-sheet .sheet-panel { left: auto; right: 0; top: 0; bottom: 0; width: min(420px, 92vw); max-height: none; height: 100%; border-radius: var(--r-xl) 0 0 var(--r-xl); transform: none; animation: drawer-in .26s var(--ease); }
  @keyframes drawer-in { from { transform: translateX(100%); } }
  .cart-sheet.is-closing .sheet-panel { animation: drawer-out .2s var(--ease) forwards; }
  @keyframes drawer-out { to { transform: translateX(100%); } }
}

/* Quantity stepper — neutral so the brand-red button stays the single primary action */
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--r-full); height: 52px; background: var(--surface-2); flex: none; }
.stepper button {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text);
  display: grid; place-items: center; box-shadow: 0 1px 2px rgba(28,25,23,.12); transition: transform .1s var(--ease);
}
.stepper button:active { transform: scale(.92); }
.stepper button:disabled { color: var(--text-3); box-shadow: none; background: transparent; }
.stepper output, .stepper .val { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper-sm { height: 38px; padding: 3px; }
.stepper-sm button { width: 32px; height: 32px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 14px; }
.field label, .label { font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.field label .opt-tag { color: var(--text-3); font-weight: 500; }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--surface); font-size: var(--fs-md); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2357534e' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }
.field .error, .field-error { font-size: var(--fs-xs); color: var(--danger); font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field-row-2 { grid-template-columns: 1fr 1fr; }
.field-row .field + .field { margin-top: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand-600); margin: 1px 0 0; flex: none; }
.choice {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-md);
  cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s;
}
.choice + .choice { margin-top: 8px; }
.choice input { width: 20px; height: 20px; accent-color: var(--brand-600); margin: 1px 0 0; flex: none; }
.choice:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.choice strong { display: block; font-weight: 600; }
.choice small { display: block; color: var(--text-2); font-size: var(--fs-xs); margin-top: 2px; }

/* ---------- Page shells ---------- */
.page { padding-top: 16px; padding-bottom: 32px; }
.page-title { font-size: var(--fs-2xl); margin-bottom: 4px; }
.page-sub { color: var(--text-2); margin-bottom: 16px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); margin: 0 0 10px; padding: 0; list-style: none; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb li { list-style: none; display: inline-flex; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--text-3); }
.breadcrumb ol { display: contents; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.panel + .panel { margin-top: 12px; }
.panel h2 { font-size: var(--fs-lg); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.panel h2 .step { width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: #fff; font-size: var(--fs-xs); display: grid; place-items: center; flex: none; }
@media (max-width: 639px) {
  .panel-flush { border-radius: 0; border-left: 0; border-right: 0; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
}
.two-col { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .two-col { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
  .two-col > aside { position: sticky; top: calc(var(--header-h) + 16px); }
}
.auth-card { max-width: 440px; margin: 0 auto; }

/* Cart panel (quick-view sheet + cart page) */
.cart-panel { display: flex; flex-direction: column; min-height: 100%; }
.cart-panel-body { padding: 4px var(--gutter) 8px; flex: 1 0 auto; }
.cart-panel-foot {
  position: sticky; bottom: 0; z-index: 2; padding: 12px var(--gutter) calc(12px + var(--safe-b)); display: grid; gap: 4px;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 20px rgba(28,25,23,.05);
}
.cart-panel-foot .btn { margin-top: 6px; }
.cart-panel--page .cart-panel-foot { bottom: var(--bnav-h); padding-bottom: 12px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.cart-panel .summary-row { padding: 3px 0; font-size: var(--fs-sm); color: var(--text-2); }
.cart-panel .summary-row.total { color: var(--text); font-size: var(--fs-md); padding-top: 8px; margin-top: 4px; }
.min-meter { margin: 10px 0 4px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-50); color: #5c4700; font-weight: 600; }
.min-meter.is-done { background: var(--green-50); color: var(--green-700); }
.min-meter.is-done .progress > span { background: var(--green-600); }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); transition: opacity .2s, transform .2s; }
.cart-line:last-child { border-bottom: 0; }
.cart-line.is-busy { opacity: .5; pointer-events: none; }
.cart-line.is-leaving { opacity: 0; transform: translateX(-16px); }
.cart-line .thumb { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .line-main { min-width: 0; }
.cart-line .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cart-line .name { font-weight: 650; line-height: 1.3; }
.cart-line .details { color: var(--text-2); font-size: var(--fs-xs); margin-top: 3px; line-height: 1.4; }
.cart-line .line-total { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-line .controls { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.cart-line .push-right { margin-left: auto; }
.cart-line.is-invalid .name { color: var(--text-3); text-decoration: line-through; }
.cart-line .warn { color: var(--danger); font-size: var(--fs-xs); font-weight: 600; margin-top: 4px; }
.link-btn { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; border: 0; border-radius: var(--r-full); background: none; color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); }
.link-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn-sm { width: 36px; height: 36px; color: var(--text-3); }
.icon-btn-sm:hover { color: var(--danger); background: var(--danger-50); }
.add-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 4px; padding: 12px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-md); color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); }
.add-more:hover { border-color: var(--brand-600); color: var(--brand-600); }
.cart-page-panel { padding: 0; overflow: visible; }
.empty-ico { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); }
.empty-ico .icon { width: 32px; height: 32px; margin: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: var(--fs-lg); }
.progress { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.progress > span { display: block; height: 100%; background: var(--accent-500); border-radius: 8px; transition: width .3s var(--ease); }
.sticky-cta {
  position: sticky; bottom: 0; z-index: 20; padding: 12px var(--gutter) calc(12px + var(--safe-b)); margin: 16px calc(var(--gutter) * -1) 0;
  background: rgba(250,247,242,.96); border-top: 1px solid var(--border); backdrop-filter: blur(8px);
}
@media (min-width: 960px) { .sticky-cta { position: static; padding: 0; margin: 16px 0 0; background: none; border: 0; backdrop-filter: none; } }
.empty-state { text-align: center; padding: 48px 16px; }
.empty-state .icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--text-3); }
.empty-state h1, .empty-state h2 { font-size: var(--fs-xl); margin-bottom: 6px; }
.empty-state p { color: var(--text-2); margin-bottom: 18px; }

/* Order tracking */
.order-hero { text-align: center; padding: 8px 0 16px; }
.order-hero .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; margin: 0 auto 12px; }
.order-hero .ok .icon { width: 34px; height: 34px; }
.order-hero h1 { font-size: var(--fs-2xl); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 18px; color: var(--text-3); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: -2px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; z-index: 1; }
.timeline .dot .icon { width: 14px; height: 14px; }
.timeline li.is-done { color: var(--text); }
.timeline li.is-done .dot { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.timeline li.is-done::before { background: var(--green-600); }
.timeline li.is-current .dot { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 0 0 5px var(--brand-100); }
.timeline li.is-current { color: var(--text); font-weight: 700; }
.timeline time { display: block; font-size: var(--fs-xs); color: var(--text-3); font-weight: 500; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 700; background: var(--surface-2); color: var(--text-2); }
.status-pill.s-5 { background: var(--green-50); color: var(--green-700); }
.status-pill.s-6 { background: var(--danger-50); color: var(--danger); }
.status-pill.s-1, .status-pill.s-2, .status-pill.s-3, .status-pill.s-4 { background: var(--accent-50); color: #6b5200; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: var(--fs-sm); }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.order-items { list-style: none; padding: 0; margin: 0; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-items li:last-child { border-bottom: 0; }
.order-items .q { color: var(--brand-600); font-weight: 700; margin-right: 6px; }
.order-items .d { color: var(--text-2); font-size: var(--fs-xs); margin-top: 2px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Account */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin: 0 calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter); scrollbar-width: none; }
.tabs a { padding: 12px 12px; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; font-size: var(--fs-sm); }
.tabs a[aria-current="page"] { color: var(--brand-700); border-bottom-color: var(--brand-600); }
.order-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.order-card:last-child { border-bottom: 0; }
.order-card .meta { color: var(--text-2); font-size: var(--fs-xs); }
.address-card { padding: 14px; border: 1px solid var(--border); border-radius: var(--r-md); }
.address-card + .address-card { margin-top: 10px; }
.address-card .actions { display: flex; gap: 6px; margin-top: 10px; }

/* Product page */
.product-page { display: grid; gap: 16px; }
.product-page .media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
.product-page .media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .product-page { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .product-page .media { margin: 0; border-radius: var(--r-xl); position: sticky; top: calc(var(--header-h) + 16px); }
}
.product-page .sheet-body { padding: 0; }
.product-page .sheet-foot { position: sticky; bottom: var(--bnav-h); z-index: 5; padding-bottom: 12px; margin: 16px calc(var(--gutter) * -1) 0; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .product-page .sheet-foot { position: static; margin: 20px 0 0; padding: 0; border: 0; background: none; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; color: rgba(255,255,255,.74); font-size: var(--fs-sm); background: #1b1311; }
.footer-cta { background: var(--brand-600); color: #fff; position: relative; overflow: hidden; }
.footer-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 120% at 100% 0%, rgba(255,207,26,.25), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(0,0,0,.22), transparent 60%);
}
.footer-cta-inner { position: relative; display: grid; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.footer-cta h2 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.02em; }
.footer-cta p { margin-top: 6px; color: rgba(255,255,255,.85); max-width: 46ch; }
.footer-cta-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .footer-cta-actions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) {
  .footer-cta-inner { grid-template-columns: 1fr auto; align-items: center; padding-top: 34px; padding-bottom: 34px; }
  .footer-cta-actions { display: flex; }
}
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; padding-top: 32px; padding-bottom: 28px; }
.footer-brand, .footer-contact { grid-column: 1 / -1; }
.footer-logo img { height: 70px; width: auto; }
.footer-brand p { margin-top: 12px; max-width: 34ch; color: rgba(255,255,255,.78); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: var(--r-full); background: rgba(255,255,255,.07); font-size: var(--fs-xs); font-weight: 600; color: rgba(255,255,255,.9); }
.footer-status .status-dot { box-shadow: none; }
.site-footer h3 { color: #fff; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; font-weight: 700; opacity: .9; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a { color: rgba(255,255,255,.74); display: inline-block; padding: 6px 0; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 4px; align-content: start; }
.fc-item { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; color: rgba(255,255,255,.86); }
a.fc-item:hover { color: #fff; }
.fc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--accent-400); flex: none; }
.fc-item > span:last-child { padding-top: 7px; line-height: 1.45; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: rgba(255,255,255,.16); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); background: #140e0c; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 14px; padding-bottom: 16px; font-size: var(--fs-xs); color: rgba(255,255,255,.5); }
.footer-lang { display: inline-flex; gap: 14px; }
.footer-lang a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.65); font-weight: 600; }
.footer-lang a[aria-current="true"], .footer-lang a:hover { color: #fff; }
.footer-lang .flag { width: 18px; height: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.credit { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.45); opacity: .8; transition: opacity .15s; }
.credit:hover { opacity: 1; color: rgba(255,255,255,.7); }
.credit img { height: 19px; width: auto; }
@media (max-width: 559px) { .footer-bottom-inner { justify-content: center; text-align: center; } }
@media (min-width: 900px) {
  .footer-main { grid-template-columns: 1.4fr .8fr .8fr 1.3fr; gap: 40px; padding-top: 44px; padding-bottom: 36px; }
  .footer-brand, .footer-contact { grid-column: auto; }
}

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

/* ---------- Phone input with TR prefix ---------- */
.phone-field { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.phone-field:focus-within { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.field.has-error .phone-field { border-color: var(--danger); }
.phone-prefix { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; border-right: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-sm); font-weight: 700; flex: none; }
.field .phone-field input, .phone-field input {
  border: 0 !important; box-shadow: none !important; background: transparent; min-width: 0; flex: 1;
  letter-spacing: .04em; font-variant-numeric: tabular-nums; border-radius: 0 var(--r-md) var(--r-md) 0;
}
.phone-field input:invalid:not(:placeholder-shown) { color: var(--danger); }

/* ---------- Loading skeletons & toast actions ---------- */
.skeleton { border-radius: var(--r-md); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.toast-action { margin-left: 4px; border: 0; background: rgba(255,255,255,.14); color: var(--accent-400); font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.toast-action:hover { background: rgba(255,255,255,.24); }
.toast { padding: 10px 10px 10px 16px; min-height: 48px; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 639px) {
  .menu-head .breadcrumb, .product-page + * .breadcrumb, .page > nav[aria-label="breadcrumb"] { display: none; }
  .menu-head { padding-top: 12px; }
  .menu-head h1 { font-size: var(--fs-xl); }
  .menu-search input { height: 44px; background: var(--surface-2); border-color: transparent; }
  .menu-search input:focus { background: var(--surface); }
  .product-row { padding: 14px 0; }
  .product-row .media { border-radius: 14px; }
  .page-title { font-size: var(--fs-xl); }
  .hero h1 { font-size: 1.75rem; }
}
.product-row .price { color: var(--brand-700); }
.add-btn { background: var(--brand-600); color: #fff; box-shadow: 0 4px 12px rgba(168,32,30,.35); }
.add-btn:hover { background: var(--brand-700); }
.cat-tab.is-active { background: var(--brand-600); border-color: var(--brand-600); }
.site-header { box-shadow: 0 1px 0 var(--border); border-bottom: 0; }

/* Packshots (drinks on white): show the whole can/bottle, never crop */
.product-row.is-packshot .media { background: #fff; border: 1px solid var(--border); }
.product-row.is-packshot .media img, .sheet-media.is-packshot img, .product-page .media.is-packshot img { object-fit: contain; padding: 8px; background: #fff; }
.sheet-media.is-packshot, .product-page .media.is-packshot { background: #fff; }
.sheet-media.is-packshot img { padding: 24px; }
