/* ===========================
       RESET / NORMALIZE
       =========================== */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body,
    h1,
    h2,
    h3,
    p,
    ul,
    li,
    form,
    input,
    button,
    textarea,
    nav {
      margin: 0;
      padding: 0;
    }
    ul {
      list-style: none;
    }
    a {
      text-decoration: none;
      color: inherit;
    }
    .visually-hidden {
      position: absolute !important;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    

    /* ===========================
       ROOT VARIABLES - NEW COLOR SCHEME
       =========================== */
    :root {
      --font-sans: 'Roboto', sans-serif;

      /* Primary brand (Just Eat–like) */
      --primary: #ff5a00;
      --primary-hover: #e25105;
      --brand-navy: #191919;

      /* Backgrounds - Dark Mode (Default) */
      --bg-page: #111111;
      --bg-card: #1e1e1e;
      --bg-beige: #151515;
      --bg-white: var(--bg-card);

      /* Text - Dark Mode */
      --text-primary: #f3f4f6;
      --text-secondary: #b4b7bd;
      --text-muted: #8d929b;

      /* Feedback */
      --success-green: #10B981;
      --error-red: #EF4444;
      --warning-amber: #F59E0B;
      --info-blue: #3B82F6;

      /* Borders & Dividers - Dark Mode */
      --border: #2c2c2c;
      --border-gray: var(--border);
      --divider-gray: var(--border);

      /* Legacy aliases */
      --primary-orange: var(--primary);
      --primary-orange-hover: var(--primary-hover);
      --nav-blue: var(--brand-navy);
      --white: var(--bg-white);
      --on-primary: #ffffff;
      --gray-100: var(--bg-beige);
      --gray-200: var(--border-gray);
      --gray-600: var(--text-secondary);
      --overlay-back: rgba(0, 0, 0, 0.5);

      /* Layout */
      --radius: 12px;
      --radius-lg: 14px;
      --chip-radius: 999px;
      --transition: 0.24s ease;
      --header-height: 72px;
      --nav-height: 52px;
      --service-height: 52px;
      --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
      --shadow-md: 0 6px 18px rgba(0,0,0,0.08);

      /* Theme helpers */
      --primary-soft: rgba(255, 90, 0, 0.12);
      --primary-ring: rgba(255, 90, 0, 0.25);
      --error-hover: #DC2626;
      --error-bg: rgba(239, 68, 68, 0.12);
    }

    /* ===========================
       LIGHT MODE THEME
       =========================== */
    body.light-mode {
      /* Backgrounds - Light Mode */
      --bg-page: #f7f7f5;
      --bg-card: #ffffff;
      --bg-white: #ffffff;

      /* Text - Light Mode */
      --text-primary: #1f1f1f;
      --text-secondary: #4a4a4a;
      --text-muted: #777b83;

      /* Borders & Dividers - Light Mode */
      --border: #e5e5e5;
      --border-gray: var(--border);
      --divider-gray: var(--border);

      /* Light-mode helpers */
      --primary-soft: #fff3eb;
      --primary-ring: rgba(255, 107, 53, 0.2);
      --error-hover: #DC2626;
      --error-bg: #FFE8E8;
    }

    /* Light-mode specific component tweaks */
    body.light-mode .service-toggle { background: rgba(0,0,0,0.06); }
    body.light-mode .service-btn:hover { background: rgba(0,0,0,0.08); }
    body.light-mode .cart-panel { background: var(--bg-white); border-color: var(--border); }
    body.light-mode .cart-popover { background: var(--bg-white); }
    body.light-mode .popular-badge { background: linear-gradient(135deg, var(--primary) 0%, #ff8555 100%); color: white; border: none; }
    body.light-mode .allergen-tag {
      background-color: var(--border-gray);
      color: var(--text-primary);
    }
    body.light-mode .popular-card {
      border-color: rgba(0,0,0,0.05);
      box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    }
    body.light-mode .mobile-nav-overlay,
    body.light-mode .recommendation-panel-overlay,
    body.light-mode .mobile-basket-modal {
      background: rgba(0,0,0,0.4);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
    }

    /* ===========================
       THEME TOGGLE BUTTON
       =========================== */
#theme-toggle {
  position: relative;
  width: 64px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.18);
  background: radial-gradient(160% 140% at 20% 20%, rgba(255,255,255,0.08), transparent 45%),
              linear-gradient(135deg, #1a1a1a, #0c0c0c);
  backdrop-filter: blur(6px);
  cursor: pointer;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0 8px;
  margin-left: 0.5rem;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
#theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe1c9, #ff7a1b 55%, #ff5a00);
  box-shadow: 0 10px 18px rgba(255,90,0,0.28), 0 0 0 1px rgba(255,255,255,0.14) inset;
  transform: translateX(30px);
  transition: transform var(--transition), box-shadow var(--transition);
}
#theme-toggle:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
}
#theme-toggle svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity var(--transition), transform var(--transition), color var(--transition);
  color: rgba(255,222,189,0.95);
}
    #sun-icon {
      display: block;
      opacity: 0.35;
      transform: translateX(-2px);
    }
    #moon-icon {
      display: block;
      opacity: 0.95;
    }
    body.light-mode #sun-icon {
      opacity: 0.95;
      transform: translateX(0);
    }
    body.light-mode #moon-icon {
      opacity: 0.35;
      transform: translateX(2px);
    }
body.light-mode #theme-toggle {
  background: radial-gradient(160% 140% at 20% 20%, rgba(255,90,0,0.12), transparent 45%),
              linear-gradient(135deg, #ffffff, #f4f4f4);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}
body.light-mode #theme-toggle::after {
  transform: translateX(0);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04) inset;
  background: linear-gradient(135deg, #ff7a1b, #ff5a00);
}
body.light-mode #theme-toggle svg {
  color: #1f1f1f;
}

/* Compact theme toggle on mobile to avoid distortion */
@media (max-width: 768px) {
  #theme-toggle {
    width: 54px;
    height: 28px;
    padding: 0 5px;
    justify-content: center;
    gap: 6px;
    margin-left: 0.35rem;
  }
  #theme-toggle::after {
    width: 22px;
    height: 22px;
    top: 3px;
    left: 3px;
    transform: translateX(21px);
  }
  body.light-mode #theme-toggle::after {
    transform: translateX(0);
  }
  #theme-toggle svg {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 600px) {
  /* Hide icons on very small screens; keep thumb-centric switch */
  #theme-toggle svg { display: none; }
  #theme-toggle { justify-content: flex-start; padding: 0 5px; }
}

    /* ===========================
       GLOBAL TYPOGRAPHY
       =========================== */
    body {
      font-family: var(--font-sans);
      background: var(--bg-page);
      color: var(--text-secondary);
      line-height: 1.6;
      padding-top: calc(var(--header-height) + var(--nav-height));
    }
    h2 {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 0.75rem;
      letter-spacing: -0.1px;
    }
    p {
      font-size: 1rem;
      color: var(--text-secondary);
      margin-bottom: 0.75rem;
    }
    label {
      display: block;
      margin-top: 1rem;
      font-weight: 600;
      color: var(--text-primary);
    }
    .order-date-display {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 0.55rem;
      flex-wrap: wrap;
      padding: 0.6rem 0.9rem;
      background: linear-gradient(135deg, rgba(255,90,0,0.08), rgba(255,90,0,0.02));
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
    }
    .order-date-display .date-label {
      display: inline-flex;
      align-items: baseline;
      gap: 0.35rem;
      color: var(--text-secondary);
      font-weight: 700;
      letter-spacing: 0.1px;
    }
    .order-date-display .date-value {
      color: var(--text-primary);
      font-weight: 800;
    }
    .order-date-display .live-time {
      font-weight: 800;
      font-variant-numeric: tabular-nums;
      color: var(--primary);
      font-size: 1.05rem;
      padding-left: 0.65rem;
      border-left: 1px solid var(--border);
    }
    .delivery-note {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      gap: 0.5rem;
      padding: 0.55rem 0.85rem;
      border-radius: var(--radius);
      border: 1px solid rgba(245, 158, 11, 0.45);
      background: rgba(245, 158, 11, 0.12);
      color: var(--warning-amber);
      font-size: 0.9rem;
      margin-top: 0.6rem;
      line-height: 1.4;
    }
    .sunday-hero {
      display: none;
      margin: 1.5rem auto 1.4rem;
      padding: 1.25rem 1.5rem;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: radial-gradient(circle at 20% 20%, rgba(255,90,0,0.18), transparent 40%), radial-gradient(circle at 80% 30%, rgba(245,158,11,0.2), transparent 42%), rgba(17,17,17,0.7);
      color: var(--text-primary);
      box-shadow: 0 14px 38px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
      max-width: 1200px;
      transform: translateY(48px);
      width: min(1200px, 98vw);
    }
    .sunday-hero .hero-content {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.75rem;
      justify-content: space-between;
    }
    .sunday-hero .hero-text {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      min-width: 240px;
    }
    .sunday-hero .hero-title {
      font-weight: 800;
      font-size: 1.15rem;
      letter-spacing: 0.1px;
    }
    .sunday-hero .hero-sub {
      color: var(--text-primary);
      opacity: 0.85;
      font-size: 0.96rem;
    }
    .sunday-hero .hero-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.7rem 1.05rem;
      border-radius: var(--chip-radius);
      border: 1px solid rgba(255,90,0,0.5);
      background: linear-gradient(135deg, rgba(255,90,0,0.25), rgba(245,158,11,0.18));
      color: var(--text-primary);
      font-weight: 800;
      cursor: pointer;
      transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
      box-shadow: 0 10px 26px rgba(255,90,0,0.18);
    }
    .sunday-hero .hero-btn:hover {
      background: linear-gradient(135deg, rgba(255,90,0,0.32), rgba(245,158,11,0.24));
      transform: translateY(-1px) scale(1.01);
      box-shadow: 0 14px 32px rgba(255,90,0,0.22);
    }
    /* Toast */
    .toast-container {
      position: fixed;
      top: calc(var(--header-height) + var(--nav-height) + 12px);
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.6rem;
      z-index: 9999;
      pointer-events: none;
      width: min(460px, 92vw);
    }
    .toast {
      min-width: 260px;
      max-width: 360px;
      padding: 0.75rem 1rem;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: linear-gradient(135deg, rgba(255,90,0,0.24), rgba(17,17,17,0.88));
      color: var(--text-primary);
      box-shadow: 0 12px 26px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-weight: 700;
      pointer-events: auto;
      animation: fadeInToast 0.2s ease, fadeOutToast 0.3s ease 3.2s forwards;
    }
    .toast .toast-icon {
      width: 18px;
      height: 18px;
      color: var(--warning-amber);
      flex-shrink: 0;
    }
    .toast .toast-text {
      flex: 1;
      font-size: 0.95rem;
      color: var(--text-primary);
    }
    .toast.toast-inline {
      position: fixed;
      top: calc(var(--header-height) + var(--nav-height) + 12px);
      left: 50%;
      transform: translateX(-50%);
      z-index: 10000;
      pointer-events: auto;
      width: min(460px, 92vw);
    }
    .toast-dismiss {
      appearance: none;
      border: none;
      background: transparent;
      color: var(--text-secondary);
      cursor: pointer;
      font-weight: 800;
      font-size: 0.95rem;
      padding: 0.15rem;
      transition: color var(--transition);
    }
    .toast-dismiss:hover {
      color: var(--text-primary);
    }
    body.light-mode .toast {
      border: 1px solid rgba(0,0,0,0.06);
      background: linear-gradient(135deg, rgba(255,90,0,0.12), rgba(255,255,255,0.94));
      box-shadow: 0 10px 18px rgba(0,0,0,0.12);
    }
    @keyframes fadeInToast { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes fadeOutToast { to { opacity: 0; transform: translateY(8px); } }
    body.light-mode .sunday-hero {
      border: 1px solid rgba(0, 0, 0, 0.06);
      background: radial-gradient(circle at 20% 20%, rgba(255,90,0,0.12), transparent 40%), radial-gradient(circle at 80% 30%, rgba(245,158,11,0.15), transparent 42%), rgba(255,255,255,0.9);
      box-shadow: 0 10px 26px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.45);
    }
    body.light-mode .sunday-hero .hero-sub {
      opacity: 0.8;
    }
    body.light-mode .sunday-hero .hero-btn {
      border: 1px solid rgba(255,90,0,0.35);
      background: linear-gradient(135deg, rgba(255,90,0,0.2), rgba(245,158,11,0.15));
      box-shadow: 0 10px 18px rgba(255,90,0,0.12);
      color: var(--text-primary);
    }
    body.light-mode .sunday-hero .hero-btn:hover {
      box-shadow: 0 12px 24px rgba(255,90,0,0.16);
    }
    button {
      font-family: var(--font-sans);
      color: var(--text-secondary);
      background: none;
      border: none;
      cursor: pointer;
    }
    input,
    textarea {
      color: var(--text-primary);
      font-size: 1rem;
    }

    /* ===========================
       STICKY HEADER
       =========================== */
header.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Dark theme header gradient */
body:not(.light-mode) header.top-bar {
  background:
    radial-gradient(circle at 16% 22%, rgba(255,90,0,0.22), transparent 36%),
    radial-gradient(circle at 84% 18%, rgba(255,158,44,0.20), transparent 38%),
    linear-gradient(140deg, rgba(20,20,24,0.94), rgba(10,10,12,0.98));
  border-bottom-color: rgba(255,255,255,0.1);
  box-shadow:
    0 12px 36px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
}
/* Slightly darker top bar in light mode for contrast */
body.light-mode header.top-bar {
  background: linear-gradient(135deg, #ffdcc3 0%, #ffe9d6 38%, #ffffff 100%);
  border-bottom: 2px solid rgba(0,0,0,0.15);
  box-shadow:
    0 10px 28px rgba(255,90,0,0.16),
    0 3px 10px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
}
    .site-brand {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex: 1;
      min-width: 0;
    }
    .site-brand .logo {
      height: 42px;
      width: auto;
      margin-right: 1.5rem;
      display: block;
    }
    /* Search bar in header */
    .search-bar {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.4rem 0.7rem;
      flex: 1;
      min-width: 180px;
    }
    .search-bar:focus-within {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(255,90,0,0.15);
    }
    .search-icon { width: 18px; height: 18px; stroke: var(--text-secondary); }
    .search-input {
      flex: 1;
      background: transparent;
      border: 0;
      outline: none;
      color: var(--text-primary);
      font-size: 0.95rem;
      min-width: 80px;
    }
    .search-input::placeholder { color: var(--text-muted); }
    .search-surprise {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.4rem 0.85rem;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.08);
      background: linear-gradient(120deg, #ff914d, #ff5c25, #ff3b59);
      color: #fff;
      font-weight: 700;
      font-size: 0.85rem;
      letter-spacing: 0.01em;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(255,92,37,0.28), inset 0 1px 0 rgba(255,255,255,0.16);
      transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
      flex-shrink: 0;
    }
    .search-surprise:hover,
    .search-surprise:focus-visible {
      transform: translateY(-1px);
      box-shadow: 0 10px 22px rgba(255,92,37,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
      filter: brightness(1.05);
      outline: none;
    }
    .search-surprise:active {
      transform: translateY(0);
      box-shadow: 0 6px 14px rgba(255,92,37,0.28);
    }
    .surprise-glow {
      font-size: 0.95rem;
      filter: drop-shadow(0 0 6px rgba(255,255,255,0.65));
      animation: twinkle 2.6s ease-in-out infinite;
    }
    .surprise-text {
      white-space: nowrap;
    }
    @keyframes twinkle {
      0%, 100% { opacity: 1; transform: translateY(0); }
      50% { opacity: 0.6; transform: translateY(-1px); }
    }

    /* Center links */
    .header-links {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .header-links .link-item {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--primary);
      cursor: pointer;
      transition: all var(--transition);
      border: 1px solid transparent;
      border-radius: 999px;
      padding: 0.4rem 0.75rem;
      background: rgba(255,255,255,0.08);
      opacity: 1;
    }
    .header-links .link-item:hover,
    .header-links .link-item:focus-visible {
      color: #fff;
      border-color: transparent;
      background: linear-gradient(135deg, var(--primary), var(--primary-hover));
      box-shadow: 0 4px 14px rgba(255,90,0,0.22);
      opacity: 1;
    }
    .link-icon { width: 16px; height: 16px; stroke: currentColor; }

    /* Quick Add dropdown */
    .quick-add .dropdown {
      display: none;
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
      z-index: 110;
      width: 240px;
      padding: 0.6rem;
    }
    .quick-add:hover .dropdown,
    .quick-add:focus-within .dropdown {
      display: block;
    }
    .dropdown-section + .dropdown-section {
      margin-top: 0.5rem;
      border-top: 1px solid var(--gray-200);
      padding-top: 0.5rem;
    }
    .dropdown-section h4 {
      margin-bottom: 0.25rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--nav-blue);
    }
    .dropdown-section ul {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }
    .dropdown-section li {
      padding: 0.25rem 0.5rem;
      font-size: 0.85rem;
      color: var(--gray-600);
      cursor: pointer;
      transition: background var(--transition), color var(--transition);
    }
    .dropdown-section li:hover {
      background: var(--bg-beige);
      color: var(--primary-orange);
      border-radius: 6px;
    }

    /* ===========================
       CART ON RIGHT (HEADER)
       =========================== */
    .cart { position: relative; display: flex; align-items: center; }
    .cart-button {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      background: rgba(255,255,255,0.08);
      border: 1px solid transparent;
      color: var(--primary);
      padding: 0.4rem 0.7rem;
      border-radius: 999px;
      cursor: pointer;
      transition: border-color var(--transition), color var(--transition), background var(--transition);
    }
    .cart-button:hover { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); box-shadow: 0 4px 14px rgba(255,90,0,0.22); }
    .cart-button .cart-icon { width: 18px; height: 18px; stroke: currentColor; }
    .cart-button .cart-label { font-weight: 800; font-size: 0.9rem; }
    .cart-button .cart-badge {
      min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
      background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 0.75rem; line-height: 1;
    }
    .cart-popover {
      display: none;
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
      z-index: 110;
      width: 360px;
      padding: 0.75rem;
      flex-direction: column;
    }
    /* Popover shows only when cart has .open (toggled by JS) */
    .cart.open .cart-popover { display: flex; }
    .cart-popover h3 { font-size: 1rem; font-weight: 800; margin: 0 0 0.6rem 0; color: var(--text-primary); }
    .cart-popover .popover-error { display:none; margin: 0.5rem 0; font-size: 0.85rem; color: var(--error-red); background: var(--error-bg); padding: 0.4rem 0.5rem; border-radius: 6px; }
    .cart-popover ul { margin: 0 0 0.75rem 0; padding: 0; list-style: none; max-height: 260px; overflow-y: auto; }
    .cart-popover li {
      display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
      font-size: 0.92rem; color: var(--text-primary);
      border: 1px solid var(--border); border-radius: 10px; padding: 0.55rem 0.6rem; margin-bottom: 0.5rem;
    }
    .cart-popover li span { flex: 1; }
    .cart-popover li button {
      background: transparent; border: 2px solid var(--border); color: var(--text-primary);
      width: 28px; height: 28px; line-height: 24px; text-align: center; border-radius: 50%; cursor: pointer;
      transition: all var(--transition); font-weight: 800;
    }
    .cart-popover li button:hover { border-color: var(--primary); color: var(--primary); }
    .cart-popover .subtotal { font-size: 1rem; font-weight: 800; display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); padding: 0.4rem 0.25rem 0.6rem; border-top: 1px solid var(--border); }
    .cart-popover button#popover-order { background: var(--primary-orange); color: var(--on-primary); border: none; width: 100%; padding: 0.7rem 1rem; border-radius: 10px; font-size: 0.95rem; font-weight: 800; cursor: pointer; transition: all var(--transition); }
    .cart-popover button#popover-order:hover { background: var(--primary-orange-hover); box-shadow: 0 8px 20px rgba(255,90,0,0.25); transform: translateY(-1px); }

    /* ===========================
       STICKY CATEGORY NAV
       =========================== */
    nav.category-nav {
      position: fixed;
      top: var(--header-height);
      left: 0;
      width: 100%;
      height: var(--nav-height);
      background: var(--bg-white);
      border-bottom: 1px solid rgba(255,255,255,0.06);
      display: flex;
      align-items: center;
      overflow-x: auto;
      overflow-y: hidden;
      padding-left: 1.5rem;
      z-index: 90;
      box-shadow: 0 4px 12px rgba(0,0,0,0.04);
      -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
      -ms-overflow-style: none; /* IE */
      scrollbar-width: none;    /* Firefox */
    }
    .category-nav::-webkit-scrollbar {
      display: none;
    }
    .category-nav ul {
      display: flex;
      align-items: center;
      height: 100%;
      gap: 0.85rem;
      padding-right: 1.5rem;
    }
    .category-nav a {
      white-space: nowrap;
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-secondary);
      padding: 0.55rem 1.15rem;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.02);
      transition: all 0.2s ease;
      box-shadow: none;
    }
    .category-nav a.active {
      background: rgba(255,90,0,0.16);
      color: var(--primary);
      box-shadow: none;
      font-weight: 800;
      border-color: rgba(255,90,0,0.35);
    }
    .category-nav a:hover {
      color: var(--text-primary);
      background: rgba(255,255,255,0.04);
      border-color: rgba(255,255,255,0.2);
    }

    /* ===========================
       CONFIRMATION BANNER
       =========================== */
    .confirmation {
      display: none;
      margin: 1rem auto;
      max-width: 800px;
      background: var(--gray-100);
      color: var(--gray-600);
      padding: 0.75rem;
      border-radius: var(--radius);
      text-align: center;
      font-weight: 500;
      border: 1px solid var(--gray-600);
    }
    .confirmation a {
      display: inline-block;
      margin-top: 0.5rem;
      font-size: 0.9rem;
      color: var(--nav-blue);
      text-decoration: underline;
      cursor: pointer;
    }

    /* ===========================
       MAIN LAYOUT
       =========================== */
    main {
      display: grid; /* Changed to grid for column layout */
      grid-template-columns: 1fr; /* Default to single column for smaller screens */
      gap: 2rem;
      max-width: 1200px;
      margin: auto;
      padding: 1rem;
      margin-top: 0.5rem;
      /* No padding-right here as the grid will manage space */
    }

    /* Desktop layout for menu and cart */
    @media (min-width: 1024px) {
      main {
        grid-template-columns: 1fr 300px; /* Menu takes 1fr, cart takes 300px */
        align-items: flex-start; /* Align items to the top */
        padding-right: 0; /* Remove right padding as cart is within grid */
      }
      .cart-panel {
        /* Keep sticky positioning as it works well within grid column */
        position: sticky;
        top: calc(var(--header-height) + var(--nav-height) + 8px);
        background: var(--white);
        padding: 1rem;
        border-radius: var(--radius);
        border: 1px solid var(--gray-200);
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        min-width: auto; /* Remove min-width, grid will manage width */
        flex: auto; /* Remove flex properties as grid manages layout */
        align-self: flex-start;
        margin-top: 0;
      }
    }

    /* Hide cart panel on desktop and use single-column layout (modal handles checkout) */
    @media (min-width: 1024px) {
      .cart-panel { display: none; }
      main { grid-template-columns: 1fr; }
    }

    /* ===========================
       CATEGORY & ITEM STYLING
       =========================== */
    .category {
      display: flex;
      flex-direction: column;
      /* Ensure anchored scroll positions land below sticky header+nav */
      scroll-margin-top: calc(var(--header-height) + var(--nav-height) + 8px);
      padding-top: 0;
    }
    .category h2 {
      margin-bottom: 1.5rem;
      font-size: 1.5rem;
      color: var(--text-primary);
      font-weight: 800;
      border-bottom: none;
      padding-bottom: 0;
      letter-spacing: -0.5px;
    }
    .item {
      display: flex;
      flex-direction: column;
      background: var(--bg-card);
      border: none;
      border-radius: 12px;
      padding: 1rem;
      margin-bottom: 0.75rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      position: relative;
      transition: all 0.2s ease;
    }
    .item:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
    .item-header { display:flex; align-items:flex-start; justify-content: space-between; gap: 1rem; }
    .item-title-wrap { display:flex; flex-direction: column; align-items:flex-start; gap: 0.35rem; }
    .item-title-row { display:flex; align-items:center; gap: 0.35rem; }
    .item-spice { display:flex; align-items:center; color: #d60606; }
    .item-spice svg { width: 18px; height: 18px; margin-left: 4px; fill: #d60606; }
    .spice-legend {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      font-size: 0.9rem;
      color: var(--text-secondary);
      margin: 0.35rem 0 0.35rem;
    }
    .spice-legend .legend-label {
      font-weight: 700;
      color: var(--text-primary);
      letter-spacing: 0.2px;
    }
    .spice-legend .legend-item {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .spice-legend .legend-icon {
      display: inline-flex;
      align-items: center;
      color: #d60606;
    }
    .spice-legend .legend-icon svg {
      width: 16px;
      height: 16px;
      margin: 0;
    }
    .item-title {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--text-primary);
      cursor: pointer;
      letter-spacing: -0.2px;
      line-height: 1.3;
    }
    .item-allergens {
      font-size: 0.8rem;
      margin-left: 0.5rem;
    }
    .item-allergens-container {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 0.5rem;
    }
    .item-allergens-inline {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin-left: 0.5rem;
    }
    .item-desc-inline {
      color: var(--text-secondary);
      font-size: 0.95rem;
      margin-left: 0.5rem;
      line-height: 1.3;
    }
    .postcode-note {
      font-size: 0.85rem;
      color: var(--warning-amber);
      margin-top: 0.25rem;
    }
    .inline-alert {
      display: none;
      margin-top: 0.5rem;
      padding: 0.6rem 0.75rem;
      border-radius: 10px;
      background: var(--error-bg);
      color: var(--error-red);
      border: 1px solid var(--error-red);
      font-size: 0.9rem;
      text-align: center;
      justify-content: center;
      align-items: center;
    }
    .allergen-tag {
      background-color: var(--gray-200);
      color: var(--text-secondary);
      padding: 0.25rem 0.5rem;
      border-radius: var(--chip-radius);
      font-size: 0.75rem;
      font-weight: 500;
    }
    .item-price {
      font-weight: 800;
      color: var(--text-primary);
      white-space: nowrap;
      font-size: 1rem;
    }
    .item-desc {
      margin-top: 0.4rem;
      font-size: 0.95rem;
      color: var(--text-secondary);
      line-height: 1.45;
    }
    .category-desc { /* New style */
      font-size: 0.9rem;
      color: var(--text-secondary);
      margin-top: -1rem;
      margin-bottom: 1.5rem;
      font-style: italic;
      opacity: 0.8;
      max-width: 600px;
    }
    .item-actions { display:flex; justify-content:flex-end; align-items:center; margin-top: 0.85rem; gap: 0.5rem; }
    .add-btn {
      background: var(--primary-orange);
      color: var(--on-primary);
      border: none;
      padding: 0.65rem 1.4rem;
      border-radius: 8px;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
      letter-spacing: 0.2px;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      -webkit-user-select: none;
    }
    .add-btn:hover {
      background: var(--primary-hover);
      box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
      transform: translateY(-1px);
    }
    .add-btn.disabled {
      background: var(--gray-200);
      color: var(--text-secondary);
      border: 1px solid var(--gray-200);
      box-shadow: none;
      cursor: not-allowed;
      opacity: 0.7;
      transform: none;
    }
    body.light-mode .add-btn.disabled {
      background: #e5e5e5;
      color: #8a8a8a;
      border-color: #e5e5e5;
    }
    .qty-controls { display:none; gap:0.5rem; align-items:center; }
    .qty-btn { width:36px; height:36px; border-radius:50%; border:2px solid var(--primary); background:var(--bg-white); color: var(--primary); font-size:1.1rem; font-weight:800; cursor:pointer; transition: all var(--transition); touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
    .qty-btn:hover { background:var(--primary-soft); }
    .qty-value { min-width: 24px; text-align:center; font-weight:800; color: var(--text-primary); }
    .add-btn.is-loading,
    .popular-add.is-loading { opacity: 0.7; }
    .cart-fly-dot {
      position: fixed;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--primary);
      z-index: 400;
      pointer-events: none;
      box-shadow: 0 8px 18px rgba(0,0,0,0.28);
    }

    /* Subtle pop feedback on destination */
    @keyframes popPulse {
      0% { transform: scale(1); }
      60% { transform: scale(1.08); }
      100% { transform: scale(1); }
    }
    .pop-pulse {
      animation: popPulse 180ms ease-out;
    }

    /* Small pop on cart badges when items arrive */
    @keyframes badgePop {
      0% { transform: scale(1); }
      50% { transform: scale(1.12); }
      100% { transform: scale(1); }
    }
    .badge-pop {
      animation: badgePop 180ms ease-out;
    }

    /* ===========================
       CART PANEL CONTENT
       =========================== */
    .cart-panel h2 {
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 1rem;
      color: var(--text-primary);
    }
    .cart-panel ul {
      max-height: 280px;
      overflow-y: auto;
      margin-bottom: 1rem;
    }
    .cart-panel li {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.6rem 0;
      border-bottom: 1px dashed var(--divider-gray);
      font-size: 0.95rem;
      color: var(--text-primary);
    }
    .cart-panel li span:first-child {
      flex: 1;
    }
    .cart-panel li button {
      background: none;
      border: none;
      font-size: 1rem;
      width: 24px;
      height: 24px;
      line-height: 24px;
      text-align: center;
      cursor: pointer;
      border-radius: var(--radius);
      color: var(--text-secondary);
      transition: color var(--transition);
    }
    .cart-panel li button:hover {
      color: var(--error-red);
    }
    #empty-msg {
      text-align: center;
      color: var(--text-muted);
      margin-bottom: 1rem;
      font-size: 0.95rem;
      font-style: italic;
    }
    #total-label {
      font-size: 1.15rem;
      font-weight: 700;
      display: flex;
      justify-content: space-between;
      margin-bottom: 1rem;
      color: var(--text-primary);
      padding-top: 0.5rem;
      border-top: 2px solid var(--border-gray);
    }
    .clear-cart-btn {
      background: var(--error-red);
      color: var(--on-primary);
      border: none;
      padding: 0.6rem 1rem;
      border-radius: var(--radius);
      font-size: 0.9rem;
      cursor: pointer;
      width: 100%;
      font-weight: 600;
      transition: all var(--transition);
    }
    .clear-cart-btn:hover {
      background: var(--error-hover);
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

    /* ===========================
       FORM STYLING
       =========================== */
    form {
      margin-top: 1rem;
    }
    form label {
      margin-top: 1rem;
      font-weight: 500;
      color: var(--gray-600);
    }
    form input,
    form textarea,
    form select.custom-select {
      width: 100%;
      padding: 0.7rem 1rem;
      margin-top: 0.5rem;
      margin-bottom: 1rem;
      border: 2px solid var(--border-gray);
      border-radius: var(--radius);
      font-size: 1rem;
      outline: none;
      transition: all var(--transition);
      color: var(--text-primary);
      background: var(--bg-white);
    }
    form input::placeholder,
    form textarea::placeholder,
    form select.custom-select::placeholder {
      color: var(--text-muted);
    }

    form select.custom-select {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23FF6B35' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      background-size: 1em;
    }
    form input:focus,
    form textarea:focus,
    form select.custom-select:focus {
      border-color: var(--primary-orange);
      box-shadow: 0 0 0 3px var(--primary-ring);
    }

    /* Tooltip styles */
    .tooltip-text {
      position: absolute;
      background-color: var(--bg-card);
      color: var(--text-primary);
      padding: 5px 10px;
      border-radius: 4px;
      font-size: 0.85rem;
      white-space: nowrap;
      z-index: 1;
      transform: translateY(-50%) translateX(10px); /* Position next to the label */
      pointer-events: none; /* Allows clicks through the tooltip */
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .order-time-wrapper:hover .tooltip-text {
      opacity: 1;
    }

    .mobile-nav-menu {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      background: var(--nav-blue);
      padding: calc(var(--header-height) + 0.5rem) 1rem calc(env(safe-area-inset-bottom) + 1rem);
      z-index: 1000; /* ensure always on top */
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    body.light-mode .mobile-nav-menu { background: var(--bg-white); }
    body.light-mode .mobile-nav-menu .link-item { color: var(--text-primary); }
    body.light-mode .mobile-nav-menu .link-item .subtitle { color: var(--text-secondary); }

    .mobile-nav-menu.active {
      display: block;
    }

    .mobile-nav-menu .link-item {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      color: var(--text-primary);
      padding: 0.75rem 0.25rem;
      min-height: 44px; /* touch target */
      text-decoration: none;
    }
    .mobile-nav-menu .link-item:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); border-radius: 8px; }
    .mobile-nav-menu .link-item .nav-text .title { font-weight: 700; }
    .mobile-nav-menu .link-item .nav-text .subtitle { color: var(--text-secondary); font-size: 0.85rem; }

    /* Make Quick Add dropdown readable/accessible inside drawer */
    .mobile-nav-menu .quick-add .dropdown {
      position: static;
      display: none; /* hidden until Quick Add is toggled */
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0.25rem 0 0.5rem 2rem;
      width: 100%;
    }
    .mobile-nav-menu .quick-add.open .dropdown { display: block; }
    form button[type="submit"] {
      background: var(--primary-orange);
      color: var(--on-primary);
      border: none;
      padding: 1.1rem;
      width: 100%;
      border-radius: 8px;
      font-size: 1.1rem;
      cursor: pointer;
      font-weight: 800;
      transition: all 0.2s ease;
      margin-top: 1.5rem;
      letter-spacing: 0.5px;
    }
    form button[type="submit"]:hover {
      background: var(--primary-orange-hover);
      box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
      transform: translateY(-2px);
    }

    /* ===========================
       MODAL
       =========================== */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.6);
      align-items: center;
      justify-content: center;
      z-index: 200;
    }
    .modal-content {
      background: var(--bg-white);
      border-radius: var(--radius);
      width: 90%;
      max-width: 440px;
      padding: 1.25rem;
      position: relative;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    .modal-content h3 {
      margin-bottom: 0.75rem;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--text-primary);
    }
    .modal-content p {
      margin-bottom: 1rem;
      font-size: 1rem;
      color: var(--text-secondary);
    }
    .modal-content label {
      margin: 0.75rem 0 0.5rem;
      font-weight: 600;
      display: block;
      font-size: 1rem;
      color: var(--text-primary);
    }
    .modal-content input[type="number"] {
      width: 70px;
      padding: 0.6rem;
      margin-right: 0.75rem;
      border: 2px solid var(--border);
      border-radius: var(--radius);
      font-size: 1rem;
      color: var(--text-primary);
      background-color: var(--bg-card);
      caret-color: var(--text-primary);
      -webkit-appearance: none;
      -moz-appearance: textfield;
      appearance: none;
    }
    .modal-content input[type="number"]:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--primary-ring);
    }
    /* Ensure WebKit spinners don't force a white patch */
    .modal-content input[type="number"]::-webkit-outer-spin-button,
    .modal-content input[type="number"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    /* Highest specificity to override any UA or later rules */
    #item-modal .modal-content #modal-quantity {
      background-color: var(--bg-card) !important;
      color: var(--text-primary) !important;
      border-color: var(--border) !important;
    }
    .modal-content button {
      background: var(--primary-orange);
      color: var(--on-primary);
      border: none;
      padding: 0.7rem 1.5rem;
      border-radius: var(--radius);
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all var(--transition);
    }
    .modal-content button:hover {
      background: var(--primary-orange-hover);
      box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
      transform: translateY(-1px);
    }

    /* Cart checkout CTA in panel (desktop only) */
    #cart-checkout-btn { background: var(--primary-orange); color: var(--on-primary); border: none; padding: 0.7rem 1rem; border-radius: 10px; font-weight: 800; cursor: pointer; transition: all 0.2s ease; width: 100%; }
    #cart-checkout-btn:hover { background: var(--primary-orange-hover); box-shadow: 0 8px 20px rgba(255, 90, 0, 0.25); transform: translateY(-1px); }
    @media (min-width: 1024px) { #cart-checkout-btn { display: block !important; } #order-form { display: none; } }
    @media (max-width: 1023px) { #cart-checkout-btn { display: none !important; } }

    /* Checkout stepper styles */
    .checkout-modal-content { max-width: 560px; width: 92vw; }
    .checkout-steps { display: flex; gap: 8px; margin: 0.25rem 0 0.75rem; }
    .checkout-steps .step-dot { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); font-weight: 700; display: inline-flex; align-items:center; justify-content:center; cursor: default; }
    .checkout-steps .step-dot[aria-current="step"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
    .checkout-step .field-row { display:flex; flex-direction:column; gap: 6px; margin-bottom: 10px; }
    .checkout-step input, .checkout-step select, .checkout-step textarea { padding: 0.6rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text-primary); }
    .checkout-step input:focus, .checkout-step select:focus, .checkout-step textarea:focus { outline:none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
    .checkout-actions { display:flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
    .checkout-actions #checkout-back { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
    .review-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; }
    #checkout-review-list { list-style:none; margin:0 0 0.5rem 0; padding:0; max-height: 220px; overflow:auto; }
    #checkout-review-list li { display:flex; justify-content: space-between; padding: 4px 0; }
    .review-totals { display:flex; flex-direction:column; gap: 6px; }
    .review-totals > div { display:flex; justify-content: space-between; }
    .review-total { border-top: 1px solid var(--border); padding-top: 6px; font-size: 1.05rem; }

    /* App-styled confirm modal */
    .confirm-actions { display:flex; justify-content:flex-end; gap: 0.5rem; margin-top: 0.75rem; }
    .modal-content .btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
    .modal-content .btn-secondary:hover { background: var(--primary-soft); box-shadow: none; transform: none; }
    .modal-content .btn-danger { background: #ef4444; }
    .modal-content .btn-danger:hover { background: #dc2626; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); transform: translateY(-1px); }

    #recommendation-modal .modal-content {
      max-width: 400px;
      max-height: 80vh;
      padding: 1.5rem;
    }

    #recommendation-modal #recommendation-items .item {
      padding: 0.75rem;
      margin-bottom: 0.5rem;
    }



#recommendation-modal #recommendation-items .item-header {

      margin-bottom: 0.25rem;

    }



.recommendation-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.recommendation-panel-overlay.active {
  opacity: 1;
  pointer-events: auto;
}



.recommendation-panel {
  position: fixed;
  top: 80px;
  right: -360px;
  width: 360px;
  max-height: 84vh;
      background: linear-gradient(170deg, rgba(255,90,0,0.16), rgba(17,17,17,0.92));
      border: 1px solid rgba(255,255,255,0.08);
      backdrop-filter: blur(18px) saturate(160%);
      border-radius: 20px 0 0 20px;
      box-shadow: -10px 18px 36px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none; /* prevent intercepting taps when hidden */
  opacity: 0;
  transform: translateY(8px) scale(0.99);
}







.recommendation-panel.active {
  right: 16px;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}







.recommendation-panel-header {



  display: flex;



  justify-content: space-between;



  align-items: center;



  padding: 0.95rem 1.1rem;



  border-bottom: 1px solid rgba(255,255,255,0.12);



}







.recommendation-panel-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.1px;
}
.rec-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.rec-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.16);
}
.rec-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}
.rec-kicker {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.rec-subtext {
  font-size: 0.78rem;
  color: var(--text-primary);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}







.recommendation-panel-content {
  padding: 1.1rem;
  overflow: hidden; /* wrapper hides scrollbars */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}
/* Inner scroller: scrolls content while scrollbar stays clipped by wrapper */
.recommendation-panel-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: inherit;
  scroll-snap-type: y proximity;
  scroll-padding: 0.75rem;
  max-height: 62vh;
  /* Show modern styled scrollbar */
  scrollbar-gutter: stable; /* reserve gutter so content doesn't touch scrollbar */
  padding-right: 12px;       /* small visual gap from items to scrollbar */
  margin-right: 0;
}

/* Modern, visible scrollbar with black background for recommendation scroller */
.recommendation-panel-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.35) transparent; }
.recommendation-panel-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.recommendation-panel-scroll::-webkit-scrollbar-track { background: transparent; border-radius: 999px; }
.recommendation-panel-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6b7280, #9ca3af); /* slate to gray */
  border-radius: 999px;
  border: 2px solid transparent; /* let panel background show through */
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.recommendation-panel-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #818cf8, #a5b4fc);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.recommendation-panel-scroll::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #60a5fa, #93c5fd);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}







.recommendation-panel .item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
  color: var(--text-primary);
}
.recommendation-panel .item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.2);
}
    .recommendation-panel .add-btn {
      padding: 0.55rem 1.05rem;
      font-size: 0.9rem;
      background: var(--primary);
      color: var(--on-primary);
      border: 1px solid var(--primary);
      font-weight: 700;
    }

/* Compact layout for mobile */
@media (max-width: 900px) {
  .recommendation-panel {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(92vw, 360px);
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    transform: translate(-50%, -40%) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .recommendation-panel.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .recommendation-panel-header { padding: 0.6rem 0.75rem; }
  .recommendation-panel-header h3 { font-size: 0.9rem; line-height: 1.15; }
  .rec-icon { width: 28px; height: 28px; border-radius: 8px; }
  .rec-kicker { font-size: 0.64rem; letter-spacing: 0.3px; }
  .rec-subtext { font-size: 0.72rem; opacity: 0.8; }
  .recommendation-panel-content { padding: 0.6rem 0.7rem; gap: 0.45rem; }
  .recommendation-panel .item { padding: 0.6rem 0.7rem; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,0.14); }
  .recommendation-panel .item .item-header { font-size: 0.95rem; }
  .recommendation-panel .item .item-desc { font-size: 0.82rem; }
  .recommendation-panel .add-btn { padding: 0.45rem 0.8rem; font-size: 0.86rem; }
}

/* Desktop uses default sizing (no compact overrides) */



.close-panel {

  background: none;

  border: none;

  font-size: 1.5rem;

  cursor: pointer;

  color: var(--text-secondary);

}

    /* ===========================
       POPULAR SECTION (Just Eat–style, compact)
       =========================== */
    .meta-bar { max-width: 1200px; margin: 0.4rem auto 0 auto; padding: 0 1rem 0.25rem; display:flex; align-items:center; gap: 0.5rem; flex-wrap: wrap; }
    .meta-chip { display:inline-flex; align-items:center; gap: 0.45rem; color: var(--text-primary); border: 1px solid var(--border); border-radius: 999px; padding: 0.4rem 0.7rem; background: var(--bg-card); position: relative; }
    .meta-chip .chip-icon { width: 16px; height: 16px; stroke: currentColor; }
    .meta-chip .chip-text { font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.3px; }
    .meta-chip.delivery { cursor: pointer; }
    .meta-chip:hover { border-color: var(--primary); }
    .delivery-popover { display:none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; max-width: 320px; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 0.6rem 0.7rem; z-index: 150; }
    .delivery-popover .popover-row { font-size: 0.92rem; line-height: 1.45; margin: 0.15rem 0; }
    .delivery-popover .popover-divider { height: 1px; background: var(--border); margin: 0.4rem 0; }
    .meta-chip.open .delivery-popover { display: block; }

    /* Responsive tweaks for the in-search “Surprise me” pill */
    @media (max-width: 1024px) {
      .search-surprise { padding: 0.35rem 0.7rem; font-size: 0.82rem; }
    }
    @media (max-width: 900px) {
      .search-bar { flex-wrap: wrap; }
      .search-surprise { margin-left: auto; }
    }
    @media (max-width: 768px) {
      .search-surprise { padding: 0.35rem 0.6rem; }
    }
    @media (max-width: 600px) {
      .search-surprise .surprise-text { display: none; }
      .search-surprise { padding: 0.3rem 0.55rem; min-width: 0; }
    }

    @media (max-width: 768px) {
      .meta-bar { margin: calc(60px + 48px + 8px) 0 0 0; padding: 0 1rem 0.25rem; }
    }
    .popular-section { max-width: 1200px; margin: calc(var(--header-height) + var(--nav-height) + 14px) auto 0 auto; padding: 0 1.25rem 0; }
    .popular-header { display:flex; align-items:flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
    .popular-left { display:flex; flex-direction:column; gap: 0.35rem; }
    .popular-title { display: inline-flex; font-size: 1.4rem; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; text-transform: none; }
    .popular-meta { display:flex; align-items:center; gap: 0.5rem; flex-wrap: wrap; }
    .popular-meta-below { margin-top: 0.6rem; }
    /* Horizontal strip / swipe carousel */
    .popular-row {
      position: relative;
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(320px, 360px);
      gap: 1.1rem;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 0.75rem 0 0.75rem;
      -ms-overflow-style: none; /* IE/Edge */
      scrollbar-width: none;    /* Firefox */
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
      scroll-snap-type: x proximity;
      scroll-padding: 1.25rem;
      scroll-behavior: smooth;
      cursor: grab;
      -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    }
    .popular-row::-webkit-scrollbar { display: none; }
    .popular-row.dragging { cursor: grabbing; cursor: -webkit-grabbing; }
    .popular-card {
      position: relative;
      display: flex;
      flex-direction: column;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 1.35rem 1.25rem 1.15rem;
      box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
      will-change: transform, box-shadow;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      min-height: 160px;
      overflow: visible;
      touch-action: pan-x pan-y;
      flex: 0 0 min(360px, 100%);
      scroll-snap-align: center;
    }
    .popular-card:focus-within {
      outline: 2px solid var(--primary);
      outline-offset: 3px;
    }

    /* Desktop only - cursor and snap */
    @media (min-width: 901px) {
      .popular-card {
        flex: 0 0 min(360px, calc(50% - 0.8rem));
      }
    }

    @media (min-width: 1200px) {
      .popular-card { flex: 0 0 min(380px, calc(33.33% - 0.8rem)); }
    }

    /* Mobile - ensure smooth scrolling */
    @media (max-width: 900px) {
      .popular-card {
        scroll-snap-align: none;
      }
    }
    .popular-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
      border-color: var(--primary);
    }
    .popular-card-image {
      display: none;
    }
    .popular-content-wrap {
      padding: 0;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .popular-badge {
      position: absolute;
      top: 14px;
      right: 14px;
      background: linear-gradient(135deg, var(--primary) 0%, #ff8555 100%);
      color: white;
      font-size: 0.68rem;
      font-weight: 500;
      padding: 0.32rem 0.7rem;
      border-radius: 999px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
      border: none;
    }
    .popular-top {
      padding-top: 0.15rem;
      padding-right: 70px;
      min-height: auto;
      flex: 1;
      gap: 0.2rem;
    }
    .popular-name {
      font-weight: 600;
      color: var(--text-primary);
      line-height: 1.3;
      font-size: 1.1rem;
      letter-spacing: -0.01em;
      margin-bottom: 0.5rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      touch-action: auto;
    }

    @media (min-width: 901px) {
      .popular-name {
        cursor: pointer;
      }
    }
    .popular-desc {
      display: block;
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.4;
      margin-bottom: 0.9rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 400;
    }
    .popular-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin-top: auto;
      padding-top: 0.8rem;
      border-top: 1px solid var(--border);
    }
    .popular-price {
      font-weight: 700;
      color: var(--text-primary);
      font-size: 1.2rem;
      letter-spacing: -0.02em;
    }
    .popular-add {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 999px;
      font-weight: 800;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      font-size: 0.95rem;
      flex-shrink: 0;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      -webkit-user-select: none;
      padding: 0.5rem 0.9rem;
      min-width: 46px;
      box-shadow: 0 10px 22px rgba(255,107,53,0.25);
      position: relative;
    }
    .popular-add svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2.5;
      pointer-events: none;
    }
    .popular-add:hover {
      background: var(--primary-hover);
      box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
      transform: scale(1.08);
    }
    .popular-add:active {
      transform: scale(0.95);
    }
    .popular-add:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px var(--primary-ring);
    }

    /* Mobile: single-row horizontal scroll */
    @media (max-width: 768px) {
      .popular-section { margin: calc(60px + 48px + 12px) 0 0 0; padding: 0 1.1rem 1rem; }
      .popular-header { align-items: flex-end; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 1.25rem; }
      .popular-meta { width: 100%; margin-top: 0; margin-bottom: 0.35rem; gap: 0.35rem; }
      .meta-chip { padding: 0.25rem 0.45rem; gap: 0.25rem; border-width: 1px; }
      .meta-chip .chip-icon { width: 13px; height: 13px; }
      .meta-chip .chip-text { font-size: 0.7rem; font-weight: 600; }
      .meta-chip .chip-text strong { font-weight: 700; }
      .popular-row {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 86vw);
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.75rem 0 0.85rem;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scroll-snap-type: x proximity;
        scroll-padding: 1rem;
      }
      .popular-card { flex: 0 0 88%; scroll-snap-align: center; }
      .popular-row::-webkit-scrollbar { height: 5px; }
      .popular-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
      .popular-nav { flex-shrink: 0; }
    }

    /* ===========================
       MODERN SCROLLBARS (ChatGPT-like)
       =========================== */
    /* Base (dark/default theme) */
body,
.recommendation-panel-content,
.cart-panel ul,
.cart-popover ul,
.mobile-basket-content {
  scrollbar-width: thin;                      /* Firefox */
  scrollbar-color: rgba(160,170,190,0.65) rgba(10,10,12,0.4);
}
body::-webkit-scrollbar,
.recommendation-panel-content::-webkit-scrollbar,
.cart-panel ul::-webkit-scrollbar,
.cart-popover ul::-webkit-scrollbar,
.mobile-basket-content::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
body::-webkit-scrollbar-track,
.recommendation-panel-content::-webkit-scrollbar-track,
.cart-panel ul::-webkit-scrollbar-track,
.cart-popover ul::-webkit-scrollbar-track,
.mobile-basket-content::-webkit-scrollbar-track {
  background: rgba(10,10,12,0.4);
  margin: 10px 0;
}
body::-webkit-scrollbar-thumb,
.recommendation-panel-content::-webkit-scrollbar-thumb,
.cart-panel ul::-webkit-scrollbar-thumb,
.cart-popover ul::-webkit-scrollbar-thumb,
.mobile-basket-content::-webkit-scrollbar-thumb {
  background: rgba(160,170,190,0.65);
  border-radius: 999px;
  border: 6px solid transparent;             /* inset to keep thumb off edges */
  background-clip: padding-box;
  min-height: 24px;
}
    body::-webkit-scrollbar-thumb:hover,
    .recommendation-panel-content::-webkit-scrollbar-thumb:hover,
    .cart-panel ul::-webkit-scrollbar-thumb:hover,
    .cart-popover ul::-webkit-scrollbar-thumb:hover,
    .mobile-basket-content::-webkit-scrollbar-thumb:hover {
      background: rgba(255,255,255,0.38);
      box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }
    body::-webkit-scrollbar-thumb:active,
    .recommendation-panel-content::-webkit-scrollbar-thumb:active,
    .cart-panel ul::-webkit-scrollbar-thumb:active,
    .cart-popover ul::-webkit-scrollbar-thumb:active,
    .mobile-basket-content::-webkit-scrollbar-thumb:active {
      background: rgba(255,255,255,0.5);
    }
    body::-webkit-scrollbar-corner { background: transparent; }

    /* Light mode adjustments: subtle gray, like ChatGPT light */
    body.light-mode,
body.light-mode .recommendation-panel-content,
body.light-mode .cart-panel ul,
body.light-mode .cart-popover ul,
body.light-mode .mobile-basket-content {
  scrollbar-width: thin;                      /* Firefox */
  scrollbar-color: rgba(90,90,95,0.55) rgba(0,0,0,0.08);
}
body.light-mode::-webkit-scrollbar,
body.light-mode .recommendation-panel-content::-webkit-scrollbar,
body.light-mode .cart-panel ul::-webkit-scrollbar,
body.light-mode .cart-popover ul::-webkit-scrollbar,
body.light-mode .mobile-basket-content::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
body.light-mode::-webkit-scrollbar-track,
body.light-mode .recommendation-panel-content::-webkit-scrollbar-track,
body.light-mode .cart-panel ul::-webkit-scrollbar-track,
body.light-mode .cart-popover ul::-webkit-scrollbar-track,
body.light-mode .mobile-basket-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.08);
  margin: 10px 0;
}
body.light-mode::-webkit-scrollbar-thumb,
body.light-mode .recommendation-panel-content::-webkit-scrollbar-thumb,
body.light-mode .cart-panel ul::-webkit-scrollbar-thumb,
body.light-mode .cart-popover ul::-webkit-scrollbar-thumb,
body.light-mode .mobile-basket-content::-webkit-scrollbar-thumb {
  background: rgba(90,90,95,0.55);
  border-radius: 999px;
  border: 6px solid transparent;
  background-clip: padding-box;
  min-height: 24px;
}
    body.light-mode::-webkit-scrollbar-thumb:hover,
    body.light-mode .recommendation-panel-content::-webkit-scrollbar-thumb:hover,
    body.light-mode .cart-panel ul::-webkit-scrollbar-thumb:hover,
    body.light-mode .cart-popover ul::-webkit-scrollbar-thumb:hover,
    body.light-mode .mobile-basket-content::-webkit-scrollbar-thumb:hover {
      background: rgba(0,0,0,0.38);
      box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    }
    body.light-mode::-webkit-scrollbar-thumb:active,
    body.light-mode .recommendation-panel-content::-webkit-scrollbar-thumb:active,
    body.light-mode .cart-panel ul::-webkit-scrollbar-thumb:active,
    body.light-mode .cart-popover ul::-webkit-scrollbar-thumb:active,
    body.light-mode .mobile-basket-content::-webkit-scrollbar-thumb:active {
      background: rgba(0,0,0,0.48);
    }

    /* Transparent scrollbar specifically for the recommendation panel content (keeps space, looks invisible) */
    .recommendation-panel-content { scrollbar-color: transparent transparent; }
    .recommendation-panel-content::-webkit-scrollbar { width: 8px; height: 8px; }
    .recommendation-panel-content::-webkit-scrollbar-track { background: transparent; }
    .recommendation-panel-content::-webkit-scrollbar-thumb { background: transparent; border: 2px solid transparent; background-clip: padding-box; box-shadow: none; }
    body.light-mode .recommendation-panel-content { scrollbar-color: transparent transparent; }

    /* Hide recommendation panel scrollbar on desktop as well */
    @media (min-width: 901px) {
      .recommendation-panel-content { scrollbar-width: none; -ms-overflow-style: none; }
      .recommendation-panel-content::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
      .recommendation-panel-content::-webkit-scrollbar-track { background: transparent; }
      .recommendation-panel-content::-webkit-scrollbar-thumb { background: transparent; border: none; box-shadow: none; }
    }
      .popular-card { border-radius: 14px; padding: 1rem; min-height: 130px; }
      .popular-top { padding-right: 60px; }
      .popular-name { font-size: 1rem; margin-bottom: 0.4rem; }
      .popular-desc { font-size: 0.8rem; margin-bottom: 0.6rem; }
      .popular-bottom { padding-top: 0.6rem; }
      .popular-price { font-size: 1.1rem; }
      .popular-add { width: 36px; height: 36px; border-radius: 10px; }
      .popular-add svg { width: 18px; height: 18px; }
      .popular-badge { top: 10px; right: 10px; font-size: 0.65rem; padding: 0.25rem 0.5rem; }
    }
    .modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      background: transparent;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--text-secondary);
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all var(--transition);
    }
    .modal-close:hover {
      background: var(--bg-beige);
      color: var(--error-red);
    }

    /* ===========================
       RESPONSIVE TWEAKS (DESKTOP UP TO 768px)
       =========================== */
    .mobile-nav-toggle {
      display: none;
    }

    /* Modern hamburger button */
    #hamburger-btn {
      width: 44px;
      height: 44px;
      border: none;
      border-radius: 12px;
      background: transparent; /* transparent button, only lines visible */
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 180ms ease;
      box-shadow: none;
    }
    #hamburger-btn:hover { background: transparent; box-shadow: none; }
    #hamburger-btn:active { transform: scale(0.96); }
    #hamburger-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,90,0,0.35); }
    #hamburger-btn .bar {
      position: relative;
      display: block;
      width: 22px;
      height: 2px;
      background: var(--text-primary); /* full line */
      transition: transform 220ms ease, opacity 160ms ease, background-color 160ms ease;
      border-radius: 2px;
    }
    #hamburger-btn .bar::before,
    #hamburger-btn .bar::after {
      content: "";
      position: absolute;
      left: 0;
      height: 2px;
      background: var(--text-primary);
      transition: width 200ms ease, transform 220ms ease, opacity 160ms ease, background-color 160ms ease;
      border-radius: 2px;
    }
    /* closed: second half line only */
    #hamburger-btn .bar::before { top: 0; width: 0; opacity: 0; }
    #hamburger-btn .bar::after { top: 6px; width: 12px; opacity: 1; }
    /* Open state transforms to X */
    #hamburger-btn.open .bar { background: transparent; }
    #hamburger-btn.open .bar::before,
    #hamburger-btn.open .bar::after { width: 22px; top: 0; opacity: 1; }
    #hamburger-btn.open .bar::before { transform: rotate(45deg); }
    #hamburger-btn.open .bar::after  { transform: rotate(-45deg); }

    /* Backdrop overlay for mobile menu */
    .mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); opacity: 0; pointer-events: none; transition: opacity 220ms ease; z-index: 95; }
    .mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }
    body.menu-open { overflow: hidden; }

    /* ===========================
       SERVICE TOGGLE (ALL SCREENS)
       =========================== */
    /* Service toggle (Delivery / Collection) */
    .service-bar { width: 100%; display:flex; align-items:center; justify-content: center; padding: 1.2rem 0 1.4rem; }
    .service-bar-inner { width: 100%; max-width: 1200px; display:flex; align-items:center; justify-content: center; }
    /* Segmented toggle like Just Eat */
    .service-toggle {
      display:flex; align-items:center; gap: 0;
      background: rgba(255,255,255,0.08);
      -webkit-backdrop-filter: saturate(160%) blur(8px);
      backdrop-filter: saturate(160%) blur(8px);
      border-radius: 999px; padding: 4px 5px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    }
    .service-btn {
      display:inline-flex; align-items:center; gap: 0.45rem;
      padding: 0.5rem 1.1rem;
      border:none; border-radius: 999px; background: transparent;
      color: var(--text-primary); cursor: pointer;
      font-weight: 800; letter-spacing: .2px;
      transition: color 180ms ease, background-color 180ms ease;
    }
    .service-btn .icon { width: 20px; height: 20px; stroke: currentColor; }
    .service-btn:hover { background: rgba(255,255,255,0.12); }
    .service-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,90,0,0.3); border-radius: 999px; }
    .service-btn.active { background: var(--primary); color: var(--on-primary); }
    .service-btn.active .icon { stroke: var(--on-primary); }
    .service-btn.disabled {
      opacity: 0.75;
      cursor: not-allowed;
      position: relative;
      background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 42%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.15), transparent 46%),
        linear-gradient(135deg, rgba(190, 230, 255, 0.55), rgba(120, 170, 220, 0.45));
      color: #e9f5ff;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(0,0,0,0.18),
        0 6px 16px rgba(0,0,0,0.22);
      filter: saturate(0.6);
    }
    .service-btn.disabled .icon { stroke: #e9f5ff; }
    .service-btn.disabled::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 999px;
      background:
        repeating-linear-gradient(
          135deg,
          rgba(255,255,255,0.22) 0,
          rgba(255,255,255,0.22) 6px,
          rgba(255,255,255,0.04) 6px,
          rgba(255,255,255,0.04) 10px
        );
      mix-blend-mode: screen;
      pointer-events: none;
    }
    .service-btn.disabled::before {
      content: '';
      position: absolute;
      top: 12%;
      left: 8%;
      width: 38%;
      height: 30%;
      border-radius: 14px;
      background: rgba(255,255,255,0.38);
      filter: blur(1px);
      pointer-events: none;
      transform: rotate(-6deg);
    }
    body.light-mode .service-btn.disabled {
      background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55), transparent 45%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.35), transparent 48%),
        linear-gradient(135deg, rgba(210, 235, 255, 0.9), rgba(150, 200, 245, 0.8));
      color: #3b4a63;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.85),
        inset 0 -1px 0 rgba(0,0,0,0.08),
        0 6px 14px rgba(0,0,0,0.12);
      filter: saturate(0.9);
    }
    body.light-mode .service-btn.disabled .icon { stroke: #3b4a63; }
    .service-availability {
      text-align: center;
      color: var(--text-secondary);
      font-size: 0.95rem;
      margin-top: 0.35rem;
    }
    .service-availability.unavailable { color: var(--warning-amber); font-weight: 700; }
    .roast-note {
      display: block;
      margin: 0.5rem 0 0.75rem;
      padding: 0.6rem 0.75rem;
      border-radius: var(--radius);
      background: var(--primary-soft);
      color: var(--text-primary);
      border: 1px dashed var(--warning-amber);
      font-weight: 600;
    }
    .popular-section .service-bar { margin-top: 0.25rem; margin-bottom: 0.25rem; }
    .eta-chip { display:inline-flex; align-items:center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-secondary); margin-left: 0.5rem; }

    @media (max-width: 768px) {
      body {
        padding-top: calc(var(--header-height) + var(--nav-height));
        background: var(--bg-page);
      }

      header.top-bar {
        padding: 0 3.5rem 0 1rem; /* leave space for absolute hamburger */
        height: var(--header-height);
        background: var(--bg-white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        border-bottom: 1px solid rgba(255,255,255,0.12);
        display: flex;
        align-items: center;
        justify-content: flex-start; /* cluster controls on the right */
        gap: 0.4rem;
      }

      body.light-mode header.top-bar {
        background: linear-gradient(135deg, #ffdcc3 0%, #ffe9d6 38%, #ffffff 100%);
        border-bottom: 2px solid rgba(0,0,0,0.15);
        box-shadow:
          0 10px 28px rgba(255,90,0,0.16),
          0 3px 10px rgba(0,0,0,0.12),
          inset 0 1px 0 rgba(255,255,255,0.85);
        backdrop-filter: blur(6px);
      }

    /* Improve white logo legibility on light header */
    body.light-mode .site-brand .logo {
      display: block;
      padding: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    }

      body:not(.light-mode) header.top-bar {
        background:
          radial-gradient(circle at 16% 22%, rgba(255,90,0,0.22), transparent 36%),
          radial-gradient(circle at 84% 18%, rgba(255,158,44,0.20), transparent 38%),
          linear-gradient(140deg, rgba(20,20,24,0.94), rgba(10,10,12,0.98));
        border-bottom-color: rgba(255,255,255,0.1);
        box-shadow:
          0 12px 36px rgba(0,0,0,0.55),
          inset 0 1px 0 rgba(255,255,255,0.04);
        backdrop-filter: blur(6px);
      }

                        .site-brand {
                          display: flex;
                          align-items: center;
                          gap: 0.5rem;
                          flex: 1 1 auto; /* take left space */
                        }

      /* Ensure right-side controls align and don't overlap */
      #theme-toggle { margin-left: auto; display: inline-flex; }
      .cart { margin-left: 0; }
      .mobile-nav-toggle { margin-left: 0.25rem; }

      

            .site-brand .logo {
              height: 36px;
              width: auto;
              display: block !important;
              margin-right: 0;
              object-fit: contain;
            }

      

            .site-brand .site-name {
              display: block !important;
              color: var(--text-primary) !important;
              font-size: 1rem;
              font-weight: 800;
              letter-spacing: -0.2px;
            }

      

            .mobile-nav-toggle {

              position: absolute;

              right: 1rem;

              display: flex;

              align-items: center;

            }

      #hamburger-btn {
        padding: 0.5rem;
        border-radius: 8px;
        background: transparent;
      }

      #hamburger-btn:active {
        background: rgba(255, 255, 255, 0.1);
      }

      #hamburger-btn svg {
        width: 24px;
        height: 24px;
      }

      #hamburger-btn svg path { stroke: var(--text-primary); stroke-width: 2.5; }

    .header-links { display: none; }
    .search-bar { padding: 0.35rem 0.6rem; }
    .search-bar.mobile-open { display: flex; }

      .cart {
        display: none;
      }

      .dropdown {
        width: 180px;
      }
      .cart-popover {
        width: 200px;
      }
      #total-label {
        font-size: 0.95rem;
      }

      /* Mobile navigation menu */
      .mobile-nav-menu {
        top: var(--header-height);
        position: fixed;
        background: rgba(20,20,20,0.6);
        backdrop-filter: blur(12px) saturate(160%);
        padding: 0.25rem 0;
        box-shadow: 0 18px 36px rgba(0,0,0,0.18);
        border-bottom: none;
        transform: translateY(-8px);
        opacity: 0;
        transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 220ms ease;
        z-index: 99;
      }
      .mobile-nav-menu.active { transform: translateY(0); opacity: 1; }
      .mobile-nav-menu .link-item { padding: 0.95rem 1.25rem; border-bottom: none; display:flex; align-items: flex-start; gap: 0.6rem; }
      .mobile-nav-menu .link-item .nav-text { display:flex; flex-direction: column; line-height: 1.2; }
      .mobile-nav-menu .link-item .title { font-weight: 800; color: var(--text-primary); }
      .mobile-nav-menu .link-item .subtitle { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.15rem; }
      .mobile-nav-menu .link-item:last-child { border-bottom: none; }

    @media (prefers-reduced-motion: reduce) {
      #hamburger-btn, .mobile-nav-menu, .mobile-nav-overlay { transition: none !important; }
      #hamburger-btn .bar, #hamburger-btn .bar::before, #hamburger-btn .bar::after { transition: none !important; }
    }

      .mobile-nav-menu .link-item {
        color: var(--text-primary);
        padding: 1rem 1.25rem;
        font-size: 1rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        transition: background 0.2s ease;
      }

      .mobile-nav-menu .link-item:last-child {
        border-bottom: none;
      }

      .mobile-nav-menu .link-item:active {
        background: rgba(255, 107, 53, 0.1);
        color: var(--primary-orange);
      }

      /* Category navigation for mobile */
      nav.category-nav {
        top: var(--header-height);
        padding: 0.65rem 1rem;
        background: var(--bg-white);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        height: 52px;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
      }

      .category-nav ul {
        padding: 0;
        gap: 0.65rem;
      }

      .category-nav a {
        font-size: 0.9rem;
        padding: 0.5rem 1.05rem;
        border-radius: 999px;
        color: var(--text-secondary);
        font-weight: 700;
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--border);
      }

      .category-nav a.active {
        background: rgba(255,90,0,0.16);
        color: var(--primary);
        font-weight: 800;
        box-shadow: none;
        border-color: rgba(255,90,0,0.35);
      }

      .category-nav a:hover {
        background: rgba(255,255,255,0.04);
        color: var(--text-primary);
      }
    }

    .mobile-view-basket-btn {
      display: none; /* Hide button globally by default */
    }

    /* ===========================
       MOBILE BASKET MODAL
       =========================== */
    .mobile-basket-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.55);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      z-index: 1100; /* Above recommendation overlay (1000) */
      animation: fadeIn 0.3s ease;
    }

    .mobile-basket-modal.active {
      display: block;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .mobile-basket-content {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      max-height: 88vh;
      background: var(--bg-white);
      border-radius: 16px 16px 0 0;
      padding: 0;
      overflow-y: auto;
      transform: translateY(100%);
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
    }

      .mobile-basket-modal.active .mobile-basket-content {
        transform: translateY(0);
      }

      .mobile-basket-header {
        position: sticky;
        top: 0;
        background: var(--bg-white);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.2rem 1.2rem 1rem;
      border-bottom: 1px solid rgba(255,255,255,0.12);
      z-index: 10;
    }

      .mobile-basket-header h2 {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
      }

      .mobile-basket-close {
        background: transparent;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 1.8rem;
        color: var(--text-secondary);
        cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    .mobile-basket-close:active {
      background: rgba(255,255,255,0.06);
      transform: scale(0.95);
    }
    body.light-mode .mobile-basket-close:active { background: rgba(0,0,0,0.06); }

      .mobile-basket-items-wrapper {
        flex: 1;
        overflow-y: auto;
        padding: 0.75rem 0;
        background: var(--bg-white);
      }

    #mobile-cart-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    /* Ensure light surfaces for cart items in mobile basket */
    @media (max-width: 768px) {
      body.light-mode #mobile-cart-list li {
        background: var(--bg-white) !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--border);
      }
      body.light-mode #mobile-cart-list li span,
      body.light-mode #mobile-cart-list li div { color: var(--text-primary) !important; }
    }

      .mobile-basket-footer {
        position: sticky;
        bottom: 0;
        background: var(--bg-card);
        padding: 1.2rem;
        border-top: 1px solid var(--border);
      }
      .mobile-basket-error { display:none; margin: 0.6rem 0; font-size: 0.95rem; color: var(--error-red); background: var(--error-bg); padding: 0.6rem 0.7rem; border-radius: 8px; }

    #mobile-checkout-btn {
      background: var(--primary);
      color: var(--on-primary);
      border: none;
      padding: 1rem;
      width: 100%;
      border-radius: 6px;
      font-size: 1rem;
      cursor: pointer;
      font-weight: 700;
      transition: all 0.15s ease;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    #mobile-checkout-btn:active {
      transform: scale(0.98);
      background: var(--primary-hover);
    }

    /* ===========================
       MOBILE CHECKOUT MODAL
       =========================== */
    .mobile-checkout-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.65);
      z-index: 1100; /* Above recommendation overlay (1000) */
      animation: fadeIn 0.3s ease;
    }

    .mobile-checkout-modal.active {
      display: block;
    }

    .mobile-checkout-modal.desktop-mode .mobile-checkout-content {
      left: 50%;
      top: 50%;
      bottom: auto;
      width: 640px;
      max-width: 94vw;
      max-height: 88vh;
      transform: translate(-50%, -50%) scale(0.98);
      border-radius: 18px;
      box-shadow: 0 18px 48px rgba(0,0,0,0.35);
    }
    .mobile-checkout-modal.desktop-mode.active .mobile-checkout-content {
      transform: translate(-50%, -50%) scale(1);
    }

    .mobile-checkout-content {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      max-height: 92vh;
      background: var(--bg-card);
      color: var(--text-primary);
      border-radius: 16px 16px 0 0;
      padding: 0;
      overflow-y: auto;
      transform: translateY(100%);
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      scrollbar-width: thin;
      scrollbar-color: var(--border) transparent;
    }
    .mobile-checkout-content::-webkit-scrollbar { width: 10px; }
    .mobile-checkout-content::-webkit-scrollbar-track {
      background: transparent;
      margin: 14px 0;
    }
    .mobile-checkout-content::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 999px;
      border: 10px solid transparent;
      background-clip: padding-box;
      min-height: 28px;
    }

    .mobile-checkout-modal.active .mobile-checkout-content {
      transform: translateY(0);
    }

    .mobile-checkout-content input,
    .mobile-checkout-content select,
    .mobile-checkout-content textarea {
      color: var(--text-primary);
      background: var(--bg-card);
      border-color: var(--border);
    }
    .mobile-checkout-content select {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23cbd3de' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat right 1rem center;
      background-size: 0.85em;
    }
    .mobile-checkout-content select option {
      background: var(--bg-card);
      color: var(--text-primary);
    }
    .mobile-checkout-content input::placeholder,
    .mobile-checkout-content select::placeholder,
    .mobile-checkout-content textarea::placeholder {
      color: var(--text-muted);
    }
    .mobile-checkout-content input[type="date"] {
      color-scheme: dark;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background-color: var(--bg-card);
      color: var(--text-primary);
      padding-right: 2.6rem;
    }
    .mobile-checkout-content input[type="date"]::-webkit-calendar-picker-indicator {
      opacity: 0;
      background: transparent;
      width: 100%;
      height: 100%;
      position: absolute;
      inset: 0;
    }
    .mobile-date-wrapper {
      position: relative;
      display: block;
    }
    .mobile-date-wrapper .date-icon {
      position: absolute;
      right: 0.9rem;
      top: 50%;
      transform: translateY(-50%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      color: var(--text-muted);
    }
    .mobile-date-wrapper .date-icon svg {
      width: 18px;
      height: 18px;
    }

    .mobile-checkout-header {
      position: sticky;
      top: 0;
      background: var(--bg-card);
      color: var(--text-primary);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.2rem 1.2rem 1rem;
      border-bottom: 1px solid var(--border);
      z-index: 10;
    }

    .mobile-checkout-header h2 {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text-primary);
      margin: 0;
    }

    .mobile-checkout-close {
      background: transparent;
      border: none;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      font-size: 1.8rem;
      color: var(--text-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    .mobile-checkout-close:active {
      background: rgba(255,255,255,0.06);
      transform: scale(0.95);
    }

    #mobile-order-form {
      padding: 1.25rem;
      flex: 1;
    }

    #mobile-order-form label {
      display: block;
      font-weight: 600;
      color: var(--text-primary);
      font-size: 0.95rem;
      margin-top: 1rem;
      margin-bottom: 0.4rem;
    }

    #mobile-order-form input,
    #mobile-order-form select,
    #mobile-order-form textarea {
      width: 100%;
      padding: 0.85rem 0.95rem;
      margin-bottom: 0.5rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      font-size: 1rem;
      font-family: var(--font-sans);
      background: var(--bg-white);
      transition: all 0.2s ease;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
    }

    #mobile-order-form input:focus,
    #mobile-order-form select:focus,
    #mobile-order-form textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px var(--primary-ring);
    }

    #mobile-order-form select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%235A5A5A' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.85rem center;
      background-size: 1.1em;
      padding-right: 2.5rem;
    }

    #mobile-submit-btn {
      background: var(--primary);
      color: var(--on-primary);
      border: none;
      padding: 1rem;
      width: 100%;
      border-radius: 6px;
      font-size: 1rem;
      cursor: pointer;
      font-weight: 700;
      margin-top: 1.5rem;
      transition: all 0.15s ease;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    #mobile-submit-btn:active {
      transform: scale(0.98);
      background: var(--primary-hover);
    }

    /* ===========================
       MOBILE (≤768px)
       =========================== */
    @media (max-width: 768px) {
      .header-links {
        display: none;
      }
      .mobile-nav-toggle {
        display: block;
      }

      main {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem;
        gap: 0;
        background: var(--bg-page);
      }
      section.menu {
        width: 100%;
        padding: 0;
        background: transparent;
      }
      .cart-panel {
        display: none;
      }

      .category {
        margin-bottom: 1.5rem;
      }

      h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        font-weight: 700;
        color: var(--text-primary);
        padding-left: 0.25rem;
      }
      .item {
        padding: 1.1rem;
        margin-bottom: 0.75rem;
        background: var(--bg-white);
        border-radius: 8px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
        border: 1px solid var(--border);
      }
      .item-header {
        margin-bottom: 0.4rem;
      }
      .item-header span {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.3;
      }
      .item-desc {
        margin-top: 0.4rem;
        color: var(--text-secondary);
        font-size: 0.875rem;
        line-height: 1.4;
      }
      .item-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 0.9rem;
      }
      .item-actions button {
        background: transparent;
        color: var(--primary);
        border: 1.5px solid var(--primary);
        padding: 0.5rem 1.2rem;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.15s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
      .item-actions button:active {
        background: var(--primary);
        color: var(--on-primary);
        transform: scale(0.97);
      }
      .cart-panel h2 {
        font-size: 1rem;
      }
      .cart-panel li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
      }
      #total-label {
        font-size: 0.9rem;
      }
      .clear-cart-btn {
        font-size: 0.8rem;
        padding: 0.4rem;
      }
      #order-form label {
        font-size: 0.85rem;
        margin-top: 0.75rem;
      }
      #order-form input,
      #order-form textarea {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
      }
      #order-form button[type="submit"] {
        font-size: 0.85rem;
        padding: 0.6rem;
      }
      .modal-content {
        max-width: 90vw;
        padding: 1rem;
      }
      .modal-content h3 {
        font-size: 1.1rem;
      }
      .modal-content p {
        font-size: 0.9rem;
      }
      .modal-content label {
        font-size: 0.9rem;
      }
      .modal-content input[type="number"] {
        width: 50px;
      }
      .modal-content button {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
      }
      .modal-close {
        font-size: 1rem;
        top: 4px;
        right: 4px;
      }
      .cart-popover {
        width: 180px;
        padding: 0.4rem;
      }
      .cart-popover h3 {
        font-size: 0.9rem;
      }
      .cart-popover li {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
      }
      .cart-popover button {
        font-size: 0.8rem;
        padding: 0.3rem;
      }
      .quick-add .dropdown {
        width: 160px;
        padding: 0.4rem;
      }
      .dropdown-section h4 {
        font-size: 0.75rem;
      }
      .dropdown-section li {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
      }
      .mobile-view-basket-btn {
        position: fixed;
        bottom: 0;
        left: 0.75rem;
        right: 0.75rem;
        width: calc(100% - 1.5rem);
        background: var(--primary);
        color: var(--on-primary);
        padding: 0.85rem 1.1rem;
        border: none;
        border-radius: 24px;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 700;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 100;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25), 0 -2px 8px rgba(0, 0, 0, 0.15);
        display: none;
        transition: all 0.3s ease;
        letter-spacing: 0.3px;
        margin-bottom: 0.75rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
      }
      .mobile-view-basket-btn.show {
        display: flex;
        animation: slideUp 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
      }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Surprise Me custom modal removed in favor of item modal */

      .mobile-view-basket-btn:active {
        transform: scale(0.98);
      }

      /* Container for the icon and badge */
      .mobile-view-basket-btn .mobile-basket-icon-section {
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      /* The 'View basket' text, now centered */
      .mobile-view-basket-btn .mobile-view-basket-text {
        flex-grow: 1;
        text-align: center;
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
      }

      .mobile-view-basket-btn svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: var(--on-primary);
        stroke-width: 2.5;
      }

      /* Desktop checkout pill styles live outside mobile query */

      .mobile-view-basket-btn .basket-icon-wrapper {
        position: relative;
        display: inline-block;
        width: 20px;
        height: 20px;
      }

  .mobile-view-basket-btn .basket-count-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--bg-white);
    color: var(--primary);
    border-radius: 50%;
    padding: 0;
    font-size: 0.65rem;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-weight: 700;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  

      #basket-total-price {
        font-size: 0.9rem;
        font-weight: 700;
        padding: 0.2rem 0.6rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        backdrop-filter: blur(10px);
      }
    }

    /* Mobile cart control styles */
    .mobile-qty-controls {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }

    .mobile-qty-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1.5px solid var(--border);
      background: var(--white);
      color: var(--primary);
      font-size: 1.3rem;
      font-weight: 400;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      -webkit-user-select: none;
    }

    .mobile-qty-btn:active {
      background: rgba(255,255,255,0.08);
      transform: scale(0.95);
    }

    .mobile-qty-btn.is-processing {
      opacity: 0.6;
      pointer-events: none;
    }

    .mobile-qty-btn.plus {
      background: var(--primary);
      border-color: var(--primary);
      color: var(--on-primary);
    }

    .mobile-qty-btn.plus:active {
      background: var(--primary-hover);
    }

    .mobile-qty-value {
      font-size: 1.1rem;
      font-weight: 700;
      min-width: 24px;
      text-align: center;
      color: var(--text-primary);
    }

    .mobile-item-name-text {
      font-weight: 600;
      font-size: 1rem;
      margin-bottom: 0.3rem;
      color: var(--text-primary);
      line-height: 1.3;
    }

    .mobile-item-price-text {
      font-size: 0.9rem;
      color: var(--text-secondary);
    }
    body.light-mode .recommendation-panel {
      background: linear-gradient(170deg, rgba(255,90,0,0.06), rgba(255,255,255,0.96));
      border: 1px solid rgba(0,0,0,0.06);
      box-shadow: -10px 16px 36px rgba(0, 0, 0, 0.12);
      backdrop-filter: blur(12px) saturate(150%);
    }
    body.light-mode .recommendation-panel-header {
      background: rgba(255,255,255,0.9);
      border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    body.light-mode .recommendation-panel-header h3 {
      color: #1f1f1f;
    }
    body.light-mode .rec-icon {
      background: rgba(255,90,0,0.12);
      border: 1px solid rgba(255,90,0,0.18);
      color: var(--primary);
      box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    }
    body.light-mode .rec-kicker {
      color: #ff7a1b;
    }
    body.light-mode .rec-subtext {
      color: #4a4a4a;
      opacity: 0.95;
    }
    body.light-mode .recommendation-panel-content {
      background: #ffffff;
    }
    body.light-mode .recommendation-panel .item {
      background: #ffffff;
      border: 1px solid rgba(0,0,0,0.05);
      box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }
    body.light-mode .recommendation-panel .item:hover {
      box-shadow: 0 14px 32px rgba(0,0,0,0.16);
    }
    body.light-mode .close-panel {
      color: var(--text-secondary);
    }

          .promo-inner { flex-direction: column; align-items: center; padding: 1rem; text-align: center; }
      .promo-title { font-size: 1.1rem; }
    }

    /* ===========================
       FOOTER
       =========================== */
    .site-footer {
      margin-top: 2.5rem;
      background: linear-gradient(135deg, #ff5a00 0%, #ff7a1b 45%, #111 100%);
      border-top: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
      position: relative;
      overflow: hidden;
    }
    .site-footer::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(120% 80% at 15% 20%, rgba(255,255,255,0.08), transparent 50%),
                  radial-gradient(90% 60% at 80% 0%, rgba(0,0,0,0.35), transparent 60%);
      pointer-events: none;
    }
    .footer-inner {
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1.6rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
    }
    .footer-title {
      font-weight: 800;
      font-size: 1.1rem;
      color: #fff;
      letter-spacing: 0.01em;
    }
    .footer-copy {
      color: rgba(255,255,255,0.9);
      margin-top: 0.4rem;
      font-size: 0.96rem;
    }
    .footer-phone {
      color: inherit;
      font-weight: 800;
      text-decoration: none;
      border-bottom: 1px dashed rgba(255,255,255,0.4);
      transition: color var(--transition), border-color var(--transition);
    }
    .footer-phone:hover {
      color: #fff;
      border-color: #fff;
    }
    .footer-links {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      flex-wrap: wrap;
    }
    .footer-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.6rem 0.95rem;
      border-radius: var(--chip-radius);
      background: rgba(0,0,0,0.22);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.16);
      font-weight: 700;
      font-size: 0.95rem;
      transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
      box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    }
    .footer-link:hover {
      transform: translateY(-2px);
      background: rgba(255,255,255,0.1);
      border-color: rgba(255,255,255,0.3);
      box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    }
    .footer-icon {
      width: 19px;
      height: 19px;
      fill: currentColor;
    }
    body.light-mode .site-footer {
      background: linear-gradient(135deg, #fff3eb 0%, #ffe0cf 40%, #ffffff 100%);
      border-top: 1px solid rgba(0,0,0,0.06);
    }
    body.light-mode .site-footer::before {
      background: radial-gradient(110% 70% at 18% 10%, rgba(255,90,0,0.18), transparent 50%),
                  radial-gradient(80% 50% at 82% 0%, rgba(0,0,0,0.08), transparent 50%);
    }
    body.light-mode .footer-copy,
    body.light-mode .footer-phone,
    body.light-mode .footer-title {
      color: #1f1f1f;
    }
    body.light-mode .footer-phone:hover {
      color: var(--primary);
      border-color: var(--primary);
    }
    body.light-mode .footer-link {
      background: #ffffff;
      border-color: rgba(0,0,0,0.08);
      color: #1f1f1f;
      box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    }
    body.light-mode .footer-link:hover {
      background: var(--primary-soft);
      border-color: var(--primary);
      color: #1f1f1f;
      box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }
    @media (max-width: 800px) {
      .footer-inner {
        flex-direction: column;
        align-items: flex-start;
      }
    }
    @media (max-width: 600px) {
      .site-footer {
        margin-top: 2rem;
      }
      .footer-inner {
        padding: 1.5rem 1.1rem;
        align-items: stretch;
        gap: 1rem;
      }
      .footer-title,
      .footer-copy {
        text-align: left;
      }
      .footer-links {
        width: 100%;
        gap: 0.5rem;
      }
      .footer-link {
        width: 100%;
        justify-content: center;
      }
    }

    /* Scroll-to-bottom cue */
    #scroll-bottom-btn {
      position: fixed;
      bottom: 22px;
      right: 22px;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.18);
      background: radial-gradient(140% 140% at 50% 35%, rgba(255,255,255,0.12), transparent 55%),
                  linear-gradient(135deg, #111, #1e1e1e);
      box-shadow: 0 12px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
      color: #f7f7f7;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease;
      z-index: 999;
    }
    #scroll-bottom-btn svg { width: 22px; height: 22px; }
    #scroll-bottom-btn.visible {
      opacity: 0.95;
      pointer-events: auto;
      transform: translateY(0);
    }
    #scroll-bottom-btn:hover { transform: translateY(-1px); }
    body.light-mode #scroll-bottom-btn {
      background: linear-gradient(135deg, #ffffff, #f2f2f2);
      border: 1px solid rgba(0,0,0,0.08);
      color: #222;
      box-shadow: 0 10px 22px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.8);
    }
    @media (max-width: 600px) {
      /* Hide on mobile */
      #scroll-bottom-btn { display: none; }
    }
