/* ============================================================
   SwitchTech Limited – Modern Light Theme v3.0
   Jumia/Kilimall-style ICT Marketplace
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary: #0F6DD9;
  --primary-dark: #0B55B1;
  --primary-light: #E8F1FC;
  --accent-green: #00A651;
  --accent-orange: #F59E0B;
  --accent-red: #E53E3E;
  --bg: #F5F6FA;
  --bg-white: #FFFFFF;
  --bg-dark: #1A1A2E;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-dark: #D1D5DB;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── TOP BAR ───────────────────────────────────────────────── */
.topbar {
  background: #0B1220;
  color: #9CA3AF;
  font-size: 0.72rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar a {
  color: #9CA3AF;
  transition: color var(--transition);
}

.topbar a:hover {
  color: #fff;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-left span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-right a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.topbar-social {
  display: flex;
  gap: 0.5rem;
}

.topbar-social a {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

/* ── MAIN HEADER ───────────────────────────────────────────── */
.site-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.site-logo-text span {
  color: #0B1220;
}

.site-logo-sub {
  font-size: 0.6rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 580px;
}

.search-form {
  display: flex;
  background: #F5F6FA;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.search-form:focus-within {
  border-color: var(--primary);
  background: #fff;
}

.search-cat-select {
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  padding: 0 0.75rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  min-width: 120px;
}

.search-input {
  flex: 1;
  border: none;
  background: none;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
}

.search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
}

.search-btn:hover {
  background: var(--primary-dark);
}

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.header-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--text);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
  font-size: 0.7rem;
}

.header-icon-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.header-icon-btn i {
  font-size: 1.15rem;
}

.header-icon-btn .label {
  font-size: 0.62rem;
  font-weight: 500;
  white-space: nowrap;
}

.icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ── NAV BAR ───────────────────────────────────────────────── */
.site-nav {
  background: #0F6DD9;
}

.nav-inner {
  display: flex;
  align-items: stretch;
}

.nav-cats-drop {
  position: relative;
  flex-shrink: 0;
}

.nav-cats-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  padding: 0 1.25rem;
  height: 44px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.nav-cats-btn:hover,
.nav-cats-btn.active {
  background: rgba(0, 0, 0, 0.25);
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.nav-link-item {
  position: relative;
}

.nav-link-item>a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 0.9rem;
  height: 44px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-link-item>a:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
}

.nav-link-item>a.active {
  color: #fff;
  font-weight: 700;
}

.nav-deals {
  margin-left: auto;
}

.nav-deals a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #F59E0B;
  color: #fff;
  padding: 0 1rem;
  height: 44px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 0;
}

.nav-deals a:hover {
  background: #D97706;
}

/* Mega dropdown */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  padding: 0.5rem 0;
}

.nav-cats-drop:hover .mega-menu,
.nav-cats-drop.open .mega-menu {
  display: block;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem;
  color: var(--text);
  font-size: 0.82rem;
  transition: background var(--transition);
}

.mega-menu-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mega-menu-item i {
  width: 20px;
  text-align: center;
  color: var(--primary);
}

/* ── MOBILE HAMBURGER ─────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 9990;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link i {
  color: var(--primary);
  width: 24px;
}

.mobile-nav-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem;
}

/* ── HERO SLIDER ───────────────────────────────────────────── */
.hero-slider {
  position: relative;
  background: #1A1A2E;
  overflow: hidden;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  position: relative;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slide img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 50, 0.92) 0%, rgba(10, 20, 50, 0.6) 60%, transparent 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 2.5rem;
  color: #fff;
}

.hero-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.hero-slide h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-slide h2 span {
  color: #60B2FF;
}

.hero-slide p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.hero-slide-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--transition);
}

.hero-btn-primary:hover {
  background: var(--primary-dark);
}

.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-size: 0.9rem;
}

.hero-arrow:hover {
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

/* ── TRUST BADGES ──────────────────────────────────────────── */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.trust-bar .container {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  flex: 1;
  min-width: 180px;
  border-right: 1px solid var(--border);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.trust-item-text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.trust-item-text span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* ── SECTION HEADERS ───────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-left: 0.75rem;
}

.section-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1em;
  background: var(--primary);
  border-radius: 2px;
}

.section-head a.view-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.section-head a.view-all:hover {
  text-decoration: underline;
}

section.shop-section {
  padding: 1.75rem 0;
}

/* ── PRODUCT CARDS ─────────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #F8F9FB;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-card-img img {
  max-height: 150px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

/* Badges */
.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
}

.badge-new {
  background: #E8F5E9;
  color: #00A651;
}

.badge-hot {
  background: #FFF3E0;
  color: #E65100;
}

.badge-sale {
  background: #FFEBEE;
  color: #C62828;
}

.badge-low {
  background: #FFF8E1;
  color: #F59E0B;
}

.badge-out {
  background: #FAFAFA;
  color: #9CA3AF;
}

/* Wishlist Heart */
.wish-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
  z-index: 2;
}

.wish-btn:hover,
.wish-btn.active {
  color: #E53E3E;
  border-color: #E53E3E;
}

.wish-btn.active {
  background: #FFEBEE;
}

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

.product-brand {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.product-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.product-stars .stars {
  color: #F59E0B;
  font-size: 0.65rem;
}

.product-stars .count {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.product-price {
  margin-top: auto;
}

.price-current {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-red);
}

.price-old {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.3rem;
}

.product-card-actions {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--border);
}

.btn-add-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-add-cart:hover {
  background: var(--primary-dark);
}

.btn-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-details:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── PRODUCT GRIDS & SLIDERS ───────────────────────────────── */
.products-slider {
  position: relative;
}

.swiper-container {
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
  box-sizing: border-box;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  font-size: 0.85rem;
}

.slider-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.slider-prev {
  left: -16px;
}

.slider-next {
  right: -16px;
}

/* ── SOLUTIONS CARDS ───────────────────────────────────────── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.solution-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.solution-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
}

.solution-card-body {
  position: relative;
  z-index: 2;
  padding: 1rem 1.1rem;
  color: #fff;
}

.solution-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.solution-card p {
  font-size: 0.72rem;
  opacity: 0.85;
  margin-bottom: 0.6rem;
}

.solution-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* ── SHOP BY CATEGORY ──────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  transition: all var(--transition);
  cursor: pointer;
}

.category-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}

.category-item-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.category-item span {
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: var(--text);
}

.category-item:hover span {
  color: var(--primary);
}

/* ── BRANDS STRIP ──────────────────────────────────────────── */
.brands-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.brands-list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.55;
  filter: grayscale(1);
  transition: all var(--transition);
}

.brand-item:hover {
  opacity: 1;
  filter: none;
}

.brand-item span {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

/* ── PRODUCTS PAGE ─────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.filter-sidebar {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 60px);
}

.filter-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #F8F9FB;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-section {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.filter-section h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.78rem;
  color: var(--text);
  cursor: pointer;
}

.filter-check input {
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-check .count {
  margin-left: auto;
  background: #F5F6FA;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
}

.price-inputs {
  display: flex;
  gap: 0.5rem;
}

.price-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text);
  outline: none;
}

.price-input:focus {
  border-color: var(--primary);
}

.filter-apply-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: background var(--transition);
}

.filter-apply-btn:hover {
  background: var(--primary-dark);
}

/* Products main area */
.products-topbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.products-topbar .results {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.products-topbar select,
.products-topbar input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  color: var(--text);
  outline: none;
  background: #fff;
}

.products-topbar select:focus,
.products-topbar input:focus {
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ── PRODUCT DETAIL ────────────────────────────────────────── */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

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

.gallery-main img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.gallery-main:hover img {
  transform: scale(1.1);
}

.detail-info .brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.detail-info h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-red);
  margin-bottom: 1.25rem;
}

.detail-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.stock-in {
  background: #E8F5E9;
  color: #00A651;
}

.stock-low {
  background: #FFF8E1;
  color: #F59E0B;
}

.stock-out {
  background: #FAFAFA;
  color: #9CA3AF;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-cart-lg {
  background: var(--primary);
  color: #fff;
}

.btn-cart-lg:hover {
  background: var(--primary-dark);
}

.btn-wish-lg {
  background: #fff;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-wish-lg:hover {
  border-color: #E53E3E;
  color: #E53E3E;
}

.btn-wish-lg.active {
  background: #FFEBEE;
  border-color: #E53E3E;
  color: #E53E3E;
}

/* Sticky CTA mobile */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  z-index: 800;
  gap: 0.75rem;
}

.sticky-cta .btn-lg {
  flex: 1;
}

/* Tabs */
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ── REVIEWS ───────────────────────────────────────────────── */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.review-card {
  background: #F8F9FB;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.review-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}

.review-meta strong {
  font-size: 0.82rem;
  font-weight: 700;
  display: block;
}

.review-meta span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stars-display {
  display: flex;
  gap: 2px;
  color: #F59E0B;
  font-size: 0.82rem;
}

.review-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Review Form */
.review-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.review-form-wrap h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.star-picker {
  display: flex;
  gap: 6px;
}

.star-picker i {
  font-size: 1.75rem;
  color: #D1D5DB;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.star-picker i:hover,
.star-picker i.active {
  color: #F59E0B !important;
  transform: scale(1.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  background: #fff;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 109, 217, 0.08);
}

.btn-submit-review {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-submit-review:hover {
  background: var(--primary-dark);
}

/* ── CART PAGE ─────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.cart-table-wrap {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table thead tr {
  background: #F8F9FB;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.cart-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cart-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 0.82rem;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #F8F9FB;
  border-radius: var(--radius-sm);
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
}

.cart-item-brand {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: #F5F6FA;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--primary);
  color: #fff;
}

.qty-val {
  width: 36px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  background: none;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.9rem;
}

.remove-btn:hover {
  color: var(--accent-red);
}

.cart-summary {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 60px);
}

.cart-summary h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.summary-row.total {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.btn-checkout {
  width: 100%;
  background: #00A651;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  transition: background var(--transition);
}

.btn-checkout:hover {
  background: #00853F;
}

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.cart-empty i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cart-empty h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cart-empty p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ── WISHLIST PAGE ─────────────────────────────────────────── */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ── FLOATING WHATSAPP ─────────────────────────────────────── */
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.75rem 0;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span.sep {
  color: var(--border-dark);
}

/* ── PAGE HERO ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0B1220 0%, #0F3168 100%);
  padding: 2.25rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(15, 109, 217, 0.15);
  border-radius: 50%;
}

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

.page-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.page-hero p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ── ALERT BOXES ───────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background: #E8F5E9;
  color: #00A651;
  border: 1px solid rgba(0, 166, 81, 0.2);
}

.alert-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid rgba(198, 40, 40, 0.2);
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: #0B1220;
  color: #9CA3AF;
  margin-top: 3rem;
}

.footer-top {
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  font-size: 0.78rem;
  line-height: 1.8;
  margin-top: 0.75rem;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col li a {
  font-size: 0.78rem;
  color: #9CA3AF;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col li a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.78rem;
  margin-bottom: 0.65rem;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-hours {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-top: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-hours span {
  display: block;
}

.footer-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 0;
}

.footer-bottom {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.72rem;
}

.footer-bottom a {
  color: var(--primary);
}

/* ── RELATED PRODUCTS ──────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width:1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .solutions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width:768px) {
  .topbar {
    display: none;
  }

  .header-search {
    display: none;
  }

  .site-nav .nav-inner {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .hero-slide {
    height: 220px;
  }

  .hero-slide h2 {
    font-size: 1.35rem;
  }

  .hero-slide-content {
    padding: 1.5rem;
  }

  .trust-bar .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    display: none;
  }

  .filter-sidebar.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 950;
    overflow-y: auto;
    border-radius: 0;
  }

  .detail-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-cta {
    display: flex;
  }
}

@media (max-width:480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
  }

  .category-item {
    padding: 0.65rem 0.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-slide h2 {
    font-size: 1.1rem;
  }

  .hero-slide p {
    display: none;
  }
}

/* ── UTILITIES ─────────────────────────────────────────────── */
.text-muted {
  color: var(--text-muted);
}

.text-primary {
  color: var(--primary);
}

.font-bold {
  font-weight: 700;
}

.bg-white {
  background: #fff;
}

.rounded {
  border-radius: var(--radius-md);
}

.border {
  border: 1px solid var(--border);
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

/* Scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Swiper pagination override */
.swiper-pagination-bullet {
  background: #D1D5DB;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--primary);
}