/* ==========================================================================
   GrossHub Modern Design System & Storefront Stylesheet
   Emerald Green & Warm Amber Palette • Glassmorphism • Micro-interactions
   ========================================================================== */

:root {
  /* Brand Color Tokens */
  --primary-950: #022c22;
  --primary-900: #064e3b;
  --primary-800: #065f46;
  --primary-700: #047857;
  --primary-600: #059669;
  --primary-500: #10b981;
  --primary-400: #34d399;
  --primary-100: #d1fae5;
  --primary-50:  #ecfdf5;

  --accent-600:  #d97706;
  --accent-500:  #f59e0b;
  --accent-400:  #fbbf24;
  --accent-100:  #fef3c7;
  --accent-50:   #fffbeb;

  --whatsapp:      #25D366;
  --whatsapp-dark: #128C7E;

  /* Neutrals & Slate */
  --slate-900:   #0f172a;
  --slate-800:   #1e293b;
  --slate-700:   #334155;
  --slate-600:   #475569;
  --slate-500:   #64748b;
  --slate-400:   #94a3b8;
  --slate-300:   #cbd5e1;
  --slate-200:   #e2e8f0;
  --slate-100:   #f1f5f9;
  --slate-50:    #f8fafc;
  --white:       #ffffff;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-brand: 0 12px 30px -4px rgba(5, 150, 105, 0.28);
  --shadow-amber: 0 10px 25px -4px rgba(245, 158, 11, 0.32);

  /* Radiuses */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: #f7faf8;
  color: var(--slate-800);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* 1. Announcement Ticker */
.top-announcement-bar {
  background: linear-gradient(90deg, var(--primary-900), var(--primary-800));
  color: var(--primary-100);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.top-announcement-bar strong {
  color: #ffffff;
}

.top-bar-links {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
}

.top-bar-links a {
  color: var(--accent-400);
  font-weight: 600;
}

.top-bar-links a:hover {
  text-decoration: underline;
}

/* 2. Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-normal);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.brand-info h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-info span {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* Live Store Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 4px;
}

.status-pill.open {
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
}

.status-pill.open .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulseDot 2s infinite;
}

.status-pill.closed {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
}

.status-pill.closed .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--slate-400);
  font-size: 1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-full);
  background: var(--slate-50);
  color: var(--slate-800);
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-header-wa {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-header-wa:hover {
  background: var(--whatsapp-dark);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-track {
  background: var(--slate-100);
  color: var(--slate-700);
}

.btn-track:hover {
  background: var(--slate-200);
}

.btn-cart-trigger {
  background: var(--primary-600);
  color: var(--white);
  position: relative;
  box-shadow: var(--shadow-brand);
}

.btn-cart-trigger:hover {
  background: var(--primary-700);
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-500);
  color: var(--slate-900);
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 4px;
  margin-left: 2px;
}

/* 3. Hero Section */
.hero-section {
  max-width: 1280px;
  margin: 20px auto;
  padding: 0 20px;
}

.hero-banner-card {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 32px;
  box-shadow: 0 20px 40px -10px rgba(6, 78, 59, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-decor-circle {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--accent-400);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-title span {
  color: var(--accent-400);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--primary-100);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hf-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-50);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-hero-primary {
  background: var(--accent-500);
  color: var(--slate-900);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-amber);
  transition: var(--transition-fast);
}

.btn-hero-primary:hover {
  background: var(--accent-400);
  transform: translateY(-2px);
}

.btn-hero-wa {
  background: var(--whatsapp);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.btn-hero-wa:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-main-img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* 4. Category Filter Bar */
.category-section {
  max-width: 1280px;
  margin: 20px auto 10px;
  padding: 0 20px;
}

.category-pills-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-400) transparent;
}

.category-pills-bar::-webkit-scrollbar {
  height: 5px;
}

.category-pills-bar::-webkit-scrollbar-thumb {
  background: var(--primary-200);
  border-radius: 4px;
}

.cat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-700);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.cat-pill:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
  color: var(--primary-800);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}

.cat-pill.active .cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.cat-count {
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* 5. Main Content Area & Product Grid */
.main-content {
  max-width: 1280px;
  margin: 10px auto 80px;
  padding: 0 20px;
}

.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-title-group h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.catalog-title-group span {
  font-size: 0.85rem;
  color: var(--slate-500);
}

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

.sort-select {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
}

.product-card.out-of-stock {
  opacity: 0.65;
}

.card-visual {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-emoji {
  font-size: 4rem;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
  transition: transform 0.25s ease;
}

.product-card:hover .product-emoji {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-700);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc2626;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.card-unit {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 14px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
}

.original-price {
  font-size: 0.85rem;
  color: var(--slate-400);
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1.5px solid var(--primary-200);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.btn-add-cart.disabled {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--slate-400);
  cursor: not-allowed;
}

/* Inline Quantity Stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--primary-600);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 2px 4px;
  box-shadow: var(--shadow-sm);
}

.qty-stepper .btn-step {
  background: transparent;
  color: var(--white);
  width: 26px;
  height: 26px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}

.qty-stepper .btn-step:hover {
  background: rgba(255, 255, 255, 0.2);
}

.qty-stepper .qty-num {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
}

/* 6. Slide-out Cart Drawer */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.cart-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  z-index: 210;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.btn-drawer-close {
  background: var(--slate-100);
  color: var(--slate-600);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-drawer-close:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

/* Free Delivery Progress Meter in Drawer */
.free-delivery-meter {
  background: var(--primary-50);
  border-bottom: 1px solid var(--primary-100);
  padding: 12px 22px;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--primary-900);
  margin-bottom: 8px;
}

.progress-track {
  height: 8px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  border-radius: var(--radius-full);
  transition: width 0.35s ease;
}

/* Cart Items Container */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
}

.cart-drawer-empty {
  text-align: center;
  padding: 60px 20px;
}

.cde-icon {
  font-size: 4rem;
  margin-bottom: 14px;
}

.cart-drawer-empty h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.cart-drawer-empty p {
  color: var(--slate-500);
  margin-bottom: 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}

.cir-emoji {
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cir-details {
  flex: 1;
}

.cir-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-900);
  line-height: 1.2;
}

.cir-unit {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.cir-price {
  font-size: 0.88rem;
  margin-top: 4px;
}

.cir-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-item-remove {
  background: transparent;
  color: var(--slate-400);
  font-size: 0.9rem;
  padding: 4px;
  transition: color 0.15s;
}

.btn-item-remove:hover {
  color: #ef4444;
}

/* Drawer Footer */
.cart-drawer-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}

/* Coupon Box */
.coupon-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.coupon-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px dashed var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.coupon-input:focus {
  border-color: var(--primary-500);
}

.btn-apply-coupon {
  background: var(--slate-800);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
}

.applied-coupon-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--primary-800);
  margin-bottom: 14px;
}

.btn-remove-coupon {
  background: transparent;
  color: #ef4444;
  font-weight: 700;
}

/* Bill Breakdown */
.bill-summary-box {
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 6px;
}

.bill-row.text-success {
  color: var(--primary-700);
  font-weight: 600;
}

.bill-row.grand-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--slate-200);
  margin-bottom: 0;
}

/* Dual Checkout Buttons */
.drawer-action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-checkout-primary {
  width: 100%;
  background: var(--primary-600);
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: var(--shadow-brand);
  transition: var(--transition-fast);
}

.btn-checkout-primary:hover {
  background: var(--primary-700);
}

.btn-checkout-wa {
  width: 100%;
  background: var(--whatsapp);
  color: var(--white);
  padding: 12px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-checkout-wa:hover {
  background: var(--whatsapp-dark);
}

/* 7. Floating Bottom Cart Bar for Mobile */
.floating-cart-bar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--primary-900);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.floating-cart-bar.visible {
  transform: translateY(0);
}

.fcb-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fcb-badge {
  background: var(--accent-500);
  color: var(--slate-900);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.fcb-amount {
  font-weight: 800;
  font-size: 1.1rem;
}

.fcb-right {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-400);
}

/* 8. Modals (Checkout, Order Tracking, Customer Portal) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.btn-modal-close {
  background: var(--slate-100);
  color: var(--slate-600);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.btn-modal-close:hover {
  background: var(--slate-200);
}

.modal-body {
  padding: 24px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-800);
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Payment Method Selector Cards */
.payment-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.payment-option-card {
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-option-card:hover {
  border-color: var(--primary-400);
}

.payment-option-card.selected {
  border-color: var(--primary-600);
  background: var(--primary-50);
}

.poc-icon {
  font-size: 1.5rem;
}

.poc-info strong {
  display: block;
  font-size: 0.92rem;
}

.poc-info small {
  color: var(--slate-500);
  font-size: 0.78rem;
}

/* UPI QR Code Container */
.upi-qr-box {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-top: 14px;
}

.upi-qr-img {
  width: 170px;
  height: 170px;
  margin: 10px auto;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 8px;
  border: 1px solid var(--slate-200);
}

.btn-pay-upi-deep {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0284c7;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* 9. Live Order Tracking Stepper Styles */
.tracking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 20px;
}

.track-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.track-badge.placed { background: #fef3c7; color: #92400e; }
.track-badge.confirmed { background: #dbeafe; color: #1e40af; }
.track-badge.preparing { background: #e0e7ff; color: #4338ca; }
.track-badge.out_for_delivery { background: #fce7f3; color: #9d174d; }
.track-badge.delivered { background: #d1fae5; color: #065f46; }
.track-badge.cancelled { background: #fee2e2; color: #991b1b; }

.track-order-id {
  font-size: 1.4rem;
  font-weight: 800;
}

.track-date {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.track-total-box {
  text-align: right;
}

.tt-label {
  display: block;
  font-size: 0.78rem;
  color: var(--slate-500);
}

.tt-amount {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-700);
}

.tt-mode {
  font-size: 0.75rem;
  color: var(--slate-600);
}

/* Stepper Visual Timeline */
.tracking-stepper {
  position: relative;
  padding: 10px 0 20px 20px;
  border-left: 3px solid var(--slate-200);
  margin-left: 14px;
  margin-bottom: 24px;
}

.stepper-step {
  position: relative;
  margin-bottom: 24px;
}

.stepper-step:last-child {
  margin-bottom: 0;
}

.stepper-node {
  position: absolute;
  left: -33px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.stepper-step.completed .stepper-node {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: var(--white);
}

.stepper-step.active .stepper-node {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: var(--slate-900);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.25);
}

.stepper-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-time {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: normal;
}

.stepper-desc {
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* Rider Card */
.track-rider-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.rider-avatar {
  font-size: 2.2rem;
}

.rider-details {
  flex: 1;
}

.rider-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary-700);
  font-weight: 700;
}

.rider-name {
  font-size: 1rem;
}

.rider-eta {
  font-size: 0.8rem;
  color: var(--slate-600);
}

.btn-call-rider {
  background: var(--primary-600);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Order Details / Address Card */
.track-delivery-address, .track-items-box {
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.address-header {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.address-body {
  font-size: 0.88rem;
}

.track-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 4px 0;
}

.ti-qty {
  color: var(--slate-500);
  font-size: 0.8rem;
}

.track-summary-totals {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--slate-200);
}

.track-summary-totals .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.track-summary-totals .grand-total {
  font-weight: 800;
  font-size: 1rem;
  color: var(--slate-900);
  margin-top: 6px;
}

.track-actions-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn-secondary {
  background: var(--slate-100);
  color: var(--slate-800);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-whatsapp-track {
  background: var(--whatsapp);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-cancel-order {
  background: transparent;
  color: #ef4444;
  border: 1px solid #fecaca;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: auto;
}

.btn-cancel-order:hover {
  background: #fee2e2;
}

/* 10. Toast Notification Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--slate-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideInToast 0.3s ease forwards;
}

.toast-pill.success { background: #065f46; border: 1px solid #10b981; }
.toast-pill.error { background: #991b1b; border: 1px solid #f87171; }
.toast-pill.warning { background: #92400e; border: 1px solid #fbbf24; }
.toast-pill.info { background: #1e293b; border: 1px solid #475569; }

.toast-pill.hide {
  animation: slideOutToast 0.3s ease forwards;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideOutToast {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(20px) scale(0.9); }
}

/* 11. Footer */
.store-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 48px 20px 30px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1280px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--slate-800);
  text-align: center;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* 12. Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-banner-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-image-wrap {
    display: none;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .header-container {
    padding: 10px 14px;
    gap: 10px;
  }
  .search-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 6px;
  }
  .header-container {
    flex-wrap: wrap;
  }
  .top-bar-links {
    display: none;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-emoji {
    font-size: 3rem;
  }
  .card-visual {
    height: 110px;
  }
  .card-title {
    font-size: 0.92rem;
  }
  .current-price {
    font-size: 1.05rem;
  }
  .btn-add-cart {
    padding: 4px 10px;
    font-size: 0.8rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Distance-Based Delivery & GPS Auto-Detection Styles
   ========================================================================== */
.distance-selector-section {
  margin-top: 14px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px;
}

.distance-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-gps-detect {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-gps-detect:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.btn-gps-detect.loading {
  opacity: 0.7;
  cursor: wait;
}

.gps-status-msg {
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gps-status-msg.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.distance-tiers-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 6px;
}

.distance-tier-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.distance-tier-card:hover {
  border-color: var(--emerald-400);
  background: #fafcfb;
}

.distance-tier-card.selected {
  border-color: var(--emerald-600);
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.dtc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dtc-radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.distance-tier-card.selected .dtc-radio-dot {
  border-color: var(--emerald-600);
}

.distance-tier-card.selected .dtc-radio-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-600);
}

.dtc-info-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate-800);
}

.dtc-info-desc {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 1px;
}

.dtc-fee-badge {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--emerald-700);
  background: var(--emerald-50);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--emerald-200);
  white-space: nowrap;
}

.dtc-fee-badge.free {
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
}

.admin-distance-settings-box {
  margin: 16px 0 10px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.distance-hint-row {
  margin-top: 8px;
}
