/* ============================================================
   ELITE STORE - Main Stylesheet
   Premium Ecommerce Design
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary:       #22c55e;
  --primary-dark:  #16a34a;
  --primary-light: #dcfce7;
  --secondary:     #1e293b;
  --accent:        #f97316;
  --accent-light:  #fff7ed;
  --bg:            #f8fafc;
  --bg-card:       #ffffff;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --border:        #e2e8f0;
  --border-dark:   #cbd5e1;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --info:          #3b82f6;
  --success:       #22c55e;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.14);
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-full:   9999px;
  --transition:    .25s cubic-bezier(.4,0,.2,1);
  --font-sans:     'Inter', sans-serif;
  --font-heading:  'Poppins', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-semi { font-weight: 600; }
.hidden { display: none !important; }
.relative { position: relative; }
.w-full { width: 100%; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--secondary);
  color: #94a3b8;
  font-size: .8rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #94a3b8; transition: color var(--transition); }
.topbar a:hover { color: var(--primary); }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar-right a { display: flex; align-items: center; gap: 5px; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--secondary);
  flex-shrink: 0;
}
.logo span { color: var(--primary); }
.logo img { height: 38px; }

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 600px;
  position: relative;
}
.search-bar form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition);
}
.search-bar form:focus-within { border-color: var(--primary); }
.search-bar select {
  border: none;
  padding: 10px 14px;
  border-right: 1px solid var(--border);
  font-size: .85rem;
  background: #f8fafc;
  color: var(--text-muted);
  min-width: 120px;
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: .95rem;
  background: #fff;
}
.search-bar button {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  transition: background var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 380px;
  overflow-y: auto;
}
.search-suggestions .suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.search-suggestions .suggestion-item:hover { background: var(--bg); }
.suggestion-item img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); }
.suggestion-item .name { font-size: .9rem; font-weight: 500; }
.suggestion-item .price { font-size: .8rem; color: var(--primary); font-weight: 600; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
}
.header-btn:hover { color: var(--primary); background: var(--primary-light); }
.header-btn i { font-size: 1.2rem; }
.badge-count {
  position: absolute;
  top: 2px; right: 6px;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ============================================================
   MAIN NAVIGATION
   ============================================================ */
.navbar {
  background: var(--secondary);
  position: relative;
  z-index: 900;
  border-bottom: 3px solid var(--primary);
}
.navbar-inner {
  display: flex;
  align-items: stretch;
  min-height: 56px;
}

/* All Categories Mega Button */
.mega-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  min-width: 200px;
  transition: background var(--transition);
  white-space: nowrap;
  letter-spacing: .01em;
}
.mega-toggle:hover { background: var(--primary-dark); }
.mega-toggle i { font-size: 1rem; }
.mega-toggle .chevron { margin-left: auto; transition: transform var(--transition); }
.mega-toggle.open .chevron { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 800;
  min-width: 900px;
}
.mega-menu.open { display: flex; }
.mega-menu-sidebar {
  width: 220px;
  border-right: 1px solid var(--border);
  padding: 8px 0;
}
.mega-menu-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: .88rem;
  color: var(--text);
  transition: all var(--transition);
}
.mega-menu-sidebar a:hover,
.mega-menu-sidebar a.active { background: var(--primary-light); color: var(--primary); }
.mega-menu-sidebar a i { width: 18px; font-size: .9rem; }
.mega-menu-content { flex: 1; padding: 24px; }
.mega-menu-content h4 { font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.mega-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mega-menu-grid a {
  padding: 8px 12px;
  font-size: .88rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mega-menu-grid a:hover { background: var(--bg); color: var(--primary); }

/* Nav Links */
.nav-links { display: flex; align-items: stretch; flex: 1; }
.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: .9rem;
  font-weight: 600;
  color: #94a3b8;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  letter-spacing: .01em;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-bottom-color: var(--primary);
}
.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--primary);
}
.hot-badge {
  background: var(--danger);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
  letter-spacing: .04em;
  vertical-align: middle;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 6px 12px 6px auto;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.15);
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,.16); }

/* Mobile nav drawer */
.nav-mobile-drawer {
  display: none;
  flex-direction: column;
  background: var(--secondary);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 8px 0 12px;
}
.nav-mobile-drawer.open { display: flex; }
.nav-mobile-drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: .92rem;
  font-weight: 600;
  color: #94a3b8;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.nav-mobile-drawer a:hover,
.nav-mobile-drawer a.active {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-left-color: var(--primary);
}

/* ============================================================
   HERO BANNER SLIDER
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius); margin: 20px 0; }
.slider-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 60px 60px 70px;
  border-radius: var(--radius);
  min-height: 420px;
  position: relative;
  overflow: hidden;
}
.slide-content { z-index: 2; }
.slide-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.slide h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--secondary);
  margin-bottom: 14px;
}
.slide h1 span { color: var(--primary); }
.slide p { color: var(--text-muted); font-size: 1rem; margin-bottom: 28px; max-width: 380px; }
.slide-image { z-index: 2; text-align: center; }
.slide-image img { max-height: 320px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,.15)); }

/* Slider Controls */
.slider-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: rgba(0,0,0,.2); cursor: pointer; transition: all var(--transition); }
.slider-dot.active { width: 24px; background: var(--primary); }
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--secondary);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-prev:hover, .slider-next:hover { background: var(--primary); color: #fff; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section { padding: 48px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: var(--radius-full);
  display: inline-block;
}
.see-all {
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.see-all:hover { gap: 8px; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  min-width: 120px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.category-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card.active { border-color: var(--primary); background: var(--primary-light); }
.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--bg);
}
.category-card img.cat-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
}
.cat-name { font-size: .82rem; font-weight: 600; color: var(--text); }
.cat-count { font-size: .75rem; color: var(--text-muted); }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Product Image */
.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 1/1;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }

/* Badges */
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-block;
}
.badge-discount { background: var(--danger); color: #fff; }
.badge-new      { background: var(--accent); color: #fff; }
.badge-hot      { background: #8b5cf6; color: #fff; }
.badge-sale     { background: var(--warning); color: #fff; }

/* Wishlist Button */
.btn-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(.8);
  transition: all var(--transition);
  z-index: 2;
}
.product-card:hover .btn-wishlist { opacity: 1; transform: scale(1); }
.btn-wishlist.active, .btn-wishlist:hover { color: var(--danger); background: #fef2f2; }

/* Quick Add */
.btn-quick-add {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(30,41,59,.85);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 11px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all var(--transition);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.product-card:hover .btn-quick-add { opacity: 1; transform: translateY(0); }

/* Product Info */
.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-brand { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.product-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating { display: flex; align-items: center; gap: 5px; }
.stars { color: var(--warning); font-size: .75rem; letter-spacing: 1px; }
.rating-count { font-size: .75rem; color: var(--text-muted); }
.product-price { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}
.price-original {
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(34,197,94,.3); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-dark { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-dark:hover { background: #0f172a; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #ea6c00; }
.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,.3); }
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail { padding: 40px 0 60px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* Image Gallery */
.gallery { display: flex; flex-direction: column; gap: 16px; }
.gallery-main {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.gallery-main img { max-height: 460px; object-fit: contain; padding: 20px; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition);
  background: #f8fafc;
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* Product Details */
.detail-brand { font-size: .82rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.detail-name { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.detail-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.detail-price { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.detail-price .current { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary); }
.detail-price .original { font-size: 1.2rem; color: var(--text-muted); text-decoration: line-through; }
.detail-price .disc-badge { background: var(--danger); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); }

/* Variants */
.variant-group { margin-bottom: 20px; }
.variant-label { font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
.variant-label span { font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 7px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  cursor: pointer;
  transition: all var(--transition);
  background: #fff;
}
.variant-btn:hover { border-color: var(--primary); color: var(--primary); }
.variant-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.variant-btn.out-of-stock { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.color-swatch.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
}

/* Quantity */
.qty-control { display: flex; align-items: center; gap: 0; border: 2px solid var(--border); border-radius: var(--radius-sm); width: fit-content; overflow: hidden; }
.qty-btn { width: 40px; height: 44px; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text); transition: background var(--transition); cursor: pointer; }
.qty-btn:hover { background: var(--primary-light); color: var(--primary); }
.qty-input { width: 56px; height: 44px; text-align: center; font-size: 1rem; font-weight: 600; border: none; border-left: 2px solid var(--border); border-right: 2px solid var(--border); }

/* Stock Status */
.stock-status { display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 500; margin-bottom: 20px; }
.stock-dot { width: 8px; height: 8px; border-radius: var(--radius-full); }
.in-stock .stock-dot { background: var(--success); }
.in-stock .stock-label { color: var(--success); }
.out-of-stock .stock-dot { background: var(--danger); }
.out-of-stock .stock-label { color: var(--danger); }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-page { padding: 40px 0 60px; }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-table { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.cart-table table { width: 100%; border-collapse: collapse; }
.cart-table th {
  background: var(--bg);
  padding: 14px 20px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cart-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-item-img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg); padding: 4px; border: 1px solid var(--border); }
.cart-item-name { font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.cart-item-variant { font-size: .78rem; color: var(--text-muted); }
.cart-remove { color: var(--text-muted); font-size: 1rem; transition: color var(--transition); }
.cart-remove:hover { color: var(--danger); }

/* Order Summary */
.order-summary {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.order-summary h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: .9rem; }
.summary-row.total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 16px; font-size: 1.1rem; font-weight: 700; }
.summary-row.total .amount { color: var(--primary); font-size: 1.3rem; }

/* Coupon Input */
.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-form input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: .88rem; transition: border-color var(--transition); }
.coupon-form input:focus { border-color: var(--primary); }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.checkout-form { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 32px; }
.checkout-form h2 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group label span { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.form-control.error { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.error-msg { font-size: .78rem; color: var(--danger); margin-top: 4px; display: none; }
.error-msg.show { display: block; }

/* Payment Methods */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.payment-option:hover { border-color: var(--primary); }
.payment-option.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-option input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; }
.payment-option-info .name { font-weight: 600; font-size: .92rem; }
.payment-option-info .desc { font-size: .8rem; color: var(--text-muted); }
.payment-option-icon { width: 40px; height: 28px; object-fit: contain; margin-left: auto; }

/* ============================================================
   ALERTS & FLASH MESSAGES
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ============================================================
   FILTERS SIDEBAR (Products Page)
   ============================================================ */
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filter-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.filter-group { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 { font-size: .88rem; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; cursor: pointer; }
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; cursor: pointer; }
.filter-item input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; }
.filter-item label { cursor: pointer; flex: 1; }
.filter-count { font-size: .75rem; color: var(--text-muted); margin-left: auto; }

/* Price Range */
.price-range { padding: 8px 0; }
.range-inputs { display: flex; gap: 10px; margin-top: 12px; }
.range-inputs input { flex: 1; padding: 8px 10px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; text-align: center; }

/* Sort Bar */
.sort-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sort-bar .results-count { font-size: .88rem; color: var(--text-muted); }
.sort-bar select { padding: 9px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: .88rem; background: #fff; cursor: pointer; }
.sort-bar select:focus { border-color: var(--primary); }
.view-toggle { display: flex; gap: 4px; }
.view-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 2px solid var(--border); color: var(--text-muted); font-size: .9rem; transition: all var(--transition); }
.view-btn.active, .view-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--secondary); color: #94a3b8; padding: 60px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo span { color: var(--primary); }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-link { width: 38px; height: 38px; border-radius: var(--radius-full); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: .95rem; color: #94a3b8; transition: all var(--transition); }
.social-link:hover { background: var(--primary); color: #fff; }
.footer-widget h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .88rem; color: #94a3b8; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; }
.footer-payments { display: flex; gap: 8px; align-items: center; }
.payment-icon { height: 24px; width: auto; border-radius: 4px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.9);
  transition: transform var(--transition);
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition); }
.modal-close:hover { background: #fef2f2; color: var(--danger); }

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton-loading 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--secondary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  min-width: 280px;
  max-width: 380px;
  transform: translateX(120%);
  transition: transform .4s cubic-bezier(.4,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-warning .toast-icon { color: var(--warning); }
.toast-close { margin-left: auto; opacity: .6; cursor: pointer; font-size: .8rem; }
.toast-close:hover { opacity: 1; }

/* ============================================================
   FEATURES BAR
   ============================================================ */
.features-section { padding: 24px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--primary);
}
.feature-text h4 { font-weight: 700; font-size: .9rem; margin: 0 0 2px; }
.feature-text p  { font-size: .78rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   PROMO BANNERS
   ============================================================ */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.promo-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
}
.promo-card-dark { background: linear-gradient(135deg, #1e293b, #334155); color: #fff; }
.promo-card-warm { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.promo-content   { z-index: 2; position: relative; }
.promo-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.promo-card-dark .promo-label { color: var(--primary); }
.promo-card-warm .promo-label { color: var(--accent); }
.promo-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}
.promo-card-dark .promo-title { color: #fff; }
.promo-card-warm .promo-title { color: var(--secondary); }
.promo-deco { position: absolute; border-radius: 50%; pointer-events: none; }

/* ============================================================
   RESPONSIVE - MOBILE FIRST
   ============================================================ */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .products-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .search-bar { order: 3; max-width: 100%; width: 100%; }
  .nav-links { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .slide { grid-template-columns: 1fr; padding: 40px 28px; }
  .slide-image { display: none; }
  .slide h1 { font-size: 1.8rem; }
  .checkout-form { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-socials { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info { padding: 10px; }
  .product-name { font-size: .82rem; }
  .price-current { font-size: .95rem; }
  .slide h1 { font-size: 1.4rem; }
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.mobile-nav-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px;
  font-size: .65rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  position: relative;
}
.mobile-nav-item i { font-size: 1.2rem; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--primary); }

@media (max-width: 768px) {
  .mobile-nav { display: block; }
  body { padding-bottom: 70px; }
}

/* ============================================================
   SCROLLBAR STYLE
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.fade-in { animation: fadeIn .4s ease; }

/* ============================================================
   MOBILE RESPONSIVE OVERHAUL
   ============================================================ */
html, body { overflow-x: hidden; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* ── 768px and below ── */
@media (max-width: 768px) {

  /* PREVENT OVERFLOW */
  .container { padding: 0 12px; width: 100%; }
  section, .section { overflow-x: hidden; }

  /* TOPBAR - hide */
  .topbar { display: none !important; }

  /* HEADER - compact single-area */
  .header { padding: 0; }
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }

  /* Logo — column 1 row 1 */
  .logo {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.25rem;
    gap: 6px;
  }
  .logo img { height: 28px; width: auto; }

  /* Search bar — full width row 2 */
  .search-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    order: unset;
    max-width: 100%;
    width: 100%;
  }
  .search-bar form {
    height: 40px;
    border-radius: 20px;
  }
  .search-bar select { display: none; }
  .search-bar input { font-size: .85rem; padding: 0 12px; }
  .search-bar button { width: 40px; border-radius: 0 20px 20px 0; }

  /* Header actions — column 3 row 1 */
  .header-actions {
    grid-column: 3;
    grid-row: 1;
    gap: 4px;
    margin-left: 0;
    display: flex;
    align-items: center;
  }
  .header-btn {
    padding: 6px 8px;
    flex-direction: column;
    gap: 2px;
    min-width: 40px;
    font-size: .62rem;
  }
  .header-btn i { font-size: 1.1rem; }
  .header-btn span:not(.badge-count) { display: none; }

  /* Login button compact */
  .header-btn.btn.btn-primary {
    padding: 7px 12px !important;
    font-size: .78rem !important;
    border-radius: 20px !important;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-direction: row;
  }
  .header-btn.btn.btn-primary i { font-size: .85rem; }

  /* NAVBAR */
  .navbar { padding: 0; border-bottom-width: 2px; }
  .navbar-inner { flex-wrap: wrap; min-height: 0; }
  .nav-links { display: none; }
  .mega-toggle {
    order: 1;
    font-size: .84rem;
    padding: 0 14px;
    min-height: 46px;
    min-width: 0;
    flex: 1;
  }
  .nav-hamburger { display: flex; order: 2; }

  /* Mobile category dropdown panel */
  .mega-menu {
    order: 3;
    flex-basis: 100%;
    position: static;
    min-width: 0;
    width: 100%;
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--border);
    box-shadow: none;
    background: #fff;
  }

  .mega-menu.open {
    display: block;
  }

  .mega-menu-sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    max-height: 220px;
    overflow-y: auto;
  }

  .mega-menu-sidebar a {
    padding: 11px 14px;
    font-size: .85rem;
  }

  .mega-menu-content {
    padding: 12px;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .mega-menu-grid a {
    padding: 8px 10px;
    font-size: .82rem;
    background: #f8fafc;
    border: 1px solid var(--border);
  }

  .nav-mobile-drawer {
    border-top: 1px solid rgba(255,255,255,.08);
  }

  /* HERO BANNER SLIDER */
  .hero-slider { border-radius: 10px; margin: 0 12px; }
  .slide {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    min-height: 180px;
  }
  .slide-image { display: none; }
  .slide-content { max-width: 100%; }
  .slide h1 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 8px; }
  .slide p { font-size: .82rem; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-badge { font-size: .65rem; padding: 3px 10px; }
  .slide .btn { padding: 10px 20px; font-size: .82rem; }
  .slider-nav { gap: 6px; bottom: 10px; }
  .slider-dot { width: 6px; height: 6px; }
  .slider-prev, .slider-next { width: 30px; height: 30px; font-size: .7rem; }

  /* FEATURES BAR */
  .features-section { padding: 16px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 10px;
  }
  .feature-icon { width: 44px; height: 44px; font-size: 1.05rem; }
  .feature-text h4 { font-size: .8rem; }
  .feature-text p  { font-size: .7rem; }

  /* PROMO BANNERS */
  .promo-grid { grid-template-columns: 1fr; gap: 12px; }
  .promo-card { padding: 26px 22px; min-height: auto; }
  .promo-title { font-size: 1.25rem; margin-bottom: 14px; }
  .promo-label { font-size: .72rem; }

  /* SECTION HEADERS */
  .section-header h2 { font-size: 1.2rem; }
  .section { padding: 20px 0; }

  /* PRODUCT CARDS */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { border-radius: 10px; }
  .product-img-wrap { height: 150px; }
  .product-info { padding: 8px; }
  .product-name { font-size: .78rem; line-height: 1.3; }
  .price-current { font-size: .88rem; }
  .price-old { font-size: .72rem; }
  .product-actions { gap: 4px; padding: 6px; }
  .btn-cart { font-size: .72rem; padding: 6px 8px; border-radius: 6px; }
  .btn-wish { width: 30px; height: 30px; font-size: .8rem; }

  /* CATEGORIES GRID */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .category-card { padding: 14px 8px; border-radius: 10px; }
  .category-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .category-card h3 { font-size: .75rem; margin-top: 6px; }

  /* FOOTER */
  .footer { padding: 28px 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { text-align: center; }
  .footer-brand p { max-width: 100%; font-size: .82rem; }
  .footer-socials { justify-content: center; }
  .footer h4 { font-size: .9rem; margin-bottom: 10px; }
  .footer-links a { font-size: .8rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: .75rem; }
  .payment-icons { justify-content: center; }
  .payment-icon { height: 24px; }
}

/* ── 480px and below ── */
@media (max-width: 480px) {
  .container { padding: 0 10px; }
  .logo { font-size: 1.1rem; }
  .slide h1 { font-size: 1.2rem; }
  .slide p { font-size: .78rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-img-wrap { height: 130px; }
  .product-name { font-size: .73rem; }
  .section-header h2 { font-size: 1.1rem; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .category-icon { width: 38px; height: 38px; font-size: 1rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .feature-item { padding: 14px 8px; gap: 8px; }
  .feature-icon { width: 40px; height: 40px; font-size: 1rem; }
  .feature-text h4 { font-size: .77rem; }
  .feature-text p  { font-size: .68rem; }
  .promo-card { padding: 22px 18px; }
  .promo-title { font-size: 1.15rem; }
}

/* ── Tablet 769px–992px ── */
@media (min-width: 769px) and (max-width: 992px) {
  .header-inner { padding: 12px 0; gap: 14px; }
  .logo { font-size: 1.4rem; }
  .search-bar { max-width: 380px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-links a { font-size: .82rem; padding: 0 10px; }
}

/* ============================================================
   BADGES / STATUS
   ============================================================ */
.badge-success   { background: #dcfce7; color: #166534; }
.badge-warning   { background: #fef9c3; color: #854d0e; }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-info      { background: #dbeafe; color: #1e40af; }
.badge-primary   { background: var(--primary-light); color: var(--primary-dark); }
.badge-secondary { background: #f1f5f9; color: #475569; }
.badge-dark      { background: #1e293b; color: #fff; }

/* ============================================================
   GLOBAL RESPONSIVE FIXES (INLINE-LAYOUT SAFE)
   ============================================================ */
@media (max-width: 992px) {
  .products-layout,
  .product-detail-grid,
  .cart-grid,
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .sort-bar {
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }

  .sort-bar .results-count {
    width: 100%;
  }

  .footer-bottom,
  .footer-payments {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .mobile-nav {
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
  }

  /* Universal table safety for pages with inline tables */
  table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Inline grid fallback (many pages use inline style attributes) */
  [style*='grid-template-columns:1fr 1fr'],
  [style*='grid-template-columns: 1fr 1fr'],
  [style*='grid-template-columns:2fr 1fr'],
  [style*='grid-template-columns: 2fr 1fr'],
  [style*='grid-template-columns:1fr 380px'],
  [style*='grid-template-columns: 1fr 380px'],
  [style*='grid-template-columns:1fr 360px'],
  [style*='grid-template-columns: 1fr 360px'],
  [style*='grid-template-columns:3fr 2fr'],
  [style*='grid-template-columns: 3fr 2fr'],
  [style*='grid-template-columns:repeat(4,1fr)'],
  [style*='grid-template-columns: repeat(4,1fr)'],
  [style*='grid-template-columns:repeat(3,1fr)'],
  [style*='grid-template-columns: repeat(3,1fr)'] {
    grid-template-columns: 1fr !important;
  }

  [style*='min-width:380px'],
  [style*='min-width: 380px'],
  [style*='min-width:700px'],
  [style*='min-width: 700px'] {
    min-width: 100% !important;
  }

  [style*='padding:40px 36px'],
  [style*='padding: 40px 36px'],
  [style*='padding:32px 24px'],
  [style*='padding: 32px 24px'],
  [style*='padding:28px 24px'],
  [style*='padding: 28px 24px'] {
    padding: 20px 16px !important;
  }

  [style*='display:flex'][style*='justify-content:space-between'] {
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  [style*='display:flex'][style*='align-items:center'][style*='gap:12px'] {
    flex-wrap: wrap !important;
  }

  .btn,
  button,
  input,
  select,
  textarea {
    max-width: 100%;
  }

  .coupon-form {
    flex-direction: column;
  }

  .order-summary {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .header-btn {
    min-width: 34px;
    padding: 5px 6px;
  }

  .badge-count {
    top: -1px;
    right: 0;
  }

  [style*='font-size:1.6rem'],
  [style*='font-size: 1.6rem'],
  [style*='font-size:1.5rem'],
  [style*='font-size: 1.5rem'],
  [style*='font-size:1.4rem'],
  [style*='font-size: 1.4rem'] {
    font-size: 1.15rem !important;
  }

  [style*='letter-spacing:6px'],
  [style*='letter-spacing: 6px'] {
    letter-spacing: 4px !important;
  }
}
