/*
 * 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;
}

[data-theme="dark"] {
  --primary: #e91a87;
  --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);
}

[data-theme="dark"] .carousel-content { color: #fff; }
[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"] .alpha-index {
  background: rgba(30,30,46,0.8);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 0 0 1.5px rgba(255,255,255,0.35);
}

[data-theme="dark"] .alpha-letter {
  color: #fff;
}

[data-theme="dark"] .alpha-index.dragging {
  background: rgba(50,50,70,0.9);
}

[data-theme="dark"] .alpha-indicator {
  background: rgba(230,230,245,0.9);
  color: #1a1a2e;
}

[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); }

.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;
}

body.menu-open .alpha-index,
body.modal-open .alpha-index {
  display: none !important;
}

.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-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);
}

/* ===== 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; }

.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: translateY(-6px);
    box-shadow: var(--shadow-md);
  }

  .product-card.in-order:hover {
    box-shadow: 0 0 0 2px var(--primary), var(--shadow-md);
  }

  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);
  }

  .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);
}

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;
}

.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;
}

.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;
}



/* ===== 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);
}

/* ============================
   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);
}

.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: 992px) {
  .nav-left, .nav-right {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .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-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;
  }
}

@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);
}

/* ===== ALPHABETICAL INDEX ===== */
.alpha-index {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) translateX(20px);
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 5000;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 20px;
  background: rgba(0,0,0,0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  max-height: 90vh;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease, visibility 0.35s, background 0.2s, padding 0.2s;
}

.alpha-index.has-products {
  display: flex;
}

body.products-in-view .alpha-index.has-products {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.alpha-letter {
  width: 28px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: default;
  transition: color 0.1s, background 0.1s, width 0.2s, height 0.2s, font-size 0.2s;
  line-height: 1;
}

.alpha-index.dragging {
  background: rgba(0,0,0,0.12);
  padding: 10px 6px;
}

.alpha-index.dragging .alpha-letter {
  width: 34px;
  height: 26px;
  font-size: 1rem;
}

.alpha-letter.active {
  color: var(--primary);
  background: var(--primary-alpha);
  font-weight: 700;
}

/* Floating letter indicator */
.alpha-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6000;
  display: none;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.alpha-indicator.show {
  display: flex;
}

/* ===== RESPONSIVE: ancho primero, alto después (sobreescribe) ===== */

/* ~1280px: un poco más chico que el default 28x22 */
@media (max-width: 1280px) {
  .alpha-index {
    right: 14px;
    gap: 1px;
    padding: 6px 3px;
  }
  .alpha-letter {
    width: 24px;
    height: 18px;
    font-size: 0.75rem;
  }
  .alpha-index.dragging .alpha-letter {
    width: 28px;
    height: 22px;
    font-size: 0.85rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .alpha-index {
    right: 6px;
    padding: 4px 2px;
    gap: 0;
  }

  .alpha-letter {
    width: 17px;
    height: 14px;
    font-size: 0.55rem;
    border-radius: 3px;
  }

  .alpha-index.dragging .alpha-letter {
    width: 20px;
    height: 16px;
    font-size: 0.62rem;
  }

  .alpha-indicator {
    width: 68px;
    height: 68px;
    font-size: 1.6rem;
  }

  .toast {
    width: calc(100% - 60px);
    max-width: 380px;
  }
}

/* Viewport angosto en alto: sobreescribe a las de ancho */
@media (max-height: 720px) {
  .alpha-index {
    gap: 1px;
    padding: 5px 3px;
  }
  .alpha-letter {
    width: 22px;
    height: 18px;
    font-size: 0.72rem;
  }
  .alpha-index.dragging .alpha-letter {
    width: 26px;
    height: 20px;
    font-size: 0.8rem;
  }
}

@media (max-height: 540px) {
  .alpha-index {
    gap: 0;
    padding: 4px 2px;
  }
  .alpha-letter {
    width: 18px;
    height: 14px;
    font-size: 0.6rem;
  }
  .alpha-index.dragging .alpha-letter {
    width: 22px;
    height: 16px;
    font-size: 0.68rem;
  }
}
