/* ============================================================
   Kamakel Capital Ltd — Main Stylesheet
   Brand: Orange (#FF6B00) + White (#FFFFFF) + Dark (#1A1A2E)
   Kenya's Electronics Hub
   ============================================================ */

:root {
  --primary: #FF6B00;
  --primary-dark: #CC5500;
  --primary-light: #FF8C33;
  --accent: #FFB347;
  --dark: #1A1A2E;
  --dark-2: #16213E;
  --dark-3: #0F3460;
  --white: #FFFFFF;
  --off-white: #FFF8F3;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-400: #ADB5BD;
  --gray-600: #6C757D;
  --gray-800: #343A40;
  --success: #28A745;
  --danger: #DC3545;
  --warning: #FFC107;
  --shadow-sm: 0 2px 8px rgba(255,107,0,0.12);
  --shadow-md: 0 4px 20px rgba(255,107,0,0.18);
  --shadow-lg: 0 8px 40px rgba(255,107,0,0.22);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--dark); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Top announcement bar ── */
.top-bar {
  background: linear-gradient(90deg, var(--dark) 0%, var(--dark-3) 100%);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.top-bar a { color: var(--accent); font-weight: 600; }
.top-bar .top-bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1280px; margin: 0 auto; flex-wrap: wrap; gap: 6px;
}

/* ── Header / Navbar ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-wrap img { height: 48px; width: auto; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .brand-name { font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1; }
.logo-text .brand-tagline { font-size: 10px; color: var(--gray-600); letter-spacing: 0.5px; }

/* ── Search bar ── */
.search-form {
  flex: 1; display: flex; max-width: 560px;
  border: 2px solid var(--primary); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.search-form:focus-within { box-shadow: 0 0 0 3px rgba(255,107,0,0.2); }
.search-form input {
  flex: 1; border: none; outline: none;
  padding: 10px 16px; font-size: 14px; background: var(--white);
}
.search-form button {
  background: var(--primary); color: var(--white);
  border: none; padding: 0 20px; cursor: pointer;
  font-size: 16px; transition: var(--transition);
}
.search-form button:hover { background: var(--primary-dark); }

/* ── Header actions ── */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-actions a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--dark); font-size: 11px; font-weight: 600;
  transition: var(--transition); position: relative;
}
.header-actions a:hover { background: var(--off-white); color: var(--primary); }
.header-actions a svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: 4px; right: 8px;
  background: var(--primary); color: var(--white);
  font-size: 10px; font-weight: 700; border-radius: 50%;
  width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
}

/* ── Category nav bar ── */
.cat-nav {
  background: var(--dark);
  border-bottom: 2px solid var(--primary);
}
.cat-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 0; overflow-x: auto;
  padding: 0 20px; scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a {
  color: var(--gray-200); font-size: 13px; font-weight: 500;
  padding: 12px 16px; white-space: nowrap; border-bottom: 3px solid transparent;
  transition: var(--transition); display: block;
}
.cat-nav a:hover, .cat-nav a.active {
  color: var(--primary); border-bottom-color: var(--primary);
}
.cat-nav .all-cats-btn {
  background: var(--primary); color: var(--white);
  padding: 10px 18px; border-radius: 6px; margin: 4px 8px 4px 0;
  font-weight: 700; border-bottom: none;
}
.cat-nav .all-cats-btn:hover { background: var(--primary-dark); color: var(--white); }

/* ── Hero / Banner ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 50%, #1A0A00 100%);
  padding: 0; overflow: hidden; position: relative;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 460px;
  align-items: center;
}
.hero-content { padding: 60px 40px; color: var(--white); }
.hero-eyebrow {
  display: inline-block;
  background: var(--primary); color: var(--white);
  padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.hero-title { font-size: clamp(28px, 4vw, 52px); font-weight: 900; color: var(--white); margin-bottom: 16px; line-height: 1.1; }
.hero-title span { color: var(--primary); }
.hero-subtitle { font-size: 16px; color: var(--gray-400); margin-bottom: 32px; max-width: 440px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary); color: var(--white);
  padding: 14px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--white);
  padding: 14px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; border: 2px solid rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.hero-image {
  display: flex; align-items: center; justify-content: center;
  padding: 40px; position: relative;
}
.hero-image img { max-height: 380px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(255,107,0,0.3)); }
.hero-stats {
  position: absolute; bottom: 20px; left: 40px;
  display: flex; gap: 24px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 24px; font-weight: 900; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--gray-400); }

/* ── Feature Badges ── */
.features-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 20px;
}
.features-bar-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.feature-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--white);
  border-radius: var(--radius-sm); border: 1px solid var(--gray-200);
}
.feature-icon { font-size: 28px; flex-shrink: 0; }
.feature-text .feature-title { font-size: 13px; font-weight: 700; color: var(--dark); }
.feature-text .feature-sub { font-size: 11px; color: var(--gray-600); }

/* ── Section layout ── */
.section { padding: 48px 20px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.section-title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--dark); }
.section-title span { color: var(--primary); }
.section-link { color: var(--primary); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--primary-dark); }

/* ── Category cards grid ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: var(--radius); padding: 20px 12px;
  text-align: center; cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cat-card:hover {
  border-color: var(--primary); background: var(--off-white);
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.cat-card .cat-icon { font-size: 36px; }
.cat-card .cat-name { font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.3; }
.cat-card .cat-count { font-size: 11px; color: var(--gray-600); }

/* ── Product cards ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--primary); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px;
}
.product-badge.new { background: var(--success); }
.product-badge.sale { background: var(--danger); }
.product-img-wrap {
  height: 200px; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow: hidden;
}
.product-img-wrap img {
  max-height: 160px; width: auto; object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-brand { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--dark); line-height: 1.4; flex: 1; }
.product-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.product-price .old-price { font-size: 13px; color: var(--gray-400); text-decoration: line-through; font-weight: 400; margin-right: 6px; }
.product-actions { padding: 0 16px 16px; display: flex; gap: 8px; }
.btn-add-cart {
  flex: 1; background: var(--primary); color: var(--white);
  border: none; padding: 10px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--transition);
}
.btn-add-cart:hover { background: var(--primary-dark); }
.btn-wishlist {
  background: var(--gray-100); color: var(--gray-600);
  border: none; padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition); font-size: 16px;
}
.btn-wishlist:hover { background: var(--off-white); color: var(--danger); }

/* ── Promo Banners ── */
.promo-banners {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-bottom: 48px;
}
.promo-card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  min-height: 180px; display: flex; align-items: flex-end; padding: 24px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  cursor: pointer; transition: var(--transition);
}
.promo-card:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.promo-card.orange { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.promo-card.dark2 { background: linear-gradient(135deg, #0F3460 0%, #1A1A2E 100%); }
.promo-text { position: relative; z-index: 2; color: var(--white); }
.promo-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; opacity: 0.8; text-transform: uppercase; }
.promo-title { font-size: 22px; font-weight: 900; line-height: 1.2; margin: 4px 0 8px; }
.promo-sub { font-size: 13px; opacity: 0.85; }
.promo-img {
  position: absolute; right: 0; bottom: 0; height: 100%;
  width: 50%; object-fit: contain; object-position: right bottom;
  opacity: 0.25;
}

/* ── Trial / Pricing Banner ── */
.trial-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg); padding: 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 48px;
}
.trial-text { color: var(--white); }
.trial-text h2 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.trial-text p { font-size: 16px; opacity: 0.9; max-width: 560px; }
.trial-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white {
  background: var(--white); color: var(--primary);
  padding: 14px 32px; border-radius: var(--radius);
  font-weight: 800; font-size: 15px; border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Brands ── */
.brands-bar {
  background: var(--gray-100); border-radius: var(--radius);
  padding: 28px 24px; margin-bottom: 48px;
}
.brands-title { font-size: 14px; font-weight: 700; color: var(--gray-600); text-align: center; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.brands-logos {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 32px;
}
.brand-logo { font-size: 13px; font-weight: 800; color: var(--gray-600); letter-spacing: 0.5px; transition: var(--transition); cursor: pointer; }
.brand-logo:hover { color: var(--primary); }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: var(--gray-200);
  padding: 60px 20px 0;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .footer-logo img { height: 44px; }
.footer-brand .footer-logo span { font-size: 20px; font-weight: 800; color: var(--white); }
.footer-brand p { font-size: 14px; color: var(--gray-400); line-height: 1.7; max-width: 300px; margin-bottom: 20px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { color: var(--gray-400); font-size: 14px; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-contact a:hover { color: var(--primary); }
.footer-col h4 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--gray-400); font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--gray-600);
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.footer-bottom .powered-by { color: var(--primary); font-weight: 700; }
.footer-bottom .powered-by a { color: var(--primary); }

/* ── Cart Sidebar ── */
.cart-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 2000; backdrop-filter: blur(2px);
}
.cart-overlay.open { display: block; }
.cart-sidebar {
  position: fixed; top: 0; right: -420px; width: 400px; height: 100%;
  background: var(--white); z-index: 2001; transition: right 0.3s ease;
  display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(0,0,0,0.2);
}
.cart-sidebar.open { right: 0; }
.cart-header {
  padding: 20px; border-bottom: 2px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h3 { font-size: 18px; font-weight: 800; }
.cart-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-600); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cart-item img { width: 70px; height: 70px; object-fit: contain; background: var(--gray-100); border-radius: var(--radius-sm); }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--primary); }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.qty-btn {
  width: 24px; height: 24px; border: 1px solid var(--gray-200);
  background: var(--white); border-radius: 4px; cursor: pointer; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.qty-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.cart-item-remove { color: var(--danger); background: none; border: none; cursor: pointer; font-size: 18px; align-self: flex-start; }
.cart-footer { padding: 20px; border-top: 2px solid var(--gray-200); }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.cart-total span:last-child { color: var(--primary); }

/* ── Payment Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); z-index: 3000; backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; max-width: 480px; width: 92%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--gray-100); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.modal h2 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.modal .modal-sub { color: var(--gray-600); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); }
.payment-status {
  text-align: center; padding: 20px;
  border-radius: var(--radius); background: var(--gray-100);
  margin-top: 16px; font-size: 14px; color: var(--gray-600);
}
.payment-status.success { background: #d4edda; color: var(--success); }
.payment-status.error { background: #f8d7da; color: var(--danger); }
.payment-status.pending { background: #fff3cd; color: #856404; }

/* ── License / Trial modal ── */
.license-modal .plan-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 24px; }
.plan-card {
  border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 16px; text-align: center; cursor: pointer; transition: var(--transition);
}
.plan-card.selected, .plan-card:hover { border-color: var(--primary); background: var(--off-white); }
.plan-card .plan-name { font-size: 13px; font-weight: 700; color: var(--dark); }
.plan-card .plan-price { font-size: 20px; font-weight: 900; color: var(--primary); margin: 6px 0; }
.plan-card .plan-period { font-size: 11px; color: var(--gray-600); }
.trial-info {
  background: var(--off-white); border: 1px solid var(--primary);
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px;
  font-size: 14px; color: var(--dark);
}
.trial-info strong { color: var(--primary); }

/* ── Toast notifications ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--dark); color: var(--white); padding: 14px 20px;
  border-radius: var(--radius-sm); font-size: 14px; min-width: 280px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary); animation: slideIn 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Mobile menu ── */
.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 24px; cursor: pointer; color: var(--dark); padding: 4px;
}
.mobile-nav {
  display: none; background: var(--dark); position: fixed;
  top: 0; left: -100%; width: 280px; height: 100%; z-index: 2000;
  transition: left 0.3s ease; overflow-y: auto; padding: 20px 0;
  box-shadow: 8px 0 40px rgba(0,0,0,0.3);
}
.mobile-nav.open { left: 0; }
.mobile-nav-header { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 12px; }
.mobile-nav a {
  display: block; padding: 13px 20px; color: var(--gray-200); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
}
.mobile-nav a:hover { color: var(--primary); padding-left: 28px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content { padding: 48px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .promo-banners { grid-template-columns: 1fr 1fr; }
  .features-bar-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .search-form { order: 3; flex: 0 0 100%; max-width: 100%; }
  .cat-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-banners { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .features-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .trial-banner { flex-direction: column; text-align: center; }
  .hero-stats { position: relative; left: 0; bottom: 0; justify-content: center; }
  .license-modal .plan-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-bar-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
  .cart-sidebar { width: 100%; right: -100%; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-orange { color: var(--primary); }
.bg-orange { background: var(--primary); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
.loader {
  display: inline-block; width: 20px; height: 20px;
  border: 3px solid rgba(255,107,0,0.3); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Search results overlay ── */
.search-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--white); border: 2px solid var(--primary);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 360px; overflow-y: auto; z-index: 500; display: none;
}
.search-results.open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.search-result-item:hover { background: var(--off-white); }
.search-result-item img { width: 40px; height: 40px; object-fit: contain; }
.search-result-item .result-name { font-size: 13px; font-weight: 600; }
.search-result-item .result-price { font-size: 13px; color: var(--primary); font-weight: 700; }
.search-form-wrap { position: relative; flex: 1; max-width: 560px; }

/* ── Section divider ── */
.section-divider { border: none; border-top: 2px solid var(--gray-200); margin: 0; }

/* ── View Details link on product cards ── */
.btn-view-details {
  display: block; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--primary);
  padding: 7px 8px 0;
  text-decoration: none; letter-spacing: 0.3px;
  transition: var(--transition);
}
.btn-view-details:hover { color: var(--primary-dark); text-decoration: underline; }

/* ── Featured Laptops section header ── */
.featured-laptops-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  border-radius: var(--radius-lg); padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.featured-laptops-banner h2 { color: var(--white); font-size: 22px; font-weight: 800; }
.featured-laptops-banner h2 span { color: var(--primary); }
.featured-laptops-banner p { color: var(--gray-400); font-size: 14px; margin-top: 4px; }
.featured-laptops-banner .flb-badge {
  background: var(--primary); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px;
}


/* ── WhatsApp float button ── */
.whatsapp-btn {
  position: fixed; bottom: 80px; right: 24px; z-index: 1500;
  background: #25D366;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0; /* hide emoji text */
  box-shadow: 0 4px 16px rgba(37,211,102,0.5);
  transition: var(--transition); cursor: pointer; text-decoration: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }

/* ── Back to top ── */
.back-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 1500;
  background: var(--primary); color: var(--white);
  width: 44px; height: 44px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  font-size: 20px; border: none; cursor: pointer;
  box-shadow: var(--shadow-md); transition: var(--transition);
}
.back-top.visible { display: flex; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ── Additional functional styles ── */
.cart-sidebar.open { right: 0; }
.cart-overlay.open { display: block; }
.modal-overlay.open { display: flex; }
.mobile-nav.open { left: 0; }
.search-results.open { display: block; }

/* ── Section headers inside product pages ── */
.section-inner .section-header { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.section-inner .section-header:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* ── Product grid on pages with many items ── */
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (min-width: 1280px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

/* ── Product card image fix ── */
.product-img-wrap img { max-height: 160px; width: 100%; object-fit: contain; }

/* ── Cart sidebar z-index ── */
.cart-sidebar { z-index: 2001; }
.cart-overlay { z-index: 2000; }

/* ── Smooth transitions ── */
.cart-sidebar { transition: right 0.3s cubic-bezier(0.4,0,0.2,1); }
.mobile-nav   { transition: left 0.3s cubic-bezier(0.4,0,0.2,1); }
.modal-overlay { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal { animation: slideUp 0.25s ease; }
@keyframes slideUp { from { transform:translateY(24px);opacity:0; } to { transform:translateY(0);opacity:1; } }

/* ── Active nav link ── */
.cat-nav a.active { color: var(--primary) !important; border-bottom-color: var(--primary) !important; }

/* ── Wishlist heart hover ── */
.btn-wishlist:hover { color: var(--danger); background: #fff0f3; }

/* ── Plan card selected ── */
.plan-card.selected { border-color: var(--primary); background: var(--off-white); }

/* ── Footer fix ── */
.site-footer .footer-bottom {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--gray-600);
}
