@font-face {
  font-family: 'NRT';
  src: url('../fonts/NRT-Reg.eot');
  src: url('../fonts/NRT-Reg.eot?#iefix') format('embedded-opentype'),
       url('../fonts/NRT-Reg.woff') format('woff'),
       url('../fonts/NRT-Reg.ttf') format('truetype'),
       url('../fonts/NRT-Reg.svg#NRT-Reg') format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'NRT';
  src: url('../fonts/NRT-Bd.eot');
  src: url('../fonts/NRT-Bd.eot?#iefix') format('embedded-opentype'),
       url('../fonts/NRT-Bd.woff') format('woff'),
       url('../fonts/NRT-Bd.ttf') format('truetype'),
       url('../fonts/NRT-Bd.svg#NRT-Bd') format('svg');
  font-weight: bold;
  font-style: normal;
}
:root{
  --gold:#00b4d8;
  --gold-light:#38bdf8;
  --gold-dark:#0284c7;
  --cyan:#00b4d8;
  --cyan-glow:rgba(0, 180, 216, 0.25);
  --blue-tech:#0284c7;
  --cta-tech:#ff6b00;
  --cta-light:#ff8c00;
  --cta-glow:rgba(255, 107, 0, 0.25);
  --black:#ffffff;
  --dark:#f8fafc;
  --dark2:#ffffff;
  --dark3:#f1f5f9;
  --surface:#ffffff;
  --surface2:#f1f5f9;
  --surface-glass:rgba(255, 255, 255, 0.92);
  --white:#0f172a;
  --off-white:#f8fafc;
  --pure-white:#ffffff;
  --text-dark:#0f172a;
  --text-heading:#0f172a;
  --text-body:#334155;
  --text-light:#475569;
  --text-muted:#64748b;
  --accent:#00b4d8;
  --success:#10b981;
  --warning:#f59e0b;
  --danger:#ef4444;
  --info:#0284c7;
  --border:#e2e8f0;
  --border-glow:rgba(0, 180, 216, 0.25);
  --shadow:0 10px 30px rgba(0,0,0,0.06);
  --shadow-gold:0 8px 25px rgba(0, 180, 216, 0.15);
  --radius:14px;
  --radius-lg:22px;
  --transition:all 0.25s cubic-bezier(0.4,0,0.2,1);
  --font:'NRT', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
[data-theme="dark"] {
  --gold:#00b4d8;
  --gold-light:#38bdf8;
  --gold-dark:#0284c7;
  --cyan:#00b4d8;
  --cyan-glow:rgba(0, 180, 216, 0.4);
  --blue-tech:#0ea5e9;
  --cta-tech:#ff6b00;
  --cta-light:#ff8c00;
  --cta-glow:rgba(255, 107, 0, 0.35);
  --black:#06080f;
  --dark:#0b0f19;
  --dark2:#111827;
  --dark3:#1e293b;
  --surface:#0f172a;
  --surface2:#1e293b;
  --surface-glass:rgba(15, 23, 42, 0.9);
  --white:#ffffff;
  --off-white:#f8fafc;
  --pure-white:#0f172a;
  --text-dark:#f8fafc;
  --text-heading:#f8fafc;
  --text-body:#cbd5e1;
  --text-light:#94a3b8;
  --text-muted:#64748b;
  --accent:#00b4d8;
  --success:#10b981;
  --warning:#f59e0b;
  --danger:#ef4444;
  --info:#38bdf8;
  --border:rgba(255, 255, 255, 0.1);
  --border-glow:rgba(0, 180, 216, 0.35);
  --shadow:0 12px 36px rgba(0,0,0,0.5);
  --shadow-gold:0 8px 25px rgba(0, 180, 216, 0.3);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--dark);color:var(--text-body);direction:rtl;text-align:right;line-height:1.7;min-height:100vh;overflow-x:hidden}
::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:#f1f5f9}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--gold)}
h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.3;color:var(--text-heading)}
h1{font-size:clamp(1.8rem,4vw,3rem)}h2{font-size:clamp(1.4rem,3vw,2.2rem)}h3{font-size:clamp(1.1rem,2vw,1.6rem)}
p{color:var(--text-light)}a{color:var(--gold);text-decoration:none;transition:var(--transition)}a:hover{color:var(--gold-light)}
.container{max-width:1280px;margin:0 auto;padding:0 20px;overflow-x:hidden}.section{padding:80px 0}
.header{position:fixed;top:0;width:100%;z-index:1000;background:rgba(255,255,255,0.96);backdrop-filter:blur(20px);border-bottom:1px solid var(--border);transition:var(--transition);box-shadow:0 2px 14px rgba(0,0,0,0.05)}
.header.scrolled{background:rgba(255,255,255,0.98);box-shadow:0 4px 20px rgba(0,0,0,0.08)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;max-width:1280px;margin:0 auto}
.logo{display:flex;align-items:center;gap:10px;font-size:1.6rem;font-weight:700;color:var(--gold)}.logo span{color:var(--text-heading)}.logo-icon{font-size:2rem}
.nav{display:flex;align-items:center;gap:8px}.nav a{padding:8px 16px;border-radius:8px;color:var(--text-body);font-size:0.95rem;transition:var(--transition)}.nav a:hover,.nav a.active{color:#00b4d8;background:rgba(0,180,216,0.08)}
.header-actions{display:flex;align-items:center;gap:12px}
.cart-btn{position:relative;padding:10px 20px;background:var(--gold);color:#ffffff;border-radius:30px;font-weight:700;display:flex;align-items:center;gap:8px;transition:var(--transition)}.cart-btn:hover{background:var(--gold-light);color:#ffffff;transform:translateY(-2px)}
.cart-count{position:absolute;top:-6px;right:-6px;background:var(--accent);color:#fff;width:20px;height:20px;border-radius:50%;font-size:0.7rem;font-weight:700;display:flex;align-items:center;justify-content:center}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:8px}.hamburger span{width:24px;height:2px;background:var(--gold);border-radius:2px;transition:var(--transition)}
.hero-section {
  padding-top: 95px;
  padding-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}
.hero-section .container {
  max-width: 1520px;
}
/* ===================================================
   Category Hero Image Slider (New Collection Showcase)
   =================================================== */
.category-hero-slider-wrap {
  margin-bottom: 35px;
  position: relative;
  width: 100%;
}

.category-hero-slider {
  position: relative;
  width: 100%;
  min-height: 500px;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
  background: #0b0f19;
  direction: ltr; /* LTR for consistent translateX sliding across all browsers */
}

.slider-track {
  display: flex;
  height: 100%;
  min-height: 500px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.category-slide {
  min-width: 100%;
  width: 100%;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* In LTR, flex-end places content on the right (RTL visual start) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  overflow: hidden;
}

/* Glass gradient: smooth fade from left (clear photo) to right (rich readable dark overlay) */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 25, 0.08) 0%, rgba(11, 15, 25, 0.38) 40%, rgba(11, 15, 25, 0.88) 100%);
  z-index: 1;
  transition: background 0.3s ease;
}

.category-slide:hover .slide-overlay {
  background: linear-gradient(90deg, rgba(11, 15, 25, 0.05) 0%, rgba(11, 15, 25, 0.32) 40%, rgba(11, 15, 25, 0.84) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 50px 60px;
  direction: rtl; /* RTL content formatting */
  text-align: right;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-badge-wrap {
  margin-bottom: 12px;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 216, 0.18);
  border: 1px solid rgba(0, 180, 216, 0.5);
  color: #38bdf8;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.slide-title {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.slide-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.slide-desc {
  font-size: 0.98rem;
  color: #e2e8f0;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 580px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.btn-slider-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00b4d8 0%, #0284c7 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 13px 30px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 180, 216, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-slider-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.55);
}

.btn-slider-cta svg {
  transition: transform 0.25s ease;
}

.btn-slider-cta:hover svg {
  transform: translateX(-4px); /* Moves left in RTL */
}

.btn-slider-outline {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-slider-outline:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Feature Pills Row (matching reference image) */
.slider-features-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.slider-feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.slider-feature-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(0, 180, 216, 0.5);
  transform: translateY(-2px);
}

.slider-feature-pill .pill-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.slider-feature-pill .pill-texts {
  display: flex;
  flex-direction: column;
}

.slider-feature-pill .pill-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.slider-feature-pill .pill-sub {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 2px;
}

/* Slider Controls (Circular Frosted Navigation) */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  outline: none;
}

.slider-nav-btn:hover {
  background: #ffffff;
  color: #0284c7;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.4);
}

.slider-nav-btn.prev-btn {
  right: 22px;
}

.slider-nav-btn.next-btn {
  left: 22px;
}

/* Pagination Dots */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
  width: 28px;
  background: #00b4d8;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.8);
}

/* Mobile Responsiveness for Slider */
@media (max-width: 992px) {
  .category-hero-slider,
  .slider-track,
  .category-slide {
    min-height: 460px;
  }
  .slide-content {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .category-hero-slider,
  .slider-track,
  .category-slide {
    min-height: 460px;
  }
  .slide-overlay {
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.25) 0%, rgba(11, 15, 25, 0.75) 50%, rgba(11, 15, 25, 0.95) 100%);
  }
  .slide-content {
    padding: 30px 20px 65px;
    max-width: 100%;
  }
  .slide-title {
    font-size: 1.6rem;
  }
  .slide-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  .slider-features-row {
    display: none; /* Keep clean and uncluttered on small screens */
  }
  .slider-nav-btn {
    width: 38px;
    height: 38px;
  }
  .slider-nav-btn.prev-btn { right: 10px; }
  .slider-nav-btn.next-btn { left: 10px; }
}

/* Legacy fallback support */
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
/* ==================== OUR BRANDS SHOWCASE (Matching Image) ==================== */
.our-brands-showcase {
  margin-top: 35px;
  padding: 48px 35px 50px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  text-align: center;
}
.our-brands-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #2b2d42;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
  text-align: center;
}
.our-brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.our-brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  max-width: 140px;
  height: 50px;
  padding: 6px 12px;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), filter 0.22s ease;
  user-select: none;
  position: relative;
}
.our-brand-item img,
.our-brand-item svg {
  max-height: 30px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.22s ease;
}
.our-brand-item:hover {
  transform: translateY(-3px) scale(1.1);
}
.our-brand-item:hover img,
.our-brand-item:hover svg {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}
.brand-text-badge {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 6px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
@media(max-width:1050px){
  .our-brands-grid {
    gap: 18px 16px;
  }
  .our-brands-showcase {
    padding: 35px 20px;
  }
  .our-brands-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }
}
@media(max-width:768px){
  .our-brand-item {
    min-width: 85px;
    height: 44px;
    padding: 4px 8px;
  }
  .our-brand-item img,
  .our-brand-item svg {
    max-height: 26px;
    max-width: 90px;
  }
  .our-brands-grid {
    gap: 14px 12px;
  }
}
@media(max-width:520px){
  .our-brand-item {
    min-width: 75px;
    height: 40px;
  }
  .our-brand-item img,
  .our-brand-item svg {
    max-height: 22px;
    max-width: 80px;
  }
  .our-brands-title {
    font-size: 1.35rem;
  }
}
@media(max-width:992px){
  .hero-section {
    padding-top: 100px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .main-banner {
    min-height: 420px;
  }
}
@media(max-width:576px){
  .hero-banner {
    padding: 24px;
    min-height: 220px;
  }
  .main-banner {
    min-height: 320px;
  }
  .brands-list {
    gap: 20px;
  }
  .brand-item {
    font-size: 1.1rem;
  }
}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;border-radius:30px;font-family:var(--font);font-size:1rem;font-weight:600;cursor:pointer;border:none;transition:var(--transition);text-decoration:none}
.btn-cta{background:linear-gradient(135deg,#ff8c00,#ff6b00);color:#ffffff;border:none;box-shadow:0 4px 15px rgba(255,107,0,0.35);font-weight:700}.btn-cta:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(255,107,0,0.45);color:#ffffff}
.btn-gold{background:linear-gradient(135deg,#00b4d8,#0284c7);color:#ffffff;font-weight:700}.btn-gold:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,180,216,0.35);color:#ffffff}
.btn-outline{background:transparent;color:#00b4d8;border:2px solid #00b4d8;font-weight:700}.btn-outline:hover{background:rgba(0,180,216,0.15);color:#38bdf8;border-color:#38bdf8;transform:translateY(-2px)}
.btn-sm{padding:8px 18px;font-size:0.85rem}.btn-lg{padding:16px 40px;font-size:1.1rem}
.btn-danger{background:var(--danger);color:#fff}.btn-success{background:var(--success);color:#fff}.btn-dark{background:var(--surface2);color:var(--white);border:1px solid var(--border)}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:var(--transition);box-shadow:0 4px 16px rgba(0,0,0,0.04)}.card:hover{transform:translateY(-5px);box-shadow:0 12px 30px rgba(0,0,0,0.08), 0 0 20px rgba(0,180,216,0.12);border-color:rgba(0,180,216,0.35)}
.product-card{position:relative}.product-card .img-wrap{aspect-ratio:1;overflow:hidden;background:#f8fafc;border-bottom:1px solid var(--border)}.product-card img{width:100%;height:100%;object-fit:contain;transition:var(--transition)}.product-card:hover img{transform:scale(1.06)}
.product-card .badges{position:absolute;top:12px;right:12px;display:flex;flex-direction:column;gap:6px}
.badge{padding:4px 10px;border-radius:20px;font-size:0.75rem;font-weight:700;display:inline-block}
.badge-gold{background:var(--gold);color:#ffffff}.badge-accent{background:var(--accent);color:#fff}.badge-success{background:var(--success);color:#fff}.badge-danger{background:var(--danger);color:#fff}.badge-warning{background:var(--warning);color:#1e293b}.badge-info{background:var(--info);color:#fff}.badge-dark{background:var(--surface2);color:var(--text-light);border:1px solid var(--border)}
.product-card .card-body{padding:16px}.product-card .category{font-size:0.8rem;color:#00b4d8;margin-bottom:4px}.product-card h3{font-size:1rem;margin-bottom:8px;color:var(--text-heading)}.product-card .price{font-size:1.2rem;font-weight:700;color:#ff6b00}.product-card .price-old{font-size:0.85rem;color:var(--text-muted);text-decoration:line-through;margin-right:8px}.product-card .card-actions{display:flex;gap:8px;margin-top:12px}
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;display:flex;align-items:center;gap:16px;box-shadow:0 4px 16px rgba(0,0,0,0.04)}
.stat-icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.6rem;flex-shrink:0}
.stat-icon.gold{background:rgba(0,180,216,0.12)}.stat-icon.accent{background:rgba(255,107,0,0.12)}.stat-icon.success{background:rgba(46,204,113,0.12)}.stat-icon.info{background:rgba(52,152,219,0.12)}.stat-icon.warning{background:rgba(243,156,18,0.12)}
.stat-value{font-size:1.6rem;font-weight:700;color:var(--text-heading)}.stat-label{font-size:0.85rem;color:var(--text-muted)}
.section-header{text-align:center;margin-bottom:50px}.section-header h2{margin-bottom:12px;color:var(--text-heading)}.section-header h2 em{color:#00b4d8;font-style:normal}.section-header p{color:var(--text-muted);max-width:500px;margin:0 auto}
.section-line{width:60px;height:3px;background:linear-gradient(90deg,#00b4d8,#ff6b00);border-radius:2px;margin:16px auto}
.categories-scroll{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}
.cat-chip{flex-shrink:0;padding:8px 20px;background:var(--surface);border:1px solid var(--border);border-radius:30px;cursor:pointer;transition:var(--transition);display:flex;align-items:center;gap:8px;font-family:var(--font);font-size:0.9rem;color:var(--text-body);box-shadow:0 1px 3px rgba(0,0,0,0.03)}.cat-chip:hover{border-color:rgba(0,180,216,0.5);color:#0284c7;background:#f0f9ff}.cat-chip.active{background:#0284c7;color:#ffffff;border-color:#0284c7;box-shadow:0 2px 10px rgba(2,132,199,0.25);font-weight:700}
.form-group{margin-bottom:20px}.form-label{display:block;margin-bottom:8px;font-size:0.9rem;color:var(--text-heading);font-weight:600}
.form-control{width:100%;padding:12px 16px;background:#ffffff;border:1px solid #cbd5e1;border-radius:var(--radius);color:var(--text-heading);font-family:var(--font);font-size:0.95rem;transition:var(--transition);outline:none}.form-control:focus{border-color:#00b4d8;box-shadow:0 0 0 3px rgba(0,180,216,0.18);background:#ffffff}.form-control::placeholder{color:var(--text-muted)}
select.form-control{cursor:pointer}textarea.form-control{resize:vertical;min-height:100px}
.table-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--border);background:#ffffff}.table{width:100%;border-collapse:collapse}.table th{background:var(--surface2);color:var(--text-heading);padding:14px 16px;font-size:0.85rem;font-weight:700;text-align:right;white-space:nowrap;border-bottom:2px solid var(--border)}.table td{padding:14px 16px;color:var(--text-body);font-size:0.9rem;border-bottom:1px solid var(--border);vertical-align:middle}.table tr:hover td{background:rgba(0,180,216,0.03)}.table tr:last-child td{border-bottom:none}
.alert{padding:14px 18px;border-radius:var(--radius);border-right:4px solid;margin-bottom:20px;display:flex;align-items:center;gap:10px;font-size:0.95rem}.alert-success{background:rgba(46,204,113,0.1);border-color:var(--success);color:var(--success)}.alert-danger{background:rgba(231,76,60,0.1);border-color:var(--danger);color:#ef4444}.alert-warning{background:rgba(243,156,18,0.1);border-color:var(--warning);color:var(--warning)}.alert-info{background:rgba(52,152,219,0.1);border-color:var(--info);color:var(--info)}
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.5);backdrop-filter:blur(4px);z-index:2000;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity 0.3s}.modal-overlay.open{opacity:1;pointer-events:all}.modal{background:#ffffff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:32px;max-width:560px;width:90%;transform:translateY(20px);transition:var(--transition);max-height:90vh;overflow-y:auto;box-shadow:0 20px 50px rgba(0,0,0,0.15)}.modal-overlay.open .modal{transform:translateY(0)}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.modal-close{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:1.4rem;transition:var(--transition)}.modal-close:hover{color:var(--text-heading)}
.cart-sidebar{position:fixed;left:0;top:0;height:100vh;width:380px;max-width:95vw;background:#ffffff;border-right:1px solid var(--border);z-index:2100;transform:translateX(-100%);transition:var(--transition);display:flex;flex-direction:column;box-shadow:0 10px 40px rgba(0,0,0,0.12)}.cart-sidebar.open{transform:translateX(0);box-shadow:var(--shadow)}.cart-sidebar .cart-header{padding:20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.cart-sidebar .cart-body{flex:1;overflow-y:auto;padding:20px}.cart-sidebar .cart-footer{padding:20px;border-top:1px solid var(--border)}
.cart-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.cart-item img{width:64px;height:64px;object-fit:cover;border-radius:8px;flex-shrink:0;border:1px solid var(--border)}.cart-item-info{flex:1}.cart-item-name{font-size:0.9rem;color:var(--text-heading);margin-bottom:4px;font-weight:600}.cart-item-price{font-size:0.85rem;color:#00b4d8;font-weight:700}
.qty-control{display:flex;align-items:center;gap:8px;margin-top:8px}.qty-btn{width:28px;height:28px;border-radius:6px;background:var(--surface2);border:1px solid var(--border);color:var(--text-heading);cursor:pointer;font-size:1rem;display:flex;align-items:center;justify-content:center;transition:var(--transition)}.qty-btn:hover{background:#00b4d8;color:#ffffff;border-color:#00b4d8}.qty-display{min-width:24px;text-align:center;font-weight:600}
.toast-container{position:fixed;bottom:24px;left:24px;z-index:9999;display:flex;flex-direction:column;gap:10px}.toast{background:#ffffff;border:1px solid var(--border);border-radius:var(--radius);padding:14px 20px;display:flex;align-items:center;gap:10px;min-width:280px;box-shadow:0 10px 30px rgba(0,0,0,0.1);animation:slideIn 0.3s ease;font-size:0.9rem;color:var(--text-heading)}.toast.success{border-color:var(--success)}.toast.danger{border-color:var(--danger)}.toast.warning{border-color:var(--warning)}
@keyframes slideIn{from{transform:translateX(-100%);opacity:0}to{transform:translateX(0);opacity:1}}
.pagination{display:flex;justify-content:center;gap:8px;margin-top:40px;flex-wrap:wrap}.page-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#ffffff;border:1px solid var(--border);color:var(--text-body);cursor:pointer;transition:var(--transition);font-family:var(--font);font-weight:600}.page-btn:hover{border-color:rgba(0,180,216,0.5);color:#00b4d8;background:#f0f9ff}.page-btn.active{background:#00b4d8;color:#ffffff;border-color:#00b4d8;box-shadow:0 2px 10px rgba(0,180,216,0.3);font-weight:700}
.footer{background:#f1f5f9;border-top:1px solid var(--border);padding:60px 0 24px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}.footer-brand .logo{margin-bottom:16px}.footer-brand .logo span{color:var(--text-heading)}.footer-brand p{font-size:0.9rem;color:var(--text-light)}.footer h4{color:#00b4d8;margin-bottom:16px;font-size:1rem;font-weight:700}.footer ul{list-style:none;display:flex;flex-direction:column;gap:10px}.footer ul li a{color:var(--text-muted);font-size:0.9rem}.footer ul li a:hover{color:#00b4d8}.footer-bottom{border-top:1px solid var(--border);padding-top:24px;text-align:center;color:var(--text-muted);font-size:0.85rem}
.social-links{display:flex;gap:10px;margin-top:16px}.social-link{width:38px;height:38px;border-radius:10px;background:#ffffff;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--text-body);transition:var(--transition);font-size:1.1rem}.social-link:hover{background:rgba(0,180,216,0.12);color:#00b4d8;border-color:#00b4d8}
.search-bar{display:flex;max-width:500px;background:#ffffff;border:1px solid #cbd5e1;border-radius:30px;overflow:hidden;transition:var(--transition)}.search-bar:focus-within{border-color:#00b4d8;box-shadow:0 0 0 3px rgba(0,180,216,0.2)}.search-bar input{flex:1;padding:12px 20px;background:none;border:none;color:var(--text-heading);font-family:var(--font);outline:none}.search-bar input::placeholder{color:var(--text-muted)}.search-bar button{padding:12px 20px;background:#00b4d8;border:none;color:#ffffff;cursor:pointer;font-size:1.1rem;transition:var(--transition)}.search-bar button:hover{background:#0284c7}
.empty-state{text-align:center;padding:60px 20px}.empty-state .icon{font-size:4rem;margin-bottom:16px}.empty-state h3{color:var(--text-light);margin-bottom:8px}.empty-state p{color:var(--text-muted);font-size:0.9rem}
.spinner{width:36px;height:36px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--gold);animation:spin 0.8s linear infinite;margin:0 auto}
@keyframes spin{to{transform:rotate(360deg)}}
.glass{background:rgba(255,255,255,0.05);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,0.1);border-radius:var(--radius-lg)}
.gold-divider{height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);margin:40px 0}
.steps{display:flex;justify-content:center;gap:0;margin-bottom:40px}.step{display:flex;align-items:center;flex-direction:column}.step-circle{width:40px;height:40px;border-radius:50%;background:var(--surface2);border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:0.9rem;color:var(--text-muted);transition:var(--transition)}.step.active .step-circle{background:var(--gold);border-color:var(--gold);color:var(--black)}.step.done .step-circle{background:var(--success);border-color:var(--success);color:#fff}.step-line{width:60px;height:2px;background:var(--border);margin-top:19px}.step.done .step-line,.step.active .step-line{background:var(--gold)}.step-label{font-size:0.8rem;text-align:center;color:var(--text-muted);margin-top:6px}.step.active .step-label{color:var(--gold)}
.form-grid{display:grid;gap:16px}.form-grid.cols-2{grid-template-columns:repeat(2,1fr)}.form-grid.cols-3{grid-template-columns:repeat(3,1fr)}
.products-filters{display:flex;flex-direction:column;gap:24px;margin-bottom:40px}
.cart-page-grid{display:grid;grid-template-columns:1fr;gap:20px}
.product-form-grid{display:grid;grid-template-columns:1fr;gap:20px}
.product-detail-grid{display:grid;grid-template-columns:1fr;gap:40px}
.required::after{content:' *';color:var(--accent);font-weight:normal}
.form-hint{font-size:0.78rem;color:var(--text-muted);margin-top:4px}
@media(min-width:768px){.products-filters{flex-direction:row;align-items:center}.cart-page-grid{grid-template-columns:2fr 1fr}.product-form-grid{grid-template-columns:2fr 1fr}.product-detail-grid{grid-template-columns:1fr 1fr}.form-grid.cols-2{grid-template-columns:repeat(2,1fr)}.form-grid.cols-3{grid-template-columns:repeat(3,1fr)}}
.hide-mobile{display:none}
@media(min-width:600px){.hide-mobile{display:inline}}
@media(max-width:768px){.form-grid.cols-2,.form-grid.cols-3{grid-template-columns:1fr}}
@media(max-width:1024px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:768px){.nav{display:none;position:fixed;inset:0;background:rgba(255,255,255,0.98);flex-direction:column;justify-content:center;align-items:center;gap:16px;z-index:999}.nav.open{display:flex}.nav a{font-size:1.2rem}.hamburger{display:flex;z-index:1001}.hero{padding:100px 20px 60px}.section{padding:50px 0}.footer-grid{grid-template-columns:1fr;gap:30px}.products-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}.cart-sidebar{width:100%}}
@media(max-width:480px){.hero h1{font-size:1.6rem}.products-grid{grid-template-columns:1fr 1fr;gap:12px}}

/* Header Two-Row Redesign */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.header-top {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  background: #ffffff;
  backdrop-filter: blur(20px);
}

.header-bottom {
  background: #f8fafc;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 52px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Modern Rounded Pill Search Bar */
.header-search-bar {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  width: 100%;
  max-width: 560px;
  height: 44px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-search-bar:focus-within {
  background: #ffffff;
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.search-cat-select {
  border-left: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  background: transparent;
}

.search-cat-select select {
  background: transparent;
  border: none;
  color: var(--text-heading);
  padding: 0 16px 0 30px;
  font-family: var(--font);
  font-size: 0.85rem;
  height: 100%;
  outline: none;
  cursor: pointer;
}

.header-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 18px;
  color: var(--text-heading);
  font-family: var(--font);
  font-size: 0.92rem;
  outline: none;
}

.header-search-bar input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: linear-gradient(135deg, #00b4d8 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  padding: 0 26px;
  height: 100%;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #00b4d8 100%);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
}

/* Actions & Contact */
.header-top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-contact {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contact-number {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--gold);
  text-decoration: none;
}

/* Header Action Buttons (Wishlist, Account, Cart) */
.header-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  color: var(--text-heading);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
  font-family: inherit;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  -webkit-appearance: none;
  appearance: none;
  user-select: none;
}

.action-icon-btn svg.header-action-svg {
  width: 21px;
  height: 21px;
  stroke: var(--text-heading);
  stroke-width: 2;
  transition: all 0.22s ease;
  display: block;
}

/* Hover & Active States */
.action-icon-btn:hover {
  background: #f0f9ff;
  border-color: #00b4d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.18);
}

.action-icon-btn:hover svg.header-action-svg {
  stroke: #0284c7;
  transform: scale(1.08);
}

.action-icon-btn:active {
  transform: translateY(0) scale(0.96);
}

/* Specific: Wishlist */
.action-icon-btn.wishlist-icon-btn:hover {
  background: #fff1f2;
  border-color: #fca5a5;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.16);
}

.action-icon-btn.wishlist-icon-btn:hover svg.header-action-svg {
  stroke: #e11d48;
  fill: rgba(225, 29, 72, 0.15);
}

/* Specific: Cart Button */
.action-icon-btn.cart-btn-header:hover {
  background: #f0fdf4;
  border-color: #86efac;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.16);
}

.action-icon-btn.cart-btn-header:hover svg.header-action-svg {
  stroke: #16a34a;
}

/* Specific: Logged-in User indicator */
.user-status-dot {
  position: absolute;
  bottom: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4);
}

/* Badges (Wishlist & Cart Count) */
.action-icon-btn .wishlist-count,
.action-icon-btn .cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #ffffff;
  border: 2px solid #ffffff;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.action-icon-btn:hover .wishlist-count,
.action-icon-btn:hover .cart-count-badge {
  transform: scale(1.12);
}

/* Wishlist Badge: Vibrant Rose Gradient */
.action-icon-btn .wishlist-count {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}

/* Cart Badge: Electric Tech Gradient */
.action-icon-btn .cart-count-badge {
  background: linear-gradient(135deg, #00b4d8 0%, #0284c7 100%);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Specific: Theme Switcher Button */
.action-icon-btn.theme-toggle-btn {
  background: #ffffff;
  border: 1.5px solid var(--border);
  color: var(--text-heading);
}

.action-icon-btn.theme-toggle-btn .theme-icon-moon {
  display: block;
  stroke: #475569;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.22s ease;
}

.action-icon-btn.theme-toggle-btn .theme-icon-sun {
  display: none;
  stroke: #f59e0b;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.22s ease;
}

.action-icon-btn.theme-toggle-btn:hover {
  background: #f8fafc;
  border-color: #00b4d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.2);
}

.action-icon-btn.theme-toggle-btn:hover .theme-icon-moon {
  stroke: #0284c7;
  transform: rotate(-15deg) scale(1.12);
}

/* Categories Dropdown */
.categories-dropdown {
  position: relative;
  height: 100%;
}

.cat-dropdown-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  height: 48px;
  padding: 0 20px;
  font-family: var(--font);
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.cat-dropdown-btn:hover {
  background: #1e293b;
}

.cat-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
}

.categories-dropdown:hover .cat-dropdown-menu {
  display: flex;
}

.cat-dropdown-menu a {
  padding: 12px 18px;
  color: var(--text-heading);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.cat-dropdown-menu a:hover {
  background: #f0f9ff;
  color: #0284c7;
  padding-right: 22px;
}

/* ── Modern High-Tech Navigation Menu ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}
.main-nav::-webkit-scrollbar { display: none; }

.main-nav .nav-item {
  color: #475569 !important;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 20px;
  background: transparent;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}

.main-nav .nav-item:hover {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

.main-nav .nav-item.active {
  background: linear-gradient(135deg, #00b4d8, #0284c7) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

/* ── Modern Phone Model Finder Widget ── */
.phone-finder-widget {
  margin-bottom: 28px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.08), 0 2px 8px rgba(0,0,0,0.04);
}
.phone-finder-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.finder-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.finder-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border: 1px solid #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
  flex-shrink: 0;
}
.finder-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-heading);
  font-weight: 800;
  line-height: 1.3;
}
.finder-subtitle {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.finder-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  max-width: 640px;
  justify-content: flex-end;
}
.finder-select-wrap {
  flex: 1;
  min-width: 150px;
}
.finder-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-heading);
  padding: 11px 16px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.92rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.finder-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}
.finder-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #00b4d8 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}
.finder-submit-btn:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #00b4d8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

/* ── High-Tech Product Card Styling ── */
.product-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: #0284c7;
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.12), 0 4px 12px rgba(0,0,0,0.06);
}
.product-card .img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover img {
  transform: scale(1.08);
}
/* Product Card Image & Clean Floating Badges */
.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.product-card-floating-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 5;
  pointer-events: none;
}
.card-float-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}
.card-float-badge.badge-disc {
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
.card-float-badge.badge-orig {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  margin-right: auto;
}
.card-float-badge.badge-danger {
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
}

/* Product Card Meta (Category & Warranty) */
.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 6px;
}
.product-card-cat {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card-warranty {
  font-size: 0.68rem;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Product Specs Chips (Power / Wattage / Feature) */
.product-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.product-spec-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.product-card .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-title-link {
  text-decoration: none;
}
.product-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
  transition: color 0.2s;
}
.product-title-link:hover .product-title {
  color: #0284c7;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  margin-top: auto;
}
.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ff6b00;
}
.price-old {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.wholesale-price-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
  margin-top: auto;
}
.btn-cta {
  background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
  transition: var(--transition);
}
.btn-cta:hover {
  background: linear-gradient(135deg, #ffa033 0%, #ff7700 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
  color: #ffffff;
}
.product-card-btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  padding: 10px;
  font-size: 0.92rem;
}

/* Weekly Deals */
.weekly-deals a {
  color: var(--text-heading);
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.weekly-deals a:hover {
  opacity: 0.9;
}

/* Page Spacings for Two-Row Navbar */
.hero-section {
  padding-top: 140px;
}

body > div[style*="padding-top:80px"],
body > div[style*="padding-top: 80px"],
body > div[style*="padding-top: 120px"],
body > div[style*="padding-top:120px"] {
  padding-top: 145px !important;
}

.hide-desktop {
  display: none !important;
}

.header-mobile-search {
  padding: 8px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
}
.mobile-search-form {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  height: 40px;
}
.mobile-search-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 16px;
  color: var(--text-heading);
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
}
.mobile-search-form .search-btn {
  background: #00b4d8;
  color: #fff;
  border: none;
  padding: 0 16px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile responsive fixes */
@media(max-width: 992px) {
  .hide-desktop {
    display: block !important;
  }
  .header-search-bar.hide-mobile-search {
    display: none !important;
  }
  .header-bottom {
    display: none;
  }
  .header-top {
    padding: 12px 0;
  }
  .hero-section {
    padding-top: 90px;
  }
  body > div[style*="padding-top:80px"],
  body > div[style*="padding-top: 80px"],
  body > div[style*="padding-top: 120px"],
  body > div[style*="padding-top:120px"] {
    padding-top: 95px !important;
  }
}


/* Trending Products Section */
.trending-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.trending-title-wrap h2 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.trending-title-wrap h2 em {
  color: var(--gold);
  font-style: normal;
}

.trending-title-wrap p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.trending-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 8px 18px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.product-card-wrap {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card-wrap.hidden {
  display: none !important;
}

/* Responsive Mobile Search & Navigation styling */
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-group .hamburger {
  display: none;
}

.hide-mobile-search {
  display: flex !important;
}

.show-mobile-search {
  display: none !important;
}

/* Mobile Search Container Row 2 */
.mobile-search-container {
  padding: 10px 0 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-search-bar {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Premium Mobile Menu Overlay Drawer */
.mobile-nav-drawer {
  display: none !important;
}

@media(max-width: 768px) {
  .mobile-nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: #ffffff !important;
    backdrop-filter: blur(15px);
    z-index: 3000 !important;
    display: flex !important;
    flex-direction: column;
    padding: 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
  }

  .mobile-nav-drawer.open {
    transform: translateX(0) !important;
  }
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.menu-brand {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-heading);
}

.menu-close-btn {
  background: transparent;
  border: none;
  color: var(--text-heading);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.menu-close-btn:hover {
  color: var(--gold);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu-links a {
  color: var(--text-heading);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  display: block;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: var(--gold) !important;
  background: transparent !important;
  padding-right: 10px;
}

.mobile-menu-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-contact span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mobile-menu-contact a {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: bold;
}

@media(max-width: 992px) {
  .hide-tablet {
    display: none !important;
  }
}

@media(max-width: 768px) {
  .logo-group .hamburger {
    display: flex;
  }
  
  .hide-mobile-search {
    display: none !important;
  }
  
  .show-mobile-search {
    display: block !important;
  }
  
  /* Make sure header spacing is adjusted on mobile for the 2-row layout */
  .hero-section {
    padding-top: 145px !important;
  }
  
  body > div[style*="padding-top:80px"],
  body > div[style*="padding-top: 80px"],
  body > div[style*="padding-top: 120px"],
  body > div[style*="padding-top:120px"] {
    padding-top: 155px !important;
  }
}

/* Features Section Styling */
.features-section {
  padding: 50px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0 0 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06), 0 0 15px rgba(2, 132, 199, 0.12);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  flex-shrink: 0;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: #e0f2fe;
  border-color: #7dd3fc;
  transform: scale(1.08);
}

.feature-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-info h4 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.feature-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Responsiveness for Features Section */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .feature-card {
    padding: 15px;
  }
}

/* Contact Page Styling */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.contact-map-card {
  width: 100%;
  height: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact-map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-header {
  margin-bottom: 30px;
}

.form-header h2 {
  font-family: var(--font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.form-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form-row {
  margin-bottom: 20px;
}

/* Custom File Upload */
.custom-file-upload {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

.custom-file-upload input[type="file"] {
  display: none;
}

.upload-btn {
  background: #e2e8f0;
  color: var(--text-heading);
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  margin: 0;
}

.upload-btn:hover {
  background: #cbd5e1;
  border-color: var(--gold);
}

.file-name-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

/* Checkbox Styling */
.agreement-checkbox {
  margin: 25px 0;
}

.checkbox-container {
  display: block;
  position: relative;
  padding-right: 30px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-light);
  user-select: none;
  line-height: 1.4;
  text-align: right;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 2px;
  right: 0;
  height: 20px;
  width: 20px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--gold);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--gold);
  border-color: var(--gold);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #0f172a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.btn-send {
  width: 100%;
  padding: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  justify-content: center;
}

/* Contact Info Grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: #0284c7;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06), 0 0 15px rgba(2, 132, 199, 0.12);
}

.info-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 50%;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-content h4 {
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 5px 0;
}

.info-content p {
  font-size: 0.85rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.4;
}

/* Responsiveness */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-map-card {
    height: 400px;
  }
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 25px;
  }
}

/* Layout Toggle Classes */
.products-grid.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
    overflow-x: hidden;
    max-width: 100%;
}
.products-grid.grid-cols-4 .product-card .btn {
    font-size: 0.75rem;
    padding: 6px 10px;
}
.products-grid.grid-cols-4 .product-card h3 {
    font-size: 0.9rem;
}
.products-grid.grid-cols-4 .product-card .price {
    font-size: 1.05rem;
}
.products-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    overflow-x: hidden;
    max-width: 100%;
}
.products-grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: hidden;
    max-width: 100%;
}

/* Force grid children to respect column sizes and not overflow */
.products-grid.grid-cols-3 > *,
.products-grid.grid-cols-4 > * {
    min-width: 0;
    overflow: hidden;
}
.products-grid.grid-list {
    grid-template-columns: 1fr !important;
}
.products-grid.grid-list .product-card-wrap {
    width: 100%;
}
.products-grid.grid-list .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: right;
}
.products-grid.grid-list .product-card .img-wrap {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}
.products-grid.grid-list .product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 30px;
}
.products-grid.grid-list .product-card .card-actions {
    justify-content: flex-start;
}
.products-grid.grid-list .product-card .btn {
    width: auto !important;
    padding: 8px 30px;
    align-self: flex-start;
}
.products-grid.grid-list .product-card .badges {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* Layout Toggler Buttons */
.layout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.layout-btn:hover {
    color: #00b4d8;
    background: rgba(0, 180, 216, 0.15);
}
.layout-btn.active {
    background: #00b4d8;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.35);
}

@media (max-width: 992px) {
    .products-grid.grid-cols-4 {
        gap: 12px !important;
    }
    .products-grid.grid-cols-4 .product-card h3 {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    /* --- Trending header fixes --- */
    .trending-header {
        gap: 12px;
        margin-bottom: 20px;
    }
    .trending-title-wrap h2 {
        font-size: 1.4rem;
    }
    .trending-title-wrap p {
        font-size: 0.8rem;
    }
    .trending-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 4px;
    }
    .trending-tabs::-webkit-scrollbar { display: none; }
    .tab-btn {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    /* --- Layout toggler smaller --- */
    .layout-btn {
        width: 28px;
        height: 28px;
    }
    .layout-btn svg {
        width: 14px;
        height: 14px;
    }

    /* --- Hide 4-col and 3-col toggler buttons on phones --- */
    .hide-phone {
        display: none !important;
    }

    /* --- List view on mobile --- */
    .products-grid.grid-list .product-card {
        flex-direction: row;
        align-items: center;
        border-radius: 12px;
        background: var(--surface);
        border: 1px solid rgba(255, 255, 255, 0.08);
        overflow: hidden;
    }
    .products-grid.grid-list .product-card-img-wrap {
        width: 120px;
        min-width: 120px;
        height: 120px;
        border-radius: 0 12px 12px 0;
    }
    .products-grid.grid-list .product-card .img-wrap {
        width: 100%;
        height: 100%;
        padding: 8px;
    }
    .products-grid.grid-list .product-card .card-body {
        padding: 12px 16px;
        text-align: right;
    }
    .products-grid.grid-list .product-card .product-title {
        font-size: 0.92rem;
        height: auto;
        margin-bottom: 6px;
    }
    .products-grid.grid-list .product-card .product-card-btn {
        width: auto;
        padding: 6px 16px;
        align-self: flex-start;
    }

    /* --- 2 columns on mobile (Flagship Mobile Layout) --- */
    .products-grid.grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .products-grid.grid-cols-2 .product-card {
        border-radius: 12px;
        background: var(--surface);
        border: 1px solid rgba(255, 255, 255, 0.08);
        overflow: hidden;
    }
    .products-grid.grid-cols-2 .product-card .img-wrap {
        padding: 12px;
    }
    .products-grid.grid-cols-2 .product-card .card-body {
        padding: 10px 12px 14px;
    }
    .products-grid.grid-cols-2 .product-card .product-title {
        font-size: 0.85rem;
        height: 2.6em;
        line-height: 1.35;
        margin-bottom: 6px;
    }
    .products-grid.grid-cols-2 .product-card .product-spec-chip {
        font-size: 0.68rem;
        padding: 2px 6px;
    }
    .products-grid.grid-cols-2 .product-card .price-current {
        font-size: 1.05rem;
        font-weight: 800;
    }
    .products-grid.grid-cols-2 .product-card .product-card-btn {
        padding: 8px 10px;
        font-size: 0.82rem;
        border-radius: 8px;
        gap: 4px;
    }

    /* --- 3 columns (Compact / Tablet) --- */
    .products-grid.grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .products-grid.grid-cols-3 .product-card {
        border-radius: 10px;
        overflow: hidden;
    }
    .products-grid.grid-cols-3 .product-card .img-wrap {
        padding: 8px;
    }
    .products-grid.grid-cols-3 .product-card .card-body {
        padding: 8px 10px 10px;
    }
    .products-grid.grid-cols-3 .product-card .product-title {
        font-size: 0.78rem;
        height: 2.5em;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    .products-grid.grid-cols-3 .product-card .product-specs-chips {
        margin-bottom: 4px;
    }
    .products-grid.grid-cols-3 .product-card .product-spec-chip {
        font-size: 0.62rem;
        padding: 1px 5px;
    }
    .products-grid.grid-cols-3 .product-card .price-current {
        font-size: 0.92rem;
        font-weight: 800;
    }
    .products-grid.grid-cols-3 .product-card .price-old {
        font-size: 0.68rem;
    }
    .products-grid.grid-cols-3 .product-card .product-card-btn {
        padding: 6px 8px;
        font-size: 0.74rem;
        border-radius: 6px;
        gap: 3px;
    }

    /* --- 4 columns (Dense) --- */
    .products-grid.grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    .products-grid.grid-cols-4 .product-card {
        border-radius: 8px;
        overflow: hidden;
    }
    .products-grid.grid-cols-4 .product-card .img-wrap {
        padding: 6px;
    }
    .products-grid.grid-cols-4 .product-card .card-body {
        padding: 6px;
    }
    .products-grid.grid-cols-4 .product-card .product-title {
        font-size: 0.68rem;
        height: 2.4em;
        line-height: 1.25;
        margin-bottom: 3px;
    }
    .products-grid.grid-cols-4 .product-card .product-specs-chips {
        display: none;
    }
    .products-grid.grid-cols-4 .product-card .price-current {
        font-size: 0.8rem;
    }
    .products-grid.grid-cols-4 .product-card .price-old {
        display: none;
    }
    .products-grid.grid-cols-4 .product-card .product-card-btn {
        padding: 5px 6px;
        font-size: 0.62rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    /* Small Phone optimization */
    .products-grid.grid-cols-2 {
        gap: 9px !important;
    }
    .products-grid.grid-cols-2 .product-card .img-wrap {
        padding: 10px;
    }
    .products-grid.grid-cols-2 .product-card .card-body {
        padding: 8px 10px 10px;
    }
    .products-grid.grid-cols-2 .product-card .product-title {
        font-size: 0.82rem;
        height: 2.5em;
    }
    .products-grid.grid-cols-2 .product-card .price-current {
        font-size: 0.98rem;
    }
    .products-grid.grid-cols-2 .product-card .product-card-btn {
        padding: 7px 8px;
        font-size: 0.78rem;
    }
}


/* ====================================================
   CATEGORIES BROWSING SYSTEM
   ==================================================== */

/* --- Page Header --- */
.categories-page-header {
  padding: 120px 0 50px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
  border-bottom: 1px solid #bae6fd;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.categories-page-header::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(2, 132, 199, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.categories-page-header h1 {
  color: var(--text-heading);
  margin-bottom: 12px;
  position: relative;
}
.categories-page-header p {
  color: var(--text-muted);
  font-size: 1rem;
  position: relative;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0;
  font-size: 0.9rem;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition);
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb .sep {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 0.75rem;
}
.breadcrumb .current {
  color: var(--gold);
  font-weight: 600;
}

/* --- Branch Cards Grid --- */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.branches-grid.parent-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* --- Branch Card (Glassmorphism / Modern Clean Card) --- */
.branch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 32px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-heading);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(30px);
  animation: branchCardIn 0.5s ease forwards;
}
.branch-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.05) 0%, transparent 70%);
  transition: var(--transition);
  pointer-events: none;
}
.branch-card:hover {
  transform: translateY(-8px);
  border-color: #0284c7;
  box-shadow: 0 14px 40px rgba(2, 132, 199, 0.15);
  background: #ffffff;
  color: var(--text-heading);
}
.branch-card:hover::before {
  background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.1) 0%, transparent 70%);
}
.branch-card:hover .branch-card-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(2, 132, 199, 0.25));
}
.branch-card:hover .branch-card-arrow {
  opacity: 1;
  transform: translateX(-6px);
}

/* Parent branch card (larger) */
.branch-card.parent-card {
  padding: 50px 28px 40px;
}
.branch-card.parent-card .branch-card-icon {
  width: 90px;
  height: 90px;
  font-size: 3rem;
}
.branch-card.parent-card .branch-card-name {
  font-size: 1.3rem;
}

/* --- Branch Card Icon --- */
.branch-card-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.branch-card-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

/* --- Branch Card Info --- */
.branch-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.branch-card-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.branch-card-count .dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.branch-card-arrow {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0;
  transition: all 0.4s ease;
}

/* --- Sub-branch label --- */
.branch-card-parent-label {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.7rem;
  color: #0284c7;
  background: #f0f9ff;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #bae6fd;
}

/* --- Section Divider for sub-branches --- */
.branch-section-title {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.branch-section-title .icon {
  font-size: 1.2rem;
}

/* --- Category Item Cards (for category-items page) --- */
.cat-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.cat-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(15px);
  animation: branchCardIn 0.4s ease forwards;
}
.cat-item-card:hover {
  border-color: #00b4d8;
  background: rgba(0, 180, 216, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.15);
  color: var(--white);
}
.cat-item-card.active {
  border-color: #00b4d8;
  background: rgba(0, 180, 216, 0.15);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.2);
}
.cat-item-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cat-item-card-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
}
.cat-item-card-name {
  font-size: 0.95rem;
  font-weight: 600;
}
.cat-item-card-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Animations --- */
@keyframes branchCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation delays */
.branch-card:nth-child(1) { animation-delay: 0.05s; }
.branch-card:nth-child(2) { animation-delay: 0.12s; }
.branch-card:nth-child(3) { animation-delay: 0.19s; }
.branch-card:nth-child(4) { animation-delay: 0.26s; }
.branch-card:nth-child(5) { animation-delay: 0.33s; }
.branch-card:nth-child(6) { animation-delay: 0.40s; }
.branch-card:nth-child(7) { animation-delay: 0.47s; }
.branch-card:nth-child(8) { animation-delay: 0.54s; }
.branch-card:nth-child(9) { animation-delay: 0.61s; }

.cat-item-card:nth-child(1) { animation-delay: 0.03s; }
.cat-item-card:nth-child(2) { animation-delay: 0.08s; }
.cat-item-card:nth-child(3) { animation-delay: 0.13s; }
.cat-item-card:nth-child(4) { animation-delay: 0.18s; }
.cat-item-card:nth-child(5) { animation-delay: 0.23s; }
.cat-item-card:nth-child(6) { animation-delay: 0.28s; }
.cat-item-card:nth-child(7) { animation-delay: 0.33s; }
.cat-item-card:nth-child(8) { animation-delay: 0.38s; }
.cat-item-card:nth-child(9) { animation-delay: 0.43s; }
.cat-item-card:nth-child(10) { animation-delay: 0.48s; }

/* --- Category Items Page Header --- */
.cat-items-header {
  padding: 110px 0 40px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
  border-bottom: 1px solid #bae6fd;
  position: relative;
  overflow: hidden;
}
.cat-items-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cat-items-header-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}
.cat-items-header-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}
.cat-items-header-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.cat-items-header-info h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-heading);
  margin-bottom: 4px;
}
.cat-items-header-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .branches-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
  .branches-grid.parent-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .cat-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
@media (max-width: 576px) {
  .categories-page-header {
    padding: 100px 0 35px;
  }
  .branches-grid,
  .branches-grid.parent-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .branch-card {
    padding: 28px 16px 24px;
  }
  .branch-card.parent-card {
    padding: 32px 16px 28px;
  }
  .branch-card-icon {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
  }
  .branch-card.parent-card .branch-card-icon {
    width: 64px;
    height: 64px;
    font-size: 2.2rem;
  }
  .branch-card-name {
    font-size: 0.95rem;
  }
  .branch-card.parent-card .branch-card-name {
    font-size: 1.05rem;
  }
  .cat-items-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .cat-item-card {
    padding: 12px 14px;
    gap: 10px;
  }
  .cat-items-header {
    padding: 100px 0 30px;
  }
  .cat-items-header-icon {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
  }
}

/* =========================================================
   B2B WHOLESALE & RETAIL SHOP STYLES (WIWU STYLE)
   ========================================================= */

.b2b-shop-wrapper {
  color: var(--text-heading);
  direction: rtl;
}

/* Hero Header */
.b2b-hero-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
  border-bottom: 1px solid #bae6fd;
  padding: 45px 0 35px;
  position: relative;
  overflow: hidden;
}
.b2b-hero-header::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.b2b-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.b2b-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #7dd3fc;
  color: #0284c7;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}
.b2b-hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #0f172a 40%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.b2b-hero-title .accent-text {
  font-size: 1.6rem;
  color: #0284c7;
  -webkit-text-fill-color: #0284c7;
  font-weight: 700;
}
.b2b-hero-desc {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Stats Bar */
.b2b-stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.b2b-stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
}
.b2b-stat-pill .stat-num {
  color: #0284c7;
  font-weight: 800;
}
.b2b-stat-pill .stat-lbl {
  color: var(--text-body);
}
.b2b-stat-pill.highlight {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
  font-weight: 700;
}

/* Quick Bulk Order Section */
.b2b-quick-order-section {
  padding: 20px 0 10px;
}
.b2b-quick-order-box {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08);
}
.b2b-quick-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.b2b-quick-title .quick-icon {
  font-size: 1.8rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.b2b-quick-title strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text-heading);
}
.b2b-quick-title p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 2px 0 0;
}
.b2b-quick-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.quick-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-input-group label {
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 600;
}
.quick-input-group.flex-2 { flex: 3; min-width: 280px; }
.quick-input-group.flex-1 { flex: 1; min-width: 140px; }
.quick-input-group.flex-action { flex: 1.3; min-width: 180px; }
.quick-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-heading);
  height: 46px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 0.95rem;
}
.quick-select option {
  background: #ffffff;
  color: var(--text-heading);
  padding: 8px;
}
.price-preview-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 14px;
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.preview-label { font-size: 0.72rem; color: var(--text-muted); }
.preview-price { font-size: 1rem; color: #0284c7; font-weight: 800; }
.preview-stock { font-size: 0.75rem; color: #15803d; }
.quick-add-btn {
  height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 10px;
}

/* Stepper Component */
.b2b-stepper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  height: 46px;
}
.b2b-stepper button {
  background: #f1f5f9;
  border: none;
  color: var(--text-heading);
  width: 38px;
  height: 100%;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}
.b2b-stepper button:hover {
  background: #0284c7;
  color: #ffffff;
}
.b2b-stepper input {
  width: 50px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-heading);
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
}

/* Main Shop Layout */
.b2b-main-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  margin-top: 25px;
  align-items: flex-start;
}

/* Sidebar Styles */
.b2b-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-left: 6px;
}
.b2b-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.btn-clear-all-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.btn-clear-all-filters:hover {
  background: #ef4444;
  color: #fff;
}
.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.sidebar-card-header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.sidebar-card-header .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}
.sidebar-card-header .chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.sidebar-card-body {
  padding: 12px 14px;
}

/* Category Tree in Sidebar */
.b2b-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.b2b-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  transition: var(--transition);
}
.b2b-cat-row:hover,
.b2b-cat-item.active > .b2b-cat-row,
.b2b-cat-item.active > a {
  background: #f0f9ff;
}
.b2b-cat-row a.cat-link,
.b2b-cat-item > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.9rem;
  flex: 1;
}
.b2b-cat-item.active > .b2b-cat-row a.cat-link,
.b2b-cat-item.active > a {
  color: #0284c7;
  font-weight: 700;
}
.cat-badge {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: bold;
}
.b2b-cat-item.active .cat-badge {
  background: #0284c7;
  color: #ffffff;
}
.sub-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.b2b-subcat-list {
  list-style: none;
  padding: 4px 14px 6px 0;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 3px;
  border-right: 2px solid #bae6fd;
  margin-right: 12px;
}
.b2b-subcat-list.open {
  display: flex;
}
.b2b-subcat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
}
.b2b-subcat-item.active a,
.b2b-subcat-item a:hover {
  background: #f0f9ff;
  color: #0284c7;
}

/* Brands Filter List */
.brand-search-input {
  margin-bottom: 10px;
}
.brand-search-input input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text-heading);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.85rem;
}
.b2b-brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.b2b-brand-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}
.b2b-brand-item.active a,
.b2b-brand-item a:hover {
  background: #f0f9ff;
  color: #0284c7;
  font-weight: 700;
}
.brand-info-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-chip-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: none;
}

/* Price Range Form */
.price-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.price-col label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 3px;
}
.price-num-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text-heading);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.88rem;
}
.price-apply-btn {
  width: 100%;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
}

/* Wattage Chips */
.watt-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.watt-chip {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--text-body);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: bold;
  text-decoration: none;
  transition: var(--transition);
}
.watt-chip:hover,
.watt-chip.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Stock Toggle */
.stock-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-body);
  font-weight: 600;
}
.stock-toggle-label input {
  width: 18px;
  height: 18px;
  accent-color: #00b4d8;
  cursor: pointer;
}

/* ==========================================
   TOOLBAR & CONTROLS
   ========================================== */
.b2b-toolbar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.results-counter {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.results-counter .accent-val {
  color: #0284c7;
  font-weight: bold;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toolbar-select-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.select-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.toolbar-select {
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text-heading);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.88rem;
  height: 38px;
}
.b2b-view-switchers {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.view-btn:hover,
.view-btn.active {
  background: #0284c7;
  color: #ffffff;
}
.btn-mobile-filter {
  background: #f0f9ff;
  border: 1px solid #0284c7;
  color: #0284c7;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

/* Active Filter Pills Bar */
.b2b-active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.active-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 4px;
}
.active-filter-pill {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.active-filter-pill:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* ==========================================
   WHOLESALE B2B TABLE VIEW
   ========================================== */
.b2b-table-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.b2b-wholesale-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.92rem;
}
.b2b-wholesale-table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid #bae6fd;
}
.b2b-wholesale-table th {
  padding: 14px 16px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.b2b-wholesale-table th.col-wholesale {
  color: #0284c7;
  background: #f0f9ff;
}
.b2b-table-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.b2b-table-row:hover {
  background: #f0f9ff;
}
.b2b-table-row td {
  padding: 12px 14px;
  vertical-align: middle;
}
.table-prod-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.table-sku-chip {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: monospace;
}
.table-name-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.table-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.table-brand-tag {
  background: #f0f9ff;
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 4px;
}
.table-orig-tag {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 4px;
}
.table-spec-tag {
  background: #f1f5f9;
  color: var(--text-body);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
}
.table-prod-title {
  color: var(--text-heading);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.15s ease;
}
.table-prod-title:hover {
  color: #0284c7;
}
.table-compat-pill {
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}
.table-stock {
  font-size: 0.82rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}
.table-stock.in-stock {
  background: #dcfce7;
  color: #15803d;
}
.table-stock.out-stock {
  background: #fee2e2;
  color: #dc2626;
}
.table-retail-price {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: line-through;
}
.col-wholesale {
  background: #f0f9ff;
}
.table-wholesale-price {
  color: #0284c7;
  font-size: 1.15rem;
  font-weight: 800;
}
.table-wholesale-price small {
  font-size: 0.75rem;
}
.table-stepper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 95px;
  height: 36px;
  overflow: hidden;
}
.table-stepper button {
  background: #f1f5f9;
  border: none;
  color: var(--text-heading);
  width: 28px;
  height: 100%;
  cursor: pointer;
  font-weight: bold;
}
.table-stepper button:hover {
  background: #0284c7;
  color: #ffffff;
}
.row-qty-input {
  width: 39px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-heading);
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
}
.table-add-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.table-disabled-btn {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: not-allowed;
}

/* ==========================================
   PRODUCT GRID VIEW (3 & 4 Columns)
   ========================================== */
.b2b-products-grid {
  display: grid;
  gap: 20px;
}
.b2b-products-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.b2b-products-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.b2b-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.b2b-card:hover {
  transform: translateY(-4px);
  border-color: #0284c7;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12);
}
.b2b-card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge-orig {
  background: #10b981;
  color: #fff;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 4px;
}
.badge-brand {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #7dd3fc;
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.badge-disc {
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 4px;
}
.b2b-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: block;
}
.b2b-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.b2b-card:hover .b2b-card-img {
  transform: scale(1.06);
}
.b2b-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.b2b-card-sku {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.stock-pill {
  font-size: 0.72rem;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 4px;
}
.stock-pill.in { background: #dcfce7; color: #15803d; }
.stock-pill.out { background: #fee2e2; color: #dc2626; }
.b2b-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}
.b2b-card-title a {
  color: var(--text-heading);
  text-decoration: none;
  transition: color 0.15s ease;
}
.b2b-card-title a:hover {
  color: #0284c7;
}
.b2b-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.spec-chip {
  background: #f1f5f9;
  color: var(--text-body);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
}
.spec-chip.compat {
  border: 1px solid #bae6fd;
  color: #0284c7;
  background: #f0f9ff;
}
.b2b-card-pricing {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  margin-top: auto;
}
.pricing-retail {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.pricing-retail .price-val {
  text-decoration: line-through;
}
.pricing-wholesale {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pricing-wholesale .price-type {
  font-size: 0.8rem;
  color: #0284c7;
  font-weight: bold;
}
.pricing-wholesale .price-val-cyan {
  font-size: 1.15rem;
  color: #0284c7;
  font-weight: 800;
}
.b2b-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.card-stepper {
  width: 80px;
  height: 38px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.card-stepper button {
  width: 24px;
  height: 100%;
  font-size: 0.95rem;
  background: #f1f5f9;
  border: none;
  color: var(--text-heading);
  cursor: pointer;
}
.card-stepper button:hover {
  background: #0284c7;
  color: #ffffff;
}
.card-qty-input {
  width: 32px;
  font-size: 0.88rem;
  color: var(--text-heading);
  border: none;
  background: transparent;
  text-align: center;
}
.b2b-add-cart-btn {
  flex: 1;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
}

/* Pagination */
.b2b-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 35px;
  padding: 15px 0;
}
.page-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-body);
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
}
.page-btn:hover,
.page-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}
.page-btn.nav-btn {
  padding: 0 16px;
  font-size: 0.88rem;
}
.page-dots {
  color: var(--text-muted);
  padding: 0 6px;
}

/* Empty State */
.b2b-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

/* Mobile Off-Canvas Drawer */
.b2b-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.b2b-sidebar-backdrop.mobile-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .b2b-main-layout {
    grid-template-columns: 1fr;
  }
  .b2b-products-grid.grid-4,
  .b2b-products-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .b2b-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    max-height: 100vh;
    background: #ffffff;
    z-index: 999;
    padding: 20px 16px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .b2b-sidebar.mobile-open {
    right: 0;
  }
  .sidebar-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
  }
  .close-sidebar-btn {
    background: #f1f5f9;
    border: none;
    color: var(--text-heading);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .b2b-hero-title {
    font-size: 1.7rem;
  }
  .b2b-hero-title .accent-text {
    font-size: 1.25rem;
  }
  .b2b-quick-form {
    flex-direction: column;
    align-items: stretch;
  }
  .quick-input-group.flex-2,
  .quick-input-group.flex-1,
  .quick-input-group.flex-action {
    width: 100%;
    min-width: unset;
  }
  .b2b-products-grid.grid-4,
  .b2b-products-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .b2b-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-left, .toolbar-right {
    justify-content: space-between;
  }
  .hide-mobile {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .b2b-products-grid.grid-4,
  .b2b-products-grid.grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   MASTER DARK MODE ENGINE (High Specificity Overrides)
   =================================================== */

html[data-theme="dark"],
html.dark-theme,
[data-theme="dark"],
.dark-theme {
  --gold: #00b4d8;
  --gold-light: #38bdf8;
  --gold-dark: #0284c7;
  --cyan: #00b4d8;
  --cyan-glow: rgba(0, 180, 216, 0.4);
  --blue-tech: #0ea5e9;
  --cta-tech: #ff6b00;
  --cta-light: #ff8c00;
  --cta-glow: rgba(255, 107, 0, 0.35);
  --black: #06080f;
  --dark: #0b0f19;
  --dark2: #111827;
  --dark3: #1e293b;
  --surface: #0f172a;
  --surface2: #1e293b;
  --surface-glass: rgba(15, 23, 42, 0.92);
  --white: #ffffff;
  --off-white: #f8fafc;
  --pure-white: #0f172a;
  --text-dark: #f8fafc;
  --text-heading: #f8fafc;
  --text-body: #cbd5e1;
  --text-light: #94a3b8;
  --text-muted: #64748b;
  --accent: #00b4d8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;
  --border: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 180, 216, 0.35);
  --shadow: 0 12px 36px rgba(0,0,0,0.55);
  --shadow-gold: 0 8px 25px rgba(0, 180, 216, 0.3);
  color-scheme: dark;
}

html[data-theme="dark"] body,
html.dark-theme body,
body[data-theme="dark"],
body.dark-theme {
  background-color: #0b0f19 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] ::-webkit-scrollbar-track,
html.dark-theme ::-webkit-scrollbar-track {
  background: #0b0f19 !important;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb,
html.dark-theme ::-webkit-scrollbar-thumb {
  background: #334155 !important;
}

/* 1. Header & Navigation */
html[data-theme="dark"] .header,
html.dark-theme .header {
  background: rgba(11, 15, 25, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .header.scrolled,
html.dark-theme .header.scrolled {
  background: rgba(11, 15, 25, 0.98) !important;
}
html[data-theme="dark"] .header-top,
html.dark-theme .header-top {
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .header-bottom,
html.dark-theme .header-bottom {
  background: #0b0f19 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .header-search-bar,
html.dark-theme .header-search-bar {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="dark"] .header-search-bar input,
html.dark-theme .header-search-bar input {
  color: #f8fafc !important;
}
html[data-theme="dark"] .header-search-bar input::placeholder,
html.dark-theme .header-search-bar input::placeholder {
  color: #64748b !important;
}
html[data-theme="dark"] .search-cat-select,
html.dark-theme .search-cat-select {
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .search-cat-select select,
html.dark-theme .search-cat-select select {
  color: #f8fafc !important;
  background-color: transparent !important;
}
html[data-theme="dark"] .search-cat-select select option,
html.dark-theme .search-cat-select select option {
  background: #0f172a !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .main-nav a,
html.dark-theme .main-nav a {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active,
html.dark-theme .main-nav a:hover,
html.dark-theme .main-nav a.active {
  color: #00b4d8 !important;
  background: rgba(0, 180, 216, 0.15) !important;
}
html[data-theme="dark"] .categories-dropdown .cat-dropdown-btn,
html.dark-theme .categories-dropdown .cat-dropdown-btn {
  background: #1e293b !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .cat-dropdown-menu,
html.dark-theme .cat-dropdown-menu {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .cat-dropdown-menu a,
html.dark-theme .cat-dropdown-menu a {
  color: #cbd5e1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .cat-dropdown-menu a:hover,
html.dark-theme .cat-dropdown-menu a:hover {
  background: #1e293b !important;
  color: #00b4d8 !important;
}

/* 2. Action Buttons & Theme Switcher */
html[data-theme="dark"] .action-icon-btn,
html.dark-theme .action-icon-btn {
  background: #1e293b !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .action-icon-btn svg.header-action-svg,
html.dark-theme .action-icon-btn svg.header-action-svg {
  stroke: #e2e8f0 !important;
}
html[data-theme="dark"] .action-icon-btn:hover,
html.dark-theme .action-icon-btn:hover {
  background: #0f172a !important;
  border-color: #00b4d8 !important;
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.3) !important;
}
html[data-theme="dark"] .action-icon-btn:hover svg.header-action-svg,
html.dark-theme .action-icon-btn:hover svg.header-action-svg {
  stroke: #38bdf8 !important;
}
html[data-theme="dark"] .action-icon-btn.wishlist-icon-btn:hover,
html.dark-theme .action-icon-btn.wishlist-icon-btn:hover {
  background: rgba(225, 29, 72, 0.16) !important;
  border-color: #f43f5e !important;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.25) !important;
}
html[data-theme="dark"] .action-icon-btn.wishlist-icon-btn:hover svg.header-action-svg,
html.dark-theme .action-icon-btn.wishlist-icon-btn:hover svg.header-action-svg {
  stroke: #fb7185 !important;
  fill: rgba(225, 29, 72, 0.2) !important;
}
html[data-theme="dark"] .action-icon-btn.cart-btn-header:hover,
html.dark-theme .action-icon-btn.cart-btn-header:hover {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: #10b981 !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25) !important;
}
html[data-theme="dark"] .action-icon-btn.cart-btn-header:hover svg.header-action-svg,
html.dark-theme .action-icon-btn.cart-btn-header:hover svg.header-action-svg {
  stroke: #34d399 !important;
}
html[data-theme="dark"] .action-icon-btn.theme-toggle-btn .theme-icon-moon,
html.dark-theme .action-icon-btn.theme-toggle-btn .theme-icon-moon {
  display: none !important;
}
html[data-theme="dark"] .action-icon-btn.theme-toggle-btn .theme-icon-sun,
html.dark-theme .action-icon-btn.theme-toggle-btn .theme-icon-sun {
  display: block !important;
  stroke: #fbbf24 !important;
}
html[data-theme="dark"] .action-icon-btn.theme-toggle-btn:hover,
html.dark-theme .action-icon-btn.theme-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3) !important;
}
html[data-theme="dark"] .action-icon-btn.theme-toggle-btn:hover .theme-icon-sun,
html.dark-theme .action-icon-btn.theme-toggle-btn:hover .theme-icon-sun {
  stroke: #fef08a !important;
  transform: rotate(45deg) scale(1.15) !important;
}
html[data-theme="dark"] .action-icon-btn .wishlist-count,
html[data-theme="dark"] .action-icon-btn .cart-count-badge,
html.dark-theme .action-icon-btn .wishlist-count,
html.dark-theme .action-icon-btn .cart-count-badge {
  border-color: #1e293b !important;
}
html[data-theme="dark"] .user-status-dot,
html.dark-theme .user-status-dot {
  border-color: #1e293b !important;
}

/* 3. Hero & Phone Finder */
html[data-theme="dark"] .hero-section,
html.dark-theme .hero-section {
  background: linear-gradient(180deg, #0b0f19 0%, #0f172a 100%) !important;
}
html[data-theme="dark"] .phone-finder-widget,
html.dark-theme .phone-finder-widget {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] .finder-icon-box,
html.dark-theme .finder-icon-box {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  border-color: rgba(0, 180, 216, 0.3) !important;
}
html[data-theme="dark"] .finder-select,
html.dark-theme .finder-select {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .finder-select option,
html.dark-theme .finder-select option {
  background: #0f172a !important;
  color: #f8fafc !important;
}

/* 4. Brands Showcase */
html[data-theme="dark"] .our-brands-showcase,
html.dark-theme .our-brands-showcase {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .our-brands-title,
html.dark-theme .our-brands-title {
  color: #f8fafc !important;
}
html[data-theme="dark"] .brand-text-badge,
html.dark-theme .brand-text-badge {
  color: #f8fafc !important;
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .our-brand-item img,
html.dark-theme .our-brand-item img {
  filter: brightness(0.92) contrast(1.1) !important;
}

/* 5. Features Section & Info Cards */
html[data-theme="dark"] .features-section,
html.dark-theme .features-section {
  background: #0b0f19 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .feature-card,
html.dark-theme .feature-card {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .feature-card:hover,
html.dark-theme .feature-card:hover {
  background: #1e293b !important;
  border-color: #0284c7 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}
html[data-theme="dark"] .info-card,
html.dark-theme .info-card {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .info-card:hover,
html.dark-theme .info-card:hover {
  background: #1e293b !important;
}
html[data-theme="dark"] .info-icon-wrap,
html.dark-theme .info-icon-wrap {
  background: #1e293b !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
}
html[data-theme="dark"] .branch-card,
html.dark-theme .branch-card {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .branch-card:hover,
html.dark-theme .branch-card:hover {
  background: #1e293b !important;
}

/* 6. Products & Cards */
html[data-theme="dark"] .card,
html.dark-theme .card {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .product-card,
html.dark-theme .product-card {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .product-card:hover,
html.dark-theme .product-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .product-card .img-wrap,
html[data-theme="dark"] .product-card-img-wrap,
html.dark-theme .product-card .img-wrap,
html.dark-theme .product-card-img-wrap {
  background: #1e293b !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .cat-chip,
html.dark-theme .cat-chip {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .cat-chip:hover,
html.dark-theme .cat-chip:hover {
  background: #1e293b !important;
  color: #38bdf8 !important;
}
html[data-theme="dark"] .cat-item-card,
html.dark-theme .cat-item-card {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .cat-item-card:hover,
html.dark-theme .cat-item-card:hover {
  background: rgba(0, 180, 216, 0.14) !important;
}
html[data-theme="dark"] .tab-btn,
html.dark-theme .tab-btn {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .tab-btn:hover,
html.dark-theme .tab-btn:hover {
  border-color: #00b4d8 !important;
  color: #00b4d8 !important;
}
html[data-theme="dark"] .tab-btn.active,
html.dark-theme .tab-btn.active {
  background: #00b4d8 !important;
  border-color: #00b4d8 !important;
  color: #ffffff !important;
}

/* 7. B2B & Wholesale */
html[data-theme="dark"] .b2b-quick-order-box,
html.dark-theme .b2b-quick-order-box {
  background: #0f172a !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
}
html[data-theme="dark"] .b2b-stat-pill,
html.dark-theme .b2b-stat-pill {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .b2b-hero-badge,
html.dark-theme .b2b-hero-badge {
  background: #0f172a !important;
  border-color: #0284c7 !important;
}
html[data-theme="dark"] .b2b-hero-title,
html.dark-theme .b2b-hero-title {
  background: linear-gradient(135deg, #f8fafc 40%, #00b4d8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* 8. Modals, Sidebar & Toasts */
html[data-theme="dark"] .cart-sidebar,
html.dark-theme .cart-sidebar {
  background: #0f172a !important;
  border-right-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}
html[data-theme="dark"] .cart-sidebar .cart-header,
html[data-theme="dark"] .cart-sidebar .cart-footer,
html.dark-theme .cart-sidebar .cart-header,
html.dark-theme .cart-sidebar .cart-footer {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .cart-item,
html.dark-theme .cart-item {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .cart-item img,
html.dark-theme .cart-item img {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .modal,
html.dark-theme .modal {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="dark"] .qty-btn,
html.dark-theme .qty-btn {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .toast,
html.dark-theme .toast {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

/* 9. Forms & Tables */
html[data-theme="dark"] .form-control,
html.dark-theme .form-control {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .form-control:focus,
html.dark-theme .form-control:focus {
  background: #1e293b !important;
  border-color: #00b4d8 !important;
}
html[data-theme="dark"] .table-wrap,
html.dark-theme .table-wrap {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .table th,
html.dark-theme .table th {
  background: #1e293b !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .table td,
html.dark-theme .table td {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

/* 10. Footer & Social Links */
html[data-theme="dark"] .footer,
html.dark-theme .footer {
  background: #070a12 !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .footer-bottom,
html.dark-theme .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .social-link,
html.dark-theme .social-link {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .page-btn,
html.dark-theme .page-btn {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

/* 11. Mobile Search & Navigation */
html[data-theme="dark"] .header-mobile-search,
html.dark-theme .header-mobile-search {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .mobile-search-form,
html.dark-theme .mobile-search-form {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .mobile-search-form input,
html.dark-theme .mobile-search-form input {
  color: #f8fafc !important;
}
html[data-theme="dark"] .mobile-nav-drawer,
html.dark-theme .mobile-nav-drawer {
  background: #0f172a !important;
}
@media (max-width: 768px) {
  html[data-theme="dark"] .nav,
  html.dark-theme .nav {
    background: rgba(11, 15, 25, 0.98) !important;
  }
}

