/* Estilos personalizados extraídos de inicio3.html */

/* ============================================================
   ESTILOS PREMIUM: LOGO, HEADER Y FOOTER OSCURO
   ============================================================ */

/* Estilos del Logo "La Ruta del Oriente" */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.logo-container {
  display: flex;
  align-items: center;
}
.logo-container a {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  width: 130px !important;
  height: 130px !important;
  max-width: unset !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: 2.5px solid rgba(244, 197, 66, 0.55) !important;
  box-shadow: 0 0 22px rgba(244, 197, 66, 0.4) !important;
  background-color: #0b0d11 !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.logo-img:hover {
  transform: scale(1.06) !important;
  border-color: rgba(244, 197, 66, 0.85) !important;
  box-shadow: 0 0 28px rgba(244, 197, 66, 0.65) !important;
}

@media (max-width: 768px) {
  .logo-img {
    width: 96px !important;
    height: 96px !important;
    border-width: 2.5px !important;
    box-shadow: 0 0 18px rgba(244, 197, 66, 0.45) !important;
  }
}

@media (max-width: 380px) {
  .logo-img {
    width: 86px !important;
    height: 86px !important;
    border-width: 2px !important;
    box-shadow: 0 0 15px rgba(244, 197, 66, 0.4) !important;
  }
}

/* 1. Barra superior de anuncios (Marquee) */
.shipping-marquee {
  position: relative;
  overflow: hidden;
  background: #07080a !important;
  background: linear-gradient(90deg, #050607 0%, #111317 50%, #050607 100%) !important;
  color: #f4c542 !important;
  border-bottom: 1px solid rgba(244, 197, 66, 0.3) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

.shipping-marquee__content {
  color: #f4c542 !important;
  text-shadow: 0 0 10px rgba(244, 197, 66, 0.3);
}

/* 2. Barra de Navegación Principal */
.main-navbar,
nav.main-navbar,
nav:has(#buscador),
body > nav:nth-of-type(1):has(#buscador),
body > nav:nth-of-type(2),
nav.bg-dark-royal\/92 {
  background: #0b0c10 !important;
  background: linear-gradient(180deg, #111317 0%, #08090b 100%) !important;
  border-bottom: 1px solid rgba(244, 197, 66, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

/* Buscador en Header */
#buscador {
  background: #ffffff !important;
  color: #111317 !important;
  border: 1.5px solid #f4c542 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
#buscador::placeholder {
  color: #6b7280 !important;
}

/* Botón Carrito en Header */
nav button[onclick="toggleCart()"] {
  color: #f4c542 !important;
  transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}
nav button[onclick="toggleCart()"]:hover {
  color: #ffd54f !important;
  transform: scale(1.1);
  text-shadow: 0 0 12px rgba(244, 197, 66, 0.6);
}

/* 3. Barra de Categorías (Sub-navbar) */
body > nav:nth-of-type(3),
nav.bg-\[\#2d3486\] {
  background: #13151b !important;
  background: linear-gradient(180deg, #161820 0%, #0e1014 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(244, 197, 66, 0.2) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

body > nav:nth-of-type(3) ul li a,
nav.bg-\[\#2d3486\] ul li a {
  color: #e2e8f0 !important;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

body > nav:nth-of-type(3) ul li a:hover,
nav.bg-\[\#2d3486\] ul li a:hover {
  color: #f4c542 !important;
  text-shadow: 0 0 8px rgba(244, 197, 66, 0.5) !important;
  text-decoration: none !important;
}

/* ============================================================
   FOOTER OSCURO / NEGRO (Acorde con Logo La Ruta del Oriente)
   ============================================================ */
footer,
footer.bg-white {
  background: #08090c !important;
  background: linear-gradient(180deg, #0e1014 0%, #050608 100%) !important;
  color: #e5e7eb !important;
  border-top: 2px solid rgba(244, 197, 66, 0.35) !important;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.7) !important;
}

footer .logo-img {
  width: 85px !important;
  height: 85px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(244, 197, 66, 0.45) !important;
  box-shadow: 0 0 16px rgba(244, 197, 66, 0.3) !important;
  background-color: #0b0d11 !important;
}

footer h3,
footer h4 {
  color: #f4c542 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

footer p,
footer li,
footer .text-dark-royal\/70,
footer .text-dark-royal {
  color: #cbd5e1 !important;
}

footer a {
  color: #cbd5e1 !important;
  transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

footer a:hover {
  color: #f4c542 !important;
  text-shadow: 0 0 8px rgba(244, 197, 66, 0.4) !important;
}

footer .fa-whatsapp {
  color: #25d366 !important;
  filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.4));
  transition: transform 0.2s ease, filter 0.2s ease;
}

footer .fa-whatsapp:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.7));
}

footer .border-t,
footer .border-dark-royal\/10 {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

footer .text-dark-royal\/50 {
  color: #94a3b8 !important;
}

.btn-lux {
  background: linear-gradient(135deg, #f4c542 0%, #ffd54f 50%, #d4af37 100%) !important;
  color: #0b0d11 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(244, 197, 66, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-lux:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 22px rgba(244, 197, 66, 0.5) !important;
  background: linear-gradient(135deg, #ffd54f 0%, #f4c542 100%) !important;
}

.shipping-marquee__track {
  display: flex;
  width: max-content;
  animation: shipping-marquee-scroll-right 16s linear infinite;
  will-change: transform;
}

.shipping-marquee:hover .shipping-marquee__track {
  animation-play-state: paused;
}

.shipping-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.shipping-marquee--promo {
  background: linear-gradient(90deg, #f4c542 0%, #ffd54f 50%, #f4c542 100%);
  color: #393939;
  border-top: 1px solid rgba(184, 134, 11, 0.35);
  border-bottom: 1px solid rgba(184, 134, 11, 0.35);
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.18);
}

.shipping-marquee__content {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
  padding: 0.65rem 2rem;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body > nav:nth-of-type(3) a[href$="cuidado-personal.html"],
body > nav:nth-of-type(3) a[href$="higiene-y-cuidado-personal.html"] {
  display: inline-block;
  width: max-content;
  max-width: none;
  white-space: nowrap !important;
  font-size: 0.92em;
}

@keyframes shipping-marquee-scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}

@media (min-width: 768px) {
  .shipping-marquee__content {
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shipping-marquee__track {
    animation: none;
  }
}

:root {
  --gold-lux:     #f4c542;
  --gold-deep:    #b8860b;
  --turquoise-jewel: #00a896;
  --indigo-night: #0f1c3f;
  --pomegranate:  #9b1d64;
  --sand-lux:     #f8f1e9;
  --cream-opal:   #fffaf0;
  --dark-royal:   #393939;
}
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--sand-lux) 0%, #f0e0c8 100%);
  color: var(--dark-royal);
}
.ornate-serif {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(212,175,55,0.25);
}
.playfair-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.royal-bg {
  background: #0f1117;
  font-family: 'Lato', sans-serif;
  color: #f3f4f6;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
.lux-frame {
  border: 2px solid transparent;
  border-image: linear-gradient(45deg, var(--gold-lux), var(--turquoise-jewel)) 1;
  border-radius: 1.25rem;
  box-shadow: 0 6px 20px rgba(212,175,55,0.15);
  background: rgba(255, 204, 1, 0.96);
  padding: 1.5rem;
}
/* =========================================================
   ESTILO LUXURY: PRODUCT CARDS (NEGRO Y MARCO DORADO)
   ========================================================= */
.product-card {
  background: linear-gradient(175deg, #161820 0%, #0d0e13 100%);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 14px rgba(212, 175, 55, 0.18);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.8px solid #d4af37;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(1.25rem - 2px);
  border: 1px solid rgba(255, 215, 0, 0.15);
  pointer-events: none;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: #ffd700;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(247, 208, 112, 0.4);
}

.product-card__img-wrapper {
  background: radial-gradient(circle at center, #ffffff 50%, #f4f5f8 100%);
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #d4af37;
}

.product-card__img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.product-card__img--secondary {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

.product-card:hover .product-card__img--primary {
  transform: scale(1.06);
}

.product-card:hover .product-card__img-wrapper:has(.product-card__img--secondary) .product-card__img--primary {
  opacity: 0;
}

.product-card:hover .product-card__img--secondary {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.photo-counter-badge {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background: rgba(14, 16, 22, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: #f7d070;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
  display: inline-flex;
  align-items: center;
}

.product-card__body {
  padding: 1.25rem;
  background: transparent;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-card__title,
.product-card h3 {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: #f7d070 !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  min-height: 2.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.015em;
  margin-bottom: 0.4rem;
}

.product-card__price,
.product-card .text-xl {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.product-card .text-turquoise-jewel {
  color: #ffd700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
  font-weight: 800;
}

.product-card .product-stock-label {
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.product-card .product-stock-label::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.product-card .show-detail-btn {
  background: rgba(212, 175, 55, 0.08) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.6) !important;
  color: #f7d070 !important;
  font-weight: 600 !important;
  border-radius: 0.65rem !important;
  transition: all 0.25s ease !important;
}

.product-card .show-detail-btn:hover {
  background: rgba(212, 175, 55, 0.24) !important;
  border-color: #ffd700 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35) !important;
}

.product-card .add-product-btn {
  background: linear-gradient(135deg, #f7d070 0%, #d4af37 60%, #b8860b 100%) !important;
  color: #0b0c10 !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 0.65rem !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35) !important;
  transition: all 0.25s ease !important;
}

.product-card .add-product-btn:hover:not(:disabled) {
  filter: brightness(1.15) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55) !important;
}

.product-card .add-product-btn:disabled {
  background: #374151 !important;
  color: #9ca3af !important;
  cursor: not-allowed;
  box-shadow: none !important;
}
.discount-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0.85rem 0.85rem 0.2rem 0.85rem;
  border: 1px solid var(--turquoise-jewel);
  background: linear-gradient(135deg, #ffcf1f 0%, #f4c542 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 28, 63, 0.18);
}
.stock-status-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.4rem;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0.85rem 0.85rem 0.85rem 0.2rem;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 28, 63, 0.18);
}
.stock-status-badge--out {
  border: 1px solid #ef4444;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
}
.product-stock-label {
  margin-bottom: 0.9rem;
  color: #5f6368;
  font-size: 0.85rem;
  font-weight: 600;
}
.product-stock-label--out {
  color: #b91c1c;
}
.btn-lux {
  background: var(--gold-lux);
  color: var(--dark-royal);
  border: 1px solid rgba(184, 134, 11, 0.35);
  transition: all 0.3s ease;
}
.btn-lux:disabled {
  background: #e5e7eb;
  color: #6b7280;
  border-color: #d1d5db;
  box-shadow: none;
  transform: none;
}
.btn-lux:hover {
  background: #ffd54f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(144, 144, 144, 0.3);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 3px;
  background: linear-gradient(to right, var(--gold-lux), var(--turquoise-jewel));
  border-radius: 999px;
}
.ofertas-title {
  color: #7c2d12;
}
.ofertas-title::after {
  background: linear-gradient(to right, #7c2d12, #9a3412);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

#buscador {
  width: 100%;
  min-width: 0 !important;
  max-width: 100% !important;
}

form[onsubmit*='buscarProductos'] button[type='submit'] {
  background: var(--gold-lux) !important;
  color: var(--dark-royal) !important;
  border: 1px solid rgba(184, 134, 11, 0.35);
}

form[onsubmit*='buscarProductos'] button[type='submit']:hover {
  background: #ffd54f !important;
}

#cart-modal button[onclick='checkout()'],
button[onclick='checkout()'] {
  background: #6b7280 !important;
  color: #ffffff !important;
  border: 1px solid #4b5563;
}

#cart-modal button[onclick='checkout()'] {
  background: #6b7280 !important;
  color: #ffffff !important;
  border: 1px solid #4b5563;
}

#cart-modal button[onclick='checkout()']:hover,
button[onclick='checkout()']:hover {
  background: #4b5563 !important;
}

/* =========================================================
   CARRITO DE COMPRAS: MODAL LUXURY NEGRO Y DORADO
   ========================================================= */
.cart-modal-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cart-modal-panel {
  width: min(100%, 32rem);
  max-height: calc(100vh - 2rem);
  border-radius: 1.5rem !important;
  display: flex;
  flex-direction: column;
  margin: auto;
  background: linear-gradient(165deg, #161822 0%, #0d0e13 100%) !important;
  border: 2px solid #d4af37 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.28) !important;
  color: #ffffff !important;
  position: relative;
}

.cart-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7d070;
  background: #181a24;
  border: 1.5px solid #d4af37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.cart-modal-close:hover {
  background: #d4af37;
  color: #0b0c10;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.cart-modal-header {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
  background: transparent !important;
}

.cart-modal-header h2 {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: #f7d070 !important;
  font-size: 1.25rem !important;
}

.cart-modal-summary {
  flex-shrink: 0;
  background: #090a0e !important;
  border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
}

.cart-modal-items {
  flex: 1;
  min-height: 0;
  color: #e2e8f0;
}

.app-toast {
  position: fixed;
  left: 50%;
  top: 1rem;
  z-index: 9999;
  display: none;
  width: min(calc(100vw - 2rem), 22rem);
  transform: translate(-50%, -0.75rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-toast__card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(23, 23, 23, 0.92);
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 28, 63, 0.24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.app-toast__icon {
  position: relative;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.app-toast__message {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.aseo-catalog-panel {
  width: 100%;
}

.aseo-catalog-card {
  padding: 1.25rem;
  border: 1px solid rgba(57, 57, 57, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 28, 63, 0.08);
  width: min(100%, 1000px);
  margin: 0 auto;
}

.aseo-catalog-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.aseo-catalog-eyebrow {
  margin-bottom: 0.35rem;
  color: #7c3aed;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aseo-catalog-title {
  margin-bottom: 0;
  color: var(--dark-royal);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.aseo-catalog-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.aseo-catalog-group {
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 1rem;
  background: rgba(124, 58, 237, 0.04);
  overflow: hidden;
  min-width: 0;
}

.aseo-catalog-group summary {
  position: relative;
  padding: 0.95rem 2.5rem 0.95rem 1rem;
  color: #6b21a8;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.aseo-catalog-group summary::-webkit-details-marker {
  display: none;
}

.aseo-catalog-group summary::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 700;
}

.aseo-catalog-group[open] summary::after {
  content: '−';
}

.aseo-catalog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.7rem 0.8rem;
}

.aseo-catalog-link {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  color: #6b21a8;
  text-align: left;
  font-size: 0.98rem;
  line-height: 1.3;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.aseo-catalog-link:hover,
.aseo-catalog-link:focus-visible {
  background: rgba(124, 58, 237, 0.08);
  outline: none;
}

.aseo-catalog-link--all {
  width: auto;
  flex-shrink: 0;
  color: var(--dark-royal);
  font-weight: 700;
  border: 1px solid rgba(57, 57, 57, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.aseo-catalog-link--active {
  background: rgba(124, 58, 237, 0.14);
  color: #4c1d95;
  font-weight: 700;
}

.catalog-assignment-list {
  display: grid;
  gap: 0.75rem;
}

.catalog-assignment-group {
  border: 1px solid rgba(57, 57, 57, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.85rem;
}

.catalog-assignment-group__title {
  margin-bottom: 0.65rem;
  color: var(--dark-royal);
  font-size: 0.9rem;
  font-weight: 700;
}

.catalog-assignment-category-heading {
  margin-bottom: 0.75rem;
  color: var(--dark-royal);
  font-size: 0.95rem;
  font-weight: 700;
}

.catalog-assignment-group__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
}

.catalog-assignment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(57, 57, 57, 0.08);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--dark-royal);
  font-size: 0.88rem;
  line-height: 1.3;
}

.catalog-assignment-option input {
  margin-top: 0.1rem;
}

.app-toast--success .app-toast__icon {
  background: rgba(16, 185, 129, 0.2);
}

.app-toast--success .app-toast__icon::before {
  content: '';
  position: absolute;
  left: 0.72rem;
  top: 0.42rem;
  width: 0.45rem;
  height: 0.85rem;
  border-right: 2px solid #34d399;
  border-bottom: 2px solid #34d399;
  transform: rotate(45deg);
}

.app-toast--error .app-toast__card {
  background: rgba(61, 10, 16, 0.94);
}

.app-toast--error .app-toast__icon {
  background: rgba(248, 113, 113, 0.2);
}

.app-toast--error .app-toast__icon::before,
.app-toast--error .app-toast__icon::after {
  content: '';
  position: absolute;
  left: 0.94rem;
  top: 0.45rem;
  width: 2px;
  height: 1.1rem;
  background: #fca5a5;
  border-radius: 999px;
}

.app-toast--error .app-toast__icon::before {
  transform: rotate(45deg);
}

.app-toast--error .app-toast__icon::after {
  transform: rotate(-45deg);
}

#cart-modal button[onclick='checkout()']:hover {
  background: #ffd54f !important;
}

#buscador,
#admin-password,
#product-form input,
#product-form select,
#product-form textarea {
  font-size: 16px;
}

#cart-modal > div,
#admin-modal > div,
#product-detail-modal > div {
  margin: 1rem;
  max-height: calc(100vh - 2rem);
}

#admin-modal > div,
#product-detail-content {
  overflow: auto;
}

#product-detail-content {
  overscroll-behavior: contain;
}

@media (max-width: 767px) {
  .aseo-catalog-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .aseo-catalog-groups {
    grid-template-columns: 1fr;
  }

  .aseo-catalog-card {
    padding: 1rem;
  }

  .aseo-catalog-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aseo-catalog-link--all {
    width: 100%;
  }

  .catalog-assignment-group__options {
    grid-template-columns: 1fr;
  }

  #inicio {
    min-height: 320px;
    padding-left: 1rem;
    padding-right: 1rem;
    background-attachment: scroll;
  }

  #inicio .header-content {
    padding: 1.5rem 1rem;
    border-radius: 1rem;
  }

  /* ============================================================
     NAVBAR MÓVIL OPTIMIZADO (RESPONSIVE HEADER)
     ============================================================ */
  .main-navbar > div,
  nav.main-navbar > div,
  nav:has(#buscador) > div,
  body > nav:nth-of-type(1) > div:has(#buscador),
  body > nav:nth-of-type(2) > div:has(#buscador),
  body > nav:nth-of-type(2) > div {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.65rem 1rem !important;
    gap: 0.65rem 0.5rem !important;
  }

  /* Logo fila 1 izquierda */
  .main-navbar .logo-container,
  nav:has(#buscador) .logo-container,
  body > nav:nth-of-type(2) .logo-container {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Carrito fila 1 derecha */
  .main-navbar .nav-cart-wrapper,
  nav:has(#buscador) .nav-cart-wrapper,
  .main-navbar button[onclick="toggleCart()"],
  nav:has(#buscador) button[onclick="toggleCart()"],
  .main-navbar > div > :last-child,
  nav:has(#buscador) > div > :last-child,
  body > nav:nth-of-type(2) > div > :last-child {
    order: 2 !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .main-navbar button[onclick="toggleCart()"],
  nav:has(#buscador) button[onclick="toggleCart()"],
  body > nav:nth-of-type(2) button[onclick="toggleCart()"] {
    padding: 0.4rem 0.5rem !important;
    font-size: 1.5rem !important;
  }

  .main-navbar #cart-count,
  nav:has(#buscador) #cart-count,
  body > nav:nth-of-type(2) #cart-count {
    top: -4px !important;
    right: -6px !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    font-size: 0.72rem !important;
  }

  /* Buscador fila 2: ancho 100% */
  .main-navbar .nav-search-wrapper,
  nav:has(#buscador) .nav-search-wrapper,
  .main-navbar .flex-1,
  nav:has(#buscador) .flex-1,
  body > nav:nth-of-type(2) > div > .flex-1 {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .main-navbar form,
  nav:has(#buscador) form,
  body > nav:nth-of-type(2) form {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
  }

  .main-navbar form .flex,
  nav:has(#buscador) form .flex,
  body > nav:nth-of-type(2) form .flex,
  body > nav:nth-of-type(2) form > .flex {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    gap: 0 !important;
    border-radius: 0.65rem !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  }

  .main-navbar #buscador,
  nav:has(#buscador) #buscador,
  body > nav:nth-of-type(2) form input,
  body > nav:nth-of-type(2) form .flex > input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 15px !important;
    border-radius: 0.65rem 0 0 0.65rem !important;
    border: 1.5px solid #f4c542 !important;
    border-right: none !important;
    outline: none !important;
    background: #ffffff !important;
  }

  .main-navbar form button[type="submit"],
  nav:has(#buscador) form button[type="submit"],
  body > nav:nth-of-type(2) form button,
  body > nav:nth-of-type(2) form .flex > button {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 42px !important;
    padding: 0 1.15rem !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border-radius: 0 0.65rem 0.65rem 0 !important;
    background: linear-gradient(135deg, #f4c542 0%, #ffd54f 100%) !important;
    color: #0b0d11 !important;
    border: 1.5px solid #f4c542 !important;
    border-left: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    cursor: pointer !important;
    white-space: nowrap !important;
  }

  #buscador-sugerencias {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 6px) !important;
    width: 100% !important;
    max-height: 65vh !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
    border-radius: 0.75rem !important;
  }

  body > nav:nth-of-type(3) {
    overflow-x: auto;
  }

  body > nav:nth-of-type(3) > div {
    justify-content: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body > nav:nth-of-type(3) ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1rem;
    width: max-content;
    min-width: 100%;
    padding-bottom: 0.25rem;
  }

  body > nav:nth-of-type(3) li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .bg-gray-100 .max-w-7xl.grid {
    gap: 1rem;
  }

  .bg-gray-100 .max-w-7xl.grid > div {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(156, 163, 175, 0.5);
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 1rem;
  }

  .bg-gray-100 .max-w-7xl.grid > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  #productos .max-w-7xl,
  #ofertas .max-w-7xl,
  #nuevos-productos .max-w-7xl,
  #search-results-section .max-w-7xl,
  footer .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #productos .flex.items-center.gap-2,
  #productos .flex.items-center {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  #productos label,
  #productos select {
    width: 100%;
  }

  .product-card {
    border-radius: 1rem;
  }

  .product-card:hover {
    transform: none;
  }

  .app-toast {
    top: 0.75rem;
    width: min(calc(100vw - 1rem), 20rem);
  }

  .app-toast__card {
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
  }

  .app-toast__message {
    font-size: 0.9rem;
  }

  .discount-badge {
    top: 0.75rem;
    right: 0.75rem;
    min-width: 4rem;
    min-height: 1.85rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
  }

  .stock-status-badge {
    top: 0.75rem;
    left: 0.75rem;
    min-width: 5rem;
    min-height: 1.85rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
  }

  .cart-modal-shell {
    align-items: flex-end;
    justify-content: stretch;
    padding: 0;
  }

  .cart-modal-panel {
    width: 100%;
    max-width: none;
    max-height: min(86dvh, calc(100dvh - 0.5rem));
    border-radius: 1.5rem 1.5rem 0 0;
    margin: auto 0 0;
  }

  .cart-modal-close {
    top: 0.8rem;
    right: 0.8rem;
    width: 2rem;
    height: 2rem;
  }

  .cart-modal-header {
    padding: 1.25rem 1.25rem 1rem;
    padding-right: 3.25rem;
  }

  .cart-modal-header h2 {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .cart-modal-items {
    padding: 1rem 1.25rem;
    max-height: calc(86dvh - 15rem) !important;
  }

  .cart-modal-summary {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(229, 231, 235, 1);
  }

  .cart-modal-summary > div {
    align-items: flex-start;
  }

  .cart-modal-summary button {
    min-height: 3.5rem;
    font-size: 1rem;
    border-radius: 0.9rem;
  }

  #cart-items li {
    gap: 0.75rem;
  }

  #cart-items li img {
    width: 3.25rem;
    height: 3.25rem;
  }

  #cart-items li {
    align-items: flex-start;
  }

  #product-detail-modal {
    padding: 0.75rem;
    align-items: flex-start;
  }

  #product-detail-modal > div {
    width: 100%;
    max-height: calc(100vh - 1.5rem);
    border-radius: 1.25rem;
  }

  #product-detail-content {
    padding: 2.75rem 0.75rem 0.75rem;
    overflow-y: auto;
    scroll-behavior: smooth;
  }

  .product-detail-layout {
    gap: 0.75rem;
  }

  .product-detail-image-frame {
    max-width: 118px !important;
    padding: 0.5rem !important;
  }

  .product-detail-title {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
  }

  .product-detail-price {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }

  .product-detail-stock,
  .product-detail-label,
  .product-detail-qty label {
    font-size: 0.85rem;
  }

  .product-detail-stepper {
    width: 112px !important;
    padding: 0.45rem 0.5rem !important;
  }

  .product-detail-description-box {
    max-height: 120px !important;
    min-height: 0 !important;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .product-detail-actions {
    position: static;
    background: transparent !important;
    padding-top: 0.75rem;
    padding-bottom: 0.35rem;
    margin-top: 0.75rem;
  }

  .product-detail-actions button {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
    font-size: 0.9rem !important;
  }

  .product-detail-scroll-hint {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #161822 72%, rgba(22, 24, 34, 0)) !important;
    color: #94a3b8 !important;
    padding-bottom: 0.35rem;
  }
}

/* =========================================================
   ESTILO LUXURY: MODAL DE DETALLE DE PRODUCTO (NEGRO Y ORO)
   ========================================================= */
#product-detail-modal {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.78) !important;
}

#product-detail-modal > div,
.product-modal-panel {
  background: linear-gradient(165deg, #161822 0%, #0d0e13 100%) !important;
  border: 2px solid #d4af37 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 175, 55, 0.28) !important;
  border-radius: 1.5rem !important;
  color: #ffffff !important;
  position: relative;
}

#product-detail-modal > div::before,
.product-modal-panel::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: calc(1.5rem - 3px);
  border: 1px solid rgba(255, 215, 0, 0.14);
  pointer-events: none;
  z-index: 1;
}

/* Botón cerrar modal detalle */
#product-detail-modal button[aria-label="Cerrar"] {
  background: #181a24 !important;
  border: 1.5px solid #d4af37 !important;
  color: #f7d070 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease !important;
}

#product-detail-modal button[aria-label="Cerrar"]:hover {
  background: #d4af37 !important;
  color: #0b0c10 !important;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6) !important;
}

/* Vitrina de imagen en modal */
.product-detail-image-frame {
  background: radial-gradient(circle at center, #ffffff 60%, #f4f5f8 100%) !important;
  border: 2px solid #d4af37 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2) !important;
  padding: 1rem !important;
}

.product-detail-image-frame img {
  object-fit: contain !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

/* Miniaturas de galería modal (2 fotos) */
.product-detail-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  justify-content: center;
}

.detail-thumb-btn {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.25rem;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.detail-thumb-btn.active {
  border: 2px solid #ffd700 !important;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.6) !important;
  transform: scale(1.06);
}

/* Tipografía de detalle */
.product-detail-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: #f7d070 !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.015em;
}

.product-detail-price {
  color: #cbd5e1 !important;
  font-size: 1.05rem !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-detail-price .text-turquoise-jewel {
  color: #ffd700 !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35) !important;
}

.product-detail-stock {
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
}

.product-detail-stock span.text-gold-lux {
  color: #ffd700 !important;
  font-weight: 700 !important;
}

/* Stepper cantidad */
.product-detail-stepper {
  background: #0f1118 !important;
  border: 1.5px solid rgba(212, 175, 55, 0.55) !important;
  border-radius: 0.75rem !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.product-detail-stepper button {
  color: #f7d070 !important;
  font-weight: 700;
  transition: all 0.2s ease;
}

.product-detail-stepper button:hover {
  color: #ffffff !important;
  text-shadow: 0 0 8px #ffd700;
}

.product-detail-stepper input {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Caja de descripción */
.product-detail-label {
  color: #f7d070 !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-detail-description-box {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 0.85rem !important;
  color: #e2e8f0 !important;
  line-height: 1.6 !important;
  padding: 0.85rem 1rem !important;
}

.product-detail-description-box::-webkit-scrollbar {
  width: 6px;
}
.product-detail-description-box::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 3px;
}
.product-detail-description-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

/* Botones de acción modal detalle */
.product-detail-actions {
  background: transparent !important;
  border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
  padding-top: 1rem !important;
}

.product-detail-actions button:first-child {
  background: rgba(212, 175, 55, 0.1) !important;
  border: 1.5px solid #d4af37 !important;
  color: #f7d070 !important;
  font-weight: 700 !important;
  border-radius: 0.75rem !important;
  transition: all 0.25s ease !important;
}

.product-detail-actions button:first-child:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.28) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4) !important;
}

.product-detail-actions button:last-child {
  background: linear-gradient(135deg, #f7d070 0%, #d4af37 60%, #b8860b 100%) !important;
  color: #090a0d !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4) !important;
  transition: all 0.25s ease !important;
}

.product-detail-actions button:last-child:hover:not(:disabled) {
  filter: brightness(1.15) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6) !important;
}