/* =========================================================
   KOOB CAFE — Global stylesheet
   1. Tokens & resets
   2. Layout (container, header, banner, footer, bottom-nav)
   3. Buttons, chips, forms, helpers
   4. Pages: hero, ads, products, about, payments
   5. Menu / chatbot
   6. Cart, checkout, confirmation, tracking
   7. Splash screen
   8. Animations & responsive
   ========================================================= */

/* ---------- 1. Tokens & resets ---------- */
:root {
  /* Coffee-inspired palette (OKLCH approximations) */
  --cream:        #faf5ec;
  --cream-soft:   #f4ead9;
  --beige:        #ead9bf;
  --beige-warm:   #f0dfc7;
  --coffee:       #5b3a1f;
  --coffee-dark:  #3b2a1a;
  --coffee-deep:  #2a1a0e;
  --gold:         #b88746;
  --gold-soft:    #d6a766;
  --ink:          #2b1b0e;
  --ink-soft:     #6b4a2a;
  --muted:        #8a7355;
  --line:         rgba(91, 58, 31, 0.14);
  --line-strong:  rgba(91, 58, 31, 0.28);
  --bg:           #fdfaf4;
  --bg-soft:      #f7eedd;

  /* Typography */
  --font-body:    "Cairo", "Segoe UI", system-ui, sans-serif;
  --font-display: "Reem Kufi", "Cairo", sans-serif;
  --font-quote:   "Amiri", "Cairo", serif;
  --font-en:      "Cormorant Garamond", "Reem Kufi", serif;

  /* Spacing & radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadows */
  --sh-sm: 0 2px 8px rgba(43, 27, 14, 0.06);
  --sh-md: 0 8px 24px rgba(43, 27, 14, 0.1);
  --sh-lg: 0 20px 50px rgba(43, 27, 14, 0.18);
  --sh-gold: 0 12px 30px rgba(184, 135, 70, 0.25);

  /* Transitions */
  --t-fast: 160ms ease;
  --t-med:  280ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 600ms cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--coffee-dark); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.hidden { display: none !important; }
.muted  { color: var(--muted); }

/* ---------- 2. Layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { display: block; }
.page-pad { padding-top: 90px; padding-bottom: 120px; }
.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 260;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--coffee-dark);
  color: var(--cream);
  box-shadow: var(--sh-md);
  transform: translateY(-80px);
  transition: var(--t-fast);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(184,135,70,.35);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 250, 244, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold); box-shadow: var(--sh-sm); background: var(--cream);
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--coffee-dark); line-height: 1; }
.brand__sub  {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--coffee);
  letter-spacing: 1.8px;
  line-height: 1.1;
  text-transform: uppercase;
}

.nav-desktop { display: flex; gap: 6px; }
.nav-desktop a {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-soft);
  font-weight: 500; transition: var(--t-fast);
}
.nav-desktop a:hover { background: var(--cream-soft); color: var(--coffee-dark); }
.nav-desktop a.active { background: var(--coffee-dark); color: var(--cream); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.table-pill {
  display: none; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--beige-warm); color: var(--coffee-dark);
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-strong);
}
.table-pill.show { display: inline-flex; }
.table-clear {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(91,58,31,.1);
  color: var(--coffee-dark);
  font-size: 11px;
  font-weight: 800;
  transition: var(--t-fast);
}
.table-clear:hover {
  background: var(--coffee-dark);
  color: var(--cream);
}
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--coffee-dark); color: var(--cream);
  font-weight: 600; transition: var(--t-fast);
}
.cart-btn:hover { background: var(--coffee); }
.cart-btn.is-cart-receiving,
.bottom-nav a.is-cart-receiving .icon-wrap { animation: cartReceive .62s cubic-bezier(.22, 1, .36, 1); }
.bottom-nav a.is-cart-receiving .mini-badge { animation: cartBadgePop .58s cubic-bezier(.22, 1, .36, 1); }
.cart-btn .badge {
  position: absolute; top: -6px; left: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: none; align-items: center; justify-content: center;
  background: var(--gold); color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.cart-btn .badge.show { display: inline-flex; }

/* Table banner */
.table-banner {
  display: none; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  color: #fff; font-size: 13px; padding: 8px 16px;
}
.table-banner.show { display: flex; }
.table-clear--light {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}
.table-clear--light:hover {
  background: #fff;
  color: var(--coffee-dark);
}

/* Bottom nav (mobile) */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(253, 250, 244, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: none;
}
.bottom-nav__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px env(safe-area-inset-right) calc(8px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px; color: var(--ink-soft); font-size: 11px; font-weight: 600;
}
.bottom-nav a.active { color: var(--coffee-dark); }
.bottom-nav a.active .icon-wrap { background: var(--beige-warm); }
.bottom-nav .icon-wrap {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center; position: relative;
  transition: var(--t-fast);
}
.bottom-nav .mini-badge {
  display: none; position: absolute; top: 2px; left: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--gold); color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  align-items: center; justify-content: center;
}
.bottom-nav .mini-badge.show { display: inline-flex; }

/* Footer */
.site-footer {
  background: var(--coffee-deep); color: var(--cream);
  margin-top: 40px;
}
.site-footer__cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding: 50px 20px 30px;
}
.site-footer h4 { color: var(--gold-soft); margin-bottom: 14px; font-size: 16px; }
.site-footer ul li { padding: 4px 0; font-size: 14px; color: rgba(250, 245, 236, 0.75); }
.site-footer ul li a:hover { color: var(--gold-soft); }
.site-footer__bottom {
  border-top: 1px solid rgba(250, 245, 236, 0.12);
  text-align: center; padding: 18px;
  font-size: 12px; color: rgba(250, 245, 236, 0.55);
}

/* ---------- 3. Buttons / chips / forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: var(--t-med); cursor: pointer;
  white-space: nowrap;
}
.btn--coffee {
  background: linear-gradient(135deg, var(--coffee-dark), var(--coffee));
  color: var(--cream); box-shadow: var(--sh-md);
}
.btn--coffee:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn--ghost {
  background: transparent; color: var(--coffee); border: 2px solid var(--coffee);
}
.btn--ghost:hover { background: var(--coffee-dark); color: var(--cream); border-color: var(--coffee-dark); }
.btn--block { width: 100%; margin-top: 10px; }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line-strong);
  color: var(--coffee-dark); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: var(--t-fast);
}
.chip:hover { background: var(--beige-warm); }
.chip.active {
  background: linear-gradient(135deg, var(--coffee-dark), var(--coffee));
  color: var(--cream); border-color: transparent;
  box-shadow: var(--sh-md);
}

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--coffee-dark); margin-bottom: 6px; }
.field input, .field select, textarea, input[type="number"], input[type="tel"], input[type="search"] {
  width: 100%; padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); transition: var(--t-fast);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 135, 70, 0.18);
}

.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-grid; place-items: center;
  color: var(--coffee); background: var(--cream-soft);
  transition: var(--t-fast);
}
.icon-btn:hover { background: var(--beige-warm); color: var(--coffee-dark); }

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 1300;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(253,250,244,.96);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  color: var(--coffee-dark);
  animation: toastIn .22s cubic-bezier(.22, 1, .36, 1);
  pointer-events: auto;
}
.toast.is-leaving { animation: toastOut .22s ease forwards; }
.toast__icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(39,136,82,.12);
  color: #24764a;
}
.toast--error .toast__icon { background: rgba(184,58,46,.12); color: #8c2f25; }
.toast--info .toast__icon { background: rgba(184,135,70,.14); color: var(--coffee-dark); }
.toast__message { font-size: 13px; font-weight: 700; line-height: 1.5; }
.toast__action {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.toast__close {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.toast__close:hover { background: var(--cream-soft); color: var(--coffee-dark); }
@keyframes toastIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translate3d(0, 8px, 0) scale(.98); }
}

/* Section heads */
.page-head { text-align: center; margin: 20px 0 26px; }
.page-sub { color: var(--ink-soft); margin-top: 8px; }
.section-eyebrow {
  font-family: var(--font-en); letter-spacing: 4px; font-size: 12px; font-weight: 600;
  color: var(--gold); text-transform: uppercase; margin-bottom: 6px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 700;
  color: var(--coffee-dark); margin: 0;
}
.section-head { text-align: center; margin-bottom: 32px; }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px;
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.block { padding: 70px 0; }

/* ---------- 4. Home: hero, ads, about, payments ---------- */
.hero { position: relative; padding: 60px 0 50px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(184,135,70,0.18), transparent 60%),
    radial-gradient(50% 40% at 80% 80%, rgba(91,58,31,0.18), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  z-index: -1;
}
.hero__inner {
  display: grid; grid-template-columns: 0.88fr 1.25fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(184,135,70,0.14); color: var(--coffee-dark);
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.eyebrow .icon { color: var(--gold); display: inline-grid; place-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 6.4vw, 72px); line-height: 1.05;
  color: var(--coffee-dark); margin-bottom: 18px;
}
.hero h1 .line-1 { display: block; }
.hero h1 .line-2 {
  display: block;
  background: linear-gradient(135deg, var(--gold), var(--coffee));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  font-family: var(--font-quote);
  font-size: clamp(18px, 2.2vw, 24px); color: var(--ink-soft);
  margin-bottom: 26px;
}
.hero__lead .sub { color: var(--gold); font-weight: 700; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 28px; margin-top: 34px; }
.hero__stats .stat .v { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--coffee-dark); }
.hero__stats .stat .l { font-size: 13px; color: var(--ink-soft); }

.hero__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100%, 760px);
  border-radius: var(--r-xl);
  overflow: visible;
  background: var(--beige-warm);
  box-shadow: var(--sh-lg);
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  overflow: hidden;
}
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: rgba(255,255,255,0.95);
  border-radius: var(--r-md); box-shadow: var(--sh-md);
  backdrop-filter: blur(6px);
  animation: chipFloat 11s ease-in-out infinite;
  will-change: transform;
}
.hero__chip.bl { bottom: 1px; right: 11px; animation-delay: -5.2s; }
.hero__chip.tl { top: 1px; left: 11px; animation-delay: -1.4s; }
.hero__chip .lbl { font-size: 11px; color: var(--ink-soft); }
.hero__chip .val { font-weight: 700; color: var(--coffee-dark); font-size: 14px; }
.badge-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
}
.badge-icon.coffee { background: linear-gradient(135deg, var(--coffee-dark), var(--coffee)); }
.badge-icon.gold   { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); }
@keyframes chipFloat {
  0%, 100% { transform: translate3d(0, -8px, 0) rotate(-.25deg); }
  25% { transform: translate3d(4px, 2px, 0) rotate(.18deg); }
  50% { transform: translate3d(0, 8px, 0) rotate(.25deg); }
  75% { transform: translate3d(-4px, 1px, 0) rotate(-.12deg); }
}

/* Sponsored ads */
.partner-showcase { max-width: 1080px; margin: 0 auto; }
.ad-banner { display: grid; gap: 14px; }
.ad-banner__frame {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--coffee-deep);
  box-shadow: var(--sh-lg);
  isolation: isolate;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.ad-banner__slide { cursor: pointer; }
.ad-banner__frame.is-dragging {
  cursor: grabbing;
}
.ad-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(34px, 0, 0) scale(1.025);
  transition:
    opacity 1.25s cubic-bezier(.22, 1, .36, 1),
    transform 1.25s cubic-bezier(.22, 1, .36, 1);
}
.ad-banner__frame--prev .ad-banner__slide {
  transform: translate3d(-34px, 0, 0) scale(1.025);
}
.ad-banner__slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}
.ad-banner__frame.is-dragging .ad-banner__slide {
  transition: none;
}
.ad-banner__slide.drag-active {
  opacity: 1;
  transform: translate3d(var(--drag-x, 0), 0, 0) scale(.985);
}
.ad-banner__slide.drag-preview {
  opacity: var(--preview-opacity, .4);
  transform: translate3d(var(--preview-x, 0), 0, 0) scale(1);
}
.ad-banner__media {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 4.5s ease, filter 1.1s ease;
}
.ad-banner__media--placeholder {
  background:
    radial-gradient(circle at 22% 24%, rgba(227, 171, 104, .2), transparent 32%),
    linear-gradient(135deg, #3d281a, #725037 58%, #2a1a11);
}
.ad-banner__slide.active .ad-banner__media {
  transform: scale(1.045);
}
.ad-banner__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42,26,14,.18), rgba(42,26,14,.72)),
    linear-gradient(0deg, rgba(42,26,14,.35), transparent 58%);
  z-index: 1;
}
.ad-banner__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  width: min(520px, 88%);
  padding: 30px 36px;
  color: var(--cream);
  opacity: 0;
  transform: translate3d(22px, 0, 0);
  transition:
    opacity .95s ease .18s,
    transform .95s cubic-bezier(.22, 1, .36, 1) .18s;
}
.ad-banner__frame--prev .ad-banner__content {
  transform: translate3d(-22px, 0, 0);
}
.ad-banner__slide.active .ad-banner__content {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.ad-banner__kicker {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid rgba(250,245,236,.35);
  border-radius: 999px;
  background: rgba(250,245,236,.12);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
}
.ad-banner__brand {
  font-family: var(--font-en);
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--gold-soft);
  font-weight: 700;
  margin-bottom: 8px;
}
.ad-banner__title {
  color: var(--cream);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.15;
}
.ad-banner__desc {
  margin-top: 12px;
  color: rgba(250,245,236,.78);
  font-size: 15px;
  line-height: 1.8;
}
.ad-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--coffee-dark);
  font-weight: 800;
  box-shadow: var(--sh-md);
  transition: var(--t-med);
}
.ad-banner__cta:hover { transform: translateY(-2px); gap: 12px; }
.ad-banner__controls {
  position: absolute;
  z-index: 3;
  left: 22px;
  bottom: 22px;
  display: flex;
  gap: 10px;
}
.ad-banner__nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(250,245,236,.9);
  color: var(--coffee-dark);
  box-shadow: var(--sh-sm);
  transition: var(--t-fast);
}
.ad-banner__nav:hover { background: var(--gold-soft); color: #fff; transform: translateY(-1px); }
.ad-banner__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.ad-banner__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: var(--t-med);
}
.ad-banner__dot.active {
  width: 34px;
  background: var(--coffee-dark);
}

/* Partner ad modal */
.ad-modal {
  position: fixed; inset: 0; z-index: 95;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.ad-modal.open { display: flex; }
.ad-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(43,27,14,.56);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ad-modal__panel {
  position: relative;
  width: min(100%, 780px);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 24px;
  box-shadow: var(--sh-lg);
  animation: modalIn .18s cubic-bezier(.22, 1, .36, 1);
}
.ad-modal__close {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  color: var(--coffee-dark);
  box-shadow: var(--sh-sm);
}
.ad-detail__media {
  height: min(48vh, 360px);
  overflow: hidden;
  background: var(--coffee-deep);
}
.ad-detail__media video,
.ad-detail__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ad-detail__body {
  padding: 26px 30px 30px;
  display: grid;
  gap: 12px;
}
.ad-detail__kicker {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream-soft);
  color: var(--coffee-dark);
  font-size: 12px;
  font-weight: 800;
}
.ad-detail__brand {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}
.ad-detail__body h3 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--coffee-dark);
}
.ad-detail__body p {
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 62ch;
}
.ad-detail__link {
  width: fit-content;
  margin-top: 4px;
}

/* Menu partner ticker */
.partner-ticker {
  position: fixed;
  right: 50%;
  --partner-ticker-base-bottom: 18px;
  bottom: var(--partner-ticker-bottom, var(--partner-ticker-base-bottom));
  transform: translateX(50%);
  z-index: 65;
  width: min(940px, calc(100% - 34px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(184,135,70,.26);
  border-radius: 999px;
  background: rgba(250,245,236,.92);
  box-shadow: 0 16px 40px rgba(43,27,14,.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.partner-ticker__label {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--coffee-dark);
  color: var(--cream);
  font-weight: 900;
  font-size: 13px;
}
.partner-ticker__viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partner-ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.partner-ticker.is-paused .partner-ticker__track {
  filter: saturate(1.04);
}
.partner-ticker__group {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  padding-inline: 6px;
}
.partner-ticker__item {
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--coffee-dark);
  box-shadow: var(--sh-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  direction: rtl;
}
.partner-ticker__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.partner-ticker__item img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
}
.partner-ticker__item span {
  display: grid;
  gap: 1px;
  text-align: start;
}
.partner-ticker__item strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: .6px;
}
.partner-ticker__item small {
  color: var(--ink-soft);
  font-size: 11px;
}
.ad-card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); transition: var(--t-med);
  display: flex; flex-direction: column;
}
.ad-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.ad-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.ad-card__media img { width: 100%; height: 100%; object-fit: cover; transition: var(--t-slow); }
.ad-card:hover .ad-card__media img { transform: scale(1.06); }
.ad-card__badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(43,27,14,0.7); color: var(--cream);
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.ad-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ad-card__brand {
  font-family: var(--font-en); letter-spacing: 2px; font-size: 12px;
  color: var(--gold); font-weight: 600;
}
.ad-card__title { font-size: 18px; color: var(--coffee-dark); }
.ad-card__desc { font-size: 14px; color: var(--ink-soft); flex: 1; }
.ad-card__cta {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  color: var(--coffee-dark); font-weight: 700; font-size: 14px;
  padding: 8px 0; transition: var(--t-fast);
}
.ad-card__cta:hover { color: var(--gold); gap: 10px; }

/* Product cards */
.product-card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm);
  transition:
    transform .55s cubic-bezier(.22, 1, .36, 1),
    box-shadow .55s cubic-bezier(.22, 1, .36, 1);
  display: flex; flex-direction: column;
  will-change: transform;
}
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-7px);
  box-shadow: 0 18px 34px rgba(43, 27, 14, .16);
}
.product-card.is-disabled .product-card__media img {
  filter: grayscale(0.25) brightness(0.78);
}
.product-card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--cream-soft);
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.01);
  transition:
    transform 3s cubic-bezier(.22, 1, .36, 1),
    filter 3s ease;
  will-change: transform;
}
.product-card:hover .product-card__media img,
.product-card:focus-within .product-card__media img {
  transform: scale(1.1);
  filter: saturate(1.05) contrast(1.02);
}
#best-sellers-grid .product-card__media img {
  transform-origin: center;
  transition:
    transform 2.4s cubic-bezier(.16, 1, .3, 1),
    filter 1.8s ease;
}
#best-sellers-grid .product-card:hover .product-card__media img,
#best-sellers-grid .product-card:focus-within .product-card__media img {
  transform: scale(1.14);
}
#best-sellers-grid .product-card__tag {
  color: #111;
}
#best-sellers-grid .product-card {
  cursor: pointer;
}
.product-card__tag {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #fff; font-size: 11px; font-weight: 700;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), box-shadow .55s ease;
}
.product-card:hover .product-card__tag,
.product-card:focus-within .product-card__tag {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(43, 27, 14, .16);
}
.product-card__tag.muted { background: rgba(43,27,14,0.7); }
.product-card__tag--unavailable {
  background: #8c2f25;
  color: #fff7ec;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 12px;
  box-shadow: 0 8px 18px rgba(43, 27, 14, 0.24);
}
.product-card__body {
  background: var(--beige-warm); padding: 16px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.product-card__body h3 { font-size: 17px; color: var(--coffee-dark); }
.product-card__body p {
  font-size: 13px; color: var(--ink-soft); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.product-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-weight: 700; color: var(--coffee-dark); font-size: 15px; }
.price span { font-size: 22px; color: var(--gold); font-family: var(--font-display); margin-inline-end: 4px; }
.price.big span { font-size: 28px; }
.add-btn {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--coffee-dark); color: var(--cream);
  display: grid; place-items: center; transition: var(--t-fast);
}
.add-btn:hover { background: var(--coffee); transform: scale(1.06); }
.add-btn.pop { animation: pop 0.35s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); background: var(--gold); } 100% { transform: scale(1); } }

.cafe-offers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.offer-card {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(240,223,199,.82));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh-sm);
}
.offer-card--members {
  position: relative;
  border-color: rgba(184, 135, 70, .58);
  background:
    radial-gradient(circle at 100% 0, rgba(184, 135, 70, .17), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(244,228,204,.9));
  box-shadow: 0 16px 38px rgba(73, 45, 26, .12);
}
.offer-card--members::before {
  content: "خاص بالأعضاء";
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--coffee-dark);
  color: var(--cream);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}
.offer-card__media {
  width: 116px;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(112,72,42,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.offer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.offer-card__kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}
.offer-card h3 { font-size: 22px; margin-bottom: 6px; }
.offer-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.offer-card__content { min-width: 0; }
.offer-card__membership-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(91, 57, 32, .08);
  color: var(--coffee-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.55;
}
.offer-card__membership-note.is-active {
  background: rgba(21, 128, 61, .1);
  color: #166534;
}
.offer-card__price {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--coffee-dark);
  color: var(--cream);
  display: grid;
  place-items: center;
  align-content: center;
  box-shadow: var(--sh-md);
}
.offer-card__price span {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.offer-card__price small { color: var(--gold-soft); font-weight: 800; }
.offer-card .btn { grid-column: 1 / -1; justify-self: start; }
.offer-card:not(:has(.offer-card__media)) {
  grid-template-columns: 1fr auto;
}

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.about__lead { font-size: 17px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 30px; }
.about__features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about__feat { display: flex; gap: 12px; align-items: flex-start; }
.about__feat-icon {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--cream);
  background: linear-gradient(135deg, var(--coffee-dark), var(--coffee));
}
.about__feat h4 { font-size: 16px; margin-bottom: 4px; }
.about__feat p  { font-size: 13px; color: var(--ink-soft); }
.about__visual {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-lg); background: var(--beige-warm);
}
.about__visual img { width: 100%; height: 100%; object-fit: contain; }
.about__since {
  position: absolute; bottom: 18px; right: 18px;
  background: rgba(255,255,255,0.95); border-radius: var(--r-md);
  padding: 14px 18px; box-shadow: var(--sh-md); text-align: center;
}
.about__since .l { font-size: 11px; color: var(--ink-soft); }
.about__since .y { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--gold); line-height: 1; }
.about__since .d { font-size: 11px; color: var(--ink-soft); }

.reviews-band { background: rgba(234,217,191,0.32); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh-sm);
}
.review-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 12px;
}
.review-card p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 14px;
}
.review-card strong { color: var(--coffee-dark); }
.review-submit { margin-top: 22px; }
.review-form {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 22px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-sm);
}
.review-form__kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}
.review-form h3 { font-size: 22px; margin-bottom: 8px; }
.review-form p {
  color: var(--ink-soft);
  line-height: 1.8;
}
.review-form__fields {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
}
.review-form__text,
.review-form__fields .btn {
  grid-column: 1 / -1;
}
.review-form__fields .btn {
  justify-self: start;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.visit-card,
.hours-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--sh-sm);
}
.visit-card p {
  max-width: 640px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-top: 12px;
}
.visit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hours-card h3 { margin-bottom: 14px; }
.hours-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.hours-card li strong {
  color: var(--coffee-dark);
  text-align: left;
}

/* Payments */
.payments { padding: 60px 0; text-align: center; background: var(--cream); }
.payments__list { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--sh-sm); color: var(--coffee-dark); font-weight: 600;
}

/* ---------- 5. Menu / chatbot ---------- */
.menu-toolbar { margin-bottom: 18px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; padding: 10px 14px;
  border-radius: 999px; border: 1.5px solid var(--line-strong);
  max-width: 520px; margin: 0 auto;
  transition: var(--t-fast);
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,135,70,0.15); }
.search__icon { color: var(--ink-soft); display: inline-grid; place-items: center; }
.search input { border: none; padding: 4px 0; background: transparent; flex: 1; }
.search input:focus { box-shadow: none; }

.cat-chips {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 6px 4px 14px; margin-bottom: 24px;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.menu-product-card {
  cursor: pointer;
}
.menu-product-card.is-entering {
  opacity: 0;
  animation: menuCardIn .18s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: var(--card-delay, 0ms);
  will-change: transform, opacity;
}
.menu-product-card .add-btn { position: relative; z-index: 2; }
.menu-scroll-sentinel {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin-top: 18px;
}
.menu-scroll-sentinel.hidden { display: none; }
.menu-scroll-sentinel::after {
  content: "";
  width: 26px;
  height: 26px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--coffee-dark);
  border-radius: 50%;
  animation: menuScrollSpinner .72s linear infinite;
}
.menu-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
@keyframes menuCardIn {
  from {
    opacity: 0;
    transform: translate3d(0, 5px, 0) scale(.995);
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}
@keyframes menuScrollSpinner {
  to { transform: rotate(360deg); }
}

/* Sheet (product modal) */
.sheet {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.sheet.open { display: flex; }
.sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(43,27,14,0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sheet__panel {
  position: relative; width: min(100%, 640px);
  max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 24px;
  padding: 0;
  box-shadow: var(--sh-lg);
  animation: modalIn .16s cubic-bezier(.22, 1, .36, 1);
  will-change: transform, opacity;
}
.sheet__close {
  position: absolute; top: 12px; left: 12px;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--coffee-dark);
  display: grid; place-items: center; font-size: 18px;
  z-index: 3; box-shadow: var(--sh-sm);
}
@keyframes slideUp { from { transform: translateY(22px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes modalIn { from { transform: translateY(8px) scale(.995); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }

.sheet-product__media {
  height: 300px; overflow: hidden; background: var(--cream-soft);
}
.sheet-product__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: sheetImageIn .22s cubic-bezier(.22, 1, .36, 1);
}
.sheet-product--mobile .sheet-product__media { position: relative; }
.sheet-product--mobile .sheet-product__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,27,14,.02) 38%, rgba(43,27,14,.76) 100%);
  pointer-events: none;
}
.sheet-product__media-overlay {
  position: absolute; z-index: 1; inset: auto 18px 16px;
  display: flex; align-items: end; justify-content: space-between; gap: 12px; color: #fff;
}
.sheet-product__category {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: rgba(43,27,14,.42); backdrop-filter: blur(8px); font-size: 11px; font-weight: 700;
}
.sheet-product__price { display: grid; gap: 2px; text-align: left; }
.sheet-product__price span { color: rgba(255,255,255,.8); font-size: 10px; }
.sheet-product__price strong { font-size: 18px; line-height: 1.2; }
.sheet-product__content { padding: 26px 28px 24px; }
.sheet-product__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; margin-bottom: 22px;
}
.sheet-product__head h3 { font-size: 28px; margin-bottom: 8px; }
.sheet-product__head p { color: var(--ink-soft); font-size: 15px; line-height: 1.8; margin-bottom: 0; }
.sheet-product__eyebrow { color: var(--gold-dark); font-size: 11px !important; font-weight: 700; margin-bottom: 4px !important; }
.sheet-product__info-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.sheet-product__info-row span {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 11px; font-weight: 700;
}
.sheet-product__meta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 16px; border-radius: 999px;
  background: var(--cream-soft); color: var(--coffee-dark); font-weight: 700;
}
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.product-specs span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(184,135,70,.1);
  color: var(--coffee-dark);
  font-size: 12px;
  font-weight: 700;
}
.sheet-section { margin-top: 18px; }
.sheet-section h4 {
  font-size: 15px; margin-bottom: 12px; color: var(--coffee-dark);
  display: flex; gap: 6px; align-items: baseline;
}
.sheet-section h4 span { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.extras { display: grid; gap: 8px; }
.extras--pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.extra {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; transition: var(--t-fast);
}
.extra:hover { border-color: var(--gold-soft); }
.extra.on    { border-color: var(--gold); background: rgba(184,135,70,0.08); }
.extra input { accent-color: var(--coffee-dark); }
.extra__name  { flex: 1; font-size: 14px; }
.extra__price { font-weight: 700; color: var(--gold); }
.extra-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; color: var(--coffee-dark);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .28s ease, border-color .28s ease, color .28s ease, transform .28s ease;
}
.extra-pill input { position: absolute; opacity: 0; pointer-events: none; }
.extra-pill:hover,
.extra-pill.on {
  border-color: var(--coffee-dark);
  background: rgba(91,58,31,.08);
  transform: translateY(-1px);
}
.sheet textarea {
  min-height: 66px;
  border-radius: 18px;
  resize: vertical;
}

.sheet-foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.sheet-foot--sticky {
  position: sticky; bottom: 0;
  margin-top: 0; padding: 18px 28px 22px;
  background: linear-gradient(180deg, rgba(250,245,236,0), var(--bg) 28%);
}
.sheet-product--mobile .sheet-foot--sticky {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: end; gap: 12px;
  border-top: 1px solid var(--line); background: rgba(250,245,236,.96); backdrop-filter: blur(10px);
}
.sheet-product__quantity { display: grid; gap: 5px; }
.sheet-product__quantity > span { color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.sheet-product__quantity .qty-stepper { width: 100%; justify-content: space-between; gap: 2px; padding: 4px; }
.sheet-product__quantity .qty-stepper button { width: 29px; height: 29px; }
.sheet-foot--sticky .btn {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; border-radius: 20px; padding: 0 24px;
}
.sheet-foot--sticky .btn.is-disabled {
  background: #8f8172;
  box-shadow: none;
  opacity: 1;
}
.sheet-foot--sticky strong { font-size: 17px; }
.qty-stepper {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; padding: 6px; border-radius: 999px;
  border: 1.5px solid var(--line-strong);
}
.qty-stepper button {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--cream-soft); color: var(--coffee-dark);
  display: grid; place-items: center;
}
.qty-stepper button:hover { background: var(--beige-warm); }
.qty-stepper span { min-width: 22px; text-align: center; font-weight: 700; }
.qty-stepper.sm button { width: 28px; height: 28px; }
@keyframes sheetImageIn {
  from { transform: scale(1.03); opacity: .82; }
  to { transform: scale(1); opacity: 1; }
}

/* Chatbot */
.chat-fab {
  position: fixed; bottom: 96px; left: 20px; z-index: 70;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--chat-accent, var(--coffee)));
  color: #fff; font-weight: 700; box-shadow: var(--sh-gold);
  transition: var(--t-med);
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab--icon-only { width: 52px; height: 52px; padding: 0; justify-content: center; }
.chat-fab--icon-only span { display: none; }
.has-partner-ticker .chat-fab { bottom: 104px; }

.chat-panel {
  position: fixed; bottom: 0; left: 0; z-index: 75;
  width: 100%; max-width: 380px;
  background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-lg); display: flex; flex-direction: column;
  height: 70vh; max-height: 600px;
  transform: translateY(110%); transition: transform var(--t-med);
}
.chat-panel.open { transform: translateY(0); }
.chat-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--coffee-dark); color: var(--cream);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.chat-panel__title { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(135deg, var(--gold), var(--chat-accent, var(--coffee)));
}
.chat-panel__title .t { font-weight: 700; font-size: 15px; }
.chat-panel__title .s { font-size: 11px; opacity: 0.8; }
.chat-panel__close {
  width: 30px; height: 30px; border-radius: 999px;
  background: rgba(255,255,255,0.15); color: var(--cream);
}
.chat-panel__body { flex: 1; padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; }
.chat-msg--bot { justify-content: flex-start; }
.chat-msg--me  { justify-content: flex-end; }
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px; border-radius: 16px;
  background: var(--cream-soft); color: var(--coffee-dark);
  font-size: 14px; line-height: 1.55;
  animation: bubbleIn .25s ease;
}
.chat-msg--me .chat-bubble {
  background: var(--coffee-dark); color: var(--cream);
  border-bottom-right-radius: 4px;
}
.chat-msg--bot .chat-bubble { border-bottom-left-radius: 4px; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.dots { display: inline-flex; gap: 4px; }
.dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--coffee);
  animation: blink 1.2s infinite ease-in-out;
}
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); } 40% { opacity: 1; transform: scale(1); } }

.chat-panel__quick {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 14px; border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}
.chip--quick { padding: 7px 12px; font-size: 13px; background: #fff; }

.chat-recs { display: grid; gap: 8px; max-width: 100%; }
.chat-rec {
  display: flex; gap: 10px; background: #fff;
  padding: 8px; border-radius: var(--r-md); border: 1px solid var(--line);
}
.chat-rec img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.chat-rec__b { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.chat-rec__t { font-weight: 700; font-size: 13px; color: var(--coffee-dark); }
.chat-rec__p { font-size: 12px; color: var(--gold); font-weight: 700; }

/* KOOB Assistant — app-like guided support */
.chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 104;
  border: 0;
  background: rgba(31, 20, 13, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(5px);
  transition: opacity .24s ease, visibility .24s ease;
}
.chat-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
.chat-panel {
  z-index: 105;
  left: 20px;
  bottom: 20px;
  width: min(410px, calc(100vw - 40px));
  max-width: 410px;
  height: min(720px, calc(100dvh - 40px));
  max-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(91,58,31,.13);
  border-radius: 28px;
  background: #fffdf9;
  box-shadow: 0 30px 80px rgba(43,27,14,.28);
}
.chat-panel__head {
  flex: 0 0 auto;
  min-height: 76px;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(213,164,99,.28), transparent 38%),
    linear-gradient(135deg, #3a2419, var(--chat-accent, #563526));
}
.chat-avatar {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  font-family: "Reem Kufi", sans-serif;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.chat-panel__title .t { font-size: 16px; font-weight: 900; }
.chat-panel__title .s { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 10px; opacity: .82; }
.chat-panel__title .s i { width: 7px; height: 7px; border-radius: 50%; background: #6ee7a1; box-shadow: 0 0 0 4px rgba(110,231,161,.12); }
.chat-panel__title { min-width: 0; }
.chat-panel__title > div:last-child { min-width: 0; }
.chat-panel__title .t,
.chat-panel__title .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-panel__head-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.chat-panel__clear {
  min-width: 58px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
}
.chat-panel__clear:active { transform: scale(.96); background: rgba(255,255,255,.17); }
.chat-panel__close { width: 42px; height: 42px; display: grid; place-items: center; }
.chat-panel__context {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(91,58,31,.09);
  background: #f5ede1;
  color: var(--coffee);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-panel__body {
  min-height: 0;
  padding: 16px;
  gap: 11px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background:
    linear-gradient(rgba(255,253,249,.92), rgba(255,253,249,.92)),
    radial-gradient(circle at 12px 12px, rgba(184,135,70,.12) 1px, transparent 1px);
  background-size: auto, 24px 24px;
}
.chat-msg { width: 100%; }
.chat-bubble {
  max-width: 88%;
  padding: 11px 13px;
  border: 1px solid rgba(91,58,31,.08);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(43,27,14,.06);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.chat-msg--me .chat-bubble {
  border-color: transparent;
  border-radius: 17px 17px 5px 17px;
  background: linear-gradient(135deg, var(--chat-accent, #4a2d20), #623d28);
  box-shadow: 0 8px 18px rgba(74,45,32,.16);
}
.chat-msg--bot .chat-bubble { border-radius: 17px 17px 17px 5px; }
.chat-panel__quick {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  border-top: 1px solid rgba(91,58,31,.08);
  background: #fffaf3;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.chat-panel__quick::-webkit-scrollbar { display: none; }
.chat-panel__quick[hidden],
.chat-panel__context[hidden] { display: none; }
.chat-quick-action {
  min-height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(184,135,70,.3);
  border-radius: 14px;
  background: #fff;
  color: var(--coffee-dark);
  scroll-snap-align: start;
  box-shadow: 0 4px 12px rgba(43,27,14,.05);
}
.chat-quick-action span { font-size: 15px; }
.chat-quick-action strong { font-size: 11px; white-space: nowrap; }
.chat-quick-action:active { transform: scale(.97); }
.chat-composer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(91,58,31,.1);
  background: rgba(255,255,255,.98);
}
.chat-composer input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(91,58,31,.14);
  border-radius: 15px;
  background: #f8f4ee;
  color: var(--coffee-dark);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.chat-composer input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,135,70,.12); background: #fff; }
.chat-composer button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--chat-accent, var(--coffee-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(74,45,32,.2);
}
.chat-actions { width: min(88%, 320px); display: flex; flex-wrap: wrap; gap: 7px; }
.chat-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 150px;
  padding: 9px 12px;
  border: 1px solid var(--chat-accent, var(--coffee-dark));
  border-radius: 13px;
  background: var(--chat-accent, var(--coffee-dark));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.chat-action--ghost { background: #fff; color: var(--coffee-dark); border-color: rgba(91,58,31,.2); }
.chat-recs { width: min(100%, 330px); }
.chat-recs--no-images .chat-rec { min-height: 64px; }
.chat-rec { min-height: 78px; align-items: center; border-radius: 15px; box-shadow: 0 5px 14px rgba(43,27,14,.05); }
.chat-rec img { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 13px; }
.chat-rec__b { min-width: 0; gap: 4px; }
.chat-rec__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-rec .btn { align-self: flex-start; min-height: 34px; padding: 6px 10px; border-radius: 10px; font-size: 10px; }

@media (max-width: 640px) {
  body.chat-open { overflow: hidden; }
  .chat-panel {
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: min(88dvh, 760px);
    max-height: 88dvh;
    border-width: 1px 0 0;
    border-radius: 25px 25px 0 0;
    transform: translateY(105%);
  }
  .chat-panel.open { transform: translateY(0); }
  .chat-panel__head { min-height: 72px; border-radius: 24px 24px 0 0; }
  .chat-panel__head { padding-inline: 12px; }
  .chat-panel__body { padding: 13px 12px; }
  .chat-bubble { max-width: 91%; }
  .chat-actions { width: 91%; }
  .chat-fab {
    left: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.82);
  }
  .chat-fab span { display: none; }
  .has-partner-ticker .chat-fab,
  .customer-menu.has-partner-ticker .chat-fab { bottom: calc(142px + env(safe-area-inset-bottom)); }
  .customer-checkout .chat-fab,
  .customer-confirmation .chat-fab,
  .customer-track .chat-fab { display: inline-flex; }
}

@media (max-width: 350px) {
  .chat-avatar { width: 40px; height: 40px; flex-basis: 40px; }
  .chat-panel__title { gap: 7px; }
  .chat-panel__title .t { font-size: 14px; }
  .chat-panel__title .s { max-width: 110px; }
  .chat-panel__clear { min-width: 42px; width: 42px; padding: 0; }
  .chat-panel__clear span { display: none; }
}

/* ---------- 6. Cart / checkout / confirmation / track ---------- */
.cart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: flex-start; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 14px;
  background: #fff; padding: 14px; border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.cart-row img { width: 90px; height: 90px; border-radius: var(--r-md); object-fit: cover; }
.cart-row h3 { font-size: 16px; margin-bottom: 4px; }
.cart-row__ex, .cart-row__notes { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.cart-row__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.cart-summary {
  background: #fff; padding: 22px; border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); position: sticky; top: 100px;
}
.cart-summary h3 { margin-bottom: 16px; }
.cart-summary .row, .row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.cart-summary .row.total, .row.total {
  border-bottom: none; padding-top: 14px; margin-top: 8px;
  font-size: 18px; font-weight: 700; color: var(--coffee-dark);
  border-top: 2px solid var(--coffee-dark);
}
.cart-mobile-action { display: none; }

.empty-state {
  text-align: center; padding: 70px 20px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.empty-state__icon {
  width: 80px; height: 80px; border-radius: 999px;
  margin: 0 auto 18px;
  background: var(--cream-soft); color: var(--coffee);
  display: grid; place-items: center;
}
.empty-state h2 { margin-bottom: 8px; }
.empty-state p  { color: var(--ink-soft); margin-bottom: 18px; }

/* Stepper */
.stepper {
  display: flex; gap: 8px; margin: 16px auto 28px;
  max-width: 720px; padding: 0 10px;
}
.step { flex: 1; text-align: center; }
.step__dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--ink-soft);
  border: 2px solid var(--line-strong);
  display: grid; place-items: center; font-weight: 700;
  margin: 0 auto 6px;
  transition: var(--t-fast);
}
.step.active .step__dot { background: var(--coffee-dark); color: var(--cream); border-color: transparent; box-shadow: var(--sh-md); }
.step.done   .step__dot { background: var(--gold); color: #fff; border-color: transparent; }
.step__lbl { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.step.active .step__lbl { color: var(--coffee-dark); }
.checkout-step-title {
  display: none;
  width: 100%;
  margin-top: 6px;
  text-align: center;
  color: var(--coffee-dark);
  font-weight: 800;
}

.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: flex-start; }
.checkout-aside {
  background: #fff; padding: 22px; border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); position: sticky; top: 100px;
}
.checkout-aside h3 { margin-bottom: 12px; }
.checkout-summary > summary { list-style: none; }
.checkout-summary > summary::-webkit-details-marker { display: none; }
@media (min-width: 761px) {
  .checkout-summary > summary { display: none; }
}
.aside-list { margin-bottom: 12px; }
.aside-row {
  display: flex; justify-content: space-between; font-size: 13px;
  padding: 5px 0; color: var(--ink-soft);
}

.form-card {
  background: #fff; padding: 24px; border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); margin-bottom: 16px;
}
.form-card h3 { margin-bottom: 14px; font-size: 18px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.choice {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 14px; border-radius: var(--r-lg);
  border: 2px solid var(--line-strong); background: #fff;
  text-align: center; transition: var(--t-fast); cursor: pointer;
}
.choice:hover { border-color: var(--gold-soft); }
.choice.on    { border-color: var(--gold); background: rgba(184,135,70,0.08); box-shadow: var(--sh-md); }
.choice__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--coffee-dark), var(--coffee));
  margin-bottom: 4px;
}
.choice.on .choice__icon { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); }
.choice__t { font-weight: 700; color: var(--coffee-dark); }
.choice__d { font-size: 12px; color: var(--ink-soft); }
.pickup-time-grid { grid-template-columns: repeat(4, 1fr); }
.table-qr {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}
.table-qr__start {
  width: fit-content;
}
.table-scanner {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--cream-soft);
}
.table-scanner__camera {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--coffee-deep);
}
.table-scanner__camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.table-scanner__frame {
  position: absolute;
  inset: 18%;
  border: 3px solid rgba(250,245,236,.92);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(43,27,14,.28);
}
.table-scanner__status {
  color: var(--coffee-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.delivery-location-btn {
  width: fit-content;
  margin: 0 0 12px;
}

.info-note {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 14px; border-radius: var(--r-md);
  background: rgba(184,135,70,0.1); color: var(--coffee-dark);
  font-size: 13px; margin-top: 12px;
}
.info-note.warn { background: rgba(220, 130, 50, 0.14); color: #7a3a10; }
.delivery-map-confirm { overflow:hidden; margin-top:14px; border:1px solid var(--line-strong); border-radius:var(--r-lg); background:#fff; }
.delivery-map-confirm iframe { width:100%; height:230px; display:block; border:0; background:var(--cream-soft); }
.delivery-map-confirm > div { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 15px; }
.delivery-map-confirm span { display:grid; gap:3px; }
.delivery-map-confirm strong { color:var(--coffee-dark); font-size:13px; }
.delivery-map-confirm small { color:var(--ink-soft); font-size:11px; line-height:1.65; }
.delivery-map-confirm a { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; padding:9px 12px; border-radius:10px; background:var(--coffee-dark); color:#fff; font-size:11px; font-weight:800; text-decoration:none; }
.delivery-map-confirm__actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.delivery-map-confirm__actions button { min-height:36px; padding:8px 12px; border:1px solid var(--gold); border-radius:10px; background:#fff8eb; color:var(--coffee-dark); font:800 11px "Cairo",sans-serif; }
.delivery-map-confirm__actions button:disabled { border-color:#83c69f; background:#eaf8ef; color:#187546; opacity:1; }
.delivery-map-confirm.is-confirmed { border-color:#83c69f; box-shadow:0 0 0 3px rgba(24,117,70,.08); }
.delivery-resolved-address { display:grid; gap:4px; margin-top:12px; padding:11px 13px; border:1px dashed var(--gold-soft); border-radius:var(--r-md); background:rgba(184,135,70,.07); }
.delivery-resolved-address span { color:var(--ink-soft); font-size:10px; font-weight:700; }
.delivery-resolved-address strong { color:var(--coffee-dark); font-size:12px; line-height:1.7; }
@media (max-width:560px) {
  .delivery-map-confirm iframe { height:190px; }
  .delivery-map-confirm > div { align-items:stretch; flex-direction:column; }
  .delivery-map-confirm__actions { display:grid; grid-template-columns:1fr; }
  .delivery-map-confirm a,.delivery-map-confirm__actions button { justify-content:center; width:100%; }
}

.pay-list { display: grid; gap: 10px; }
.pay-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: #fff;
  border: 2px solid var(--line-strong); border-radius: var(--r-md);
  cursor: pointer; transition: var(--t-fast);
}
.pay-opt:hover { border-color: var(--gold-soft); }
.pay-opt.on    { border-color: var(--gold); background: rgba(184,135,70,0.08); }
.pay-opt input { accent-color: var(--coffee-dark); }
.pay-opt__i {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--cream-soft); color: var(--coffee-dark);
}
.pay-opt__t { font-weight: 600; color: var(--coffee-dark); }
.payment-link-launch {
  width: 100%;
  min-height: 50px;
  margin-top: 13px;
  justify-content: center;
  gap: 8px;
}
.payment-link-return-note {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

.review-list li {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px dashed var(--line); font-size: 14px;
}
.review-list li.total {
  border-bottom: none; border-top: 2px solid var(--coffee-dark);
  margin-top: 6px; padding-top: 14px;
  font-size: 17px; color: var(--coffee-dark);
}

.nav-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }

/* Confirmation */
.confirm-page { display: grid; place-items: center; }
.confirm-card {
  background: #fff; border-radius: var(--r-xl);
  padding: 40px 32px; max-width: 520px; width: 100%;
  text-align: center; box-shadow: var(--sh-md);
}
.confirm-check {
  width: 86px; height: 86px; border-radius: 999px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--gold), var(--coffee));
  color: #fff; display: grid; place-items: center;
  box-shadow: var(--sh-gold); animation: pop .5s ease;
}
.confirm-card h1 { font-size: 24px; margin-bottom: 6px; }
.confirm-id {
  font-family: var(--font-en); font-size: 26px; font-weight: 700; color: var(--gold);
  letter-spacing: 2px; margin: 6px 0 18px;
}
.confirm-note {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,135,70,0.12); color: var(--coffee-dark);
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; margin-top: 16px;
}
.confirm-ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }

/* Tracking */
.track-card {
  background: #fff; padding: 26px; border-radius: var(--r-xl); box-shadow: var(--sh-sm);
}
.track-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.track-id { font-family: var(--font-en); font-weight: 700; font-size: 20px; color: var(--coffee-dark); letter-spacing: 1.5px; }
.track-eta { text-align: left; }
.eta { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 18px; }
.track-eta__source {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .track-head { align-items: flex-start; gap: 14px; }
  .track-eta { min-width: 115px; }
  .track-eta__source { white-space: normal; line-height: 1.55; }
}

.timeline { position: relative; padding-inline-start: 30px; }
.timeline::before {
  content: ""; position: absolute; top: 14px; bottom: 14px; right: 14px;
  width: 2px; background: var(--line-strong);
}
.t-step {
  position: relative; padding: 10px 0 18px; display: flex; gap: 14px;
}
.t-dot {
  position: absolute; right: -2px; top: 8px;
  width: 32px; height: 32px; border-radius: 999px;
  background: #fff; border: 2px solid var(--line-strong);
  color: var(--ink-soft); display: grid; place-items: center;
  z-index: 1; transition: var(--t-fast);
}
.t-step.done .t-dot   { background: var(--gold); color: #fff; border-color: transparent; }
.t-step.active .t-dot {
  background: var(--coffee-dark); color: var(--cream); border-color: transparent;
  box-shadow: 0 0 0 6px rgba(91,58,31,0.12);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(184,135,70,0.4); }
  100% { box-shadow: 0 0 0 14px rgba(184,135,70,0);  }
}
.t-body { padding-inline-start: 42px; }
.t-title { font-weight: 700; color: var(--coffee-dark); }
.t-desc  { font-size: 13px; color: var(--ink-soft); }

.wa-card {
  margin: 22px 0;
  background: #e7f7ef; border-radius: var(--r-md);
  padding: 14px 16px;
}
.wa-card__h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #1c6f3f; margin-bottom: 8px; }
.wa-bubble {
  background: #fff; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; color: var(--ink); border: 1px solid rgba(28, 111, 63, 0.18);
}

/* ---------- 7. Splash screen ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200;
  background: #fdfaf4;
  overflow: hidden;
  display: grid; place-items: center;
  transition: opacity .6s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash__skip {
  position: absolute; top: 18px; left: 18px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.42); color: rgba(91,58,31,.62);
  border: 1px solid rgba(91,58,31,.18);
  font-size: 13px; font-weight: 600; z-index: 4;
}
.splash__skip:hover { background: rgba(255,255,255,0.72); color: var(--coffee-dark); }
.splash__beans { position: absolute; inset: 0; pointer-events: none; }
.splash__bean {
  position: absolute; width: 12px; height: 18px;
  background: rgba(122,102,86,0.18); border-radius: 999px;
  transform: rotate(8deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(8deg); }
  50%     { transform: translateY(-18px) rotate(14deg); }
}

.splash__intro {
  position: relative;
  width: min(94vw, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: filter .45s ease, opacity .45s ease, transform .45s ease;
}
.splash__intro.exit {
  filter: blur(8px);
  opacity: 0;
  transform: scale(.97);
}
.splash__video {
  width: 100%;
  max-height: min(88vh, 860px);
  object-fit: contain;
  mix-blend-mode: normal;
  filter: none;
  opacity: 1;
  border-radius: 0;
}
.splash__canvas {
  display: none;
  width: 100%;
  max-height: min(88vh, 860px);
  object-fit: contain;
}
.splash__intro.has-keyed-video .splash__video {
  display: none;
}
.splash__intro.has-keyed-video .splash__canvas {
  display: block;
}
.splash__caption {
  display: none;
}

.splash__logo {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: logoIn .8s cubic-bezier(.2,.7,.2,1);
}
.splash__logo.hidden { display: none; }
.splash__logo-disk {
  width: 160px; height: 160px; border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(184,135,70,0.15), 0 24px 54px rgba(59,42,26,0.16);
  overflow: hidden; background: var(--cream);
}
.splash__logo-disk img { width: 100%; height: 100%; object-fit: cover; }
.splash__logo-tag { color: var(--coffee-dark); text-align: center; font-family: var(--font-display); font-size: 18px; }
.splash__logo-tag strong { display: inline-block; margin-inline-start: 4px; color: var(--gold); font-size: 22px; letter-spacing: 2px; }
.splash__logo-tag .small { display: block; font-family: var(--font-quote); font-size: 14px; opacity: 0.8; margin-top: 6px; }
@keyframes logoIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.community-btn {
  border: 1px solid rgba(184, 135, 70, .34);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(250,245,236,.82));
  color: var(--coffee-dark);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  font: 800 13px var(--font-main);
  box-shadow: 0 10px 24px rgba(43, 27, 14, .08);
  cursor: pointer;
}
.community-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(36, 22, 13, .55);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.community-modal__panel {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 62, 41, .32) transparent;
  background: var(--cream);
  border: 1px solid rgba(184, 135, 70, .22);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(36, 22, 13, .28);
}
.community-modal__panel::-webkit-scrollbar { width: 7px; }
.community-modal__panel::-webkit-scrollbar-track { background: transparent; }
.community-modal__panel::-webkit-scrollbar-thumb { background: rgba(92, 62, 41, .28); border-radius: 999px; }
.community-modal__close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(59, 42, 26, .08);
  color: var(--coffee-dark);
  font-size: 22px;
  cursor: pointer;
}
.community-modal__head span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 12px;
}
.community-modal__head h2 {
  margin: 8px 0;
  color: var(--coffee-dark);
  font-size: 26px;
}
.community-modal__head p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}
.community-offer-invite {
  display: grid;
  gap: 5px;
  margin: -2px 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(184, 135, 70, .36);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(240,223,199,.72));
  color: var(--coffee-dark);
}
.community-offer-invite span {
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}
.community-offer-invite strong { font-size: 17px; }
.community-offer-invite small { color: var(--muted); line-height: 1.7; }
.community-form {
  display: grid;
  gap: 12px;
  padding-bottom: 2px;
}
.community-form.hidden { display: none; }
.community-auth-switch {
  display: grid;
  gap: 7px;
  padding: 14px 0 2px;
  border-top: 1px dashed rgba(184, 135, 70, .42);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.community-auth-switch button,
.community-form__back {
  color: var(--gold-dark);
  font: 900 13px var(--font-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.community-form__back {
  justify-self: start;
  padding: 0;
}
.community-form__divider { margin-top: 4px; padding-top: 14px; border-top: 1px dashed rgba(184, 135, 70, .42); color: var(--gold-dark); font-size: 12px; font-weight: 900; }
.community-form label {
  display: grid;
  gap: 7px;
  color: var(--coffee-dark);
  font-weight: 800;
  font-size: 13px;
}
.community-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(92, 62, 41, .16);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  padding: 0 14px;
  font: 700 14px var(--font-main);
  color: var(--coffee-dark);
}
.community-member-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px dashed rgba(184, 135, 70, .42);
  color: var(--coffee-dark);
}
.community-member-card .btn { justify-self: start; margin-top: 4px; }
.community-member-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.account-summary { margin-bottom: 18px; }
.community-form textarea { width: 100%; min-height: 76px; border: 1px solid rgba(92, 62, 41, .16); border-radius: 14px; background: rgba(255,255,255,.82); padding: 12px 14px; resize: vertical; font: 700 14px var(--font-main); color: var(--coffee-dark); }
.account-orders { display: grid; gap: 14px; }
.account-order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-sm); }
.account-order-card__head, .account-order-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-order-card__head > div { display: grid; gap: 3px; }.account-order-card__head strong { color: var(--coffee-dark); font-size: 17px; }.account-order-card__head span:not(.status-pill) { color: var(--muted); font-size: 12px; }.account-order-card > p { margin: 14px 0; color: var(--ink-soft); line-height: 1.8; }.account-order-card__foot { padding-top: 13px; border-top: 1px dashed var(--line); color: var(--coffee-dark); font-weight: 800; font-size: 13px; }
.field-error {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-weight: 800;
  font-size: 12px;
}
.cart-fly-item {
  position: fixed;
  z-index: 1300;
  width: var(--fly-size, 68px);
  height: var(--fly-size, 68px);
  padding: 4px;
  overflow: visible;
  pointer-events: none;
  border: 1px solid rgba(184, 135, 70, .68);
  border-radius: 21px;
  background: rgba(255, 250, 241, .94);
  box-shadow: 0 18px 42px rgba(43, 27, 14, .3), 0 0 0 7px rgba(184, 135, 70, .12);
  transform-origin: center;
  will-change: transform, opacity;
}
.cart-fly-item::before {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: -1;
  border: 2px solid rgba(184, 135, 70, .42);
  border-radius: 27px;
  animation: cartFlyHalo .74s ease-out both;
}
.cart-fly-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}
.cart-arrival-burst {
  position: fixed;
  z-index: 1301;
  width: 12px;
  height: 12px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.cart-arrival-burst::before {
  content: "";
  position: absolute;
  inset: -11px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  animation: cartBurstRing .62s ease-out both;
}
.cart-arrival-burst i {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(184, 135, 70, .72);
  animation: cartBurstSpark .58s ease-out both;
}
.cart-arrival-burst i:nth-child(1) { --spark-x: 27px; --spark-y: -20px; }
.cart-arrival-burst i:nth-child(2) { --spark-x: -25px; --spark-y: -15px; animation-delay: .04s; }
.cart-arrival-burst i:nth-child(3) { --spark-x: 4px; --spark-y: 29px; animation-delay: .08s; }
@keyframes cartFlyHalo { from { opacity: .9; transform: scale(.72); } to { opacity: 0; transform: scale(1.28); } }
@keyframes cartReceive { 0%, 100% { transform: scale(1); } 34% { transform: scale(1.2) rotate(-5deg); } 64% { transform: scale(.94) rotate(3deg); } }
@keyframes cartBadgePop { 0% { transform: scale(.55); } 48% { transform: scale(1.34); } 100% { transform: scale(1); } }
@keyframes cartBurstRing { from { opacity: .9; transform: scale(.35); } to { opacity: 0; transform: scale(1.55); } }
@keyframes cartBurstSpark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(.25); } }
@media (prefers-reduced-motion: reduce) {
  .cart-fly-item::before { animation: none; opacity: .25; }
  .cart-arrival-burst::before,
  .cart-arrival-burst i { animation-duration: .28s; }
  .cart-btn.is-cart-receiving,
  .bottom-nav a.is-cart-receiving .icon-wrap,
  .bottom-nav a.is-cart-receiving .mini-badge { animation-duration: .32s; }
}
.track-community-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 20px; border: 1px solid rgba(184, 135, 70, .38); border-radius: var(--r-lg); background: linear-gradient(135deg, #fffaf2, #f4e4cf); box-shadow: var(--sh-sm); }
.track-community-cta span { color: var(--gold-dark); font-size: 11px; font-weight: 900; letter-spacing: .08em; }.track-community-cta h3 { margin: 5px 0; color: var(--coffee-dark); font-size: 17px; }.track-community-cta p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }.track-community-cta .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 640px) { .track-community-cta { align-items: stretch; flex-direction: column; }.track-community-cta .btn { width: 100%; justify-content: center; } }

/* ---------- 8. Reveal & responsive ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Tablet */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 720px; width: 100%; margin: 0 auto; }
  .about { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .cart-btn .label { display: none; }
  .cart-btn { padding: 9px; }
  .bottom-nav { display: block; }
  .page-pad { padding-bottom: 100px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cafe-offers,
  .reviews-grid,
  .visit-grid,
  .review-form,
  .review-form__fields { grid-template-columns: 1fr; }
  .review-form { padding: 18px; }
  .offer-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .offer-card__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }
  .offer-card__price {
    width: 74px;
    height: 74px;
    justify-self: start;
  }
  .offer-card--members::before {
    top: 28px;
    left: 28px;
  }
  .hours-card li {
    flex-direction: column;
    gap: 4px;
  }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .menu-page .menu-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .menu-page .menu-product-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    min-height: 132px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(43, 27, 14, .08);
  }
  .menu-page .menu-product-card:hover,
  .menu-page .menu-product-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(43, 27, 14, .12);
  }
  .menu-page .menu-product-card .product-card__media {
    aspect-ratio: auto;
    min-height: 132px;
    border-radius: 0;
  }
  .menu-page .menu-product-card .product-card__media img {
    transform: scale(1);
    transition-duration: .6s;
  }
  .menu-page .menu-product-card:hover .product-card__media img,
  .menu-page .menu-product-card:focus-within .product-card__media img {
    transform: scale(1.04);
  }
  .menu-page .menu-product-card .product-card__tag {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 10px;
  }
  .menu-page .menu-product-card .product-card__body {
    padding: 12px;
    gap: 5px;
    min-width: 0;
  }
  .menu-page .menu-product-card .product-card__body h3 {
    font-size: 15px;
    line-height: 1.35;
  }
  .menu-page .menu-product-card .product-card__body p {
    font-size: 12px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }
  .menu-page .menu-product-card .product-card__foot {
    margin-top: 6px;
    align-items: center;
  }
  .menu-page .menu-product-card .price {
    font-size: 12px;
  }
  .menu-page .menu-product-card .price span {
    font-size: 19px;
  }
  .menu-page .menu-product-card .add-btn {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .block { padding: 50px 0; }
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .cart-summary, .checkout-aside { position: static; }
  .about__features { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 24px; padding: 36px 20px 20px; }
  .stepper .step__lbl { display: none; }
  .stepper { flex-wrap: wrap; margin-bottom: 18px; }
  .checkout-step-title { display: block; }
  .choice-grid { grid-template-columns: 1fr; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 14px; }
  .has-partner-ticker .chat-fab { bottom: 154px; }
  .chat-panel { max-width: 100%; height: 80vh; }
  .splash__intro {
    width: 100vw;
    max-width: none;
    transform: scale(1.62);
    transform-origin: center center;
  }
  .splash__intro.exit {
    transform: scale(1.54);
  }
  .splash__video,
  .splash__canvas {
    max-height: 96vh;
  }
  .sheet {
    align-items: flex-end;
    padding: 0;
  }
  .sheet__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    animation: slideUp .16s cubic-bezier(.22, 1, .36, 1);
  }
  .sheet-product__media { height: 250px; }
  .sheet-product__content { padding: 22px 18px 18px; }
  .sheet-product__head h3 { font-size: 24px; }
  .sheet-product__media { height: min(34vh, 270px); }
  .sheet-product__media-overlay { inset-inline: 16px; bottom: 14px; }
  .sheet-product__content { padding-bottom: 14px; }
  .sheet-product__info-row { margin-top: 12px; }
  .sheet-product__meta-row {
    align-items: stretch;
    border-radius: 22px;
  }
  .extras--pills { gap: 8px; }
  .extra-pill { flex: 1 1 calc(50% - 8px); padding-inline: 10px; }
  .sheet-foot--sticky { padding: 16px 18px 20px; }
  .sheet-product--mobile .sheet-foot--sticky { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); }
  .hero__stats { gap: 16px; }
  .hero__chip { padding: 8px 12px; }
  .ad-banner__frame { min-height: 320px; }
  .ad-banner__media { min-height: 320px; }
  .ad-banner__shade {
    background:
      linear-gradient(0deg, rgba(42,26,14,.78), rgba(42,26,14,.12)),
      linear-gradient(90deg, rgba(42,26,14,.18), rgba(42,26,14,.45));
  }
  .ad-banner__content {
    justify-content: flex-end;
    width: 100%;
    padding: 24px;
  }
  .ad-banner__controls { left: 18px; top: 18px; bottom: auto; }
  .ad-banner__nav { width: 38px; height: 38px; }
  .ad-modal {
    align-items: flex-end;
    padding: 0;
  }
  .ad-modal__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  .ad-detail__media { height: 260px; }
  .ad-detail__body { padding: 22px 18px 24px; }
  .ad-detail__link { width: 100%; justify-content: center; }
  .partner-ticker {
    --partner-ticker-base-bottom: 74px;
    bottom: var(--partner-ticker-bottom, var(--partner-ticker-base-bottom));
    width: calc(100% - 18px);
    padding: 8px;
    gap: 8px;
    border-radius: 20px;
  }
  .partner-ticker__label {
    padding: 8px 10px;
    font-size: 12px;
  }
  .partner-ticker__group { gap: 8px; padding-inline: 4px; }
  .partner-ticker__item {
    min-width: 178px;
    padding: 6px 10px;
  }
  .partner-ticker__item img {
    width: 32px;
    height: 32px;
  }
  .toast-stack {
    right: 12px;
    bottom: 144px;
    width: calc(100vw - 24px);
  }
  .has-partner-ticker .toast-stack { bottom: 206px; }
  .toast {
    grid-template-columns: auto 1fr auto;
  }
  .toast__action {
    grid-column: 2 / 3;
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .grid-3, .grid-4, .menu-grid { grid-template-columns: 1fr; }
  .menu-page .menu-product-card {
    grid-template-columns: 104px 1fr;
    min-height: 124px;
  }
  .menu-page .menu-product-card .product-card__media {
    min-height: 124px;
  }
  .cart-row { grid-template-columns: 70px 1fr; }
  .cart-row img { width: 70px; height: 70px; }
}

/* ---------- 9. Customer mobile-app experience ---------- */
@media (max-width: 760px) {
  body {
    overflow-x: clip;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .container { padding-inline: 14px; }
  .site-header__inner { height: 68px; gap: 10px; }
  .brand { min-width: 0; max-width: 52%; min-height: 44px; gap: 8px; flex: 0 1 auto; }
  .brand__text { min-width: 0; }
  .brand__logo { width: 40px; height: 40px; flex: 0 0 40px; }
  .brand__name,
  .brand__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand__name { font-size: 15px; }
  .brand__sub { font-size: 9px; letter-spacing: 1px; }
  .header-actions { min-width: 0; margin-inline-start: auto; gap: 7px; flex: 0 1 auto; }
  .site-header .table-pill { display: none; }
  .cart-btn,
  .community-btn,
  .table-clear,
  .icon-btn,
  .add-btn,
  .ad-banner__nav,
  .sheet__close,
  .ad-modal__close,
  .community-modal__close,
  .toast__close { min-width: 44px; min-height: 44px; }
  .chat-panel__close { width: 44px; height: 44px; }
  .cart-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .community-btn {
    max-width: min(46vw, 180px);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 13px;
    overflow: hidden;
    white-space: nowrap;
  }
  .community-btn [data-community-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .table-banner.show {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: initial;
    gap: 10px;
    padding: 8px 14px;
  }
  .table-banner > svg { display: none; }
  .table-banner > span { min-width: 0; display: flex; align-items: center; gap: 5px; line-height: 1.65; }
  .table-banner .table-clear { min-width: 96px; min-height: 42px; padding-inline: 11px; white-space: nowrap; }
  .btn { min-height: 48px; padding: 12px 18px; }
  .chip { min-height: 44px; padding: 9px 15px; }

  .bottom-nav__inner {
    min-height: 72px;
    padding: 6px max(4px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
  }
  .bottom-nav a {
    min-height: 58px;
    justify-content: center;
    gap: 2px;
    padding: 4px;
    border-radius: 16px;
  }
  .bottom-nav .icon-wrap { width: 40px; height: 34px; }
  .bottom-nav a.active { background: rgba(234,217,191,.5); }
  .page-pad { padding-top: 74px; padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .site-footer { display: none; }

  .section-head,
  .section-head--row { margin-bottom: 20px; text-align: right; }
  .section-title { font-size: clamp(23px, 7vw, 30px); line-height: 1.3; }
  .section-eyebrow { letter-spacing: 2.4px; font-size: 10px; }
  .block { padding: 38px 0; }

  .customer-home .hero { min-height: auto; padding: 26px 0 22px; }
  .customer-home .hero__inner { gap: 24px; }
  .customer-home .hero h1 { font-size: clamp(34px, 11vw, 48px); line-height: 1.18; }
  .customer-home .hero__lead { margin-top: 14px; }
  .customer-home .hero__ctas { margin-top: 20px; gap: 10px; }
  .customer-home .hero__ctas .btn { flex: 1 1 0; padding-inline: 12px; }
  .customer-home .hero__stats { margin-top: 24px; justify-content: space-between; gap: 8px; }
  .customer-home .hero__stats .stat { flex: 1; min-width: 0; }
  .customer-home .hero__visual { border-radius: 24px; }

  .customer-home .ad-banner__frame,
  .customer-home .ad-banner__media { min-height: 300px; }
  .customer-home .ad-banner__content {
    inset: 0;
    width: 100%;
    max-width: none;
    gap: 10px;
    padding: 64px 18px 20px;
  }
  .customer-home .ad-banner__title { font-size: 24px; }
  .customer-home .ad-banner__desc { margin-top: 6px; font-size: 13px; line-height: 1.65; }
  .customer-home .ad-banner__cta { min-height: 44px; padding: 10px 16px; }
  .customer-home .ad-banner__controls { top: 12px; left: 12px; gap: 8px; }
  .customer-home .ad-banner__nav { width: 44px; height: 44px; }
  .ad-banner__dots { gap: 0; }
  .ad-banner__dot {
    position: relative;
    width: 44px;
    height: 44px;
    background: transparent;
  }
  .ad-banner__dot::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--line-strong);
    transform: translate(-50%, -50%);
    transition: var(--t-med);
  }
  .ad-banner__dot.active { width: 44px; background: transparent; }
  .ad-banner__dot.active::after { width: 28px; background: var(--coffee-dark); }

  .customer-home #best-sellers-grid,
  .customer-home .cafe-offers,
  .customer-home .reviews-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 14px;
    gap: 12px;
    padding: 4px 0 14px;
    scrollbar-width: none;
  }
  .customer-home #best-sellers-grid::-webkit-scrollbar,
  .customer-home .cafe-offers::-webkit-scrollbar,
  .customer-home .reviews-grid::-webkit-scrollbar { display: none; }
  .customer-home #best-sellers-grid { grid-auto-columns: minmax(210px, 72vw); }
  .customer-home .cafe-offers { grid-auto-columns: minmax(260px, 86vw); }
  .customer-home .reviews-grid { grid-auto-columns: minmax(245px, 82vw); }
  .customer-home #best-sellers-grid > *,
  .customer-home .cafe-offers > *,
  .customer-home .reviews-grid > * { scroll-snap-align: start; }
  .customer-home #best-sellers-grid .product-card { min-height: 330px; }
  .customer-home #best-sellers-grid .product-card__media { aspect-ratio: 4 / 3; }
  .customer-home .add-btn { width: 46px; height: 46px; border-radius: 14px; }

  .customer-home .offer-card {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 100%;
    padding: 14px;
  }
  .customer-home .offer-card__media { aspect-ratio: 16 / 9; }
  .customer-home .offer-card__price {
    width: auto;
    height: auto;
    min-height: 48px;
    justify-self: stretch;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 4px;
    border-radius: 15px;
  }
  .customer-home .offer-card__price span { font-size: 22px; }
  .customer-home .offer-card .btn { width: 100%; justify-self: stretch; }
  .customer-home .offer-card--members::before { top: 24px; left: 24px; }

  .customer-home .about { gap: 24px; }
  .customer-home .about__lead { margin-bottom: 20px; font-size: 15px; }
  .customer-home .about__features { gap: 12px; }
  .customer-home .about__feat { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.66); }
  .customer-home .review-submit { margin-top: 18px; }
  .customer-home .visit-grid { gap: 12px; }
  .customer-home .payments { padding: 36px 0 calc(96px + env(safe-area-inset-bottom)); }

  .customer-menu .page-head {
    margin: 6px 0 18px;
    text-align: right;
  }
  .customer-menu .page-sub { margin-top: 4px; font-size: 13px; }
  .customer-menu .menu-controls {
    position: sticky;
    top: 64px;
    z-index: 45;
    margin-inline: -14px;
    padding: 10px 14px 0;
    background: rgba(253,250,244,.96);
    border-block: 1px solid rgba(91,58,31,.08);
    box-shadow: 0 10px 24px rgba(43,27,14,.06);
    backdrop-filter: blur(14px);
  }
  .customer-menu .menu-toolbar { margin-bottom: 4px; }
  .customer-menu .search {
    min-height: 52px;
    max-width: none;
    padding: 4px 14px;
    border-radius: 17px;
  }
  .customer-menu .search input {
    min-height: 44px;
    padding: 8px 0;
    font-size: 16px;
  }
  .customer-menu .cat-chips {
    margin-bottom: 0;
    padding: 7px 0 10px;
    scroll-snap-type: inline proximity;
  }
  .customer-menu .cat-chips .chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .customer-menu .menu-grid { margin-top: 14px; }
  .customer-menu .menu-product-card { min-height: 136px; }
  .customer-menu .menu-product-card .product-card__media { min-height: 136px; }
  .customer-menu .menu-product-card .add-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .customer-menu .partner-ticker {
    --partner-ticker-base-bottom: calc(80px + env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    min-height: 54px;
    padding: 5px 7px;
    gap: 6px;
    border-radius: 18px;
    overflow: hidden;
    contain: layout paint;
  }
  .customer-menu .partner-ticker__label {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
  }
  .customer-menu .partner-ticker__group { gap: 6px; padding-inline: 3px; }
  .customer-menu .partner-ticker__item {
    min-width: 154px;
    min-height: 44px;
    padding: 4px 8px;
    gap: 7px;
  }
  .customer-menu .partner-ticker__item img { width: 34px; height: 34px; }
  .customer-menu .partner-ticker__item strong { font-size: 11px; }
  .customer-menu .partner-ticker__item small { font-size: 10px; }
  .customer-menu.has-partner-ticker .page-pad {
    padding-bottom: calc(172px + env(safe-area-inset-bottom));
  }
  .customer-menu.has-partner-ticker .chat-fab {
    bottom: calc(146px + env(safe-area-inset-bottom));
  }
  .customer-menu.has-partner-ticker .toast-stack {
    bottom: calc(198px + env(safe-area-inset-bottom));
  }

  .sheet__panel {
    max-height: 92dvh;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .sheet__panel::-webkit-scrollbar { display: none; }
  .extra-pill { min-height: 44px; padding: 9px 13px; }
  .sheet-product__quantity .qty-stepper { min-height: 52px; }
  .sheet-product__quantity .qty-stepper button,
  .qty-stepper button {
    width: 44px;
    height: 44px;
  }
  .sheet-product--mobile .sheet-foot--sticky {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  }
  .sheet-foot--sticky .btn { min-height: 58px; padding-inline: 14px; }

  .customer-cart .page-head {
    margin: 4px 0 18px;
    text-align: right;
  }
  .customer-cart .cart-list { gap: 10px; }
  .customer-cart .cart-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
    border: 1px solid rgba(91,58,31,.08);
    border-radius: 18px;
  }
  .customer-cart .cart-row img { width: 76px; height: 76px; border-radius: 14px; }
  .customer-cart .cart-row__b { min-width: 0; }
  .customer-cart .cart-row__ex,
  .customer-cart .cart-row__notes { overflow-wrap: anywhere; line-height: 1.65; }
  .customer-cart .cart-row__foot {
    justify-content: flex-start;
    gap: 8px;
  }
  .customer-cart .cart-row__foot .price { margin-inline-start: auto; }
  .customer-cart .qty-stepper.sm button { width: 44px; height: 44px; }
  .customer-cart .qty-stepper.sm { min-height: 52px; padding: 3px; }
  .customer-cart .cart-summary {
    margin-top: 2px;
    padding: 16px;
    border: 1px solid rgba(91,58,31,.1);
    border-radius: 18px;
  }
  .customer-cart .cart-summary h3 { margin-bottom: 8px; }
  .customer-cart .cart-summary > .btn--coffee { display: none; }
  .customer-cart .cart-summary > .btn--ghost { min-height: 46px; margin-top: 12px; }
  .customer-cart .page-pad { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
  .cart-mobile-action {
    position: fixed;
    z-index: 58;
    right: 0;
    left: 0;
    bottom: calc(74px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(253,250,244,.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px rgba(43,27,14,.09);
    backdrop-filter: blur(14px);
  }
  .cart-mobile-action__total { display: grid; gap: 1px; }
  .cart-mobile-action__total span { color: var(--muted); font-size: 10px; font-weight: 700; }
  .cart-mobile-action__total strong { color: var(--coffee-dark); font-size: 17px; white-space: nowrap; }
  .cart-mobile-action .btn { min-height: 52px; margin: 0; border-radius: 17px; }

  .customer-checkout .page-pad {
    padding-top: 16px;
    padding-bottom: calc(188px + env(safe-area-inset-bottom));
  }
  .customer-checkout .checkout-page > .page-head {
    margin: 0 0 10px;
    text-align: right;
  }
  .customer-checkout .checkout-page > .page-head .section-eyebrow { display: none; }
  .customer-checkout .checkout-page > .page-head .section-title { font-size: 24px; }
  .customer-checkout .stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin: 0 -2px 12px;
    padding: 10px 8px 8px;
    border: 1px solid rgba(91,58,31,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 8px 20px rgba(43,27,14,.05);
  }
  .customer-checkout .step { min-width: 0; }
  .customer-checkout .step__dot {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    font-size: 12px;
  }
  .customer-checkout .checkout-step-title {
    grid-column: 1 / -1;
    margin-top: 4px;
    font-size: 13px;
  }
  .customer-checkout .checkout-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .customer-checkout .checkout-main { width: 100%; min-width: 0; }
  .customer-checkout .checkout-aside {
    order: -1;
    width: 100%;
    padding: 0;
    overflow: hidden;
    position: static;
    border: 1px solid rgba(91,58,31,.09);
    border-radius: 17px;
    box-shadow: 0 8px 20px rgba(43,27,14,.05);
  }
  .checkout-summary > summary {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--coffee-dark);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }
  .checkout-summary > summary::-webkit-details-marker { display: none; }
  .checkout-summary > summary strong { white-space: nowrap; }
  .checkout-summary__chevron {
    display: grid;
    place-items: center;
    transition: transform .18s ease;
  }
  .checkout-summary[open] .checkout-summary__chevron { transform: rotate(180deg); }
  .checkout-summary__content {
    padding: 0 14px 14px;
    border-top: 1px solid var(--line);
  }
  .checkout-summary__content .aside-list { margin-top: 8px; }
  .customer-checkout .form-card {
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid rgba(91,58,31,.08);
    border-radius: 19px;
    box-shadow: 0 8px 22px rgba(43,27,14,.06);
  }
  .customer-checkout .form-card h3 { margin-bottom: 10px; font-size: 17px; }
  .customer-checkout .choice-grid { gap: 9px; margin-top: 8px; }
  .customer-checkout .choice {
    min-height: 70px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "icon title" "icon description";
    align-items: center;
    gap: 2px 11px;
    padding: 11px 12px;
    border-width: 1.5px;
    border-radius: 17px;
    text-align: right;
  }
  .customer-checkout .choice__icon {
    grid-area: icon;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 13px;
  }
  .customer-checkout .choice__t { grid-area: title; }
  .customer-checkout .choice__d {
    grid-area: description;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .customer-checkout .pickup-time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-checkout .pickup-time-grid .choice {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 68px;
    padding: 9px;
    gap: 2px 7px;
  }
  .customer-checkout .pickup-time-grid .choice__icon { width: 36px; height: 36px; }
  .customer-checkout .field { margin-bottom: 12px; }
  .customer-checkout .field input,
  .customer-checkout .field select,
  .customer-checkout .field textarea {
    min-height: 52px;
    font-size: 16px;
    border-radius: 15px;
  }
  .customer-checkout .info-note {
    align-items: flex-start;
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    line-height: 1.65;
  }
  .customer-checkout .table-qr__start,
  .customer-checkout .delivery-location-btn { width: 100%; justify-content: center; }
  .customer-checkout .delivery-map-confirm iframe { height: 180px; }
  .customer-checkout .delivery-map-confirm__actions a,
  .customer-checkout .delivery-map-confirm__actions button { min-height: 46px; }
  .customer-checkout .pay-list { gap: 9px; }
  .customer-checkout .pay-opt {
    min-height: 68px;
    padding: 11px;
    gap: 10px;
    border-width: 1.5px;
    border-radius: 16px;
  }
  .customer-checkout .pay-opt input { width: 20px; height: 20px; flex: 0 0 20px; }
  .customer-checkout .pay-opt__i { width: 44px; height: 44px; flex: 0 0 44px; }
  .customer-checkout .pay-opt__t { min-width: 0; overflow-wrap: anywhere; }
  .customer-checkout .payment-link-launch { min-height: 52px; border-radius: 16px; }
  .customer-checkout .review-list li {
    align-items: flex-start;
    gap: 14px;
    line-height: 1.65;
  }
  .customer-checkout .review-list li strong {
    max-width: 62%;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .customer-checkout .nav-row {
    position: fixed;
    z-index: 56;
    right: 0;
    left: 0;
    bottom: calc(74px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(104px, .72fr) minmax(0, 1.28fr);
    gap: 9px;
    margin: 0;
    padding: 10px 14px;
    background: rgba(253,250,244,.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px rgba(43,27,14,.09);
    backdrop-filter: blur(14px);
  }
  .customer-checkout .nav-row .btn { min-height: 52px; padding-inline: 12px; border-radius: 17px; }
  .customer-checkout .chat-fab { display: none; }

  .customer-confirmation .page-pad,
  .customer-track .page-pad,
  .customer-account .page-pad {
    padding-top: 16px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
  .customer-confirmation .confirm-page { min-height: 0; }
  .customer-confirmation .confirm-card {
    padding: 22px 16px 18px;
    border: 1px solid rgba(91,58,31,.08);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(43,27,14,.08);
  }
  .customer-confirmation .confirm-check {
    width: 70px;
    height: 70px;
    margin-bottom: 14px;
  }
  .customer-confirmation .confirm-card h1 { font-size: 22px; line-height: 1.4; }
  .customer-confirmation .confirm-id {
    margin: 5px 0 14px;
    font-size: clamp(18px, 6.5vw, 24px);
    letter-spacing: 1px;
    overflow-wrap: anywhere;
  }
  .customer-confirmation .review-list li {
    align-items: flex-start;
    gap: 12px;
    text-align: right;
    line-height: 1.65;
  }
  .customer-confirmation .review-list strong {
    max-width: 62%;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .customer-confirmation .confirm-note {
    width: 100%;
    justify-content: center;
    border-radius: 16px;
    line-height: 1.65;
  }
  .customer-confirmation .confirm-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 16px;
  }
  .customer-confirmation .confirm-ctas .btn { width: 100%; min-height: 52px; }
  .customer-confirmation .chat-fab { display: none; }

  .customer-track .page-head,
  .customer-account .page-head {
    margin: 0 0 12px;
    text-align: right;
  }
  .customer-track .page-head .section-eyebrow,
  .customer-account .page-head .section-eyebrow { display: none; }
  .customer-track .page-head .section-title,
  .customer-account .page-head .section-title { font-size: 24px; }
  .customer-track .track-card {
    padding: 15px;
    border: 1px solid rgba(91,58,31,.08);
    border-radius: 21px;
    box-shadow: 0 10px 26px rgba(43,27,14,.07);
  }
  .customer-track .track-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
  .customer-track .track-head > div:first-child,
  .customer-track .track-eta {
    min-width: 0;
    padding: 10px;
    border-radius: 14px;
    background: var(--cream-soft);
  }
  .customer-track .track-id {
    font-size: 16px;
    letter-spacing: .5px;
    overflow-wrap: anywhere;
  }
  .customer-track .track-eta { min-width: 108px; text-align: right; }
  .customer-track .track-eta__source { white-space: normal; line-height: 1.5; }
  .customer-track .timeline {
    padding-inline: 0 44px;
    margin-top: 4px;
  }
  .customer-track .t-step { min-height: 62px; padding: 8px 0 14px; }
  .customer-track .t-body { min-width: 0; padding-inline-start: 0; }
  .customer-track .t-title { font-size: 14px; }
  .customer-track .t-desc { line-height: 1.55; }
  .customer-track .wa-card { margin: 14px 0; padding: 12px; border-radius: 16px; }
  .customer-track .wa-bubble { line-height: 1.75; overflow-wrap: anywhere; }
  .customer-track .track-community-cta { margin-top: 14px; padding: 15px; border-radius: 18px; }
  .customer-track .nav-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 14px;
  }
  .customer-track .nav-row .btn { width: 100%; min-height: 52px; justify-content: center; }
  .customer-track .chat-fab { display: none; }

  .customer-account .community-member-card { padding: 15px; border-radius: 17px; }
  .customer-account .account-summary { margin-bottom: 12px; overflow-wrap: anywhere; }
  .customer-account .account-orders { gap: 10px; }
  .customer-account .account-order-card {
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(43,27,14,.06);
  }
  .customer-account .account-order-card__head { align-items: flex-start; }
  .customer-account .account-order-card > p { margin: 11px 0; line-height: 1.7; overflow-wrap: anywhere; }
  .customer-account .account-order-card__foot { align-items: stretch; }
  .customer-account .account-order-card__foot .btn { min-height: 48px; justify-content: center; }
  .customer-account .empty-state { padding: 30px 16px; border-radius: 20px; }

  .community-modal {
    place-items: end stretch;
    padding: 0;
    overflow: hidden;
  }
  .community-modal__panel {
    width: 100%;
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    scrollbar-width: none;
  }
  .community-modal__panel::-webkit-scrollbar { display: none; }
  .community-modal__head { padding-inline-start: 44px; }
  .community-modal__head h2 { margin: 6px 0; font-size: 23px; line-height: 1.4; }
  .community-modal__head p { margin-bottom: 14px; line-height: 1.65; }
  .community-form { gap: 13px; }
  .community-form input,
  .community-form textarea {
    min-height: 52px;
    font-size: 16px;
  }
  .community-form textarea { min-height: 96px; }
  .community-form .btn { width: 100%; min-height: 52px; justify-content: center; }
  .community-auth-switch button,
  .community-form__back { min-height: 44px; padding: 8px 10px; }
  .community-member-card__actions { display: grid; grid-template-columns: 1fr; }
  .community-member-card__actions .btn { width: 100%; justify-content: center; }
}

@media (min-width: 361px) and (max-width: 760px) {
  .customer-track .nav-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-account .account-order-card__foot { flex-wrap: nowrap; align-items: center; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .nav-desktop a,
  .cart-btn,
  .community-btn,
  .table-clear,
  .chat-panel__close,
  .add-btn,
  .ad-banner__nav { min-height: 44px; }
  .table-clear,
  .chat-panel__close,
  .add-btn,
  .ad-banner__nav { min-width: 44px; }
  .ad-banner__dots { gap: 0; }
  .ad-banner__dot {
    position: relative;
    width: 44px;
    height: 44px;
    background: transparent;
  }
  .ad-banner__dot::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--line-strong);
    transform: translate(-50%, -50%);
  }
  .ad-banner__dot.active { width: 44px; background: transparent; }
  .ad-banner__dot.active::after { width: 28px; background: var(--coffee-dark); }
  .search input,
  .chip { min-height: 44px; }
}

@media (min-width: 761px) and (max-width: 820px) {
  .nav-desktop { display: none; }
  .bottom-nav { display: block; }
  .bottom-nav__inner {
    min-height: 72px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { min-height: 58px; justify-content: center; }
  .cart-btn { width: 44px; padding: 0; justify-content: center; }
  .cart-btn .label { display: none; }
  .community-btn { min-width: max-content; }
  .page-pad { padding-top: 78px; padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .site-footer { display: none; }
  .customer-menu .menu-controls {
    position: sticky;
    top: 72px;
    z-index: 45;
    padding-top: 10px;
    background: rgba(253,250,244,.96);
    backdrop-filter: blur(14px);
  }
  .customer-menu .partner-ticker {
    --partner-ticker-base-bottom: calc(80px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
  }
  .customer-menu.has-partner-ticker .page-pad {
    padding-bottom: calc(174px + env(safe-area-inset-bottom));
  }
  .customer-menu.has-partner-ticker .chat-fab {
    bottom: calc(148px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .container { padding-inline: 10px; }
  .brand__sub { display: none; }
  .site-header .cart-btn { display: none; }
  .brand { max-width: calc(100% - 54px); }
  .community-btn {
    width: 44px;
    max-width: 44px;
    padding: 0;
    font-size: 0;
  }
  .community-btn::before { content: "👤"; font-size: 18px; }
  .table-banner.show { min-height: 62px; grid-template-columns: minmax(0, 1fr) 88px; gap: 7px; padding-inline: 10px; font-size: 12px; }
  .table-banner .table-clear { min-width: 88px; padding-inline: 7px; font-size: 10px; }
  .customer-home .hero__ctas { flex-direction: column; }
  .customer-home .hero__ctas .btn { width: 100%; }
  .customer-home #best-sellers-grid { grid-auto-columns: minmax(205px, 78vw); }
  .customer-home .cafe-offers { grid-auto-columns: minmax(248px, 90vw); }
  .customer-home .reviews-grid { grid-auto-columns: minmax(230px, 86vw); }
  .customer-menu .menu-controls { margin-inline: -10px; padding-inline: 10px; }
  .sheet-product--mobile .sheet-foot--sticky { grid-template-columns: 106px minmax(0, 1fr); }
  .sheet-foot--sticky .btn { padding-inline: 10px; }
  .sheet-foot--sticky strong { font-size: 15px; }
  .customer-cart .cart-row { grid-template-columns: 68px minmax(0, 1fr); }
  .customer-cart .cart-row img { width: 68px; height: 68px; }
  .customer-cart .cart-row__foot .price { width: 100%; margin: 0; }
  .cart-mobile-action { padding-inline: 10px; gap: 8px; }
}

@media (max-width: 390px) {
  .site-header .cart-btn { display: none; }
}

/* Home offers: more compact swipe cards on phones. */
@media (max-width: 760px) {
  .customer-home .cafe-offers {
    grid-auto-columns: minmax(228px, 76vw);
    gap: 10px;
  }
  .customer-home .offer-card {
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }
  .customer-home .offer-card__media {
    aspect-ratio: 16 / 8.2;
    border-radius: 14px;
  }
  .customer-home .offer-card__kicker {
    margin-bottom: 5px;
    font-size: 11px;
  }
  .customer-home .offer-card h3 {
    margin-bottom: 3px;
    font-size: 18px;
    line-height: 1.45;
  }
  .customer-home .offer-card p {
    font-size: 12.5px;
    line-height: 1.6;
  }
  .customer-home .offer-card__membership-note {
    gap: 4px;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.45;
  }
  .customer-home .offer-card__price {
    min-height: 44px;
    border-radius: 13px;
  }
  .customer-home .offer-card__price span { font-size: 20px; }
  .customer-home .offer-card .btn {
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12px;
  }
  .customer-home .offer-card--members::before {
    top: 20px;
    left: 20px;
    padding: 4px 7px;
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .customer-home .cafe-offers {
    grid-auto-columns: minmax(214px, 78vw);
  }
}

/* Order tracking: clear app-like timeline on phones. */
@media (max-width: 760px) {
  .customer-track .page-pad {
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .customer-track .track-card { margin-bottom: 18px; }
  .customer-track .timeline {
    position: relative;
    margin: 4px 0 0;
    padding: 0;
  }
  .customer-track .timeline::before {
    top: 17px;
    bottom: 22px;
    right: auto;
    left: auto;
    inset-inline-start: 17px;
    width: 2px;
  }
  .customer-track .t-step {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-height: 68px;
    padding: 0 0 16px;
  }
  .customer-track .t-step:last-child {
    min-height: 48px;
    padding-bottom: 0;
  }
  .customer-track .t-dot {
    position: relative;
    top: 0;
    right: auto;
    left: auto;
    grid-column: 1;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }
  .customer-track .t-step.active .t-dot {
    animation: none;
    box-shadow: 0 0 0 4px rgba(91, 58, 31, .1);
  }
  .customer-track .t-body {
    grid-column: 2;
    min-width: 0;
    padding: 4px 0 0;
  }
  .customer-track .t-step.active .t-body {
    padding: 8px 10px;
    border: 1px solid rgba(184, 135, 70, .2);
    border-radius: 12px;
    background: rgba(250, 243, 232, .72);
  }
  .customer-track .t-title {
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .customer-track .t-desc {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .customer-track .track-head {
    grid-template-columns: 1fr;
  }
  .customer-track .track-eta {
    width: 100%;
    min-width: 0;
  }
}

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