/* ==========================================================================
   CafeHub — Premium Cafe Digital Experience Template
   style.css — Design tokens, base, layout & components
   --------------------------------------------------------------------------
   Table of contents
   01. Design tokens (colors, spacing, radii, shadows, motion)
   02. Reset & base
   03. Typography
   04. Layout helpers (container, section, grid, stack)
   05. Buttons
   06. Badges, chips, ratings, tags
   07. Cards (generic, category, product, feature, review, offer)
   08. Forms, inputs, steppers
   09. Header, navigation, mobile menu
   10. Hero & home sections
   11. Menu page (toolbar, filters, pagination)
   12. Cart, drawer, checkout summary
   13. Reservation (stepper, tables map, confirmation)
   14. Orders (tracking timeline, order cards, kitchen board)
   15. Profile & auth
   16. Gallery & lightbox
   17. Offers, about, contact
   18. Admin dashboard
   19. Footer, bottom nav, floating cart, back-to-top
   20. Overlays: modal, drawer, search, notifications, toast
   21. States: empty, skeleton, 404
   22. Utilities & animations
   ========================================================================== */

/* 01. ---------------------------------------------------------------------
   Design tokens — change these to re-brand the whole template
   ------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --c-cream: #f8f3ec;
  --c-cream-deep: #efe6da;
  --c-surface: #fffdfa;
  --c-surface-2: #f3ece2;
  --c-espresso: #2a1c15;
  --c-coffee: #453024;
  --c-latte: #d8c7b3;
  --c-beige: #e9dccb;
  --c-caramel: #c07a3f;
  --c-caramel-soft: #e0aa77;
  --c-copper: #9c5a26;
  --c-olive: #6c7a52;
  --c-berry: #a24a4a;

  /* Semantic roles (light theme) */
  --bg: var(--c-cream);
  --bg-alt: var(--c-surface-2);
  --surface: var(--c-surface);
  --surface-raised: #ffffff;
  --text: #23170f;
  --text-soft: #6b5a4d;
  --text-muted: #8d7c6d;
  --line: rgba(42, 28, 21, 0.12);
  --line-strong: rgba(42, 28, 21, 0.22);
  --accent: var(--c-caramel);
  --accent-strong: var(--c-copper);
  --accent-contrast: #fff8f1;
  --overlay: rgba(30, 20, 14, 0.55);

  /* Status colors */
  --ok: #4b7c52;
  --ok-soft: rgba(75, 124, 82, 0.14);
  --warn: #b3802a;
  --warn-soft: rgba(179, 128, 42, 0.16);
  --info: #3f6b8c;
  --info-soft: rgba(63, 107, 140, 0.14);
  --danger: #a8463c;
  --danger-soft: rgba(168, 70, 60, 0.14);

  /* Typography */
  --font-display: "Fraunces", "Playfair Display", "Iowan Old Style", Georgia,
    "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;
  --font-fa: "Vazirmatn", "IRANSans", Tahoma, var(--font-body);

  --fs-xs: 0.75rem;
  --fs-sm: 0.85rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: clamp(2.5rem, 6vw, 4.25rem);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(42, 28, 21, 0.06);
  --sh-sm: 0 4px 14px rgba(42, 28, 21, 0.07);
  --sh-md: 0 12px 32px rgba(42, 28, 21, 0.1);
  --sh-lg: 0 26px 60px rgba(42, 28, 21, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.16s var(--ease);
  --t-base: 0.28s var(--ease);
  --t-slow: 0.5s var(--ease);

  /* Structure */
  --header-h: 76px;
  --container: 1240px;
  --z-header: 60;
  --z-drawer: 90;
  --z-modal: 100;
  --z-toast: 130;
}

/* Dark theme — applied via [data-theme="dark"] on <html> */
[data-theme="dark"] {
  --bg: #191310;
  --bg-alt: #211a16;
  --surface: #221a15;
  --surface-raised: #2b211b;
  --text: #f6efe7;
  --text-soft: #c7b6a7;
  --text-muted: #a08d7d;
  --line: rgba(246, 239, 231, 0.14);
  --line-strong: rgba(246, 239, 231, 0.26);
  --accent: #d9924f;
  --accent-strong: #e8a869;
  --accent-contrast: #221a15;
  --overlay: rgba(8, 5, 4, 0.7);
  --c-latte: #4a3a2e;
  --c-beige: #33281f;
  --c-cream: #191310;
  --c-cream-deep: #221a15;
  --ok-soft: rgba(120, 180, 130, 0.18);
  --warn-soft: rgba(220, 170, 80, 0.18);
  --info-soft: rgba(120, 165, 205, 0.18);
  --danger-soft: rgba(220, 120, 110, 0.18);
  --sh-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --sh-md: 0 14px 34px rgba(0, 0, 0, 0.45);
  --sh-lg: 0 26px 60px rgba(0, 0, 0, 0.55);
}

/* Optional alternative brand presets — swap by setting data-brand on <html> */
[data-brand="matcha"] {
  --c-caramel: #6f8c5a;
  --c-copper: #55703f;
  --c-caramel-soft: #a7bd92;
}
[data-brand="berry"] {
  --c-caramel: #a24a5f;
  --c-copper: #7d3547;
  --c-caramel-soft: #cc8b9b;
}

/* 02. ---------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-base), color var(--t-base);
  /* No global overflow-x clipping here on purpose: every page is built to fit
     the viewport. Components that genuinely need to scroll (tables, charts,
     tabs, drawers, side navs) declare their own localized overflow. */
}

body.no-scroll {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul[class],
ol[class] {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--c-latte);
  border-radius: var(--r-full);
  border: 3px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.skip-link {
  position: absolute;
  /* Centred with logical properties instead of inset-inline-start:50% plus a
     physical translateX(-50%), which pushed the pill off centre (and past the
     inline start edge) in RTL. */
  inset-inline: 0;
  width: fit-content;
  margin-inline: auto;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: 0;
}

/* 03. ---------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--text);
}

h1 {
  font-size: var(--fs-4xl);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}
h3 {
  font-size: var(--fs-lg);
}
h4 {
  font-size: var(--fs-md);
}
h5 {
  font-size: var(--fs-base);
}

p {
  color: var(--text-soft);
}

.lead {
  font-size: var(--fs-md);
  color: var(--text-soft);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  margin-block: var(--sp-3) var(--sp-4);
}

.muted {
  color: var(--text-muted);
}
.text-soft {
  color: var(--text-soft);
}
.small {
  font-size: var(--fs-sm);
}
.center {
  text-align: center;
}
.center-block {
  margin-inline: auto;
  text-align: center;
}
.nowrap {
  white-space: nowrap;
}
.display {
  font-family: var(--font-display);
}
.price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-strong);
}
.strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 400;
}

/* Persian / RTL typography */
html[dir="rtl"] body {
  font-family: var(--font-fa);
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] .display {
  font-family: var(--font-fa);
  letter-spacing: 0;
  font-weight: 700;
}
html[dir="rtl"] .eyebrow {
  letter-spacing: 0.05em;
}
/* Persian script is cursive: the 0.28em Latin-tracking of the brand tagline
   would break the letter joins, so it gets the same treatment as .eyebrow. */
html[dir="rtl"] .brand-tag {
  letter-spacing: 0.06em;
}

/* 04. ---------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container-narrow {
  width: min(100% - 2.5rem, 860px);
  margin-inline: auto;
}

.section {
  padding-block: var(--sp-9);
  position: relative;
}
.section-sm {
  padding-block: var(--sp-7);
}
.section-alt {
  background: var(--bg-alt);
}
.section-surface {
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.section-head .section-title {
  margin: 0;
  max-width: 22ch;
}
.section-head .lead {
  margin-top: var(--sp-3);
}

.grid {
  display: grid;
  gap: var(--sp-5);
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.row-tight {
  gap: var(--sp-2);
}

.page-head {
  padding-block: var(--sp-7) var(--sp-6);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}
.page-head .lead {
  margin-top: var(--sp-3);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: var(--sp-2);
  opacity: 0.5;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
html[dir="rtl"] .breadcrumb li + li::before {
  content: "\\";
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-xs);
  /* Panels are grid/flex items: let them shrink below their content instead
     of pushing the whole page wider than the viewport. */
  min-width: 0;
}
.panel-title {
  font-size: var(--fs-md);
  font-family: var(--font-display);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.divider {
  height: 1px;
  background: var(--line);
  margin-block: var(--sp-5);
  border: 0;
}

/* 05. ---------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.5rem;
  min-height: 46px;
  border-radius: var(--r-full);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-base),
    background var(--t-base), color var(--t-base), border-color var(--t-base);
}
/* Buttons whose label is a sentence (demo credentials, long CTAs): the default
   nowrap would report a min-content width wider than a 320px phone and push the
   whole page sideways, so these wrap instead. */
.btn.btn-wrap {
  white-space: normal;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn:active {
  transform: translateY(0) scale(0.99);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn-dark {
  --btn-bg: var(--c-espresso);
  --btn-fg: #fdf7f0;
}
[data-theme="dark"] .btn-dark {
  --btn-bg: var(--surface-raised);
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
}

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
}
.btn-outline:hover {
  --btn-border: var(--accent);
  --btn-fg: var(--accent);
  box-shadow: none;
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text-soft);
  --btn-border: transparent;
  padding-inline: var(--sp-3);
}
.btn-ghost:hover {
  --btn-fg: var(--accent);
  --btn-bg: var(--bg-alt);
  box-shadow: none;
  transform: none;
}

.btn-soft {
  --btn-bg: var(--bg-alt);
  --btn-fg: var(--text);
  --btn-border: var(--line);
}

.btn-danger {
  --btn-bg: var(--danger-soft);
  --btn-fg: var(--danger);
}

.btn-white {
  --btn-bg: #fff;
  --btn-fg: var(--c-espresso);
}

.btn-sm {
  padding: 0.5rem 1rem;
  min-height: 38px;
  font-size: var(--fs-xs);
}
.btn-lg {
  padding: 1rem 2rem;
  min-height: 54px;
  font-size: var(--fs-base);
}
.btn-block {
  width: 100%;
}
.btn-icon {
  padding: 0;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.btn-icon svg {
  width: 20px;
  height: 20px;
}
.btn-icon-sm {
  width: 34px;
  height: 34px;
  min-height: 34px;
}
.btn-icon-sm svg {
  width: 16px;
  height: 16px;
}

.btn-group {
  display: inline-flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--surface);
}
.qty button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.qty button:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}
.qty output,
.qty input {
  width: 42px;
  text-align: center;
  border: 0;
  background: transparent;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.qty-sm button {
  width: 30px;
  height: 30px;
}
.qty-sm output {
  width: 32px;
  font-size: var(--fs-sm);
}

/* 06. ---------------------------------------------------------------------
   Badges, chips, ratings, tags
   ------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
  background: var(--bg-alt);
  color: var(--text-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.badge svg {
  width: 13px;
  height: 13px;
}
/* Sentence-length badges (e.g. the QR table hint on the home page) must wrap.
   A nowrap badge reports the whole sentence as its min-content width, which is
   wider than a 320px phone viewport and used to force page-level overflow. */
.badge-wrap {
  white-space: normal;
  max-width: 100%;
  text-align: start;
}
.badge-accent {
  background: var(--accent);
  color: var(--accent-contrast);
}
.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge-info {
  background: var(--info-soft);
  color: var(--info);
}
.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--line-strong);
}
.badge-olive {
  background: rgba(108, 122, 82, 0.16);
  color: var(--c-olive);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.rating svg {
  width: 15px;
  height: 15px;
  color: var(--c-caramel);
}

/* Star rows produced by Icon.stars() */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.stars .star {
  width: 15px;
  height: 15px;
  color: var(--line-strong);
  flex: none;
}
.stars .star.is-on {
  color: var(--c-caramel);
}
.stars .star.is-half {
  color: var(--c-caramel-soft);
}

/* QR menu sticky order bar */
.qr-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 78;
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.qr-bar > * {
  width: min(100% - 1rem, var(--container));
  margin-inline: auto;
}
.rating .count {
  color: var(--text-muted);
  font-weight: 400;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-xs);
  background: var(--bg-alt);
  color: var(--text-muted);
}

.chip-row {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.chip {
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--t-fast);
}
.chip svg {
  width: 16px;
  height: 16px;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--c-espresso);
  border-color: var(--c-espresso);
  color: #fdf7f0;
}
[data-theme="dark"] .chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.chip .chip-count {
  font-size: 0.68rem;
  opacity: 0.7;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-received {
  background: var(--info-soft);
  color: var(--info);
}
.status-preparing {
  background: var(--warn-soft);
  color: var(--warn);
}
.status-ready {
  background: var(--ok-soft);
  color: var(--ok);
}
.status-served {
  background: var(--bg-alt);
  color: var(--text-soft);
}
.status-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}
.status-available {
  background: var(--ok-soft);
  color: var(--ok);
}
.status-reserved {
  background: var(--info-soft);
  color: var(--info);
}
.status-occupied {
  background: var(--warn-soft);
  color: var(--warn);
}
.status-cleaning {
  background: var(--bg-alt);
  color: var(--text-muted);
}

/* 07. ---------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--c-beige), var(--bg-alt));
  aspect-ratio: 4 / 3;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  height: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.product-card:hover .media img {
  transform: scale(1.05);
}
.product-card .media {
  aspect-ratio: 5 / 4;
}
.product-card-body {
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}
.product-card-body h3 {
  font-size: var(--fs-md);
  line-height: 1.3;
}
.product-card-body h3 a:hover {
  color: var(--accent);
}
.product-card-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--line);
}
.product-card .price {
  font-size: var(--fs-md);
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.card-flags {
  position: absolute;
  top: var(--sp-3);
  inset-inline-start: var(--sp-3);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.card-actions {
  position: absolute;
  top: var(--sp-3);
  inset-inline-end: var(--sp-3);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.card-actions .btn-icon {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-espresso);
  backdrop-filter: blur(6px);
  box-shadow: var(--sh-sm);
}
[data-theme="dark"] .card-actions .btn-icon {
  background: rgba(35, 26, 21, 0.85);
  color: var(--text);
}
.card-actions .btn-icon:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}
.fav-btn.is-active {
  background: var(--c-berry) !important;
  color: #fff !important;
}
.fav-btn.is-active svg {
  fill: currentColor;
}

/* Category card */
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: start;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.category-card .cat-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, var(--c-beige), var(--bg-alt));
  color: var(--accent-strong);
}
.category-card .cat-icon svg {
  width: 26px;
  height: 26px;
}
.category-card h3 {
  font-size: var(--fs-md);
}
.category-card .cat-meta {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.category-card .cat-arrow {
  position: absolute;
  inset-inline-end: var(--sp-5);
  top: var(--sp-5);
  color: var(--text-muted);
  transition: transform var(--t-base), color var(--t-base);
}
.category-card:hover .cat-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
html[dir="rtl"] .category-card:hover .cat-arrow {
  transform: translateX(-4px);
}

/* Feature card */
.feature-card {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-sm);
}
.feature-card .f-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-contrast);
}
.feature-card .f-icon svg {
  width: 22px;
  height: 22px;
}
.feature-card h3 {
  font-size: var(--fs-md);
}
.feature-card p {
  font-size: var(--fs-sm);
}

/* Review card */
.review-card {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
}
.review-card blockquote {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  font-style: italic;
  flex: 1;
}
.review-who {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c-latte), var(--accent-soft, var(--c-caramel-soft)));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: var(--fs-sm);
  flex: none;
  overflow: hidden;
}
.avatar-lg {
  width: 76px;
  height: 76px;
  font-size: var(--fs-lg);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-who strong {
  display: block;
  font-size: var(--fs-sm);
}
.review-who span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* 08. ---------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-4);
}
.field > label,
.label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field .hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.field .error {
  font-size: var(--fs-xs);
  color: var(--danger);
  display: none;
}
.field.is-invalid .error {
  display: block;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  min-height: 48px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-base);
}
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 2.5rem;
}
html[dir="rtl"] select {
  background-position: 20px 22px, 26px 22px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-soft);
  cursor: pointer;
  line-height: 1.5;
}
.check input {
  appearance: none;
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: none;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: all var(--t-fast);
}
.check input[type="radio"] {
  border-radius: 50%;
}
.check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  background: var(--accent-contrast);
}
.check input[type="radio"]:checked::after {
  border-radius: 50%;
  inset: 5px;
}

.radio-card-group {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--surface);
  transition: all var(--t-fast);
}
.radio-card:hover {
  border-color: var(--accent);
}
.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-card strong {
  font-size: var(--fs-sm);
}
.radio-card span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.radio-card:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.radio-card .rc-price {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-strong);
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.option-row:hover {
  border-color: var(--accent);
}
.option-row:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.form-grid {
  display: grid;
  gap: 0 var(--sp-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid .field-full {
  grid-column: 1 / -1;
}

.search-field {
  position: relative;
}
.search-field svg {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-field input {
  padding-inline-start: 44px;
}

/* 09. ---------------------------------------------------------------------
   Header & navigation
   ------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--sh-sm);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-tag {
  /* kept at or above 10px so the tagline stays legible on small screens */
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-inline: auto;
}
.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--r-full);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  inset-inline-start: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform var(--t-base);
}
.nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}
.nav a.is-current {
  color: var(--text);
  font-weight: 600;
}
.nav a.is-current::after,
.nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
}
.header-actions .btn-icon {
  width: 42px;
  height: 42px;
}
.icon-btn-badge {
  position: relative;
}
.icon-btn-badge .count-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}
.count-badge[data-empty="true"] {
  display: none;
}

.lang-switch,
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
}
.lang-switch button,
.theme-switch button {
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.theme-switch button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
}
.theme-switch svg {
  width: 15px;
  height: 15px;
}
.lang-switch button:hover,
.theme-switch button:hover {
  color: var(--text);
}
.lang-switch button.is-active,
.theme-switch button.is-active {
  background: var(--c-espresso);
  color: #fdf7f0;
}
[data-theme="dark"] .lang-switch button.is-active,
[data-theme="dark"] .theme-switch button.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  place-items: center;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform var(--t-base), background var(--t-base);
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-base);
}
.hamburger span::before {
  top: -6px;
}
.hamburger span::after {
  top: 6px;
}
body.menu-open .hamburger span {
  background: transparent;
}
body.menu-open .hamburger span::before {
  transform: translateY(6px) rotate(45deg);
}
body.menu-open .hamburger span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: var(--z-header);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-5);
  display: none;
  flex-direction: column;
  gap: var(--sp-2);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  box-shadow: var(--sh-lg);
  animation: slideDown var(--t-base);
}
.mobile-nav a.nav-link {
  padding: 0.9rem var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-md);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}
.mobile-nav a.nav-link:hover,
.mobile-nav a.nav-link.is-current {
  background: var(--bg-alt);
  color: var(--accent);
}
.mobile-nav .mobile-extra {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  margin-top: var(--sp-3);
}
.mobile-nav .mobile-lang {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  margin-top: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.mobile-nav .mobile-lang .ml-label {
  font-weight: 600;
}
.mobile-nav .mobile-lang .lang-switch {
  margin-inline-start: auto;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 10. ---------------------------------------------------------------------
   Hero & home sections
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-alt), var(--bg) 55%);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
}
.hero::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  top: -160px;
  inset-inline-end: -120px;
}
.hero::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-olive) 18%, transparent), transparent 70%);
  bottom: -140px;
  inset-inline-start: -100px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-title {
  margin-block: var(--sp-4) var(--sp-5);
}
.hero-title .line {
  display: block;
}
.hero-title .line-accent {
  color: var(--accent);
  font-style: italic;
}
.hero-cta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}
.hero-stats {
  display: flex;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--text);
}
.hero-stat span {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-visual {
  position: relative;
}
.hero-visual .hero-img {
  border-radius: 220px 220px var(--r-xl) var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 5;
}
.hero-visual .hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  animation: float 5s ease-in-out infinite;
}
.hero-badge strong {
  font-size: var(--fs-sm);
  display: block;
}
.hero-badge span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.hero-badge-1 {
  bottom: 12%;
  inset-inline-start: -6%;
}
.hero-badge-2 {
  top: 10%;
  inset-inline-end: -4%;
  animation-delay: 1.4s;
}
.hero-badge .hb-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  display: grid;
  place-items: center;
  flex: none;
}
.hero-badge .hb-icon svg {
  width: 18px;
  height: 18px;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding-block: var(--sp-4);
}
.marquee-track {
  display: flex;
  gap: var(--sp-7);
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-7);
  white-space: nowrap;
}
.marquee-track span::after {
  content: "•";
  color: var(--accent);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.about-media img {
  border-radius: var(--r-lg);
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--sh-sm);
}
.about-media img:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
}
.about-list {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.about-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.about-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

/* Steps / order-from-table feature */
.steps-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  counter-reset: step;
}
.step-card {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  display: block;
  margin-bottom: var(--sp-3);
}
.step-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
}
.step-card p {
  font-size: var(--fs-sm);
}

.offer-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  background: var(--c-espresso);
  color: #fdf7f0;
  box-shadow: var(--sh-lg);
}
.offer-banner .ob-body {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  justify-content: center;
}
.offer-banner h2,
.offer-banner h3 {
  color: #fff;
}
.offer-banner p {
  color: rgba(253, 247, 240, 0.78);
}
.offer-banner .ob-media {
  position: relative;
  min-height: 280px;
}
.offer-banner .ob-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.offer-countdown {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.count-unit {
  background: rgba(253, 247, 240, 0.12);
  border: 1px solid rgba(253, 247, 240, 0.18);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  text-align: center;
  min-width: 62px;
}
.count-unit strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.count-unit span {
  /* small caps labels stay >= 10px and get a touch more contrast */
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 247, 240, 0.82);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--bg-alt);
}
.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 20, 14, 0.55), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.gallery-item:hover::after {
  opacity: 1;
}
.gallery-cap {
  position: absolute;
  bottom: var(--sp-3);
  inset-inline-start: var(--sp-3);
  z-index: 2;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--t-base);
}
.gallery-item:hover .gallery-cap {
  opacity: 1;
  transform: none;
}

.hours-grid {
  display: grid;
  gap: var(--sp-2);
}
.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-sm);
}
.hours-row:last-child {
  border-bottom: 0;
}
.hours-row.is-today {
  color: var(--accent);
  font-weight: 600;
}
.hours-row.is-today::after {
  content: "";
}

.map-placeholder {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(140deg, var(--bg-alt), var(--surface));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.65;
}
.map-pin {
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
}
.map-pin .pin-dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-md);
  animation: float 4s ease-in-out infinite;
}
.map-pin .pin-dot svg {
  width: 24px;
  height: 24px;
}

.newsletter-form {
  display: flex;
  gap: var(--sp-2);
  max-width: 420px;
}
.newsletter-form input {
  flex: 1;
}

/* 11. ---------------------------------------------------------------------
   Menu page
   ------------------------------------------------------------------------- */
.menu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 30;
  box-shadow: var(--sh-xs);
}
.menu-toolbar .search-field {
  flex: 1 1 260px;
  min-width: 220px;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.toolbar-group select {
  min-height: 44px;
  width: auto;
  min-width: 165px;
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.view-toggle button {
  width: 40px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: var(--surface);
}
.view-toggle button.is-active {
  background: var(--bg-alt);
  color: var(--accent);
}
.view-toggle svg {
  width: 18px;
  height: 18px;
}

.filters-panel {
  display: none;
  gap: var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: var(--sp-5);
}
.filters-panel.is-open {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  animation: slideDown var(--t-base);
}
.filter-group h4 {
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
  font-family: var(--font-body);
  font-weight: 700;
}

.result-count {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.pagination {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  align-items: center;
  margin-top: var(--sp-7);
  flex-wrap: wrap;
}
.pagination button {
  min-width: 42px;
  height: 42px;
  padding-inline: var(--sp-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--t-fast);
}
.pagination button:hover:not([disabled]) {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination button.is-active {
  background: var(--c-espresso);
  border-color: var(--c-espresso);
  color: #fdf7f0;
}
.pagination button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Menu list view */
.product-list .product-card {
  flex-direction: row;
  align-items: stretch;
}
.product-list .product-card .media {
  width: 220px;
  flex: none;
  aspect-ratio: auto;
  min-height: 170px;
}
.product-list .product-card-body {
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
}
.product-list .product-card-desc {
  -webkit-line-clamp: 3;
}

/* 12. ---------------------------------------------------------------------
   Cart, drawer, checkout
   ------------------------------------------------------------------------- */
.cart-layout,
.checkout-layout,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: var(--sp-6);
  align-items: start;
}

/* Content + aside shell used by the reservation wizard and the admin screens.
   The column minimums are fluid so the rail can never squeeze the main column
   to zero on narrow viewports (css/responsive.css stacks them under 1024px). */
.reserve-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: var(--sp-6);
  align-items: start;
}
.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: var(--sp-5);
  align-items: start;
}
.admin-split-even {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--sp-5);
  align-items: start;
}

/* Sidebar-first shell (profile): 260px rail with the content beside it. */
.profile-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item:last-child {
  border-bottom: 0;
}
.cart-item .ci-media {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-alt);
}
.cart-item .ci-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item h4 {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
}
.cart-item .ci-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.cart-item .ci-foot {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  flex-wrap: wrap;
}
.ci-price {
  text-align: end;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-end;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.summary-row strong {
  color: var(--text);
  font-weight: 600;
}
.summary-total {
  border-top: 1px solid var(--line);
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  font-size: var(--fs-md);
}
.summary-total strong {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--accent-strong);
}
.promo-row {
  display: flex;
  gap: var(--sp-2);
  margin-block: var(--sp-4);
}
.promo-row input {
  min-height: 44px;
}
.saved-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--ok);
}

/* Floating cart button */
.floating-cart {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem 1.25rem 0.7rem 0.8rem;
  border-radius: var(--r-full);
  background: var(--c-espresso);
  color: #fdf7f0;
  box-shadow: var(--sh-lg);
  transform: translateY(120%);
  transition: transform var(--t-slow), background var(--t-base);
}
.floating-cart.is-visible {
  transform: none;
}
.floating-cart:hover {
  background: var(--accent);
}
.floating-cart .fc-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}
.floating-cart .fc-icon svg {
  width: 20px;
  height: 20px;
}
.floating-cart .fc-count[data-empty="true"] {
  display: none;
}
.floating-cart .fc-count {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding-inline: 4px;
}
[data-theme="dark"] .floating-cart {
  background: var(--accent);
  color: var(--accent-contrast);
}
.floating-cart .fc-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: start;
}
.floating-cart .fc-text strong {
  font-size: var(--fs-sm);
}
.floating-cart .fc-text span {
  font-size: var(--fs-xs);
  opacity: 0.75;
}

/* Quick order FAB */
.quick-order {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 70;
}
.quick-order-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-lg);
  transition: transform var(--t-base), background var(--t-base);
}
.quick-order-toggle:hover {
  transform: scale(1.06) rotate(6deg);
  background: var(--accent-strong);
}
.quick-order-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform var(--t-base);
}
.quick-order.is-open .quick-order-toggle svg {
  transform: rotate(135deg);
}
.quick-order-menu {
  position: absolute;
  bottom: 68px;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  width: 232px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t-base);
}
.quick-order.is-open .quick-order-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.quick-order-menu a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.quick-order-menu a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}
.quick-order-menu svg {
  width: 18px;
  height: 18px;
}
.quick-order-menu .qo-head {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-inline: var(--sp-3);
  padding-bottom: var(--sp-1);
}

/* 13. ---------------------------------------------------------------------
   Reservation
   --------------------------------------------------------------------- */
.stepper {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-7);
  flex-wrap: wrap;
}
.step-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: all var(--t-base);
}
.step-pill .sp-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  font-size: var(--fs-xs);
  font-weight: 700;
  flex: none;
}
.step-pill.is-active {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.step-pill.is-active .sp-num {
  background: var(--accent);
  color: var(--accent-contrast);
}
.step-pill.is-done {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
}
.step-pill.is-done .sp-num {
  background: var(--ok);
  color: #fff;
}
.step-sep {
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.step-panel {
  display: none;
  animation: fadeUp var(--t-base);
}
.step-panel.is-active {
  display: block;
}

.table-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-4);
}
.table-node {
  position: relative;
  padding: var(--sp-5) var(--sp-4);
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
}
.table-node:hover:not([disabled]) {
  transform: translateY(-3px);
  box-shadow: var(--sh-sm);
  border-color: var(--accent);
}
.table-node .t-no {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1;
}
.table-node .t-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.table-node .t-meta svg {
  width: 14px;
  height: 14px;
}
.table-node[data-status="available"] {
  border-style: solid;
  border-color: color-mix(in srgb, var(--ok) 38%, transparent);
}
.table-node[data-status="reserved"] {
  border-style: solid;
  border-color: color-mix(in srgb, var(--info) 34%, transparent);
  opacity: 0.62;
  cursor: not-allowed;
}
.table-node[data-status="occupied"] {
  border-style: solid;
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
  opacity: 0.62;
  cursor: not-allowed;
}
.table-node[data-status="cleaning"] {
  border-style: solid;
  border-color: var(--line-strong);
  opacity: 0.6;
  cursor: not-allowed;
}
.table-node.is-selected {
  background: var(--c-espresso);
  border-color: var(--c-espresso);
  border-style: solid;
  color: #fdf7f0;
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--sh-md);
}
.table-node.is-selected .t-meta {
  color: rgba(253, 247, 240, 0.8);
}
[data-theme="dark"] .table-node.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
[data-theme="dark"] .table-node.is-selected .t-meta {
  color: rgba(0, 0, 0, 0.6);
}
.table-node .t-status-dot {
  position: absolute;
  top: var(--sp-3);
  inset-inline-end: var(--sp-3);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
}
.table-node[data-status="reserved"] .t-status-dot {
  background: var(--info);
}
.table-node[data-status="occupied"] .t-status-dot {
  background: var(--warn);
}
.table-node[data-status="cleaning"] .t-status-dot {
  background: var(--text-muted);
}

.table-legend {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.table-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
}
.legend-dot.reserved {
  background: var(--info);
}
.legend-dot.occupied {
  background: var(--warn);
}
.legend-dot.cleaning {
  background: var(--text-muted);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: var(--sp-2);
}
.time-slot {
  padding: 0.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-soft);
  transition: all var(--t-fast);
}
.time-slot:hover:not([disabled]) {
  border-color: var(--accent);
  color: var(--accent);
}
.time-slot.is-active {
  background: var(--c-espresso);
  border-color: var(--c-espresso);
  color: #fdf7f0;
}
.time-slot[disabled] {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}
[data-theme="dark"] .time-slot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.confirm-card {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
}
.confirm-icon {
  width: 84px;
  height: 84px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-5);
}
.confirm-icon svg {
  width: 40px;
  height: 40px;
}
.confirm-id {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  background: var(--bg-alt);
  border: 1px dashed var(--line-strong);
  margin-block: var(--sp-4);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4);
  margin-block: var(--sp-6);
  text-align: start;
}
.detail-item {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--bg-alt);
}
.detail-item span {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.detail-item strong {
  font-size: var(--fs-base);
}

/* 14. ---------------------------------------------------------------------
   Orders: timeline, cards, kitchen board
   ------------------------------------------------------------------------- */
.order-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  position: relative;
  margin-block: var(--sp-7);
}
.timeline-step {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0.5;
  transition: opacity var(--t-base);
}
.timeline-step::before {
  content: "";
  position: absolute;
  top: 27px;
  inset-inline-start: 50%;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
  z-index: 0;
}
.timeline-step:last-child::before {
  display: none;
}
.timeline-dot {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all var(--t-base);
}
.timeline-dot svg {
  width: 24px;
  height: 24px;
}
.timeline-step h4 {
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  font-weight: 600;
}
.timeline-step span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.timeline-step.is-done {
  opacity: 1;
}
.timeline-step.is-done .timeline-dot {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.timeline-step.is-done::before {
  background: var(--ok);
}
.timeline-step.is-current {
  opacity: 1;
}
.timeline-step.is-current .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  animation: pulseRing 1.8s infinite;
}
@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  }
  70% {
    box-shadow: 0 0 0 16px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.order-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.order-card:hover {
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.order-card .oc-id {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
}
.order-card .oc-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: 4px;
}
.order-thumbs {
  display: flex;
}
.order-thumbs img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  margin-inline-start: -12px;
  background: var(--bg-alt);
}
.order-thumbs img:first-child {
  margin-inline-start: 0;
}

.kitchen-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.kitchen-ticket {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  border-top: 3px solid var(--warn);
}
.kitchen-ticket[data-status="received"] {
  border-top-color: var(--info);
}
.kitchen-ticket[data-status="ready"] {
  border-top-color: var(--ok);
}
.kitchen-ticket[data-status="served"] {
  border-top-color: var(--text-muted);
}
.kitchen-ticket .kt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.kitchen-ticket ul {
  display: grid;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.kitchen-ticket ul li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
}

/* Progress bar for ETA */
.progress {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--bg-alt);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  width: 0;
  transition: width var(--t-slow);
}

.eta-chips {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}
.eta-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  font-size: var(--fs-sm);
}
.eta-chip svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* 15. ---------------------------------------------------------------------
   Profile & auth
   --------------------------------------------------------------------- */
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--c-espresso), var(--c-coffee));
  color: #fdf7f0;
  flex-wrap: wrap;
}
.profile-header h1,
.profile-header h2 {
  color: #fff;
  font-size: var(--fs-xl);
}
.profile-header p {
  color: rgba(253, 247, 240, 0.72);
  font-size: var(--fs-sm);
}
.profile-header .btn-outline {
  --btn-fg: #fdf7f0;
  --btn-border: rgba(253, 247, 240, 0.35);
}

.tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  position: relative;
  padding: 0.85rem var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--t-fast);
}
.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--t-base);
}
.tab-btn:hover {
  color: var(--text);
}
.tab-btn.is-active {
  color: var(--accent);
}
.tab-btn.is-active::after {
  transform: scaleX(1);
}
.tab-panel {
  display: none;
  padding-top: var(--sp-5);
  animation: fadeUp var(--t-base);
}
.tab-panel.is-active {
  display: block;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.75rem var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-soft);
  transition: all var(--t-fast);
}
.side-nav a svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.side-nav a:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.side-nav a.is-active {
  background: var(--c-espresso);
  color: #fdf7f0;
}
[data-theme="dark"] .side-nav a.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
}
.side-nav .side-nav-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--sp-4) var(--sp-4) var(--sp-2);
}

.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}
.auth-aside {
  position: relative;
  background: var(--c-espresso);
  color: #fdf7f0;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(192, 122, 63, 0.32), transparent 55%);
}
.auth-aside > * {
  position: relative;
  z-index: 1;
}
.auth-aside h2 {
  color: #fff;
  margin-block: var(--sp-5) var(--sp-3);
}
.auth-aside p {
  color: rgba(253, 247, 240, 0.75);
}
.auth-aside blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-style: italic;
  color: rgba(253, 247, 240, 0.9);
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: var(--sp-4);
}
.auth-main {
  display: grid;
  /* An auto track sizes to the card's max-content width, which overflowed the
     padding on narrow phones; minmax(0, 1fr) lets the card shrink instead. */
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: clamp(2rem, 5vw, 4rem) var(--sp-5);
  background: var(--bg);
}
.auth-card {
  width: min(100%, 440px);
}
.auth-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: var(--sp-2);
}
.social-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-block: var(--sp-5);
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-soft);
  transition: all var(--t-fast);
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.social-btn svg {
  width: 18px;
  height: 18px;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-block: var(--sp-5);
}
.divider-text::before,
.divider-text::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.pw-meter {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}
.pw-meter i {
  height: 4px;
  flex: 1;
  border-radius: var(--r-full);
  background: var(--line);
  transition: background var(--t-base);
}
.pw-meter[data-level="1"] i:nth-child(1) {
  background: var(--danger);
}
.pw-meter[data-level="2"] i:nth-child(-n + 2) {
  background: var(--warn);
}
.pw-meter[data-level="3"] i:nth-child(-n + 3) {
  background: var(--info);
}
.pw-meter[data-level="4"] i {
  background: var(--ok);
}

/* 16. ---------------------------------------------------------------------
   Gallery page & lightbox
   ------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.gallery-grid .gallery-item {
  aspect-ratio: 4 / 3;
}
.gallery-grid .gallery-item.wide {
  grid-column: span 2;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--overlay);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  padding: var(--sp-5);
}
.lightbox.is-open {
  display: grid;
  animation: fadeIn var(--t-base);
}
.lightbox-inner {
  position: relative;
  max-width: min(1000px, 92vw);
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  animation: zoomIn var(--t-base);
}
.lightbox-inner img {
  width: 100%;
  max-height: 74vh;
  object-fit: cover;
}
.lightbox-cap {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 250, 0.92);
  color: var(--c-espresso);
  box-shadow: var(--sh-sm);
  transition: background var(--t-fast), color var(--t-fast);
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}
.lightbox-close {
  top: var(--sp-4);
  inset-inline-end: var(--sp-4);
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  inset-inline-start: var(--sp-4);
}
.lightbox-next {
  inset-inline-end: var(--sp-4);
}
.lightbox-count {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.14em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 17. ---------------------------------------------------------------------
   Offers, about, contact
   --------------------------------------------------------------------- */
.offer-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--t-base), box-shadow var(--t-base);
  height: 100%;
}
.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
}
.offer-card .oc-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.offer-card .oc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.offer-card:hover .oc-media img {
  transform: scale(1.05);
}
.offer-card .oc-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.offer-card .oc-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
}
.offer-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.offer-price strong {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--accent-strong);
}

.coupon {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  background: var(--bg-alt);
  flex-wrap: wrap;
}
.coupon code {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.team-card {
  text-align: center;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  height: 100%;
}
.team-card .avatar {
  margin-inline: auto;
  margin-bottom: var(--sp-4);
}
.team-card h3 {
  font-size: var(--fs-md);
}
.team-card span {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-card p {
  font-size: var(--fs-sm);
  margin-top: var(--sp-3);
}

.timeline-story {
  position: relative;
  padding-inline-start: var(--sp-6);
  display: grid;
  gap: var(--sp-6);
}
.timeline-story::before {
  content: "";
  position: absolute;
  inset-block: 6px;
  inset-inline-start: 7px;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}
.story-item {
  position: relative;
}
.story-item::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(-1 * var(--sp-6) + 1px);
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}
.story-item .year {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--sp-6);
  align-items: start;
}
.contact-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child {
  border-bottom: 0;
}
.contact-item .ci-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.contact-item .ci-icon svg {
  width: 20px;
  height: 20px;
}
.contact-item h4 {
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  font-weight: 700;
}
.contact-item p,
.contact-item a {
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.contact-item a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: all var(--t-fast);
}
.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  transform: translateY(-3px);
}
.social-links svg {
  width: 18px;
  height: 18px;
}

.accordion {
  display: grid;
  gap: var(--sp-3);
}
.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: start;
  transition: color var(--t-fast);
}
.accordion-trigger:hover {
  color: var(--accent);
}
.accordion-trigger .acc-icon {
  width: 22px;
  height: 22px;
  flex: none;
  position: relative;
}
.accordion-trigger .acc-icon::before,
.accordion-trigger .acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: 3px;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base);
}
.accordion-trigger .acc-icon::after {
  transform: rotate(90deg);
}
.accordion-item.is-open .acc-icon::after {
  transform: rotate(0);
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base);
}
.accordion-panel p {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-sm);
}

/* 18. ---------------------------------------------------------------------
   Admin dashboard
   ------------------------------------------------------------------------- */
/* Admin pages mount the shared overlays (modal host, scrim, drawers) so
   confirm dialogs work, but the storefront-only floating widgets stay out
   of the admin chrome. */
body[data-admin="true"] .floating-cart,
body[data-admin="true"] .quick-order,
body[data-admin="true"] .to-top {
  display: none;
}
.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-side {
  background: var(--c-espresso);
  color: rgba(253, 247, 240, 0.78);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-side .brand {
  margin-bottom: var(--sp-5);
  padding-inline: var(--sp-3);
}
.admin-side .brand-name {
  color: #fff;
}
.admin-side .brand-tag {
  color: rgba(253, 247, 240, 0.5);
}
.admin-side a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  transition: all var(--t-fast);
}
.admin-side a svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.admin-side a:hover {
  background: rgba(253, 247, 240, 0.08);
  color: #fff;
}
.admin-side a.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
}
.admin-side .side-foot {
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(253, 247, 240, 0.14);
  font-size: var(--fs-xs);
}
.admin-main {
  background: var(--bg);
  padding: var(--sp-6);
  min-width: 0;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.admin-topbar h1 {
  font-size: var(--fs-xl);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.stat-card {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.stat-card .s-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.stat-card .s-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-card .s-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
}
.stat-card .s-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.stat-card .s-icon svg {
  width: 20px;
  height: 20px;
}
.trend {
  font-size: var(--fs-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.trend-up {
  color: var(--ok);
}
.trend-down {
  color: var(--danger);
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 620px;
}
.data-table th,
.data-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: start;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table th {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-alt);
  position: sticky;
  top: 0;
}
.data-table tbody tr:hover {
  background: var(--bg-alt);
}
.data-table td.wrap {
  white-space: normal;
  min-width: 220px;
}
.table-user {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  height: 190px;
  padding-top: var(--sp-4);
}
.bar-chart .bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: var(--sp-2);
  height: 100%;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.bar-chart .bar i {
  width: 100%;
  max-width: 46px;
  border-radius: var(--r-xs) var(--r-xs) 0 0;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
  transition: height var(--t-slow);
  min-height: 4px;
}
.bar-chart .bar.is-peak i {
  background: linear-gradient(180deg, var(--c-espresso), var(--c-coffee));
}
[data-theme="dark"] .bar-chart .bar.is-peak i {
  background: linear-gradient(180deg, #fff, var(--accent));
}

.donut {
  --p: 62;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  margin-inline: auto;
  background: conic-gradient(
    var(--accent) calc(var(--p) * 1%),
    var(--bg-alt) 0
  );
  display: grid;
  place-items: center;
  position: relative;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--surface);
}
.donut-label {
  position: relative;
  z-index: 1;
  text-align: center;
}
.donut-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
}
.donut-label span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.admin-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  z-index: 95;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-espresso);
  color: #fdf7f0;
  place-items: center;
  box-shadow: var(--sh-lg);
}
.admin-toggle svg {
  width: 22px;
  height: 22px;
}

/* 19. ---------------------------------------------------------------------
   Footer, bottom nav, back-to-top
   ------------------------------------------------------------------------- */
.footer {
  background: var(--c-espresso);
  color: rgba(253, 247, 240, 0.76);
  padding-block: var(--sp-8) var(--sp-5);
  margin-top: auto;
}
[data-theme="dark"] .footer {
  background: #140f0c;
}
.footer h4 {
  color: #fff;
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer .brand-name {
  color: #fff;
}
.footer .brand-tag {
  color: rgba(253, 247, 240, 0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-6);
}
.footer p {
  color: rgba(253, 247, 240, 0.68);
  font-size: var(--fs-sm);
}
.footer-links {
  display: grid;
  gap: var(--sp-2);
}
.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(253, 247, 240, 0.68);
  transition: color var(--t-fast), transform var(--t-fast);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent-soft, var(--c-caramel-soft));
  transform: translateX(3px);
}
html[dir="rtl"] .footer-links a:hover {
  transform: translateX(-3px);
}
.footer .hours-row {
  border-color: rgba(253, 247, 240, 0.12);
  color: rgba(253, 247, 240, 0.68);
}
.footer .hours-row.is-today {
  color: var(--accent-soft, var(--c-caramel-soft));
}
.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(253, 247, 240, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: rgba(253, 247, 240, 0.55);
}
.footer .newsletter-form input {
  background: rgba(253, 247, 240, 0.08);
  border-color: rgba(253, 247, 240, 0.2);
  color: #fdf7f0;
}
.footer .newsletter-form input::placeholder {
  color: rgba(253, 247, 240, 0.5);
}
.footer .social-links a {
  border-color: rgba(253, 247, 240, 0.18);
  color: rgba(253, 247, 240, 0.7);
}
.footer .social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: var(--sp-2) var(--sp-3) calc(var(--sp-2) + env(safe-area-inset-bottom, 0px));
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--sp-2) 0;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
}
.bottom-nav a svg {
  width: 22px;
  height: 22px;
}
.bottom-nav a.is-current {
  color: var(--accent);
}
.bottom-nav a.is-current::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 24px;
  height: 3px;
  border-radius: var(--r-full);
  background: var(--accent);
}
.bottom-nav .bn-badge[data-empty="true"] {
  /* an empty cart must not advertise a "0" pill */
  display: none;
}
.bottom-nav .bn-badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 22%;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.65rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 65;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t-base);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.to-top svg {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}
html[dir="rtl"] .to-top svg {
  transform: rotate(90deg);
}

/* 20. ---------------------------------------------------------------------
   Overlays: drawer, modal, search, notifications, toast
   ------------------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--overlay);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(420px, 100%);
  z-index: calc(var(--z-drawer) + 1);
  background: var(--bg);
  border-inline-start: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform var(--t-slow);
  box-shadow: var(--sh-lg);
}
html[dir="rtl"] .drawer {
  transform: translateX(-105%);
}
.drawer.is-open {
  transform: none;
}
.drawer-left {
  inset-inline-end: auto;
  inset-inline-start: 0;
  border-inline-start: 0;
  border-inline-end: 1px solid var(--line);
  transform: translateX(-105%);
}
html[dir="rtl"] .drawer-left {
  transform: translateX(105%);
}
.drawer-left.is-open {
  transform: none;
}
/* The RTL transforms above are more specific than the plain .is-open rules,
   so they must be undone explicitly or the drawers never slide in on fa. */
html[dir="rtl"] .drawer.is-open,
html[dir="rtl"] .drawer-left.is-open {
  transform: none;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer-head h2 {
  font-size: var(--fs-md);
}
.drawer-body {
  padding: var(--sp-5);
  overflow-y: auto;
  flex: 1;
}
.drawer-foot {
  padding: var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  place-items: center;
  padding: var(--sp-5);
  background: var(--overlay);
  backdrop-filter: blur(4px);
}
.modal.is-open {
  display: grid;
  animation: fadeIn var(--t-fast);
}
.modal-box {
  position: relative;
  width: min(100%, 620px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  animation: zoomIn var(--t-base);
}
.modal-lg .modal-box {
  width: min(100%, 940px);
}
.modal-sm .modal-box {
  width: min(100%, 440px);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.modal-head h2,
.modal-head h3 {
  font-size: var(--fs-lg);
}
.modal-body {
  padding: var(--sp-5);
}
.modal-foot {
  padding: var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
  flex-wrap: wrap;
  background: var(--surface);
}
.modal-close {
  position: absolute;
  top: var(--sp-4);
  inset-inline-end: var(--sp-4);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  color: var(--text);
  transition: background var(--t-fast), color var(--t-fast);
}
.modal-close:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}
.modal-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 5);
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(10px);
  display: none;
  padding-top: clamp(2rem, 9vh, 6rem);
  overflow-y: auto;
}
.search-overlay.is-open {
  display: block;
  animation: fadeIn var(--t-fast);
}
.search-overlay .so-inner {
  width: min(100% - 2.5rem, 740px);
  margin-inline: auto;
  padding-bottom: var(--sp-8);
}
.search-overlay .search-field input {
  min-height: 60px;
  font-size: var(--fs-md);
  border-radius: var(--r-md);
}
.search-hint {
  margin-top: var(--sp-5);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.search-results {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}
.search-result {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all var(--t-fast);
}
.search-result:hover,
.search-result:focus-visible {
  background: var(--surface);
  border-color: var(--line);
}
.search-result img {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--bg-alt);
}
.search-result strong {
  display: block;
  font-size: var(--fs-sm);
}
.search-result span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.so-close {
  position: absolute;
  top: var(--sp-5);
  inset-inline-end: var(--sp-5);
}

.notif-list {
  display: grid;
  gap: var(--sp-2);
}
.notif-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background var(--t-fast);
}
.notif-item.is-unread {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.notif-item .n-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.notif-item .n-icon svg {
  width: 19px;
  height: 19px;
}
.notif-item h4 {
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  font-weight: 700;
}
.notif-item p {
  font-size: var(--fs-sm);
}
.notif-item time {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.toast-wrap {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: min(100% - 2rem, 390px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--c-espresso);
  color: #fdf7f0;
  box-shadow: var(--sh-lg);
  font-size: var(--fs-sm);
  pointer-events: auto;
  animation: toastIn var(--t-base);
}
[data-theme="dark"] .toast {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.toast.is-hiding {
  animation: toastOut var(--t-base) forwards;
}
.toast .t-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(253, 247, 240, 0.14);
  color: #fff;
}
.toast .t-icon svg {
  width: 17px;
  height: 17px;
}
.toast-success .t-icon {
  background: var(--ok);
  color: #fff;
}
.toast-error .t-icon {
  background: var(--danger);
  color: #fff;
}
.toast-info .t-icon {
  background: var(--info);
  color: #fff;
}
.toast-warn .t-icon {
  background: var(--warn);
  color: #fff;
}
.toast strong {
  display: block;
  font-size: var(--fs-sm);
}
.toast span {
  font-size: var(--fs-xs);
  opacity: 0.78;
}
.toast .t-body {
  flex: 1;
  min-width: 0;
}
.toast .t-close {
  color: inherit;
  opacity: 0.6;
  flex: none;
}
.toast .t-close:hover {
  opacity: 1;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

/* 21. ---------------------------------------------------------------------
   States: empty, skeleton, 404
   --------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--sp-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: grid;
  gap: var(--sp-3);
  justify-items: center;
}
.empty-state .es-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-2);
}
.empty-state .es-icon svg {
  width: 40px;
  height: 40px;
}
.empty-state h3 {
  font-size: var(--fs-lg);
}
.empty-state p {
  max-width: 42ch;
  font-size: var(--fs-sm);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--r-sm);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.35s infinite;
}
@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}
.sk-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.sk-media {
  aspect-ratio: 5 / 4;
  border-radius: 0;
}
.sk-line {
  height: 12px;
  margin: var(--sp-3) var(--sp-4);
  border-radius: var(--r-full);
}
.sk-line.w-40 {
  width: 40%;
}
.sk-line.w-60 {
  width: 60%;
}
.sk-line.w-80 {
  width: 80%;
}
.sk-row {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.sk-thumb {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: var(--r-sm);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-6);
  background: radial-gradient(circle at 50% 0%, var(--bg-alt), var(--bg) 65%);
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 13rem);
  line-height: 0.85;
  color: transparent;
  background: linear-gradient(150deg, var(--accent), var(--c-espresso));
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -0.04em;
}
.error-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.coffee-drip {
  width: 74px;
  height: 74px;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
  color: var(--accent);
  animation: float 4s ease-in-out infinite;
}

/* 22. ---------------------------------------------------------------------
   Utilities & animations
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}

[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 {
  margin-top: 0;
}
.mt-2 {
  margin-top: var(--sp-2);
}
.mt-3 {
  margin-top: var(--sp-3);
}
.mt-4 {
  margin-top: var(--sp-4);
}
.mt-5 {
  margin-top: var(--sp-5);
}
.mt-6 {
  margin-top: var(--sp-6);
}
.mt-7 {
  margin-top: var(--sp-7);
}
.mb-0 {
  margin-bottom: 0;
}
.mb-3 {
  margin-bottom: var(--sp-3);
}
.mb-4 {
  margin-bottom: var(--sp-4);
}
.mb-5 {
  margin-bottom: var(--sp-5);
}
.mb-6 {
  margin-bottom: var(--sp-6);
}
.w-full {
  width: 100%;
}
.flex-1 {
  flex: 1;
}
.gap-2 {
  gap: var(--sp-2);
}
.gap-3 {
  gap: var(--sp-3);
}
.rounded-lg {
  border-radius: var(--r-lg);
}
.overflow-hidden {
  overflow: hidden;
}
.relative {
  position: relative;
}
.sticky-top {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.hide-mobile {
  display: initial;
}

.hero-bg-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  pointer-events: none;
}

.scroll-x {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  padding-bottom: var(--sp-3);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.scroll-x > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

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

@media print {
  .header,
  .footer,
  .bottom-nav,
  .floating-cart,
  .quick-order,
  .to-top {
    display: none !important;
  }
}
