/**
 * Digital Store - Flipkart Minutes Style
 * Modern Quick Commerce UI Design
 */

/* =====================================================
   CSS Variables - Design Tokens
   ===================================================== */
:root {
  /* Brand Colors - Vibrant */
  --primary: #ffd60a;
  --primary-dark: #e5c009;
  --secondary: #0b0b0b;
  --secondary-dark: #0b0b0b;
  --accent: #fb641b;
  --accent-dark: #e55a17;

  /* Status Colors */
  --success: #388e3c;
  --success-light: #e8f5e9;
  --warning: #ff9800;
  --warning-light: #fff3e0;
  --danger: #d32f2f;
  --danger-light: #ffebee;
  --info: #0288d1;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f5f5f6;
  --gray-100: #ebebeb;
  --gray-200: #e0e0e0;
  --gray-300: #bdbdbd;
  --gray-400: #9e9e9e;
  --gray-500: #757575;
  --gray-600: #616161;
  --gray-700: #424242;
  --gray-800: #212121;
  --gray-900: #121212;
  --black: #000000;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-size-xs: 0.7rem;
  --font-size-sm: 0.8rem;
  --font-size-base: 0.9rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.15rem;
  --font-size-2xl: 1.35rem;
  --font-size-3xl: 1.75rem;
  --font-size-4xl: 2.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Layout */
  --container-max: 1200px;
  --header-height: 70px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   Reset & Base Styles
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =====================================================
   Animations & Transitions (GPU Optimized)
   ===================================================== */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal.active {
  animation: revealUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }

/* Micro-interactions */
.bounce-hover:hover {
  transform: scale(1.05);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

/* =====================================================
   Container
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* =====================================================
   Header - Responsive Mobile First
   ===================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

@media (max-width: 767px) {
  .header {
    height: auto;
    min-height: 70px;
    padding: 12px 0;
  }
}

@media (min-width: 768px) {
  .header {
    height: var(--header-height);
  }
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-2);
  padding: 0 var(--space-3);
}

@media (max-width: 767px) {
  .header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 6px var(--space-3) 4px;
    align-items: center;
    gap: 8px 10px;
  }
}

@media (min-width: 768px) {
  .header .container {
    gap: var(--space-4);
    padding: 0 var(--space-4);
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .logo {
    order: 1;
    flex: 1;
  }
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

@media (min-width: 768px) {
  .logo-img {
    height: 48px;
  }
}

.logo-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.3px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 400px) {
  .logo-text {
    font-size: 0.85rem;
  }
}

.logo-tagline {
  font-size: 0.6rem;
  color: var(--gray-600);
  font-weight: 500;
  display: block;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .logo-tagline {
    font-size: 0.7rem;
  }
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 500px;
  display: none;
}

@media (max-width: 767px) {
  .search-bar {
    display: block;
    flex-basis: 70%;
    flex-grow: 1;
    max-width: none;
    order: 4;
    margin-top: 10px;
  }
}

@media (min-width: 768px) {
  .search-bar {
    display: block;
  }
}

.search-bar input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-left: 44px;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  background-color: var(--gray-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 20px;
}

.search-bar input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.4);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

@media (max-width: 767px) {
  .header-actions {
    order: 2;
  }
}

@media (min-width: 768px) {
  .header-actions {
    gap: var(--space-2);
  }
}

.btn-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--black);
  border-radius: var(--border-radius);
  transition: background var(--transition-fast);
}

@media (min-width: 768px) {
  .btn-icon {
    width: 44px;
    height: 44px;
  }
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .btn-icon svg {
    width: 22px;
    height: 22px;
  }
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    order: 3;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
  }
  
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Navigation */
.nav {
  display: none;
  gap: var(--space-4);
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--white);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.nav-link:hover {
  opacity: 1;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* =====================================================
   Right-Side Slide Drawer Mobile Navigation
   ===================================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 290px;
    max-width: 82vw;
    height: 100vh;
    background: #0f172a;
    color: #ffffff;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    padding: 0;
    gap: 0;
    overflow-y: auto;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
  }

  .nav-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s ease;
  }

  .nav-close-btn:hover {
    color: #ffffff;
  }

  .nav-links-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #cbd5e1;
    border-bottom: 1px solid #1e293b;
    transition: all 0.2s ease;
    border-radius: 8px;
  }

  .nav-link:hover, .nav-link:focus {
    color: #ffffff;
    background: #1e293b;
  }

  .nav-link-logout {
    color: #f87171 !important;
  }

  .nav-link-logout:hover {
    background: rgba(239, 68, 68, 0.15) !important;
  }
}

@media (min-width: 768px) {
  .nav-drawer-header, .nav-overlay {
    display: none !important;
  }
  .nav-links-body {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
}

/* =====================================================
   Hero Slider / Banner - Beautiful Centered Design
   ===================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

.slide {
  width: 100%;
  min-height: 150px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px 40px;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.slide-content {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.slide-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slide-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 14px;
  line-height: 1.5;
}

.slide .btn {
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.dot.active {
  background: var(--white);
  width: 22px;
  border-radius: 4px;
}

/* Tablet & Up */
@media (min-width: 480px) {
  .slide {
    min-height: 170px;
    padding: 28px 20px 44px;
  }
  .slide-title {
    font-size: 1.35rem;
  }
  .slide-subtitle {
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) {
  .slide {
    min-height: 220px;
    padding: 32px 24px 48px;
  }
  .slide-content {
    max-width: 600px;
  }
  .slide-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
  }
  .slide-subtitle {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }
  .slide .btn {
    padding: 12px 32px;
    font-size: 0.9rem;
  }
  .slider-dots {
    bottom: 16px;
  }
  .dot {
    width: 10px;
    height: 10px;
  }
  .dot.active {
    width: 28px;
  }
}

@media (min-width: 1024px) {
  .slide {
    min-height: 260px;
  }
  .slide-content {
    max-width: 700px;
  }
  .slide-title {
    font-size: 2.1rem;
  }
  .slide-subtitle {
    font-size: 1.05rem;
  }
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--gray-900);
  box-shadow: 0 2px 4px rgba(255, 214, 10, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 8px rgba(255, 214, 10, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--white);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #128c7e;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
}

/* =====================================================
   Category Chips - Clean Horizontal Scroll
   ===================================================== */
.category-section {
  background: var(--white);
  padding: var(--space-3) 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
}

.category-filters {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-2) var(--space-4);
  margin: 0 calc(var(--space-4) * -1);
  /* Hide scrollbar for all browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

/* Hide scrollbar for Chrome, Safari, Opera */
.category-filters::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.filter-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: var(--gray-50);
  border-radius: 5px;
  border: 1.5px solid var(--gray-200);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-chip:hover {
  background: var(--white);
  border-color: var(--secondary);
}

.filter-chip.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

.filter-chip.active .filter-chip-text {
  color: var(--white);
}

.filter-chip-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
}

@media (min-width: 768px) {
  .category-section {
    padding: var(--space-4) 0;
  }
  .category-filters {
    gap: var(--space-3);
  }
  .filter-chip {
    padding: 8px 18px;
  }
  .filter-chip-text {
    font-size: 0.85rem;
  }
}

/* =====================================================
   Section Styles
   ===================================================== */
.section {
  padding: var(--space-4) 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.section-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--secondary);
}

/* =====================================================
   Product Grid
   ===================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* =====================================================
   Product Card - Flipkart Minutes Style
   ===================================================== */
.product-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-image {
  position: relative;
  padding-top: 100%;
  background: var(--gray-50);
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-3);
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Badges */
.product-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-badge.discount {
  background: var(--success);
}

.product-info {
  padding: var(--space-3);
}

.product-category {
  font-size: 10px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: var(--space-1);
}

.product-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: var(--space-1);
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.product-weight {
  font-size: var(--font-size-xs);
  color: var(--gray-400);
  margin-bottom: var(--space-2);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--gray-900);
}

.price-original {
  font-size: var(--font-size-xs);
  color: var(--gray-400);
  text-decoration: line-through;
}

.discount-percent {
  font-size: var(--font-size-xs);
  color: var(--success);
  font-weight: 600;
}

/* Add Button */
.add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  color: var(--secondary);
  border: 2px solid var(--secondary);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 700;
  transition: all var(--transition-fast);
}

.add-to-cart-btn:hover {
  background: var(--secondary);
  color: var(--white);
}

.add-to-cart-btn.added {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

/* Out of Stock */
.product-card.out-of-stock {
  opacity: 0.7;
}

.product-card.out-of-stock .add-to-cart-btn {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-400);
  cursor: not-allowed;
}

/* =====================================================
   Delivery Banner
   ===================================================== */
.delivery-banner {
  background: linear-gradient(90deg, #0f3057 0%, #1a5276 100%);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-3) 0;
  border-radius: var(--border-radius);
}

.delivery-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.delivery-text {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.delivery-time {
  color: var(--primary);
  font-weight: 700;
}

@media (min-width: 768px) {
  .delivery-banner {
    padding: var(--space-3) var(--space-4);
    margin: var(--space-4) 0;
    border-radius: var(--border-radius-lg);
  }
  .delivery-text {
    font-size: 0.9rem;
  }
}

/* =====================================================
   Cart Drawer - Modern Style
   ===================================================== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--gray-50);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.cart-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.cart-header h3 span {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  font-weight: 400;
}

.cart-close {
  width: 36px;
  height: 36px;
  font-size: 24px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.cart-close:hover {
  background: var(--gray-100);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.cart-empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--gray-500);
}

.cart-empty svg {
  margin: 0 auto var(--space-4);
  opacity: 0.3;
  color: var(--secondary);
}

.cart-empty p {
  margin-bottom: var(--space-4);
  font-size: var(--font-size-base);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cart-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--gray-50);
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.cart-item-price {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 32px;
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--gray-200);
}

.qty-value {
  width: 36px;
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--gray-800);
}

.cart-item-remove {
  color: var(--danger);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.cart-item-remove:hover {
  text-decoration: underline;
}

/* Cart Item Price Display */
.cart-item-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-price-current {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--gray-900);
}

.cart-price-original {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
  text-decoration: line-through;
}

.cart-footer {
  padding: var(--space-4);
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.cart-savings {
  background: var(--success-light);
  color: var(--success);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-3);
}

.cart-breakdown {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  padding: 6px 0;
}

.cart-row:not(:last-child) {
  border-bottom: 1px dashed var(--gray-200);
}

.cart-row-gst {
  color: var(--gray-500);
  font-size: var(--font-size-xs);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--gray-300);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}

/* =====================================================
   Modal Styles
   ===================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: var(--space-4);
  }
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

@media (min-width: 640px) {
  .modal {
    border-radius: var(--border-radius-xl);
    transform: scale(0.95) translateY(20px);
  }
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay.active .modal {
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.modal-close {
  width: 36px;
  height: 36px;
  font-size: 24px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: var(--gray-100);
}

.modal-body {
  padding: var(--space-4);
  max-height: 60vh;
  overflow-y: auto;
}

/* Success Modal */
.modal-success {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  background: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  animation: successPop 0.5s ease;
}

@keyframes successPop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.modal-success h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.order-code {
  font-size: var(--font-size-lg);
  background: var(--gray-50);
  padding: var(--space-3);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-4);
}

.order-code strong {
  color: var(--secondary);
}

.modal-success p {
  color: var(--gray-600);
  margin-bottom: var(--space-6);
}

/* =====================================================
   Form Styles
   ===================================================== */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-group {
  display: flex;
  gap: var(--space-3);
}

.radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-label:has(input:checked) {
  border-color: var(--secondary);
  background: #e8f0fe;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}

.checkout-summary {
  background: var(--gray-50);
  padding: var(--space-4);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-4);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.summary-row.total {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0;
  padding-top: var(--space-2);
  border-top: 1px dashed var(--gray-300);
}

/* =====================================================
   About Section
   ===================================================== */
.about-section {
  background: var(--white);
  padding: var(--space-8) 0;
  margin-top: var(--space-4);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: var(--space-4);
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-1);
}

.feature-card p {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  margin: 0;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-8) 0 var(--space-4);
  margin-top: var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-size: var(--font-size-xl);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  opacity: 0.8;
}

.footer-contact h4,
.footer-hours h4 {
  font-size: var(--font-size-sm);
  color: var(--white);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
}

.footer-contact ul li svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}

.footer-contact ul li a:hover {
  color: var(--white);
}

.footer-hours p {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-700);
  text-align: center;
  font-size: var(--font-size-xs);
  opacity: 0.6;
}

/* =====================================================
   Toast Notification
   ===================================================== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-50px);
  background: var(--gray-800);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: 50px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  z-index: 10005;
  opacity: 0;
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

.toast svg {
  width: 18px;
  height: 18px;
}

/* =====================================================
   Utilities
   ===================================================== */
.text-center {
  text-align: center;
}
.hidden {
  display: none !important;
}

/* =====================================================
   Scrollbar
   ===================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* =====================================================
   Loading Spinner
   ===================================================== */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =====================================================
   Sticky Cart Footer Bar
   ===================================================== */
.sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    padding: 12px 16px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    border-top: 1px solid #1e293b;
}

.sticky-cart-bar.active {
    transform: translateY(0);
    display: block;
}

/* Add padding to body when sticky cart is active */
body:has(.sticky-cart-bar.active) {
    padding-bottom: 70px;
}

/* Fallback for browsers that don't support :has() */

.sticky-cart-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sticky-cart-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sticky-cart-count {
    font-size: 0.825rem;
    font-weight: 500;
    color: #94a3b8;
}

.sticky-cart-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
}

.sticky-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.sticky-cart-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.sticky-cart-btn:active {
    transform: translateY(0);
}

.sticky-cart-btn svg {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .sticky-cart-bar {
        padding: 14px 24px;
    }
    
    .sticky-cart-count {
        font-size: 0.875rem;
    }
    
    .sticky-cart-total {
        font-size: 1.3rem;
    }
    
    .sticky-cart-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}
