* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00c896;
  --primary-dark: #00a67d;
  --accent: #f5a623;
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --card-hover: #fafafa;
  --text: #1a1a1a;
  --text-light: #666;
  --text-secondary: #94a3b8;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --surface: #f5f5f5;
  --surface-alt: #f9fafb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

body {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════
   🍔 FOOD MODE — Wolt-style layout for restaurants
   Activated by adding .food-mode to <body>
   Does NOT affect non-food stores (GADTAL, services, etc.)
═══════════════════════════════════════════════════════════ */

/* Restaurant info bar — premium look */
.restaurant-info-bar {
  display: none;
  padding: 10px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: #555;
}
.food-mode .restaurant-info-bar {
  display: flex;
  background: white;
  color: #1a1a1a;
  border-bottom: 8px solid #f5f5f5;
  padding: 16px;
  font-size: 14px;
  gap: 8px;
  justify-content: flex-start;
}
.food-mode .restaurant-info-bar .info-sep { color: #d1d5db; font-size: 8px; }
.food-mode .restaurant-info-bar .info-rating {
  color: #1a1a1a;
  font-weight: 700;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 8px;
}
.food-mode .restaurant-info-bar .info-time { color: #1a1a1a; font-weight: 600; }
.food-mode .restaurant-info-bar .info-fee { color: #00a67d; font-weight: 600; }
.food-mode .restaurant-info-bar .info-min { color: #666; }
.restaurant-info-bar .info-item { display: flex; align-items: center; gap: 3px; }
.restaurant-info-bar .info-sep { color: #ccc; font-size: 10px; }
.restaurant-info-bar .info-rating { color: #f59e0b; font-weight: 700; }
.restaurant-info-bar .info-time { color: var(--primary); font-weight: 600; }
.restaurant-info-bar .info-fee { color: #888; }
.restaurant-info-bar .info-min { color: #888; }

/* Food mode: sticky categories */
.food-mode .categories-section {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.food-mode .categories-scroll {
  gap: 0;
  padding: 0;
}
.food-mode .category-card {
  width: auto;
  padding: 12px 16px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}
.food-mode .category-card.active {
  border-bottom-color: var(--primary);
}
.food-mode .category-card.active .category-name {
  color: var(--primary);
}
.food-mode .category-icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-size: 15px;
  margin: 0;
  display: inline;
  line-height: 1;
}
.food-mode .category-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  display: inline;
  margin-right: 2px;
}
.food-mode .category-card.active .category-icon,
.food-mode .category-card.active .category-name {
  color: var(--primary);
}

/* Food mode: products as list (horizontal cards) */
.food-mode .products-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
.food-mode .product-card {
  display: flex;
  flex-direction: row-reverse;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px;
  gap: 14px;
  background: white;
  transition: background 0.15s;
  cursor: pointer;
  position: relative;
}
.food-mode .product-card:active {
  background: #f5f5f5;
}
.food-mode .product-card:hover {
  transform: none;
  box-shadow: none;
  background: #fafafa;
}
.food-mode .product-image {
  width: 50%;
  min-width: 50%;
  max-width: none;
  height: 150px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}
@media (min-width: 420px) {
  .food-mode .product-image {
  width: 50%;
  min-width: 50%;
  max-width: none;
  height: 150px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}
}
.food-mode .product-info {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding-bottom: 0;
}
.food-mode .product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.35;
  color: #1a1a1a;
}
.food-mode .product-description {
  font-size: 13px;
  color: #6b7280;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  margin-bottom: 0;
}
.food-mode .product-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.food-mode .product-price {
  font-size: 16px;
  color: #00a67d;
  font-weight: 700;
}
.food-mode .add-btn {
  width: 36px;
  height: 36px;
  font-size: 24px;
  background: #ffffff;
  color: #009de0;
  border: none;
  border-radius: 50%;
  font-weight: 300;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.food-mode .add-btn:hover {
  background: #d6effa;
  transform: scale(1.05);
}
.food-mode .add-btn:active {
  transform: scale(0.88);
}

/* Food mode: micro-interactions */
@keyframes addToCartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes cartBarBounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
  50% { transform: translateY(0); }
  70% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.food-mode .add-btn.just-added {
  animation: addToCartPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #f59e0b !important;
}
.food-mode .cart-bar.just-updated {
  animation: cartBarBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.food-mode .product-card {
  cursor: pointer;
}
.food-mode .modifier-option {
  transition: background 0.15s;
}
.food-mode .modifier-option:active {
  background: #f9fafb !important;
}
.food-mode .modifier-group.has-error {
  background: #fef2f2;
  border-radius: 8px;
  padding: 16px 12px !important;
}
.food-mode .modifier-group.has-error .modifier-group-label {
  color: #dc2626;
}
.food-mode .modifier-validation-msg {
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
  padding: 6px 0 4px;
  display: none;
}
.food-mode .modifier-group.has-error .modifier-validation-msg {
  display: block;
}

/* Food mode: section dividers — clean, bold */
.food-section-title {
  display: none;
  padding: 24px 16px 10px;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  background: white;
  border-top: 8px solid #f5f5f5;
  letter-spacing: -0.3px;
}
.food-section-title:first-child { border-top: none; }
.food-mode .food-section-title { display: block; }
.food-section-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #666;
  margin-top: 2px;
}

/* Food mode: CLEAN layout — hide clutter from header */
.food-mode .products-section > .section-title { display: none; }
.food-mode .product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  right: auto;
  bottom: auto;
  background: #009de0;
  color: white;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 5;
}
.food-mode .product-badge.popular { background: linear-gradient(135deg, #00c896, #00a67d); }

/* Hide ΔAI panel, credit badge, and Δ button in food mode header — CLEAN like Wolt */
.food-mode .ai-panel-toggle,
.food-mode .credit-badge-container,
.food-mode #credit-badge,
.food-mode .ai-toggle-btn {
  display: none !important;
}

/* Compact order-type bar */
.food-mode .order-type-bar {
  padding: 10px 16px;
  gap: 8px;
}
.food-mode .order-type-btn {
  padding: 10px;
  font-size: 14px;
  border-radius: 10px;
}
.food-mode .order-type-btn .icon {
  font-size: 18px;
}

/* Cleaner search bar */
.food-mode .search-container {
  padding: 8px 16px;
}

/* Food mode: product detail — Wolt-style ~45% of screen */
.food-mode .product-viewer-container {
  height: 45vh;
  min-height: 250px;
  max-height: 360px;
  border-radius: 28px 28px 0 0;
}
.food-mode .product-3d-modal {
  background: #000;
}
.food-mode .product-hd-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px 28px 0 0;
}
.food-mode .product-3d-info {
  padding: 20px 20px 90px;
  margin-top: -16px;
  border-radius: 20px 20px 0 0;
}
/* Food mode: Wolt-style fixed bottom bar — qty + add in ONE row */
.food-mode .product-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  z-index: 201;
  background: white;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 10px 16px;
  display: flex !important;
  align-items: center;
  gap: 12px;
}
.food-mode .product-bottom-bar .product-3d-quantity {
  margin-bottom: 0;
  gap: 0;
}
.food-mode .product-bottom-bar .quantity-label { display: none; }
.food-mode .product-bottom-bar .quantity-unit { display: none; }
.food-mode .product-bottom-bar .quantity-selector {
  background: #f5f5f5;
  border-radius: 12px;
}
.food-mode .product-bottom-bar .qty-btn {
  width: 40px;
  height: 44px;
  font-size: 20px;
  color: #00a67d;
  background: transparent;
}
.food-mode .product-bottom-bar .qty-value {
  width: 28px;
  font-size: 16px;
  font-weight: 700;
}
.food-mode .product-bottom-bar .product-3d-add-btn {
  flex: 1;
  position: static;
  width: auto;
  padding: 16px 20px;
  background: linear-gradient(135deg, #00c896 0%, #00a67d 100%) !important;
  background-size: 100% 100% !important;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,200,150,0.3);
  background-size: unset;
  background-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.food-mode .product-bottom-bar .product-3d-add-btn:hover {
  background: #059669;
  transform: none;
  box-shadow: none;
}
.food-mode .product-bottom-bar .product-3d-add-btn:active {
  transform: scale(0.98);
}
.food-mode .product-bottom-bar .product-3d-add-btn .add-btn-icon { display: none; }
.food-mode .product-bottom-bar .product-3d-add-btn .add-btn-price {
  margin-right: 0; padding: 0; background: none; border-radius: 0;
}
.food-mode .allergy-chips { display: none !important; }

/* Food mode: Wolt-quality modifier styling */
.food-mode .modifiers-title { display: none; }
.food-mode .modifier-group { 
  margin-bottom: 0; 
  border-top: 8px solid #f5f5f5;
  padding: 16px 0;
}
.food-mode .modifier-group-label {
  font-size: 18px; font-weight: 800; color: #1a1a1a;
  padding: 0; margin-bottom: 2px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
}
.food-mode .modifier-group-label .required-tag {
  display: inline-flex;
  background: #fee2e2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.food-mode .modifier-group-label .optional-tag {
  display: none;
}
.food-mode .modifier-group-label span[style*="font-size:11px"] {
  font-size: 13px !important; color: #94a3b8 !important;
  font-weight: 400 !important; display: block; width: 100%;
  margin-right: 0 !important;
}
.food-mode .modifier-option {
  background: transparent;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  padding: 14px 0;
  margin: 0;
}
.food-mode .modifier-option:last-child { border-bottom: none; }
.food-mode .modifier-option.selected {
  background: transparent;
  border-color: #f0f0f0;
}
.food-mode .modifier-checkbox {
  width: 22px; height: 22px;
  border-radius: 4px;
  border: 2px solid #d1d5db;
  font-size: 0;
  color: transparent;
  order: -1;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s;
}
.food-mode .modifier-option[data-radio="true"] .modifier-checkbox {
  border-radius: 50%;
}
.food-mode .modifier-option.selected .modifier-checkbox {
  background: #00a67d;
  border-color: #00a67d;
}
.food-mode .modifier-option.selected .modifier-checkbox::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}
.food-mode .modifier-option[data-radio="true"].selected .modifier-checkbox::after {
  width: 8px; height: 8px;
  border: none;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.food-mode .modifier-name {
  font-size: 16px; font-weight: 400; color: #1a1a1a;
  flex: 1;
}
.food-mode .modifier-price {
  font-size: 14px; color: #666;
  margin-right: auto;
  padding-right: 8px;
}
.food-mode .modifier-option-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.food-mode .modifiers-section ~ div > .modifiers-title {
  font-size: 16px; font-weight: 700; color: #1a1a1a;
  border-top: 8px solid #f5f5f5;
  padding-top: 16px;
}
.food-mode .special-notes-input {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.food-mode .product-3d-name {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: #1a1a1a;
}
.food-mode .product-3d-pricing {
  justify-content: center;
  margin-bottom: 8px;
}
.food-mode .product-3d-price {
  font-size: 20px;
  color: #00a67d;
  font-weight: 700;
}
.food-mode .product-3d-description {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
  text-align: center;
  max-height: 3.2em;
  overflow: hidden;
  transition: max-height 0.3s;
}
.food-mode .product-3d-description.expanded {
  max-height: none;
}
.food-mode .product-modal-sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
  opacity: 0;
  transition: opacity 0.2s;
  margin-bottom: -57px;
}
.food-mode .product-modal-sticky-header.visible {
  opacity: 1;
}
.food-mode .product-modal-sticky-header .sticky-close {
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: #333; width: 32px; height: 32px; display: flex;
  align-items: center; justify-content: center;
}
.food-mode .product-modal-sticky-header .sticky-name {
  font-size: 16px; font-weight: 700; color: #1a1a1a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.food-mode .desc-show-more {
  display: block;
  text-align: center;
  color: #00a67d;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 12px;
  background: none;
  border: none;
}
.food-mode .product-3d-badges {
  justify-content: center;
  margin-bottom: 8px;
}
.food-mode .product-3d-category {
  margin-bottom: 8px;
  display: none;
}
.food-mode .product-3d-tags {
  display: none;
}
.food-mode #product-detail-specs {
  display: none !important;
}

/* Header with business image */
.store-header {
  position: relative;
  height: 240px;
  background: #f5f5f5;
  overflow: hidden;
}

.store-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.store-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 18px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.85) 100%);
  color: white;
}
.food-mode .store-header-overlay {
  padding: 60px 20px 24px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.85) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.store-name {
  font-size: 26px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  letter-spacing: -0.3px;
}
.food-mode .store-name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.store-type {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.food-mode .store-type {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 6px;
}

.back-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
}
.food-mode .back-btn {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Order type selection */
.order-type-bar {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.order-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.order-type-btn.active {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
}

.order-type-btn .icon {
  font-size: 24px;
}

/* Search bar */
/* 🔍 Amazon-Style Smart Search */
.search-container {
  padding: 12px 16px;
  background: white;
  position: relative;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.search-bar:focus-within {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.search-input {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  font-size: 16px;
  text-align: right;
  outline: none;
}

.search-input::placeholder {
  color: #999;
}

.search-icon {
  padding: 14px;
  color: #666;
  font-size: 18px;
}

.search-clear {
  padding: 8px 12px;
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  display: none;
}

.search-clear.visible { display: block; }

.search-voice {
  padding: 8px 12px;
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}

.search-voice:hover { color: var(--primary); }
.search-voice.listening { color: #ef4444; animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 📋 Search Dropdown */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 150;
  display: none;
  max-height: 70vh;
  overflow-y: auto;
}

.search-dropdown.active { display: block; }

.search-section {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.search-section:last-child { border-bottom: none; }

.search-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 🕐 Search History */
.search-history-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px;
  margin: 0 -8px;
  padding: 10px 8px;
}

.search-history-item:hover { background: #f5f5f5; }

.search-history-icon {
  width: 32px;
  height: 32px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  font-size: 14px;
}

.search-history-text {
  flex: 1;
  text-align: right;
}

.search-history-delete {
  padding: 4px 8px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 12px;
}

/* 🔥 Trending Searches */
.search-trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-trending-tag {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: #166534;
  cursor: pointer;
  transition: all 0.2s;
}

.search-trending-tag:hover {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  transform: scale(1.05);
}

/* 📦 Instant Results */
.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  border-radius: 10px;
  margin: 0 -8px;
  padding: 12px 8px;
  transition: background 0.2s;
}

.search-result-item:hover { background: #f5f5f5; }

.search-result-image {
  width: 50px;
  height: 50px;
  background: #f5f5f5;
  border-radius: 10px;
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  text-align: right;
}

.search-result-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.search-result-name mark {
  background: #fef08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.search-result-meta {
  font-size: 12px;
  color: #666;
}

.search-result-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

/* 🏷️ Quick Filters */
.search-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.search-filters::-webkit-scrollbar { display: none; }

.search-filter-btn {
  flex-shrink: 0;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.search-filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* 📊 Search Stats Bar */
.search-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #fafafa;
  font-size: 13px;
  color: #666;
}

.search-stats-count { font-weight: 600; color: #333; }

.search-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-sort select {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  background: white;
  cursor: pointer;
}

/* 🎯 No Results */
.search-no-results {
  text-align: center;
  padding: 40px 20px;
}

.search-no-results-icon { font-size: 48px; margin-bottom: 16px; }
.search-no-results-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.search-no-results-text { color: #666; margin-bottom: 16px; }

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.search-suggestion-btn {
  background: #f5f5f5;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.search-suggestion-btn:hover { background: var(--primary); color: white; }

/* ═══════════════════════════════════════════════════════════════
   🎯 3D PRODUCT VIEWER - Immersive Shopping Experience
   ═══════════════════════════════════════════════════════════════ */

.product-3d-modal {
  width: 100%;
  max-width: 500px;
  max-height: 95vh;
  background: #000;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp3D 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Food mode: whole modal scrolls — image goes up, content fills screen */
.food-mode .product-3d-modal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: white;
}
.food-mode .product-3d-modal .product-viewer-container {
  flex-shrink: 0;
}
.food-mode .product-3d-info {
  overflow-y: visible;
  flex-shrink: 0;
}

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

.product-3d-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s;
}

.product-3d-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

/* 🎪 3D Viewer Stage */
.product-3d-viewer {
  height: 55vh;
  min-height: 320px;
  position: relative;
  perspective: 1500px;
  overflow: hidden;
}

.product-3d-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
}

/* Dynamic Lighting Effect */
.product-3d-light {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.1s ease-out;
  filter: blur(30px);
  z-index: 1;
}

/* 3D Container */
.product-3d-container {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  cursor: grab;
  z-index: 10;
}

.product-3d-container:active { cursor: grabbing; }

/* 3D Card — Apple-style elegant floating card */
.product-3d-card {
  width: 280px;
  height: 280px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: rotateY(-8deg) rotateX(4deg);
}

.product-3d-face {
  position: absolute;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

/* Front Face — clean image, no border, elegant shadow */
.product-3d-front {
  width: 280px;
  height: 280px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.3),
    0 10px 20px rgba(0,0,0,0.15);
  transform: translateZ(8px);
  border: none;
}

.product-3d-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.product-3d-fallback {
  font-size: 80px;
  display: none;
}

.product-3d-front img[src=""], .product-3d-front img:not([src]) {
  display: none;
}

.product-3d-front img[src=""]+.product-3d-fallback,
.product-3d-front img:not([src])+.product-3d-fallback {
  display: block;
}

/* Back Face — subtle */
.product-3d-back {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transform: rotateY(180deg) translateZ(8px);
  border-radius: 20px;
}

/* Side Faces — thin card edge (8px depth) */
.product-3d-left {
  width: 16px;
  height: 280px;
  left: 0;
  background: linear-gradient(90deg, #d4d4d8 0%, #fafafa 100%);
  transform: translateX(-8px) rotateY(-90deg);
  border-radius: 0;
}

.product-3d-right {
  width: 16px;
  height: 280px;
  right: 0;
  left: auto;
  background: linear-gradient(90deg, #fafafa 0%, #d4d4d8 100%);
  transform: translateX(8px) rotateY(90deg);
  border-radius: 0;
}

.product-3d-top {
  width: 280px;
  height: 16px;
  top: 0;
  background: linear-gradient(180deg, #fafafa 0%, #e4e4e7 100%);
  transform: translateY(-8px) rotateX(90deg);
  border-radius: 0;
}

.product-3d-bottom {
  width: 280px;
  height: 16px;
  bottom: 0;
  background: linear-gradient(180deg, #e4e4e7 0%, #d4d4d8 100%);
  transform: translateY(8px) rotateX(-90deg);
  border-radius: 0;
}

/* Shadow/Reflection - Enhanced */
.product-3d-shadow {
  position: absolute;
  bottom: -20px;
  width: 220px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  transition: all 0.3s;
}

/* 3D Controls */
.product-3d-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 50;
}

.product-3d-control-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.product-3d-control-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.product-3d-control-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Interaction Hint */
.product-3d-hint {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeInHint 0.5s 1s both;
}

@keyframes fadeInHint {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📋 Product Info Panel */
.product-3d-info {
  flex: 1;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px;
  margin-top: -20px;
  position: relative;
  z-index: 20;
  overflow-y: auto;
}

.product-3d-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #166534;
  margin-bottom: 12px;
}

.product-3d-name {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.product-3d-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.product-3d-original-price {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
}

.product-3d-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.product-3d-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.product-3d-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.product-3d-badge.stock {
  background: #ecfdf5;
  color: #059669;
}

.product-3d-badge.rating {
  background: #fef3c7;
  color: #d97706;
}

.product-3d-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.product-3d-description {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-3d-specs {
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.product-3d-specs-title {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}

.product-3d-specs-content {
  padding: 0 16px 16px;
  font-size: 13px;
  color: #64748b;
}

.product-bottom-bar {
  display: contents;
}

.product-3d-quantity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.quantity-label {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

.quantity-selector {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 14px;
  overflow: hidden;
}

.qty-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}

.qty-btn:hover { background: #e2e8f0; color: var(--primary); }
.qty-btn:active { transform: scale(0.95); }

.qty-value {
  width: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.quantity-unit {
  font-size: 14px;
  color: #94a3b8;
}

.product-3d-add-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #00c896 0%, #00a67d 50%, #059669 100%);
  background-size: 200% 100%;
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,200,150,0.3);
}

.product-3d-add-btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,200,150,0.4);
}

.product-3d-add-btn:active {
  transform: translateY(0) scale(0.98);
}

.add-btn-icon { font-size: 20px; }
.add-btn-price { 
  margin-right: 8px; 
  padding: 4px 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
}

/* 📸 2D HD Image Viewer */
.product-viewer-container {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 280px;
  background: #000;
  border-radius: 28px 28px 0 0;
  overflow: visible;
}

.product-2d-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.product-hd-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: default;
  background: #000;
  border-radius: 0;
}

.product-hd-img.zoomed {
  cursor: zoom-out;
}

.product-hd-fallback {
  font-size: 72px;
  display: none;
}

.product-hd-img[src=""], 
.product-hd-img:not([src]),
.product-hd-img.hidden {
  display: none;
}

.product-hd-img[src=""]+.product-hd-fallback,
.product-hd-img:not([src])+.product-hd-fallback,
.product-hd-img.hidden+.product-hd-fallback {
  display: block;
}

/* 2D Controls - Bottom bar */
.product-2d-controls {
  position: absolute;
  bottom: 8px;
  left: 10px;
  display: flex;
  gap: 5px;
  z-index: 25;
}

.product-2d-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-2d-btn:active {
  transform: scale(0.9);
  background: #f0f0f0;
}

/* Switch to 3D Button */
.switch-to-3d-btn {
  position: absolute;
  bottom: 8px;
  right: 10px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(99,102,241,0.3);
  z-index: 25;
}

.switch-to-3d-btn:active {
  transform: scale(0.95);
  opacity: 0.9;
}

/* Zoom Indicator */
.zoom-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 30;
}

/* Touch Hint */
.touch-hint {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0.8;
  z-index: 20;
  animation: fadeHint 4s ease-in-out forwards;
}

@keyframes fadeHint {
  0%, 70% { opacity: 0.8; }
  100% { opacity: 0; pointer-events: none; }
}

.touch-hint span {
  font-size: 12px;
}

/* Switch to 2D Button */
.switch-to-2d-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.9);
  color: #333;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.2s;
  z-index: 60;
}

.switch-to-2d-btn:hover {
  background: white;
  transform: scale(1.05);
}

/* 🎮 WebGL Canvas */
#product-webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  border-radius: 0;
}

/* 🎛️ 3D Mode Toggle */
.product-3d-mode-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
  z-index: 60;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: 12px;
}

.mode-btn {
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.mode-btn:hover { color: white; background: rgba(255,255,255,0.1); }
.mode-btn.active { background: var(--primary); color: white; }

/* Categories horizontal scroll */
.categories-section {
  padding: 16px 0;
  background: white;
  border-bottom: 1px solid var(--border);
}

.categories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.category-card:hover {
  transform: scale(1.05);
}

.category-card.active .category-icon {
  background: var(--primary);
  color: white;
}

.category-icon {
  width: 70px;
  height: 70px;
  background: #f5f5f5;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 8px;
  transition: all 0.2s;
}

.category-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Products grid */
.products-section {
  padding: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* 🏷️ Product badges (discount, new, popular) */
.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  z-index: 2;
}
.product-badge.sale { background: #ef4444; }
.product-badge.new { background: #8b5cf6; }
.product-badge.popular { background: #f59e0b; }
.product-badge.low-stock { background: #64748b; }

.product-image {
  height: 120px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

/* 📷 Real product image support */
.product-image.has-image {
  background-size: cover;
  background-position: center;
}
.product-image.has-image .product-icon {
  display: none;
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-description {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 📊 Product meta (unit, stock, rating) */
.product-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.product-meta-item {
  display: flex;
  align-items: center;
  gap: 2px;
}
.product-rating {
  color: #f59e0b;
}

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

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}
/* 💰 Original price for discounts */
.product-price-original {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: 4px;
}

.add-btn {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart bar — premium Wolt-beating design */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  border-radius: 28px 28px 0 0;
}

.cart-bar.visible {
  transform: translateY(0);
}
.food-mode .cart-bar {
  background: linear-gradient(135deg, #00c896 0%, #00a67d 100%);
  border-radius: 16px;
  margin: 0 12px 8px;
  left: 0; right: 0;
  padding: 14px 16px;
  box-shadow: 0 6px 24px rgba(0,200,150,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.food-mode .cart-bar:active {
  transform: scale(0.98);
}
.food-mode .cart-bar .checkout-btn {
  background: white;
  color: #00a67d;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 15px;
}
.food-mode .cart-bar .cart-total {
  font-size: 17px;
}
.food-mode .cart-bar .cart-count {
  background: rgba(255,255,255,0.25);
  font-weight: 700;
  min-width: 30px;
  height: 30px;
  font-size: 14px;
}

.cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-count {
  background: rgba(255,255,255,0.2);
  color: white;
  min-width: 28px;
  height: 28px;
  border-radius: 14px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

.cart-total {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.checkout-btn {
  background: white;
  color: var(--primary-dark);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Cart Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: white;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
}

/* Cart items */
.cart-items {
  padding: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  background: #f5f5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--text-light);
  font-size: 14px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.qty-value {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* Order summary */
.order-summary {
  padding: 16px;
  background: #f9f9f9;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.summary-row.discount {
  color: var(--primary-dark);
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* Checkout button */
.checkout-container {
  padding: 16px;
  background: white;
}

.full-checkout-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.full-checkout-btn:disabled {
  background: #ccc;
}

/* Quick Load Panel */
.quick-load-panel {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
  border: 2px solid #ff9800;
}

.quick-load-message {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #e65100;
  margin-bottom: 12px;
}

.quick-load-message span {
  font-size: 18px;
  color: #d84315;
}

.quick-load-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.quick-load-btn {
  padding: 10px 8px;
  background: white;
  border: 2px solid #ff9800;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #e65100;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-load-btn:active {
  transform: scale(0.95);
}

.quick-load-btn.suggested {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  border-color: #e65100;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quick-load-btn.suggested small {
  font-size: 9px;
  opacity: 0.9;
}

.quick-load-apple {
  width: 100%;
  padding: 14px;
  background: black;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-load-apple:active {
  opacity: 0.8;
}

.quick-load-full-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* 💳 Load Credit Modal - Full Transparency */
.load-credit-modal-content {
  max-height: 95vh;
  overflow-y: auto;
  padding: 16px;
}

/* Balances Overview */
.lcm-balances {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.lcm-balance-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f5f5f5;
}

.lcm-balance-card.main { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); }
.lcm-balance-card.store { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); }

.lcm-icon { font-size: 24px; }
.lcm-info { flex: 1; }
.lcm-label { font-size: 11px; color: #666; }
.lcm-value { font-size: 18px; font-weight: 700; color: #333; }

/* Purchase Summary */
.lcm-purchase-summary {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.lcm-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.lcm-row.subtotal { color: #666; }
.lcm-row.discount { 
  color: #388e3c; 
  font-weight: 600;
  background: rgba(76, 175, 80, 0.1);
  margin: 4px -14px;
  padding: 8px 14px;
}
.lcm-row.total {
  font-size: 16px;
  padding-top: 8px;
}
.lcm-row.total strong { color: #333; }

.lcm-divider {
  border-top: 1px dashed #ddd;
  margin: 8px 0;
}

.lcm-row.available { color: #1976d2; }
.lcm-row.missing { 
  color: #e65100; 
  background: #fff3e0;
  margin: 8px -14px -14px;
  padding: 12px 14px;
  border-radius: 0 0 10px 10px;
}
.lcm-row.missing strong { font-size: 16px; }

/* Load Section */
.lcm-load-section {
  margin-bottom: 16px;
}

.lcm-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.lcm-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.lca-btn {
  padding: 12px 4px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.lca-btn:active, .lca-btn.selected {
  border-color: var(--primary);
  background: #e8f5e9;
  color: var(--primary);
}

.lca-btn.suggested {
  background: linear-gradient(135deg, var(--primary) 0%, #2e7d32 100%);
  color: white;
  border-color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lca-btn.suggested small {
  font-size: 9px;
  opacity: 0.9;
}

.lcm-custom-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
}

.lcm-custom-input:focus {
  border-color: var(--primary);
  outline: none;
}

/* Preview */
.lcm-preview {
  background: #e8f5e9;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.lcm-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: #388e3c;
  margin-bottom: 8px;
}

.lcm-preview-item {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

/* Payment Options */
.lcm-payment-options {
  margin-bottom: 12px;
}

.lcm-pay-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  text-align: right;
}

.lcm-pay-option:hover, .lcm-pay-option:active {
  border-color: var(--primary);
  background: #f9fff9;
}

.lcm-pay-option.apple {
  background: #000;
  border-color: #000;
  color: white;
}

.lcm-pay-option.apple:hover {
  background: #222;
}

.lcm-pay-option.apple .lcm-pay-desc { color: #aaa; }

.lcm-pay-icon { font-size: 24px; min-width: 32px; text-align: center; }
.lcm-pay-info { flex: 1; }
.lcm-pay-title { font-size: 15px; font-weight: 600; }
.lcm-pay-desc { font-size: 12px; color: #666; }
.lcm-pay-arrow { font-size: 18px; color: #999; }

.lcm-pay-option.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.lcm-secure {
  text-align: center;
  color: #999;
  font-size: 11px;
}

/* 🌍 Delta Worlds Badge */
.delta-worlds-badge {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0A9B5C 0%, #22c55e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(10, 155, 92, 0.4);
  z-index: 1001;
  transition: all 0.3s ease;
}
.delta-worlds-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(10, 155, 92, 0.6);
}
.delta-worlds-badge .delta-icon {
  font-size: 22px;
  font-weight: 900;
  color: white;
  text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* Credit balance badge */
.credit-badge {
  position: fixed;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 🧠 ΔAI Magic Badge - Same style as credit badge */
.ai-magic-badge {
  position: fixed;
  top: 16px;
  right: 66px; /* Next to Delta badge */
  background: linear-gradient(135deg, rgba(139,92,246,0.9) 0%, rgba(236,72,153,0.9) 100%);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(139,92,246,0.3);
  transition: all 0.3s ease;
  font-size: 13px;
}
.ai-magic-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(139,92,246,0.5);
}
.ai-magic-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* 🎛️ ΔAI Magic Panel */
.ai-panel-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 300;
  backdrop-filter: blur(4px);
}
.ai-panel-overlay.active { display: block; }

.ai-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  max-width: 380px;
  height: 100%;
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  z-index: 301;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  color: white;
}
.ai-panel-overlay.active .ai-panel { right: 0; }

.ai-panel-header {
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.3) 0%, rgba(236,72,153,0.3) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-panel-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-panel-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.ai-section {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ai-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

/* Feature Cards */
.ai-feature-card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.ai-feature-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(139,92,246,0.5);
}
.ai-feature-card.active {
  background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(236,72,153,0.2) 100%);
  border-color: rgba(139,92,246,0.8);
}
.ai-feature-icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.ai-feature-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.ai-feature-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.ai-feature-badge {
  display: inline-block;
  background: rgba(74,222,128,0.2);
  color: #4ade80;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 6px;
}

/* Live Stats */
.ai-live-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ai-stat-card {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.ai-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #a78bfa;
}
.ai-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* 🚀 Quick Actions */
.ai-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ai-action-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ai-action-btn:hover {
  background: rgba(139,92,246,0.3);
  border-color: rgba(139,92,246,0.5);
  transform: scale(1.05);
}
.ai-action-icon { font-size: 20px; }
.ai-action-btn span:last-child { font-size: 11px; font-weight: 500; }

/* 📊 Live Activity Bar */
.ai-activity-bar {
  display: flex;
  justify-content: space-around;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px;
}
.ai-activity-item {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}
.ai-activity-dot.live {
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 8px #4ade80;
}

/* 💡 AI Insight Card */
.ai-insight-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(236,72,153,0.15) 100%);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 16px;
  padding: 16px;
}
.ai-insight-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ai-insight-icon { font-size: 20px; }
.ai-insight-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a78bfa;
  font-weight: 600;
}
.ai-insight-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}
.ai-insight-action {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s;
}
.ai-insight-action:hover { transform: scale(1.02); }

/* 🔥 Trending Products */
.ai-trending {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.ai-trending::-webkit-scrollbar { display: none; }
.ai-trend-item {
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px;
  width: 120px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.ai-trend-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.ai-trend-icon { font-size: 28px; margin-bottom: 6px; }
.ai-trend-name {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.ai-trend-price {
  font-size: 13px;
  font-weight: 700;
  color: #4ade80;
}
.ai-trend-badge {
  font-size: 9px;
  background: rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

/* 🎁 Rewards Card */
.ai-rewards-card {
  background: linear-gradient(135deg, rgba(251,191,36,0.15) 0%, rgba(245,158,11,0.15) 100%);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 16px;
  padding: 16px;
}
.ai-rewards-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.ai-rewards-balance {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.ai-rewards-value {
  font-size: 32px;
  font-weight: 800;
  color: #fbbf24;
}
.ai-rewards-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.ai-rewards-progress {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ai-rewards-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 3px;
  transition: width 0.5s;
}
.ai-rewards-next {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

/* ⚡ Flash Deal Card */
.ai-flash-card {
  background: linear-gradient(135deg, rgba(239,68,68,0.2) 0%, rgba(220,38,38,0.2) 100%);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ai-flash-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: flash-shine 3s infinite;
}
@keyframes flash-shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}
.ai-flash-timer {
  font-size: 28px;
  font-weight: 800;
  color: #fca5a5;
  font-family: monospace;
  margin-bottom: 8px;
}
.ai-flash-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.ai-flash-product {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-flash-img {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.ai-flash-info { flex: 1; text-align: right; }
.ai-flash-name { font-size: 12px; margin-bottom: 4px; }
.ai-flash-prices { display: flex; gap: 8px; align-items: center; }
.ai-flash-old { font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: line-through; }
.ai-flash-new { font-size: 16px; font-weight: 700; color: #4ade80; }

/* 🏷️ Filter Chips */
.ai-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-filter-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 8px 14px;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.ai-filter-chip:hover {
  background: rgba(139,92,246,0.3);
  border-color: rgba(139,92,246,0.5);
}
.ai-filter-chip.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-color: transparent;
}

/* 👁️ Recent Views */
.ai-recent {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ai-recent::-webkit-scrollbar { display: none; }
.ai-recent-item {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
}
.ai-recent-item:hover { background: rgba(255,255,255,0.1); }

/* 🎯 Recommendations Carousel */
.ai-recommendations {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.ai-recommendations::-webkit-scrollbar { display: none; }
.ai-rec-card {
  flex-shrink: 0;
  width: 160px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}
.ai-rec-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.5);
}
.ai-rec-image {
  height: 100px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
}
.ai-rec-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-rec-info {
  padding: 12px;
}
.ai-rec-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255,255,255,0.95);
}
.ai-rec-price {
  font-size: 15px;
  font-weight: 700;
  color: #4ade80;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

/* Success overlay */
.success-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,200,150,0.95);
  z-index: 300;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
}

.success-overlay.active {
  display: flex;
}

.success-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: bounceIn 0.5s ease;
}

.success-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-order-id {
  font-size: 20px;
  opacity: 0.9;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f0f0f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Spacing for cart bar */
.content {
  padding-bottom: 100px;
}

/* ═══════════════════════════════════════════════════════════════
   WOLT FLOW — Modifiers, Tip, Coupon, Address, Cost Breakdown
   ═══════════════════════════════════════════════════════════════ */

/* Product Modifiers / Addons */
.modifiers-section { margin-bottom: 16px; }
.modifiers-title {
  font-size: 15px; font-weight: 700; color: #334155;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.modifier-group { margin-bottom: 14px; }
.modifier-group-label {
  font-size: 13px; font-weight: 600; color: #64748b;
  margin-bottom: 8px; display: flex; justify-content: space-between;
}
.modifier-group-label .required-tag {
  font-size: 10px; background: #fee2e2; color: #dc2626;
  padding: 2px 8px; border-radius: 10px; font-weight: 700;
}
.modifier-group-label .optional-tag {
  font-size: 10px; background: #f0fdf4; color: #16a34a;
  padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.modifier-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; margin-bottom: 6px; background: #f8fafc;
  border-radius: 10px; cursor: pointer; transition: all 0.2s;
  border: 2px solid transparent;
}
.modifier-option:hover { background: #f0fdf4; }
.modifier-option.selected {
  background: #ecfdf5; border-color: var(--primary);
}
.modifier-option-info { display: flex; align-items: center; gap: 10px; }
.modifier-checkbox {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid #d1d5db; display: flex; align-items: center;
  justify-content: center; transition: all 0.2s; flex-shrink: 0;
}
.modifier-option.selected .modifier-checkbox {
  background: var(--primary); border-color: var(--primary); color: white;
}
.modifier-name { font-size: 14px; font-weight: 500; }
.modifier-price { font-size: 13px; font-weight: 600; color: var(--primary-dark); }
.special-notes-input {
  width: 100%; padding: 12px; border: 2px solid #e5e7eb;
  border-radius: 10px; font-size: 14px; resize: none; height: 60px;
  text-align: right; font-family: inherit; transition: border-color 0.2s;
}
.special-notes-input:focus { border-color: var(--primary); outline: none; }
.allergy-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.allergy-chip {
  padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
  cursor: pointer; transition: all 0.2s;
}
.allergy-chip.selected { background: #f87171; color: white; border-color: #ef4444; }

/* Full Delivery Address */
.delivery-section {
  padding: 16px; border-bottom: 1px solid #f0f0f0;
}
.delivery-section-title {
  font-size: 15px; font-weight: 700; color: #1e293b;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.delivery-toggle {
  display: flex; gap: 8px; margin-bottom: 14px; background: #f1f5f9;
  border-radius: 12px; padding: 4px;
}
.delivery-toggle-btn {
  flex: 1; padding: 10px; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: transparent; color: #64748b; transition: all 0.2s;
}
.delivery-toggle-btn.active {
  background: white; color: var(--primary); box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.address-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.address-field { position: relative; }
.address-field.full { grid-column: 1 / -1; }
.address-field label {
  display: block; font-size: 11px; font-weight: 600;
  color: #64748b; margin-bottom: 4px;
}
.address-field input, .address-field select {
  width: 100%; padding: 10px 12px; border: 2px solid #e5e7eb;
  border-radius: 10px; font-size: 14px; text-align: right;
  font-family: inherit; transition: border-color 0.2s; box-sizing: border-box;
}
.address-field input:focus, .address-field select:focus {
  border-color: var(--primary); outline: none;
}
.address-map-container {
  width: 100%; height: 160px; border-radius: 12px; overflow: hidden;
  margin-top: 10px; border: 2px solid #e5e7eb; position: relative;
}
.address-map-container #delivery-map { width: 100%; height: 100%; }
.map-pin-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%);
  font-size: 32px; z-index: 999; pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Delivery Time Selection */
.delivery-time-section { margin-top: 12px; }
.time-options { display: flex; gap: 8px; }
.time-option {
  flex: 1; padding: 10px; border: 2px solid #e5e7eb; border-radius: 10px;
  text-align: center; cursor: pointer; transition: all 0.2s;
  background: white;
}
.time-option.selected { border-color: var(--primary); background: #f0fdf4; }
.time-option-icon { font-size: 20px; margin-bottom: 4px; }
.time-option-label { font-size: 12px; font-weight: 600; color: #334155; }
.time-option-desc { font-size: 10px; color: #94a3b8; }

/* Tip Selection */
.tip-section {
  padding: 16px; border-bottom: 1px solid #f0f0f0;
}
.tip-title {
  font-size: 14px; font-weight: 600; color: #334155;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.tip-options { display: flex; gap: 8px; }
.tip-btn {
  flex: 1; padding: 10px 8px; border: 2px solid #e5e7eb; border-radius: 10px;
  background: white; cursor: pointer; text-align: center; transition: all 0.2s;
  font-size: 14px; font-weight: 600; color: #334155;
}
.tip-btn.selected { border-color: var(--primary); background: #f0fdf4; color: var(--primary); }
.tip-btn:active { transform: scale(0.95); }
.tip-btn small { display: block; font-size: 10px; color: #94a3b8; font-weight: 400; }
.tip-custom {
  width: 100%; margin-top: 8px; padding: 10px; border: 2px solid #e5e7eb;
  border-radius: 10px; font-size: 14px; text-align: center; display: none;
}
.tip-custom:focus { border-color: var(--primary); outline: none; }

/* Coupon Code */
.coupon-section {
  padding: 12px 16px; border-bottom: 1px solid #f0f0f0;
}
.coupon-row {
  display: flex; gap: 8px; align-items: center;
}
.coupon-input {
  flex: 1; padding: 10px 14px; border: 2px solid #e5e7eb;
  border-radius: 10px; font-size: 14px; text-align: right;
  font-family: inherit; letter-spacing: 1px; text-transform: uppercase;
}
.coupon-input:focus { border-color: var(--primary); outline: none; }
.coupon-apply-btn {
  padding: 10px 16px; background: var(--primary); color: white;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.coupon-apply-btn:disabled { background: #d1d5db; }
.coupon-result {
  font-size: 12px; margin-top: 6px; padding: 6px 10px;
  border-radius: 8px; display: none;
}
.coupon-result.success { display: block; background: #f0fdf4; color: #16a34a; }
.coupon-result.error { display: block; background: #fef2f2; color: #dc2626; }

/* Enhanced Cost Breakdown */
.cost-breakdown { padding: 16px; background: #f9fafb; }
.cost-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 14px; color: #475569;
}
.cost-row.subtotal { font-weight: 500; }
.cost-row.discount { color: #16a34a; }
.cost-row.fee { font-size: 13px; color: #94a3b8; }
.cost-row .fee-info {
  font-size: 11px; color: #94a3b8; cursor: pointer;
  border-bottom: 1px dashed #94a3b8;
}
.cost-divider { border-top: 1px dashed #e5e7eb; margin: 8px 0; }
.cost-row.total {
  font-size: 18px; font-weight: 800; color: #1e293b;
  padding-top: 10px;
}
.cost-row.savings {
  font-size: 12px; color: #16a34a; font-weight: 600;
  background: #f0fdf4; margin: 6px -16px -16px;
  padding: 10px 16px; border-radius: 0 0 12px 12px;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE — Tablet & Desktop layouts
   Mobile-first: base styles are for phones (<768px)
═══════════════════════════════════════════════════════════ */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  /* Center content */
  .store-header,
  .order-type-bar,
  .search-container,
  .categories-section,
  .restaurant-info-bar,
  .products-section {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .store-header {
    height: 260px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
  }

  /* Food mode: 2 columns on tablet */
  .food-mode .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }
  .food-mode .product-card {
    border-bottom: none;
    border: 1px solid var(--border-light);
  }

  /* Non-food: 3 columns */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* Modal max-width */
  .modal-content,
  .product-3d-modal {
    max-width: 560px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  /* Wider container */
  .store-header,
  .order-type-bar,
  .search-container,
  .categories-section,
  .restaurant-info-bar,
  .products-section {
    max-width: 1080px;
  }

  .store-header {
    height: 320px;
    border-radius: 0 0 24px 24px;
  }

  .store-name {
    font-size: 32px;
  }

  /* Food mode: 3 columns on desktop */
  .food-mode .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Non-food: 4 columns */
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Product images bigger */
  .food-mode .product-image {
  width: 50%;
  min-width: 50%;
  max-width: none;
  height: 150px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

  /* Cart bar centered */
  .cart-bar {
    max-width: 600px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
  }
  .cart-bar.visible {
    transform: translateX(-50%) translateY(0);
  }
  .food-mode .cart-bar {
    max-width: 580px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
  }
  .food-mode .cart-bar.visible {
    transform: translateX(-50%) translateY(0);
  }
}

/* Large desktop: 1440px+ */
@media (min-width: 1440px) {
  .store-header,
  .order-type-bar,
  .search-container,
  .categories-section,
  .restaurant-info-bar,
  .products-section {
    max-width: 1200px;
  }
}

/* ═══════════════════════════════════════════════════════════
   📲 SAFE AREA — iPhone notch & home indicator
═══════════════════════════════════════════════════════════ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .cart-bar {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .food-mode .cart-bar {
    margin-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .food-mode .product-bottom-bar {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* C1: Add button with quantity */
.food-mode .add-btn.has-qty {
  background: #009de0;
  color: white;
  font-size: 16px;
  font-weight: 700;
}
.food-mode .product-info {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding-bottom: 0;
}

/* C2: Modifier Hint */
.food-mode .product-modifier-hint {
  font-size: 13px;
  color: #009de0;
  background: #f0f9ff;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 8px;
  font-weight: 500;
}

.food-mode .product-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
