/* ==========================================================================
   GADGET MANIA - MODERN E-COMMERCE STYLESHEET
   Design System: Pearl White (#F9FAFB), Electric Blue (#2563EB), Neon Violet (#7C3AED), Sunset Orange (#F97316)
   ========================================================================== */

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

:root {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colors */
  --bg-primary: #F9FAFB;
  --bg-secondary: #F3F4F6;
  --bg-card: #FFFFFF;
  
  --primary-blue: #2563EB;
  --primary-violet: #7C3AED;
  --accent-orange: #F97316;
  --accent-green: #10B981;
  --whatsapp-green: #25D366;

  --text-dark: #111827;
  --text-medium: #374151;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  --border-light: #E5E7EB;
  --border-focus: #3B82F6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 0 4px 6px -2px rgba(124, 58, 237, 0.05);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
}

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

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-violet));
}

.orange-gradient-bg {
  background: linear-gradient(135deg, var(--accent-orange), #EA580C);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #1E1B4B, #312E81);
  color: #E0E7FF;
  font-size: 0.825rem;
  padding: 0.5rem 0;
  text-align: center;
  font-weight: 500;
}

.top-bar .highlight {
  color: #FDBA74;
  font-weight: 600;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

.logo-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-icon-wrap svg {
  width: 24px;
  height: 24px;
}

/* Search Bar */
.search-container {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  transition: var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--primary-blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-box input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  padding-left: 0.75rem;
  color: var(--text-dark);
}

.search-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-height: 350px;
  overflow-y: auto;
  z-index: 105;
  display: none;
}

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

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.autocomplete-item:hover {
  background: var(--bg-secondary);
}

.autocomplete-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.autocomplete-info {
  flex: 1;
}

.autocomplete-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.autocomplete-price {
  font-size: 0.8rem;
  color: var(--accent-orange);
  font-weight: 700;
}

/* Header Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: #E0E7FF;
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.hamburger-btn {
  display: none;
}

/* Nav Menu */
.nav-bar {
  background: white;
  border-bottom: 1px solid var(--border-light);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  height: 48px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-violet));
  border-radius: 3px 3px 0 0;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 205;
  box-shadow: 5px 0 25px rgba(0,0,0,0.15);
  transition: left 0.3s ease;
  padding: 2rem 1.5rem;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.mobile-nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================================================
   HERO SECTION & CAROUSEL
   ========================================================================== */
.hero-section {
  padding: 2rem 0 3rem;
}

.hero-slider-wrap {
  position: relative;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4C1D95 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: white;
  min-height: 460px;
}

.hero-slide {
  display: none;
  padding: 3.5rem 3rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2rem;
  animation: fadeIn 0.6s ease;
}

.hero-slide.active {
  display: grid;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #FDBA74;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #D1D5DB;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-violet));
  color: white;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background: var(--accent-orange);
}

/* ==========================================================================
   CATEGORY GRID
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  transition: var(--transition-fast);
}

.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-violet));
  color: white;
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.category-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FLASH DEALS BANNER
   ========================================================================== */
.flash-banner {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.flash-info h2 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0.5rem;
}

.flash-timer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.timer-box {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 56px;
}

.timer-num {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.timer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   FEATURED PRODUCTS & FILTER TABS
   ========================================================================== */
.filter-tabs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-medium);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent-orange);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  z-index: 5;
}

.wishlist-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 5;
  transition: var(--transition-fast);
}

.wishlist-btn:hover,
.wishlist-btn.active {
  color: #EF4444;
  background: #FEE2E2;
}

.product-img-wrap {
  width: 100%;
  height: 220px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}

.product-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.quick-view-btn {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.85);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  transition: var(--transition-fast);
  opacity: 0;
  white-space: nowrap;
}

.product-card:hover .quick-view-btn {
  bottom: 12px;
  opacity: 1;
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #F59E0B;
  margin-bottom: 0.75rem;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-orange);
  font-family: var(--font-heading);
}

.old-price {
  font-size: 0.875rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.add-cart-btn {
  width: 100%;
  background: var(--bg-secondary);
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.add-cart-btn:hover {
  background: var(--primary-blue);
  color: white;
}

/* ==========================================================================
   STORE LOCATOR & MAP SECTION
   ========================================================================== */
.store-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem;
}

.store-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: center;
}

.store-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.store-info h2 {
  font-size: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #E0E7FF;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.info-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.map-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
  transition: var(--transition-normal);
}

.map-wrap:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
}

.map-badge-header {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(17, 24, 39, 0.9);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #111827;
  color: #9CA3AF;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text {
  color: white;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-title {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #1F2937;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   CART DRAWER & OVERLAY
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: white;
  z-index: 201;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 1.2rem;
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  transition: var(--transition-fast);
}

.close-btn:hover {
  background: var(--border-light);
}

.shipping-progress {
  padding: 0.85rem 1.5rem;
  background: #EFF6FF;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #DBEAFE;
  border-radius: 3px;
  margin-top: 0.4rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
  width: 0%;
  transition: width 0.4s ease;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  object-fit: contain;
}

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

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent-orange);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.qty-val {
  width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.remove-item-btn {
  color: var(--text-light);
  padding: 0.25rem;
  transition: var(--transition-fast);
  background: none;
}

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

.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-orange), #EA580C);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3);
  transition: var(--transition-fast);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.4);
}

/* Empty Cart State */
.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-cart svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ==========================================================================
   MULTI-STEP CHECKOUT MODAL
   ========================================================================== */
.modal-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

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

.checkout-modal {
  background: white;
  width: 100%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.checkout-header {
  padding: 1.25rem 1.75rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-tracker {
  display: flex;
  justify-content: space-around;
  padding: 1rem 1.75rem;
  background: #F9FAFB;
  border-bottom: 1px solid var(--border-light);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-item.active {
  color: var(--primary-blue);
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.step-item.active .step-number {
  background: var(--primary-blue);
  color: white;
}

.modal-content-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-medium);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.payment-option-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.payment-option-card:hover,
.payment-option-card.active {
  border-color: var(--primary-blue);
  background: #EFF6FF;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (CALL & WHATSAPP)
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 150;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: var(--transition-normal);
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.call-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-violet));
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.floating-btn.whatsapp-btn {
  background: var(--whatsapp-green);
}

.tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: #1E293B;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.floating-btn:hover .tooltip {
  opacity: 1;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 300;
}

.toast {
  background: white;
  border-left: 4px solid var(--primary-blue);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideInRight 0.3s forwards;
  min-width: 280px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE FIRST OVERRIDES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-slide {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  .hero-subtitle {
    margin: 0 auto 2rem;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-img {
    max-height: 280px;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .search-container {
    display: none;
  }

  .nav-bar {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .header-wrapper {
    height: 64px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .flash-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .store-section {
    padding: 2rem 1.25rem;
  }
  
  .map-wrap {
    height: 300px;
  }
  
  .mobile-nav-search {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 0.6rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .mobile-nav-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    padding-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-ctas > * {
    width: 100%;
    justify-content: center;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }
  
  .floating-actions {
    right: 1rem;
    bottom: 1.5rem;
  }
  
  .product-img-wrap {
    height: 160px;
    padding: 1rem;
  }
  
  .product-title {
    font-size: 0.9rem;
    height: 2.6em;
  }
  
  .current-price {
    font-size: 1.1rem;
  }
  
  .add-cart-btn {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
}
