/*
 * MyShopping — Estilos de la tienda de cosméticos coreanos
 * @author israel-icm
 * @date 2026-05-15
 */

:root {
  --primary: #be0560;
  --primary-light: #e84a8c;
  --primary-dark: #8e0448;
  --primary-alpha: rgba(190, 5, 96, 0.08);
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --bg-light: #faf5f7;
  --white: #ffffff;
  --bg-footer: #1a1a2e;
  --border-light: #e5e5e5;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 80px;
  --header-scroll-h: 56px;
  /* Semantic colors — armonizados con paleta rosa #be0560 */
  --color-success: #388e3c;
  --color-error: #c62828;
  --color-warning: #e65100;
  --color-info: #1565c0;
  /* Spacing scale (multiples of 4px) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

[data-theme="dark"] {
  --primary: #e8509a;
  --primary-alpha: rgba(233, 26, 135, 0.18);
  --text-dark: #f1f1f6;
  --text-muted: #9ca3af;
  --bg-light: #16162a;
  --white: #1e1e36;
  --bg-footer: #0f0f22;
  --border-light: #3a3a5c;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  /* Semantic colors — dark (más brillo para contraste) */
  --color-success: #66bb6a;
  --color-error: #ef5350;
  --color-warning: #ffa726;
  --color-info: #42a5f5;
}

[data-theme="dark"] .carousel-content { color: #fff; }
[data-theme="dark"] .footer-links h4,
[data-theme="dark"] .footer-brand h3 { color: #f1f1f6; }
[data-theme="dark"] .carousel-subtitle { color: rgba(255,255,255,0.8); }
[data-theme="dark"] .location-badge { color: #fff; }
[data-theme="dark"] .splash-overlay { background: var(--bg-light); }
[data-theme="dark"] .parallax-overlay h2 { color: #fff; }
[data-theme="dark"] .parallax-overlay p { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .newsletter-overlay { color: #fff; }
[data-theme="dark"] .newsletter-form input { background: #fff; color: #1a1a2e; }
[data-theme="dark"] .newsletter-form button { background: #1a1a2e; color: #fff; }
[data-theme="dark"] .newsletter-form button:hover { background: #000; }

[data-theme="dark"] .btn-primary {
  color: #fff;
}

[data-theme="dark"] .product-card {
  background: #2a2a4a;
}

[data-theme="dark"] #header.scrolled {
  background: rgba(30,30,54,0.97);
}
[data-theme="dark"] #header.scrolled .icon-btn {
  color: var(--text-dark);
}
/* Overrides oscuros para el header */
[data-theme="dark"] .nav-left a,
[data-theme="dark"] .nav-right a,
[data-theme="dark"] .icon-btn {
  color: #fff;
}
[data-theme="dark"] #header.scrolled .nav-left a,
[data-theme="dark"] #header.scrolled .nav-right a {
  color: var(--text-dark);
}

[data-theme="dark"] .mobile-menu {
  background: rgba(30, 30, 54, 0.97);
}

[data-theme="dark"] .mobile-menu a {
  color: var(--text-dark);
  border-bottom-color: rgba(255,255,255,0.08);
}



[data-theme="dark"] .mobile-theme-row {
  color: var(--text-dark);
  border-bottom-color: rgba(255,255,255,0.08);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
ul { list-style: none; }
input { font-family: inherit; outline: none; border: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: transparent;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  height: var(--header-scroll-h);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
}

/* ============================
   SPLASH SCREEN
   ============================ */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-overlay::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, var(--primary) 0%, transparent 60%);
  filter: blur(50px);
  opacity: 0.12;
  pointer-events: none;
}

.splash-overlay.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  width: clamp(180px, 40vw, 380px);
  height: auto;
  filter: url(#splash-color);
  animation: splashPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes splashPop {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Exit animation: reverse of splashPop */
.splash-overlay.splash-hidden .splash-logo {
  animation: splashPopOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashPopOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.7);
  }
}

.header-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
  position: relative;
  height: 100%;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  transition: background var(--transition), color var(--transition);
}

#header.scrolled .icon-btn {
  color: var(--text-dark);
}

.icon-btn:hover {
  background: var(--primary-alpha);
  color: var(--primary);
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-svg {
  display: block;
  height: 70px;
  width: auto;
  fill: var(--primary);
  transition: height var(--transition);
}

html[data-theme="dark"] .logo-svg {
  fill: #be0560;
}

#header.scrolled .logo-svg {
  height: 48px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-right {
  margin-left: auto;
}

.nav-left a,
.nav-right a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

#header.scrolled .nav-left a,
#header.scrolled .nav-right a {
  color: var(--text-dark);
}

.nav-left a::after,
.nav-right a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-left a:hover::after,
.nav-right a:hover::after { width: 100%; }

.nav-left a:hover,
.nav-right a:hover { color: var(--primary); }

/* Active state for nav links */
.nav-left a:active,
.nav-right a:active,
.nav-left a.active,
.nav-right a.active {
  color: var(--primary);
}
.nav-left a:active::after,
.nav-right a:active::after,
.nav-left a.active::after,
.nav-right a.active::after {
  width: 100%;
  background: var(--primary);
}

.menu-toggle { display: none; }

/* Bloquea interaccion con productos cuando menu/carrito esta abierto */
body.menu-open #hero,
body.menu-open .parallax-section,
body.menu-open #products,
body.menu-open .newsletter-section,
body.menu-open .footer {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-theme-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: transparent;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
}

.mobile-theme-row i {
  width: 28px;
  font-size: 16px;
  flex-shrink: 0;
  text-align: center;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color var(--transition);
}

.mobile-menu a i {
  width: 28px;
  font-size: 16px;
  flex-shrink: 0;
  text-align: center;
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-admin-link {
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0.6;
  font-size: 0.85rem !important;
}

html[data-theme="dark"] .mobile-admin-link {
  border-top-color: rgba(255,255,255,0.06);
}

.mobile-menu a:hover,
.mobile-theme-row:hover { color: var(--primary); }

/* ===== HERO / CAROUSEL ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.location-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.flag-icon {
  border-radius: 2px;
  flex-shrink: 0;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(190,5,96,0.30) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.carousel-content {
  text-align: center;
  color: var(--white);
  max-width: 700px;
  padding: 0 20px;
  animation: fadeUp 1s ease 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.8;
}

.carousel-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.carousel-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  margin-bottom: 32px;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233,26,135,0.35);
}

.carousel-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dots span.active {
  background: var(--white);
  transform: scale(1.3);
}

/* Hero prev/next arrows */
.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, transform 0.25s ease;
  opacity: 0;
  visibility: hidden;
}
.hero:hover .hero-btn {
  opacity: 1;
  visibility: visible;
}
.hero-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-50%) scale(1.1);
}
.hero-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

@media (max-width: 768px) {
  .hero-btn {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }
}

/* ===== PARALLAX SEPARATOR ===== */
.parallax-section {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.parallax-overlay {
  background: linear-gradient(135deg, rgba(190,5,96,0.80), rgba(0,0,0,0.50));
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.parallax-overlay h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white);
  margin-bottom: 12px;
}

.parallax-overlay p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
}

/* ===== PRODUCTS ===== */
.products-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-dark);
}

.search-wrapper {
  max-width: 500px;
  margin: 0 auto 48px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  padding: 4px 4px 4px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(190,5,96,0.10);
}

.search-box i {
  color: var(--text-muted);
  font-size: 16px;
  margin-right: 12px;
}

.search-box input {
  flex: 1;
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: transparent;
}

.search-box input::placeholder { color: #9ca3af; }

/* === Category Pills (horizontal scroll) === */
.category-pills-wrap {
  max-width: 100%;
  margin: -20px auto 24px;
  position: relative;
}

.category-pills-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 28px 8px;
  scroll-behavior: smooth;
  /* Mask con fade en los bordes — anima como "succión" */
  -webkit-mask-image: linear-gradient(to right, transparent 0px, #000 24px, #000 calc(100% - 24px), transparent calc(100% - 0px));
  mask-image: linear-gradient(to right, transparent 0px, #000 24px, #000 calc(100% - 24px), transparent calc(100% - 0px));
  -webkit-mask-composite: content-box;
  mask-composite: exclude;
  transition: mask-image 0.15s ease, -webkit-mask-image 0.15s ease;
}

.category-pills-scroll::-webkit-scrollbar { display: none; }

/* Flechas de scroll */
.category-scroll-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 1;
  transition: opacity var(--transition), transform var(--transition), color var(--transition);
}

.category-scroll-arrow:hover {
  color: var(--primary);
  transform: scale(1.08);
}

.category-scroll-arrow:active {
  transform: scale(0.95);
}

.category-scroll-arrow.-left {
  left: 4px;
}

.category-scroll-arrow.-right {
  right: 4px;
}

/* Ocultar flecha cuando no hay más scroll en esa dirección */
.category-scroll-arrow.is-hidden {
  opacity: 0 !important;
  pointer-events: none;
}

[data-theme="dark"] .category-scroll-arrow {
  background: #2a2a4a;
  color: var(--text-muted);
}

[data-theme="dark"] .category-scroll-arrow:hover {
  color: var(--primary-light);
}

.category-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  user-select: none;
}

.category-pill:hover {
  color: var(--primary);
  border-color: var(--primary-light);
  background: var(--primary-alpha);
}

.category-pill.active {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(190,5,96,0.25);
}

.category-pill i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.category-pill-img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

[data-theme="dark"] .category-pill {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-light);
}

[data-theme="dark"] .category-pill:hover {
  background: rgba(190,5,96,0.15);
  border-color: var(--primary-light);
}

[data-theme="dark"] .category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  min-height: 200px;
  position: relative;
}

.products-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  z-index: 5;
}

.products-spinner.hidden {
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner.sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.order-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Spotlight scroll-highlight on product card */
.highlight-card {
  animation: order-highlight 2s ease-out;
}

@keyframes order-highlight {
  0%   { box-shadow: 0 0 0 0 var(--primary); }
  25%  { box-shadow: 0 0 0 4px var(--primary); transform: scale(1.03); }
  50%  { box-shadow: 0 0 0 4px var(--primary); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 0 var(--primary); transform: scale(1); }
}

.product-card.order-highlight {
  animation: order-highlight 1s ease-out;
}

.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.product-card:has(.tooltip-visible) {
  z-index: 10;
}

.product-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    position: relative;
    z-index: 10;
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .product-card.in-order:hover {
    box-shadow: 0 0 0 2px var(--primary), 0 12px 32px rgba(0,0,0,0.12);
  }

  html[data-theme="dark"] .product-card.in-order:hover {
    box-shadow: 0 0 0 2px var(--primary), 0 8px 30px rgba(233, 26, 135, 0.35);
  }

  html[data-theme="dark"] .product-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  }

  .product-card:hover .product-card-image img {
    transform: scale(1.08);
  }

  .card-add-btn:hover,
  .card-share-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
  }
}

.product-card.in-order {
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-sm);
}

/* ===== SKELETON CARDS ===== */
.skeleton-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: skeletonReveal 0.4s ease forwards, pulse 1.5s ease-in-out infinite;
}
.skeleton-card:nth-child(1) { animation-delay: 0s, 0.4s; }
.skeleton-card:nth-child(2) { animation-delay: 0.05s, 0.45s; }
.skeleton-card:nth-child(3) { animation-delay: 0.1s, 0.5s; }
.skeleton-card:nth-child(4) { animation-delay: 0.15s, 0.55s; }
.skeleton-card:nth-child(5) { animation-delay: 0.2s, 0.6s; }
.skeleton-card:nth-child(6) { animation-delay: 0.25s, 0.65s; }
.skeleton-card:nth-child(7) { animation-delay: 0.3s, 0.7s; }
.skeleton-card:nth-child(8) { animation-delay: 0.35s, 0.75s; }
.skeleton-card:nth-child(9) { animation-delay: 0.4s, 0.8s; }
.skeleton-card:nth-child(10) { animation-delay: 0.45s, 0.85s; }
.skeleton-card:nth-child(11) { animation-delay: 0.5s, 0.9s; }
.skeleton-card:nth-child(12) { animation-delay: 0.55s, 0.95s; }

@keyframes skeletonReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.skeleton-card-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius) var(--radius) 0 0;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card-body {
  padding: 20px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  margin-bottom: 10px;
}

.skeleton-line-sm {
  width: 40%;
  height: 8px;
}

.skeleton-line-lg {
  width: 70%;
  height: 14px;
}

html[data-theme="dark"] .skeleton-card-image,
html[data-theme="dark"] .skeleton-line {
  background: linear-gradient(90deg, #2a2a4a 25%, #3a3a5c 50%, #2a2a4a 75%);
  background-size: 200% 100%;
}

/* ===== PRODUCT BADGES ===== */
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
  line-height: 1.2;
}
.badge-new {
  background: var(--primary);
  color: #fff;
}
.badge-out {
  background: #6b7280;
  color: #fff;
}

html[data-theme="dark"] .product-card.in-order {
  box-shadow: 0 0 0 2px var(--primary), 0 4px 20px rgba(233, 26, 135, 0.25);
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #f3f0f2;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card-body {
  padding: 20px;
}

.product-card-brand {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-card-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.card-add-btn,
.card-share-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  border: 1.5px solid var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.card-add-btn.added {
  background: var(--primary);
  color: var(--white);
}

.card-add-btn:active,
.card-share-btn:active {
  transform: scale(0.92);
}

/* ===== CART BADGE ===== */
.cart-toggle {
  position: relative;
}

.cart-wrapper {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
  pointer-events: none;
}

.cart-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.cart-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s;
}

.cart-dropdown-item:hover {
  background: var(--primary-alpha);
}

.cart-dropdown-item:first-child {
  margin-bottom: 2px;
}

.cart-dropdown-danger {
  color: #dc2626 !important;
  border-top: 1px solid var(--border-color, #e5e7eb);
  margin-top: 6px;
  padding-top: 12px;
  border-radius: 0;
}

.cart-dropdown-danger:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}

/* Tooltips en botones de card */
.card-add-btn,
.card-share-btn {
  position: relative;
}

.card-add-btn::after,
.card-share-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-family: inherit;
}

.card-add-btn::before,
.card-share-btn::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card-add-btn:hover::after,
  .card-share-btn:hover::after,
  .card-add-btn:hover::before,
  .card-share-btn:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Tooltip en movil: se muestra con clase JS (pulsacion prolongada) */
.card-add-btn.tooltip-visible::after,
.card-share-btn.tooltip-visible::after,
.card-add-btn.tooltip-visible::before,
.card-share-btn.tooltip-visible::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  display: none;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.newsletter-overlay {
  background: linear-gradient(135deg, rgba(190,5,96,0.85), rgba(0,0,0,0.60));
  padding: 100px 0;
  text-align: center;
  color: var(--white);
}

.newsletter-overlay h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.newsletter-overlay p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  max-width: 450px;
  margin: 0 auto;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.newsletter-form button {
  padding: 14px 32px;
  background: var(--text-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: background var(--transition);
}

.newsletter-form button:hover {
  background: #000;
}

body.modal-open {
  overflow: hidden;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background 0.4s ease;
}

.modal-overlay.open {
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-scroll {
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-gutter: stable;
  padding-bottom: 28px;
}

.modal-content.hidden {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  font-size: 26px;
  line-height: 1;
  color: #fff;
  z-index: 10;
  transition: background var(--transition);
}

.modal-close:hover {
  background: rgba(0,0,0,0.5);
}

.modal-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Carrusel en modal de producto ===== */
.modal-carousel {
  position: relative;
  width: 100%;
}
.modal-carousel-viewport {
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.modal-carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}
.modal-carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}
.modal-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #333;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;
  transition: background 0.15s, box-shadow 0.15s;
}
.modal-carousel-btn:hover {
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.modal-carousel-prev { left: 10px; }
.modal-carousel-next { right: 10px; }
/* ===== Thumbnails en carrusel del modal ===== */
.modal-carousel-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.modal-carousel-thumbs::-webkit-scrollbar { display: none; }
.modal-carousel-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, opacity 0.15s;
  opacity: 0.5;
}
.modal-carousel-thumb.active {
  border-color: var(--primary, #be0560);
  opacity: 1;
}
.modal-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Precio superpuesto en el carrusel */
.modal-carousel-price {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary, #be0560);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 14px 0 0 0;
  z-index: 3;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
.modal-carousel-thumbs + .modal-carousel-price {
  bottom: 60px;
}

.modal-body {
  padding: 28px;
}



.modal-brand {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.modal-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin: 0 0 4px;
  color: var(--text-dark);
  line-height: 1.3;
}

.modal-category {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Videos en modal de producto */
.modal-videos {
  margin-bottom: 24px;
  padding-top: 8px;
  border-top: 1px solid rgba(128,128,128,0.15);
}

.modal-videos-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.modal-video-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: var(--bg-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.modal-video-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.modal-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-video-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
}

.modal-video-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background var(--transition);
}

.modal-video-thumb-play i {
  font-size: 2.5rem;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: transform var(--transition);
}

.modal-video-thumb:hover .modal-video-thumb-play {
  background: rgba(0,0,0,0.35);
}

.modal-video-thumb:hover .modal-video-thumb-play i {
  transform: scale(1.1);
}

.modal-video-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Video lightbox */
.video-lightbox .lightbox-content {
  width: 90vw;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-lightbox .lightbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-lightbox-direct {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.video-lightbox-direct i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.video-lightbox-direct .btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.modal-buy,
.modal-add-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
}

.modal-buy:hover,
.modal-add-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.modal-add-btn i {
  font-size: 1rem;
}

/* ===== MODAL QUANTITY SELECTOR ===== */
.modal-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}
.modal-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background: var(--white);
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}
.modal-qty-btn:hover {
  background: var(--primary-alpha);
  border-color: var(--primary);
  color: var(--primary);
}
.modal-qty-value {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
  color: var(--text-dark);
}
html[data-theme="dark"] .modal-qty-btn {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: var(--text-dark);
}
html[data-theme="dark"] .modal-qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

html[data-theme="dark"] .modal-videos-title {
  color: var(--text-dark);
}

html[data-theme="dark"] .modal-video-thumb {
  background: #2a2a3e;
}

/* ===== LIGHTBOX OVERLAY ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
  .lightbox-overlay { padding: 20px; }
}



/* ===== FOOTER ===== */
.footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-admin-link {
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  font-size: 0.72rem;
  transition: color 0.2s;
}

.footer-admin-link:hover {
  color: rgba(255,255,255,0.5);
}

/* ============================
   SPOTLIGHT SEARCH
   ============================ */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: min(15vh, 120px);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.spotlight-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Input wrap — always visible, entry animation from overlay */
.spotlight-input-wrap {
  width: min(620px, 90vw);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(-16px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.spotlight-overlay.active .spotlight-input-wrap {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* When panel appears below, flatten input-wrap bottom corners */
.spotlight-input-wrap.has-panel {
  border-radius: 14px 14px 0 0;
}

.spotlight-input-wrap i {
  color: var(--text-muted);
  font-size: 18px;
}

.spotlight-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text-dark);
  background: transparent;
}

.spotlight-input-wrap input::placeholder {
  color: #9ca3af;
}

.spotlight-hint {
  font-size: 0.7rem;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: inherit;
}

/* Results panel — hidden by default, shown when results arrive */
.spotlight-panel {
  width: min(620px, 90vw);
  background: var(--white);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  display: none;
  margin-top: -1px;
  max-height: 50vh;
}

.spotlight-panel.active {
  display: block;
}

.spotlight-results {
  scroll-behavior: smooth;
}

.spotlight-results.has-items {
  padding: 8px 0;
}

.spotlight-results::-webkit-scrollbar {
  width: 6px;
}

.spotlight-results::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 3px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.spotlight-item:hover,
.spotlight-item.active {
  background: var(--primary-alpha);
}

.spotlight-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.spotlight-item-info {
  flex: 1;
  min-width: 0;
}

.spotlight-item-info .name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-info .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.spotlight-item .price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.spotlight-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== FAQ OVERLAY ===== */
#faqOverlay {
  padding-top: 0;
  justify-content: center;
}

#faqOverlay .spotlight-input-wrap {
  width: min(900px, 92vw);
  border-radius: 16px 16px 0 0;
}

#faqOverlay .spotlight-input-wrap input {
  font-size: 1.15rem;
}

#faqPanel.spotlight-panel {
  width: min(900px, 92vw);
  max-height: 72vh;
  border-radius: 0 0 16px 16px;
}

.faq-grid {
  padding: 0;
  max-height: 72vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.faq-grid.has-items {
  padding: 28px;
}

.faq-grid::-webkit-scrollbar {
  width: 10px;
}

.faq-grid::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 5px;
}

.faq-card {
  background: var(--bg-secondary, #fafafa);
  border-radius: 18px;
  padding: 36px 40px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.2s;
  border: 1px solid var(--border-light, #eaeaea);
}

.faq-card:last-child {
  margin-bottom: 0;
}

.faq-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

html[data-theme="dark"] .faq-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .faq-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.faq-card .faq-question {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.5;
}

.faq-card .faq-answer {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-card .faq-answer p {
  margin: 0 0 10px 0;
}

.faq-card .faq-answer p:last-child {
  margin-bottom: 0;
}

/* responsive: menos padding en mobile */
@media (max-width: 600px) {
  .faq-grid.has-items { padding: 16px; }
  .faq-card { padding: 24px 20px; }
  .faq-card .faq-question { font-size: 1.1rem; }
  .faq-card .faq-answer { font-size: 0.95rem; }
}

/* ===== CONTACTS OVERLAY ===== */
.contacts-modal {
  width: min(480px, 92vw);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

#contactsOverlay.active .contacts-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contacts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.contacts-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.contacts-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.contacts-close:hover {
  color: var(--text-dark);
}

.contacts-body {
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Share modal for WhatsApp product sharing */
.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.share-overlay.open {
  opacity: 1;
  visibility: visible;
}

.share-modal {
  background: var(--white);
  border-radius: 20px;
  width: min(380px, 88vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.share-overlay.open .share-modal {
  transform: scale(1);
}

.share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.share-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.share-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: background 0.15s;
}

.share-close:hover {
  background: rgba(0,0,0,0.12);
}

.share-body {
  padding: 16px 24px 24px;
}

.share-product {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.4;
}

.share-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.share-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.share-input-wrap:focus-within {
  border-color: var(--primary);
}

.share-prefix {
  padding: 0 0 0 14px;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.share-input {
  flex: 1;
  border: none;
  padding: 12px 14px 12px 8px;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: var(--text-dark);
  outline: none;
}

.share-send-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.15s;
}

.share-send-btn:hover {
  background: #1da851;
  transform: translateY(-1px);
}

.share-send-btn:active {
  transform: translateY(0);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--bg-secondary, #f9fafb);
  border: 1px solid var(--border-light, #f0f0f0);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.contact-item:hover {
  background: var(--primary-alpha);
  transform: translateY(-1px);
}

html[data-theme="dark"] .contact-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .contact-item:hover {
  background: rgba(190, 5, 96, 0.18);
}

html[data-theme="dark"] .shipping-modal {
  background: #1e1e3a;
}

html[data-theme="dark"] .shipping-header h2 {
  color: #fff;
}

html[data-theme="dark"] .shipping-close { color: rgba(255,255,255,0.5); }
html[data-theme="dark"] .shipping-close:hover { color: #fff; }

html[data-theme="dark"] .shipping-promo {
  background: rgba(46, 125, 50, 0.15);
  border-color: rgba(46, 125, 50, 0.3);
  color: #81c784;
}

html[data-theme="dark"] .shipping-promo i { color: #81c784; }

html[data-theme="dark"] .shipping-intro { color: rgba(255,255,255,0.6); }

html[data-theme="dark"] .shipping-table { border-color: rgba(255,255,255,0.1); }

html[data-theme="dark"] .shipping-row:nth-child(even) { background: rgba(255,255,255,0.04); }

html[data-theme="dark"] .shipping-row-header {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.5);
}

html[data-theme="dark"] .shipping-dept { color: rgba(255,255,255,0.85); }
html[data-theme="dark"] .shipping-cost { color: rgba(255,255,255,0.6); }
html[data-theme="dark"] .shipping-free { color: #81c784; }

html[data-theme="dark"] .shipping-footnote { color: rgba(255,255,255,0.4); }

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  color: #fff;
}

.contact-icon.whatsapp { background: #25D366; }
.contact-icon.email { background: #ea4335; }
.contact-icon.tiktok { background: #111111; }
.contact-icon.facebook { background: #1877f2; }

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  word-break: break-all;
}

.contact-arrow {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.contact-item:hover .contact-arrow {
  transform: translateX(4px);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: #fff;
  padding: 12px 16px 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 300000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  font-family: inherit;
}

.toast i {
  font-size: 18px;
  color: #22c55e;
  flex-shrink: 0;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-revert {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.toast-revert:hover {
  background: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .toast {
  background: #374151;
}

/* ===== CONFIRM DIALOG ===== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.confirm-overlay.active {
  opacity: 1;
  visibility: visible;
}

.confirm-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 36px 28px;
  width: min(380px, 88vw);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.confirm-overlay.active .confirm-modal {
  transform: scale(1);
}

.confirm-icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 12px;
}

.success-mode .confirm-icon {
  color: #22c55e;
}

.success-mode .confirm-actions .confirm-no {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.confirm-message {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 500;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.confirm-btn:hover {
  transform: translateY(-1px);
}

.confirm-no {
  background: var(--bg-secondary, #f3f4f6);
  color: var(--text-dark);
}

.confirm-no:hover {
  background: #e5e7eb;
}

.confirm-yes {
  background: var(--primary);
  color: #fff;
}

.confirm-yes:hover {
  background: var(--primary-dark, #a00450);
}

/* ===== ORDER PAGE ===== */
.order-page {
  padding: 100px 0 80px;
  background: var(--bg-light);
  min-height: 60vh;
}

/* En modo orden, ocultar navegación y solo mostrar el logo */
#header.order-mode .nav-left,
#header.order-mode .nav-right,
#header.order-mode .header-left,
#header.order-mode .header-right {
  display: none !important;
}

#header.order-mode {
  justify-content: center;
}

#header.order-mode .header-container {
  justify-content: center;
}

/* Indicador de campo requerido */
.required {
  color: #e74c3c;
  font-weight: 700;
}

/* Mensaje de error inline */
.order-error {
  display: none;
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 4px;
}

.order-error.is-visible {
  display: block;
}

.order-input.error,
.order-textarea.error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

html[data-theme="dark"] .order-input.error,
html[data-theme="dark"] .order-textarea.error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25);
}

.order-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 36px;
  line-height: 1.4;
}

.order-step {
  margin-bottom: 28px;
}

.order-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

.order-label b {
  color: var(--primary);
}

.order-input,
.order-select,
.order-textarea {
  width: 100%;
  max-width: 500px;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
}

.order-input:focus,
.order-select:focus,
.order-textarea:focus {
  border-color: var(--primary);
}

.order-textarea {
  min-height: 100px;
  resize: vertical;
  max-width: 500px;
}

.custom-select {
  position: relative;
  max-width: 500px;
  cursor: pointer;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  font-family: inherit;
}

.custom-select-trigger:focus {
  border-color: var(--primary);
}

.custom-select-trigger i {
  font-size: 14px;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.custom-select.open .custom-select-trigger i {
  transform: rotate(180deg);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--primary);
  border-radius: 10px 10px 0 0;
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--primary);
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.custom-select.open .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: background 0.12s;
}

.custom-select-option:hover {
  background: var(--primary-alpha);
}

.custom-select-option.selected {
  font-weight: 600;
  color: var(--primary);
}

.custom-select-option:first-child {
  color: var(--text-muted);
  font-weight: 400;
}

.custom-select-trigger.has-value {
  color: var(--text-dark);
}

html[data-theme="dark"] .custom-select-trigger {
  background: #2a2a4a;
  border-color: rgba(255,255,255,0.12);
}

html[data-theme="dark"] .custom-select-trigger:focus,
html[data-theme="dark"] .custom-select.open .custom-select-trigger {
  border-color: var(--primary);
}

html[data-theme="dark"] .custom-select-options {
  background: #2a2a4a;
  border-color: var(--primary);
}

.order-products {
  margin-bottom: 16px;
}

.order-product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.order-product-item:last-child {
  border-bottom: none;
}

.order-product-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.order-product-info {
  flex: 1;
  min-width: 0;
}

.order-product-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.order-product-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.order-product-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.order-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-light, #e0e0e0);
  background: var(--white);
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
  font-family: inherit;
}

.order-qty-btn:hover {
  background: var(--primary-alpha, rgba(190,5,96,0.08));
  border-color: var(--primary);
}

.order-qty-value {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: var(--text-dark);
}

.order-product-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  margin-right: 8px;
}

.order-product-remove {
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.order-product-remove:hover {
  background: rgba(211, 47, 47, 0.12);
}

html[data-theme="dark"] .order-product-remove {
  color: #ef5350;
}

html[data-theme="dark"] .order-product-remove:hover {
  background: rgba(239, 83, 80, 0.15);
}

.order-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 12px 0;
  border-top: 2px solid var(--primary);
  text-align: right;
}

/* Botón volver en la orden */
.order-back-row {
  margin-bottom: 16px;
}

.order-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  transition: color var(--transition);
}

.order-back-btn i {
  margin-right: 6px;
}

.order-back-btn:hover {
  color: var(--primary);
}

html[data-theme="dark"] .order-back-btn:hover {
  color: var(--primary);
}

/* Botones de acción en la orden */
.order-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.order-btn {
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  border: 2px solid transparent;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.order-btn:hover {
  transform: translateY(-2px);
}

.order-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.order-btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.order-btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.order-btn-outline:hover {
  background: var(--primary-alpha, rgba(190, 5, 96, 0.08));
}

html[data-theme="dark"] .order-btn-outline:hover {
  background: rgba(233, 26, 135, 0.12);
}

.order-btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.order-btn-secondary:hover {
  background: rgba(0,0,0,0.05);
  color: #e74c3c;
  border-color: #e74c3c;
}

html[data-theme="dark"] .order-btn-secondary:hover {
  background: rgba(255,255,255,0.05);
}

html[data-theme="dark"] .order-input,
html[data-theme="dark"] .order-select,
html[data-theme="dark"] .order-textarea {
  background: #2a2a4a;
  border-color: rgba(255,255,255,0.12);
  color: var(--text-dark);
}

html[data-theme="dark"] .order-input:focus,
html[data-theme="dark"] .order-select:focus,
html[data-theme="dark"] .order-textarea:focus {
  border-color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-left, .nav-right {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-left .search-toggle {
    margin-left: auto;
  }

  .header-right {
    margin-left: auto;
  }

  .header-right .theme-toggle {
    display: none;
  }

  .spotlight-input-wrap input {
    font-size: 0.9rem;
  }

  .mobile-menu {
    display: flex;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1660px) {
  .location-badge {
    top: auto;
    bottom: 20px;
    left: 20px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }

  .carousel-title {
    font-size: 1.8rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .product-card-body {
    padding: 14px;
  }

  .product-card-brand {
    font-size: 0.72rem;
  }

  .product-card-name {
    font-size: 0.82rem;
  }

  .spotlight-input-wrap input {
    font-size: 0.85rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .parallax-section,
  .newsletter-section {
    background-attachment: scroll;
  }

  .carousel-slide {
    background-attachment: scroll;
  }
}

/* ===== TABLET BREAKPOINT (768px–1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card-body {
    padding: 10px;
  }

  .product-card-brand {
    font-size: 0.6rem;
  }

  .product-card-name {
    font-size: 0.75rem;
  }

  .product-card-price {
    font-size: 0.95rem;
  }

  .spotlight-input-wrap input {
    font-size: 0.8rem;
  }

  .spotlight-hint {
    display: none;
  }
}

/* ===== BRANDS OVERLAY ===== */
.brand-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.brand-item:hover,
.brand-item.active {
  background: var(--primary-alpha);
}

.brand-item .brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.brand-item .brand-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.brand-item .brand-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== BRAND FILTER BAR ===== */
.brand-filter-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  margin-bottom: 24px;
  background: var(--primary-alpha);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-dark);
}

.brand-filter-bar.active {
  display: flex;
}

.brand-filter-bar .clear-filter {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 50px;
  transition: background 0.2s;
}

.brand-filter-bar .clear-filter:hover {
  background: rgba(190,5,96,0.12);
}

/* ===== SHIPPING OVERLAY ===== */
.shipping-modal {
  width: min(520px, 92vw);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

#shippingOverlay.active .shipping-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.shipping-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.shipping-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shipping-header h2 i {
  color: var(--primary);
}

.shipping-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.shipping-close:hover { color: var(--text-dark); }

.shipping-body {
  padding: 20px 28px 28px;
}

.shipping-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #2e7d32;
}

.shipping-promo i {
  font-size: 1.4rem;
  color: #43a047;
}

.shipping-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 18px;
}

.shipping-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.shipping-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.shipping-row:nth-child(even) { background: var(--bg-secondary, #f8f9fa); }

.shipping-row-header {
  background: var(--bg-secondary, #f0f0f0) !important;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.shipping-dept { font-weight: 500; }

.shipping-cost {
  color: var(--text-muted);
  text-align: right;
}

.shipping-free {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2e7d32;
  font-weight: 500;
}

.shipping-badge {
  font-size: 0.7rem;
  background: #43a047;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.shipping-footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 12px 0 0;
  font-style: italic;
}

/* ===== BACK TO PRODUCTS FLOATING BUTTON ===== */
.back-to-products {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(190, 5, 96, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-products.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-products:hover {
  background: #a00452;
  box-shadow: 0 6px 20px rgba(190, 5, 96, 0.5);
}

.back-to-products:active {
  transform: scale(0.92);
}

html[data-theme="dark"] .back-to-products {
  box-shadow: 0 4px 16px rgba(190, 5, 96, 0.5);
}

@media (max-width: 768px) {
  .back-to-products {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .modal-videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }

  .video-lightbox .lightbox-content {
    width: 95vw;
    border-radius: 8px;
  }
}

/* ===== PREFERS-REDUCED-MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .carousel-slide {
    transition: none !important;
  }

  .splash-overlay {
    transition: none !important;
  }

  .splash-overlay.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .splash-logo {
    animation: none !important;
  }

  .splash-overlay.splash-hidden .splash-logo {
    animation: none !important;
  }

  .product-card {
    transition: none !important;
  }

  .product-card:hover {
    transform: none !important;
  }

  .product-card-image img {
    transition: none !important;
  }

  .modal-overlay {
    transition: none !important;
  }

  .modal-content.hidden {
    transition: none !important;
  }

  .back-to-products {
    transition: none !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  /* Disable morph clone animations */
  [style*="transition"] {
    transition-duration: 0.01ms !important;
  }

  /* Disable hero arrow visibility transition */
  .hero-btn {
    transition: none !important;
  }

  /* Disable skeleton shimmer */
  .skeleton-card-image,
  .skeleton-line {
    animation: none !important;
    background: #e5e7eb;
  }

  /* Disable skeleton pulse */
  .skeleton-card {
    animation: skeletonReveal 0.01ms ease forwards !important;
  }

  html[data-theme="dark"] .skeleton-card-image,
  html[data-theme="dark"] .skeleton-line {
    background: #2a2a4a;
  }

  /* Disable card reveal animation */
  .product-card.revealed {
    opacity: 1;
    transform: none;
  }

  /* Disable spinner animation */
  .spinner {
    animation: none !important;
    border-color: var(--border-light);
    border-top-color: var(--primary);
  }
}
