/* =========================================
   VTC Mart — Online Indian Departmental Store
   ========================================= */

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

:root {
  --primary: #0c831f;
  --primary-light: #e8f5e9;
  --primary-dark: #095e16;
  --accent: #f7c948;
  --accent-dark: #e5a800;
  --bg: #f7f7fa;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 100px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --header-h: 72px;
  --max-w: 1280px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========== TOP STRIP ========== */
.top-strip {
  background: linear-gradient(90deg, var(--primary) 0%, #16a34a 100%);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100vw;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
  max-width: 100vw;
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}

.header-left { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-center { flex: 1; max-width: 520px; }
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark { flex-shrink: 0; line-height: 0; }
.logo-svg { border-radius: 10px; filter: drop-shadow(0 2px 6px rgba(12,131,31,.25)); }
.logo-text-group { display: flex; flex-direction: column; }
.logo-text {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.logo-text strong { color: var(--primary); font-weight: 900; }
.logo-tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: .03em;
  line-height: 1;
}

/* Pickup Badge */
.pickup-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(12,131,31,.2);
  white-space: nowrap;
}
.pickup-badge svg { flex-shrink: 0; color: var(--primary); }

/* Search */
.search-box {
  position: relative;
  width: 100%;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  background: var(--bg);
  transition: all var(--transition);
  outline: none;
}
.search-box input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(12,131,31,.1);
}
.search-box input::placeholder { color: #9ca3af; }
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}
.search-results.show { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.search-result-item:hover { background: var(--primary-light); }
.search-result-item .sr-emoji { font-size: 28px; flex-shrink: 0; }
.search-result-item .sr-info { flex: 1; }
.search-result-item .sr-name { font-size: 14px; font-weight: 600; }
.search-result-item .sr-meta { font-size: 12px; color: var(--text-secondary); }
.search-result-item .sr-price { font-weight: 700; color: var(--primary); font-size: 14px; white-space: nowrap; }

/* Header buttons */
.header-btn, .cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}
.header-btn:hover { background: var(--bg); }
.cart-btn {
  background: var(--primary);
  color: #fff;
  position: relative;
}
.cart-btn:hover { background: var(--primary-dark); }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0c831f 0%, #16a34a 50%, #22c55e 100%);
  padding: 60px 24px 100px;
  overflow: hidden;
  max-width: 100vw;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-slide {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-content { flex: 1; color: #fff; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.3); }
  50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}
.hero-content h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-content .highlight {
  background: linear-gradient(90deg, var(--accent) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 17px;
  opacity: .88;
  max-width: 440px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-cta {
  padding: 16px 36px;
  background: var(--accent);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(247,201,72,.4);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(247,201,72,.5);
}
.hero-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 20px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: #fef3c7;
}

.hero-visual {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 320px;
}
.hero-card {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 24px 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: transform var(--transition);
  animation: float 3s ease-in-out infinite;
}
.hero-card small { font-size: 13px; font-weight: 500; opacity: .8; }
.hc-1 { animation-delay: 0s; }
.hc-2 { animation-delay: .5s; }
.hc-3 { animation-delay: 1s; }
.hc-4 { animation-delay: 1.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  line-height: 0;
  overflow: hidden;
}
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ========== PROMISES ========== */
.promises {
  padding: 0 24px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
  max-width: 100vw;
  overflow: hidden;
}
.promise-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.promise-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.promise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.promise-icon { font-size: 36px; margin-bottom: 12px; }
.promise-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.promise-card p { font-size: 13px; color: var(--text-secondary); }

/* ========== SECTION HEADER ========== */
.section-header {
  max-width: var(--max-w);
  margin: 0 auto 28px;
  padding: 0 24px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.section-header p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== CATEGORIES ========== */
.categories {
  padding: 60px 0 20px;
}
.category-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}
.cat-emoji {
  font-size: 42px;
  margin-bottom: 10px;
  display: block;
  transition: transform var(--transition);
}
.category-card:hover .cat-emoji { transform: scale(1.15); }
.cat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ========== DEALS ========== */
.deals { padding: 40px 0; }
.deals-banner-row {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.deals-banner {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  position: relative;
}
.deals-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.db-1 { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); }
.db-2 { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.db-3 { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.db-content { z-index: 1; }
.db-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.db-2 .db-tag { background: #d97706; }
.db-3 .db-tag { background: #2563eb; }
.deals-banner h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.deals-banner p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.db-cta {
  padding: 10px 20px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.db-cta:hover { opacity: .85; }
.db-emoji {
  font-size: 52px;
  flex-shrink: 0;
  opacity: .7;
  filter: grayscale(.1);
}

/* ========== FILTER PILLS ========== */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--white);
  transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== PRODUCTS ========== */
.products { padding: 40px 0 60px; }
.product-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.product-badge.bestseller { background: #f59e0b; color: var(--text); }
.product-badge.new { background: #8b5cf6; }
.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  font-size: 72px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.product-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
}
.product-info {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-weight {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-price {
  display: flex;
  flex-direction: column;
}
.price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.price-old {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}
.add-btn {
  padding: 10px 20px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1.5px solid var(--primary);
  transition: all var(--transition);
}
.add-btn:hover {
  background: var(--primary);
  color: #fff;
}
.qty-control {
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--primary);
}
.qty-btn {
  width: 34px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--primary-dark); }
.qty-value {
  width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
}

/* ========== CART SIDEBAR ========== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-xl);
}
.cart-sidebar.show { right: 0; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 20px; font-weight: 800; }
.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background var(--transition);
}
.cart-close:hover { background: var(--bg); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty {
  text-align: center;
  padding: 60px 20px;
}
.cart-empty-icon { font-size: 64px; margin-bottom: 16px; opacity: .5; }
.cart-empty h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cart-empty p { font-size: 14px; color: var(--text-secondary); }

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-emoji { font-size: 40px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.cart-item-weight { font-size: 12px; color: var(--text-secondary); }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--text); margin-top: 4px; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-remove {
  font-size: 12px;
  color: #ef4444;
  font-weight: 600;
  transition: opacity var(--transition);
}
.cart-item-remove:hover { opacity: .7; }

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  background: var(--bg);
}
.cart-summary { margin-bottom: 16px; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-secondary);
}
.cart-summary-row.discount { color: var(--primary); }
.cart-summary-row.total {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-top: 6px;
}
.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}
.checkout-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(12,131,31,.3);
}
.checkout-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* ========== MODALS ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: scale(.9) translateY(20px);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }
.modal-sm { max-width: 400px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-icon { font-size: 48px; margin-bottom: 16px; }
.modal h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

/* Store Info Modal */
.store-info-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.store-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.store-info-row svg { flex-shrink: 0; margin-top: 3px; }
.store-info-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fef9c3;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  border: 1px solid #fde68a;
}
.store-info-note svg { flex-shrink: 0; }

.input-group {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}
.input-group:focus-within { border-color: var(--primary); }
.input-prefix {
  padding: 14px 14px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
}
.input-group input {
  flex: 1;
  padding: 14px;
  border: none;
  font-size: 15px;
  outline: none;
}
.login-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--transition);
  margin-bottom: 12px;
}
.login-submit:hover { background: var(--primary-dark); }
.login-terms {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--text);
  color: #d1d5db;
  padding: 60px 24px 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo .logo-text { color: #fff; }
.footer-logo .logo-tagline { color: #9ca3af; }
.footer-logo .logo-svg { filter: drop-shadow(0 2px 6px rgba(12,131,31,.4)); }
.footer-col p { font-size: 14px; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #9ca3af; font-size: 14px; transition: color var(--transition); }
.footer-col ul a:hover { color: #fff; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { font-size: 22px; transition: transform var(--transition); }
.social-links a:hover { transform: scale(1.15); }
.app-badges { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.app-badge {
  padding: 12px 18px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.app-badge:hover { background: rgba(255,255,255,.2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: #6b7280;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  z-index: 400;
  opacity: 0;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  box-shadow: var(--shadow-xl);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp .5s ease forwards;
  opacity: 0;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 6px 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item svg { transition: transform var(--transition); }
.mobile-nav-item.active svg { transform: scale(1.1); }
.mobile-cart-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-visual { width: 260px; }
  .deals-banner-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-strip { font-size: 11px; padding: 6px 12px; white-space: normal; line-height: 1.4; }
  .header-inner { gap: 10px; padding: 0 16px; }
  .pickup-badge { display: none; }
  .header-btn span { display: none; }

  .mobile-nav { display: flex; }

  /* Hero */
  .hero { padding: 36px 16px 80px; }
  .hero-slide { flex-direction: column; text-align: center; gap: 24px; }
  .hero-tag { font-size: 14px; padding: 8px 16px; }
  .hero-content h1 { font-size: 30px; }
  .hero-content p { margin: 0 auto 20px; font-size: 16px; }
  .hero-visual { width: 100%; max-width: 280px; }
  .hero-card { padding: 18px 14px; font-size: 15px; }
  .hero-card small { font-size: 13px; }
  .hero-delivery-badge { font-size: 14px; padding: 10px 16px; margin-top: 14px; }
  .hero-cta { padding: 16px 32px; font-size: 16px; }

  /* Promises */
  .promises { margin-top: -20px; }
  .promise-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .promise-card { padding: 20px 16px; }
  .promise-icon { font-size: 32px; margin-bottom: 8px; }
  .promise-card h4 { font-size: 15px; }
  .promise-card p { font-size: 13px; }

  /* Categories */
  .categories { padding: 40px 0 16px; }
  .section-header { padding: 0 16px; margin-bottom: 20px; }
  .section-header h2 { font-size: 22px; }
  .section-header p { font-size: 14px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
  .category-card { padding: 16px 8px; border-radius: var(--radius); }
  .cat-emoji { font-size: 34px; margin-bottom: 6px; }
  .cat-name { font-size: 13px; }

  /* Deals */
  .deals { padding: 30px 0; }
  .deals-banner-row { padding: 0 16px; gap: 12px; }
  .deals-banner { padding: 22px 18px; border-radius: var(--radius); }
  .deals-banner h3 { font-size: 17px; }
  .deals-banner p { font-size: 14px; }
  .db-tag { font-size: 12px; }
  .db-cta { padding: 10px 18px; font-size: 14px; }
  .db-emoji { font-size: 42px; }

  /* Products */
  .products { padding: 30px 0 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
  .product-card { border-radius: var(--radius); }
  .product-img { height: 140px; font-size: 56px; }
  .product-info { padding: 12px 14px; }
  .product-brand { font-size: 11px; }
  .product-name { font-size: 14px; }
  .product-weight { font-size: 12px; margin-bottom: 10px; }
  .price-current { font-size: 17px; }
  .price-old { font-size: 13px; }
  .add-btn { padding: 10px 16px; font-size: 14px; min-height: 40px; border-radius: 10px; }
  .qty-btn { width: 34px; height: 36px; font-size: 17px; }
  .qty-value { width: 34px; font-size: 15px; }
  .product-badge { font-size: 10px; padding: 4px 9px; }

  /* Filters */
  .filter-pills { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 0 16px 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pill { flex-shrink: 0; font-size: 14px; padding: 9px 18px; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Footer */
  .footer { padding: 40px 16px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-col h4 { font-size: 17px; }
  .footer-col p { font-size: 15px; }
  .footer-col ul a { font-size: 15px; }
  .footer-col ul li { margin-bottom: 12px; }
  .footer-bottom { padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); font-size: 13px; }

  /* Modals */
  .modal { padding: 28px 20px; margin: 16px; border-radius: var(--radius); }
  .modal h3 { font-size: 22px; }
  .modal p { font-size: 15px; }
  .store-info-row { font-size: 15px; }
  .store-info-note { font-size: 14px; }
  .login-submit { font-size: 16px; padding: 16px; }
  .input-group input { font-size: 16px; }
  .input-prefix { font-size: 16px; }

  /* Toast */
  .toast {
    bottom: calc(70px + env(safe-area-inset-bottom));
    font-size: 14px;
    padding: 12px 20px;
    max-width: calc(100vw - 32px);
    white-space: normal;
    text-align: center;
  }

  /* Cart sidebar */
  .cart-sidebar { width: 100vw; }
  .cart-header { padding: 18px; }
  .cart-header h3 { font-size: 22px; }
  .cart-body { padding: 14px 18px; }
  .cart-item-emoji { font-size: 42px; }
  .cart-item-name { font-size: 15px; }
  .cart-item-weight { font-size: 13px; }
  .cart-item-price { font-size: 16px; }
  .cart-item-remove { font-size: 13px; }
  .cart-summary-row { font-size: 15px; }
  .cart-summary-row.total { font-size: 18px; }
  .cart-footer { padding: 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .checkout-btn { padding: 16px; font-size: 17px; border-radius: var(--radius); }
  .checkout-note { font-size: 13px; }

  /* Search */
  .search-box input { font-size: 15px; padding: 12px 16px 12px 42px; }
  .search-result-item { padding: 12px 16px; }
  .search-result-item .sr-name { font-size: 15px; }
  .search-result-item .sr-meta { font-size: 13px; }
  .search-result-item .sr-price { font-size: 15px; }
  .search-result-item .sr-emoji { font-size: 32px; }

  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
  .header-inner { height: 56px; }
  .logo-svg { width: 32px !important; height: 32px !important; }
  .logo-text { font-size: 17px; }
  .logo-tagline { font-size: 9px; }
  .cart-btn { padding: 8px 12px; }
  .cart-btn span { display: none; }
  .cart-badge { top: -5px; right: -5px; }

  .hero-content h1 { font-size: 26px; }
  .hero-tag { font-size: 13px; }
  .hero-content p { font-size: 15px; }
  .hero-cta { padding: 14px 28px; font-size: 15px; }
  .hero-delivery-badge { font-size: 13px; }

  .product-grid { gap: 10px; }
  .product-img { height: 120px; font-size: 48px; }
  .product-info { padding: 10px 12px; }
  .product-name { font-size: 13px; }
  .price-current { font-size: 16px; }
  .add-btn { padding: 9px 14px; font-size: 13px; }
  .qty-btn { width: 30px; height: 32px; font-size: 16px; }
  .qty-value { width: 30px; font-size: 14px; }

  .cat-emoji { font-size: 30px; }
  .cat-name { font-size: 12px; }

  .deals-banner h3 { font-size: 15px; }
  .deals-banner p { font-size: 13px; }
  .db-cta { font-size: 13px; }
}

@media (max-width: 360px) {
  .hero-content h1 { font-size: 24px; }
  .product-img { height: 100px; font-size: 42px; }
  .product-name { font-size: 12px; }
  .price-current { font-size: 15px; }
  .cat-name { font-size: 11px; }
}
