/* ═══════════════════════════════════════════════════════
   7ELMA STORE – Premium Light Theme CSS
   ═══════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --black: #080a0e; /* For header & footer */
  --bg-main: #FAF7F0; /* Off-white / cream */
  --bg-alt: #F3F1EA; /* Very light gray / cream for alternating sections */
  --bg-card: #FFFFFF; /* White for cards */
  
  --chrome: #c8d0e0;
  --chrome-bright: #e8edf5;
  --chrome-dim: #8a94a8;
  
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: #8a6f30;
  
  --white: #ffffff;
  
  --text-primary: #1A1A1A; /* Dark charcoal */
  --text-secondary: #555555;
  --text-dim: #888888;
  
  --green: #25d366;
  --green-dark: #1aa850;
  --red: #e53e3e;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0,0,0,.04);
  --shadow-md: 0 10px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.12);
  --shadow-gold: 0 12px 30px rgba(201,168,76,.15);
  --shadow-header: 0 4px 30px rgba(0,0,0,.2);
  
  --transition: 0.3s ease;
  --font-main: 'Inter', 'Cairo', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Arabic mode */
[lang="ar"] { font-family: 'Cairo', var(--font-main); }
[lang="ar"] .hero-title-line1,
[lang="ar"] .hero-title-line2 { font-family: 'Cairo', sans-serif; letter-spacing: 0; }

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.section { padding: clamp(64px, 8vw, 120px) 0; }
#category-pages .section { padding: 16px 0 clamp(40px, 6vw, 80px); }


/* ─── LOGO (Image) ─── */
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; gap: 12px; -webkit-tap-highlight-color: transparent; outline: none; }
.logo-mark {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 60px; /* Adjusted to fit well with text */
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dim) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--gold-dim);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-outline:hover {
  background: rgba(201,168,76,.08);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--green);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-whatsapp:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.3); }

/* ─── HEADER (Dark theme applied here) ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,10,14,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: all var(--transition);
}
.header.scrolled {
  background: rgba(8,10,14,.98);
  border-bottom-color: rgba(201,168,76,.2);
  box-shadow: var(--shadow-header);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 24px;
}
.nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--chrome-dim); /* Light text on dark header */
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-link:hover { color: var(--chrome-bright); }
.nav-link:hover::after, .nav-link.active::after { width: calc(100% - 24px); }
.nav-link.active { color: var(--chrome-bright); }

/* ─── SEARCH BAR ─── */
.header-search {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin: 0 16px;
}
.search-form {
  display: flex;
  align-items: center;
  background: rgba(250, 247, 240, 0.1);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  width: 100%;
  max-width: 260px;
  transition: all var(--transition);
}
.search-form:focus-within {
  background: rgba(250, 247, 240, 0.15);
  box-shadow: var(--shadow-sm);
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 0.9rem;
  padding: 6px 4px;
}
.search-input::placeholder {
  color: rgba(255,255,255,0.6);
}
.search-btn {
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform var(--transition);
}
.search-btn:hover {
  transform: scale(1.1);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  color: var(--chrome);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}
.lang-toggle:hover {
  background: rgba(201,168,76,.1);
  border-color: var(--gold-dim);
  color: var(--gold-light);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--chrome);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: all; }

/* MOBILE MENU WRAPPER */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; right: 0; bottom: 0;
  width: 320px;
  max-width: 85%;
  z-index: 999;
  pointer-events: none;
}
.mobile-menu-drawer {
  background: rgba(8,10,14,.98);
  width: 100%;
  height: 100%;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.5);
  border-left: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu.open { pointer-events: all; }
.mobile-menu.open .mobile-menu-drawer { transform: translateX(0); }
.mobile-nav-list { padding: 24px 24px 48px; }
.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--chrome-dim);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: all var(--transition);
}
.mobile-nav-link:hover { color: var(--gold-light); padding-left: 8px; }

/* ALL CATEGORIES DROPDOWN */
.cat-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.btn-all-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.btn-all-cats:hover {
  background: rgba(201,168,76,.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

.cat-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.cat-dropdown-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.cat-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition);
  font-weight: 500;
  font-size: 0.95rem;
}
.cat-dropdown-item:hover {
  background: rgba(201,168,76,.1);
}
.cat-item-icon {
  width: 22px; height: 22px;
  stroke: var(--text-primary);
  flex-shrink: 0;
  transition: stroke var(--transition);
}
.cat-item-text {
  flex: 1;
}
.cat-item-arrow {
  width: 16px; height: 16px;
  stroke: var(--text-dim);
  transition: all var(--transition);
}
.cat-dropdown-item:hover .cat-item-icon { stroke: var(--gold-dim); }
.cat-dropdown-item:hover .cat-item-arrow {
  stroke: var(--gold-dim);
  transform: translateX(4px);
}

/* ─── BREADCRUMB ─── */
.breadcrumb-wrapper {
  background: var(--bg-alt);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-top: 90px; /* Offset for taller fixed header */
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
}
.breadcrumb-link {
  color: var(--text-secondary);
  transition: color var(--transition);
}
.breadcrumb-link:hover {
  color: var(--gold);
}
.breadcrumb-separator {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  opacity: 0.5;
}
.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ─── SECTION HEADER ─── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  padding: 5px 18px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-full);
  color: var(--gold-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.2;
}
.section-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background-color: var(--bg-main);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: rgba(201,168,76,.07);
  top: -100px; right: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: rgba(0,0,0,.03);
  bottom: 0; left: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-full);
  color: var(--gold-dim);
  font-size: 0.83rem;
  font-weight: 700;
  width: fit-content;
  letter-spacing: 0.5px;
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.hero-title-line1,
.hero-title-line2,
.hero-title-line3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 1px;
  display: block;
}
.hero-title-line1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-primary);
}
.hero-title-line2 {
  font-size: clamp(3rem, 6.5vw, 6rem);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-title-line3 {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 2px;
}
.hero-desc {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  max-width: 500px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { display: flex; align-items: center; gap: 24px; padding-top: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-label { font-size: 0.78rem; color: var(--text-secondary); letter-spacing: 0.3px; font-weight: 600; }
.stat-divider { width: 1px; height: 32px; background: rgba(0,0,0,.1); }

/* Hero Visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-device-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid rgba(201,168,76,0.4);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(201,168,76,0.15);
  background: var(--bg-card);
  max-width: 520px;
  width: 100%;
}
.hero-img { width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: center 20%; display: block; aspect-ratio: 4/3; }
.hero-device-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,.15), transparent 60%);
  pointer-events: none;
}
.hero-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.badge-new {
  top: 24px; right: -16px;
  color: var(--gold-dim);
  border-color: rgba(201,168,76,.25);
  animation: float 3s ease-in-out infinite;
}
.badge-deliver {
  bottom: 32px; left: -16px;
  color: var(--text-primary);
  animation: float 3s ease-in-out infinite 1.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { opacity: 0.3; transform: rotate(45deg) translateY(0); }
  50% { opacity: 1; transform: rotate(45deg) translateY(6px); }
}

/* ─── CATEGORIES ─── */
.categories-section { background: var(--bg-alt); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cat-bg-glow {
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  filter: blur(40px);
  top: -50px; right: -30px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.cat-card:hover .cat-bg-glow { opacity: 1; }
.cat-smartphones .cat-bg-glow { background: rgba(201,168,76,.15); }
.cat-pc .cat-bg-glow { background: rgba(0,0,0,.05); }
.cat-acc .cat-bg-glow { background: rgba(201,168,76,.1); }
.cat-watch .cat-bg-glow { background: rgba(0,0,0,.04); }
.cat-tv .cat-bg-glow { background: rgba(201,168,76,.12); }
.cat-repair .cat-bg-glow { background: rgba(0,0,0,.03); }

.cat-icon-wrap {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.cat-card:hover .cat-icon-wrap {
  background: rgba(201,168,76,.15);
  border-color: rgba(201,168,76,.3);
}
.cat-icon { width: 26px; height: 26px; stroke: var(--gold-dim); }
.cat-content { flex: 1; min-width: 0; }
.cat-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.cat-desc { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }
.cat-arrow { flex-shrink: 0; color: var(--text-dim); transition: all var(--transition); }
.cat-card:hover .cat-arrow { color: var(--gold); transform: translateX(4px); }

/* ─── PRODUCTS ─── */
.products-section { background: var(--bg-main); }

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .catalog-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.product-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.filter-btn:hover { border-color: rgba(0,0,0,.15); color: var(--text-primary); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: transparent;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(201,168,76,.3);
}

.sort-select {
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,0,0,.06);
  background-color: var(--bg-card);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
}
.sort-select:hover, .sort-select:focus {
  border-color: var(--gold);
  color: var(--text-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.product-card.hidden { display: none; }
.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.prod-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #F9F9F9;
  overflow: hidden;
}
.prod-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.prod-img-occ { filter: saturate(0.8); }
.product-card:hover .prod-img { transform: scale(1.05); }

.prod-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.badge-new { background: var(--black); color: var(--white); }
.badge-occ { background: rgba(201,168,76,.9); color: var(--white); }
.badge-promo { background: rgba(229,62,62,.9); color: white; }

.prod-badge-promo {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--red);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}
.prod-badge-hot {
  position: absolute;
  top: 44px; right: 12px;
  background: rgba(255,140,0,.9);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.prod-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 3;
}
.product-card:hover .prod-overlay { opacity: 1; }
.btn-quick-order {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transform: translateY(10px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(201,168,76,.4);
}
.product-card:hover .btn-quick-order { transform: translateY(0); }

.prod-info { padding: 16px; background-color: #f6f6f6; }
.product-card.catalog-style {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card.catalog-style:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border-color: #e0e0e0;
}
.catalog-style .prod-img-wrap {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px;
  aspect-ratio: 1;
}
.catalog-style .prod-img {
  object-fit: contain;
}

.prod-name-catalog {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0066cc; /* Blue title */
  margin-bottom: 6px;
  line-height: 1.3;
}
.prod-sku {
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 8px;
}
.prod-desc-catalog {
  font-size: 0.75rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-price-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.prod-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #e53935; /* Red price */
}
.prod-price small {
  font-size: 0.85rem;
  font-weight: 700;
}
.prod-price-old {
  font-size: 0.85rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}
.prod-discount-badge {
  background: rgba(229, 57, 53, 0.1);
  color: #e53935;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
}

.prod-footer-catalog {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
}

.avail-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.avail-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #333;
}
.avail-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  text-align: center;
}
.avail-badge.bg-orange { background-color: #ff9800; }
.avail-badge.bg-green { background-color: #34a853; }

.brand-logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: #222;
  opacity: 0.7;
}

.btn-quick-order {
  padding: 10px 22px;
  background: #ffb400; /* Yellow add to cart color */
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transform: translateY(10px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(255,180,0,.4);
}
.product-card:hover .btn-quick-order { transform: translateY(0); }

/* ─── PRODUCT DETAIL ─── */
.product-detail-section { background: var(--bg-alt); }
.pd-layout { display: grid; grid-template-columns: minmax(300px, 450px) 1fr; gap: 56px; align-items: start; }
.pd-main-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.04);
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-sm);
}
.pd-main-img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; padding: 12px; }
.pd-main-img:hover { transform: scale(1.02); }
.pd-badge-new {
  position: absolute;
  top: 20px; right: 20px;
  padding: 6px 16px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(0,0,0,.05);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  background: var(--white);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pd-thumb:hover { border-color: rgba(0,0,0,.2); }
.pd-thumb.active { border-color: var(--gold); box-shadow: 0 4px 12px rgba(201,168,76,.2); }

.pd-brand { font-size: 0.8rem; color: #a5833c; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.pd-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
}
.pd-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.stars { color: #d4af37; font-size: 1rem; letter-spacing: 2px; }
.rating-count { font-size: 0.85rem; color: #666; }

.pd-price-block { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  margin-bottom: 40px; 
}
.pd-price { font-size: 2.2rem; font-weight: 900; color: #111; font-family: var(--font-display); letter-spacing: -1px; }
.pd-availability { font-size: 0.85rem; font-weight: 700; padding: 6px 14px; border-radius: var(--radius-full); }
.pd-availability.available { background: #e6f4ea; color: #1e8e3e; }

.pd-specs-list { margin-bottom: 40px; }
.pd-specs-title { font-size: 0.9rem; font-weight: 800; color: #222; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.pd-spec-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 0.9rem;
}
.spec-key { color: #555; font-weight: 500; }
.spec-val { color: #111; font-weight: 600; }

.pd-actions { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.pd-order-btn { 
  justify-content: center; 
  font-size: 1rem; 
  padding: 18px; 
  background: #b18f4a; /* Golden brown */
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(177, 143, 74, 0.3);
}
.pd-order-btn:hover {
  background: #9a7a3e;
}
.pd-whatsapp-btn { 
  justify-content: center; 
  padding: 16px; 
  border-color: #25d366; 
  color: #25d366; 
  background: transparent;
  font-weight: 700;
  font-size: 1rem;
}
.pd-whatsapp-btn:hover { background: rgba(37,211,102,.05); color: #1fa851; border-color: #1fa851; }

.pd-delivery-info { display: flex; flex-direction: column; gap: 12px; }
.delivery-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #666; }
.delivery-item svg { stroke: #a5833c; flex-shrink: 0; }

.pd-extended-specs { margin-top: 60px; }
.tech-tabs { display: flex; border-bottom: 2px solid #e0e0e0; margin-bottom: 20px; }
.tech-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 800;
  color: #777;
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
}
.tech-tab.active {
  color: #d32f2f; /* Red like in the image */
}
.tech-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: #d32f2f;
}

.tech-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.tech-specs-table tr:nth-child(odd) {
  background-color: #f9f9f9;
}
.tech-specs-table tr:nth-child(even) {
  background-color: #fff;
}
.tech-specs-table td {
  padding: 12px 20px;
  border: 1px solid #eee;
}
.tech-specs-table td:first-child {
  font-weight: 700;
  color: #333;
  width: 30%;
}
.tech-specs-table td:last-child {
  color: #555;
}

/* ─── REPAIR ─── */
.repair-section { background: var(--bg-main); }
.repair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.repair-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.repair-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.repair-cta-card { border-color: rgba(201,168,76,.3); background: linear-gradient(135deg, var(--white), rgba(201,168,76,.05)); }
.repair-icon-wrap {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.repair-icon-wrap svg { width: 26px; height: 26px; stroke: var(--gold-dim); }
.repair-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.repair-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.repair-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--green);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
  transition: all var(--transition);
}
.repair-whatsapp-btn:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,211,102,.3); }

/* ─── ORDER MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(229,62,62,.1); border-color: rgba(229,62,62,.2); color: var(--red); }

.modal-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.modal-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-md);
  color: var(--gold-dim);
}
.modal-title { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.modal-subtitle { font-size: 0.85rem; color: var(--gold-dim); font-weight: 700; }

.order-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.83rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.3px; }
.form-group input, .form-group textarea {
  padding: 13px 16px;
  background: var(--bg-main);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 80px; }

.payment-notice {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: rgba(37,211,102,.08);
  border: 1px solid rgba(37,211,102,.2);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--green-dark);
  font-weight: 600;
}
.payment-notice svg { stroke: var(--green-dark); flex-shrink: 0; }

.form-submit { justify-content: center; padding: 15px; font-size: 1rem; }

.order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px 0;
}
.order-success[hidden] { display: none; }
.success-icon {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.25);
  border-radius: 50%;
  color: var(--green-dark);
}
.order-success h3 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.order-success p { font-size: 0.92rem; color: var(--text-secondary); max-width: 320px; }

/* ─── CONTACT ─── */
.contact-section { background: var(--bg-alt); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.contact-card:hover { border-color: var(--gold); transform: translateX(4px); box-shadow: var(--shadow-md); }
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,.1);
  border-radius: var(--radius-md);
}
.contact-icon svg { width: 22px; height: 22px; stroke: var(--gold-dim); }
.whatsapp-icon { background: rgba(37,211,102,.1); }
.whatsapp-icon svg { width: 22px; height: 22px; fill: var(--green-dark); }
.contact-label { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.contact-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 600; }
.contact-link:hover { color: var(--gold-dim); }

.social-links { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.social-btn:hover { border-color: var(--gold); color: var(--gold-dim); transform: translateY(-2px); }

.contact-map { position: sticky; top: 100px; }
.map-placeholder {
  height: 400px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-image:
    linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 30px 30px;
}
.map-overlay-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px; }
.map-overlay-content svg { stroke: var(--gold-dim); }
.map-overlay-content h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.map-overlay-content p { color: var(--text-secondary); font-size: 0.92rem; }
.map-link {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-full);
  color: var(--gold-dim);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  margin-top: 8px;
}
.map-link:hover { background: rgba(201,168,76,.2); transform: translateY(-2px); }

/* ─── FOOTER (Dark theme applied here) ─── */
.footer { border-top: none; }
.footer-top { background: var(--black); padding: 64px 0; }
.footer-top-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-logo { margin-bottom: 16px; display: inline-flex; }
.footer-tagline { font-size: 0.88rem; color: var(--chrome-dim); line-height: 1.6; max-width: 240px; margin-top: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  color: var(--chrome-dim);
  transition: all var(--transition);
}
.footer-social-btn:hover { background: rgba(201,168,76,.1); border-color: rgba(201,168,76,.2); color: var(--gold-dim); transform: translateY(-2px); }

.footer-heading { font-size: 0.78rem; font-weight: 700; color: var(--chrome); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.footer-nav-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-group ul li a { font-size: 0.87rem; color: var(--chrome-dim); transition: color var(--transition); }
.footer-nav-group ul li a:hover { color: var(--gold-light); }

.footer-delivery-text { font-size: 0.84rem; color: var(--chrome-dim); line-height: 1.6; margin-bottom: 14px; }
.delivery-zones { display: flex; flex-wrap: wrap; gap: 6px; }
.delivery-zones span {
  padding: 3px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--chrome-dim);
}

.footer-bottom {
  background: #05070a; /* Even darker black for the very bottom */
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 20px 0;
}
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 0.82rem; color: var(--text-dim); }
.footer-copy strong { color: var(--chrome-dim); }
.footer-made { font-size: 0.82rem; color: var(--text-dim); }

/* ─── FLOATING WHATSAPP ─── */
.floating-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(37,211,102,.3);
  transition: all var(--transition);
  animation: floatBtn 3s ease-in-out infinite;
}
.floating-whatsapp .floating-label {
  display: none;
}
.floating-whatsapp:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37,211,102,.4);
}
@keyframes floatBtn {
  0%, 100% { box-shadow: 0 8px 30px rgba(37,211,102,.3); }
  50% { box-shadow: 0 8px 40px rgba(37,211,102,.5), 0 0 0 8px rgba(37,211,102,.1); }
}

/* ─── ANIMATIONS / SCROLL ─── */
.animate-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ─── TABLET (900px) ─── */
@media (max-width: 900px) {
  .btn-all-cats-text { display: none; }
  .btn-all-cats { padding: 10px; }
  .cat-dropdown-menu { width: 240px; }

  .header-search { margin: 0 8px; flex: 0; }
  .search-input { display: none; }
  .search-form { padding: 4px; border: none; background: transparent; }

  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .mobile-menu-overlay { display: block; }
  .btn-whatsapp span { display: none; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
  .hero-visual { order: -1; }
  .hero-text { text-align: center; align-items: center; }
  .hero-desc { max-width: 100%; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-layout { grid-template-columns: 1fr; }
  .repair-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map { position: static; }
  .footer-top-inner { grid-template-columns: 1fr 1fr; }
}

/* ─── MOBILE (600px) ─── */
@media (max-width: 600px) {
  /* HEADER */
  .header-inner {
    height: 64px;
    gap: 8px;
    padding: 0 12px;
  }
  .logo-img { height: 48px; }
  .cat-dropdown-wrap { margin-left: 0; margin-right: 4px; }
  .btn-all-cats { padding: 8px 10px; gap: 6px; }
  .header-search { display: none; }
  .header-actions { gap: 6px; }
  .lang-toggle { padding: 6px 10px; font-size: 0.75rem; }
  .header-icon-btn { width: 34px; height: 34px; }
  .btn-whatsapp { display: flex; width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; }

  /* Mobile menu offset */
  .mobile-menu { top: 64px; }
  .mobile-menu-overlay { top: 64px; }
  .breadcrumb-wrapper { margin-top: 64px; }

  /* HERO */
  .hero { padding-top: 64px; min-height: auto; }
  .hero-content {
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hero-badge { font-size: 0.75rem; padding: 5px 14px; }
  .hero-title-line1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero-title-line2 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .hero-title-line3 { font-size: clamp(1rem, 4vw, 1.6rem); letter-spacing: 1px; }
  .hero-desc { font-size: 0.88rem; line-height: 1.6; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { padding: 11px 20px; font-size: 0.85rem; }
  .hero-stats { gap: 12px; padding-top: 4px; }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 0.72rem; }
  .hero-device-frame { max-width: 320px; margin: 0 auto; }
  .hero-img { height: 240px; }
  .hero-floating-badge { display: none; }
  .hero-scroll-hint { display: none; }

  /* SECTION COMMON */
  .section { padding: clamp(40px, 8vw, 80px) 0; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* CATEGORIES */
  .categories-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { padding: 18px 16px; gap: 14px; }
  .cat-icon-wrap { width: 44px; height: 44px; }
  .cat-icon { width: 22px; height: 22px; }
  .cat-name { font-size: 0.95rem; }
  .cat-desc { font-size: 0.75rem; }

  /* PRODUCTS */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prod-info { padding: 10px; }
  .prod-name-catalog { font-size: 0.82rem; }
  .prod-price { font-size: 1.1rem; }
  .prod-price-old { font-size: 0.75rem; }
  .prod-sku { font-size: 0.65rem; }
  .prod-desc-catalog { font-size: 0.7rem; -webkit-line-clamp: 3; }
  .btn-quick-order { padding: 8px 12px; font-size: 0.78rem; width: 100%; }
  .catalog-style .prod-img-wrap { padding: 10px; }
  .prod-footer-catalog { flex-direction: column; gap: 8px; align-items: stretch; }
  .avail-box { flex-direction: row; justify-content: space-between; }

  /* CATALOG CONTROLS */
  .catalog-controls { gap: 10px; }
  .product-filters { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 0.78rem; }
  .sort-select { padding: 8px 12px; font-size: 0.78rem; width: 100%; }

  /* PRODUCT DETAIL */
  .pd-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .pd-price { font-size: 1.7rem; }
  .pd-thumbs { gap: 8px; }
  .pd-thumb { width: 58px; height: 58px; }
  .pd-spec-item { grid-template-columns: 110px 1fr; font-size: 0.82rem; }
  .tech-tab { padding: 10px 14px; font-size: 0.8rem; }

  /* REPAIR */
  .repair-grid { grid-template-columns: 1fr; gap: 14px; }
  .repair-card { padding: 24px 20px; }

  /* CONTACT */
  .contact-card { padding: 16px 18px; gap: 12px; }
  .map-placeholder { height: 280px; }
  .social-links { gap: 8px; }
  .social-btn { padding: 8px 14px; font-size: 0.8rem; }

  /* CATEGORY PAGE */
  .catpage-header { margin-top: 64px; padding: 16px 0; }
  .catpage-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .catpage-back, .catpage-nav-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    width: 100%;
    justify-content: center;
  }

  /* FOOTER */
  .footer-top { padding: 40px 0; }
  .footer-top-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
  .footer-tagline { max-width: 100%; }

  /* MODAL */
  .modal-box { padding: 20px 18px; max-height: 95vh; }
  .modal-title { font-size: 1.1rem; }

  /* CART MODAL */
  .cart-modal { max-width: 100%; }

  /* REVIEWS */
  .review-form-wrapper { padding: 16px; }

  /* FLOATING WHATSAPP */
  .floating-whatsapp { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  [dir="rtl"] .floating-whatsapp { left: 16px; }

  /* TOAST */
  .toast-container { right: 12px; left: 12px; bottom: 80px; }
  .toast { font-size: 0.85rem; }

  /* BACK TO TOP */
  .back-to-top { bottom: 80px; right: 16px; width: 40px; height: 40px; }
  [dir="rtl"] .back-to-top { right: auto; left: 16px; }
}

/* ─── SMALL MOBILE (400px) ─── */
@media (max-width: 400px) {
  .header-inner { gap: 4px; padding: 0 8px; }
  .logo-img { height: 40px; }
  .lang-toggle { display: none; }
  .header-search { flex: 1; max-width: 120px; }

  .products-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { display: flex; flex-direction: row; align-items: stretch; }
  .product-card .prod-img-wrap {
    width: 130px;
    flex-shrink: 0;
    aspect-ratio: auto;
  }
  .product-card .prod-info { flex: 1; padding: 12px; }
  .product-card .catalog-style .prod-img-wrap { width: 120px; }

  .cat-card { flex-direction: row; text-align: left; }
  [dir="rtl"] .cat-card { text-align: right; }

  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { width: 100%; justify-content: center; }

  .hero-title-line1 { font-size: 1.6rem; }
  .hero-title-line2 { font-size: 2rem; }
  .hero-title-line3 { font-size: 0.95rem; }

  .footer-social { flex-wrap: wrap; }
  .catpage-header-inner { gap: 12px; }
}

/* ─── RTL (Arabic) ─── */
[dir="rtl"] .logo-num { padding-right: 0; padding-left: 1px; }
[dir="rtl"] .hero-title-line3 { letter-spacing: 0; }
[dir="rtl"] .contact-card:hover { transform: translateX(-4px); }
[dir="rtl"] .cat-arrow { transform: scaleX(-1); }
[dir="rtl"] .cat-card:hover .cat-arrow { transform: scaleX(-1) translateX(-4px); }
[dir="rtl"] .floating-whatsapp { right: auto; left: 24px; }
[dir="rtl"] .hero-floating-badge.badge-new { right: auto; left: -16px; }
[dir="rtl"] .hero-floating-badge.badge-deliver { left: auto; right: -16px; }
[dir="rtl"] .cat-dropdown-wrap { margin-left: 0; margin-right: 20px; }
[dir="rtl"] .cat-dropdown-menu { left: auto; right: 0; }
[dir="rtl"] .cat-item-arrow { transform: scaleX(-1); }
[dir="rtl"] .cat-dropdown-item:hover .cat-item-arrow { transform: scaleX(-1) translateX(-4px); }
[dir="rtl"] .pd-spec-item { grid-template-columns: 140px 1fr; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0a0a0; }

/* ─── CATALOG MODAL ─── */
.catalog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10,10,15,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.catalog-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.catalog-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  box-shadow: 0 32px 80px rgba(0,0,0,.18), 0 0 0 1px rgba(201,168,76,.12);
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1);
}
.catalog-overlay.open .catalog-modal {
  transform: translateY(0) scale(1);
}
.catalog-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.catalog-modal-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 6px;
}
.catalog-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
}
.catalog-modal-close {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  margin-top: 2px;
}
.catalog-modal-close:hover {
  background: rgba(201,168,76,.06);
  border-color: rgba(201,168,76,.2);
  color: var(--gold-dim);
}
.catalog-grid {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.catalog-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.catalog-item:hover {
  background: rgba(201,168,76,.05);
  border-color: rgba(201,168,76,.18);
  transform: translateX(4px);
}
.catalog-item-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,.06);
  flex-shrink: 0;
  transition: all var(--transition);
}
.catalog-item-icon svg {
  width: 22px; height: 22px;
  stroke: var(--gold-dim);
}
.catalog-item:hover .catalog-item-icon {
  background: rgba(201,168,76,.08);
  border-color: rgba(201,168,76,.2);
}
.catalog-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.catalog-item-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}
.catalog-item-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.catalog-item-arrow {
  stroke: var(--text-dim);
  transition: all var(--transition);
  flex-shrink: 0;
  opacity: 0.5;
}
.catalog-item:hover .catalog-item-arrow {
  stroke: var(--gold);
  transform: translateX(3px);
  opacity: 1;
}

@media (max-width: 600px) {
  .catalog-modal-header { padding: 20px 18px 16px; }
  .catalog-grid { padding: 12px 10px 18px; }
  .catalog-item { padding: 12px 12px; gap: 12px; }
  .catalog-item-icon { width: 38px; height: 38px; }
}
[dir="rtl"] .catalog-item:hover { transform: translateX(-4px); }
[dir="rtl"] .catalog-item:hover .catalog-item-arrow { transform: scaleX(-1) translateX(-3px); }
[dir="rtl"] .catalog-item-arrow { transform: scaleX(-1); }

/* ─── CATEGORY PAGE HEADER ─── */
.catpage-header {
  padding: 24px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 0;
  margin-top: 124px; /* fixed header height */
}
.catpage-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.catpage-title-wrap {
  text-align: center;
  flex: 1;
}
.catpage-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-full);
  color: var(--gold-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.catpage-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}
.catpage-back, .catpage-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.catpage-back:hover, .catpage-nav-btn:hover {
  background: rgba(201,168,76,.05);
  border-color: rgba(201,168,76,.2);
  color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .catpage-header-inner { flex-direction: row; text-align: center; justify-content: space-between; }
  .catpage-back, .catpage-nav-btn { width: auto; justify-content: center; padding: 6px 12px; }
  .catpage-header { padding: 8px 0; }
}
[dir="rtl"] .catpage-back svg { transform: scaleX(-1); }

/* ─── AVIS CLIENTS ─── */
.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-item {
  background: var(--bg-main);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.05);
}
.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review-author {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.review-stars {
  color: #ffc107;
  font-size: 0.9rem;
  letter-spacing: 2px;
}
.review-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.review-form-wrapper {
  background: var(--bg-alt);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.05);
  margin-top: 10px;
}
.review-form-wrapper h4 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  color: var(--text-primary);
}
.review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rating-select {
  display: inline-flex;
  gap: 4px;
  cursor: pointer;
  font-size: 1.5rem;
  color: #ccc;
}
.rating-select span {
  transition: color 0.2s;
}
.rating-select span.active, .rating-select span:hover, .rating-select span:hover ~ span {
  color: #ffc107;
}
.rating-select span:hover ~ span {
  color: #ccc; /* trick: reset following siblings on hover */
}
/* precise hover trick */
.rating-select { direction: rtl; unicode-bidi: bidi-override; }
.rating-select span:hover ~ span { color: #ccc; }

/* ─── PREMIUM E-COMMERCE FEATURES ─── */
.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: var(--chrome);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.header-icon-btn:hover {
  background: rgba(201,168,76,.1);
  border-color: var(--gold-dim);
  color: var(--gold-light);
  transform: translateY(-2px);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red, #e74c3c);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CART OVERLAY & MODAL - UNIFIED */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: block;
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cart-modal {
  position: fixed;
  top: 0; bottom: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  background: var(--bg-card);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.25);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-modal.active { right: 0; }
[dir="rtl"] .cart-modal { right: auto; left: -420px; }
[dir="rtl"] .cart-modal.active { left: 0; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.cart-header h2 { font-family: var(--font-display); font-size: 1.3rem; }
.cart-close {
  background: none; border: none;
  cursor: pointer; color: var(--text-dim);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-alt);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.05);
}
.cart-item img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; display: block;
}
.cart-item-price { color: var(--gold-dim); font-weight: 700; font-size: 0.9rem; }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.cart-item-qty button {
  width: 24px; height: 24px;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--bg-main);
  border-radius: 4px;
  cursor: pointer;
}
.cart-item-remove {
  color: var(--red, #e74c3c); cursor: pointer; border: none; background: none; margin-left: 8px;
}
.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: var(--bg-alt);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cart-checkout-btn { width: 100%; justify-content: center; }

/* TOASTS */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
}
[dir="rtl"] .toast-container { right: auto; left: 24px; }
.toast {
  background: var(--bg-main);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 4px solid var(--gold);
  font-weight: 600;
  display: flex; align-items: center; gap: 12px;
  transform: translateX(100%);
  opacity: 0;
  animation: slideIn 0.3s forwards;
}
@keyframes slideIn {
  to { transform: translateX(0); opacity: 1; }
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px; /* Default LTR */
  width: 44px; height: 44px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-dark); transform: translateY(-3px); }
[dir="rtl"] .back-to-top { right: auto; left: 24px; }

/* DARK MODE */
body.dark-theme {
  --bg-main: #0a0c10;
  --bg-alt: #13161d;
  --bg-card: #181c25;
  --text-primary: #ffffff;
  --text-secondary: #a0a6b5;
  --text-dim: #7a8294;
  --border-light: rgba(255,255,255,0.08);
}
body.dark-theme .header-icon-btn, body.dark-theme .lang-toggle {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: var(--text-primary);
}
body.dark-theme .pd-main-img-wrap, body.dark-theme .hero-right-inner { background: #13161d; }
body.dark-theme .form-input { background: #13161d; color: #fff; border-color: rgba(255,255,255,0.1); }
body.dark-theme .review-item, body.dark-theme .cat-card, body.dark-theme .cart-item { border-color: rgba(255,255,255,0.08); }

/* --- Storefront integrity layer: shared states and accessible interactions --- */
:root { --focus-ring: 0 0 0 3px rgba(201, 168, 76, .32); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.top-announcement-bar {
  background: linear-gradient(135deg, #fdf4c8 0%, #f6e088 100%);
  color: #111;
  min-height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-weight: 600;
}
.marquee-container {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.marquee-content {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 20s linear infinite;
  color: inherit;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-content span {
  padding: 0 20px;
  white-space: nowrap;
}

.marquee-content .separator {
  color: rgba(255, 255, 255, 0.5);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.drawer-open, .modal-open { overflow: hidden; }
.catalog-empty, .cart-empty {
  grid-column: 1 / -1;
  padding: 32px;
  margin: 0;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}
.cart-item-options { display: block; margin-top: 3px; color: var(--text-dim); }
.pd-promo-feedback.is-success { color: var(--green-dark); }
.pd-promo-feedback.is-error { color: var(--red); }
.pd-short-desc strong { color: var(--text-primary); }
#pvTitle { color: var(--text-primary) !important; text-transform: none !important; font-size: clamp(1.5rem, 2.5vw, 2.2rem) !important; }
.products-grid .product-card { opacity: 1; transform: none; }
@media (max-width: 768px) {
  .top-announcement-bar { min-height: 30px; }
  .hero-banners { padding-top: 124px; }
  .main-slider-wrapper { margin-bottom: 12px; }
  .cart-modal { max-width: 100%; }
}



/* ── Product Options: Stockage & Couleur ── */
.pd-options-wrap { margin-top: 20px; padding: 0 4px; }
.pd-option-group { margin-bottom: 18px; }
.pd-option-group label { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 10px; }
.pd-options-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-option-btn { padding: 8px 16px; border: 1.5px solid rgba(0,0,0,0.12); background: var(--bg-card); color: var(--text-primary); border-radius: var(--radius-md); cursor: pointer; font-size: 0.88rem; font-weight: 600; font-family: var(--font-main); transition: all 0.2s ease; box-shadow: var(--shadow-sm); }
.pd-option-btn:hover { border-color: var(--gold); color: var(--gold); }
.pd-option-btn.active { border: 2px solid var(--gold); background: rgba(201,168,76,0.08); color: var(--gold); font-weight: 700; box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.pd-color-options { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pd-color-btn { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bg-main); box-shadow: 0 0 0 1.5px rgba(0,0,0,0.15); cursor: pointer; transition: all 0.2s ease; outline: none; }
.pd-color-btn:hover { transform: scale(1.12); box-shadow: 0 0 0 2px var(--gold); }
.pd-color-btn.active { transform: scale(1.12); box-shadow: 0 0 0 2.5px var(--gold), 0 4px 12px rgba(201,168,76,0.3); }

/* ── HERO BANNERS ── */
.hero-banners { padding-top: 150px; padding-bottom: 40px; background-color: var(--bg-alt); }
.main-slider-wrapper { position: relative; width: 100%; max-width: 1280px; margin: 0 auto 20px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 21/9; }
@media (max-width: 768px) { .main-slider-wrapper { aspect-ratio: 4/3; border-radius: 0; } }
.main-slider { display: flex; height: 100%; width: 100%; transition: transform 0.5s ease-in-out; }
.slide { position: relative; min-width: 100%; height: 100%; display: flex; align-items: center; overflow: hidden; }
.slide-bg { position: absolute; inset: 0; z-index: 0; }
.slide-content { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 40px; }
.slide-text { flex: 1; max-width: 50%; color: white; }
.slide-badge { display: inline-block; padding: 4px 12px; background: var(--gold); color: #fff; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.slide-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.slide-desc { font-size: clamp(1rem, 2vw, 1.25rem); opacity: 0.9; margin-bottom: 24px; }
.slide-img-wrap { flex: 1; display: flex; justify-content: flex-end; align-items: center; height: 100%; }
.slide-img { max-height: 90%; max-width: 80%; object-fit: contain; transform: scale(1); transition: transform 0.5s ease; }
.slide:hover .slide-img { transform: scale(1.05); }
.slide-btn { padding: 12px 28px !important; }
.slider-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; }
.slider-nav-btn:hover { background: rgba(201,168,76,0.5); border-color: var(--gold); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.2s ease; }
.dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ── MINI BANNERS ── */
.mini-banners-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 768px) { .mini-banners-grid { grid-template-columns: 1fr; } }
.mini-banner { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-radius: var(--radius-md); overflow: hidden; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: var(--shadow-sm); }
.mini-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mini-banner-text h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.mini-banner-text p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; }
.mini-link { font-size: 0.82rem; font-weight: 700; color: var(--gold-dim); }
.mini-banner img { height: 80px; width: auto; object-fit: contain; }

/* ── SECONDARY BANNERS ── */
.secondary-banners-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (max-width: 640px) { .secondary-banners-grid { grid-template-columns: 1fr; } }
.sec-banner { display: flex; align-items: center; justify-content: space-between; padding: 28px 32px; border-radius: var(--radius-md); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sec-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sec-banner-text h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.sec-banner-text p { font-size: 0.88rem; opacity: 0.85; }
.sec-banner-icon { width: 48px; height: 48px; opacity: 0.7; flex-shrink: 0; }

/* ── DEAL OF THE DAY ── */
.deal-of-day-wrap { padding: 20px 0; }
.deal-of-day-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); padding: 40px; min-height: 200px; display: flex; align-items: center; }
.deal-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }
.deal-content { position: relative; z-index: 1; color: white; }
.deal-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; background: var(--gold); color: #000; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; }
.deal-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 10px; }
.deal-title span { color: var(--gold-light); }
.deal-sub { font-size: 0.95rem; opacity: 0.85; margin-bottom: 20px; max-width: 600px; }
.deal-countdown { display: flex; align-items: center; gap: 12px; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; }
.countdown-num { font-size: 2rem; font-weight: 800; line-height: 1; font-family: var(--font-display); }
.countdown-lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; margin-top: 2px; }
.countdown-sep { font-size: 2rem; font-weight: 700; color: var(--gold); }

/* ── CATALOG CONTROLS ── */
.catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.product-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { padding: 8px 18px; border: 1.5px solid rgba(0,0,0,0.1); background: var(--bg-card); color: var(--text-secondary); border-radius: var(--radius-full); cursor: pointer; font-size: 0.88rem; font-weight: 600; font-family: var(--font-main); transition: all 0.2s ease; }
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); color: white; border-color: var(--gold); }
.sort-select { padding: 8px 16px; border: 1.5px solid rgba(0,0,0,0.1); background: var(--bg-card); color: var(--text-primary); border-radius: var(--radius-full); font-size: 0.88rem; font-family: var(--font-main); cursor: pointer; outline: none; }

/* ── CATPAGE HEADER ── */
.catpage-header { background: var(--bg-card); border-bottom: 1px solid rgba(0,0,0,0.06); padding: 12px 0; box-shadow: var(--shadow-sm); }
@media (min-width: 901px) { .catpage-header { position: sticky; top: 124px; z-index: 50; } }
.catpage-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catpage-back { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius-full); background: var(--bg-card); color: var(--text-secondary); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-family: var(--font-main); }
.catpage-back:hover { border-color: var(--gold); color: var(--gold); }
.catpage-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.catpage-tag { font-size: 0.8rem; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── REPAIR SECTION ── */
.repair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.repair-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px; border: 1px solid rgba(0,0,0,0.06); transition: all 0.25s ease; }
.repair-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,168,76,0.2); }
.repair-icon-wrap { width: 52px; height: 52px; border-radius: var(--radius-md); background: rgba(201,168,76,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.repair-icon-wrap svg { width: 26px; height: 26px; stroke: var(--gold); }
.repair-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.repair-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.repair-cta-card { border-color: rgba(201,168,76,0.3); background: linear-gradient(135deg, rgba(201,168,76,0.04), var(--bg-card)); }
.repair-whatsapp-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 10px 18px; background: var(--green); color: white; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; transition: all 0.2s ease; }
.repair-whatsapp-btn:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ── PRODUCT DETAIL ── */
.pd-layout { display: grid; grid-template-columns: minmax(300px, 450px) 1fr; gap: 48px; align-items: start; justify-content: center; }
@media (max-width: 900px) { .pd-layout { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .pd-gallery { position: sticky; top: 160px; } }
.pd-main-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.pd-main-img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.pd-main-img:hover { transform: scale(1.04); }
.pd-badge-new { position: absolute; top: 12px; left: 12px; background: var(--red); color: white; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--gold); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-details { padding-top: 8px; }
.pd-title { font-size: 1.4rem; font-weight: 800; color: #0056b3; text-transform: uppercase; margin-bottom: 8px; }
.pd-price { font-size: 2rem; font-weight: 800; color: var(--gold-dim); }
.pd-actions { display: flex; flex-direction: column; gap: 12px; }
.pd-order-btn { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
.pd-whatsapp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: var(--radius-full); border: 1.5px solid var(--gold-dim); color: var(--gold-dim); font-weight: 600; font-size: 0.9rem; transition: all 0.2s ease; }
.pd-whatsapp-btn:hover { background: rgba(201,168,76,0.08); }
.btn-ask-product { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 0.82rem; font-weight: 600; padding: 8px 0; transition: color 0.2s; }
.btn-ask-product:hover { color: var(--gold); }

/* ── PROMO CODE ── */
.pd-promo-wrap { border: 1px dashed rgba(201,168,76,0.4); border-radius: var(--radius-md); overflow: hidden; }
.pd-promo-toggle { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; background: rgba(201,168,76,0.04); font-size: 0.88rem; font-weight: 600; color: var(--gold-dim); }
.pd-promo-toggle:hover { background: rgba(201,168,76,0.08); }
.pd-promo-chevron { transition: transform 0.2s ease; margin-left: auto; }
.pd-promo-chevron.open { transform: rotate(180deg); }
.pd-promo-body { display: none; padding: 12px 16px; border-top: 1px solid rgba(201,168,76,0.15); }
.pd-promo-body.open { display: block; }
.pd-promo-input-row { display: flex; gap: 8px; }
.pd-promo-input-row input { flex: 1; padding: 10px 14px; border: 1.5px solid rgba(0,0,0,0.12); border-radius: var(--radius-sm); font-family: var(--font-main); font-size: 0.9rem; outline: none; }
.pd-promo-input-row input:focus { border-color: var(--gold); }
.pd-promo-apply { padding: 10px 18px; background: var(--gold); color: white; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.88rem; cursor: pointer; font-family: var(--font-main); transition: background 0.2s; }
.pd-promo-apply:hover { background: var(--gold-dim); }
.pd-promo-feedback { margin-top: 8px; font-size: 0.85rem; font-weight: 600; }
.pd-promo-result { margin-top: 8px; font-size: 0.9rem; color: var(--green-dark); font-weight: 700; }

/* ── EXTENDED SPECS / REVIEWS ── */
.pd-extended-specs { margin-top: 48px; border-top: 1px solid rgba(0,0,0,0.08); padding-top: 32px; }
.tech-tabs { display: flex; gap: 0; border-bottom: 2px solid rgba(0,0,0,0.08); margin-bottom: 24px; }
.tech-tab { padding: 12px 24px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.5px; color: var(--text-dim); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s ease; font-family: var(--font-main); }
.tech-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tech-specs-table { width: 100%; border-collapse: collapse; }
.tech-specs-table tr:nth-child(even) { background: var(--bg-alt); }
.tech-specs-table td { padding: 10px 16px; font-size: 0.9rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
.tech-specs-table td:first-child { font-weight: 600; color: var(--text-secondary); width: 40%; }
.reviews-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.review-item { background: var(--bg-alt); border-radius: var(--radius-md); padding: 16px; }
.review-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 6px; }
.review-author { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.review-comment { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }
.review-form { display: flex; flex-direction: column; gap: 12px; }
.review-form h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.review-stars-input { display: flex; gap: 4px; font-size: 1.8rem; cursor: pointer; }
.star-input { color: #ddd; transition: color 0.15s; }
.star-input.active, .star-input:hover { color: var(--gold); }
.form-input { padding: 10px 14px; border: 1.5px solid rgba(0,0,0,0.12); border-radius: var(--radius-sm); font-family: var(--font-main); font-size: 0.9rem; outline: none; width: 100%; }
.form-input:focus { border-color: var(--gold); }

/* ── CATEGORIES GRID ── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.cat-card { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,0.06); text-decoration: none; transition: all 0.25s ease; position: relative; overflow: hidden; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,168,76,0.2); }
.cat-icon-wrap { width: 52px; height: 52px; border-radius: var(--radius-md); background: rgba(201,168,76,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-icon { width: 26px; height: 26px; stroke: var(--gold); }
.cat-content { flex: 1; }
.cat-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.cat-desc { font-size: 0.82rem; color: var(--text-dim); }
.cat-arrow { color: var(--text-dim); transition: transform 0.2s, color 0.2s; }
.cat-card:hover .cat-arrow { transform: translateX(4px); color: var(--gold); }
.cat-bg-glow { position: absolute; bottom: -20px; right: -20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(201,168,76,0.06); transition: all 0.3s ease; }
.cat-card:hover .cat-bg-glow { width: 120px; height: 120px; background: rgba(201,168,76,0.1); }


/* ── ORDER MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; backdrop-filter: blur(4px); }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1001; background: var(--bg-card); border-radius: var(--radius-xl); width: min(520px, 95vw); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 0; }
.modal-header h3 { font-size: 1.2rem; font-weight: 700; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-body { padding: 20px 28px; }
.modal-product-info { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 16px; padding: 10px 14px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.modal-footer { padding: 0 28px 24px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { padding: 12px 24px; border-radius: var(--radius-full); background: #1a1a1a; color: white; font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-md); animation: toastIn 0.3s ease; }
.toast.success { background: var(--green-dark); }
.toast.error { background: var(--red); }
@keyframes toastIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

/* ── BACK TO TOP ── */
.back-to-top { position: fixed; bottom: 90px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: white; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 100; }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); background: var(--gold-dim); }

/* ── FLOATING WHATSAPP ── */
.floating-whatsapp { position: fixed; bottom: 24px; right: 24px; display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--green); color: white; border-radius: var(--radius-full); font-weight: 700; font-size: 0.9rem; box-shadow: 0 6px 20px rgba(37,211,102,0.35); transition: all 0.3s ease; z-index: 99; text-decoration: none; }
.floating-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(37,211,102,0.45); background: var(--green-dark); }
.floating-label { white-space: nowrap; }


/* ── CART MODAL (duplicate removed - now unified above) ── */
@media (max-width: 640px) {
  .cart-modal { max-width: 100%; }
}


@media (max-width: 768px) {
  .catpage-header {
    margin-top: 94px;
    top: 94px;
  }
}

/* ─── RICH FOOTER ─── */
.main-footer {
  background: var(--bg-alt);
  color: var(--text-primary);
  font-family: var(--font-main);
  border-top: 1px solid rgba(0,0,0,0.05);
}
body.dark-theme .main-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Trust Bar */
.footer-trust-bar {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.dark-theme .footer-trust-bar {
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.trust-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-item {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.trust-icon {
  width: 64px;
  height: 64px;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.trust-item:hover .trust-icon {
  transform: translateY(-5px);
  background: var(--gold);
  color: #fff;
}
.trust-text {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Main Footer Grid */
.footer-main {
  padding: 60px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.footer-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--gold);
}

.footer-contact-info {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}
.footer-contact-info li svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Newsletter & Social */
.footer-news-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-news-form {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.footer-news-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: var(--bg-card);
  color: var(--text-primary);
}
body.dark-theme .footer-news-form input {
  border-color: rgba(255,255,255,0.1);
}
.footer-news-form button {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.footer-news-form button:hover {
  background: #b89845;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}
.footer-social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}
body.dark-theme .footer-social-icons a {
  background: rgba(255,255,255,0.05);
}
.footer-social-icons a:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-3px);
}

/* Bottom Copyright */
.footer-bottom {
  background: #111;
  color: #888;
  padding: 20px 0;
  font-size: 0.9rem;
  text-align: center;
}
.footer-bottom p { margin: 0; }

/* ─── FOOTER RESPONSIVE ─── */
@media (max-width: 768px) {
  .trust-bar-inner { justify-content: center; gap: 20px; }
  .trust-item { min-width: 45%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .trust-item { min-width: 100%; flex-direction: row; text-align: left; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-news-form { flex-direction: column; }
  .footer-news-form button { width: 100%; padding: 12px; }
}
[dir=rtl] .footer-contact-info li { flex-direction: row-reverse; text-align: right; }
[dir=rtl] .trust-item { text-align: center; }

/* ─── CATALOG LAYOUT & SIDEBAR ─── */
.catalog-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.catalog-sidebar {
  flex: 0 0 250px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 100px;
}
.catalog-main {
  flex: 1;
  min-width: 0;
}
.filter-group {
  margin-bottom: 24px;
}
.filter-group:last-child {
  margin-bottom: 0;
}
.filter-group h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-inputs input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 0.9rem;
}
.catalog-sidebar select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
}
.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.sidebar-header {
  display: none;
}
.upsell-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-main);
}
.upsell-product img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
}
.upsell-info {
  flex: 1;
}
.upsell-info h5 {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.upsell-info p {
  margin: 0;
  font-weight: 700;
  color: var(--gold);
}
.btn-upsell-add {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 900px) {
  .catalog-layout {
    flex-direction: column;
  }
  .catalog-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    z-index: 10000;
    border-radius: 0;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  [dir=rtl] .catalog-sidebar {
    left: auto;
    right: -100%;
    transition: right 0.3s ease;
  }
  .catalog-sidebar.open {
    left: 0;
  }
  [dir=rtl] .catalog-sidebar.open {
    right: 0;
  }
  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }
  .sidebar-header h3 { margin: 0; }
  .close-filters {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
  }
  .mobile-filter-toggle {
    display: flex;
  }
}

@media (max-width: 768px) { .logo-text { font-size: 1.1rem; } .logo-img { height: 45px; } .logo { gap: 8px; } }

/* ─── TOUCH & NARROW-SCREEN SAFEGUARDS ───
   Product actions used to depend solely on :hover. Phones do not have a
   persistent hover state, so the add-to-cart action was effectively hidden. */
@media (max-width: 900px) {
  .prod-overlay {
    align-items: flex-end;
    padding: 8px;
    opacity: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(8, 10, 14, 0.38), transparent 58%);
    backdrop-filter: none;
  }

  .btn-quick-order {
    width: 100%;
    min-height: 44px;
    transform: none;
    pointer-events: auto;
  }

  /* Long labels must wrap inside the slider instead of leaving the viewport. */
  .slide-content { padding-inline: 24px; }
  .slide-text { min-width: 0; }
  .slide-btn { max-width: 100%; white-space: normal; justify-content: center; }

  /* Tabs remain reachable on narrow displays, including Arabic labels. */
  .tech-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tech-tab { flex: 0 0 auto; }
}

/* Every order-related dialog must fit the usable mobile viewport. Inline
   minimum widths are overridden deliberately for phones as narrow as 280px. */
@media (max-width: 600px) {
  .order-modal {
    box-sizing: border-box;
    width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    max-width: 500px !important;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: clamp(18px, 6vw, 30px) !important;
  }

  #reviewForm > div:first-of-type {
    flex-wrap: wrap;
  }

  #reviewForm > div:first-of-type input,
  #reviewForm > div:first-of-type select {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .header-inner { padding-inline: 6px; }
  .header-actions { gap: 4px; }

  #upsellModal > div:last-child { flex-wrap: wrap; }
  #upsellModal > div:last-child .btn-primary,
  #upsellModal > div:last-child .btn-outline {
    flex: 1 1 100% !important;
    justify-content: center;
  }
}

