/* ================================================================
   ELECTRO-ORDINATEUR — Main CSS
   Design: Deep Navy + Electric Orange + Dark Mode support
   ================================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary: #1a237e;
  --primary-light: #283593;
  --primary-dark: #0d1642;
  --secondary: #ff6b35;
  --secondary-hover: #e55a24;
  --accent: #00bcd4;
  --success: #00c853;
  --warning: #ffc107;
  --danger: #f44336;

  --bg: #f0f2f8;
  --bg-card: #ffffff;
  --bg-navbar: rgba(26, 35, 126, 0.97);
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-main: 'Inter', 'Cairo', sans-serif;
  --navbar-height: 70px;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-navbar: rgba(10, 13, 30, 0.97);
  --text: #e8eaf6;
  --text-muted: #9099bb;
  --text-light: #6b7a99;
  --border: #2a2d3e;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; display: block; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* ════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
.navbar-electro {
  background: var(--bg-navbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--navbar-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-electro .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff !important;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-electro .navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--secondary), #ff9100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.navbar-electro .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem !important;
  border-radius: 6px;
  transition: all var(--transition);
}

.navbar-electro .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
}

.navbar-electro .nav-link.active {
  color: var(--secondary) !important;
  background: rgba(255, 107, 53, 0.15);
}

/* Search Bar */
.navbar-search {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.navbar-search input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 25px;
  color: #fff;
  padding: 0.5rem 1.2rem 0.5rem 2.8rem;
  font-size: 0.875rem;
  transition: all var(--transition);
  width: 100%;
}

.navbar-search input::placeholder { color: rgba(255,255,255,0.5); }

.navbar-search input:focus {
  background: rgba(255,255,255,0.18);
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.2);
  width: 100%;
}

.navbar-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Lang Toggle */
.lang-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3px;
}

.lang-btn {
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: transparent;
  line-height: 1.4;
}

.lang-btn.active {
  background: var(--secondary);
  color: #fff;
}

/* Theme toggle */
.theme-toggle-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
}

.theme-toggle-btn:hover {
  background: rgba(255,255,255,0.2);
  color: var(--secondary);
}

/* ════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #311b92 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,188,212,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--secondary);
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.hero-floating-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  color: white;
  animation: float 3s ease-in-out infinite;
}

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

/* ════════════════════════════════════════════════════════════
   SECTION TITLES
═══════════════════════════════════════════════════════════════ */
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 0;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 3px;
}

[dir="rtl"] .section-title::after {
  left: auto;
  right: 0;
}

/* ════════════════════════════════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════════════════════════════════ */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,35,126,0.2);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f5f7ff, #e8ecff);
}

[data-theme="dark"] .product-card-image {
  background: linear-gradient(135deg, #1e2235, #252a40);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-card-image .no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  color: var(--text-light);
}

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

.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-brand {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.product-card-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.price-original {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-saving {
  font-size: 0.78rem;
  background: rgba(0,200,83,0.1);
  color: var(--success);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.product-card-footer {
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge-electro {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

[dir="rtl"] .badge-electro { left: auto; right: 10px; }

.badge-new { background: linear-gradient(135deg, #1565c0, #42a5f5); color: white; }
.badge-promo { background: linear-gradient(135deg, #e53935, #ff7043); color: white; }
.badge-occasion { background: linear-gradient(135deg, #f57c00, #ffa726); color: white; }
.badge-rupture { background: rgba(0,0,0,0.6); color: #ddd; }

.badge-stock-ok { color: var(--success); font-size: 0.78rem; font-weight: 600; }
.badge-stock-low { color: var(--warning); font-size: 0.78rem; font-weight: 600; }
.badge-stock-out { color: var(--danger); font-size: 0.78rem; font-weight: 600; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,35,126,0.3);
  color: white;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  background: linear-gradient(135deg, #20bd5a, #0e7a6e);
}

.btn-whatsapp-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius);
  width: 100%;
  justify-content: center;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
═══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: wa-pulse 2.5s ease-in-out infinite;
  cursor: pointer;
  transition: transform var(--transition);
}

[dir="rtl"] .wa-float { right: auto; left: 24px; }

.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
  animation: none;
}

.wa-float i {
  font-size: 1.8rem;
  color: white;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 35px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ════════════════════════════════════════════════════════════
   FILTERS SIDEBAR
═══════════════════════════════════════════════════════════════ */
.filters-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
}

.filter-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  margin: 2px;
}

.filter-chip:hover, .filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Price Range */
.price-range-input {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, var(--border) 50%);
  border-radius: 2px;
  outline: none;
  width: 100%;
}

.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--secondary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255,107,53,0.4);
}

/* ════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
═══════════════════════════════════════════════════════════════ */
.product-gallery {
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
}

.gallery-main {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  cursor: zoom-in;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
}

.gallery-thumb.active { border-color: var(--secondary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.specs-table tr:not(:last-child) { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 0.7rem 0.5rem; font-size: 0.9rem; }
.specs-table td:first-child { font-weight: 600; color: var(--text-muted); width: 40%; }
.specs-table td:last-child { color: var(--text); }

/* ════════════════════════════════════════════════════════════
   MINI CART (WhatsApp Group)
═══════════════════════════════════════════════════════════════ */
.mini-cart {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 998;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 0.6rem 1rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--transition);
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-width: 160px;
  font-size: 0.875rem;
  font-weight: 600;
}

[dir="rtl"] .mini-cart { left: auto; right: 90px; }

.mini-cart.visible { display: flex; }
.mini-cart:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(26,35,126,0.4); }
.mini-cart .cart-count {
  background: var(--secondary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Cart Modal */
.cart-modal-body { max-height: 60vh; overflow-y: auto; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; }
.cart-item-price { font-size: 0.85rem; color: var(--secondary); font-weight: 700; }
.cart-item-remove { color: var(--danger); cursor: pointer; font-size: 1.1rem; }

/* ════════════════════════════════════════════════════════════
   CATEGORIES GRID
═══════════════════════════════════════════════════════════════ */
.category-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(26,35,126,0.05), rgba(26,35,126,0.02));
}

.category-card .cat-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  display: block;
  transition: transform var(--transition);
}

.category-card:hover .cat-icon { transform: scale(1.15); color: var(--secondary); }
.category-card .cat-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.category-card .cat-count { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer-electro {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-electro h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.footer-electro a { color: rgba(255,255,255,0.6); font-size: 0.9rem; display: block; margin-bottom: 0.4rem; transition: color var(--transition); }
.footer-electro a:hover { color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.social-links { display: flex; gap: 10px; margin-top: 0.5rem; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  font-size: 0.95rem;
}
.social-link:hover { background: var(--secondary); color: white; transform: translateY(-2px); }

/* ════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════ */
.pagination .page-link {
  border: 1.5px solid var(--border);
  color: var(--primary);
  border-radius: var(--radius-sm) !important;
  margin: 0 2px;
  font-weight: 500;
  transition: all var(--transition);
  background: var(--bg-card);
}

.pagination .page-link:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.pagination .page-item.disabled .page-link { opacity: 0.4; }

/* ════════════════════════════════════════════════════════════
   ALERTS & TOASTS
═══════════════════════════════════════════════════════════════ */
.flash-messages {
  position: fixed;
  top: calc(var(--navbar-height) + 10px);
  right: 16px;
  z-index: 2000;
  max-width: 360px;
}

.flash-alert {
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  margin-bottom: 8px;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.9rem;
}

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

/* ════════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════════ */
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 100%;
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ════════════════════════════════════════════════════════════
   SKELETON LOADING
═══════════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, rgba(255,255,255,0.5) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ════════════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════════════ */
.card-hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.card-hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider-gradient {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 3px;
  margin: 0.5rem 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(26,35,126,0.08);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 4px;
}

[data-theme="dark"] .tag { background: rgba(100,120,255,0.15); color: #8b9ff4; }

.section-padding { padding: 4rem 0; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .navbar-electro .navbar-collapse {
    background: var(--primary-dark);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .hero-section { padding: 60px 0 40px; }
  .hero-stats { gap: 1rem; }
  .filters-card { position: static; }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.4rem; }
  .product-detail-card { padding: 1.2rem; }
  .wa-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .mini-cart { bottom: 16px; left: 16px; }
  [dir="rtl"] .mini-cart { left: auto; right: 76px; }
}

/* ════════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════════ */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

/* ════════════════════════════════════════════════════════════
   FORM CONTROLS
═══════════════════════════════════════════════════════════════ */
.form-control, .form-select {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  transition: all var(--transition);
}

.form-control:focus, .form-select:focus {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,35,126,0.12);
  color: var(--text);
  outline: none;
}

.form-label { font-weight: 600; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.3rem; }
