@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Premium Friendly Light Theme Colors */
  --primary: #8b5cf6; /* Violet 500 */
  --primary-light: #a78bfa;
  --primary-dark: #6d28d9;
  --accent: #f97316; /* Orange 500 */
  --accent-light: #fb923c;
  
  --bg-dark: #f8fafc; /* Very light slate */
  --bg-darker: #ffffff; /* White background */
  --bg-card: rgba(255, 255, 255, 0.9); /* White card */
  --bg-card-hover: rgba(241, 245, 249, 0.95); /* Slate 100 */
  
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  
  --text-primary: #0f172a; /* Slate 900 for high contrast */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94a3b8; /* Slate 400 */
  
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  
  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Premium Shadows & Gradients */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.3);
  --shadow-glow-accent: 0 0 25px rgba(249, 115, 22, 0.3);
  
  --gradient-primary: linear-gradient(135deg, var(--primary), #d946ef); /* Violet to Fuchsia */
  --gradient-accent: linear-gradient(135deg, var(--accent), #eab308); /* Orange to Yellow */
  --gradient-bg: radial-gradient(circle at top right, #f3e8ff 0%, var(--bg-dark) 40%, var(--bg-darker) 100%);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 4rem;
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-darker);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* Navigation Premium Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-md) 0;
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.nav-logo-img {
  height: 40px; /* FIX: Restrict Logo Height */
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.1));
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05) rotate(-2deg);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo-text .accent {
  color: var(--primary-light);
  background: linear-gradient(to right, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-actions {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

/* Search Bar */
.nav-search {
  display: flex;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  align-items: center;
  transition: all var(--transition-normal);
  width: 300px;
}

.nav-search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: #fff;
  width: 350px;
}

.search-icon {
  color: var(--text-secondary);
  margin-right: var(--spacing-sm);
  transition: color var(--transition-fast);
}

.nav-search:focus-within .search-icon {
  color: var(--primary-light);
}

.nav-search input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

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

/* Icons */
.nav-cart, .nav-admin {
  position: relative;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
}

.nav-cart:hover, .nav-admin:hover {
  color: var(--primary-light);
  background: var(--bg-card-hover);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  height: 20px;
  width: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.5);
  border: 2px solid var(--bg-dark);
}

.nav-menu-btn {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.mobile-menu {
  display: none;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: -20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(2, 6, 23, 0) 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(50px) scale(1.1); }
}

.hero-content {
  max-width: 750px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--primary-light);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-lg);
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: var(--spacing-md);
  line-height: 1.05;
}

.hero-title-line {
  display: block;
  color: var(--text-primary);
}

.hero-title-accent {
  background: linear-gradient(to right, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xxl);
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  border-top: 1px solid var(--border);
  padding-top: var(--spacing-xl);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.hero-stat-number {
  font-size: 1.5rem;
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 12px;
}

.hero-stat-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  gap: var(--spacing-sm);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(37, 99, 235, 0.6);
}

.btn-outline {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

/* Hero Mini Banner Section & Featured Product Slider */
.hero-mini {
  height: auto;
  min-height: auto;
  padding: 100px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content-mini {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

/* Hero Featured Slider Banner */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(243, 232, 255, 0.9));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: 10px;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.hero-slider-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 210px;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 20px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

.hero-slide-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 8px;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.hero-slide-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.2;
}

.hero-slide-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-slide-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-slide-img-wrap {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s ease;
}

.hero-slide:hover .hero-slide-img {
  transform: scale(1.06) translateY(-4px);
}

/* Slider Controls */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.hero-slider-arrow:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.hero-slider-arrow.prev { left: 12px; }
.hero-slider-arrow.next { right: 12px; }

.hero-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--primary);
}

/* Lower Header Text (Smaller and positioned lower down) */
.hero-header-text {
  margin-top: 22px;
  margin-bottom: 5px;
}

.hero-title-mini {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.hero-subtitle-mini {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

/* Categories Section */
.categories-section {
  padding: var(--spacing-xl) 0;
}

.categories-scroll {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  padding-bottom: var(--spacing-sm);
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center; /* Center on desktop */
}

@media (max-width: 768px) {
  .categories-scroll {
    justify-content: flex-start; /* Start from left on mobile to allow scrolling */
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    padding-right: 25px;
  }

  .categories-scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    width: 100%;
  }

  .category-indicator-track {
    width: 64px;
    height: 4px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
  }

  .category-indicator-thumb {
    height: 100%;
    width: 35%;
    background: var(--primary);
    border-radius: 9999px;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.08s ease-out;
  }
}

.categories-scroll-indicator {
  display: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.category-pill {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.category-pill:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.category-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
  display: inline-block;
  vertical-align: middle;
  transition: transform var(--transition-fast);
}

.category-pill:hover .category-icon {
  transform: scale(1.1);
}

/* Products Section */
.products-section {
  padding: var(--spacing-xl) 0 var(--spacing-xxl);
}

.section-header {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

/* Premium Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 10px 40px rgba(0,0,0,0.5);
  border-color: var(--border-hover);
  background: rgba(51, 65, 85, 0.6);
}

/* Premium Product Carousel Styles (Square layout, hover dynamic columns, and touch-slide) */
.product-image-container-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Force perfect square format */
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.product-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.product-carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.product-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Centered, crop-to-fill */
  object-position: center;
  transition: transform var(--transition-slow);
}

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

/* Invisible overlay hover zones columns for Desktop hover triggers */
.carousel-hover-zones-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 10;
}

.carousel-hover-zone {
  flex: 1;
  height: 100%;
  cursor: pointer;
}

/* Dynamic Dot indicators at the bottom of the card image */
.carousel-dots-wrapper {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 15;
  pointer-events: none; /* Let clicks pass through to zones */
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-dot.active {
  width: 16px;
  border-radius: 4px;
  background: var(--primary-light, #60a5fa);
}

/* Swipe-scroll on touch/mobile viewports */
@media (max-width: 1024px) {
  .carousel-hover-zones-wrapper {
    display: none; /* Disable hover zones on touch screens to avoid conflict */
  }

  .product-carousel-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbars Firefox */
    -ms-overflow-style: none;  /* Hide scrollbars IE/Edge */
  }

  .product-carousel-track::-webkit-scrollbar {
    display: none; /* Hide scrollbars Chrome/Safari/Opera */
  }

  .carousel-slide {
    scroll-snap-align: start;
  }
}

.product-badges {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  z-index: 10;
}

.badge {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.badge-new { background: rgba(37, 99, 235, 0.9); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.badge-sale { background: rgba(239, 68, 68, 0.9); color: #fff; }

.product-info {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.product-title {
  font-size: 1.15rem; /* Standardized description title size */
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35em;
  height: 2.7em; /* Force height of exactly two lines */
  margin-bottom: var(--spacing-md);
  /* Truncation clamp to exactly two lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-wrap {
  margin-top: auto; /* Pushes the price and button to the absolute bottom */
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: baseline;
  gap: var(--spacing-xs);
}

.price {
  font-size: 0.86rem; /* 25% smaller than product-title (1.15rem * 0.75 = 0.86rem) */
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: -0.2px;
}

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

/* Premium Product Card Actions Row (70% Agregar Carrito / 30% Comprar) */
.product-actions-wrap {
  display: flex;
  gap: 8px;
  width: 100%;
}

.add-to-cart-btn-main.btn {
  flex: 7; /* 70% of available space */
  padding: 0.75rem 0.5rem;
  font-size: 0.88rem;
  border-radius: 12px; /* Smooth rounded modern edges */
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.add-to-cart-btn-main.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  background: var(--primary);
}

.add-to-cart-btn-main.btn:active {
  transform: translateY(0);
}

.buy-now-btn-secondary.btn {
  flex: 3; /* 30% of available space */
  padding: 0.75rem 0.25rem;
  font-size: 0.88rem;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.buy-now-btn-secondary.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.buy-now-btn-secondary.btn:active {
  transform: translateY(0);
}

/* Button Vector SVG icons */
.btn-icon, .btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2px;
  display: inline-block;
  vertical-align: middle;
}

/* Features Section */
.features-section {
  padding: var(--spacing-xxl) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: #020617;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  height: 40px;
  margin-bottom: var(--spacing-md);
}

.footer-tagline {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links h4 {
  color: #fff;
  margin-bottom: var(--spacing-md);
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Utilities */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 15px 25px;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(0); }
.toast-success { border-left: 4px solid var(--success); }

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-search { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .hero-stats { flex-direction: column; gap: var(--spacing-md); }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

/* Discount Code Styles */
.discount-section {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}
.discount-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
}
.discount-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}
.discount-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.discount-btn:hover {
  background: var(--surface-light);
  border-color: var(--primary);
  color: var(--primary);
}
.discount-msg {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}
.discount-msg.success {
  color: #00cc66;
  display: block;
}
.discount-msg.error {
  color: #ff4455;
  display: block;
}
.summary-row.discount {
  color: #00cc66;
  font-weight: 600;
}

/* ===========================
   CART PAGE STYLES
   =========================== */

.cart-page {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: var(--spacing-xxl);
  background: var(--gradient-bg);
}

.page-header {
  margin-bottom: var(--spacing-xl);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  margin-bottom: var(--spacing-md);
}

.back-link:hover {
  color: var(--primary);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--spacing-xl);
  align-items: start;
}

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

/* Cart Items */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.cart-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.cart-item-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.cart-item-category {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
  text-transform: capitalize;
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.cart-item-original-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin: 0.15rem 0 0 0;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

/* Quantity Selector */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-darker);
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.qty-value {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.5rem 0;
}

.cart-item-remove {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
}

/* Cart Empty State */
.cart-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xxl);
  gap: var(--spacing-md);
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.cart-empty h2 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.5rem;
  margin: 0;
}

.cart-empty p {
  color: var(--text-secondary);
  margin: 0;
}

/* Cart Summary */
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}

.cart-summary h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-lg) 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.75rem 0;
}

.summary-row.shipping-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.25rem 0 0.5rem 0;
}

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.summary-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--spacing-md);
}

.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  margin-top: var(--spacing-md);
  text-decoration: none;
  text-align: center;
}

/* Discount Section */
.discount-section {
  display: flex;
  gap: 0.5rem;
  margin: var(--spacing-md) 0;
}

.discount-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--bg-darker);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.discount-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.discount-btn {
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.discount-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.discount-msg {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.discount-msg.success {
  color: var(--success);
  display: block;
}

.discount-msg.error {
  color: var(--danger);
  display: block;
}

/* Mobile cart item responsive */
@media (max-width: 640px) {
  .cart-item {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }

  .cart-item-img {
    width: 80px;
    height: 80px;
  }

  .cart-item-info {
    flex: 1;
    min-width: 120px;
  }

  .cart-item-actions {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border);
  }

  .page-title {
    font-size: 1.5rem;
  }
}

/* Lucide Vector Icons inside mobile menu links styling */
.mobile-menu-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
  display: inline-block;
  vertical-align: text-bottom;
  margin-right: 4px;
}

/* =======================================================
   RESPONSIVE MOBILE LAYOUT & VIEWPORT OPTIMIZATIONS
   ======================================================= */

/* General Mobile adjustments for tablet and smartphones */
@media (max-width: 768px) {
  /* Navbar adjustments to prevent overlap and text wrap */
  .navbar {
    padding: 0.65rem 0;
  }
  
  .nav-logo-text {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    white-space: nowrap;
    letter-spacing: -0.2px;
  }

  .nav-logo-img {
    height: 32px;
  }

  /* Hide secondary navbar buttons on mobile */
  .nav-social, .nav-admin {
    display: none !important;
  }

  /* Setup mobile actions spacing */
  .nav-actions {
    gap: 8px;
  }

  /* Cart icon size adjustment for mobile header */
  .nav-cart {
    width: 38px;
    height: 38px;
  }

  /* Hamburger Menu Toggle Button styling & placement */
  .nav-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .nav-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #1e293b; /* Slate-800 */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
  }

  /* Hamburger transform animation to X when active */
  .nav-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .nav-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Sliding overlay drop-down drawer mobile menu */
  .mobile-menu {
    display: block !important;
    position: fixed;
    top: -300px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 85px var(--spacing-xl) 25px var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .mobile-menu.active {
    top: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.25rem;
    border-radius: 12px;
    color: #334155; /* Slate-700 */
    font-size: 1.05rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-decoration: none;
  }

  .mobile-menu-link:hover, .mobile-menu-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.1);
  }

  /* Font sizing clamp rules for section and hero texts */
  .section-title {
    font-size: clamp(1.8rem, 5.5vw, 2.2rem) !important;
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
  }

  .section-subtitle {
    font-size: 0.95rem !important;
    padding: 0 var(--spacing-md);
  }

  .hero-title-mini {
    font-size: clamp(1.3rem, 4.5vw, 1.7rem) !important;
  }

  .hero-subtitle-mini {
    font-size: 0.88rem !important;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 16px 20px 32px;
    min-height: 240px;
    text-align: center;
  }
  .hero-slide-content {
    text-align: center;
    align-items: center;
  }
  .hero-slide-img-wrap {
    height: 130px;
    order: -1;
  }
  .hero-slide-title {
    font-size: 1.25rem;
  }
  .hero-slide-desc {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
  .hero-slider-arrow {
    width: 32px;
    height: 32px;
  }
  .hero-slider-arrow.prev { left: 6px; }
  .hero-slider-arrow.next { right: 6px; }

  /* Mobile floating capsule dots indicator matching product cards */
  .hero-slider-dots {
    bottom: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .hero-dot {
    width: 6px;
    height: 6px;
    background: rgba(139, 92, 246, 0.35);
  }

  .hero-dot.active {
    width: 16px;
    border-radius: 4px;
    background: var(--primary);
  }

  .section-header {
    margin-bottom: var(--spacing-lg) !important;
  }

  /* Standard spacing layout adjustments */
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* Specific micro-fixes for extremely narrow screens (e.g. iPhone SE / old Androids) */
@media (max-width: 360px) {
  .nav-logo-text {
    font-size: 0.95rem;
  }

  .nav-logo-img {
    height: 28px;
  }
}

/* =======================================================
   PRODUCT QUICK VIEW MODAL & STOCK INDICATORS
   ======================================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000; /* High priority overlay layer */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: var(--spacing-md);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  width: 100%;
  max-width: 820px;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25);
  transform: scale(0.92);
  transition: transform var(--transition-normal);
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.05);
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 100;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--spacing-xl);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--spacing-xl);
}

.modal-info-side {
  display: flex;
  flex-direction: column;
}

.modal-info-side h2 {
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-top: 5px;
  margin-bottom: var(--spacing-sm);
}

.modal-description-wrap {
  margin-top: var(--spacing-md);
}

.modal-description-wrap h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.modal-description-wrap p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Stock Availability Badge styles */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
  width: fit-content;
}

.stock-badge .stock-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stock-badge.available {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.stock-badge.available .stock-dot {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.stock-badge.out-of-stock {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.stock-badge.out-of-stock .stock-dot {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* Modal Responsive Behavior */
@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    padding: var(--spacing-lg);
    gap: var(--spacing-lg);
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
  }

  .modal-info-side h2 {
    font-size: 1.4rem;
  }
}

/* Modal Carousel Interactive Chevron Arrows & Clickable Dots */
.carousel-dots-wrapper .carousel-dot {
  cursor: pointer;
  pointer-events: auto; /* Enable dots to register clicks */
  transition: all 0.25s ease;
}

.carousel-dots-wrapper .carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.prev {
  left: 12px;
}

.carousel-arrow.next {
  right: 12px;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5px;
}

/* Responsive fixes for arrows in mobile viewports */
@media (max-width: 480px) {
  .carousel-arrow {
    width: 34px;
    height: 34px;
  }
  .carousel-arrow.prev {
    left: 8px;
  }
  .carousel-arrow.next {
    right: 8px;
  }
}

/* Ensure modal gallery track uses smooth native scroll snap */
.modal-gallery-side .product-carousel-track {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.modal-gallery-side .product-carousel-track::-webkit-scrollbar {
  display: none !important;
}

.modal-gallery-side .carousel-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
}

/* Product Variant Selector Styles */
.product-variant-wrapper {
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}
.product-variant-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.product-variant-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-darker);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}
.product-variant-select:hover {
  border-color: var(--primary-light);
}
.product-variant-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.product-variant-select.select-error {
  border-color: var(--danger) !important;
  animation: shakeVariant 0.4s ease-in-out;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}
@keyframes shakeVariant {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.cart-item-variant-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--primary-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.2rem;
  border: 1px solid rgba(139, 92, 246, 0.15);
}



