/* ============================================================
   SwiftPlus — Premium Professional Design v3
   Jarir-inspired Premium Look & Feel
   Modern CCTV & Security Solutions
   ============================================================ */

/* ── Premium Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Design System Tokens ── */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37, 99, 235, 0.12);
  --primary-glow-strong: rgba(37, 99, 235, 0.25);
  --secondary: #0ea5e9;
  --accent: #06b6d4;
  --success: #22c55e;
  --success-dark: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-card: #1e293b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: rgba(255, 255, 255, 0.08);
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.25);
  --shadow-glow-sm: 0 0 20px rgba(37, 99, 235, 0.15);
  --side-pad: 24px;
  --max-width: 1280px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.5;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Premium headings */
h1, h2, h3, h4, h5, h6,
.sp-section-header h2,
.sp-projects-title,
.sp-category-title,
.sp-card-body h3,
.sp-footer-brand,
.sp-logo-text,
.sp-drawer-brand {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Body, buttons, prices stay Inter */
body, button, input, select, textarea,
.sp-nav a, .sp-card-body p, .sp-price,
.sp-stock-info, .sp-btn-add, .sp-btn-buy,
.sp-search-result-item, .sp-category-count {
  font-family: 'Inter', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL OVERFLOW LOCK
   ═══════════════════════════════════════════════════════════ */
.sp-navbar,
.sp-hero-outer,
.sp-search-section,
.sp-projects,
.sp-footer {
  max-width: 100vw;
  overflow: visible !important;
}

.sp-hero-wrapper,
.sp-hero {
  max-width: 100vw;
}

.sp-categories-section,
.sp-products-section,
.sp-dynamic-section,
.sp-brands-section {
  max-width: 100vw;
}

/* ============================================================
   NAVBAR (DARK - KEEP EXISTING STYLING)
   ============================================================ */
.sp-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 15, 35, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition);
}

.sp-navbar.scrolled {
  height: 58px;
  background: rgba(9, 15, 35, 0.99);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.sp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.sp-logo img {
  height: 38px;
  width: auto;
  border-radius: 8px;
  transition: transform var(--transition-fast);
}

.sp-logo:hover img {
  transform: scale(1.05);
}

.sp-logo-text {
  font-size: 21px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}

.sp-logo-text span {
  color: var(--primary-light);
}

.sp-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.sp-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sp-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.sp-nav a.active {
  color: white;
  background: var(--primary-glow);
}

.sp-nav a.nav-cta {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  padding: 8px 18px;
  margin-left: 6px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.3);
}

.sp-nav a.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, #15803d, #16a34a);
}

.sp-dropdown {
  position: relative;
}

.sp-dropdown > a {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sp-dropdown:hover .sp-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sp-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sp-dropdown-menu a:hover {
  background: rgba(37, 99, 235, 0.15);
  color: white;
}

.sp-dropdown-menu a img {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 4px;
}

/* Hamburger */
.sp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sp-hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sp-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  margin: 0 auto;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.sp-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sp-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.sp-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.sp-mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
}

.sp-mobile-nav.open {
  visibility: visible;
  pointer-events: auto;
}

.sp-mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition);
}

.sp-mobile-nav.open .sp-mobile-nav-backdrop {
  opacity: 1;
}

.sp-mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82%, 310px);
  background: linear-gradient(160deg, #0f172a 0%, #0a0f20 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

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

.sp-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sp-drawer-logo img {
  height: 34px;
  width: auto;
  border-radius: 6px;
}

.sp-drawer-brand {
  font-size: 17px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.sp-drawer-brand span {
  color: var(--primary-light);
}

.sp-drawer-close {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-drawer-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.sp-drawer-links {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-drawer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  font-size: 14px;
  font-weight: 500;
}

.sp-drawer-links a img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
}

.sp-drawer-links a:hover,
.sp-drawer-links a.active {
  background: rgba(37, 99, 235, 0.15);
  color: white;
}

.sp-drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 8px 0;
}

.sp-drawer-cat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  padding: 8px 14px 4px;
}

.drawer-cta {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: white !important;
  text-align: center;
  justify-content: center;
  margin-top: 6px;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
}

.drawer-cta:hover {
  background: linear-gradient(135deg, #15803d, #16a34a) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3) !important;
}

.sp-drawer-cat-parent {
  position: relative;
}

.sp-drawer-cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}

.sp-drawer-cat-link:hover,
.sp-drawer-cat-link.active {
  background: rgba(37, 99, 235, 0.15);
  color: white;
}

.sp-drawer-cat-link img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
}

.sp-drawer-sub-toggle {
  margin-left: auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.2s ease;
  color: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  cursor: pointer;
}

.sp-drawer-sub-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.sp-drawer-sub-toggle.open {
  transform: rotate(45deg);
}

.sp-drawer-sub-list {
  display: none;
  padding-left: 14px;
}

.sp-drawer-sub-list.open {
  display: block;
}

.sp-drawer-sub-list a {
  padding-left: 46px !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.7);
}

.sp-drawer-sub-list a:hover {
  color: white;
  background: rgba(37, 99, 235, 0.15);
}

@media (max-width: 968px) {
  .sp-nav {
    display: none;
  }
  .sp-hamburger {
    display: flex;
  }
  .sp-navbar {
    padding: 0 18px;
    height: 62px;
  }
}

/* ============================================================
   HERO SLIDER (Jarir-inspired with overlay)
   ============================================================ */
.sp-hero-outer {
  background: #fff;
  padding: 14px 24px 0;
  margin-top: 68px;
}

.sp-hero-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

.sp-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 440;
  overflow: hidden;
  background: #1e293b;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
}

.sp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.sp-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.sp-slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.sp-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Overlay content (Jarir-style) ── */
.sp-slide-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 50px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.2) 70%);
  z-index: 2;
}

.sp-slide-content h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  max-width: 60%;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sp-slide-content p {
  font-size: clamp(14px, 1.2vw, 18px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 50%;
  margin-bottom: 20px;
  line-height: 1.5;
}

.sp-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition);
  width: fit-content;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.sp-slide-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.5);
}

/* Arrows */
.sp-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: none;
  color: #1e293b;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.sp-slider-arrow:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.sp-slider-arrow-left {
  left: 16px;
}
.sp-slider-arrow-right {
  right: 16px;
}

/* Dots */
.sp-slider-dots-bar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.sp-slider-dot.active {
  width: 26px;
  border-radius: 4px;
  background: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Tablet */
@media (max-width: 968px) {
  .sp-hero-outer {
    padding: 12px 14px 0;
    margin-top: 62px;
  }
  .sp-hero {
    border-radius: var(--radius-lg);
    aspect-ratio: 1280 / 400;
  }
  .sp-slide-bg {
    border-radius: var(--radius-lg);
  }
  .sp-slide-content {
    padding: 24px 28px;
  }
  .sp-slide-content h2 {
    max-width: 80%;
    font-size: clamp(22px, 3.5vw, 32px);
  }
  .sp-slide-content p {
    max-width: 70%;
    font-size: 13px;
  }
  .sp-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* ── MOBILE HERO: full-width ── */
@media (max-width: 640px) {
  .sp-hero-outer {
    padding: 0 !important;
    margin-top: 62px !important;
    background: transparent !important;
  }
  .sp-hero-wrapper {
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .sp-hero {
    width: 100% !important;
    aspect-ratio: 3 / 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .sp-slide-bg {
    border-radius: 0 !important;
  }
  .sp-slide-content {
    padding: 16px 20px;
  }
  .sp-slide-content h2 {
    max-width: 100%;
    font-size: clamp(16px, 4vw, 22px);
  }
  .sp-slide-content p {
    max-width: 100%;
    font-size: 11px;
    margin-bottom: 12px;
  }
  .sp-slide-cta {
    padding: 8px 18px;
    font-size: 11px;
  }
  .sp-slider-arrow {
    display: none !important;
  }
  .sp-slider-dots-bar {
    bottom: 8px;
    gap: 4px;
  }
  .sp-slider-dot {
    width: 5px;
    height: 5px;
  }
  .sp-slider-dot.active {
    width: 18px;
    height: 5px;
  }
}

/* ============================================================
   SEARCH SECTION (Wider, Jarir-style)
   ============================================================ */
.sp-search-section {
  background: #ffffff;
  padding: 18px var(--side-pad);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  overflow: visible !important;
}

.sp-search-container {
  max-width: 760px;
  margin: 0 auto;
}

.sp-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.sp-search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  font-size: 17px;
  pointer-events: none;
  z-index: 1;
}

.sp-search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border: 1.5px solid var(--border-medium);
  border-radius: 100px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all var(--transition-fast);
  background: var(--bg-light);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

.sp-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), inset 0 1px 3px rgba(0, 0, 0, 0.04);
  background: var(--bg-white);
}

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

@media (max-width: 640px) {
  .sp-search-section {
    padding: 14px 16px;
  }
  .sp-search-input {
    font-size: 14px;
    padding: 12px 16px 12px 44px;
  }
}

/* ============================================================
   SEARCH AUTOCOMPLETE DROPDOWN
   ============================================================ */
.sp-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 9999 !important;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 380px;
  overflow-y: auto;
}

.sp-search-results.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sp-search-results::-webkit-scrollbar {
  width: 4px;
}
.sp-search-results::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.sp-search-result-header {
  padding: 10px 16px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.sp-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition-fast);
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  animation: searchItemIn 0.15s ease both;
}

@keyframes searchItemIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sp-search-result-item:last-child {
  border-bottom: none;
}

.sp-search-result-item:hover,
.sp-search-result-item.highlighted {
  background: var(--bg-light);
}

.sp-search-result-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-light);
}

.sp-search-result-info {
  flex: 1;
  min-width: 0;
}

.sp-search-result-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.sp-search-result-name mark {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}

.sp-search-result-cat {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.sp-search-result-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.sp-search-no-results {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.sp-search-no-results span {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.sp-search-loading {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.sp-search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sp-search-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.sp-search-footer a {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sp-search-footer a:hover {
  color: var(--primary-dark);
}

@media (max-width: 640px) {
  .sp-search-results {
    border-radius: var(--radius);
  }
  .sp-search-result-item {
    padding: 9px 14px;
    gap: 10px;
  }
  .sp-search-result-img {
    width: 38px;
    height: 38px;
  }
  .sp-search-result-name {
    font-size: 12px;
  }
  .sp-search-result-price {
    font-size: 12px;
  }
}

/* ============================================================
   SECTION HEADERS (Jarir-style)
   ============================================================ */
.sp-section-header {
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sp-section-header h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  position: relative;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sp-section-header h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin-top: 6px;
}

.sp-section-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.sp-section-header .sp-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 100px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sp-section-header .sp-view-all:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ============================================================
   CATEGORY SECTION (Jarir-style grid)
   ============================================================ */
.sp-categories-section {
  padding: 40px var(--side-pad) 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.sp-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.sp-category-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px 12px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
}

.sp-category-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.sp-category-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid rgba(37, 99, 235, 0.1);
  transition: all var(--transition);
}

.sp-category-card:hover .sp-category-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08);
}

.sp-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-category-icon span {
  font-size: 32px;
}

.sp-category-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sp-category-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .sp-categories-section {
    padding: 28px 16px 24px;
  }
  .sp-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }
  .sp-category-card {
    padding: 16px 10px 14px;
    border-radius: var(--radius-lg);
  }
  .sp-category-icon {
    width: 60px;
    height: 60px;
  }
  .sp-category-icon span {
    font-size: 26px;
  }
  .sp-category-title {
    font-size: 12px;
  }
  .sp-category-count {
    font-size: 10px;
  }
}

/* ============================================================
   BRANDS SECTION (Jarir-style grayscale effect)
   ============================================================ */
.sp-brands-section {
  padding: 40px var(--side-pad) 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  margin-top: 8px;
  margin-bottom: 8px;
}

.sp-brand-slider-wrap {
  position: relative;
  overflow: hidden;
}

.sp-brand-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  align-items: center;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
}

.sp-brand-slider::-webkit-scrollbar {
  display: none;
}

.sp-brand-slider .sp-brand-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  text-decoration: none;
  min-width: 120px;
  scroll-snap-align: start;
}

.sp-brand-slider .sp-brand-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.sp-brand-slider .sp-brand-card img {
  height: 50px;
  width: auto;
  max-width: 120px;
  filter: grayscale(100%);
  transition: all 0.35s ease;
  opacity: 0.6;
}

.sp-brand-slider .sp-brand-card:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.sp-brand-slider .sp-brand-card-span {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  cursor: default;
}

.sp-brand-slider .sp-brand-card-span img {
  height: 50px;
  width: auto;
  max-width: 120px;
  filter: grayscale(100%);
  opacity: 0.6;
}

/* ============================================================
   SLIDER CONTROLS (shared)
   ============================================================ */
.sp-slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.sp-slider-controls .sp-slider-prev,
.sp-slider-controls .sp-slider-next {
  background: var(--primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.sp-slider-controls .sp-slider-prev:hover,
.sp-slider-controls .sp-slider-next:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}

@media (max-width: 768px) {
  .sp-brands-section {
    padding: 28px 16px 24px;
    border-radius: var(--radius-lg);
  }
  .sp-brand-slider .sp-brand-card {
    padding: 12px 18px;
    min-width: 100px;
  }
  .sp-brand-slider .sp-brand-card img {
    height: 40px;
    max-width: 100px;
  }
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.sp-products-section {
  padding: 40px var(--side-pad) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: visible;
}

.sp-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 40px;
  align-items: stretch;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .sp-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .sp-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .sp-products-section {
    padding: 28px 14px 36px;
  }
  .sp-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ============================================================
   PRODUCT CARDS (Premium, Jarir-inspired)
   ============================================================ */
.sp-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid var(--border-light);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
}

.sp-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-light);
}

.sp-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-card:hover .sp-img-box img {
  transform: scale(1.06);
}

.sp-card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sp-card-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  width: fit-content;
}

.sp-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text-primary);
  word-break: break-word;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sp-card-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sp-card-body h3 a:hover {
  color: var(--primary);
}

.sp-price-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.sp-old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.sp-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.sp-stock-info {
  font-size: 12px;
  margin: 4px 0 8px;
  font-weight: 600;
  display: inline-block;
}

.sp-stock-info.in-stock {
  color: #10b981;
}

.sp-stock-info.out-of-stock {
  color: #b91c1c;
  font-weight: 800;
  background: #fee2e2;
  padding: 4px 12px;
  border-radius: 40px;
  display: inline-block;
}

.sp-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  width: 100%;
}

.sp-btn-add,
.sp-btn-buy {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sp-btn-add {
  background: var(--primary);
  color: white;
  border: none;
}

.sp-btn-add:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sp-btn-buy {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  text-decoration: none;
}

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

.sp-product-label {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 100px;
  line-height: 1.4;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.sp-discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

/* Out of stock */
.sp-card.out-of-stock-card {
  opacity: 0.8;
  background: #f9fafb;
  border-color: #fee2e2;
}

.sp-card.out-of-stock-card .sp-img-box img {
  filter: grayscale(0.4);
}

.sp-card.out-of-stock-card .sp-stock-info {
  background: #fee2e2;
  color: #b91c1c;
}

.sp-card.out-of-stock-card .sp-card-actions {
  display: none !important;
}

/* ── Coming Soon ── */
.sp-coming-soon {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--border-medium);
}

.cs-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.sp-coming-soon h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sp-coming-soon p {
  color: var(--text-muted);
}

/* ── Notice ── */
.sp-notice {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d;
  padding: 14px 22px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #92400e;
  margin-top: 20px;
}

/* ── Mobile Product Card ── */
@media (max-width: 768px) {
  .sp-card {
    border-radius: var(--radius-lg);
  }
  .sp-img-box {
    aspect-ratio: 4 / 3 !important;
  }
  .sp-card-body {
    padding: 10px 10px 12px !important;
  }
  .sp-card-category {
    font-size: 8px !important;
    padding: 2px 8px !important;
    margin-bottom: 4px !important;
  }
  .sp-card-body h3 {
    font-size: 12px !important;
    margin: 0 0 5px !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sp-price-group {
    gap: 4px !important;
    margin: 0 0 6px !important;
  }
  .sp-price {
    font-size: 15px !important;
  }
  .sp-old-price {
    font-size: 10px !important;
  }
  .sp-stock-info {
    font-size: 9px !important;
    padding: 2px 8px !important;
  }
  .sp-card-actions {
    gap: 5px !important;
  }
  .sp-btn-add,
  .sp-btn-buy {
    padding: 7px 6px !important;
    font-size: 10px !important;
  }
  .sp-discount-badge {
    font-size: 9px !important;
    padding: 3px 6px !important;
    top: 5px !important;
    right: 5px !important;
  }
  .sp-product-label {
    font-size: 8px !important;
    padding: 3px 8px !important;
    top: 6px !important;
    left: 6px !important;
  }
}

/* ============================================================
   DYNAMIC SECTIONS
   ============================================================ */
.sp-dynamic-section {
  padding: 40px var(--side-pad) 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.sp-product-slider-wrap {
  position: relative;
  overflow: hidden;
}

.sp-product-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
}

.sp-product-slider::-webkit-scrollbar {
  display: none;
}

.sp-product-slider .sp-card {
  min-width: 240px;
  max-width: 260px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .sp-dynamic-section {
    padding: 28px 16px 24px;
  }
  .sp-product-slider .sp-card {
    min-width: 195px;
    max-width: 210px;
  }
}

/* ============================================================
   PROJECTS SECTION (Jarir-inspired)
   ============================================================ */
.sp-projects {
  background: linear-gradient(150deg, #0a0f20 0%, #0f172a 50%, #0c1530 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.sp-projects::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sp-projects::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.sp-projects-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  position: relative;
  z-index: 1;
}

.sp-projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.sp-projects-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sp-projects-sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.sp-view-all {
  padding: 9px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sp-view-all:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.sp-proj-slider-wrap {
  position: relative;
  overflow: hidden;
}

.sp-proj-slider {
  display: flex;
  gap: 22px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-project-card {
  min-width: 310px;
  width: 310px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
}

.sp-project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.sp-project-img {
  height: 180px;
  overflow: hidden;
}

.sp-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sp-project-card:hover .sp-project-img img {
  transform: scale(1.07);
}

.sp-project-body {
  padding: 18px 20px 20px;
}

.sp-project-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(6, 182, 212, 0.12);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.sp-project-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.sp-project-body p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  margin-bottom: 10px;
}

.sp-project-meta {
  display: flex;
  gap: 12px;
}

.sp-project-meta span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.sp-proj-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.sp-proj-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-proj-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.sp-proj-dots {
  display: flex;
  gap: 8px;
}

.sp-proj-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sp-proj-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.sp-no-projects {
  text-align: center;
  padding: 60px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .sp-projects {
    padding: 44px 0;
  }
  .sp-project-card {
    min-width: 270px;
    width: 270px;
  }
  .sp-proj-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .sp-projects-inner {
    padding: 0 16px;
  }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.sp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.sp-pagination a,
.sp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sp-pagination a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.sp-pagination span.current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.sp-pagination span.dots {
  border: none;
  background: transparent;
  color: var(--text-muted);
  min-width: auto;
}

/* ============================================================
   FOOTER (KEEP DARK THEME)
   ============================================================ */
.sp-footer {
  background: linear-gradient(160deg, #050a17 0%, #0a0f20 100%);
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px var(--side-pad) 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-footer-brand {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sp-footer-brand span {
  color: var(--primary-light);
}

.sp-footer-tagline {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.sp-footer-phone {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.sp-footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 18px;
}

.sp-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sp-footer-links a:hover {
  color: var(--primary-light);
}

.sp-footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--side-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .sp-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    padding: 40px 20px 28px;
  }
  .sp-footer-links {
    align-items: center;
  }
  .sp-footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 18px 20px;
  }
}

/* ============================================================
   TOAST
   ============================================================ */
.sp-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 13px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  box-shadow: var(--shadow-xl);
}

.sp-toast::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

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

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ============================================================
   RIPPLE EFFECT
   ============================================================ */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================================
   CART BADGE
   ============================================================ */
.cart-badge {
  background: #ef4444;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 10px;
  margin-left: 5px;
  display: inline-block;
  min-width: 18px;
  text-align: center;
}

/* ============================================================
   STAGGERED CARD ANIMATIONS
   ============================================================ */
.sp-products-grid .sp-card {
  animation: cardFadeUp 0.4s ease both;
}

.sp-products-grid .sp-card:nth-child(1) {
  animation-delay: 0.05s;
}
.sp-products-grid .sp-card:nth-child(2) {
  animation-delay: 0.10s;
}
.sp-products-grid .sp-card:nth-child(3) {
  animation-delay: 0.15s;
}
.sp-products-grid .sp-card:nth-child(4) {
  animation-delay: 0.20s;
}
.sp-products-grid .sp-card:nth-child(5) {
  animation-delay: 0.25s;
}
.sp-products-grid .sp-card:nth-child(6) {
  animation-delay: 0.30s;
}
.sp-products-grid .sp-card:nth-child(7) {
  animation-delay: 0.35s;
}
.sp-products-grid .sp-card:nth-child(8) {
  animation-delay: 0.40s;
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   DROPDOWN EXPANDABLE (desktop)
   ============================================================ */
.sp-cat-parent-wrapper {
  position: relative;
}

.sp-cat-parent-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.sp-cat-parent-link:hover {
  background: #eff6ff;
  color: #2563eb;
}

.sp-cat-toggle {
  margin-left: auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease;
  color: #64748b;
  border-radius: 4px;
  flex-shrink: 0;
  background: none;
}

.sp-cat-toggle:hover {
  background: #e2e8f0;
  color: #2563eb;
}

.sp-cat-toggle.open {
  transform: rotate(45deg);
}

.sp-subcat-list {
  display: none;
  padding-left: 12px;
}

.sp-subcat-list.open {
  display: block;
}

.sp-subcat-list a {
  padding-left: 36px !important;
  font-size: 12px !important;
  color: #475569;
  font-weight: 500;
}

.sp-subcat-list a:hover {
  color: #2563eb;
  background: #eff6ff;
}