/* ==========================================================================
   LEISTUNG TECHNOLOGY — Premium Design System
   Color theme derived from logo: Red (#E31E24) + Dark Charcoal (#2B2B2B)
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary Palette */
  --primary:        #E31E24;
  --primary-dark:   #B81419;
  --primary-light:  #FF4D52;
  --primary-glow:   rgba(227, 30, 36, 0.35);

  /* Neutrals */
  --dark:           #1A1A1A;
  --dark-2:         #2B2B2B;
  --dark-3:         #3A3A3A;
  --gray:           #6B6B6B;
  --gray-light:     #A0A0A0;
  --light:          #F5F5F5;
  --white:          #FFFFFF;

  /* Accent */
  --accent-blue:    #2563EB;
  --accent-green:   #10B981;
  --accent-amber:   #F59E0B;

  /* Glass */
  --glass-bg:       rgba(255, 255, 255, 0.06);
  --glass-border:   rgba(255, 255, 255, 0.10);
  --glass-bg-light: rgba(255, 255, 255, 0.85);
  --glass-border-light: rgba(0, 0, 0, 0.08);

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.18);
  --shadow-glow:    0 0 30px var(--primary-glow);

  /* Typography */
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading:   'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --section-py:     100px;
  --container-max:  1280px;

  /* Transitions */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;

  /* Semantic Aliases (used by cart, product cards, etc.) */
  --accent:         #E31E24;
  --accent-dark:    #B81419;
  --bg-primary:     #FFFFFF;
  --bg-secondary:   #F5F5F5;
  --text-primary:   #1A1A1A;
  --text-secondary: #3A3A3A;
  --text-muted:     #6B6B6B;
  --border:         rgba(0, 0, 0, 0.10);
  --font-main:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-out);
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

button, input, textarea {
  font-family: var(--font-body);
  border: none;
  outline: none;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 620px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out);
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark-3);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--dark);
}

.btn-white:hover {
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.announcement-track {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.announcement-track span {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 50px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

/* ---------- Block Icons ---------- */
.block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

.block-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5px;
}

.bi-shipping { background: #FFB800; color: #fff; }
.bi-new      { background: #FF4D00; color: #fff; }
.bi-warranty { background: #3395FF; color: #fff; }
.bi-support  { background: #FF3366; color: #fff; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.navbar.scrolled .navbar-inner {
  height: 70px;
}

.navbar-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2rem;
  transition: height 0.3s var(--ease-out);
  position: relative;
  z-index: 2100; /* Extremely high to stay above sidebar overlay */
}

.navbar-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: auto;
  max-width: none;
}

.navbar-logo img {
  height: 64px;
  width: auto;
  max-width: none;
  object-fit: contain;
  transition: height 0.3s var(--ease-out);
}

.navbar.scrolled .navbar-logo img {
  height: 64px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.navbar-links a {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-2);
  position: relative;
  padding: 8px 0;
}

.navbar.scrolled .navbar-links a {
  color: var(--dark-2);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.35s var(--ease-out);
}

.navbar-links a:hover {
  color: var(--primary);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--dark-2);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: none;
  position: relative;
}

.navbar.scrolled .navbar-icon {
  color: var(--dark-2);
}

.navbar-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

.navbar-icon svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  padding: 10px; /* Increased for bubble padding */
  border: 1px solid var(--glass-border-light);
  background: var(--glass-bg-light);
  border-radius: 14px; /* Matching icons */
  z-index: 2000; /* Ensure it's above the mobile nav overlay */
  position: relative;
  transition: all 0.3s var(--ease-out);
}

.menu-toggle span {
  position: absolute;
  left: 6px;
  width: 28px;
  height: 3px;
  background: var(--dark-2);
  border-radius: 4px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center center;
}

.menu-toggle span:nth-child(1) {
  top: 11px;
}

.menu-toggle span:nth-child(2) {
  top: 18px;
}

.menu-toggle span:nth-child(3) {
  top: 25px;
}

.navbar.scrolled .menu-toggle span {
  background: var(--dark);
}

.menu-toggle.active span:nth-child(1) {
  top: 18px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 18px;
  transform: rotate(-45deg);
}

.menu-toggle.active {
  background: rgba(227, 30, 36, 0.1) !important;
  border-color: var(--primary) !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: flex !important;
}

.menu-toggle.active span {
  background: var(--primary) !important;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
}

/* Gradient-based hero visuals */
.hero-slide-bg.slide-1 {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(227, 30, 36, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 40%, #2B2B2B 100%);
}

.hero-slide-bg.slide-2 {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(227, 30, 36, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(16, 185, 129, 0.10) 0%, transparent 50%),
    linear-gradient(160deg, #1A1A1A 0%, #0F0F0F 50%, #2B2B2B 100%);
}

.hero-slide-bg.slide-3 {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(227, 30, 36, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #2B2B2B 0%, #1A1A1A 50%, #0F0F0F 100%);
}

/* Animated geometric shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border: 1px solid rgba(227, 30, 36, 0.15);
  border-radius: 50px;
  animation: float-shape 12s ease-in-out infinite;
  will-change: transform;
}

.hero-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -80px;
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 250px;
  height: 250px;
  bottom: 10%;
  left: -60px;
  border-color: rgba(255, 255, 255, 0.06);
  animation-delay: -4s;
  animation-duration: 15s;
}

.hero-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 20%;
  border-color: rgba(227, 30, 36, 0.10);
  animation-delay: -8s;
  animation-duration: 18s;
}

.hero-shape:nth-child(4) {
  width: 80px;
  height: 80px;
  bottom: 25%;
  right: 35%;
  background: rgba(227, 30, 36, 0.05);
  border: none;
  animation-delay: -2s;
}

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(20px, -30px) rotate(5deg); }
  50%      { transform: translate(-10px, 20px) rotate(-3deg); }
  75%      { transform: translate(15px, 10px) rotate(7deg); }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(132px, 14vh, 180px) 40px 88px;
}

.hero-text-block {
  width: 100%;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(227, 30, 36, 0.12);
  border: 1px solid rgba(227, 30, 36, 0.25);
  border-radius: 50px;
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: pulse-subtle 3s ease-in-out infinite;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

@keyframes pulse-subtle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227,30,36,0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(227,30,36,0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary);
  opacity: 0.3;
  border-radius: 4px;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat h3 span {
  color: var(--primary);
}

.hero-stat p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Hero slider indicators */
.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-indicator {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  cursor: pointer;
  transition: width 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
  border: none;
}

.hero-indicator.active {
  width: 60px;
  background: var(--primary);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Features Strip ---------- */
.features-strip {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.features-strip .container {
  overflow-x: visible;
}

.features-strip .trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.features-strip .trust-strip-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  min-height: 98px;
  animation: fade-in 0.6s ease-out;
}

.features-strip .trust-strip-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 30, 36, 0.15);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--primary);
  flex-shrink: 0;
}

.features-strip .trust-strip-icon svg {
  width: 19px;
  height: 19px;
}

.features-strip .trust-strip-text h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.features-strip .trust-strip-text p {
  font-size: 0.74rem;
  color: #A0A0A0;
  line-height: 1.2;
}

/* ---------- Products / Bestsellers ---------- */
.products-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  position: relative;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card-image {
  position: relative;
  padding: 0;
  background: var(--white);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image .product-visual {
  width: 100%;
  height: 100%;
  position: relative;
}

.product-card-image .product-visual img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  object-position: center;
}

.product-card:hover .product-visual img {
  transform: none;
}

/* ---------- Product Image Carousel ---------- */
.product-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.product-carousel-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s var(--ease-out);
}

.product-card:hover .product-carousel-slide img {
  transform: none;
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 1;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--dark);
  stroke-width: 2.5;
  fill: none;
}

.carousel-arrow:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.carousel-arrow:hover svg {
  stroke: #fff;
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

.product-card:hover .carousel-arrow {
  opacity: 1;
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.product-card:hover .product-visual {
  transform: none;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.35s var(--ease-out);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
}

.product-action-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.product-action-btn svg {
  width: 16px;
  height: 16px;
}

.product-card-info {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cart-row {
  order: 5;
  margin-top: 14px;
  padding-top: 0;
}

.product-features-grid {
  order: 5;
  margin-top: 15px;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.45;
  height: 4.35em; /* Precisely 3 lines of 1.45 line-height */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-features-grid {
  list-style: none;
  padding: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 15px;
  margin: 12px 0 20px;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.product-features-grid li {
  font-size: 0.8rem;
  color: #666;
  position: relative;
  padding-left: 20px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.product-features-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--accent-amber);
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.rating-count {
  font-size: 0.8rem;
  color: var(--gray-light);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}

.price-old {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-light);
  text-decoration: line-through;
}

.price-original {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}

.price-discount {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16,185,129,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ---------- Categories ---------- */
.categories-section {
  padding: var(--section-py) 0;
  background: var(--light);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 24px;
}

.category-card, a.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s var(--ease-out);
}

.category-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.category-card:nth-child(1) { grid-row: span 2; }

.category-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease-out);
}

.category-card:hover .category-bg {
  transform: scale(1.08);
}

/* Premium gradient backgrounds for categories */
.cat-stabilizer {
  background: url('../assets/categories/ac.png') no-repeat center/cover;
}

.cat-geyser {
  background: url('../assets/categories/mainline.png') no-repeat center/cover;
}

.cat-solar {
  background: url('../assets/categories/fridge.png') no-repeat center/cover;
}

.cat-inverter {
  background: url('../assets/categories/gp.png') no-repeat center/cover;
}

.cat-tv {
  background: url('../assets/categories/tv.png') no-repeat center/cover;
}

.cat-led {
  background: url('../assets/categories/led.png') no-repeat center/cover;
}

.cat-pump {
  background: url('../assets/categories/pump.png') no-repeat center/cover;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.65) 100%);
  z-index: 2;
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  z-index: 3;
  color: var(--white);
}

.category-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s var(--ease-out);
}

.category-icon svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.category-card:hover .category-icon {
  background: var(--primary);
  transform: scale(1.1);
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-count {
  font-size: 0.85rem;
  opacity: 0.7;
}

.category-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: all 0.4s var(--ease-out);
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.category-arrow svg {
  width: 18px;
  height: 18px;
}

/* ---------- Why Choose Us / Features ---------- */
.features-section {
  padding: var(--section-py) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(227,30,36,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.features-section .section-title {
  color: var(--white);
}

.features-section .section-subtitle {
  color: rgba(255,255,255,0.5);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(227,30,36,0.2);
  transform: translateY(-5px);
}

.feature-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(227, 30, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  transition: all 0.3s var(--ease-out);
}

.feature-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--primary);
  fill: none;
  filter: drop-shadow(0 4px 8px rgba(227,30,36,0.25));
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.feature-card:hover .feature-icon svg {
  stroke: var(--white);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ---------- Stats Counter ---------- */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,0,0,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.stat-divider {
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  margin: 12px auto 0;
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 28px;
  transition: transform 0.6s var(--ease-out);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 19px);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.4s var(--ease-out);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
  color: var(--accent-amber);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--gray-light);
}

.testimonial-quote-icon {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  color: rgba(227,30,36,0.08);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Testimonials navigation */
.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonials-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--dark-3);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}

.testimonials-nav button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.testimonials-nav button svg {
  width: 18px;
  height: 18px;
}

/* ---------- Blog / News ---------- */
.blog-section {
  padding: var(--section-py) 0;
  background: var(--light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s var(--ease-out);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-image .blog-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.blog-card:hover .blog-visual {
  transform: scale(1.08);
}

.blog-visual.blog-1 {
  background: linear-gradient(135deg, #1a1a2e, #e94560);
}

.blog-visual.blog-2 {
  background: linear-gradient(135deg, #2B2B2B, #E31E24);
}

.blog-visual.blog-3 {
  background: linear-gradient(135deg, #0f3460, #16213e);
}

.blog-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.blog-date-badge .day {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.blog-date-badge .month {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 2px;
}

.blog-card-content {
  padding: 26px;
}

.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(227, 30, 36, 0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 18px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s var(--ease-out);
}

.blog-read-more:hover {
  gap: 12px;
}

.blog-read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.blog-read-more:hover svg {
  transform: translateX(4px);
}

/* ---------- Newsletter CTA ---------- */
.newsletter-section {
  padding: var(--section-py) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(227,30,36,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.newsletter-content .section-title {
  color: var(--white);
}

.newsletter-content .section-subtitle {
  color: rgba(255,255,255,0.5);
  margin: 0 auto 36px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.newsletter-form input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.newsletter-form .btn {
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: #0D0D0D;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-top: 20px;
  max-width: 320px;
}

.footer-brand .navbar-logo img {
  height: 90px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s var(--ease-out);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-social a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column h4 svg {
  display: none;
}

.footer-column ul li {
  margin-bottom: 14px;
}

.footer-column ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-column ul li a::before {
  content: '';
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width 0.3s var(--ease-out);
}

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-column ul li a:hover::before {
  width: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 0.85rem;
}

.footer-payments {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-payments .pay-icon {
  padding: 4px 10px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-left {
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-right {
  opacity: 0;
  transform: translate3d(40px, 0, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-scale {
  opacity: 0;
  transform: scale3d(0.9, 0.9, 1);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.revealed > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.revealed > *:nth-child(10) { transition-delay: 0.5s; }
.stagger-children.revealed > *:nth-child(11) { transition-delay: 0.55s; }
.stagger-children.revealed > *:nth-child(12) { transition-delay: 0.6s; }
.stagger-children.revealed > *:nth-child(13) { transition-delay: 0.65s; }
.stagger-children.revealed > *:nth-child(14) { transition-delay: 0.7s; }
.stagger-children.revealed > *:nth-child(15) { transition-delay: 0.75s; }

.stagger-children.revealed > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Loading Screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo {
  height: 120px;
  animation: loader-pulse 1.5s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.95); }
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  animation: loader-progress 1.2s ease-in-out infinite;
}

@keyframes loader-progress {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------- Custom Cursor Dot (desktop) ---------- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s var(--ease-out);
  display: none;
}

@media (hover: hover) {
  .cursor-dot { display: block; }
}

/* ---------- Active Nav Link ---------- */
.navbar-links .active-link {
  color: var(--primary) !important;
}

.navbar-links .active-link::after {
  width: 100% !important;
}

/* ---------- Page Hero (Sub Pages) ---------- */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2B2B2B 50%, #1a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(227,30,36,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
}

.breadcrumbs a {
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: var(--primary-light);
}

.breadcrumbs span:last-child {
  color: var(--primary-light);
  font-weight: 600;
}

/* ---------- Product Filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
  padding: 10px 5px; /* Added padding to prevent shadow clipping */
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--light);
  color: var(--gray);
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  white-space: nowrap; /* Keep text on one line */
  transition: all 0.3s var(--ease-out);
}

.filter-btn:hover {
  background: rgba(227,30,36,0.06);
  color: var(--primary);
  border-color: rgba(227,30,36,0.15);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Sort Bar Styles */
.sort-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sort-container label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
}

.sort-select {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  padding-right: 8px;
  outline: none;
}

@media (max-width: 768px) {
  .sort-bar {
    margin-bottom: 24px;
  }
}

/* ---------- About Grid ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-title {
  text-align: left;
}

.about-text .section-subtitle {
  text-align: left;
}

/* ---------- Contact Grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s var(--ease-out);
  border: 1px solid transparent;
}

.contact-info-card:hover {
  background: var(--white);
  border-color: rgba(227,30,36,0.1);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-info-card .feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.contact-info-card .feature-title {
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-info-card .feature-text {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: var(--light);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--dark);
  font-family: var(--font-body);
  transition: all 0.3s var(--ease-out);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ---------- Genuine Reviews Section ---------- */
.generic-reviews-section {
  padding: var(--section-py) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.generic-reviews-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(227,30,36,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.generic-reviews-section .section-header {
  position: relative;
  z-index: 2;
}

.generic-reviews-section .section-title {
  color: var(--white);
}

.generic-reviews-section .section-subtitle {
  color: rgba(255,255,255,0.72);
}

.reviews-slider-wrapper {
  position: relative;
  margin-top: 60px;
  overflow: hidden;
}

.reviews-slider {
  position: relative;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 24px;
  animation: scroll-reviews 30s linear infinite;
  width: max-content;
}

.review-card {
  flex: 0 0 calc(25% - 18px);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.4s var(--ease-out);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(227,30,36,0.2);
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(227,30,36,0.15);
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.star {
  font-size: 1.3rem;
  color: var(--accent-amber);
}

.star.filled {
  color: var(--accent-amber);
}

.star.empty {
  color: rgba(255,255,255,0.1);
}

.review-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.review-title {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes scroll-reviews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-25% - 6px));
  }
}

/* Pause animation on hover */
.reviews-slider:hover .reviews-track {
  animation-play-state: paused;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Global: bolder SVG icons via CSS --- */
svg { stroke-width: 2.5; }

@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-strip .trust-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
  :root { --section-py: 80px; }

  .navbar-links { display: none; }
  .menu-toggle { display: flex; }

  /* Mobile menu overlay */
  .navbar-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    height: 100dvh;
    min-height: 100vh;
    background: var(--white);
    z-index: 1000; /* Lower than navbar's 2000 */
    justify-content: flex-start;
    align-items: flex-start;
    padding: 116px 0 20px;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 15px rgba(0,0,0,0.05);
    animation: slideInLeft 0.3s var(--ease-out) forwards;
  }

  @keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
  }

  .navbar-links.mobile-open a {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 24px;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-transform: uppercase;
  }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 16px;
  }

  .categories-grid .category-card:nth-child(1) {
    grid-row: auto;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }

  .testimonial-card { flex: 0 0 calc(50% - 14px); }

  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-stats { gap: 32px; }
  .hero-scroll { display: none; }
  .hero-content { padding: 124px 32px 76px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Mobile touch targets */
  .btn {
    min-height: 48px;
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .product-action-btn {
    width: 44px;
    height: 44px;
  }

  .product-action-btn svg {
    width: 18px;
    height: 18px;
  }

  .features-strip .trust-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root { --section-py: 60px; }

  /* Announcement bar */
  .announcement-bar { font-size: 0.78rem; }

  /* Hero */
  .hero-content { padding: 116px 24px 70px; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero-description { font-size: 1rem; line-height: 1.7; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn { width: 100%; min-height: 52px; font-size: 1rem; }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-stat {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .hero-stat h3 { font-size: 1.8rem; }
  .hero-stat p { margin-top: 0; font-size: 0.85rem; }

  .features-strip { padding: 44px 0; }
  .features-strip .trust-strip-grid { grid-template-columns: 1fr; gap: 12px; }
  .features-strip .trust-strip-card { min-height: 86px; padding: 14px 12px; }
  .features-strip .trust-strip-text h4 { font-size: 0.85rem; }
  .features-strip .trust-strip-text p { font-size: 0.76rem; }

  .feature-text h4 { font-size: 0.85rem; }
  .feature-text p { font-size: 0.75rem; }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 16px;
  }
  .product-card-info { padding: 14px 16px 18px; }
  .product-name { font-size: 0.9rem; }
  .product-category { font-size: 0.7rem; letter-spacing: 1px; }
  .price-current { font-size: 1rem; }
  .price-original { font-size: 0.78rem; }
  .price-discount { font-size: 0.7rem; padding: 2px 6px; }

  /* Product cart row on mobile */
  .product-cart-row { flex-direction: column; gap: 8px; }
  .add-to-cart-btn { width: 100%; min-height: 44px; font-size: 0.88rem; }
  .qty-control { width: 100%; justify-content: center; }
  .qty-btn { width: 36px; height: 36px; }
  .qty-input { width: 48px; height: 36px; font-size: 0.9rem; }

  /* Mobile Modal UI Conflict Fixes */
  .product-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 50%;
    z-index: 102; /* Above modal content */
  }

  .image-utility-btns {
    bottom: 10px;
    right: 10px;
    gap: 6px;
    z-index: 101;
  }
  
  .product-modal-top { flex-direction: column; }
  .product-modal-images { height: 320px; }
  .product-modal-info { padding: 24px 20px; }
  .spec-label { width: 100px; font-size: 0.82rem; }
  .spec-value { font-size: 0.82rem; }

  /* Categories */
  .categories-grid { grid-template-columns: 1fr; gap: 14px; }
  .categories-grid .category-card { min-height: 180px; }
  .category-info h3 { font-size: 1.3rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 28px 22px; }
  .feature-icon { width: 54px; height: 54px; font-size: 1.4rem; }
  .feature-title { font-size: 1rem; }
  .feature-text { font-size: 0.85rem; }

  /* Stats */
  .stat-number { font-size: 2.2rem; }
  .stat-label { font-size: 0.78rem; letter-spacing: 1px; }

  /* Testimonials */
  .testimonial-card { flex: 0 0 100%; padding: 28px 22px; }
  .testimonial-text { font-size: 0.95rem; }

  /* Reviews */
  .review-card {
    flex: 0 0 min(76vw, 420px);
    min-height: 0;
    height: auto;
    padding: 20px;
    display: block;
  }
  .review-text {
    flex: 0 0 auto;
    margin-bottom: 14px;
    line-height: 1.65;
  }
  @keyframes scroll-reviews-mobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * (min(76vw, 420px) + 24px))); }
  }
  .reviews-track { animation: scroll-reviews-mobile 24s linear infinite; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .blog-card-body { padding: 20px; }
  .blog-title { font-size: 1.05rem; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form .btn { width: 100%; min-height: 48px; }
  .newsletter-form input { padding: 14px 20px; font-size: 1rem; }

  /* Footer Accordion (Mobile) */
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  
  .footer-column { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .footer-column:last-of-type { border-bottom: none; }
  
  .footer-column h4 { 
    font-size: 1.05rem; 
    margin: 0; 
    padding: 18px 0;
    color: var(--primary, #E31E24);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  
  .footer-column h4 svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    stroke: var(--primary, #E31E24);
    display: block; /* Override desktop hidden */
  }
  
  .footer-column.active h4 svg { transform: rotate(180deg); }
  
  .footer-column ul {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s;
    opacity: 0;
  }
  
  .footer-column.active ul {
    max-height: 400px;
    padding-bottom: 18px;
    opacity: 1;
  }
  
  .footer-column ul li a { font-size: 0.95rem; padding: 6px 0; }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    margin-top: 16px;
    padding-top: 24px;
    border-top: none;
  }


  /* Page hero (subpages) */
  .page-hero { padding: 120px 0 40px; }
  .page-hero-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .page-hero-subtitle { font-size: 0.95rem; }

  /* Larger mobile logo */
  .navbar-inner { 
      height: 96px; 
    padding: 0 16px;
    border-radius: 0;
    max-width: 100%;
    backdrop-filter: none;
    background: var(--white);
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    justify-content: flex-end;
  }
  .navbar-inner .navbar-logo { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 46px;
    overflow: hidden;
    background: none; 
    padding: 0; 
    border: none; 
    box-shadow: none; 
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  .navbar-inner .navbar-logo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
  .navbar.scrolled .navbar-inner { height: 92px; }
  .navbar.scrolled .navbar-inner {
    background: var(--white);
  }
  .navbar.scrolled .navbar-logo img { width: 100%; height: 100%; }
  .navbar-actions {  
    background: none; 
    padding: 0; 
    border: none; 
    box-shadow: none; 
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 12px;
    justify-content: flex-end;
    z-index: 10;
    position: static;
  }
  .menu-toggle { 
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 16px 18px;
    font-size: 1rem;
    min-height: 48px;
  }
  .form-group label { font-size: 0.88rem; }
  .contact-info-card { padding: 24px 20px; }

  /* Filter buttons */
  .filter-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 -24px 30px;
    scroll-behavior: smooth;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    padding: 8px 18px;
    font-size: 0.82rem;
    min-height: 40px;
    flex: 0 0 auto;
  }

  /* Section headers */
  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .section-subtitle { font-size: 0.95rem; }
  .section-label { font-size: 0.72rem; letter-spacing: 2px; }
  
  /* Reduce gap between hero and products */
  .products-section { padding-top: 40px; }
}

@media (max-width: 576px) {
  .container { padding: 0 16px; }
  .navbar-inner { height: 92px; }
  .navbar-links.mobile-open { padding-top: 112px; }
  .navbar.scrolled .navbar-inner { height: 88px; }
  .navbar-inner .navbar-logo { width: 148px; height: 42px; }
  .navbar-logo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
  .navbar.scrolled .navbar-logo img { width: 100%; height: 100%; }
  .navbar-icon { width: 38px; height: 38px; border-radius: 10px; }
  .cart-count { width: 18px; height: 18px; font-size: 0.65rem; top: -5px; right: -5px; }

  /* Single column products */
  .products-grid { max-width: 100%; }
  .product-card-image { aspect-ratio: 4/3; padding: 24px; }

  /* Features Strip */
  .features-strip { padding: 40px 0; }
  .feature-text h4 { font-size: 0.8rem; }
  .feature-text p { font-size: 0.7rem; }

  /* Review Cards Mobile */
  .review-card { 
    flex: 0 0 min(88vw, 360px);
    min-height: 0;
    height: auto;
    padding: 18px;
    margin-bottom: 0;
    display: block;
  }
  .review-text {
    flex: 0 0 auto;
    margin-bottom: 12px;
    line-height: 1.6;
  }
  @keyframes scroll-reviews-small {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * (min(88vw, 360px) + 24px))); }
  }
  .reviews-track { 
    animation: scroll-reviews-small 20s linear infinite; 
    gap: 24px;
  }
  .review-text { font-size: 0.88rem; }
  .generic-reviews-section .section-header { margin-bottom: 40px; }

  /* Smaller section padding */
  :root { --section-py: 48px; }

  .hero-content { padding: 108px 20px 60px; }
  .hero-title { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .hero-description { font-size: 0.95rem; }
  .hero-stat h3 { font-size: 1.5rem; }

  /* Stats 2x2 tight */
  .stats-grid { gap: 24px; }
  .stat-number { font-size: 2rem; }

  /* Cart page */
  .cart-item { padding: 14px; gap: 12px; }
  .cart-item-icon { width: 48px; height: 48px; border-radius: 10px; }
  .cart-item-name { font-size: 0.88rem; }
  .cart-item-total { font-size: 0.95rem; min-width: 60px; }
  .cart-summary-box { padding: 20px; }
  .cart-summary-box h3 { font-size: 1.05rem; }

  /* About page */
  .about-visual { min-height: 280px; }

  /* Micro touch improvements */
  .testimonials-nav button { width: 44px; height: 44px; }
  .back-to-top { width: 44px; height: 44px; }
  .navbar-icon { width: 44px; height: 44px; }
  .navbar-icon svg { width: 22px; height: 22px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CART SYSTEM — Quantity Controls, Animations, Cart Page
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Quantity Controls on Product Cards */
.product-cart-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-primary);
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover { background: var(--bg-secondary); }

.qty-input {
  width: 38px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-main);
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-cart-btn {
  flex: 1;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.add-to-cart-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(227, 30, 36, 0.3);
}

.add-to-cart-btn.btn-added {
  background: var(--accent-green) !important;
  transform: scale(1.03);
}

/* Fly-to-Cart Dot Animation */
.fly-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  z-index: 10000;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cart icon pulse */
.cart-pulse {
  animation: cartBounce 0.4s ease;
}

@keyframes cartBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes slideOutRight {
  to { transform: translateX(100px); opacity: 0; }
}

/* ── Cart Page ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.cart-items-list { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s var(--ease-out);
}

.cart-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(227, 30, 36, 0.08);
}

.cart-item-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f5f0f0, #ede8e8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-details { flex: 1; min-width: 0; }

.cart-item-category {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-price .price-original {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-light);
  text-decoration: line-through;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cart-item-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 80px;
  text-align: right;
}

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
}

.cart-remove-btn:hover { color: var(--accent); background: rgba(227, 30, 36, 0.06); }

/* Cart Summary Box */
.cart-summary-box {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 100px;
}

.cart-summary-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
}

.summary-row.savings span:last-child {
  color: var(--accent-green);
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Empty Cart */
.cart-empty {
  text-align: center;
  padding: 80px 20px;
}

.cart-empty svg { margin-bottom: 24px; }
.cart-empty h2 { font-size: 1.5rem; margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }

@media (max-width: 992px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-box { position: static; }
}

@media (max-width: 768px) {
  .cart-item { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .cart-item-controls { width: 100%; justify-content: space-between; }
  .product-cart-row { flex-direction: column; }
  .add-to-cart-btn { width: 100%; }
}


/* ── Search Overlay ── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.search-overlay.active {
  display: flex;
  opacity: 1;
}

.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
  animation: searchSlideDown 0.4s var(--ease-spring);
}

@keyframes searchSlideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.search-input-wrapper svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}

.search-overlay input {
  width: 100%;
  padding: 20px 60px 20px 56px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  color: #fff;
  font-size: 1.15rem;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.3s var(--ease-out);
}

.search-overlay input::placeholder {
  color: rgba(255,255,255,0.35);
}

.search-overlay input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
}

.search-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.search-close svg {
  width: 20px;
  height: 20px;
  position: static;
  transform: none;
}

.search-results {
  max-height: 600px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--primary);
  transform: translateX(4px);
}

.search-result-icon {
  width: 48px;
  height: 48px;
  background: rgba(227, 30, 36, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  overflow: hidden;
}

.search-result-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #f5f5f5;
}

.search-result-icon svg {
  width: 20px;
  height: 20px;
  position: static;
  transform: none;
  color: var(--primary);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.search-result-category {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.search-no-results {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}

.search-hint {
  text-align: center;
  padding: 30px 20px;
  color: rgba(255,255,255,0.3);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .search-overlay { padding-top: 80px; }
  .search-overlay input { font-size: 1rem; padding: 18px 50px 18px 48px; }
  .search-results { max-height: 50vh; }
}

/* ---------- Product Detail Modal ---------- */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: var(--white);
  width: 95%;
  max-width: 1100px;
  max-height: 92vh;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transform: translateY(40px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.product-modal-overlay.active .product-modal {
  transform: translateY(0);
}

.product-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.product-modal-close:hover {
  background: var(--primary);
  color: var(--white);
  transform: rotate(90deg);
}

.product-modal-close svg {
  width: 24px;
  height: 24px;
}

.product-modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: var(--light);
  padding-bottom: 60px;
}

.product-modal-top {
  display: flex;
  background: var(--white);
}

/* Mobile Sticky Header */
.modal-mobile-header {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--dark);
  color: white;
  padding: 12px 16px;
  z-index: 101;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modal-mobile-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-mobile-header-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.modal-mobile-header-price {
  font-size: 0.8rem;
  opacity: 0.9;
}

.modal-mobile-header-btn {
  background: var(--accent-amber);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

.product-modal-breadcrumb {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-modal-breadcrumb span {
  color: var(--gray-light);
}

.product-modal-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.product-modal-rating .stars {
  color: #ff9800;
  display: flex;
  gap: 2px;
}

.product-modal-rating .rating-text {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.product-modal-images {
  flex: 0 0 45%;
  max-width: 45%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  border-right: 1px solid rgba(0,0,0,0.06);
}

.product-modal-images img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}

.image-utility-btns {
  position: absolute;
  top: 15px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  pointer-events: none;
  z-index: 2;
}

.utility-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.utility-btn svg {
  width: 18px;
  height: 18px;
}

.utility-btn:hover {
  transform: scale(1.1);
  color: var(--primary);
}

/* ---------- Recommended Products in Modal ---------- */
.product-modal-recommendations {
  padding: 40px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.recommendations-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.recommendations-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.recommendations-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.reco-card {
  background: var(--light);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.reco-card:hover {
  background: var(--white);
  border-color: rgba(227,30,36,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

.reco-image {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}

.reco-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}

.reco-card:hover .reco-image img {
  transform: scale(1.1);
}

.reco-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.3rem;
}

.reco-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: auto;
}

@media (max-width: 768px) {
  .product-modal-recommendations {
    padding: 24px 16px;
  }
  
  .recommendations-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .reco-name {
    font-size: 0.78rem;
  }
}

.product-modal-info {
  flex: 1;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
}

.product-modal-actions {
  margin-top: 20px;
  margin-bottom: 24px;
}

.product-modal-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 16px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(227, 30, 36, 0.2);
}

.product-modal-category {
  font-size: 0.85rem;
  color: var(--dark-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-modal-name {
  font-size: 2rem;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 24px;
  font-weight: 500;
}

.product-modal-pricing {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.product-modal-pricing .price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.product-modal-pricing .price-current {
  font-size: 2.25rem;
  color: var(--dark);
  font-weight: 800;
}

.product-modal-pricing .mrp-label {
  font-size: 1rem;
  color: var(--gray-light);
  font-weight: 600;
}

.product-modal-pricing .price-original {
  font-size: 1.2rem;
  color: var(--gray-light);
  text-decoration: line-through;
}

.product-modal-pricing .price-discount-tag {
  background: #ffeb3b;
  color: #000;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
}

.product-modal-pricing .tax-info {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

/* Offers Section */
.product-modal-offers {
  display: flex;
  gap: 16px;
  margin: 24px 0 32px;
}

.offer-card {
  flex: 1;
  background: #fff9e6;
  border: 1px solid #ffeeba;
  padding: 16px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.offer-card.blue {
  background: #eef7ff;
  border-color: #bee5ff;
}

.offer-card-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #856404;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.offer-card-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.offer-card.blue .offer-card-title {
  color: #004085;
}

.offer-card-content {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #444;
  font-weight: 500;
}

.offer-card-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offer-card-footer::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.offer-card:hover .offer-card-footer::after {
  transform: translateX(4px);
}

.product-modal-features {
  margin-bottom: 0;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.product-modal-features h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.product-modal-features ul {
  list-style: none;
  padding: 0;
}

.product-modal-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.product-modal-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.modal-delivery-estimator {
  position: relative;
  margin: 24px 0 28px;
  padding: 18px;
  border: 1px solid rgba(227, 30, 36, 0.15);
  border-radius: 16px;
  background: linear-gradient(140deg, #fff7f7 0%, #ffffff 58%, #f7f8fa 100%);
  box-shadow: 0 12px 30px rgba(20, 25, 38, 0.06);
  overflow: hidden;
}

.modal-delivery-estimator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e31e24 0%, #ff6a3d 100%);
}

.modal-delivery-estimator label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #111827;
}

.modal-delivery-estimator label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.12);
}

.modal-delivery-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

#modalPincodeInput {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#modalPincodeInput:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.12);
}

#modalPincodeInput::placeholder {
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 0;
}

#modalPincodeCheckBtn {
  border: 1px solid rgba(227, 30, 36, 0.2);
  min-width: 88px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#modalPincodeCheckBtn:hover {
  background: linear-gradient(135deg, #e31e24 0%, #c71219 100%);
  box-shadow: 0 10px 18px rgba(227, 30, 36, 0.25);
  transform: translateY(-1px);
}

.modal-delivery-eta {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4b5563;
  background: rgba(107, 114, 128, 0.12);
}

.modal-delivery-eta.fast {
  color: #0f7a34;
  background: rgba(22, 163, 74, 0.14);
}

.modal-delivery-eta.express {
  color: #065f46;
  background: rgba(16, 185, 129, 0.2);
}

.modal-delivery-eta.standard {
  color: #1f2937;
  background: rgba(31, 41, 55, 0.1);
}

.modal-delivery-eta.invalid {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.14);
}

.modal-delivery-location {
  margin: 8px 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.1px;
}

.modal-delivery-location.invalid {
  color: #b91c1c;
}

.product-modal-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-direction: column;
}

.product-modal-cart-btn {
  width: 100%;
  height: 56px;
  font-size: 1rem;
  white-space: nowrap;
  padding: 0 20px;
}

.product-modal-actions .qty-control {
  align-self: flex-start;
}

@media (max-width: 992px) {
  .modal-mobile-header {
    display: block;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 101;
    padding: 12px 50px 12px 20px; /* Room for close button on right */
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    will-change: backdrop-filter;
  }
  .modal-mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  .modal-mobile-header-info {
    flex: 1;
    min-width: 0;
  }
  #mobileHeaderName {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--dark);
    margin: 0;
  }
  #mobileHeaderPrice {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 600;
  }
  .modal-mobile-header-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.2);
  }

  .product-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    color: #333;
    z-index: 105; /* Higher than sticky header */
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .image-utility-btns {
    top: 60px; /* Moved down to avoid collision with header and close button */
    justify-content: flex-end;
    gap: 10px;
    padding-right: 15px;
  }
  
  .utility-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
  }
  .product-modal {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .product-modal-body {
    flex-direction: column;
    display: block;
    background: var(--white);
  }
  .product-modal-top {
    flex-direction: column;
    display: flex;
  }
  .product-modal-images {
    padding: 20px;
    min-height: auto;
    flex: none;
    max-width: 100%;
    height: 360px; /* Increased for better visibility */
    background: #fff;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .product-modal-images img {
    max-height: 320px;
  }
  .product-modal-info {
    padding: 24px 20px 24px;
    flex: none;
    height: auto;
    overflow-y: visible;
  }
  .product-modal-name {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  .modal-delivery-input-row {
    flex-direction: column;
  }
  .modal-delivery-estimator {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 14px;
  }
  #modalPincodeCheckBtn {
    height: 46px;
    width: 100%;
  }
  .modal-delivery-eta {
    width: 100%;
    border-radius: 12px;
    justify-content: center;
    text-align: center;
  }
  .product-modal-actions {
    position: static;
    width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
    z-index: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .product-modal-actions .qty-control {
    flex: 0 0 auto;
    width: auto;
    align-self: flex-start;
  }
  .product-modal-cart-btn {
    width: 100%;
    height: 52px;
    font-size: 0.95rem;
  }
}

/* ---------- Product Modal Tabs (V-Guard Style) ---------- */
.product-modal-tabs-wrapper {
  background: var(--light);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 2px solid rgba(0,0,0,0.06);
  padding-bottom: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.modal-tabs::-webkit-scrollbar {
  height: 3px;
}

.modal-tabs::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.modal-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.modal-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray);
  padding: 12px 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap !important;
  transition: color 0.3s ease;
  flex-shrink: 0 !important;
  min-width: max-content;
}

.modal-tab-btn:hover {
  color: var(--dark);
}

.modal-tab-btn.active {
  color: var(--primary);
}

.modal-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-tab-btn.active::after {
  opacity: 1;
}

.modal-tab-panels {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.modal-tab-panel {
  display: none;
  animation: fadeIn 0.4s var(--ease-out);
}

.modal-tab-panel.active {
  display: block;
}

.panel-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.panel-desc {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.panel-bullets {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.panel-bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--dark-2);
  font-weight: 500;
}

.panel-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.specs-table {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.spec-value {
  color: var(--gray);
  font-size: 0.95rem;
}

.reviews-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--gray);
}

@media (max-width: 992px) {
  .product-modal-tabs-wrapper {
    padding: 20px;
  }
  .modal-tabs {
    gap: 12px;
    padding-bottom: 4px;
    padding-left: 20px;
    padding-right: 40px;
    margin: 0 -20px;
    width: calc(100% + 40px);
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  .modal-tab-btn {
    font-size: 0.8rem;
    padding: 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .modal-tab-panels {
    padding: 20px;
  }
  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
  .spec-label {
    color: var(--gray);
    font-size: 0.85rem;
  }
  .spec-value {
    color: var(--dark);
    font-weight: 500;
  }

  /* Optimize Product Card Features for Mobile */
  .product-features-grid {
    margin: 10px 0 15px;
    padding-top: 10px;
    gap: 4px;
  }
  .product-features-grid li {
    font-size: 0.75rem;
    padding-left: 16px;
  }

  /* Optimize Modal Features for Mobile */
  .product-modal-features {
    padding-top: 20px;
  }
  .product-modal-features li {
    font-size: 0.88rem;
    margin-bottom: 8px;
    padding-left: 24px;
  }

  /* Page Hero & Filters Optimization */
  .page-hero {
    padding: 100px 0 40px !important;
  }
  .filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -20px 30px;
    padding: 10px 20px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  /* Comparison Table Mobile Polish */
  .mega-comparison-table th, 
  .mega-comparison-table td {
    padding: 12px 14px;
    font-size: 0.8rem;
  }
  .mega-comparison-table th:first-child,
  .mega-comparison-table td:first-child {
    position: sticky;
    left: 0;
    background: inherit;
    z-index: 10;
    border-right: 1px solid rgba(0,0,0,0.05);
  }
}


/* Modal Carousel */
.modal-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.modal-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-carousel-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.modal-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  z-index: 5;
  color: #333;
  transition: all 0.3s ease;
}

.modal-carousel-arrow:hover {
  background: #f8f8f8;
  color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

.modal-carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.modal-carousel-arrow.prev { left: 10px; }
.modal-carousel-arrow.next { right: 10px; }
/* Address Modal & Form */
.address-modal {
  background: var(--white);
  width: 95%;
  max-width: 600px;
  max-height: 95vh;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.address-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .address-modal {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .address-modal-header {
    padding: 16px 20px;
  }
}

.address-modal-header h3 {
  font-size: 1.25rem;
  color: var(--dark);
}

.address-form-body {
  padding: 24px;
  overflow-y: auto;
}

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  flex: 1 1 calc(50% - 10px);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  flex: 1 1 100%;
}

.address-form-body {
  padding: 24px;
}



.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

@media (max-width: 400px) {
  .form-footer {
    flex-direction: column-reverse;
    padding: 16px 20px;
  }
  .form-footer .btn {
    width: 100%;
  }
}

/* Saved Address Card */
.saved-address-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
  position: relative;
}

.saved-address-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-edit-address {
  font-size: 0.75rem;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  text-transform: none;
}

.saved-address-details {
  font-size: 0.9rem;
  color: var(--dark-2);
  line-height: 1.6;
}

.saved-address-details strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.checkout-auth-card {
  background: #fff7f7;
  border: 1px solid rgba(227, 30, 36, 0.14);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
}

.checkout-auth-card h4 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.checkout-auth-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 14px;
}

.checkout-auth-card.is-authenticated {
  background: #f7fffb;
  border-color: rgba(16, 185, 129, 0.18);
}

.google-auth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.google-signin-shell {
  min-height: 42px;
}

.google-auth-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 12px;
}

.google-auth-note.is-error {
  color: var(--primary);
}

.checkout-auth-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-auth-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--light);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.checkout-auth-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.checkout-auth-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.checkout-auth-user strong {
  font-size: 0.95rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-auth-user span {
  font-size: 0.83rem;
  color: var(--gray);
  word-break: break-word;
}

.checkout-auth-attention {
  animation: checkoutAuthPulse 1.2s ease;
}

@keyframes checkoutAuthPulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.22); }
  70% { box-shadow: 0 0 0 14px rgba(227, 30, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); }
}

.input-error {
  border-color: #ef4444 !important;
}

.error-text {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Payment Success State */
.payment-success-card {
  animation: slideInUp 0.6s var(--ease-out);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Blog Post Styles ---------- */
.blog-post-section {
  padding: 80px 0 120px;
  background: var(--white);
}

.blog-post-container {
  max-width: 900px;
  margin: 0 auto;
}

.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--dark-2);
}

.blog-post-content h2 {
  font-size: 2rem;
  margin: 60px 0 24px;
  color: var(--dark);
}

.blog-post-content h3 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--dark);
}

.blog-post-content p {
  margin-bottom: 24px;
}

.blog-post-content ul, .blog-post-content ol {
  margin-bottom: 32px;
  padding-left: 20px;
}

.blog-post-content li {
  margin-bottom: 12px;
  position: relative;
}

.blog-post-content ul li::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.blog-post-content .table-container {
  overflow-x: auto;
  margin: 40px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.blog-post-content th, .blog-post-content td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.blog-post-content th {
  background: var(--light);
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post-content td {
  font-size: 1rem;
}

.blog-post-content tr:last-child td {
  border-bottom: none;
}

.blog-post-content .toc {
  background: var(--light);
  padding: 32px;
  border-radius: var(--radius-md);
  margin-bottom: 48px;
}

.blog-post-content .toc h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.blog-post-content .toc ul {
  padding-left: 0;
  margin-bottom: 0;
}

.blog-post-content .toc ul li {
  list-style: none;
  margin-bottom: 10px;
}

.blog-post-content .toc ul li::before {
  display: none;
}

.blog-post-content .toc a {
  color: var(--primary);
  font-weight: 500;
  transition: all 0.3s;
}

.blog-post-content .toc a:hover {
  text-decoration: underline;
  padding-left: 4px;
}

.blog-post-content .highlight-box {
  background: rgba(227, 30, 36, 0.05);
  border-left: 4px solid var(--primary);
  padding: 32px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 48px 0;
}

.blog-post-content .faq-item {
  margin-bottom: 32px;
}

.blog-post-content .faq-q {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

.blog-post-content .faq-q::before {
  content: 'Q:';
  color: var(--primary);
}

.blog-post-content .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.blog-post-content .tag {
  background: var(--light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
}


/* ── Interactions & Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideOutRight {
  to { opacity: 0; transform: translateX(50px); }
}

@keyframes cart-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.cart-pulse {
  animation: cart-pulse 0.4s var(--ease-out);
}

.fly-dot {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s;
}

.is-in-cart {
  background: var(--accent-green) !important;
  color: var(--white) !important;
  border-color: var(--accent-green) !important;
}

.is-in-cart:hover {
  background: #0d9668 !important; /* Slightly darker green */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}



/* --- Missing Layout Fixes --- */
.filter-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  position: sticky;
  top: 80px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark-2);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Mobile Filter Dropdown */
.filter-mobile-dropdown {
  display: none;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.filter-dropdown-toggle {
  width: 100%;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.filter-dropdown-toggle .current-filter {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.filter-dropdown-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.filter-dropdown-toggle.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.filter-dropdown-toggle.active svg {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s var(--ease-out);
}

.filter-dropdown-menu.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.filter-dropdown-item {
  width: 100%;
  padding: 14px 24px;
  text-align: left;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-2);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.filter-dropdown-item:last-child {
  border-bottom: none;
}

.filter-dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 30px;
}

.filter-dropdown-item.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 991px) {
  .filter-container {
    display: none !important;
  }
  .filter-mobile-dropdown {
    display: block;
  }
}

.product-cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 44px;
}

.qty-btn {
  width: 36px;
  height: 100%;
  border: none;
  background: var(--light);
  color: var(--dark);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--border);
}

.qty-input {
  width: 40px;
  height: 100%;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.add-to-cart-btn {
  flex: 1;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.add-to-cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.add-to-cart-btn.is-in-cart {
  background: var(--accent-green);
}

/* Fix for Left-Pinned Layout */
.products-section .container {
  display: flex;
  flex-direction: column;
}

.products-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODERN ANIMATIONS & PREMIUM EFFECTS
   Added to enhance user engagement and visual quality
   ========================================================================== */

/* ---------- Keyframes ---------- */

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  33% { transform: translateY(-10px) rotate(2deg); }
  66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes float-complex {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5px, -10px) rotate(1deg); }
  50% { transform: translate(-5px, -15px) rotate(-1deg); }
  75% { transform: translate(-10px, -5px) rotate(0.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes scale-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes slide-reveal {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes line-draw {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- Advanced Reveal Animations ---------- */

.reveal-up {
  opacity: 0;
  transform: translate3d(0, 60px, 0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-up.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-skew {
  opacity: 0;
  transform: translate3d(0, 40px, 0) skewY(5deg);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal-skew.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) skewY(0);
}

/* ---------- Premium Hover Effects ---------- */

.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s var(--ease-out);
  z-index: -1;
}

.btn:hover::after {
  transform: translateX(100%) skewX(-15deg);
}

.category-card, .product-card {
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.category-card:hover, .product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease-out);
}

.category-card:hover::before {
  transform: translateX(100%);
}

/* ---------- Glass & Glow Utilities ---------- */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.premium-glow {
  position: relative;
}

.premium-glow::after {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.premium-glow:hover::after {
  opacity: 1;
}

/* ---------- Floating Decorative Elements ---------- */

.float-icon {
  animation: float 4s ease-in-out infinite;
}

.float-complex {
  animation: float-complex 8s ease-in-out infinite;
}

.pulse-element {
  animation: scale-pulse 3s ease-in-out infinite;
}

/* ---------- Magnetic Interaction (Base) ---------- */

[data-magnetic] {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Text Animations ---------- */

.split-line {
  overflow: hidden;
  display: block;
}

.split-line span {
  display: block;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out);
}

.revealed .split-line span {
  transform: translateY(0);
}
