/* ─────────────────────────────────────────────
   STRIDE – Sports Shoe Store
   Design System & Styles
────────────────────────────────────────────── */

/* ── RESET & BASE ─────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── GLOBAL SCROLLBAR ───────────────────────── */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #ffcb3e;
  border-radius: 10px;
  border: 2px solid #fff; /* Padding effect */
}

::-webkit-scrollbar-thumb:hover {
  background: #e6b637;
}

/* Firefox compatibility */
* {
  scrollbar-width: thin;
  scrollbar-color: #ffcb3e transparent;
}

:root {
  --primary: #6B21A8;
  --primary-dark: #5B1898;
  --accent: #A855F7;
  --dark: #0A0A0F;
  --dark-2: #13131C;
  --dark-3: #1C1C2E;
  --dark-card: #1A1A2E;
  --text: #E8E8F0;
  --text-muted: #8888A8;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.05);
  --grad-primary: linear-gradient(135deg, #7C3AED, #A855F7);
  --grad-accent: linear-gradient(135deg, #A855F7, #6B21A8);
  --grad-hero: linear-gradient(135deg, #6B21A8 0%, #9333EA 50%, #A855F7 100%);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 4px 20px rgba(107, 33, 168, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --brand-lime: #c5d64a;
  --brand-gold: #FFD700;
  --brand-purple: #251f57;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── SCROLLBAR ────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark-2);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ── UTILITIES ────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: var(--brand-lime);
  color: var(--brand-purple);
  border: 1px solid var(--brand-lime);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  transition: var(--transition);
}

.section-tag-btn:hover {
  background: var(--brand-purple);
  color: var(--brand-lime);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 214, 74, 0.3);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── BUTTONS ──────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-lime);
  color: var(--brand-purple);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(197, 214, 74, 0.3);
  cursor: pointer;
  border: none;
  font-family: 'Outfit', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(197, 214, 74, 0.5);
  filter: brightness(1.1);
}

.btn-primary.full-width {
  width: 100%;
  justify-content: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid var(--border);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ── NAVBAR ───────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: #251f57;
  transition: var(--transition);
}

.navbar.scrolled {
  background: #251f57;
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Isologo in navbar: transparent without white pill */
.isologo {
  max-width: 150px;
  width: auto;
  height: 48px;
  background: transparent;
  padding: 0;
  object-fit: contain;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

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

.nav-item {
  position: static; /* Required for full-width dropdown or relative for localized */
}

/* Localized dropdown relative to the item */
.nav-item-rel {
  position: relative;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 0;
  display: block;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-lime);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-item:hover .nav-link::after {
  transform: scaleX(1);
}

/* Mega Menu Container */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 100vw;
  background: #12121c; /* Deep dark background */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 48px 0;
  z-index: 999;
}

/* Ensure background remains dark even when navbar is scrolled or in white edition */
.navbar.scrolled .mega-menu,
.white-edition .navbar .mega-menu {
  background: #0f172a; /* Consistent elegant dark theme */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 100px;
}

.mega-column h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-lime);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-left: 2px solid var(--brand-lime);
  padding-left: 12px;
}

/* Maintain light h4 in dark mega-menu even when scrolled */
.navbar.scrolled .mega-column h4,
.white-edition .navbar .mega-column h4 {
  color: var(--brand-lime);
  border-left-color: var(--brand-lime);
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mega-list a {
  font-size: 0.95rem;
  color: #a1a1aa;
  transition: var(--transition);
  font-weight: 500;
}

/* Maintain light links in dark mega-menu even when scrolled */
.navbar.scrolled .mega-list a,
.white-edition .navbar .mega-list a {
  color: #a1a1aa;
}

.mega-list a:hover {
  color: #ffffff;
  transform: translateX(6px);
}

.navbar.scrolled .mega-list a:hover {
  color: #ffffff;
}

.mega-list a.view-all {
  margin-top: 10px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.navbar.scrolled .mega-list a.view-all {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cart {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
}

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

.cart-count {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ── HERO ─────────────────────────────────── */
/* ── HERO SLIDER ──────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--dark);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-slide.active .hero-title { animation: fadeInUp 0.8s 0.2s ease both; }
.hero-slide.active .hero-subtitle { animation: fadeInUp 0.8s 0.4s ease both; }
.hero-slide.active .hero-badge { animation: fadeInUp 0.8s 0s ease both; }
.hero-slide.active .hero-buttons { animation: fadeInUp 0.8s 0.6s ease both; }

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Controls */
.hero-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 10;
  pointer-events: none;
}

.hero-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.hero-arrow:hover {
  background: var(--brand-lime);
  color: var(--brand-purple);
  border-color: var(--brand-lime);
  transform: scale(1.1);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.hero-dot.active {
  background: var(--brand-lime);
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(197, 214, 74, 0.5);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-dot {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}


/* ── CATEGORIES ───────────────────────────── */
.categories-section {
  background: var(--dark-2);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--dark-card);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.category-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

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

.category-card:hover .category-img {
  transform: scale(1.08);
}

.category-overlay {
  display: none; /* Removed as requested */
}

.category-info {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Subtle shadow for legibility if needed */
}

.category-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.category-arrow {
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.category-card:hover .category-arrow {
  transform: translateX(6px);
}

/* ── PROMO BANNER ─────────────────────────── */
/* ── PROMO SLIDER ─────────────────────────── */
.promo-section {
  position: relative;
  overflow: hidden;
  background: #0A0A1F;
}

.promo-slider {
  position: relative;
  width: 100%;
}

.promo-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.promo-slide {
  flex: 0 0 100%;
  padding: 100px 0;
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.promo-slide-overlay {
  position: absolute;
  inset: 0;
  background: transparent; /* No darker overlay */
  z-index: 1;
}

.promo-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.promo-tag {
  display: inline-block;
  background: var(--brand-lime);
  color: var(--brand-purple);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.promo-content h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8), 0 2px 5px rgba(0,0,0,0.9); /* Aggressive shadow for bright backgrounds */
}

.promo-content h2 span {
  color: var(--accent);
}

.promo-content p {
  color: #fff; /* Solid white */
  margin-bottom: 32px;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Aggressive shadow */
}

.btn-promo {
  display: none !important; /* Completely hidden as requested */
}

.btn-promo:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

/* Slider Nav */
.promo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  font-size: 1.2rem;
}

.promo-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.promo-arrow-prev { left: 30px; }
.promo-arrow-next { right: 30px; }

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

.promo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.promo-dot.active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--accent);
}

@media (max-width: 768px) {
  .promo-arrow { display: none; }
  .promo-slide { min-height: 400px; padding: 80px 0; }
}

/* Removed legacy promo shapes */

/* ── PRODUCTS ─────────────────────────────── */
.products-section {
  background: var(--dark);
}

/* ── ADVANCED FILTERS ─────────────────────── */
.advanced-filters-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  background: var(--dark-card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.search-bar-wrap {
  position: relative;
  width: 100%;
}

.search-bar-wrap input[type="search"] {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.search-bar-wrap input[type="search"]:focus {
  border-color: var(--brand-lime);
  box-shadow: 0 0 10px rgba(197, 214, 74, 0.2);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.extra-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.filter-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-pill {
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--dark-3);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.brand-pill:hover, .brand-pill.active {
  background: var(--brand-lime);
  color: var(--brand-purple);
  border-color: var(--brand-lime);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch-filter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
}

.color-swatch-filter:hover, .color-swatch-filter.active {
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.color-swatch-filter.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.filter-tab {
  padding: 10px 28px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.filter-tab:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-tab.active {
  background: var(--brand-lime);
  color: var(--brand-purple);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(197, 214, 74, 0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  animation: fadeInUp 0.5s ease both;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 69, 0, 0.3);
  box-shadow: var(--shadow-card);
}

.product-card.hidden {
  display: none !important;
}

.product-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--dark-3);
}

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

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

.ribbon-agotado {
  position: absolute;
  top: 24px;
  right: -36px;
  background: #000;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 40px;
  transform: rotate(45deg);
  z-index: 10;
  letter-spacing: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.img-agotado {
  filter: grayscale(80%) opacity(0.7);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-lime);
  color: var(--brand-purple);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  z-index: 5;
}

.product-badge.sale {
  background: linear-gradient(135deg, #00D4FF, #0099CC);
}

.product-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-actions {
  opacity: 1;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
}

.product-category-label {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--brand-purple);
  background: var(--brand-lime);
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 6px 0 8px;
}

.product-rating {
  font-size: 0.8rem;
  color: #FFB800;
  margin-bottom: 12px;
}

.product-rating span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

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

.add-to-cart {
  margin-left: auto;
  background: var(--brand-lime);
  color: var(--brand-purple);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(197, 214, 74, 0.3);
}

.add-to-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(197, 214, 74, 0.5);
  filter: brightness(1.1);
}

/* ── FEATURES ─────────────────────────────── */
.features-section {
  background: var(--dark-3);
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── ABOUT ────────────────────────────────── */
.about-section {
  background: var(--dark-2);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-badge-float {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: var(--brand-lime);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.badge-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-purple);
  line-height: 1;
}

.badge-text {
  font-size: 0.75rem;
  color: var(--brand-purple);
  font-weight: 600;
  opacity: 0.9;
}

.about-content .section-header {
  text-align: left;
}

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-text {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.about-values {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.value-icon {
  font-size: 1.1rem;
  color: var(--primary);
}

/* ── TESTIMONIALS ─────────────────────────── */
.testimonials-section {
  background: var(--dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.testimonial-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(255, 69, 0, 0.3);
  transform: translateY(-4px);
}

.testimonial-card.featured {
  border-color: rgba(255, 69, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.08), rgba(255, 140, 0, 0.05));
  box-shadow: 0 8px 32px rgba(255, 69, 0, 0.15);
  transform: translateY(-12px);
}

.testimonial-stars {
  color: #FFB800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.author-role {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── CONTACT ──────────────────────────────── */
.contact-section {
  background: var(--dark-2);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 20px 0 36px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  font-size: 1.3rem;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.social-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-btn.whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
}

/* Contact Form */
.contact-form {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  padding: 12px 16px;
  transition: var(--transition);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.15);
}

.form-group select {
  appearance: none;
  cursor: pointer;
}

.form-group select option {
  background: var(--dark-3);
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: var(--radius-sm);
  color: #2ecc71;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* ── FOOTER ───────────────────────────────── */
.footer {
  background: #100d23;
  border-top: 1px solid var(--border);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-logo span {
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

/* Isologo in footer: transparent bg */
.footer-isologo {
  max-width: 130px;
  width: auto !important;
  height: 60px !important;
  background: transparent;
  padding: 0;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: #ffffff;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--dark);
}

.newsletter-form input {
  flex: 1;
  background: none;
  border: none;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  padding: 10px 14px;
  outline: none;
}

.newsletter-form button {
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 16px;
  transition: var(--transition);
  cursor: pointer;
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #ffffff;
  max-width: 100%;
}

/* ── CART SIDEBAR ─────────────────────────── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  backdrop-filter: blur(4px);
}

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

.cart-sidebar {
  position: fixed;
  right: -440px;
  top: 0;
  bottom: 0;
  width: 400px;
  background: var(--dark-2);
  border-left: 1px solid var(--border);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close:hover {
  background: var(--primary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  text-align: center;
  padding: 64px 24px;
}

.cart-empty span {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.cart-empty p {
  color: var(--text-muted);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--dark-3);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.qty-num {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: var(--primary);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.cart-total strong {
  font-size: 1.3rem;
  color: var(--primary);
}

/* ── QUICK VIEW MODAL ─────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  backdrop-filter: blur(8px);
}

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

.quick-view-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: min(90vw, 600px);
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 3001;
  padding: 40px;
  transition: var(--transition);
}

.quick-view-modal.active {
  display: block;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
}

.qv-gallery {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qv-main-img {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--dark-3);
}

.qv-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qv-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.qv-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.qv-thumbnails::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.qv-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: var(--dark-3);
  flex-shrink: 0;
}

.qv-thumb:hover {
  opacity: 0.8;
}

.qv-thumb.active {
  border-color: #c5d64a;
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-content .modal-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0 24px;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── TOAST ────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark-card);
  border: 1px solid rgba(255, 69, 0, 0.3);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── BACK TO TOP ──────────────────────────── */
.back-to-top {
  display: none !important; /* Removed as the 'corner button' requested */
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
}

/* ── ANIMATIONS ───────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(12px);
  }
}


.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    backdrop-filter: blur(20px);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .isologo {
    max-width: 110px;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card.featured {
    transform: none;
  }

  .hero-stats {
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  /* ── ADVANCED FILTERS MOBILE ── */
  .advanced-filters-panel {
    gap: 32px;
  }

  .extra-filters {
    flex-direction: column;
    gap: 24px;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .search-bar-wrap input[type="search"] {
    width: 100%;
    padding: 16px 20px 16px 48px;
  }

  .filter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .filter-tab {
    padding: 14px 10px;
    width: 100%;
    text-align: center;
  }

  .brand-pills {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-pill {
    padding: 10px 20px;
  }

  .color-swatches {
    flex-wrap: wrap;
    gap: 16px;
  }

  .color-swatch-filter {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons a {
    text-align: center;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 24px;
  }
}
/* -- PRODUCT DETAIL PAGE -------------------- */
#productDetailContainer {
  background: #FFFFFF !important;
  color: #000000 !important;
  border-radius: var(--radius);
  margin-top: 40px;
  margin-bottom: 80px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 60px;
}

.product-detail-gallery {
  position: sticky;
  top: 100px;
}

.main-img-wrap {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.main-img-wrap img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  color: #000;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-nav:hover {
  background: #000;
  color: #fff;
}

.gallery-nav.prev { left: 20px; }
.gallery-nav.next { right: 20px; }

.zoom-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #fff;
  pointer-events: none;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.thumb {
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 0;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.5;
}

.thumb:hover {
  opacity: 1;
}

.thumb.active {
  opacity: 1;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 20px;
}

.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #000; }

.category-tag {
  color: #000;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  border-bottom: 2px solid var(--brand-gold);
  padding-bottom: 2px;
}

.product-detail-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin: 15px 0;
  line-height: 1.05;
  color: #000;
}

.product-detail-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #000;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.product-detail-price .old-price {
  font-size: 1.3rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 600;
}

.product-meta {
  color: #000;
}

/* Color Selectors on White */
#productDetailContainer .color-pill {
  background: #f5f5f5 !important;
  border: 1px solid #ddd !important;
  color: #000 !important;
}

#productDetailContainer .color-circle {
  border: 1px solid rgba(0,0,0,0.1) !important;
  /* El background se mantiene del estilo en línea para mostrar el color real */
}

/* Size Grid Buttons on White */
.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.size-btn {
  background: #fff;
  border: 1px solid #000;
  color: #000;
  padding: 12px 5px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.size-btn:hover:not(.disabled) {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.size-btn.active {
  background: var(--brand-gold);
  color: #000;
  border-color: var(--brand-gold);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.size-btn.disabled {
  opacity: 0.15;
  cursor: not-allowed;
}

/* Qty Control on White */
.qty-control {
  background: #FFFFFF;
  border: 1px solid #ddd;
  border-radius: 4px;
  height: 50px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.qty-control button { 
  flex: 1;
  padding: 0 15px;
  color: #000; 
  font-weight: 700; 
  font-size: 1.2rem;
  background: transparent;
  transition: background 0.3s;
}

.qty-control button:hover {
  background: #f5f5f5;
}

.qty-control input { 
  width: 45px;
  border: none;
  background: transparent;
  color: #000; 
  font-weight: 700; 
  font-size: 1rem;
  text-align: center;
  outline: none;
}

.btn-add-cart {
  background: #ffcb3e !important;
  color: #000 !important;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px;
  border-radius: 4px !important;
  box-shadow: 0 4px 15px rgba(255, 203, 62, 0.2);
  margin-top: 0;
  transition: all 0.3s ease !important;
  border: none;
  text-transform: uppercase;
}

.btn-add-cart:hover:not(:disabled) {
  background: #13131c !important;
  color: #ffcb3e !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(19, 19, 28, 0.3);
}

/* Extra Info Blocks on White */
.info-blocks {
  margin-top: 40px;
  gap: 20px;
}

.info-block {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 20px;
}

.info-block-icon {
  line-height: 1;
}

.info-block-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-block-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tabs Section */
.product-tabs {
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

.tab-nav {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--text);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-gold);
}

.tab-content {
  padding: 40px 0;
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.tech-table {
  width: 100%;
  border-collapse: collapse;
}

.tech-table tr {
  border-bottom: 1px solid var(--border);
}

.tech-table th, .tech-table td {
  padding: 12px 0;
  text-align: left;
}

.tech-table th {
  width: 30%;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.tech-table td {
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
  margin-bottom: 40px;
}

.selectors {
  margin-bottom: 40px;
}

.selector-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
}

.selector-group select {
  width: 100%;
  padding: 15px;
  background: var(--dark-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 1rem;
}

.purchase-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-control button {
  padding: 15px 20px;
  color: var(--text);
  font-size: 1.2rem;
}

.qty-control input {
  width: 50px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.add-btn {
  flex: 1;
  font-size: 1.1rem;
  padding: 15px;
}

.detail-extra {
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* -- LIGHTBOX ------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  padding: 20px;
  cursor: pointer;
  transition: 0.2s;
  user-select: none;
  z-index: 10001;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--primary);
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-detail-gallery {
    position: relative;
    top: 0;
  }
  .product-detail-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .purchase-actions {
    flex-direction: column;
  }
  .qty-control {
    justify-content: center;
  }
}

/* ── CORRECCIONES FILTROS MOBILE ──────────────── */
@media (max-width: 768px) {
  .advanced-filters-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .search-bar-wrap {
    width: 100%;
    margin-bottom: 8px;
  }

  .search-bar-wrap input[type="search"] {
    width: 100%;
    padding: 16px 20px 16px 48px;
    font-size: 1.05rem;
  }

  .filter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
  }

  .filter-tab {
    width: 100%;
    padding: 12px 10px;
    font-size: 1rem;
    text-align: center;
  }

  .extra-filters {
    flex-direction: column;
    gap: 24px;
    padding-top: 20px;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-pill {
    padding: 8px 18px;
    font-size: 0.95rem;
  }

  .color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .color-swatch-filter {
    width: 36px;
    height: 36px;
  }
}
/* ── WHITE EDITION: STORE REDESIGN ──────────────── */
.white-edition {
  background: #ffffff !important;
  color: #333333 !important;
  padding: 60px 0;
}

.white-edition .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sticky Sidebar */
.sidebar-filters {
  position: sticky;
  top: 100px;
  background: #fff;
  padding-right: 20px;
  border-right: 1px solid #eeeeee;
  height: calc(100vh - 120px);
  overflow-y: auto;
}

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

.sidebar-filters::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-filters::-webkit-scrollbar-thumb {
  background: #ffcb3e;
  border-radius: 10px;
}

.sidebar-filters::-webkit-scrollbar-thumb:hover {
  background: #e6b637;
}


.filter-section {
  margin-bottom: 30px;
}

.filter-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #000;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* US Size Grid in Sidebar */
.size-grid-sidebar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.size-item-sidebar {
  border: 1px solid #ddd;
  padding: 8px 4px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.size-item-sidebar:hover, .size-item-sidebar.active {
  border-color: #000;
  background: #f8f8f8;
}

/* White Edition Card Styles */
.white-edition .product-card {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center;
  padding-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, padding-bottom 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Filtros: ocultar cards que no coincidan con los filtros activos */
.white-edition .product-card.hidden {
  display: none !important;
}

.white-edition .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
  padding-bottom: 68px; /* Extra space for the button */
}


.white-edition .product-img-wrap {
  background: #fbfbfb !important;
  border-radius: 8px;
  margin-bottom: 15px;
  flex-shrink: 0;
}

/* Card Add Button (Meta Sports Style) */
.card-add-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: #ffcb3e !important;
  color: #000 !important;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.white-edition .product-card:hover .card-add-btn {
  transform: translateY(0);
}

.card-add-btn:active {
  background: #e6b637 !important;
  transform: scale(0.98) translateY(0);
}

.card-add-btn.agotado {
  background: #dddddd !important;
  color: #888888 !important;
  cursor: not-allowed !important;
  transform: translateY(100%); /* Stays hidden unless hover, but gray on hover */
}

.white-edition .product-card:hover .card-add-btn.agotado {
  transform: translateY(0);
}

.card-add-btn.disabled {
  background: #ccc !important;
  cursor: not-allowed;
  opacity: 0.6;
}


.white-edition .product-info {
  flex: 1;
  padding: 0 15px 15px;
  display: flex;
  flex-direction: column;
}

.white-edition .product-category-label {
  background: transparent !important;
  color: #777 !important;
  font-weight: 600 !important;
  font-size: 0.7rem;
  margin-bottom: 4px;
}

.white-edition .product-name {
  color: #000 !important;
  font-size: 1rem !important;
  margin: 4px 0;
  text-transform: capitalize;
}

.white-edition .status-badge {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.white-edition .product-price {
  color: #000 !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  display: block;
  margin-bottom: 10px;
}

/* Card Size Grid (Interactive) */
.card-size-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
}

.size-box {
  width: 32px;
  height: 24px;
  border: 1px solid #eee;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-box:hover {
  border-color: #333;
}

.size-box.active,
.size-box.selected {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}



/* Price Range Slider */
.price-slider-wrap {
  padding: 10px 0;
}

.price-slider-wrap input {
  width: 100%;
}

@media (max-width: 1024px) {
  .white-edition .container {
    grid-template-columns: 1fr;
  }
  .sidebar-filters {
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    padding-right: 0;
    margin-bottom: 40px;
    display: none; /* In mobile we could use a modal but for now we follow reference desktop sidebar */
  }
}

/* ──────────────────────────────────────────────── */

/* ── NOTIFICATIONS ────────────────────────── */
.notif-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notif {
  background: #13131c;
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border-left: 4px solid var(--brand-lime);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInNotif 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: auto;
}

.notif.leaving {
  animation: slideOutNotif 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes slideInNotif {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutNotif {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(50px); }
}

/* ── SELECTED SIZE ────────────────────────── */
.size-box {
    transition: all 0.2s ease;
    cursor: pointer;
}

.size-box.selected {
  background: var(--brand-lime) !important;
  color: #000 !important;
  border-color: var(--brand-lime) !important;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(197, 214, 74, 0.3);
}

.cart-count.pulse {
  animation: pulseCart 0.3s ease;
}

@keyframes pulseCart {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
