
/* Global Styles */
/*

:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #f1f5f9;
  --accent-color: #ef4444;
  --dark-color: #1e293b;
  --text-color: #334155;
  --light-text: #64748b;
  --light-gray: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}
*/
:root {
  --primary-color: #ec1f11d6;
  --primary-dark: #14131381;
  --secondary-color: #f1f5f9;
  --accent-color: #ef4444;
  --dark-color: #1e293b;
  --text-color: #334155;
  --light-text: #64748b;
  --light-gray: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.secondary-btn {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.secondary-btn:hover {
  background-color: var(--light-gray);
}

.section-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: linear-gradient(
    90deg,
    rgba(236, 31, 17, 0.08),
    rgba(236, 31, 17, 0.02)
  );

  padding: 1rem 1.5rem;
  border-bottom: 3px solid var(--primary-color);
  border-left: 5px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.section-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 120px;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
}

.section-title {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--dark-color);
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.section-title::after {
  content: "";
  display: block;
  width: 50%;
  height: 3px;
  margin-top: 0.3rem;
  background: linear-gradient(
    to right,
    var(--primary-color),
    transparent
  );
  border-radius: 10px;
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  height: 45px;
  width: 160px; /* Reserves space for the logo next to the search bar */
  position: relative;
  display: flex;
  align-items: center;
}

.logo-img {
  position: absolute;
  height: 140px; /* Reduced by 5% */
  width: auto;
  left: -15px; /* Adjust left alignment */
  top:60%;
  transform: translateY(-50%); /* Perfectly centers it vertically */
  max-width: none;
}

.search-bar {
  display: flex;
  flex: 1;
  max-width: 500px;
  margin: 0 2rem;
}

.search-bar input {
  flex: 1;
  border: 1px solid var(--light-gray);
  border-right: none;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem 0 0 0.375rem;
  outline: none;
}

.search-bar button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0 1rem;
  border-radius: 0 0.375rem 0.375rem 0;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:has(.cart-count) {
  padding-right: 1.4rem;
}

.mobile-nav-close,
.mobile-nav-divider,
.mobile-nav-header,
.mobile-categories-list,
.mobile-categories-wrapper,
.nav-overlay {
  display: none;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

.cart-count {
  position: absolute;
  top: -0.65rem;
  right: -0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  padding: 0 0.32rem;
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
}

.dropdown-toggle i {
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  border-radius: 0.375rem;
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
}

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

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover {
  background-color: var(--secondary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 2px 0;
  transition: var(--transition);
}

/* Hero Split Section Styles (Jumia Layout) */
.hero-split {
  padding: 2rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr 250px;
  gap: 1rem;
  height: 400px;
}

.hero-sidebar {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.sidebar-menu-container {
  height: 100%;
  overflow-y: auto;
  padding: 1rem 0;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.sidebar-menu-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.scroll-arrow {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15); /* Very low opacity */
  color: var(--primary-color);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.1);
}

.scroll-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.scroll-arrow.up-arrow {
  top: 0;
  align-items: flex-start;
  padding-top: 8px;
  border-radius: 0.5rem 0.5rem 0 0;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.scroll-arrow.down-arrow {
  bottom: 0;
  align-items: flex-end;
  padding-bottom: 8px;
  border-radius: 0 0 0.5rem 0.5rem;
  -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
  mask-image: linear-gradient(to top, black 40%, transparent 100%);
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  color: var(--text-color);
  font-size: 0.9rem;
  transition: var(--transition);
}

.sidebar-menu li a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: var(--primary-color);
}

.sidebar-menu li a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding-left: 2rem;
}

.hero-main-slider {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  height: 100%;
}

.hero-main-slider .hero-slider {
  height: 100%;
  box-shadow: none;
  border-radius: 0;
}

.slide-full-img {
  padding: 0;
  display: none;
  height: 100%;
}

.slide-full-img.active {
  display: block;
}

.slide-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-banners {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-banner {
  flex: 1;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  height: calc(50% - 0.5rem);
}

.side-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.side-banner:hover img {
  transform: scale(1.05);
}

/* New Info Banner Styles */
.info-banner {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 1rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-gray);
}
.info-row:last-child {
  border-bottom: none;
}

.info-row i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 40px;
  text-align: center;
}

.info-text {
  display: flex;
  flex-direction: column;
}

.info-title {
  font-weight: 700;
  color: var(--dark-color);
  font-size: 0.95rem;
}

.info-phone {
  color: var(--light-text);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 2px;
}

/* Shivering Phone Icon Animation */
@keyframes shiver-interval {
  0%, 80%, 100% { transform: rotate(0deg); }
  82% { transform: rotate(15deg); }
  84% { transform: rotate(-15deg); }
  86% { transform: rotate(15deg); }
  88% { transform: rotate(-15deg); }
  90% { transform: rotate(0deg); }
}

.shiver-icon {
  animation: shiver-interval 3s ease-in-out infinite;
  display: inline-block;
  transform-origin: center;
}

/* Shop Now Blink Banner */
.shop-now-banner {
  background-color: #ef4444 !important; /* Tailwind Red 500 */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.shop-now-banner:hover {
  transform: scale(1.02);
}

.shop-now-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@keyframes blink-smooth {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.blink-text {
  color: white;
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
  animation: blink-smooth 1.5s ease-in-out infinite;
}

/* Old Hero Section Styles */
.hero {
  padding: 2rem 0;
}

.hero-slider {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--white);
  height: 400px;
}

.slide {
  display: none;
  height: 100%;
  padding: 2rem 0 2rem 2rem;
}

.slide.active {
  display: flex;
}

.slide.slide-full-img {
  padding: 0;
}

.slide.slide-full-img.active {
  display: block;
}

.slide-full-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This force fits the image into the column perfectly */
}

.slide-content {
  flex: 1;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-content h2 {
  /* [STITCH PORT] Hero headlines use Space Grotesk with tighter tracking */
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
  padding-left: 50px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.slide-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--light-text);
  padding-left: 50px;
}

.slide-content .btn {
  width: 130px;
  margin-left: 50px;
}

.slide-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image-v {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image-v img{
  height: 400px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--white);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
}

.slider-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
}


/* Categories Section Styles
   [STITCH PORT] Upgraded to structured 5-column grid with circular
   icon containers and border-based card styling */
.categories {
  padding: 4rem 0;
}

.category-grid {
  display: grid;
  /* [STITCH PORT] Explicit 5-column layout matching Stitch design */
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

/* Flash Sales Styles */
.flash-sales {
  padding: 1.5rem 0;
  background-color: var(--secondary-color);
  /* border-bottom: 1px solid #e2e8f0; */
}

.flash-sales-banner {
  position: relative;
  width: 100%;
  margin: 0 auto 1.5rem;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15);
}

.banner-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  object-fit: cover;
  opacity: 0.55;
}

.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}

.flash-title-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.flash-title {
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  letter-spacing: 4px;
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
}

.flash-subtitle {
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.7rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  white-space: nowrap;
  opacity: 0.9;
}

.flash-timer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.timer-label {
  font-weight: 700;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.timer-units {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.timer-separator {
  font-weight: 800;
  color: rgba(255,255,255,0.6);
}

.unit {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  min-width: 36px;
  text-align: center;
}

.slider-wrapper {
  position: relative;
  margin: 0 -0.5rem;
}

.flash-sales-slider {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1.5rem 0.5rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.flash-sales-slider::-webkit-scrollbar {
  display: none;
}

.flash-sales-slider .product-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

.flash-sales-slider .skeleton-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
  background: #1e293b;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev { left: -10px; }
.slider-nav.next { right: -10px; }

/* Existing Styles ... */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  /* [STITCH PORT] Border-based card (replaces shadow-only) */
  border: 1px solid var(--light-gray);
  transition: all 0.3s ease;
  cursor: pointer;
  gap: 1rem;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.category-icon {
  /* [STITCH PORT] Circular icon container with tinted background */
  font-size: 1.75rem;
  color: var(--primary-color);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--secondary-color);
}

.category-card h3 {
  /* [STITCH PORT] Uppercase bold label style */
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-color);
}

/* Products Grid Styles */
.premium-products, .featured-products, .best-sellers, .clearing-stock {
  padding: 3rem 0;
  background-color: var(--secondary-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.product-card {
  /* [STITCH PORT] Border-based card with overflow hidden for image zoom */
  background-color: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  position: relative;
}

.product-card.search-highlight {
  outline: 3px solid rgba(236, 31, 17, 0.35);
  box-shadow: 0 0 0 6px rgba(236, 31, 17, 0.12), var(--shadow);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.product-image {
  /* [STITCH PORT] Square aspect ratio container with zoom on hover */
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background-color: var(--secondary-color);
  overflow: hidden;
}

/* [STITCH PORT] Product image zoom on card hover */
.product-image img {
  transition: transform 0.5s ease;
  max-height: 100%;
  object-fit: contain;
}

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

.product-info {
  padding: 0.6rem 0.75rem;
}

.product-category {
  color: var(--light-text);
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
}

.product-name {
  /* [STITCH PORT] Space Grotesk for product titles, 2-line clamp */
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--dark-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.6em;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
}

.stars {
  color: #fbbf24;
  margin-right: 0.35rem;
  font-size: 0.7rem;
}

.rating-count {
  color: var(--light-text);
  font-size: 0.75rem;
}

.product-price {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.current-price {
  /* [STITCH PORT] Price uses Space Grotesk, primary color for emphasis */
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.original-price {
  color: var(--light-text);
  text-decoration: line-through;
  font-size: 0.75rem;
}

.discount {
  /* [STITCH PORT] Solid primary badge matching Stitch discount tag */
  background-color: var(--primary-color);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: auto;
}

/* Stock Meter for Clearing Stock */
.stock-meter-container {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--light-gray);
}

.stock-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark-color);
}

.stock-count-text {
  color: #ef4444; /* Urgency Red */
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ef4444); /* Orange to Red gradient */
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

/* Dynamic Section Visibility */
#clearing-stock-section {
  display: none; /* Hidden by default */
}

.product-actions {
  display: flex;
  gap: 1rem;
}

.add-to-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.add-to-cart i {
  margin-right: 0.5rem;
}

.wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  background-color: var(--secondary-color);
  border: none;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.wishlist-btn:hover {
  background-color: var(--light-gray);
  color: var(--accent-color);
}

/* Newsletter Section Styles
   [STITCH PORT] More spacious layout, premium feel */
.newsletter {
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: var(--white);
}

.newsletter-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  /* [STITCH PORT] Space Grotesk for newsletter headline */
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsletter p {
  margin-bottom: 2rem;
  opacity: 0.85;
  font-size: 1.125rem;
}

.newsletter form {
  display: flex;
  gap: 0.75rem;
}

.newsletter input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  outline: none;
  font-size: 1rem;
}

.newsletter .btn {
  /* [STITCH PORT] White subscribe button on red background */
  background-color: var(--white);
  color: var(--primary-color);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.newsletter .btn:hover {
  background-color: var(--light-gray);
}

/* Footer Styles */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col p {
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  opacity: 0.7;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  /* [STITCH PORT] Slide-right animation on footer link hover */
  opacity: 1;
  color: var(--primary-color);
  transform: translateX(4px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  opacity: 0.7;
}

.payment-methods {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

/* Products Page Styles */
.products-section {
  padding: 1.5rem 0 3rem;
}

.products-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
  padding: 1.5rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(236, 31, 17, 0.95), rgba(15, 23, 42, 0.92));
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.products-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.products-hero h1 {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  line-height: 1.05;
}

.products-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumb {
  margin: 1.5rem 0;
  color: var(--light-text);
}

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

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

.products-layout {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.filters-sidebar {
  width: 300px;
  flex-shrink: 0;
  background-color: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  align-self: flex-start;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(236, 31, 17, 0.55) rgba(15, 23, 42, 0.08);
}

.filters-sidebar::-webkit-scrollbar {
  width: 8px;
}

.filters-sidebar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
  background: rgba(236, 31, 17, 0.55);
  border-radius: 999px;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.filters-header h3 {
  font-weight: 600;
}

.reset-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 500;
}

.filter-group {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 1.5rem;
}

.filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-option {
  display: flex;
  align-items: center;
}

.filter-option input[type="checkbox"] {
  margin-right: 0.5rem;
  cursor: pointer;
}

.filter-option label {
  cursor: pointer;
}

.filter-loading {
  color: var(--light-text);
  font-size: 0.9rem;
}

.price-slider {
  padding: 0;
}

.price-range-track {
  position: relative;
  height: 34px;
  margin: 0.1rem 0 0.9rem;
}

.price-range-track::before,
.price-range-fill {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 6px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.price-range-track::before {
  background: linear-gradient(90deg, rgba(236, 31, 17, 0.12), rgba(15, 23, 42, 0.1));
}

.price-range-fill {
  right: var(--price-fill-right, 0%);
  left: var(--price-fill-left, 0%);
  background: linear-gradient(90deg, var(--primary-color), #f59e0b);
  box-shadow: 0 8px 18px rgba(236, 31, 17, 0.16);
}

.price-range-track input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.price-range-track input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.price-range-track input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  pointer-events: auto;
}

.price-range-track input[type="range"]::-webkit-slider-runnable-track,
.price-range-track input[type="range"]::-moz-range-track {
  background: transparent;
  border: 0;
}

.price-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.price-range-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--light-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.price-range-fields input {
  width: 100%;
  min-width: 0;
  padding: 0.58rem 0.65rem;
  border: 1px solid var(--light-gray);
  border-radius: 0.45rem;
  color: var(--text-color);
  background: var(--white);
  font: inherit;
  outline: none;
}

.price-range-fields input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(236, 31, 17, 0.1);
}

.price-inputs {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-value {
  font-weight: 500;
}

.price-divider {
  margin: 0 0.5rem;
  color: var(--light-text);
}

.apply-filters-btn {
  width: 100%;
}

.products-content {
  flex: 1;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  background-color: var(--white);
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.products-count {
  font-weight: 500;
}

.products-count span {
  font-weight: 700;
  color: var(--primary-color);
}

.products-sort {
  display: flex;
  align-items: center;
}

.products-sort label {
  margin-right: 0.5rem;
}

.products-sort select {
  padding: 0.5rem;
  border: 1px solid var(--light-gray);
  border-radius: 0.375rem;
  outline: none;
}

.pagination {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.375rem;
  border: 1px solid var(--light-gray);
  background-color: var(--white);
  color: var(--text-color);
  cursor: pointer;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--secondary-color);
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-numbers a, .pagination-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.375rem;
  transition: var(--transition);
}

.pagination-numbers a {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
}

.pagination-numbers a:hover, .pagination-numbers a.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.58rem 0.85rem;
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  font-weight: 700;
  z-index: 50;
}

.mobile-filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.mobile-filter-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: min(68vh, 560px);
  background-color: var(--white);
  border-top-left-radius: 0.85rem;
  border-top-right-radius: 0.85rem;
  padding: 1rem;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.mobile-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.mobile-filter-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.close-filter-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-color);
  cursor: pointer;
}

.mobile-filter-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 0 0;
  display: flex;
  gap: 0.65rem;
  background-color: var(--white);
}

.mobile-filter-footer button {
  flex: 1;
  padding: 0.62rem 0.8rem;
  font-size: 0.86rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .filters-sidebar {
    width: 250px;
  }
  
  .slide-content h2 {
    font-size: 2rem;
  }

  .hero-grid {
    grid-template-columns: 220px 1fr;
  }

  .hero-side-banners {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-content {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 60px;
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem 0;
  }
  
  .logo {
    display: none;
  }
  
  .search-bar {
    order: 0;
    margin: 0;
    max-width: none;
    width: 100%;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
  }

  .search-bar input {
    min-width: 0;
  }
  
  .hamburger {
    display: flex;
    order: 0;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav {
    order: 0;
    grid-column: 1;
    grid-row: 1;
    width: 0;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 1rem 0 2rem;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    width: 100%;
    margin: 0;
    list-style: none;
  }
  
  .nav-links > li > a {
    display: flex;
    position: relative;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
    text-decoration: none;
  }

  .nav-links > li > a i {
    width: 22px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
  }

  .nav-links > li > a:has(.cart-count) {
    padding-right: 3rem;
  }

  .nav-links > li > a .cart-count {
    top: 50%;
    right: 1.35rem;
    transform: translateY(-50%);
  }

  /* Close Button */
  .mobile-nav-close {
    display: flex !important;
    justify-content: flex-end;
    padding: 0.25rem 1rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .mobile-nav-close button {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

  .mobile-nav-close button:hover {
    background: var(--secondary-color);
    color: #1e293b;
  }

  /* Mobile Categories in Menu */
  .mobile-nav-divider {
    display: block !important;
    height: 8px;
    background: var(--secondary-color);
    width: 100%;
    margin: 0.75rem 0;
    border: none;
  }

  .mobile-nav-header {
    display: block !important;
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
  }

  .mobile-categories-wrapper {
    display: block !important;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .mobile-categories-list {
    display: flex !important;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-categories-list li {
    list-style: none;
    width: 100%;
  }

  .mobile-categories-list li a {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem !important;
    font-weight: 400;
    font-size: 0.95rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
  }

  .mobile-categories-list li a i {
    width: 22px;
    text-align: center;
    color: var(--primary-color);
    margin-right: 0;
    font-size: 0.95rem;
  }

  .mobile-categories-list li a:hover {
    background-color: var(--secondary-color);
    padding-left: 1.5rem !important;
  }

  /* Dark Overlay - real DOM element */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Flash Sales Mobile Optimization - Slim & Single Row */
  .flash-sales {
    background-color: var(--secondary-color);
    padding: 1rem 0;
  }

  .flash-sales-banner {
    max-width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0;
    border-radius: 8px;
    margin: 0 auto 1rem;
  }

  .banner-content {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .flash-title-group {
    gap: 0.4rem;
  }

  .flash-title {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }

  .flash-subtitle {
    display: none;
  }

  .flash-timer {
    padding: 0.3rem 0.5rem;
    gap: 0.35rem;
    border-radius: 6px;
  }

  .timer-label {
    display: none;
  }

  .timer-units {
    font-size: 0.85rem;
    gap: 0.2rem;
  }

  .unit {
    min-width: 24px;
    padding: 0.15rem 0.2rem;
    border-radius: 4px;
    font-size: 0.85rem;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .slide {
    flex-direction: column;
    padding: 1rem 1rem 3.5rem;
  }

  .hero-slider {
    height: auto;
  }
  
  .slide-content {
    padding-right: 0;
    text-align: center;
    order: 2;
  }

  .slide-content h2 {
    font-size: 1.25rem;
    padding-left: 0;
  }

  .slide-content p {
    font-size: 0.925rem;
    padding-left: 0;
  }

  .slide-content .btn {
    margin: 0 auto;
  }
  
  .slide-image {
    order: 1;
    margin-bottom: 1rem;
  }

  .slide-image-v {
    order: 1;
    margin-bottom: 1rem;
  }

  .slide-image-v img {
    height: auto;
    max-height: 300px;
    object-fit: contain;
  }
  
  .products-layout {
    flex-direction: column;
  }

  .products-hero {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 0.75rem;
    padding: 1.1rem;
  }

  .products-hero h1 {
    font-size: 1.55rem;
  }

  .filters-sidebar {
    display: none;
  }
  
  .mobile-filter-btn {
    display: block;
  }

  .mobile-filter-content .filters-sidebar {
    display: block;
    width: 100%;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    position: static;
    overflow: visible;
  }

  .mobile-filter-content .filters-header {
    display: none;
  }

  .mobile-filter-content .filter-group {
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .mobile-filter-content .filter-group h4 {
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
  }

  .mobile-filter-content .filter-options {
    gap: 0.45rem;
  }

  .mobile-filter-content .filter-option {
    font-size: 0.86rem;
  }

  .mobile-filter-content .price-range-track {
    height: 28px;
    margin-bottom: 0.55rem;
  }

  .mobile-filter-content .price-range-fields {
    gap: 0.5rem;
    margin-bottom: 0.55rem;
  }

  .mobile-filter-content .price-range-fields input {
    padding: 0.48rem 0.55rem;
    font-size: 0.86rem;
  }
  
  .mobile-filter-overlay.active {
    display: block;
  }
  
  .mobile-filter-overlay.active .mobile-filter-container {
    transform: translateY(0);
  }
  
  .products-header {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .products-sort {
    justify-content: space-between;
    width: 100%;
  }

  .products-sort select {
    min-width: 0;
    flex: 1;
  }

  /* [STITCH PORT] 3-column category grid on tablet */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .hero-sidebar, .hero-side-banners {
    display: none;
  }

  .hero-main-slider {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .newsletter form {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .product-image {
    height: 150px;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .wishlist-btn {
    width: 100%;
  }
}

/* =========================================
   Skeleton Loader (Jumia Style)
   ========================================= */
.skeleton-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--light-gray);
  height: 100%;
}

.skeleton-image {
  background-color: #e5e7eb;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

/* Original Shimmer Animation */
.skeleton-shimmer::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: skeleton-shimmer 1.5s infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes skeleton-shimmer {
  100% { left: 100%; }
}

/* White Circle Container */
.skeleton-circle {
  width: 45px;
  height: 45px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Grey Logo using CSS Mask */
.skeleton-logo {
  width: 65%; /* Size of logo relative to the white circle */
  height: 65%;
  background-color: #d1d5db; /* Lighter grey color for the logo */
  -webkit-mask: url('../images/img/logo.png') center / contain no-repeat;
  mask: url('../images/img/logo.png') center / contain no-repeat;
}

/* Skeleton Text Lines */
.skeleton-text-container {
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-line {
  height: 12px;
  background-color: #e5e7eb;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* ========================================
   THEME TOGGLE — Pill Switch
   ======================================== */
.theme-toggle-pill {
  position: relative;
  display: flex;
  align-items: center;
  width: 68px;
  height: 34px;
  background: var(--secondary-color);
  border: 1.5px solid var(--light-gray);
  border-radius: 50px;
  cursor: pointer;
  margin-left: 1rem;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.theme-pill-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.theme-pill-icon {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  pointer-events: none;
}

/* Light mode: sun is active (highlighted) */
.theme-pill-sun {
  color: #f59e0b;
}

.theme-pill-moon {
  color: #94a3b8;
}

/* Dark mode: slider moves right, moon is active */
[data-theme="dark"] .theme-toggle-pill {
  background: #1e293b;
  border-color: #475569;
}

[data-theme="dark"] .theme-pill-slider {
  left: calc(100% - 29px);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-pill-sun {
  color: #475569;
}

[data-theme="dark"] .theme-pill-moon {
  color: #818cf8;
}

/* -- Mobile Theme Toggle (fixed position) -- */
@media (max-width: 768px) {
  .theme-toggle-pill {
    position: relative;
    top: auto;
    right: auto;
    order: 0;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    z-index: 1;
    width: 60px;
    height: 30px;
    margin-left: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .theme-pill-slider {
    width: 22px;
    height: 22px;
    top: 3px;
    left: 3px;
  }

  [data-theme="dark"] .theme-pill-slider {
    left: calc(100% - 25px);
  }

  .theme-pill-icon {
    font-size: 0.75rem;
  }
}

/* ========================================
   DARK MODE — Variable Overrides
   ======================================== */
[data-theme="dark"] {
  --secondary-color: #0f172a;
  --dark-color: #f1f5f9;
  --text-color: #cbd5e1;
  --light-text: #94a3b8;
  --light-gray: #334155;
  --white: #1e293b;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -1px rgba(0, 0, 0, 0.25);
}

/* -- Header -- */
[data-theme="dark"] header {
  background-color: #0f172a;
  border-bottom: 1px solid #1e293b;
}

[data-theme="dark"] .search-bar input {
  background-color: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .search-bar input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .nav-links a {
  color: #cbd5e1;
}

/* -- Hamburger -- */
[data-theme="dark"] .hamburger span {
  background-color: #cbd5e1;
}

/* -- Hero Sidebar -- */
[data-theme="dark"] .hero-sidebar {
  background: #1e293b;
}

[data-theme="dark"] .sidebar-menu li a {
  color: #cbd5e1;
}

[data-theme="dark"] .sidebar-menu li a:hover {
  background-color: #0f172a;
  color: var(--primary-color);
}

[data-theme="dark"] .scroll-arrow {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(16px);
}

/* -- Hero Side Banners -- */
[data-theme="dark"] .side-banner {
  background: #1e293b;
}

/* -- Product Cards -- */
[data-theme="dark"] .product-card {
  background-color: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .product-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .product-image {
  background-color: #0f172a;
}

[data-theme="dark"] .product-name {
  color: #e2e8f0;
}

[data-theme="dark"] .product-category {
  color: #94a3b8;
}

[data-theme="dark"] .original-price {
  color: #64748b;
}

/* -- Section Headers -- */
[data-theme="dark"] .section-title {
  color: #f1f5f9;
}

/* -- Stock Meter -- */
[data-theme="dark"] .stock-meter-container {
  border-top-color: #334155;
}

[data-theme="dark"] .stock-label {
  color: #e2e8f0;
}

[data-theme="dark"] .progress-bar-bg {
  background-color: #334155;
}

/* -- Add to Cart & Wishlist Buttons -- */
[data-theme="dark"] .add-to-cart {
  background-color: var(--primary-color);
  color: #ffffff;
}

[data-theme="dark"] .wishlist-btn {
  background-color: #0f172a;
  color: #cbd5e1;
  border: 1px solid #334155;
}

[data-theme="dark"] .wishlist-btn:hover {
  background-color: #334155;
}

/* -- Secondary Button -- */
[data-theme="dark"] .secondary-btn {
  background-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .secondary-btn:hover {
  background-color: #475569;
}

/* -- Flash Sales Banner -- */
[data-theme="dark"] .flash-sales-banner {
  border: 1px solid #334155;
}

/* -- Slider Nav Arrows -- */
[data-theme="dark"] .slider-nav {
  background: #1e293b;
  color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid #334155;
}

[data-theme="dark"] .slider-nav:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* -- Newsletter -- */
[data-theme="dark"] .newsletter input {
  background-color: #1e293b;
  color: #e2e8f0;
}

[data-theme="dark"] .newsletter input::placeholder {
  color: #64748b;
}

/* -- Footer -- */
[data-theme="dark"] footer {
  background-color: #020617;
  border-top: 1px solid #1e293b;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: #1e293b;
}

/* -- Skeleton Loaders -- */
[data-theme="dark"] .skeleton-image {
  background-color: #334155;
}

[data-theme="dark"] .skeleton-circle {
  background-color: #475569;
}

[data-theme="dark"] .skeleton-logo {
  background-color: #64748b;
}

[data-theme="dark"] .skeleton-line {
  background-color: #334155;
}

[data-theme="dark"] .skeleton-shimmer::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
}

/* -- Mobile Sidebar (dark) -- */
[data-theme="dark"] .nav-links {
  background: #0f172a !important;
}

[data-theme="dark"] .nav-links > li > a {
  color: #cbd5e1;
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .mobile-nav-close button {
  color: #94a3b8;
}

[data-theme="dark"] .mobile-nav-close button:hover {
  background: #1e293b;
  color: #e2e8f0;
}

[data-theme="dark"] .mobile-nav-divider {
  background: #1e293b;
}

[data-theme="dark"] .mobile-categories-list li a {
  color: #94a3b8;
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .mobile-categories-list li a:hover {
  background-color: #1e293b;
}

/* -- Cart Count Badge (keep bright) -- */
[data-theme="dark"] .cart-count {
  background-color: var(--accent-color);
  color: #ffffff;
}

/* -- Breadcrumbs & Filter Sidebar (products page) -- */
[data-theme="dark"] .breadcrumb a {
  color: #94a3b8;
}

[data-theme="dark"] .filter-sidebar {
  background-color: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .filter-group h4 {
  color: #e2e8f0;
}

.empty-products-state {
  grid-column: 1 / -1;
  padding: 2rem;
  color: var(--text-muted, #64748b);
  background: rgba(15, 23, 42, 0.04);
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

[data-theme="dark"] .empty-products-state {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.2);
}

.cart-section {
  padding: 2rem 0 4rem;
}

.cart-loading,
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  text-align: center;
  color: var(--light-text);
}

.cart-loading i,
.cart-empty i {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 2.75rem;
}

.cart-empty h2 {
  margin-bottom: 0.65rem;
  color: var(--dark-color);
  font-size: 1.45rem;
}

.cart-empty p {
  margin-bottom: 1.5rem;
}

.cart-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

.cart-items,
.cart-summary {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.cart-items {
  overflow: hidden;
}

.cart-header,
.cart-item {
  display: grid;
  grid-template-columns: minmax(240px, 3fr) minmax(90px, 1fr) minmax(120px, 1fr) minmax(100px, 1fr);
  gap: 1rem;
  align-items: center;
}

.cart-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-color);
  font-weight: 700;
}

.cart-header > div:last-child,
.item-total {
  text-align: right;
}

.cart-item {
  padding: 1.25rem;
  border-bottom: 1px solid var(--light-gray);
}

.cart-item:last-child {
  border-bottom: 0;
}

.item-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.item-image {
  display: grid;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  place-items: center;
  padding: 0.45rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--light-gray);
  border-radius: 0.65rem;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-details {
  min-width: 0;
}

.item-details h3 {
  margin-bottom: 0.35rem;
  color: var(--dark-color);
  font-size: 1rem;
  font-weight: 700;
}

.item-details p {
  margin-bottom: 0.55rem;
  color: var(--light-text);
  font-size: 0.86rem;
}

.item-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.item-price,
.item-total {
  color: var(--dark-color);
  font-weight: 700;
}

.item-quantity {
  display: inline-flex;
  align-items: center;
  max-width: 124px;
  border: 1px solid var(--light-gray);
  border-radius: 999px;
  overflow: hidden;
}

.item-quantity .quantity-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
}

.item-quantity input {
  width: 46px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--text-color);
  text-align: center;
  font-weight: 700;
}

.cart-summary {
  position: sticky;
  top: 96px;
  padding: 1.35rem;
}

.summary-header {
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--light-gray);
  color: var(--dark-color);
  font-size: 1.15rem;
  font-weight: 800;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.summary-row {
  margin-bottom: 0.85rem;
}

.summary-label {
  color: var(--light-text);
}

.summary-value {
  color: var(--dark-color);
  font-weight: 700;
}

.summary-total {
  margin: 1.2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
  color: var(--dark-color);
  font-size: 1.18rem;
  font-weight: 800;
}

.checkout-btn {
  display: block;
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.95rem;
  text-align: center;
}

.continue-shopping {
  display: block;
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
}

[data-theme="dark"] .cart-items,
[data-theme="dark"] .cart-summary {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .cart-header,
[data-theme="dark"] .cart-item,
[data-theme="dark"] .summary-header,
[data-theme="dark"] .summary-total {
  border-color: #1e293b;
}

[data-theme="dark"] .cart-empty h2,
[data-theme="dark"] .item-details h3,
[data-theme="dark"] .item-price,
[data-theme="dark"] .item-total,
[data-theme="dark"] .summary-header,
[data-theme="dark"] .summary-value,
[data-theme="dark"] .summary-total {
  color: #e2e8f0;
}

[data-theme="dark"] .item-image {
  background: #111827;
  border-color: #1e293b;
}

[data-theme="dark"] .item-quantity {
  border-color: #334155;
}

@media (max-width: 992px) {
  .cart-container {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

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

  .cart-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .item-info {
    align-items: flex-start;
  }

  .item-price,
  .item-quantity,
  .item-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .item-price::before,
  .item-quantity::before,
  .item-total::before {
    color: var(--light-text);
    font-weight: 500;
  }

  .item-price::before {
    content: "Price";
  }

  .item-quantity::before {
    content: "Quantity";
  }

  .item-total::before {
    content: "Total";
  }

  .item-quantity {
    border: 0;
  }

  .item-quantity .quantity-btn,
  .item-quantity input {
    border: 1px solid var(--light-gray);
  }

  .item-quantity .quantity-btn:first-of-type {
    border-radius: 999px 0 0 999px;
  }

  .item-quantity .quantity-btn:last-of-type {
    border-radius: 0 999px 999px 0;
  }
}
