/* ============================================================
   NEXUS COMMERCE - Main Stylesheet
   Mobile-first, App-like Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

:root {
  --primary: #FF6B35;
  --primary-dark: #E55A24;
  --primary-light: #FFF0EB;
  --secondary: #1A1A2E;
  --accent: #FFD700;
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --font: 'Poppins', sans-serif;
  --header-h: 60px;
  --nav-h: 60px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: var(--nav-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 6px 16px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--secondary);
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--primary); }
.logo img { height: 36px; width: auto; }

.header-search {
  flex: 1;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 9px 40px 9px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 25px;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
  background: var(--gray-50);
}
.header-search input:focus {
  border-color: var(--primary);
  background: var(--white);
}
.header-search .search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 0.9rem;
}

.header-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--gray-700);
  font-size: 1.1rem;
  transition: var(--transition);
}
.header-icon:hover { background: var(--primary-light); color: var(--primary); }
.header-icon .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* ============================================================
   BOTTOM NAVIGATION (Mobile App Style)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  height: var(--nav-h);
  display: flex;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--gray-400);
  font-size: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}
.bottom-nav a.active, .bottom-nav a:hover { color: var(--primary); }
.bottom-nav a i { font-size: 1.2rem; }
.bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}
.bottom-nav .cart-btn {
  background: var(--primary);
  color: var(--white) !important;
  margin: 8px;
  border-radius: 14px;
  padding: 0 10px;
  min-width: 60px;
}
.bottom-nav .cart-btn.active::before { display: none; }
.bottom-nav .cart-btn:hover { background: var(--primary-dark); }
.bottom-nav .badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  background: var(--danger);
  color: white;
  font-size: 0.55rem;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.hero-slide {
  display: none;
  position: relative;
  min-height: 200px;
  background: var(--secondary);
  padding: 30px 20px;
  overflow: hidden;
}
.hero-slide.active { display: flex; align-items: center; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 65%;
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.hero-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}
.hero-subtitle { font-size: 0.8rem; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 25px;
  transition: var(--transition);
}
.hero-image {
  position: absolute;
  right: -20px;
  bottom: 0;
  height: 90%;
  object-fit: contain;
}
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}
.slider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active { background: var(--white); width: 18px; border-radius: 3px; }

/* ============================================================
   QUICK CATEGORIES
   ============================================================ */
.quick-cats {
  padding: 16px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.quick-cats::-webkit-scrollbar { display: none; }
.quick-cats-inner {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  width: max-content;
}
.quick-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--gray-700);
  flex-shrink: 0;
}
.quick-cat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.quick-cat:hover .quick-cat-icon, .quick-cat.active .quick-cat-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}
.quick-cat span { font-size: 0.65rem; font-weight: 600; text-align: center; max-width: 60px; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin: 20px 0 12px;
}
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.section-more {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px;
}
.products-grid.list-view {
  grid-template-columns: 1fr;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.badge-label {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-sale { background: var(--danger); color: white; }
.badge-new { background: var(--success); color: white; }
.badge-hot { background: var(--warning); color: white; }
.badge-oos { background: var(--gray-400); color: white; }

.product-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: var(--transition);
  z-index: 1;
}
.product-wishlist-btn.active, .product-wishlist-btn:hover { color: var(--danger); }

.product-card-info {
  padding: 10px;
}
.product-brand {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.product-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.stars { color: var(--warning); font-size: 0.65rem; }
.rating-count { font-size: 0.6rem; color: var(--gray-400); }

.product-price {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.price-current {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
}
.price-original {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.price-discount {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--success);
}

.product-card-actions {
  padding: 0 10px 10px;
}
.btn-add-cart {
  width: 100%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition);
}
.btn-add-cart:hover { background: var(--primary); color: var(--white); }
.btn-add-cart.added { background: var(--success); color: var(--white); }
.btn-add-cart:disabled { background: var(--gray-100); color: var(--gray-400); cursor: not-allowed; }

/* ============================================================
   HORIZONTAL SCROLL PRODUCTS
   ============================================================ */
.products-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px;
}
.products-scroll::-webkit-scrollbar { display: none; }
.products-scroll-inner {
  display: flex;
  gap: 10px;
  width: max-content;
}
.products-scroll-inner .product-card {
  width: 150px;
  flex-shrink: 0;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-200);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ============================================================
   BOTTOM SHEET (Filter/Sort Modal)
   ============================================================ */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.bottom-sheet-overlay.open { opacity: 1; pointer-events: all; }
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  z-index: 2001;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 80px;
}
.bottom-sheet.open { transform: translateY(0); }
.bottom-sheet-handle {
  width: 40px; height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 12px auto 0;
}
.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.bottom-sheet-header h3 { font-size: 1rem; font-weight: 700; }
.bottom-sheet-close { font-size: 1.2rem; color: var(--gray-400); }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-gallery {
  position: relative;
  background: var(--white);
}
.main-image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-image { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.image-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.image-thumbs::-webkit-scrollbar { display: none; }
.thumb-img {
  width: 60px; height: 60px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-100);
}
.thumb-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.thumb-img.active { border-color: var(--primary); }

.product-detail-info {
  background: var(--white);
  padding: 16px;
  margin-top: 8px;
}
.product-detail-name {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-detail-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.price-big { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }

.variants-section { margin: 16px 0; }
.variant-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 6px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-700);
}
.variant-btn:hover, .variant-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.variant-btn.out-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.color-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.color-btn.active { outline-color: var(--primary); }

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: white; }
.qty-value { width: 36px; text-align: center; font-weight: 700; font-size: 0.9rem; }

.detail-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  position: sticky;
  bottom: 70px;
  background: var(--white);
  padding: 12px 0 0;
  z-index: 10;
}
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}
.btn-filled { background: var(--primary); color: white; }
.btn-filled:hover { background: var(--primary-dark); }
.btn-outlined { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outlined:hover { background: var(--primary-light); }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.85rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.cart-item-variant { font-size: 0.7rem; color: var(--gray-500); margin-bottom: 6px; }
.cart-item-price { font-size: 1rem; font-weight: 700; color: var(--gray-900); }

/* ============================================================
   ORDER SUMMARY CARD
   ============================================================ */
.order-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px;
  box-shadow: var(--shadow);
}
.order-summary h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.summary-row.total {
  border-top: 2px solid var(--gray-100);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.summary-row .amount { font-weight: 600; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-steps {
  display: flex;
  padding: 16px;
  gap: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.checkout-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.checkout-step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.checkout-step:last-child::after { display: none; }
.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.checkout-step.active .step-circle { background: var(--primary); color: white; }
.checkout-step.done .step-circle { background: var(--success); color: white; }
.step-label { font-size: 0.6rem; font-weight: 600; color: var(--gray-500); text-align: center; }
.checkout-step.active .step-label { color: var(--primary); }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; display: block; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
  color: var(--gray-800);
  background: var(--white);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.1); }
.form-control.error { border-color: var(--danger); }
.form-error { font-size: 0.7rem; color: var(--danger); margin-top: 3px; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 32px);
}
.toast {
  background: var(--white);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  animation: slideIn 0.3s ease;
  min-width: 200px;
  border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-100);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--white);
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; padding: 16px; }
.tab-panel.active { display: block; }

/* ============================================================
   RATING STARS
   ============================================================ */
.star-rating { display: flex; gap: 2px; }
.star { font-size: 1.4rem; color: var(--gray-200); cursor: pointer; transition: color 0.15s; }
.star.active, .star:hover { color: var(--warning); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.page-content { max-width: 600px; margin: 0 auto; }
.section-pad { padding: 16px; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.bg-white { background: var(--white); }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.72rem; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-gray { color: var(--gray-500); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

/* Loading Spinner */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none;
}
.loading-overlay.show { display: flex; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 3rem; margin-bottom: 12px; color: var(--gray-300); }
.empty-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.empty-text { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 20px; }

/* ============================================================
   DESKTOP OVERRIDES (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .hero-slide { min-height: 350px; }
  .hero-title { font-size: 2.2rem; }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 24px; }
  .products-scroll-inner .product-card { width: 200px; }
  .page-content { max-width: 1200px; }
  .header-inner { padding: 0 24px; }
  
  /* Desktop Nav */
  .desktop-nav {
    display: flex;
    background: var(--secondary);
    padding: 0 24px;
  }
  .desktop-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 10px 16px;
    transition: var(--transition);
    white-space: nowrap;
  }
  .desktop-nav a:hover { color: white; background: rgba(255,255,255,0.1); }
  
  .quick-cats-inner { padding: 0 24px; }
  .section-header { padding: 0 24px; }
}

@media (max-width: 767px) {
  .desktop-nav { display: none !important; }
}

/* ============================================================
   PULSE ANIMATION (Skeleton Loading)
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   COUPON INPUT
   ============================================================ */
.coupon-row {
  display: flex;
  gap: 8px;
}
.coupon-row input {
  flex: 1;
  padding: 10px 14px;
  border: 2px dashed var(--primary);
  border-radius: 10px;
  font-size: 0.85rem;
  outline: none;
  text-transform: uppercase;
  background: var(--primary-light);
}
.coupon-btn {
  padding: 10px 16px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 30px 16px 16px;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
  }
}
.footer-brand-name { color: white; font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.footer-brand-name span { color: var(--primary); }
.footer-about { font-size: 0.82rem; line-height: 1.6; margin-bottom: 16px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); }

.footer-col-title {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  transition: var(--transition);
  text-decoration: none;
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  margin-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* Payment badges */
.payment-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.payment-badge {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Mobile accordion for footer */
@media (max-width: 767px) {
  .footer-col-mobile { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-col-title { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    padding-bottom: 12px;
  }
  .footer-col-title::after { content: '+'; font-size: 1.2rem; }
  .footer-col-title.open::after { content: '−'; }
  .footer-links { display: none; padding-bottom: 12px; }
  .footer-links.open { display: block; }
  .footer-brand-area { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
}
