    /* ═══════════════════════════════════════
       DESIGN TOKENS — change here, applies everywhere
    ═══════════════════════════════════════ */
    :root {
      --bg:           #0A0A0A;
      --bg-alt:       #0F0F0F;
      --card:         #131313;
      --orange:       #FF5C00;
      --orange-g:     linear-gradient(135deg,#FF8C00,#FF3D00);
      --text:         #FFFFFF;
      --muted:        #888888;
      --border:       rgba(255,255,255,0.07);
      --card-border:  rgba(255,92,0,0.10);
      --green:        #22C55E;
      --red:          #FF3B30;
      --yellow:       #FF9500;
      --input-bg:     #0D0D0D;
      --input-border: #1E1E1E;
      --nav-bg:       rgba(10,10,10,0.96);
      --sidebar-w:    220px;
      --nav-h:        54px;
      --search-h:     54px;
      --bottom-nav-h: 58px;
      --font:         'Plus Jakarta Sans', -apple-system, sans-serif;
    }
    .light-mode {
      --bg:           #F7F7F7;
      --bg-alt:       #FFFFFF;
      --card:         #FFFFFF;
      --text:         #111111;
      --muted:        #777777;
      --border:       rgba(0,0,0,0.07);
      --card-border:  rgba(255,92,0,0.15);
      --input-bg:     #FFF8F5;
      --input-border: #FFD4BC;
      --nav-bg:       rgba(255,255,255,0.96);
    }

    /* ═══════════════════════════════════════
       RESET
    ═══════════════════════════════════════ */
    *, *::before, *::after {
      margin: 0; padding: 0; box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
      -webkit-touch-callout: none;
    }
    html { scroll-behavior: smooth; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      overscroll-behavior: none;
    }
    button { font-family: var(--font); cursor: pointer; }
    input, textarea, select { font-family: var(--font); }

    /* ═══════════════════════════════════════
       NAVBAR
    ═══════════════════════════════════════ */
    .navbar {
      position: sticky; top: 0; z-index: 200;
      height: var(--nav-h);
      background: var(--nav-bg);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--card-border);
      display: flex; align-items: center;
      padding: 0 14px; gap: 10px;
    }
    .nav-logo {
      font-size: 20px; font-weight: 900;
      color: var(--orange); letter-spacing: 3px;
      text-decoration: none; flex-shrink: 0;
    }
    .location-btn {
      display: flex; align-items: center; gap: 3px;
      background: rgba(255,92,0,0.08);
      border: 1px solid rgba(255,92,0,0.2);
      border-radius: 20px; color: var(--text);
      font-size: 11px; font-weight: 700;
      padding: 5px 9px; max-width: 130px;
    }
    .location-btn-text {
      overflow: hidden; text-overflow: ellipsis;
      white-space: nowrap; max-width: 80px;
      color: var(--orange);
    }
     .location-arrow { color: var(--orange); font-size: 8px; }
    .nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
    .icon-btn {
      background: none; border: none; color: var(--text);
      font-size: 20px; padding: 4px; position: relative;
      outline: none;
    }
    .cart-badge {
      position: absolute; top: -2px; right: -2px;
      background: var(--orange); color: white;
      font-size: 8px; font-weight: 900;
      width: 14px; height: 14px; border-radius: 50%;
      display: none; align-items: center; justify-content: center;
    }

    /* ═══════════════════════════════════════
       SEARCH BAR
    ═══════════════════════════════════════ */
    .search-wrapper {
      position: sticky; top: var(--nav-h); z-index: 150;
      background: var(--bg); padding: 8px 14px;
      border-bottom: 1px solid var(--border);
    }
    .search-box {
      display: flex; align-items: center; gap: 8px;
      background: var(--card); border: 1px solid var(--input-border);
      border-radius: 12px; padding: 0 12px; height: 40px;
      transition: border-color 0.2s;
    }
    .search-box:focus-within {
      border-color: var(--orange);
      box-shadow: 0 0 0 3px rgba(255,92,0,0.08);
    }
    .search-icon { font-size: 15px; color: var(--muted); flex-shrink: 0; }
    .search-input {
      flex: 1; background: none; border: none;
      color: var(--text); font-size: 14px; outline: none;
    }
    .search-input::placeholder { color: var(--muted); }
    .lang-btn {
      background: none; border: 1px solid var(--border);
      color: var(--muted); border-radius: 6px;
      padding: 3px 7px; font-size: 11px; font-weight: 800;
      flex-shrink: 0; transition: all 0.2s;
    }
    .lang-btn:hover { border-color: var(--orange); color: var(--orange); }

    /* ═══════════════════════════════════════
       PAGE LAYOUT
    ═══════════════════════════════════════ */
    .page-layout {
      display: flex;
      min-height: calc(100vh - var(--nav-h) - var(--search-h));
    }

    /* ═══════════════════════════════════════
       DESKTOP SIDEBAR
    ═══════════════════════════════════════ */
    .sidebar {
      width: var(--sidebar-w);
      flex-shrink: 0;
      background: var(--bg);
      border-right: 1px solid var(--border);
      position: sticky;
      top: calc(var(--nav-h) + var(--search-h));
      height: calc(100vh - var(--nav-h) - var(--search-h));
      overflow-y: auto;
      overflow-x: hidden;
      transition: width 0.3s ease;
      scrollbar-width: none;
      display: none;
      padding-top: 48px;
    }
    .sidebar::-webkit-scrollbar { display: none; }
    .sidebar.closed { width: 0; border: none; }
    .sidebar-header {
      display: flex; align-items: center; gap: 8px;
      padding: 12px; border-bottom: 1px solid var(--border);
      position: fixed; top: calc(var(--nav-h) + var(--search-h));
      left: 0; width: 220px; background: var(--bg); z-index: 11;
      justify-content: space-between;
    }
    .sidebar.closed .sidebar-header {
      width: 60px;
    }
    .sidebar-toggle {
      background: none; border: none; color: var(--text);
      font-size: 18px; padding: 2px 4px; outline: none;
      margin-left: auto; flex-shrink: 0;
    }
    .sidebar-label {
      font-size: 10px; font-weight: 800; color: var(--muted);
      text-transform: uppercase; letter-spacing: 1px;
      white-space: nowrap; overflow: hidden; flex: 1;
    }
    .sidebar.closed .sidebar-label {
      display: none;
    }
    .sidebar-cat-btn {
      display: flex; align-items: center; gap: 10px;
      width: 100%; padding: 10px 14px;
      background: none; border: none; border-left: 3px solid transparent;
      color: var(--muted); font-size: 13px; font-weight: 600;
      text-align: left; transition: all 0.15s; white-space: nowrap;
      overflow: hidden;
    }
    .sidebar-cat-btn:hover { background: rgba(255,92,0,0.05); color: var(--text); }
    .sidebar-cat-btn.active {
      color: var(--orange); background: rgba(255,92,0,0.07);
      border-left-color: var(--orange); font-weight: 800;
    }
    .sidebar-cat-emoji { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
    .sidebar-divider { height: 1px; background: var(--border); margin: 8px 14px; }
    .sidebar-section-label {
      font-size: 10px; font-weight: 800; color: var(--muted);
      text-transform: uppercase; letter-spacing: 1px;
      padding: 8px 14px 6px;
    }
    .sidebar-orders { padding: 0 10px; }
    .sidebar-order-card {
      display: flex; justify-content: space-between;
      align-items: center; padding: 8px 10px;
      background: var(--card); border: 1px solid var(--border);
      border-radius: 10px; margin-bottom: 6px;
      cursor: pointer; transition: border-color 0.2s;
    }
    .sidebar-order-card:hover { border-color: rgba(255,92,0,0.3); }
    .sidebar-order-id { font-size: 11px; font-weight: 800; color: var(--orange); }
    .sidebar-order-date { font-size: 10px; color: var(--muted); margin-top: 1px; }
    .sidebar-order-status { font-size: 10px; font-weight: 800; margin-top: 2px; }
    .sidebar-order-amount { font-size: 13px; font-weight: 800; }

    /* ═══════════════════════════════════════
       MAIN CONTENT
    ═══════════════════════════════════════ */
    .main-content { flex: 1; min-width: 0; }

    /* ═══════════════════════════════════════
       CATEGORY ICON ROW (mobile)
    ═══════════════════════════════════════ */
    .cat-row {
      display: flex; overflow-x: auto; padding: 10px 14px 4px;
      scrollbar-width: none; -webkit-overflow-scrolling: touch;
      gap: 0;
      order: 1;
      background: var(--bg);
      position: relative;
      z-index: 1;
    }
    .cat-row::-webkit-scrollbar { display: none; }
    .cat-btn {
      display: flex; flex-direction: column; align-items: center;
      gap: 5px; min-width: 68px; padding: 4px;
      background: none; border: none; flex-shrink: 0;
      outline: none;
    }
    .cat-circle {
      width: 50px; height: 50px; border-radius: 16px;
      background: var(--card); border: 1.5px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      font-size: 22px; transition: all 0.2s;
    }
    .cat-btn.active .cat-circle {
      background: rgba(255,92,0,0.12);
      border-color: var(--orange);
    }
    .cat-label {
      font-size: 10px; font-weight: 700; color: var(--muted);
      text-align: center; white-space: nowrap;
    }
    .cat-btn.active .cat-label { color: var(--orange); }

    /* ═══════════════════════════════════════
       CATEGORY BAR (heading + subcategories)
    ═══════════════════════════════════════ */
    .cat-bar {
      padding: 8px 14px 0;
      display: flex;
      flex-direction: column;
      background: var(--bg);
      position: relative;
      z-index: 1;
    }
    .cat-bar-title {
      font-size: 18px; font-weight: 800;
      color: var(--text); margin-bottom: 8px;
      order: 1;
    }
    .subcat-row {
      display: none; gap: 8px; overflow-x: auto;
      padding-bottom: 8px; scrollbar-width: none;
      order: 2;
    }
    .subcat-row::-webkit-scrollbar { display: none; }
    .subcat-row.visible { display: flex; }
    .subcat-pill {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--muted); padding: 5px 14px;
      border-radius: 20px; font-size: 12px; font-weight: 700;
      white-space: nowrap; flex-shrink: 0;
      transition: all 0.2s; outline: none;
    }
    .subcat-pill.active {
      background: var(--orange); color: white;
      border-color: var(--orange);
    }

    .light-mode .subcat-pill {
      background: rgba(0,0,0,0.06) !important;
      border: 1px solid rgba(0,0,0,0.12) !important;
      color: var(--muted);
    }
    .light-mode .subcat-pill.active {
      background: var(--orange) !important;
      color: white !important;
      border-color: var(--orange) !important;
    }

    /* ═══════════════════════════════════════
       PRODUCTS GRID
    ═══════════════════════════════════════ */
    .products-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      padding: 10px 12px 140px;
    }

    /* ═══════════════════════════════════════
       PRODUCT CARD
    ═══════════════════════════════════════ */
    .product-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px; overflow: hidden;
      display: flex; flex-direction: column;
      transition: border-color 0.2s, transform 0.15s;
    }
    .product-card:hover {
      border-color: rgba(255,92,0,0.3);
      transform: translateY(-2px);
    }
    .product-img {
      width: 100%; height: 120px; overflow: hidden;
      background: rgba(255,255,255,0.03);
      display: flex; align-items: center; justify-content: center;
      position: relative; flex-shrink: 0;
    }
    .product-img img {
      width: 100%; height: 100%; object-fit: contain;
      padding: 8px;
      background: #fff;
    }
    .product-emoji { font-size: 40px; }
    .product-cat-tag {
      position: absolute; top: 8px; left: 8px;
      background: rgba(0,0,0,0.65); color: white;
      padding: 3px 7px; border-radius: 6px;
      font-size: 9px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.3px;
      backdrop-filter: blur(4px);
    }
    .product-info {
      padding: 10px 10px 11px;
      display: flex; flex-direction: column; flex: 1; gap: 6px;
    }
    .product-name {
      font-weight: 700; font-size: 13px;
      color: var(--text); line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .product-price {
      font-size: 16px; font-weight: 900; color: var(--orange);
    }
    .add-btn {
      background: var(--orange-g); color: white;
      border: none; padding: 9px; border-radius: 10px;
      font-weight: 800; font-size: 13px; width: 100%;
      outline: none; transition: opacity 0.15s;
      margin-top: auto;
    }
    .add-btn:hover { opacity: 0.88; }
    .qty-control {
      display: flex; align-items: center;
      background: rgba(255,92,0,0.1);
      border: 1px solid rgba(255,92,0,0.3);
      border-radius: 10px; overflow: hidden;
      margin-top: auto;
    }
    .qty-btn {
      background: none; border: none; color: var(--orange);
      font-size: 18px; font-weight: 800;
      padding: 6px 12px; outline: none;
      transition: background 0.15s;
    }
    .qty-btn:hover { background: rgba(255,92,0,0.1); }
    .qty-count {
      flex: 1; text-align: center; font-size: 14px;
      font-weight: 800; color: var(--text);
    }

    /* ═══════════════════════════════════════
       SKELETON
    ═══════════════════════════════════════ */
    @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }
    .skeleton {
      background: linear-gradient(90deg,#171717 25%,#1F1F1F 50%,#171717 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
      border-radius: 16px;
      height: 220px;
    }

    /* ═══════════════════════════════════════
       EMPTY STATE
    ═══════════════════════════════════════ */
    .empty-state {
      grid-column: 1/-1; text-align: center;
      padding: 60px 20px; color: var(--muted);
    }
    .empty-state-icon { font-size: 48px; margin-bottom: 12px; }

    /* ═══════════════════════════════════════
       FLOATING CART
    ═══════════════════════════════════════ */
    #floatingCart {
      position: fixed; bottom: 70px;
      left: 50%; transform: translateX(-50%);
      background: var(--orange-g); color: white;
      border: none; padding: 13px 24px;
      border-radius: 20px; font-weight: 800; font-size: 14px;
      display: none; z-index: 160;
      box-shadow: 0 8px 24px rgba(255,92,0,0.4);
      align-items: center; justify-content: center; gap: 10px;
      white-space: nowrap; min-width: 240px; outline: none;
    }
    .float-count {
      background: rgba(255,255,255,0.25);
      padding: 2px 8px; border-radius: 20px; font-size: 12px;
    }

    /* ═══════════════════════════════════════
       BOTTOM NAV (mobile only)
    ═══════════════════════════════════════ */
    .bottom-nav {
      position: fixed; bottom: 0; left: 0; right: 0;
      height: var(--bottom-nav-h);
      background: var(--nav-bg);
      backdrop-filter: blur(20px);
      border-top: 1px solid var(--border);
      display: flex; z-index: 180;
    }
    .bn-item {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 3px; background: none; border: none; outline: none;
      padding: 6px 4px;
    }
    .bn-icon { font-size: 20px; line-height: 1; }
    .bn-label {
      font-size: 10px; font-weight: 700; color: var(--muted);
    }
    .bn-item.active .bn-label { color: var(--orange); }

    /* ═══════════════════════════════════════
       ORDER STATUS PILL
    ═══════════════════════════════════════ */
    .order-pill {
      position: fixed; bottom: 68px;
      left: 14px; right: 14px;
      background: #1A1A1A;
      border: 1px solid rgba(255,149,0,0.4);
      border-radius: 14px; padding: 12px 16px;
      display: none; align-items: center; gap: 10px;
      z-index: 160; cursor: pointer;
      box-shadow: 0 4px 20px rgba(0,0,0,0.4);
      transition: border-color 0.3s;
    }
    .order-pill.show { display: flex; }
    .order-pill.confirmed { border-color: rgba(34,197,94,0.4); }
    .pill-dot {
      width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    }
    .pill-dot.pending { background: var(--yellow); animation: pulse-dot 1.5s infinite; }
    .pill-dot.confirmed { background: var(--green); }
    .pill-dot.delivering { background: var(--orange); animation: pulse-dot 1.5s infinite; }
    @keyframes pulse-dot {
      0%,100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.3); opacity: 0.7; }
    }
    .pill-text { flex: 1; font-size: 13px; font-weight: 700; }
    .pill-sub { font-size: 11px; color: var(--muted); font-weight: 500; }
    .pill-arrow { color: var(--muted); font-size: 14px; }

    /* ═══════════════════════════════════════
       STATUS TOAST
    ═══════════════════════════════════════ */
    .status-toast {
  position: fixed;
  bottom: 90px;
  right: 14px;
  left: auto;
  width: 300px;
  background: #1A1A1A;
  border: 1px solid rgba(255,92,0,0.3);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  cursor: pointer;
}
.status-toast.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
    .toast-icon { font-size: 24px; flex-shrink: 0; }
    .toast-title { font-size: 14px; font-weight: 800; margin-bottom: 2px; }
    .toast-sub { font-size: 12px; color: var(--muted); }

    /* ═══════════════════════════════════════
       LOCATION SHEET
    ═══════════════════════════════════════ */
    .sheet-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.65); z-index: 299;
      backdrop-filter: blur(4px);
    }
    .bottom-sheet {
      position: fixed; bottom: 0; left: 0; right: 0;
      background: #141414; border-radius: 24px 24px 0 0;
      padding: 12px 20px 40px; z-index: 300;
      border-top: 1px solid rgba(255,255,255,0.07);
      max-height: 75vh; overflow-y: auto;
    }
    .sheet-handle {
      width: 36px; height: 4px;
      background: rgba(255,255,255,0.12);
      border-radius: 2px; margin: 0 auto 18px;
    }
    .sheet-head {
      display: flex; align-items: center;
      justify-content: space-between; margin-bottom: 20px;
    }
    .sheet-head h3 { font-size: 17px; font-weight: 800; }
    .sheet-close {
      background: rgba(255,255,255,0.07); border: none;
      color: var(--text); width: 28px; height: 28px;
      border-radius: 50%; font-size: 14px;
      display: flex; align-items: center; justify-content: center;
      outline: none;
    }
    .gps-box {
      display: flex; align-items: center; gap: 12px;
      background: rgba(255,92,0,0.06);
      border: 1px solid rgba(255,92,0,0.18);
      border-radius: 14px; padding: 14px 16px; margin-bottom: 16px;
    }
    .gps-icon { font-size: 22px; flex-shrink: 0; }
    .gps-info { flex: 1; min-width: 0; }
    .gps-label { font-size: 11px; color: #777; margin-bottom: 2px; }
    .gps-value {
      font-size: 14px; font-weight: 700;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .refresh-btn {
      background: none; border: 1px solid rgba(255,92,0,0.3);
      color: var(--orange); padding: 6px 12px;
      border-radius: 8px; font-size: 12px; font-weight: 700;
      flex-shrink: 0; outline: none;
    }
    .sheet-divider {
      text-align: center; color: #444; font-size: 12px;
      margin: 16px 0; position: relative;
    }
    .sheet-divider::before, .sheet-divider::after {
      content: ''; position: absolute; top: 50%;
      width: 35%; height: 1px;
      background: rgba(255,255,255,0.07);
    }
    .sheet-divider::before { left: 0; }
    .sheet-divider::after { right: 0; }
    .sheet-input {
      width: 100%; background: #0D0D0D;
      border: 1px solid #222; border-radius: 12px;
      padding: 13px 16px; color: var(--text);
      font-size: 14px; outline: none; margin-bottom: 6px;
    }
    .sheet-input:focus { border-color: var(--orange); }
    .location-input-wrapper {
      position: relative;
      width: 100%;
      margin-bottom: 6px;
    }
    .location-input-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 16px;
      pointer-events: none;
    }
    .location-input-wrapper .sheet-input {
      padding-left: 40px;
    }
    .sheet-hint { font-size: 11px; color: #555; margin-bottom: 16px; }
    .sheet-confirm-btn {
      width: 100%; background: var(--orange-g); color: white;
      border: none; border-radius: 12px; padding: 14px;
      font-size: 15px; font-weight: 800; outline: none;
    }

    /* ═══════════════════════════════════════
       CART SHEET
    ═══════════════════════════════════════ */
    .cart-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.55); display: none; z-index: 200;
    }
    .cart-sheet {
      position: fixed; bottom: 0; left: 0; right: 0;
      background: #111; border-radius: 24px 24px 0 0;
      border-top: 1px solid rgba(255,255,255,0.07);
      z-index: 201; max-height: 82vh;
      display: flex; flex-direction: column;
      transform: translateY(100%);
      transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
    }
    .cart-sheet.open { display: flex; transform: translateY(0); }
    .cart-head {
      display: flex; align-items: center;
      justify-content: space-between;
      padding: 18px 20px 14px;
      border-bottom: 1px solid rgba(255,255,255,0.05);
      flex-shrink: 0;
    }
    .cart-head h3 { font-size: 17px; font-weight: 800; }
    .cart-close-btn {
      background: rgba(255,255,255,0.07); border: none;
      color: var(--text); width: 28px; height: 28px;
      border-radius: 50%; font-size: 14px;
      display: flex; align-items: center; justify-content: center;
      outline: none;
    }
    .cart-items {
      flex: 1; overflow-y: auto; padding: 4px 20px;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,92,0,0.2) transparent;
    }
    .cart-item {
      display: flex; align-items: center; gap: 12px;
      padding: 13px 0;
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .cart-item-name { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.3; }
    .cart-item-controls {
      display: flex; align-items: center; gap: 10px;
      background: rgba(255,255,255,0.05);
      border-radius: 9px; padding: 5px 10px;
    }
    .cart-item-controls .qty-btn { font-size: 18px; padding: 0 2px; }
    .cart-item-controls span { font-size: 14px; font-weight: 800; min-width: 18px; text-align: center; }
    .cart-item-price { font-size: 14px; font-weight: 800; color: var(--orange); min-width: 52px; text-align: right; }
    .cart-foot {
      padding: 14px 20px 28px;
      border-top: 1px solid rgba(255,255,255,0.05);
      flex-shrink: 0; background: #111;
    }
    .cart-row {
      display: flex; justify-content: space-between;
      font-size: 13px; color: var(--muted); margin-bottom: 6px;
    }
    .cart-total-row {
      display: flex; justify-content: space-between;
      font-size: 16px; font-weight: 900;
      padding-top: 10px; margin-bottom: 14px;
      border-top: 1px solid rgba(255,255,255,0.07);
    }
    .free-delivery-hint {
      text-align: center; font-size: 12px; color: var(--muted);
      padding: 6px 0 10px; font-weight: 600;
    }
    .free-delivery-hint span { color: var(--green); font-weight: 800; }
    .cart-checkout-btn {
      width: 100%; background: var(--orange-g); color: white;
      border: none; border-radius: 14px; padding: 15px;
      font-size: 15px; font-weight: 800; outline: none;
      box-shadow: 0 4px 20px rgba(255,92,0,0.3);
    }

    /* ═══════════════════════════════════════
       CHECKOUT MODAL
    ═══════════════════════════════════════ */
    .checkout-modal {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.75); display: none;
      align-items: flex-end; z-index: 2147483647 !important;
      backdrop-filter: blur(6px);
    }
    .checkout-modal.open { display: flex; }
    .hidden { display: none !important; }
    .checkout-panel {
      background: var(--bg-alt); width: 100%;
      max-height: 92vh; overflow-y: auto;
      border-radius: 24px 24px 0 0; padding: 24px 20px 40px;
      max-width: 480px; margin: 0 auto;
    }
    .checkout-panel h2 { font-size: 19px; font-weight: 900; margin-bottom: 18px; }
    .form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
    .form-label {
      font-size: 11px; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.5px;
    }
    .form-input, .form-textarea {
      background: var(--input-bg); border: 1px solid var(--input-border);
      color: var(--text); padding: 12px 14px;
      border-radius: 10px; font-size: 14px; outline: none;
      transition: border-color 0.2s;
    }
    .form-input:focus, .form-textarea:focus { border-color: var(--orange); }
    .form-input::placeholder, .form-textarea::placeholder { color: #444; }
    .form-textarea { resize: none; min-height: 72px; }
    .order-summary-box {
      background: var(--card); border: 1px solid var(--border);
      border-radius: 14px; padding: 14px; margin-bottom: 16px;
    }
    .summary-item {
      display: flex; justify-content: space-between;
      margin-bottom: 8px; font-size: 13px; color: var(--muted);
    }
    .summary-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 8px 0; }
    .summary-row {
      display: flex; justify-content: space-between;
      font-size: 13px; color: var(--muted); padding: 4px 0;
    }
    .summary-total {
      display: flex; justify-content: space-between;
      font-size: 15px; font-weight: 900; padding-top: 8px;
    }
    .location-row {
      display: flex; align-items: center; gap: 8px;
      padding: 10px 14px;
      background: rgba(255,92,0,0.07);
      border: 1px solid rgba(255,92,0,0.18);
      border-radius: 10px; margin-bottom: 14px; font-size: 13px;
    }
    .location-row button {
      margin-left: auto; background: none; border: none;
      color: var(--orange); font-size: 12px; font-weight: 700; outline: none;
    }
    .first-order-badge {
      display: none; align-items: center; gap: 10px;
      background: linear-gradient(135deg,rgba(34,197,94,0.15),rgba(34,197,94,0.05));
      border: 1px solid rgba(34,197,94,0.3);
      border-radius: 12px; padding: 12px 16px; margin-bottom: 14px;
    }
    .returning-greeting {
      display: none; align-items: center; gap: 8px;
      background: rgba(255,92,0,0.08);
      border: 1px solid rgba(255,92,0,0.2);
      border-radius: 12px; padding: 10px 14px; margin-bottom: 14px;
    }
    .place-order-btn {
      background: var(--orange-g); color: white;
      border: none; padding: 15px; border-radius: 14px;
      font-weight: 900; font-size: 15px; width: 100%; outline: none;
      box-shadow: 0 4px 20px rgba(255,92,0,0.3);
    }
    .place-order-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    /* ═══════════════════════════════════════
       SHOP PICKER SHEET
    ═══════════════════════════════════════ */
    .shop-picker-sheet {
      display: none !important;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--bg-alt);
      border-radius: 24px 24px 0 0;
      padding: 24px;
      z-index: 999;
      max-height: 70vh;
      overflow-y: auto;
      border-top: 1px solid var(--border);
    }

    .shop-picker-sheet.open {
      display: block !important;
    }

    .shop-picker-handle {
      width: 40px;
      height: 4px;
      background: var(--border);
      border-radius: 2px;
      margin: 0 auto 20px;
    }

    .shop-picker-title {
      font-size: 16px;
      font-weight: 800;
      margin-bottom: 16px;
      color: var(--text);
    }

    .shop-picker-empty {
      color: var(--muted);
      text-align: center;
      padding: 20px;
    }

    .shop-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px;
      border-radius: 12px;
      cursor: pointer;
      border: 1px solid var(--border);
      margin-bottom: 10px;
      background: var(--card);
      transition: all 0.2s;
    }

    .shop-item:hover,
    .shop-item.shop-item-hover {
      border-color: rgba(255,92,0,0.3);
    }

    .shop-item-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: rgba(255,92,0,0.1);
      border: 1px solid rgba(255,92,0,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }

    .shop-item-content {
      flex: 1;
    }

    .shop-item-name {
      font-weight: 700;
      font-size: 14px;
      color: var(--text);
      margin-bottom: 2px;
    }

    .shop-item-location {
      font-size: 12px;
      color: var(--muted);
    }

    .shop-item-arrow {
      color: var(--orange);
      font-size: 18px;
    }

    /* ═══════════════════════════════════════
       CONFETTI
    ═══════════════════════════════════════ */
    @keyframes confettiFall {
      to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
    }

    /* ═══════════════════════════════════════
       DESKTOP MEDIA QUERIES
    ═══════════════════════════════════════ */
    @media (min-width: 768px) {
      .sidebar { display: block; }
      .cat-row { display: none; }
      .bottom-nav { display: none; }
      #floatingCart { bottom: 32px; min-width: 280px; }
      .order-pill {
        bottom: 24px; right: 24px;
        left: auto; max-width: 320px;
      }
      .status-toast {
        max-width: 400px; left: 50%; right: auto;
        transform: translateX(-50%) translateY(-20px);
      }
      .status-toast {
      bottom: 80px;
      right: 10px;
      left: auto;
      width: 260px;
      padding: 10px 12px;
}
      .status-toast.show { 
      transform: translateX(0); 
      opacity: 1;
      pointer-events: auto; 
}
      .products-grid {
        padding: 12px 16px 100px;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
      }
      .sidebar.closed ~ .main-content .products-grid {
        grid-template-columns: repeat(5, 1fr);
      }
      .sidebar.closed ~ .main-content .cat-bar {
        padding-left: 70px;
      }
      .product-img { height: 150px; }
      .checkout-panel { border-radius: 20px; }
      .cat-bar { padding: 12px 16px 0; }
    }

    @media (max-width: 767px) {
      .cat-row { order: 1; }
      .cat-bar { order: 2; }
      .products-grid { order: 3; }
      .main-content { display: flex; flex-direction: column; }
      .cat-bar-title { order: 1; }
      .subcat-row { order: 2; }
    }

    /* ═══════════════════════════════════════
       LIGHT MODE
    ═══════════════════════════════════════ */
    .light-mode .navbar { background: rgba(255,255,255,0.96); border-bottom-color: rgba(255,92,0,0.15); }
    .light-mode .search-wrapper { background: #FFFFFF; border-bottom-color: rgba(0,0,0,0.06); }
    .light-mode .search-box { background: #FFF8F5; border-color: #FFD4BC; }
    .light-mode .search-input { color: #111; }
    .light-mode .cat-circle { background: #FFF8F5; border-color: #FFE8DC; }
    .light-mode .product-card { background: #FFFFFF; border-color: #F0F0F0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
    .light-mode .product-cat-tag { background: rgba(255,255,255,0.9); color: #333; }
    .light-mode .sidebar { background: #FFFFFF; border-right-color: #F0F0F0; }
    .light-mode .sidebar-header { background: #FFFFFF; border-bottom-color: #F0F0F0; }
    .light-mode .sidebar-cat-btn { color: #666; }
    .light-mode .sidebar-cat-btn:hover { background: rgba(255,92,0,0.04); color: #111; }
    .light-mode .sidebar-order-card { background: #FFFFFF; border-color: #F0F0F0; }
    .light-mode .cart-sheet { background: #F7F7F7; }
    .light-mode .cart-foot { background: #F7F7F7; }
    .light-mode .bottom-sheet { background: #FFFFFF; }
    .light-mode .checkout-panel { background: #FFFFFF; }
    .light-mode .form-input, .light-mode .form-textarea { background: #FFF8F5; border-color: #FFD4BC; color: #111; }
    .light-mode .order-summary-box { background: #FFF8F5; border-color: #FFE8DC; }
    .light-mode .bottom-nav { background: rgba(255,255,255,0.96); border-top-color: rgba(255,92,0,0.1); }
    .light-mode .order-pill { background: #FFFFFF; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
    .light-mode .cart-overlay { background: rgba(0,0,0,0.3); }
    .light-mode .cat-row {
      background: var(--bg);
    }
    .light-mode .cat-bar {
      background: var(--bg);
    }
    .light-mode .cat-circle { background: #FFF8F5; border-color: #FFE8DC; }
    .light-mode .cat-label { color: #666666; }
    .light-mode .shop-picker-sheet {
      background: var(--bg-alt) !important; 
      border-top-color: var(--border) !important; 
    }
    .light-mode .shop-picker-handle {
      background: rgba(0,0,0,0.15) !important;
    }
    .light-mode .shop-picker-title {
      color: var(--text) !important;
    }
    .light-mode .shop-item { 
      background: var(--card) !important; 
      border-color: var(--border) !important; 
    }
    .light-mode .shop-item-name {
      color: var(--text) !important;
    }
    .light-mode .shop-item-location {
      color: var(--muted) !important;
    }
    .light-mode .shop-picker-empty {
      color: var(--muted) !important;
    }
    #sidebarToggleBtn { display: none; }
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    @media (max-width: 768px) {
      #sidebarToggleBtn { display: flex !important; }
    }


    /* ⚡ SIDEBAR & CATEGORY UPGRADES */
.sidebar-cat-btn {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.sidebar-cat-emoji {
    font-size: 18px; /* 🔥 Made the icons much larger */
    margin-right: 14px;
}

.cat-label {
    font-size: 14px; /* 🔥 Made the text larger and crisper */
    font-weight: 600;
    color: var(--text, #fff);
}

.sidebar-cat-btn.active {
    background: rgba(255, 92, 0, 0.15);
}

.sidebar-cat-btn.active .cat-label {
    color: #FF5C00;
    font-weight: 800;
}

/* ⚡ THE BULLETPROOF STICKY CAROUSEL */
#catRow {
    position: -webkit-sticky; /* CRITICAL: Forces support on iPhones/Safari */
    position: sticky;
    top: -1px; /* The -1px prevents a tiny gap from appearing at the top */
    z-index: 9999; /* Forces it above all product cards and images */
    background: #121212; /* Keeps the background solid so products don't show through */
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* Stronger shadow to pop out from the background */
}

/* ⚡ CRITICAL: The Sticky Trap Fix */
/* This ensures the parent containers don't block the sticky behavior */
html,body { 
    width: 100%;
    position: relative; /* Keeps the body scrollable while hiding the side-spill */
}

#productsStep {
    overflow: visible; /* Allows the sticky child to track the window scroll */
}

/* PERMANENT MODAL OVERRIDE */
#shopPickerOverlay, #shopPickerSheet, .checkout-modal, .checkout-panel {
    z-index: 99999 !important;
}

/* --- CATEGORY CAROUSEL THEME FIX --- */

/* Make the containers transparent so they match the page mode naturally */
.cat-bar, 
#catRow, 
.category-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    z-index: 10 !important;
}

/* Ensure individual category buttons adapt to light/dark text colors */
.cat-btn {
    background: transparent !important;
    color: var(--text, #000000) !important;
}

/* Give the circular icon containers a clean background matching the active theme surface */
.cat-circle {
    background: var(--surface-color, #f5f5f5) !important;
    border: 1px solid var(--border-color, #e0e0e0) !important;
}

/* Dropdown sheets and checkout panels must always layer on top of the carousel */
#shopPickerOverlay, 
#shopPickerSheet, 
.checkout-modal, 
.checkout-panel {
    z-index: 2147483647 !important; 
}

/* --- SUBCATEGORY BAR FIX (DESKTOP & MOBILE) --- */

/* Force the subcategory row and its direct wrappers to be transparent */
.subcat-row, 
.cat-bar {
    background: transparent !important;
}

/* Ensure the inactive text links adapt to light mode */
.subcat-row span,
.subcat-row a,
.subcat-row div {
    color: var(--muted, #666) !important;
}

/* Ensure the active orange pill text stays legible */
.subcat-pill.active {
    background: var(--orange) !important;
    color: white !important;
}