/* ===== CSS Custom Properties ===== */
:root {
  --primary-50: #ECFDF5;
  --primary-100: #D1FAE5;
  --primary-200: #A7F3D0;
  --primary-300: #6EE7B7;
  --primary-400: #34D399;
  --primary-500: #10B981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-800: #065F46;
  --primary-900: #022C22;

  --secondary-50: #FFF7ED;
  --secondary-100: #FFEDD5;
  --secondary-200: #FED7AA;
  --secondary-300: #FDBA74;
  --secondary-400: #FB923C;
  --secondary-500: #FF6801;
  --secondary-600: #EA580C;
  --secondary-700: #C2410C;
  --secondary-800: #9A3412;
  --secondary-900: #7C2D12;

  --surface: #F4F4F5;
  --surface-card: #FFFFFF;
  --accent-gold: #D97706;
  --accent-coral: #F43F5E;
  --accent-daraz-orange: #f57224;
  --accent-daraz-red: #ff330c;

  --zinc-50: #FAFAFA;
  --zinc-100: #F4F4F5;
  --zinc-200: #E4E4E7;
  --zinc-300: #D4D4D8;
  --zinc-400: #A1A1AA;
  --zinc-500: #71717A;
  --zinc-600: #52525B;
  --zinc-700: #3F3F46;
  --zinc-800: #27272A;
  --zinc-900: #18181B;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

.dark-mode {
  --surface: #0f172a;
  --surface-card: #1e293b;
  --zinc-50: #0f172a;
  --zinc-100: #1e293b;
  --zinc-200: #334155;
  --zinc-300: #475569;
  --zinc-400: #64748b;
  --zinc-500: #94a3b8;
  --zinc-600: #cbd5e1;
  --zinc-700: #e2e8f0;
  --zinc-800: #f1f5f9;
  --zinc-900: #f8fafc;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--zinc-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

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

/* ===== Announcement Bar ===== */
.announcement-bar {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: white;
  text-align: center;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-card);
  border-bottom: 1px solid var(--zinc-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-600);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span { color: var(--secondary-500); }
.logo img { height: 30px; width: auto; }

.hamburger { display: none; padding: 0.5rem; border-radius: 0.5rem; }
.hamburger:hover { background: var(--zinc-100); }
.hamburger svg { width: 22px; height: 22px; }

/* Search */
.search-bar { display: flex; flex: 1; max-width: 32rem; margin: 0 1rem; }
.search-bar select {
  padding: 0.5rem 0.75rem;
  background: var(--zinc-100);
  border: 1px solid var(--zinc-300);
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--zinc-600);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.search-bar select:focus { border-color: var(--primary-500); }
.search-bar input {
  flex: 1;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--zinc-300);
  outline: none;
  font-size: 0.875rem;
  min-width: 0;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
.search-bar:focus-within { border-radius: 0.5rem; }
.search-btn {
  padding: 0.5rem 1rem;
  background: var(--secondary-500);
  color: white;
  border-radius: 0 0.5rem 0.5rem 0;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--secondary-600); }
.search-btn svg { width: 18px; height: 18px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--zinc-600);
  border-radius: 0.375rem;
}
.lang-toggle:hover { color: var(--primary-600); }

.dm-toggle {
  display: flex;
  align-items: center;
  padding: 0.375rem;
  color: var(--zinc-600);
  border-radius: 0.375rem;
  transition: all 0.2s;
}
.dm-toggle:hover { color: var(--primary-600); background: var(--zinc-100); }
.dm-toggle svg { width: 18px; height: 18px; }

.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--zinc-600);
  border-radius: 0.5rem;
  position: relative;
}
.profile-btn:hover { color: var(--primary-600); background: var(--zinc-50); }
.profile-btn svg { width: 20px; height: 20px; }
.profile-label { display: none; }

.cart-btn {
  position: relative;
  padding: 0.5rem;
  color: var(--zinc-600);
  border-radius: 0.5rem;
}
.cart-btn:hover { color: var(--primary-600); background: var(--zinc-50); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  background: var(--secondary-500);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.cart-badge.show { display: flex; }

/* Mobile search */
.mobile-search { display: none; padding: 0.75rem 1rem; padding-top: 0; }
.mobile-search .search-bar { margin: 0; max-width: 100%; }

/* Profile Dropdown */
.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background: var(--surface-card);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--zinc-200);
  padding: 0.5rem 0;
  display: none;
  z-index: 50;
}
.profile-dropdown.show { display: block; }
.profile-dropdown a,
.profile-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  color: var(--zinc-700);
}
.profile-dropdown a:hover,
.profile-dropdown button:hover { background: var(--zinc-50); }
.profile-dropdown .login-link { color: var(--primary-600); font-weight: 600; }
.profile-dropdown .divider { height: 1px; background: var(--zinc-100); margin: 0.25rem 0; }
.profile-dropdown .logout { color: var(--accent-coral); }
.profile-dropdown .logout:hover { background: #FEF2F2; }

/* ===== Navbar / Mega Menu ===== */
.navbar { display: none; background: var(--surface-card); box-shadow: 0 1px 0 var(--zinc-200); }

.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.categories-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--primary-600);
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.5rem 0.5rem 0 0;
  position: relative;
}
.categories-btn .grid-icon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}
.categories-btn .grid-icon span {
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
}

.nav-link {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zinc-700);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--primary-600); background: var(--zinc-50); }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 720px;
  background: var(--surface-card);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  border: 1px solid var(--zinc-200);
  border-radius: 0 0 0.75rem 0.75rem;
  padding: 1.5rem;
  display: none;
  z-index: 50;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mega-menu.show { display: grid; }
.mega-menu h3 { font-size: 0.8125rem; font-weight: 600; color: var(--primary-600); margin-bottom: 0.5rem; }
.mega-menu h3 a { color: inherit; transition: color 0.2s; }
.mega-menu h3 a:hover { color: var(--primary-700); }
.mega-menu ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mega-menu ul a {
  font-size: 0.75rem;
  color: var(--zinc-600);
  padding: 0.25rem 0;
  transition: color 0.2s, padding-left 0.2s;
}
.mega-menu ul a:hover { color: var(--primary-600); padding-left: 0.25rem; }

/* ===== Mobile Menu ===== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
}
.mobile-overlay.show { display: block; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 20rem;
  max-width: 85vw;
  background: var(--surface-card);
  z-index: 201;
  box-shadow: 0 0 40px rgba(0,0,0,0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--zinc-200);
}
.mobile-menu-header h2 { font-size: 1.125rem; font-weight: 700; color: var(--primary-600); }
.mobile-menu-close { padding: 0.25rem; border-radius: 0.5rem; }
.mobile-menu-close:hover { background: var(--zinc-100); }
.mobile-menu-close svg { width: 22px; height: 22px; }

.mobile-menu-content { padding: 0; }
.mobile-menu-content .login-section { padding: 1rem; border-bottom: 1px solid var(--zinc-100); }
.mobile-menu-content .login-section a {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: var(--secondary-500);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.mobile-nav-links { padding: 0.5rem 0; }
.mobile-nav-links a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.mobile-nav-links a:hover { background: var(--zinc-50); }
.mobile-nav-links .flash-link { color: var(--secondary-500); }

.mobile-categories { border-top: 1px solid var(--zinc-100); padding: 0.5rem 0; }
.mobile-categories-title {
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--zinc-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mobile-cat-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  text-align: left;
}
.mobile-cat-item button:hover { background: var(--zinc-50); }
.mobile-cat-item button svg { width: 16px; height: 16px; }

.mobile-subcats { background: var(--zinc-50); display: none; }
.mobile-subcats.open { display: block; }
.mobile-subcats a {
  display: block;
  padding: 0.5rem 2rem;
  font-size: 0.8125rem;
  color: var(--zinc-600);
}
.mobile-subcats a:hover { color: var(--primary-600); }

/* ===== Daraz-style Hero Section ===== */
.hero-daraz {
  margin-bottom: 1rem;
}

.hero-daraz-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-headline {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--zinc-900);
}

.dark-mode .hero-headline {
  color: #f1f5f9;
}

.hero-subtext {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--zinc-500);
  max-width: 90%;
}

.dark-mode .hero-subtext {
  color: #94a3b8;
}

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

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%, rgba(255,255,255,0.04) 100%);
  pointer-events: none;
}

.hero-cta-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.35);
  background-position: 100% 100%;
}

.hero-cta-primary:active {
  transform: scale(0.98);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--zinc-700);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
}

.dark-mode .hero-cta-secondary {
  color: #cbd5e1;
}

.hero-cta-secondary:hover {
  background: var(--zinc-100);
  transform: scale(1.02);
}

.dark-mode .hero-cta-secondary:hover {
  background: rgba(255,255,255,0.06);
}

.play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--zinc-200);
  color: var(--zinc-700);
  transition: all 0.2s;
}

.hero-cta-secondary:hover .play-icon {
  background: var(--primary);
  color: #fff;
}

.dark-mode .play-icon {
  background: rgba(255,255,255,0.12);
  color: #cbd5e1;
}



/* ---- Daraz-style Carousel ---- */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}

.dark-mode .hero-carousel {
  background: #1e293b;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-cslide {
  flex: 0 0 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Slide gradients */
.hero-cslide-1 {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fef2f2 100%);
}
.dark-mode .hero-cslide-1 {
  background: linear-gradient(135deg, #1c1108 0%, #1a0f05 50%, #1c0a0a 100%);
}

.hero-cslide-2 {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #fefce8 100%);
}
.dark-mode .hero-cslide-2 {
  background: linear-gradient(135deg, #0a1a0e 0%, #0c1a12 50%, #1a1a0a 100%);
}

.hero-cslide-3 {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f0f9ff 100%);
}
.dark-mode .hero-cslide-3 {
  background: linear-gradient(135deg, #0a1420 0%, #0c1a2e 50%, #0a1620 100%);
}

.cslide-content {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cslide-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

.cslide-badge-orange {
  background: var(--accent-daraz-red);
  color: #fff;
}

.cslide-badge-green {
  background: var(--primary-500);
  color: #fff;
}

.cslide-badge-blue {
  background: #3b82f6;
  color: #fff;
}

.cslide-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--zinc-900);
  margin: 0;
}

.dark-mode .cslide-title {
  color: #f1f5f9;
}

.cslide-highlight {
  color: var(--accent-daraz-red);
}

.hero-cslide-2 .cslide-highlight { color: var(--primary-600); }
.hero-cslide-3 .cslide-highlight { color: #2563eb; }

.cslide-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--zinc-500);
  margin: 0;
  max-width: 80%;
}

.dark-mode .cslide-desc {
  color: #94a3b8;
}

.cslide-price-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.cslide-price-current {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--accent-daraz-red);
}

.hero-cslide-2 .cslide-price-current { color: var(--primary-600); }
.hero-cslide-3 .cslide-price-current { color: #2563eb; }

.cslide-price-old {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--zinc-400);
  text-decoration: line-through;
}

.dark-mode .cslide-price-old {
  color: #64748b;
}

.cslide-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  width: fit-content;
  margin-top: 0.25rem;
}

.hero-cslide-1 .cslide-cta { background: var(--accent-daraz-red); }
.hero-cslide-1 .cslide-cta:hover { background: #e02e0a; transform: scale(1.03); }

.hero-cslide-2 .cslide-cta { background: var(--primary-600); }
.hero-cslide-2 .cslide-cta:hover { background: #046d4a; transform: scale(1.03); }

.hero-cslide-3 .cslide-cta { background: #2563eb; }
.hero-cslide-3 .cslide-cta:hover { background: #1d4ed8; transform: scale(1.03); }

.cslide-visual {
  flex: 0 0 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cslide-product-img {
  width: 90%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
  animation: darazFloat 4s ease-in-out infinite;
}

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

.cslide-visual-bg {
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.dark-mode .cslide-visual-bg {
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Carousel Dots */
.hero-carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.dark-mode .hero-carousel-dot {
  background: rgba(255,255,255,0.25);
}

.hero-carousel-dot.active {
  background: var(--accent-daraz-red);
  width: 20px;
  border-radius: 4px;
}

.dark-mode .hero-carousel-dot.active {
  background: var(--accent-daraz-orange);
}

/* Carousel Arrows */
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  color: var(--zinc-700);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode .hero-carousel-arrow {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
}

.hero-carousel-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.05);
}

.dark-mode .hero-carousel-arrow:hover {
  background: rgba(51, 65, 85, 0.9);
}

.hero-carousel-prev { left: 0.75rem; }
.hero-carousel-next { right: 0.75rem; }



/* ===== Free Shipping Bar ===== */
.free-ship-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1e3a5f, #2d6a9f);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(30,58,95,0.15);
}
.free-ship-bar svg {
  flex-shrink: 0;
}
.free-ship-bar strong {
  font-weight: 700;
}

/* ===== Flash Sale ===== */
.flash-sale {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-800));
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(234,88,12,0.15);
}

.flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.flash-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.flash-title {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.flash-timer {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.flash-timer .clock-icon { color: white; }
.flash-timer .clock-icon svg { width: 16px; height: 16px; }
.timer-unit {
  background: white;
  color: var(--secondary-600);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  min-width: 1.75rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.timer-sep { color: rgba(255,255,255,0.5); font-weight: 700; font-size: 1.125rem; }

.flash-carousel-arrows { display: flex; gap: 0.375rem; }
.flash-carousel-arrow {
  padding: 0.375rem;
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 0.375rem;
  display: flex;
  cursor: pointer;
  transition: background 0.15s;
}
.flash-carousel-arrow:hover { background: rgba(255,255,255,0.35); }
.flash-carousel-arrow svg { width: 18px; height: 18px; }

.flash-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 1rem 0;
}

.flash-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 1rem 1rem;
}
.flash-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.flash-dot.active {
  background: rgba(255,255,255,0.25);
}
.flash-dot-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  animation: flashProgress 4s linear forwards;
}
@keyframes flashProgress {
  from { width: 100%; }
  to { width: 0%; }
}

.flash-strip {
  display: flex;
  gap: 0.75rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.flash-card {
  flex-shrink: 0;
  width: 11rem;
  background: #fff;
  border-radius: 0.625rem;
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.flash-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-3px); }

.flash-card-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--zinc-100);
  overflow: hidden;
}
.flash-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flash-badge {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  background: var(--accent-coral);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.0625rem 0.375rem;
  border-radius: 0.125rem;
}
.flash-strip-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: var(--secondary-500);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.0625rem 0.375rem;
  border-radius: 0.125rem;
}

.flash-card-body { padding: 0.375rem; }
.flash-card-body p { font-size: 0.6875rem; color: var(--zinc-800); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flash-card-prices { margin-top: 0.125rem; display: flex; align-items: baseline; gap: 0.25rem; }
.flash-price { font-size: 0.8125rem; font-weight: 700; color: var(--primary-600); }
.flash-old-price { font-size: 0.625rem; color: var(--zinc-400); text-decoration: line-through; }
.flash-add-btn {
  margin-top: 0.25rem;
  width: 100%;
  padding: 0.25rem;
  background: var(--secondary-500);
  color: white;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: background 0.2s;
}
.flash-add-btn:hover { background: var(--secondary-600); }
.flash-add-btn svg { width: 12px; height: 12px; }

/* ===== Layout Row ===== */
.layout-row { display: flex; gap: 1.5rem; margin-top: 0.5rem; }

/* ===== Category Sidebar ===== */
.category-sidebar { display: none; width: 16rem; flex-shrink: 0; position: sticky; top: 5rem; align-self: flex-start; }
.category-sidebar-inner {
  background: var(--surface-card);
  border-radius: 0.75rem;
  border: 1px solid var(--zinc-200);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.category-sidebar-inner:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.sidebar-title {
  background: var(--primary-600);
  color: white;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.75rem 1rem;
}
.sidebar-list { padding: 0.25rem 0; }

.sidebar-cat button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  text-align: left;
  color: var(--zinc-700);
  transition: all 0.15s;
}
.sidebar-cat button:hover { background: var(--zinc-50); color: var(--primary-600); }
.sidebar-cat button svg { width: 14px; height: 14px; flex-shrink: 0; }

.sidebar-subcats { background: var(--zinc-50); display: none; }
.sidebar-subcats.open { display: block; }
.sidebar-subcats a {
  display: block;
  padding: 0.375rem 1.5rem;
  font-size: 0.75rem;
  color: var(--zinc-600);
}
.sidebar-subcats a:hover { color: var(--primary-600); background: white; }

/* ===== Product Grid ===== */
.main-content { flex: 1; min-width: 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--zinc-100);
}
.section-header h2 { font-size: 1.25rem; font-weight: 700; color: var(--zinc-800); letter-spacing: -0.01em; }
.section-header a { font-size: 0.8125rem; color: var(--primary-600); font-weight: 600; transition: color 0.2s; }
.section-header a:hover { color: var(--primary-700); gap: 0.25rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ===== Product Card ===== */
.product-card {
  background: var(--surface-card);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--zinc-200);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.product-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: var(--zinc-300);
  transform: translateY(-2px);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--zinc-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 10;
}

.badge { font-size: 0.625rem; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 0.25rem; color: white; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-sale { background: var(--accent-coral); }
.badge-new { background: var(--primary-500); }
.badge-premium { background: var(--accent-gold); }
.badge-bestseller { background: var(--secondary-500); }

/* mark badges used on product cards */
.mark-badge { font-size:0.5625rem; font-weight:700; padding:0.1rem 0.375rem; border-radius:0.1875rem; color:#fff; text-transform:uppercase; letter-spacing:0.03em; white-space:nowrap; }
.mark-flash_sale { background:#ef4444; }
.mark-demanding   { background:#f59e0b; }
.mark-premium     { background:#8b5cf6; }
.mark-best_selling{ background:#10b981; }
.mark-big_discount{ background:#ec4899; }

/* mark section banners */
.mark-section { margin-top:2.5rem; display:none; }
.mark-section-header { display:flex; align-items:center; gap:0.75rem; margin-bottom:1rem; }
.mark-section-header .mark-section-icon { font-size:1.5rem; }
.mark-section-header h2 { font-size:1.25rem; font-weight:700; margin:0; }
.mark-section-header a { font-size:0.8125rem; color:var(--primary-500); text-decoration:none; font-weight:600; }
.mark-section-header a:hover { text-decoration:underline; }

.out-of-stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.out-of-stock-overlay span {
  background: var(--zinc-800);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.quick-view-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover .quick-view-overlay { opacity: 1; }

.quick-view-btn {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  color: var(--zinc-800);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.2s;
}
.quick-view-btn:hover { background: white; transform: translateY(-1px); }
.quick-view-btn svg { width: 14px; height: 14px; }

.product-card-body { padding: 0.75rem; }
.product-vendor { font-size: 0.6875rem; color: var(--zinc-500); margin-bottom: 0.125rem; text-transform: uppercase; letter-spacing: 0.04em; }
.product-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zinc-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.2rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-top: 0.25rem;
}
.stars { display: flex; }
.stars svg { width: 14px; height: 14px; }
.star-full { color: #FBBF24; }
.star-half { color: #FBBF24; }
.star-empty { color: var(--zinc-200); }
.rating-count { font-size: 0.6875rem; color: var(--zinc-500); margin-left: 0.25rem; }

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.375rem;
}
.product-price { font-size: 1rem; font-weight: 700; color: var(--primary-600); }
.product-old-price { font-size: 0.75rem; color: var(--zinc-400); text-decoration: line-through; }

.product-colors {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
}
.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--zinc-300);
  display: block;
}
.color-more { font-size: 0.6875rem; color: var(--zinc-400); }

.add-to-cart-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--secondary-500);
  color: white;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  transition: all 0.2s;
}
.add-to-cart-btn:hover { background: var(--secondary-600); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,104,1,0.3); }
.add-to-cart-btn.added { background: var(--primary-500); }
.add-to-cart-btn.added:hover { box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.add-to-cart-btn:disabled { background: var(--zinc-200); color: var(--zinc-500); cursor: not-allowed; transform: none; box-shadow: none; }
.add-to-cart-btn svg { width: 16px; height: 16px; }

/* ===== Banner Strip ===== */
.banner-strip {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
}
.banner-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.banner-strip h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.banner-strip p { font-size: 0.8125rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.banner-strip-btn {
  background: white;
  color: var(--primary-700);
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.banner-strip-btn:hover { background: var(--zinc-100); transform: translateY(-1px); }

/* ===== App Banner ===== */
.app-banner {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: white;
}
.app-banner h3 { font-size: 1.25rem; font-weight: 700; }
.app-banner p { font-size: 0.8125rem; color: rgba(255,255,255,0.8); margin-top: 0.25rem; }
.app-btns { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.app-btn {
  background: white;
  color: var(--secondary-700);
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: background 0.2s;
}
.app-btn:hover { background: var(--zinc-100); }

/* ===== Cart Drawer ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: none;
}
.cart-overlay.show { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--surface-card);
  z-index: 301;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--zinc-200);
}
.cart-drawer-header h2 { font-size: 1.125rem; font-weight: 700; color: var(--zinc-800); }
.cart-drawer-header-left { display: flex; align-items: center; gap: 0.5rem; }
.cart-drawer-header-left svg { width: 20px; height: 20px; color: var(--primary-600); }
.cart-close { padding: 0.375rem; border-radius: 0.5rem; }
.cart-close:hover { background: var(--zinc-100); }
.cart-close svg { width: 20px; height: 20px; }

.cart-items { flex: 1; overflow-y: auto; padding: 0 1.25rem; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 16rem;
  color: var(--zinc-400);
}
.cart-empty svg { width: 48px; height: 48px; margin-bottom: 0.75rem; }
.cart-empty p { font-size: 0.8125rem; font-weight: 500; }
.cart-empty .sub { font-size: 0.75rem; color: var(--zinc-400); margin-top: 0.25rem; }

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--zinc-100);
}
.cart-item-img {
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--zinc-100);
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 0.8125rem; font-weight: 500; color: var(--zinc-800); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-variant { font-size: 0.6875rem; color: var(--zinc-500); margin-top: 0.125rem; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.cart-item-price { font-size: 0.8125rem; font-weight: 700; color: var(--primary-600); }
.cart-item-remove { padding: 0.25rem; color: var(--zinc-400); }
.cart-item-remove:hover { color: var(--accent-coral); }
.cart-item-remove svg { width: 16px; height: 16px; }

.quantity-controls { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.375rem; }
.qty-btn {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--zinc-300);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.15s;
}
.qty-btn:hover { background: var(--zinc-50); }
.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-value { width: 1.5rem; text-align: center; font-size: 0.8125rem; font-weight: 500; }

.cart-footer {
  border-top: 1px solid var(--zinc-200);
  padding: 1rem 1.25rem;
  background: var(--zinc-50);
}
.cart-totals { font-size: 0.8125rem; }
.cart-total-row { display: flex; justify-content: space-between; padding: 0.25rem 0; color: var(--zinc-600); }
.cart-total-row.free { color: var(--primary-600); font-weight: 500; }
.cart-grand-total { display: flex; justify-content: space-between; padding: 0.75rem 0 0; margin-top: 0.5rem; border-top: 1px solid var(--zinc-200); font-weight: 700; font-size: 1rem; color: var(--zinc-800); }
.shipping-hint { font-size: 0.6875rem; color: var(--zinc-400); margin-bottom: 0.25rem; }

.cart-actions { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.checkout-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--secondary-500);
  color: white;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: background 0.2s;
}
.checkout-btn:hover { background: var(--secondary-600); }
.clear-cart-btn {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--zinc-500);
  text-align: center;
}
.clear-cart-btn:hover { color: var(--accent-coral); }

.cart-continue-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-600);
  color: white;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.8125rem;
}

/* ===== Quick View Modal ===== */
.quickview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.quickview-overlay.show { display: flex; }

.quickview-modal {
  background: var(--surface-card);
  border-radius: 1rem;
  max-width: 42rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.quickview-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  z-index: 5;
}
.quickview-close:hover { background: white; }
.quickview-close svg { width: 20px; height: 20px; }

.quickview-grid { display: grid; grid-template-columns: 1fr; }

.quickview-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--zinc-100);
}
.quickview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}
.quickview-image .badge { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 10; }

.quickview-body { padding: 1.5rem; }
.quickview-vendor { font-size: 0.75rem; color: var(--zinc-500); margin-bottom: 0.25rem; }
.quickview-title { font-size: 1.125rem; font-weight: 600; color: var(--zinc-800); }

.quickview-rating { margin-top: 0.5rem; }

.quickview-prices { margin-top: 0.75rem; display: flex; align-items: baseline; gap: 0.75rem; }
.quickview-price { font-size: 1.5rem; font-weight: 700; color: var(--primary-600); }
.quickview-old-price { font-size: 0.875rem; color: var(--zinc-400); text-decoration: line-through; }

.quickview-desc { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--zinc-600); line-height: 1.6; }

.variant-section { margin-top: 1rem; }
.variant-label { font-size: 0.8125rem; font-weight: 500; color: var(--zinc-700); }
.variant-label span { color: var(--zinc-500); font-weight: 400; }
.variant-options { display: flex; gap: 0.375rem; margin-top: 0.375rem; flex-wrap: wrap; }

.variant-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid var(--zinc-300);
  border-radius: 0.5rem;
  color: var(--zinc-600);
  transition: all 0.15s;
}
.variant-btn:hover { border-color: var(--primary-400); }
.variant-btn.active { border-color: var(--primary-600); background: var(--primary-50); color: var(--primary-600); }

.quickview-qty { margin-top: 1rem; }
.qty-selector { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.qty-selector button {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--zinc-300);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.qty-selector button:hover { background: var(--zinc-50); }
.qty-selector span { width: 2rem; text-align: center; font-weight: 500; }

.quickview-stock { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.stock-in { color: var(--primary-500); font-weight: 500; font-size: 0.75rem; }
.stock-out { color: var(--accent-coral); font-weight: 500; font-size: 0.75rem; }
.stock-check { width: 14px; height: 14px; }

.quickview-add-btn {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}
.quickview-add-btn:not(:disabled) { background: var(--secondary-500); color: white; }
.quickview-add-btn:not(:disabled):hover { background: var(--secondary-600); }
.quickview-add-btn:disabled { background: var(--zinc-200); color: var(--zinc-500); cursor: not-allowed; }
.quickview-add-btn svg { width: 18px; height: 18px; }
.quickview-add-btn.added { background: var(--primary-500); }

/* ===== Footer ===== */
.footer {
  margin-top: 4rem;
  background: #0f172a;
  color: #94a3b8;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.8125rem; color: #64748b; line-height: 1.6; margin-bottom: 1rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: #1e293b;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s;
}
.social-link:hover { background: var(--primary-600); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.8125rem; color: #64748b; transition: color 0.2s; }
.footer-col ul a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.payment-methods { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.payment-methods span:first-child { font-size: 0.75rem; color: #64748b; }
.payment-badge {
  padding: 0.25rem 0.5rem;
  background: #1e293b;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
}
.footer-copy { font-size: 0.6875rem; color: #64748b; text-align: center; }
.footer-copy a { color: #94a3b8; transition: color 0.2s; }
.footer-copy a:hover { color: white; }

/* ===== Checkout Modal ===== */
/* ---- AUTH MODAL ---- */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-modal {
  background: var(--surface-card);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  position: relative;
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--zinc-400);
  line-height: 1;
}
.auth-close:hover { color: var(--zinc-600); }
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--zinc-200);
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--zinc-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.auth-tab.active {
  color: var(--primary-600, #16a34a);
  border-bottom-color: var(--primary-600, #16a34a);
}
.auth-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.auth-panel input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--zinc-300);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.auth-panel input:focus {
  border-color: var(--primary-600, #16a34a);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

/* ---- CHECKOUT OVERLAY ---- */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  display: none;
  overflow-y: auto;
  padding: 1rem;
}
.checkout-overlay.show { display: block; }

.checkout-modal {
  background: var(--zinc-100);
  max-width: 64rem;
  margin: 2rem auto;
  border-radius: 1rem;
  position: relative;
}
.checkout-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background: var(--surface-card);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 5;
}
.checkout-close:hover { background: var(--zinc-100); }
.checkout-close svg { width: 20px; height: 20px; }

.checkout-body { padding: 2rem; }

/* Steps */
.steps { display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.step-item { display: flex; align-items: center; gap: 0.5rem; }
.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}
.step-num.active { background: var(--primary-600); color: white; }
.step-num.done { background: var(--primary-600); color: white; }
.step-num.pending { background: var(--zinc-200); color: var(--zinc-500); }
.step-label { font-size: 0.8125rem; font-weight: 500; }
.step-label.active { color: var(--primary-600); }
.step-label.pending { color: var(--zinc-400); }
.step-connector {
  width: 3rem;
  height: 2px;
  margin: 0 0.75rem;
}
.step-connector.done { background: var(--primary-600); }
.step-connector.pending { background: var(--zinc-200); }

.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }

.checkout-form-card {
  background: var(--surface-card);
  border-radius: 0.75rem;
  border: 1px solid var(--zinc-200);
  padding: 1.5rem;
}
.checkout-form-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--zinc-800); margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--zinc-700); margin-bottom: 0.375rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--zinc-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary-500); }
.form-group textarea { resize: vertical; min-height: 3rem; }

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

.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--zinc-200);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}
.payment-option:hover { border-color: var(--zinc-300); }
.payment-option.selected { border-color: var(--primary-600); background: var(--primary-50); }
.payment-option input[type="radio"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary-600);
}
.payment-icon { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; }
.payment-icon img { width: 100%; height: 100%; object-fit: contain; }
.payment-icon-fallback { background: var(--zinc-200); border-radius: 0.5rem; font-size: 1rem; font-weight: 700; color: var(--zinc-500); }
.payment-name { font-size: 0.8125rem; font-weight: 500; color: var(--zinc-800); }
.payment-desc { font-size: 0.75rem; color: var(--zinc-500); }

.payment-detail-card {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--zinc-50);
  border-radius: 0.75rem;
  border: 1px solid var(--zinc-200);
}

.step-actions { display: flex; justify-content: space-between; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--zinc-200); }
.step-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--zinc-600);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}
.step-back:hover { background: var(--zinc-100); }
.btn { padding: 0.625rem 1.5rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.875rem; transition: all 0.2s; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary-600); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-700); }
.btn-secondary { background: var(--secondary-500); color: white; }
.btn-secondary:hover:not(:disabled) { background: var(--secondary-600); }

/* Order summary sidebar */
.checkout-summary {
  background: var(--surface-card);
  border: 1px solid var(--zinc-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}
.checkout-summary h3 { font-size: 1rem; font-weight: 700; color: var(--zinc-800); margin-bottom: 1rem; }

.summary-item { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--zinc-600); padding: 0.25rem 0; }
.summary-totals { border-top: 1px solid var(--zinc-200); margin-top: 1rem; padding-top: 0.75rem; }
.summary-total { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--zinc-600); padding: 0.25rem 0; }
.summary-grand { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; color: var(--zinc-800); padding-top: 0.75rem; margin-top: 0.5rem; border-top: 1px solid var(--zinc-200); }

/* Success state */
.order-success {
  text-align: center;
  padding: 3rem 1rem;
}
.success-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.success-icon svg { width: 2rem; height: 2rem; color: var(--primary-600); }
.order-success h2 { font-size: 1.5rem; font-weight: 700; color: var(--zinc-800); }
.order-success p { color: var(--zinc-500); margin-top: 0.5rem; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #27272a;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  z-index: 600;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== Product Detail Page ===== */
.breadcrumb { font-size: 0.75rem; color: var(--zinc-500); margin-bottom: 1rem; }
.breadcrumb a { color: var(--zinc-500); }
.breadcrumb a:hover { color: var(--primary-600); }
.breadcrumb .sep { margin: 0 0.375rem; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--surface-card);
  border-radius: 0.75rem;
  border: 1px solid var(--zinc-200);
  padding: 1.5rem;
}

.detail-images { position: relative; }
.detail-main-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--zinc-100);
  border-radius: 1rem;
  overflow: hidden;
}
.detail-main-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: flex; gap: 0.75rem; margin-top: 1rem; }
.detail-thumb {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid var(--zinc-200);
  cursor: pointer;
  transition: border-color 0.2s;
}
.detail-thumb:hover { border-color: var(--zinc-400); }
.detail-thumb.active { border-color: var(--primary-600); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info .product-vendor { font-size: 0.8125rem; }
.detail-info h1 { font-size: 1.5rem; font-weight: 700; color: var(--zinc-900); margin-top: 0.25rem; }
.detail-prices { margin-top: 1rem; }
.detail-prices .product-price { font-size: 1.75rem; }

.detail-stock { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }

.detail-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.detail-add-btn {
  flex: 1;
  min-width: 12rem;
  padding: 0.875rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.detail-add-btn:not(:disabled) { background: var(--secondary-500); color: white; }
.detail-add-btn:not(:disabled):hover { background: var(--secondary-600); }
.detail-add-btn:disabled { background: var(--zinc-200); color: var(--zinc-500); cursor: not-allowed; }
.detail-add-btn svg { width: 20px; height: 20px; }

.detail-icon-btn {
  padding: 0.875rem;
  border: 1px solid var(--zinc-300);
  border-radius: 0.75rem;
  color: var(--zinc-500);
  display: flex;
  transition: all 0.2s;
}
.detail-icon-btn:hover { border-color: var(--zinc-400); }
.detail-icon-btn.wishlisted { border-color: #FECACA; background: #FEF2F2; color: var(--accent-coral); }
.detail-icon-btn svg { width: 20px; height: 20px; }

.buy-now-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.875rem;
  background: var(--primary-600);
  color: white;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}
.buy-now-btn:hover { background: var(--primary-700); }

/* Product detail tabs */
.detail-tabs { margin-top: 3rem; }
.tab-bar { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--zinc-200); background: var(--surface-card); border-radius: 0.75rem 0.75rem 0 0; padding: 0 1.5rem; }
.tab-btn {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zinc-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--zinc-700); }
.tab-btn.active { border-color: var(--primary-600); color: var(--primary-600); }
.tab-content { padding: 1.5rem 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p { font-size: 0.875rem; color: var(--zinc-600); line-height: 1.7; }

.info-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
.info-box {
  background: var(--zinc-50);
  border-radius: 0.5rem;
  padding: 0.75rem;
}
.info-box p:first-child { font-size: 0.75rem; color: var(--zinc-500); }
.info-box p:last-child { font-size: 0.8125rem; font-weight: 500; color: var(--zinc-800); margin-top: 0.125rem; }

.review-item { border-bottom: 1px solid var(--zinc-100); padding: 1rem 0; }
.review-header { display: flex; align-items: center; gap: 0.5rem; }
.review-avatar {
  width: 2rem;
  height: 2rem;
  background: var(--primary-100);
  color: var(--primary-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}
.review-name { font-size: 0.8125rem; font-weight: 500; color: var(--zinc-800); }
.review-text { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--zinc-600); margin-left: 2.5rem; }

/* ============================================================
   RESPONSIVE — Three-tier breakpoint system
   Mobile:  ≤767px   |   Tablet: 768–1024px   |   Desktop: ≥1025px
   ============================================================ */

/* ---- DESKTOP (≥1025px) — DEFAULT ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hamburger { display: none; }
.mobile-search { display: none !important; }
.navbar { display: block; }
.search-bar select { display: block; }
.category-sidebar { display: block; }
.profile-label { display: inline; }
.footer-grid { grid-template-columns: repeat(4, 1fr); }
.footer-bottom { flex-direction: row; justify-content: space-between; }
.checkout-grid { grid-template-columns: 3fr 2fr; }
.detail-add-btn { min-width: 16rem; }

/* ---- TABLET (768px – 1024px) ---- */
@media (max-width: 1024px) and (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 0.875rem; }
  .hamburger { display: flex; }
  .navbar { display: none; }
  .mobile-search { display: none !important; }
  .profile-label { display: inline; }
  .category-sidebar { display: none; }
  .hero-headline { font-size: 2.25rem; }
  .hero-subtext { max-width: 100%; }
  .hero-daraz-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-cslide { min-height: 280px; padding: 1.25rem 1.5rem; }
  .cslide-visual-bg { height: 220px; }
  .cslide-title { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .checkout-grid { grid-template-columns: 1fr; }
  .detail-add-btn { min-width: 12rem; }
  .quickview-grid { grid-template-columns: 1fr 1fr; }
  .quickview-image img { border-radius: 1rem 0 0 1rem; }
  .product-detail { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .flash-card { width: 10rem; }
  .container { padding: 0 0.75rem; }
  .product-card-body { padding: 0.5rem; }
  .product-title { font-size: 0.75rem; min-height: 1.75rem; }
  .product-price { font-size: 0.875rem; }
  .add-to-cart-btn { font-size: 0.75rem; padding: 0.375rem; }
  .detail-info h1 { font-size: 1.25rem; }
  .quickview-body { padding: 1rem; }
  .hero-carousel-arrow { width: 32px; height: 32px; font-size: 1.25rem; }
  .cslide-desc { max-width: 100%; }
  .cslide-product-img { max-width: 160px; }
  .banner-strip { flex-direction: column; text-align: center; gap: 1rem; }
  .banner-strip h3 { font-size: 1.125rem; }
  .header-actions { gap: 0.25rem; }
  .search-bar select { display: none; }
  .flash-carousel-arrows { display: none; }
  .detail-actions { flex-direction: column; }
  .detail-icon-btn { width: fit-content; }
  .steps { flex-wrap: wrap; gap: 0.5rem; }
  .step-connector { width: 1.5rem; }
}

/* ---- MOBILE (≤767px) ---- */
@media (max-width: 767px) {
  .container { padding: 0 0.5rem; }

  /* Header */
  .header-inner { gap: 0.5rem; padding: 0.5rem 0.75rem; }
  .hamburger { display: flex; }
  .logo { font-size: 1.1rem; }
  .logo img { height: 24px; }
  .search-bar { display: none; }
  .mobile-search { display: block; padding: 0.5rem 0.75rem; }
  .mobile-search .search-bar { display: flex; margin: 0; max-width: 100%; }
  .mobile-search .search-bar select { display: none; }
  .mobile-search .search-bar input { font-size: 0.8125rem; padding: 0.5rem 0.75rem; }

  /* Header actions */
  .header-actions { gap: 0.125rem; }
  .dm-toggle { display: none; }
  .lang-toggle span { display: none; }
  .profile-btn { padding: 0.375rem; }
  .profile-label { display: none; }
  .profile-btn svg { width: 18px; height: 18px; }
  .profile-dropdown { right: -3rem; width: 180px; }
  .cart-btn { padding: 0.375rem; }
  .cart-btn svg { width: 20px; height: 20px; }
  .cart-badge { width: 18px; height: 18px; font-size: 0.5625rem; top: -0.25rem; right: -0.25rem; }

  /* Navbar */
  .navbar { display: none; }

  /* Announcement bar */
  .announcement-bar { font-size: 0.6875rem; padding: 0.375rem 0.75rem; }

  /* Hero section */
  .hero-daraz-inner { grid-template-columns: 1fr; gap: 1rem; }
  .hero-headline { font-size: 1.75rem; }
  .hero-subtext { font-size: 0.875rem; max-width: 100%; }
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-primary { justify-content: center; padding: 0.75rem 1.5rem; font-size: 0.875rem; }
  .hero-cta-secondary { justify-content: center; padding: 0.75rem 1.5rem; font-size: 0.875rem; }

  /* Carousel */
  .hero-cslide { min-height: 240px; padding: 1rem; }
  .cslide-title { font-size: 1rem; }
  .cslide-desc { font-size: 0.75rem; max-width: 100%; }
  .cslide-price-current { font-size: 0.9375rem; }
  .cslide-cta { padding: 0.5rem 1rem; font-size: 0.75rem; }
  .cslide-visual { display: none; }
  .cslide-product-img { max-width: 120px; }
  .cslide-visual-bg { height: 160px; }
  .hero-carousel-arrow { width: 28px; height: 28px; font-size: 1rem; }
  .hero-carousel-prev { left: 0.375rem; }
  .hero-carousel-next { right: 0.375rem; }
  .hero-carousel-dots { bottom: 0.5rem; }
  .hero-carousel-dot { width: 6px; height: 6px; }
  .hero-carousel-dot.active { width: 16px; }

  /* Free shipping bar */
  .free-ship-bar { font-size: 0.8125rem; padding: 0.625rem 0.75rem; flex-wrap: wrap; text-align: center; }

  /* Flash sale */
  .flash-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .flash-header-left { width: 100%; justify-content: space-between; }
  .flash-title { font-size: 1rem; }
  .flash-timer { flex-shrink: 0; }
  .timer-unit { font-size: 0.8125rem; min-width: 1.5rem; padding: 0.0625rem 0.25rem; }
  .flash-carousel { padding: 0 0.5rem; }
  .flash-card { width: 8rem; }
  .flash-card-body p { font-size: 0.625rem; }
  .flash-price { font-size: 0.75rem; }
  .flash-carousel-arrows { display: none; }

  /* Layout */
  .layout-row { flex-direction: column; gap: 1rem; }
  .category-sidebar { display: none; }

  /* Product grid */
  .main-content { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

  /* Section header */
  .section-header h2 { font-size: 1rem; }
  .section-header a { font-size: 0.75rem; }

  /* Product card */
  .product-card { border-radius: 0.5rem; }
  .product-card-body { padding: 0.375rem; }
  .product-vendor { font-size: 0.625rem; }
  .product-title { font-size: 0.6875rem; min-height: 1.5rem; }
  .product-rating { margin-top: 0.125rem; }
  .stars svg { width: 12px; height: 12px; }
  .rating-count { font-size: 0.625rem; }
  .product-prices { gap: 0.25rem; margin-top: 0.25rem; }
  .product-price { font-size: 0.8125rem; }
  .product-old-price { font-size: 0.625rem; }
  .product-colors { margin-top: 0.25rem; }
  .color-dot { width: 12px; height: 12px; }
  .add-to-cart-btn { font-size: 0.6875rem; padding: 0.375rem; margin-top: 0.375rem; }
  .add-to-cart-btn svg { width: 14px; height: 14px; }
  .quick-view-overlay { display: none; }

  /* Badges */
  .badge { font-size: 0.5625rem; padding: 0.0625rem 0.375rem; }

  /* Banner strip */
  .banner-strip { flex-direction: column; text-align: center; gap: 0.75rem; padding: 1.25rem; margin-top: 1rem; }
  .banner-strip h3 { font-size: 1rem; }
  .banner-strip p { font-size: 0.75rem; }
  .banner-strip-btn { width: 100%; text-align: center; }

  /* App banner */
  .app-banner { margin-top: 1rem; padding: 1.25rem; }
  .app-banner h3 { font-size: 1rem; }
  .app-banner p { font-size: 0.75rem; }
  .app-btns { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .app-btn { text-align: center; }

  /* Product detail */
  .product-detail { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .detail-info h1 { font-size: 1.125rem; }
  .detail-prices .product-price { font-size: 1.25rem; }
  .detail-actions { flex-direction: column; }
  .detail-add-btn { min-width: 100%; font-size: 0.875rem; padding: 0.75rem; }
  .detail-icon-btn { width: fit-content; }
  .detail-thumbs { gap: 0.5rem; }
  .detail-thumb { width: 3rem; height: 3rem; }
  .detail-tabs { margin-top: 1.5rem; }
  .tab-bar { gap: 0; overflow-x: auto; padding: 0 0.75rem; }
  .tab-btn { font-size: 0.75rem; padding: 0.625rem 0.75rem; white-space: nowrap; }
  .info-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer { margin-top: 2rem; }
  .footer-inner { padding: 2rem 0.75rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
  .payment-methods { justify-content: center; flex-wrap: wrap; }
  .social-links { justify-content: center; }

  /* Cart drawer */
  .cart-drawer { max-width: 100%; }
  .cart-drawer-header { padding: 0.75rem 1rem; }
  .cart-items { padding: 0 1rem; }
  .cart-footer { padding: 0.75rem 1rem; }
  .cart-item-img { width: 4rem; height: 4rem; }

  /* Quick view modal */
  .quickview-overlay { align-items: flex-end; padding: 0; }
  .quickview-modal { max-height: 85vh; border-radius: 1rem 1rem 0 0; max-width: 100%; }
  .quickview-grid { grid-template-columns: 1fr; }
  .quickview-image { aspect-ratio: 1; max-height: 40vh; }
  .quickview-image img { border-radius: 1rem 1rem 0 0; }
  .quickview-body { padding: 1rem; }
  .quickview-title { font-size: 1rem; }
  .quickview-price { font-size: 1.25rem; }
  .quickview-close { top: 0.5rem; right: 0.5rem; }

  /* Auth modal */
  .auth-overlay { align-items: flex-end; padding: 0; }
  .auth-modal { border-radius: 1rem 1rem 0 0; padding: 1.5rem; max-width: 100%; }

  /* Checkout modal */
  .checkout-modal { margin: 0; border-radius: 0; min-height: 100vh; }
  .checkout-body { padding: 1rem; }
  .checkout-overlay { padding: 0; }
  .checkout-grid { grid-template-columns: 1fr; gap: 1rem; }
  .steps { flex-wrap: wrap; gap: 0.375rem; }
  .step-connector { width: 1rem; margin: 0 0.375rem; }
  .step-label { font-size: 0.6875rem; }
  .step-num { width: 1.5rem; height: 1.5rem; font-size: 0.6875rem; }
  .form-row { grid-template-columns: 1fr; }
  .step-actions { flex-direction: column; gap: 0.5rem; }
  .step-back { justify-content: center; }

  /* Toast */
  .toast { left: 1rem; right: 1rem; bottom: 1rem; text-align: center; font-size: 0.8125rem; }

  /* Back to top */
  .back-to-top { width: 36px; height: 36px; bottom: 1rem; right: 1rem; }

  /* Newsletter modal */
  .newsletter-overlay { align-items: flex-end; padding: 0; }
  .newsletter-modal { border-radius: 1rem 1rem 0 0; padding: 1.5rem; max-width: 100%; }
  .newsletter-input-group { flex-direction: column; }
  .newsletter-input-group button { width: 100%; }

  /* Size guide modal */
  .size-guide-overlay { align-items: flex-end; padding: 0; }
  .size-guide-modal { border-radius: 1rem 1rem 0 0; max-width: 100%; padding: 1.5rem; }

  /* Account page */
  .account-page { padding: 0 0.5rem; }
  .account-tabs { overflow-x: auto; gap: 0; }
  .account-tab { font-size: 0.75rem; padding: 0.5rem 0.75rem; white-space: nowrap; }
  .account-card { padding: 1rem; }

  /* Coupon */
  .coupon-input-group { flex-direction: column; }

  /* Review form */
  .review-form .review-form-actions { flex-direction: column; }
  .review-form .review-form-actions button { width: 100%; justify-content: center; }

  /* Recently viewed */
  .recently-viewed-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; }

  /* Misc */
  .mark-section { margin-top: 1.5rem; }

  /* Mobile menu adjustments */
  .mobile-menu { width: 18rem; }

  /* Search suggestions mobile */
  .search-suggestions { max-height: 240px; }
  .search-suggestion-item { padding: 0.5rem 0.75rem; }
  .search-suggestion-item img { width: 28px; height: 28px; }
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* ===== IMAGE HOVER ===== */
.product-img-hover { position:relative; }
.product-img-hover img { transition:opacity 0.4s ease; }
.product-img-hover .img-primary { position:relative; z-index:1; }
.product-img-hover .img-hover { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:contain; opacity:0; z-index:2; padding:0.75rem; background:var(--zinc-100); }
.product-card:hover .product-img-hover .img-primary { opacity:0; }
.product-card:hover .product-img-hover .img-hover { opacity:1; }

/* ===== SIZE GUIDE MODAL ===== */
.size-guide-overlay {
  position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,0.5);
  display:none; align-items:center; justify-content:center; padding:1rem;
}
.size-guide-overlay.show { display:flex; }
.size-guide-modal {
  background:var(--bg-card); border-radius:1rem; max-width:500px; width:100%;
  max-height:80vh; overflow-y:auto; padding:2rem; position:relative;
}
.dark-mode .size-guide-modal { background:var(--bg-dark-card); }
.size-guide-close {
  position:absolute; top:1rem; right:1rem; background:none; border:none;
  cursor:pointer; font-size:1.5rem; color:var(--zinc-400); padding:0.25rem;
}
.size-guide-close:hover { color:var(--zinc-600); }
.size-guide-modal h2 { font-size:1.25rem; font-weight:600; margin-bottom:1.5rem; }
.size-guide-tables { display:flex; flex-direction:column; gap:1.5rem; }
.size-guide-table { width:100%; border-collapse:collapse; font-size:0.8125rem; }
.size-guide-table th { background:var(--primary-500); color:#fff; padding:0.5rem 0.75rem; text-align:left; font-weight:500; }
.size-guide-table th:first-child { border-radius:0.375rem 0 0 0; }
.size-guide-table th:last-child { border-radius:0 0.375rem 0 0; }
.size-guide-table td { padding:0.5rem 0.75rem; border-bottom:1px solid var(--zinc-100); color:var(--zinc-600); }
.size-guide-table tr:last-child td:first-child { border-radius:0 0 0 0.375rem; }
.size-guide-table tr:last-child td:last-child { border-radius:0 0 0.375rem 0; }
.dark-mode .size-guide-table td { border-bottom-color:var(--zinc-700); color:var(--zinc-300); }
.size-guide-tip { font-size:0.75rem; color:var(--zinc-500); margin-top:1rem; font-style:italic; }

/* ===== NEWSLETTER FORM ===== */
.newsletter-overlay {
  position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,0.5);
  display:none; align-items:center; justify-content:center; padding:1rem;
}
.newsletter-overlay.show { display:flex; }
.newsletter-modal {
  background:var(--bg-card); border-radius:1rem; max-width:420px; width:100%;
  padding:2.5rem; position:relative; text-align:center;
}
.dark-mode .newsletter-modal { background:var(--bg-dark-card); }
.newsletter-close {
  position:absolute; top:1rem; right:1rem; background:none; border:none;
  cursor:pointer; font-size:1.5rem; color:var(--zinc-400); padding:0.25rem;
}
.newsletter-modal h2 { font-size:1.25rem; font-weight:600; margin-bottom:0.5rem; }
.newsletter-modal p { font-size:0.8125rem; color:var(--zinc-500); margin-bottom:1.5rem; }
.newsletter-input-group { display:flex; gap:0.5rem; }
.newsletter-input-group input {
  flex:1; padding:0.625rem 0.875rem; border:1px solid var(--zinc-200); border-radius:0.5rem;
  font-size:0.875rem; outline:none;
}
.newsletter-input-group input:focus { border-color:var(--primary-400); box-shadow:0 0 0 3px var(--primary-100); }
.dark-mode .newsletter-input-group input { background:var(--bg-dark); border-color:var(--zinc-700); color:var(--zinc-200); }
.newsletter-input-group button {
  padding:0.625rem 1.25rem; background:var(--primary-500); color:#fff; border:none;
  border-radius:0.5rem; font-size:0.875rem; font-weight:500; cursor:pointer; white-space:nowrap;
}
.newsletter-input-group button:hover { background:var(--primary-600); }
.newsletter-success { display:none; }
.newsletter-success.show { display:block; }
.newsletter-success .check { font-size:2.5rem; margin-bottom:0.5rem; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position:fixed; bottom:2rem; right:2rem; z-index:900; width:40px; height:40px;
  background:var(--primary-500); color:#fff; border:none; border-radius:50%;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:all 0.3s ease; box-shadow:0 2px 12px rgba(0,0,0,0.15);
}
.back-to-top.visible { opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover { background:var(--primary-600); transform:translateY(-2px); }
.dark-mode .back-to-top { box-shadow:0 2px 12px rgba(0,0,0,0.4); }

/* ===== SEARCH AUTOCOMPLETE ===== */
.search-wrapper { position:relative; }
.search-suggestions {
  position:absolute; top:100%; left:0; right:0; z-index:100;
  background:var(--bg-card); border:1px solid var(--zinc-200); border-radius:0 0 0.5rem 0.5rem;
  box-shadow:0 4px 20px rgba(0,0,0,0.1); max-height:320px; overflow-y:auto; display:none;
}
.dark-mode .search-suggestions { background:var(--bg-dark-card); border-color:var(--zinc-700); }
.search-suggestions.show { display:block; }
.search-suggestion-item {
  display:flex; align-items:center; gap:0.75rem; padding:0.625rem 0.875rem;
  cursor:pointer; transition:background 0.15s;
}
.search-suggestion-item:hover { background:var(--zinc-50); }
.dark-mode .search-suggestion-item:hover { background:var(--zinc-800); }
.search-suggestion-item img { width:36px; height:36px; object-fit:cover; border-radius:0.25rem; background:var(--zinc-100); }
.search-suggestion-item .suggestion-info { flex:1; min-width:0; }
.search-suggestion-item .suggestion-title { font-size:0.8125rem; color:var(--zinc-700); }
.dark-mode .search-suggestion-item .suggestion-title { color:var(--zinc-300); }
.search-suggestion-item .suggestion-price { font-size:0.75rem; color:var(--primary-600); font-weight:500; }

/* ===== COUPON INPUT ===== */
.coupon-section { margin:1rem 0; }
.coupon-input-group { display:flex; gap:0.5rem; }
.coupon-input-group input {
  flex:1; padding:0.5rem 0.75rem; border:1px solid var(--zinc-200); border-radius:0.375rem;
  font-size:0.8125rem; outline:none;
}
.coupon-input-group input:focus { border-color:var(--primary-400); }
.dark-mode .coupon-input-group input { background:var(--bg-dark); border-color:var(--zinc-700); color:var(--zinc-200); }
.coupon-input-group button {
  padding:0.5rem 1rem; background:var(--zinc-100); border:1px solid var(--zinc-200); border-radius:0.375rem;
  font-size:0.8125rem; cursor:pointer; font-weight:500;
}
.coupon-input-group button:hover { background:var(--zinc-200); }
.dark-mode .coupon-input-group button { background:var(--zinc-800); border-color:var(--zinc-700); color:var(--zinc-300); }
.coupon-applied {
  display:flex; align-items:center; gap:0.5rem; padding:0.5rem 0.75rem;
  background:var(--primary-50); border:1px solid var(--primary-100); border-radius:0.375rem;
  font-size:0.8125rem; color:var(--primary-700);
}
.dark-mode .coupon-applied { background:rgba(99,102,241,0.1); border-color:rgba(99,102,241,0.2); color:var(--primary-400); }
.coupon-applied .remove-coupon {
  margin-left:auto; background:none; border:none; cursor:pointer; color:var(--accent-coral); font-size:0.8125rem;
}

/* ===== REVIEW FORM ===== */
.review-form { margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid var(--zinc-200); }
.dark-mode .review-form { border-top-color:var(--zinc-700); }
.review-form h4 { font-size:0.9375rem; font-weight:600; margin-bottom:1rem; }
.star-rating-input { display:flex; gap:0.25rem; margin-bottom:0.75rem; }
.star-rating-input button {
  background:none; border:none; cursor:pointer; font-size:1.25rem; color:var(--zinc-300);
  padding:0; line-height:1; transition:color 0.15s;
}
.star-rating-input button.active { color:#f59e0b; }
.star-rating-input button:hover { color:#f59e0b; }
.review-form textarea {
  width:100%; padding:0.625rem 0.875rem; border:1px solid var(--zinc-200); border-radius:0.5rem;
  font-size:0.8125rem; resize:vertical; min-height:80px; outline:none; box-sizing:border-box;
}
.review-form textarea:focus { border-color:var(--primary-400); }
.dark-mode .review-form textarea { background:var(--bg-dark); border-color:var(--zinc-700); color:var(--zinc-200); }
.review-form .review-form-actions { display:flex; gap:0.5rem; margin-top:0.75rem; }
.review-form .review-form-actions button {
  padding:0.5rem 1rem; border-radius:0.5rem; font-size:0.8125rem; cursor:pointer; font-weight:500;
}
.review-submit-btn { background:var(--primary-500); color:#fff; border:none; }
.review-submit-btn:hover { background:var(--primary-600); }
.review-cancel-btn { background:none; border:1px solid var(--zinc-200); color:var(--zinc-600); }
.review-cancel-btn:hover { background:var(--zinc-50); }
.dark-mode .review-cancel-btn { border-color:var(--zinc-700); color:var(--zinc-400); }

/* ===== RECENTLY VIEWED ===== */
.recently-viewed { margin-top:2rem; }
.recently-viewed .section-header { margin-bottom:0.75rem; }
.recently-viewed-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:0.75rem; }
.recently-viewed-item {
  display:flex; flex-direction:column; gap:0.375rem; cursor:pointer;
  padding:0.5rem; border-radius:0.5rem; transition:background 0.15s;
}
.recently-viewed-item:hover { background:var(--zinc-50); }
.dark-mode .recently-viewed-item:hover { background:var(--zinc-800); }
.recently-viewed-item img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:0.375rem; background:var(--zinc-100); }
.recently-viewed-item .rv-title { font-size:0.75rem; color:var(--zinc-600); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.recently-viewed-item .rv-price { font-size:0.75rem; color:var(--primary-600); font-weight:600; }

/* ===== ACCOUNT PAGE ===== */
.account-page { max-width:800px; margin:0 auto; }
.account-tabs { display:flex; gap:0.5rem; border-bottom:1px solid var(--zinc-200); margin-bottom:1.5rem; padding-bottom:0; }
.dark-mode .account-tabs { border-bottom-color:var(--zinc-700); }
.account-tab {
  padding:0.625rem 1rem; font-size:0.8125rem; font-weight:500; cursor:pointer;
  border:none; background:none; color:var(--zinc-500); border-bottom:2px solid transparent;
  margin-bottom:-1px; transition:all 0.15s;
}
.account-tab:hover { color:var(--zinc-700); }
.account-tab.active { color:var(--primary-600); border-bottom-color:var(--primary-500); }
.dark-mode .account-tab { color:var(--zinc-400); }
.dark-mode .account-tab:hover { color:var(--zinc-200); }
.dark-mode .account-tab.active { color:var(--primary-400); border-bottom-color:var(--primary-400); }
.account-content { min-height:300px; }
.account-card { background:var(--bg-card); border:1px solid var(--zinc-200); border-radius:0.75rem; padding:1.5rem; margin-bottom:1rem; }
.dark-mode .account-card { background:var(--bg-dark-card); border-color:var(--zinc-700); }
.account-card h3 { font-size:0.9375rem; font-weight:600; margin-bottom:1rem; }
.account-form-group { margin-bottom:0.875rem; }
.account-form-group label { display:block; font-size:0.8125rem; font-weight:500; color:var(--zinc-600); margin-bottom:0.25rem; }
.dark-mode .account-form-group label { color:var(--zinc-400); }
.account-form-group input, .account-form-group select, .account-form-group textarea {
  width:100%; padding:0.5rem 0.75rem; border:1px solid var(--zinc-200); border-radius:0.375rem;
  font-size:0.8125rem; outline:none; box-sizing:border-box;
}
.account-form-group input:focus, .account-form-group select:focus, .account-form-group textarea:focus { border-color:var(--primary-400); }
.dark-mode .account-form-group input, .dark-mode .account-form-group select, .dark-mode .account-form-group textarea { background:var(--bg-dark); border-color:var(--zinc-700); color:var(--zinc-200); }
.account-save-btn { padding:0.5rem 1.5rem; background:var(--primary-500); color:#fff; border:none; border-radius:0.375rem; font-size:0.8125rem; cursor:pointer; font-weight:500; }
.account-save-btn:hover { background:var(--primary-600); }
.address-card { display:flex; justify-content:space-between; align-items:flex-start; padding:1rem; border:1px solid var(--zinc-200); border-radius:0.5rem; margin-bottom:0.75rem; }
.dark-mode .address-card { border-color:var(--zinc-700); }
.address-card p { font-size:0.8125rem; color:var(--zinc-600); margin:0; }
.dark-mode .address-card p { color:var(--zinc-400); }
.address-card .address-actions { display:flex; gap:0.5rem; }
.address-card .address-actions button { background:none; border:none; cursor:pointer; font-size:0.75rem; color:var(--primary-500); padding:0; }
.address-card .address-actions button:hover { color:var(--primary-600); }
.address-card .address-actions .delete-addr { color:var(--accent-coral); }
