/* ============================================================
   SET FREE BRANDS - Main Stylesheet
   Brand Colors: #E8541A (orange), #1a1a1a (dark), #2a2a2a (secondary)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --primary: #E8541A;
  --primary-dark: #c44010;
  --primary-light: #FF7A3D;
  --primary-glow: rgba(232, 84, 26, 0.15);
  --dark: #0f0f0f;
  --dark-2: #1a1a1a;
  --dark-3: #222222;
  --dark-4: #2a2a2a;
  --dark-5: #333333;
  --mid: #555555;
  --light: #888888;
  --lighter: #bbbbbb;
  --border: #2e2e2e;
  --border-light: #3a3a3a;
  --white: #ffffff;
  --off-white: #f5f4f2;
  --cream: #faf9f7;
  
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-ui: 'DM Sans', sans-serif;
  
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 30px rgba(232, 84, 26, 0.2);
  
  --transition: 0.2s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  --header-height: 70px;
  --sidebar-width: 260px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.preloader-logo {
  width: 80px;
  animation: preloader-pulse 1.5s ease-in-out infinite;
}
.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--dark-4);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  animation: preloader-load 1.8s ease forwards;
}
@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.7; }
}
@keyframes preloader-load {
  0% { width: 0; }
  30% { width: 40%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.display-font { font-family: var(--font-display); letter-spacing: 0.05em; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-title span { color: var(--primary); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.grid { display: grid; }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-light { color: var(--lighter); }
.text-muted { color: var(--light); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,84,26,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border-light);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-dark {
  background: var(--dark-4);
  color: var(--white);
  border-color: var(--border);
}
.btn-dark:hover { background: var(--dark-5); border-color: var(--border-light); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-xl { padding: 18px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; display: flex; }
.btn-icon { padding: 10px; border-radius: 50%; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-primary { background: var(--primary); color: white; }
.badge-dark { background: var(--dark-4); color: var(--lighter); border: 1px solid var(--border); }
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo img { height: 44px; width: auto; }

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-form { display: flex; align-items: center; }
.search-input {
  width: 100%;
  background: var(--dark-3);
  border: 1.5px solid var(--border);
  color: var(--white);
  padding: 10px 16px 10px 44px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
}
.search-input:focus {
  border-color: var(--primary);
  background: var(--dark-4);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-input::placeholder { color: var(--mid); }
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--light);
  pointer-events: none;
}
.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
  overflow: hidden;
}
.search-suggestions.active { display: block; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.suggestion-item:hover { background: var(--dark-4); }
.suggestion-img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; background: var(--dark-5); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--lighter);
  transition: all var(--transition);
  font-size: 1.1rem;
}
.header-action-btn:hover { background: var(--dark-3); color: var(--white); }
.action-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark);
}

/* User Dropdown */
.user-menu { position: relative; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}
.user-menu:hover .user-dropdown,
.user-menu.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-header { padding: 16px; border-bottom: 1px solid var(--border); }
.dropdown-header .name { font-weight: 600; font-size: 0.95rem; }
.dropdown-header .email { font-size: 0.8rem; color: var(--light); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--lighter);
  transition: all var(--transition);
}
.dropdown-item:hover { background: var(--dark-4); color: var(--white); }
.dropdown-item.danger:hover { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ============================================================
   CATEGORY NAV BAR
   ============================================================ */
.cat-nav {
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
}
.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  height: 48px;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 100%;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lighter);
  white-space: nowrap;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}
.cat-nav-item:hover,
.cat-nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.cat-nav-item svg { width: 16px; height: 16px; }

/* Announcement bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light), var(--primary));
  background-size: 300% 100%;
  animation: gradient-shift 6s ease infinite;
  color: white;
  text-align: center;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  background: var(--dark-2);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(232,84,26,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-glow);
  border: 1px solid rgba(232,84,26,0.3);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.hero-title .line-2 { color: var(--primary); display: block; }
.hero-desc {
  font-size: 1.05rem;
  color: var(--lighter);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.hero-stat-label { font-size: 0.82rem; color: var(--light); margin-top: 2px; }

/* Hero Image Side */
.hero-visual { position: relative; }
.hero-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 1;
}
.hero-product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-3);
  position: relative;
}
.hero-product-card:first-child { grid-row: span 2; }
.hero-product-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-product-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 2rem;
}

/* ============================================================
   SECTION GENERIC
   ============================================================ */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 96px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
}
.section-header-left { flex: 1; }
.section-subtitle {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.products-grid-5 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.product-card {
  background: var(--dark-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--dark-4);
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.06); }

.product-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--border-light);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-badge-sale { background: var(--primary); color: white; }
.product-badge-new { background: var(--success); color: white; }
.product-badge-hot { background: var(--warning); color: var(--dark); }
.product-badge-out { background: var(--dark-5); color: var(--lighter); }

.product-quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
}
.product-card:hover .product-quick-actions {
  opacity: 1;
  transform: translateX(0);
}
.quick-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-2);
  border: 1px solid var(--border-light);
  color: var(--lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
  cursor: pointer;
}
.quick-action-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.quick-action-btn.wishlisted { color: var(--primary); border-color: var(--primary); }

.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-vendor {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.stars { color: var(--warning); font-size: 0.8rem; letter-spacing: 1px; }
.rating-count { font-size: 0.75rem; color: var(--light); }
.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  margin-top: auto;
}
.price-current {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.price-original {
  font-size: 0.85rem;
  color: var(--light);
  text-decoration: line-through;
}
.price-discount {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(232,84,26,0.15);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.product-add-btn {
  width: 100%;
  padding: 10px;
  background: var(--dark-5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--lighter);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  cursor: pointer;
}
.product-add-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.category-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color, var(--primary));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.category-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.category-card:hover::before { transform: scaleX(1); }
.category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--cat-color, var(--primary)) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.4rem;
  color: var(--cat-color, var(--primary));
}
.category-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lighter);
  line-height: 1.3;
}
.category-count { font-size: 0.72rem; color: var(--light); margin-top: 4px; }

/* ============================================================
   VENDOR CARDS
   ============================================================ */
.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.vendor-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
}
.vendor-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.vendor-banner {
  height: 100px;
  background: linear-gradient(135deg, var(--dark-4) 0%, var(--dark-5) 100%);
  position: relative;
  overflow: hidden;
}
.vendor-banner img { width: 100%; height: 100%; object-fit: cover; }
.vendor-banner-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark-3) 100%);
  opacity: 0.4;
}
.vendor-logo-wrap {
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  border: 3px solid var(--dark-3);
  background: var(--dark-4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}
.vendor-info { padding: 28px 20px 20px; }
.vendor-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.vendor-name { font-size: 1rem; font-weight: 700; }
.vendor-verified { color: var(--info); font-size: 0.85rem; }
.vendor-desc { font-size: 0.82rem; color: var(--light); line-height: 1.5; margin-bottom: 14px; }
.vendor-stats { display: flex; gap: 16px; font-size: 0.8rem; color: var(--lighter); }
.vendor-stat { display: flex; align-items: center; gap: 5px; }

/* ============================================================
   FLASH DEALS / COUNTDOWN
   ============================================================ */
.deals-section {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 0;
}
.countdown-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.countdown-unit {
  text-align: center;
  background: var(--dark-5);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 54px;
}
.countdown-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}
.countdown-label { font-size: 0.65rem; color: var(--light); text-transform: uppercase; letter-spacing: 0.06em; }
.countdown-sep { font-size: 1.4rem; font-weight: 800; color: var(--primary); }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--dark-2);
  border-left: 1px solid var(--border);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-title { font-size: 1.1rem; font-weight: 700; }
.cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--dark-4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--lighter);
  transition: all var(--transition);
}
.cart-close:hover { background: var(--danger); color: white; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--dark-4);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-vendor { font-size: 0.75rem; color: var(--primary); margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--dark-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.qty-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--lighter);
  transition: all var(--transition);
  cursor: pointer;
}
.qty-btn:hover { background: var(--dark-5); color: var(--white); }
.qty-value { min-width: 28px; text-align: center; font-size: 0.85rem; font-weight: 600; }
.cart-item-price { font-size: 0.95rem; font-weight: 700; color: var(--primary); }
.cart-item-remove { font-size: 0.75rem; color: var(--light); cursor: pointer; transition: color var(--transition); }
.cart-item-remove:hover { color: var(--danger); }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 16px;
  color: var(--light);
}
.cart-empty-icon { font-size: 3.5rem; opacity: 0.4; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--dark);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--lighter);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.cart-delivery-note {
  font-size: 0.8rem;
  color: var(--success);
  text-align: center;
  margin-bottom: 14px;
}

/* ============================================================
   PROMO BANNERS
   ============================================================ */
.promo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
.promo-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.promo-card-bg {
  position: absolute;
  inset: 0;
  background: var(--dark-3);
}
.promo-card .content { position: relative; z-index: 1; }
.promo-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.promo-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.promo-card-sm .promo-card-title { font-size: 1.1rem; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-info .toast-icon { color: var(--info); }
.toast-message { font-size: 0.875rem; font-weight: 500; flex: 1; }
.toast-close { color: var(--light); cursor: pointer; font-size: 0.9rem; transition: color var(--transition); }
.toast-close:hover { color: var(--white); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lighter);
  margin-bottom: 8px;
}
.form-label.required::after { content: ' *'; color: var(--primary); }
.form-control {
  width: 100%;
  background: var(--dark-3);
  border: 1.5px solid var(--border);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder { color: var(--mid); }
.form-control.error { border-color: var(--danger); }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 5px; }
.form-hint { font-size: 0.78rem; color: var(--light); margin-top: 5px; }
select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { min-height: 100px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-group { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--light); font-size: 0.9rem; pointer-events: none; }
.input-group .form-control { padding-left: 40px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--light);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--lighter); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-light); }
.breadcrumb .current { color: var(--primary); font-weight: 500; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--lighter);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-top { padding: 64px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-logo { height: 50px; margin-bottom: 16px; }
.footer-desc { font-size: 0.875rem; color: var(--light); line-height: 1.7; margin-bottom: 24px; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--dark-4);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--lighter);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.875rem; color: var(--light); transition: color var(--transition); }
.footer-link:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--light);
  flex-wrap: wrap;
}
.footer-payments { display: flex; gap: 8px; align-items: center; }
.payment-icon {
  height: 26px;
  padding: 4px 10px;
  background: var(--dark-4);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lighter);
  display: flex; align-items: center;
}

/* Newsletter */
.newsletter-section {
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.newsletter-form { display: flex; gap: 10px; max-width: 420px; width: 100%; }
.newsletter-input {
  flex: 1;
  background: var(--dark);
  border: 1.5px solid var(--border-light);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-input:focus { border-color: var(--primary); }
.newsletter-input::placeholder { color: var(--mid); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
  backdrop-filter: blur(8px);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition-slow);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }

/* ============================================================
   TAGS / FILTER CHIPS
   ============================================================ */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--dark-4);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--lighter);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================================
   PRICE RANGE SLIDER
   ============================================================ */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--dark);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--dark-3) 25%, var(--dark-4) 50%, var(--dark-3) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(232,84,26,0.4);
  font-size: 1rem;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid .promo-card:first-child { grid-column: span 2; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .header-search { display: none; }
  .cat-nav { display: none; }
  .section { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-title { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hero-grid { padding: 50px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-grid .promo-card:first-child { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .cart-drawer { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  z-index: 999;
  height: 64px;
  padding: 0 10px;
}
.mobile-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}
.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--light);
  font-size: 0.65rem;
  font-weight: 500;
  min-width: 48px;
  transition: color var(--transition);
  position: relative;
}
.mobile-nav-btn svg { width: 22px; height: 22px; }
.mobile-nav-btn.active, .mobile-nav-btn:hover { color: var(--primary); }

@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  body { padding-bottom: 64px; }
}

/* ============================================================
   MOBILE SEARCH OVERLAY
   ============================================================ */
.mobile-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 1500;
  padding: 20px;
  flex-direction: column;
  gap: 20px;
}
.mobile-search-overlay.active { display: flex; }

/* Utility */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }