/* ── Layout ── */
  .customer-layout {
    background: #ffffff;
    min-height: 100vh;
    color: var(--text);
  }

  /* ── Hero Section ── */
  .premium-hero {
    height: 40vh;
    min-height: 200px;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(0,0,0,0.4)),
                url('https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 20px 20px;
    color: #fff;
    position: relative;
  }

  .restaurant-glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 18px 20px;
    border-radius: 20px;
    margin-bottom: 16px;
    animation: fadeInUp 0.7s ease-out both;
    color: var(--dark);
  }

  /* ── Budget bar ── */
  .budget-bar {
    display: none;
    margin: 12px 16px 0;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #34d399;
    align-items: center;
    gap: 10px;
  }
  .budget-bar.active { display: flex; }
  .budget-bar .budget-reset {
    margin-left: auto; background: none; border: none; cursor: pointer;
    color: #34d399; font-size: 0.8rem; font-weight: 700; padding: 4px 10px;
    border-radius: 10px; transition: all 0.2s;
  }
  .budget-bar .budget-reset:hover { background: rgba(16, 185, 129, 0.15); }

  /* ── Search ── */
  .search-container {
    padding: 16px 16px 4px;
    background: #ffffff;
    position: sticky;
    top: 56px;
    z-index: 400;
  }

  .search-wrapper {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 4px 14px;
    transition: var(--transition);
  }
  .search-wrapper:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
  }
  .search-input {
    border: none;
    background: transparent;
    padding: 11px 10px;
    flex: 1;
    font-size: 0.9rem;
    outline: none;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
  }
  .search-input::placeholder { color: var(--text-muted); }

  /* ── Category Nav ── */
  .category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 16px 14px;
    scrollbar-width: none;
  }
  .category-nav::-webkit-scrollbar { display: none; }

  .premium-pill {
    padding: 9px 18px;
    border-radius: 30px;
    background: #f8fafc;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    color: var(--text-muted);
  }
  .premium-pill:hover { background: #fff; color: var(--primary); border-color: var(--primary); }
  .premium-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  }
  .premium-pill.athlete-pill {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
  }

  /* ── Product Grid ── */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 8px 16px 140px;
    background: #ffffff;
  }

  .premium-product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  }
  .premium-product-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
  }
  .premium-product-card.budget-locked {
    opacity: 0.4;
    pointer-events: none;
  }

  .product-image-wrapper {
    height: 140px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
  }
  .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  .premium-product-card:hover .product-img { transform: scale(1.05); }

  .price-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 800;
    color: var(--primary);
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  .budget-badge-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(239,68,68,0.4);
  }

  .product-content { padding: 14px; }

  .product-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
  }

  .product-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    height: 32px;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  /* Nutri row shown in athlete mode */
  .nutri-row {
    display: none;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  body.athlete-mode .nutri-row { display: flex; }

  .product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cal-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
  }
  body.athlete-mode .cal-tag { color: #ea580c; font-weight: 700; }

  .add-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(99,102,241,0.2);
  }
  .add-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(99,102,241,0.4); }

  /* ── Budget Modal (Bottom Sheet) ── */
  #budgetModal {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.4);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex; align-items: flex-end; justify-content: center;
  }
  #budgetModal.hidden { display: none; }

  .budget-sheet {
    width: 100%; max-width: 520px;
    background: #ffffff;
    border: none;
    border-radius: 32px 32px 0 0;
    overflow: hidden;
    animation: sheetUp 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    color: var(--dark);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
  }

  .sheet-handle-wrap { padding: 14px 0 0; text-align: center; }
  .sheet-handle {
    display: inline-block; width: 40px; height: 4px;
    background: var(--border); border-radius: 4px;
  }

  .sheet-inner { padding: 20px 28px 40px; }

  .sheet-title { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
  .sheet-sub   { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 28px; }

  .budget-input-row {
    display: flex; gap: 10px; align-items: center; margin-bottom: 22px;
  }
  .budget-amount-input {
    flex: 1; padding: 14px 18px; border: 2px solid var(--border);
    border-radius: 14px; font-size: 1.2rem; font-weight: 700; outline: none;
    font-family: 'Poppins', sans-serif; color: var(--dark); background: #fff; transition: var(--transition);
  }
  .budget-amount-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.12); }
  .budget-currency {
    padding: 14px 18px; background: #f8fafc; border-radius: 14px;
    font-size: 1.2rem; font-weight: 800; color: var(--dark);
    border: 2px solid var(--border);
  }

  .toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: #f8fafc; border-radius: 16px; margin-bottom: 24px;
    border: 1.5px solid var(--border);
  }
  .toggle-row-info { flex: 1; }
  .toggle-row-title { font-weight: 700; font-size: 0.95rem; color: var(--dark); }
  .toggle-row-desc  { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

  .sheet-submit-btn {
    width: 100%; padding: 17px; border: none; border-radius: 18px;
    background: var(--primary-gradient); color: #fff;
    font-size: 1.05rem; font-weight: 800; cursor: pointer;
    font-family: 'Poppins', sans-serif; transition: var(--transition);
    box-shadow: 0 8px 20px rgba(99,102,241,0.35);
  }
  .sheet-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(99,102,241,0.45); }

  .skip-link {
    display: block; text-align: center; margin-top: 14px;
    font-size: 0.83rem; color: var(--text-muted); cursor: pointer;
    font-weight: 600; transition: var(--transition);
  }
  .skip-link:hover { color: var(--primary); }

  /* ── Section title ── */
  .section-title {
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted); padding: 4px 16px 8px;
  }

  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

  /* ── Premium Expandable Quick Action FAB Menu Styles ── */
  .fab-menu-wrapper {
    position: fixed;
    bottom: 84px; /* Float nicely above bottom tab bar */
    right: 18px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  /* Screen overlay behind the active menu */
  .fab-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .fab-menu-wrapper.active .fab-menu-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* Main Golden/Indigo Action Trigger Button */
  .fab-trigger-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .fab-trigger-btn:active {
    transform: scale(0.92);
  }
  .fab-trigger-icon {
    font-size: 1.35rem;
    transition: transform 0.3s ease;
    display: inline-flex;
  }
  .fab-menu-wrapper.active .fab-trigger-btn {
    background: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
  }
  .fab-menu-wrapper.active .fab-trigger-icon {
    transform: rotate(135deg); /* Rotates the plus/flash to look like an X! */
  }

  /* Quick Action Items Container */
  .fab-menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-end;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .fab-menu-wrapper.active .fab-menu-items {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  /* Sleek pill action buttons */
  /* Sleek, uniform action buttons (exactly same size!) */
  .fab-menu-items .f-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 165px !important;  /* Perfect identical uniform width! */
    height: 44px !important;  /* Perfect identical uniform height! */
    padding: 0 16px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: rgba(255, 255, 255, 0.95) !important; /* Elegant unified white background */
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .fab-menu-items .f-btn:hover {
    transform: translateX(-4px) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
  }

  .f-icon { 
    font-size: 1.25rem !important; 
    filter: none !important; /* Ensure clear unfiltered colored icons/emojis! */
    display: inline-flex !important;
  }
  
  .f-label { 
    font-size: 0.8rem !important; 
    font-weight: 700 !important; 
    color: #0f172a !important; /* High contrast rich dark text, fully visible! */
    font-family: 'Outfit', sans-serif !important; 
  }


@keyframes modalScaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}