@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  --bg-body: #f0f4f8;
  --bg-white: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border-light: #e5e7eb;
  --color-primary: #f5b027;
  /* Amarilo de la imagen */
  --color-primary-hover: #e09f20;
  --color-red: #dc2626;
  --color-purple-bg: #f3e8ff;
  --color-purple-text: #7e22ce;
  --color-black: #050505;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --header-top-height: 40px;
  --header-main-height: 85px;
  --header-nav-height: 50px;
  --glass-bg: rgba(0, 0, 0, 0.85);
  --header-text: #ffffff;
  --nav-text: #e2e8f0;
  /* ── Colores fijos: navbar y footer NUNCA cambian con el tema ── */
  --nav-bg: #0a0f1a;
  --nav-bg-glass: rgba(5, 8, 22, 0.96);
  --footer-bg: #050505;
}

@media (max-width: 640px) {
  .product-card,
  .product-card-premium {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    content-visibility: auto;
    contain-intrinsic-size: 320px 520px;
  }

  .product-card:hover,
  .product-card-premium:hover,
  .product-card:hover img,
  .product-card-premium:hover img,
  .card-image-wrap img {
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

/* SLEEK SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  border: 2px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

body.dark-mode::-webkit-scrollbar-track {
  background: #0f172a;
}

body.dark-mode::-webkit-scrollbar-thumb {
  background: #334155;
  border: 2px solid #0f172a;
}

/* SMOOTH ENTRANCE */
.product-card {
  animation: cardAppear 0.4s ease backwards;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SKELETON LOADER EMULATION */
.img-loading {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeletonScan 1.5s infinite;
}

@keyframes skeletonScan {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

body.dark-mode {
  --bg-body: #060910;
  --bg-white: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-light: #1e293b;
  --color-black: #020617;
  --glass-bg: rgba(2, 6, 23, 0.95);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* GLOBAL THEME MAPPING (FOR TAILWIND CLASSES) */
body.dark-mode .bg-white {
  background-color: var(--bg-white) !important;
}

body.dark-mode .bg-gray-50 {
  background-color: var(--bg-body) !important;
}

body.dark-mode .bg-yellow-50 {
  background-color: rgba(245, 176, 39, 0.10) !important;
}

body.dark-mode .bg-yellow-200 {
  background-color: rgba(245, 176, 39, 0.18) !important;
}

body.dark-mode .border-yellow-500 {
  border-color: rgba(245, 176, 39, 0.55) !important;
}

body.dark-mode .text-yellow-700 {
  color: rgba(245, 176, 39, 0.95) !important;
}

body.dark-mode .text-gray-900 {
  color: var(--text-main) !important;
}

body.dark-mode .text-gray-800 {
  color: var(--text-main) !important;
}

body.dark-mode .text-gray-700 {
  color: var(--text-main) !important;
}

body.dark-mode .text-gray-600 {
  color: var(--text-muted) !important;
}

body.dark-mode .text-gray-500 {
  color: var(--text-light) !important;
}

body.dark-mode .border-gray-200 {
  border-color: var(--border-light) !important;
}

body.dark-mode .text-gray-400 {
  color: var(--text-muted) !important;
}

body.dark-mode .text-gray-300 {
  color: var(--text-light) !important;
}

body.dark-mode .border-gray-50 {
  border-color: var(--border-light) !important;
}

body.dark-mode .divide-gray-50>* {
  border-color: var(--border-light) !important;
}

/* CART & CHECKOUT POLISH */
body.dark-mode .cart-sidebar,
body.dark-mode .checkout-summary-box {
  background-color: var(--bg-white);
  border-left: 1px solid var(--border-light);
}

body.dark-mode .cart-item {
  border-bottom-color: var(--border-light);
}

body.dark-mode .badge-red {
  border-color: var(--color-black);
}

body.dark-mode #header-logo-img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5)) brightness(1.1);
}


/* ---- Dropdown Mi Cuenta ---- */
.user-dropdown-relative {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.user-account-dropdown {
  /* Forzar display:block para anular cualquier 'display:none' de Tailwind */
  display: block !important;
  /* Posicionamiento */
  position: absolute;
  right: 0;
  top: 100%;
  width: 15rem;
  z-index: 100;
  /* Apariencia Premium (Modo Claro) */
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 12px;
  padding: 8px 0;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 30px -5px rgba(0, 0, 0, 0.1),
    0 20px 40px -10px rgba(0, 0, 0, 0.05) !important;
  /* Oculto por defecto via opacity/visibility, NO display */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.20, 0.64, 1);
  pointer-events: none;
  color: #111827 !important;
  /* Asegurar color oscuro en modo claro */
}

/* Activar via JS (.open) */
.user-account-dropdown.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  pointer-events: auto;
}

body.dark-mode .user-account-dropdown {
  background-color: #111827 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  color: #ffffff !important;
  /* Asegurar color blanco en modo oscuro */
}

.dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  /* Gray-700 para mejor legibilidad sin ser negro puro */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.dark-mode .dropdown-item {
  color: #f1f5f9 !important;
  /* Siempre claro en modo oscuro */
}

.dropdown-item i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  color: #9ca3af;
  transition: color 0.2s ease;
}

body.dark-mode .dropdown-item i {
  color: #94a3b8;
}

.dropdown-item:hover {
  background-color: rgba(245, 176, 39, 0.08) !important;
  /* Más sutil */
  color: var(--color-primary) !important;
}

.dropdown-item:hover i {
  color: var(--color-primary) !important;
}

/* Puente invisible ampliado — evita que el dropdown se cierre al mover el ratón hacia él */
.user-account-dropdown::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 32px;
  /* Zona de seguridad generosa */
  background: transparent;
}

body.dark-mode .theme-switcher-select {
  color: #f8fafc;
}

.theme-switcher-select {
  color: var(--text-main);
}

body.dark-mode .mobile-sidebar {
  background: var(--bg-body);
  border-right: 1px solid var(--border-light);
}

body.dark-mode .mobile-sidebar a {
  color: var(--text-main);
}

body.dark-mode .mobile-sidebar .name,
body.dark-mode .mobile-sidebar .welcome {
  color: var(--text-main);
}

/* FORMS & INPUTS SYNC */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: var(--bg-body) !important;
  color: var(--text-main) !important;
  border-color: var(--border-light) !important;
}

body.dark-mode input::placeholder {
  color: var(--text-light) !important;
}

/* PRODUCT DETAIL SPECIFICS */
body.dark-mode .vendor-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
}

body.dark-mode .vendor-info h5 {
  color: var(--text-main);
}

body.dark-mode .trust-line {
  color: var(--text-muted);
}

/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1,
h2,
h4,
h5,
h6 {
  font-family: 'Bebas Neue', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 1.5px;
}

h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  overflow-y: scroll;
  /* Previene el salto horizontal al cambiar entre páginas largas y cortas */
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  animation: simpleFade 0.4s ease-in-out;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.dark-mode .auth-wrapper,
body.dark-mode .about-right-col {
  background: #0f172a;
  border-color: #1e293b;
}

.promo-title {
  color: white;
  justify-content: center;
  margin-bottom: 40px;
}

body.dark-mode .promo-title {
  color: var(--color-primary);
}

body.dark-mode .promo-frame {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-view:hover {
  background: var(--bg-body);
}

#header-logo-img {
  /* Header siempre oscuro — filtro base para logo sobre fondo dark */
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2)) brightness(1.05);
}

@keyframes simpleFade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================= */
/* NEW PREMIUM HEADER DESIGN                */
/* ========================================= */

/* ═══════════════════════════════════════════════════════
   NAVBAR — Siempre oscuro, sin importar el tema activo
═══════════════════════════════════════════════════════ */
.header-main-wrap {
  position: relative;
  width: 100%;
  z-index: 1000;
  background-color: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-main-wrap.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 1. TOP ANNOUNCEMENT BAR */
.header-top-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #94a3b8;
  font-size: 12px;
  height: var(--header-top-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 20px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item i {
  color: var(--color-primary);
}

.top-bar-right {
  display: flex;
  gap: 15px;
}

.top-bar-social {
  transition: color 0.2s;
}

.top-bar-social:hover {
  color: var(--color-primary);
}

/* 2. MAIN HEADER LAYER (Logo, Search, Actions) */
.header-middle {
  height: var(--header-main-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1020; /* Elevado para que el buscador solape el nav */
}

.header-middle .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header-sticky .header-middle {
  height: 70px;
}

.header-logo img {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.header-sticky .header-logo img {
  height: 40px;
}

/* Centered Search Bar */
.header-search-wrap {
  flex: 1;
  max-width: 600px;
}

.unified-search-premium {
  position: relative;
  width: 100%;
}

/* Búsqueda — siempre estilo oscuro (header siempre dark) */
.unified-search-premium input {
  width: 100%;
  height: 46px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0 50px 0 20px;
  color: #f1f5f9;
  font-size: 14px;
  transition: all 0.3s ease;
}

.unified-search-premium input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.unified-search-premium input:focus {
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(245, 176, 39, 0.18);
  outline: none;
}

.unified-search-premium .search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  color: var(--color-black);
  cursor: pointer;
  transition: transform 0.2s;
}

.unified-search-premium .search-btn:hover {
  transform: scale(1.05);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 9999;
}

.search-suggestions-list {
  display: flex;
  flex-direction: column;
}

.search-suggestion-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background: rgba(245, 176, 39, 0.12);
  color: #ffffff;
}

.search-suggestion-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-suggestion-copy {
  min-width: 0;
}

.search-suggestion-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-meta {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.72);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-empty {
  padding: 14px 16px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Action items — texto siempre claro sobre header oscuro */
.header-action-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #e2e8f0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.header-action-item i {
  font-size: 20px;
}

.header-action-item span.label {
  font-size: 11px;
  font-weight: 500;
}

.header-action-item:hover {
  color: var(--color-primary);
}

.header-action-item .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 2px solid var(--color-black);
}

/* 3. NAVIGATION LAYER */
.header-nav-row {
  height: var(--header-nav-height);
  display: flex;
  align-items: center;
  transition:
    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease-out,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform, height;
  z-index: 1001;
  position: relative;
}

.header-sticky .header-nav-row {
  height: 0;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  overflow: hidden;
}

.header-nav-row .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-main-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Nav links — texto siempre claro sobre header oscuro */
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  padding: 4px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Categories Button */
.btn-explorer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: var(--color-black);
  padding: 8px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 20px rgba(245, 176, 39, 0.2);
}

.btn-explorer:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(245, 176, 39, 0.3);
}

@media (max-width: 1024px) {
  .header-middle .container {
    flex-wrap: wrap;
    gap: 15px;
  }

  .header-search-wrap {
    display: block;
    order: 3;
    flex: 0 0 100%;
    max-width: none;
  }

  /* Hide search on mobile, or move to mobile menu */
  .header-top-bar {
    display: none;
  }

  .header-nav-row {
    display: none;
  }

  .header-middle {
    height: auto;
    padding: 12px 0;
  }

  .header-logo {
    order: 1;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .unified-search-premium input {
    height: 42px;
  }

  .header-sticky .header-middle {
    height: auto;
  }
}

@media (min-width: 1025px) {
  #mobile-menu-btn {
    display: none;
  }

}

/* MEGA MENU */
/* Mega Menu — siempre oscuro, coherente con el header */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 1000px;
  max-width: calc(100vw - 40px);
  background: #111827;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2000;
  border-top: 2px solid var(--color-primary);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.has-mega-menu {
  position: relative;
}

.has-mega-menu:hover .mega-menu,
.has-mega-menu.active .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  display: flex !important;
}

/* Mega menu sidebar — oscuro coherente con el header */
.mega-menu-sidebar {
  width: 280px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 0;
  background: #0d1422;
}

.mega-menu-sidebar a {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #94a3b8 !important;
  transition: background 0.2s !important;
}

.mega-menu-sidebar a:hover {
  background: rgba(245, 176, 39, 0.08) !important;
  color: var(--color-primary) !important;
}

.mega-menu-sidebar a.active {
  color: var(--color-primary) !important;
  background: rgba(245, 176, 39, 0.06) !important;
}

.mega-menu-sidebar a span {
  font-size: 12px;
  color: #64748b;
}

.mega-menu-content {
  flex: 1;
  padding: 0;
  /* Changed so panes can handle their own padding */
  position: relative;
  min-height: 400px;
  /* Ensure a consistent height */
}

.mega-menu-pane {
  display: none;
  padding: 24px;
  height: 100%;
}

.mega-menu-pane.active {
  display: block;
}

/* Mega menu columnas — texto claro sobre fondo oscuro */
.mega-menu-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-col a {
  display: block !important;
  padding: 6px 0 !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
  transition: all 0.2s !important;
}

.mega-menu-col a:hover {
  color: var(--color-primary) !important;
  padding-left: 5px !important;
}

/* Dense list helper */
.mega-menu-pane.dense {
  grid-template-columns: repeat(3, 1fr);
}

.mega-menu-pane.dense .mega-menu-col {
  display: flex;
  flex-direction: column;
}

/* Mega Menu Options (nuevo layout) */
.mega-menu-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mega-menu-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 14px 12px 14px;
}

.mega-menu-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 176, 39, 0.12);
  border: 1px solid rgba(245, 176, 39, 0.28);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.mega-menu-option:hover {
  transform: translateY(-1px);
  background: rgba(245, 176, 39, 0.18);
  border-color: rgba(245, 176, 39, 0.4);
}

.mega-menu-suboptions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mega-menu-sublink {
  font-size: 12px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.9);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mega-menu-sublink:hover {
  background: rgba(245, 176, 39, 0.12);
  color: #ffffff;
  border-color: rgba(245, 176, 39, 0.24);
}

.mega-menu-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 900;
  color: var(--color-primary);
}

.mega-menu-footer-link:hover {
  color: #ffffff;
}

/* ========================================= */
/* INDEX.PHP — SECCIONES DE CONTENIDO        */
/* ========================================= */

/* Alternancia de fondo entre secciones en light mode */
.section-wrapper {
  padding: 50px 0;
}

.section-wrapper.bg-alt {
  background-color: var(--bg-white);
}

/* Header de sección mejorado */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--color-primary);
}

.see-all {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
}

.see-all i {
  margin-left: 4px;
}

/* PRODUCT GRID */
.product-grid {
  gap: 20px;
}

/* PRODUCT CARD — Premium redesign */
.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.22s ease;
  position: relative;
  overflow: hidden;
  padding: 0 0 12px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.card-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  transition: transform 0.3s ease;
}

.product-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.badge-img-right,
.badge-img-left {
  position: absolute;
  top: 8px;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-img-right {
  right: 8px;
}

.badge-img-left {
  left: 8px;
}

.badge-img-left {
  background: linear-gradient(135deg, var(--color-primary) 0%, #e09f20 100%);
  color: #000;
}

.card-actions-hover {
  position: absolute;
  bottom: 20px;
  /* Above content */
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

.product-card:hover .card-actions-hover {
  opacity: 1;
  transform: translateX(0);
}

.btn-add-mini,
.btn-view-mini {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-add-mini:hover {
  background: var(--color-primary);
  color: #000;
  border-color: var(--color-primary);
}

.btn-view-mini:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Text Info */
.product-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  padding: 0.75rem;
}

.product-price-val,
.product-price,
.detail-price {
  font-size: 25px;
  font-weight: 900;
  color: #16a34a;
  /* verde esmeralda vibrante */
  letter-spacing: -0.5px;
  display: block;
  margin-top: 2px;
}

/* Card image wrap padding reduction */
.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 14px 14px 0 0;
}

.product-set {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-bottom-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  margin-top: auto;
  padding: 0 12px;
}

.product-price {
  font-size: 18px;
  font-weight: 900;
  color: #16a34a;
  letter-spacing: -0.5px;
}

body.dark-mode .product-price {
  color: #4ade80;
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.25);
}

.product-stock {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-body);
  padding: 3px 7px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

/* Action Buttons */
.card-actions {
  display: flex;
  gap: 8px;
  padding: 0 12px;
}

.btn-add {
  flex: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, #e09f20 100%);
  color: #000;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(245, 176, 39, 0.25);
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 176, 39, 0.45);
  background: linear-gradient(135deg, #f5c040 0%, var(--color-primary) 100%);
}

.btn-view {
  background-color: var(--bg-body);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-view:hover {
  background-color: #000;
  border-color: #000;
  color: var(--color-primary);
  transform: translateY(-1px);
}


/* BANNER SECTION */
.banner-promo {
  background-color: var(--color-black);
  color: var(--bg-white);
  padding: 40px 0;
  margin-top: 20px;
}

.banner-promo .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.banner-content p {
  color: #d1d5db;
  font-size: 15px;
}

.btn-banner {
  background-color: var(--color-primary);
  color: var(--color-black);
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-banner:hover {
  transform: translateY(-2px);
}

/* ─── TRUST BADGES — Premium ─────────────────────────────── */
.trust-badges {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 48px 0;
}

.trust-badge-item {
  padding: 24px 16px;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trust-badge-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.trust-badge-item i {
  color: var(--color-primary);
  font-size: 26px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(245, 176, 39, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.25s;
}

.trust-badge-item:hover i {
  box-shadow: 0 4px 16px rgba(245, 176, 39, 0.4);
}

.trust-badge-item h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.trust-badge-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   FOOTER — Siempre oscuro, sin importar el tema activo
═══════════════════════════════════════════════════════ */
.site-footer {
  background-color: var(--footer-bg) !important;
  color: #d1d5db;
  padding: 60px 0 30px;
}

.footer-grid {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #374151;
}

.footer-logo-wrap img {
  height: 40px;
  width: auto;
}

body.dark-mode .footer-logo-wrap img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5)) brightness(1.2);
}

.footer-col h4 {
  color: #f1f5f9;
  /* blanco suave — siempre visible sobre footer oscuro */
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* En modo claro y oscuro: el footer siempre es oscuro, h4 siempre claro */
body.dark-mode .footer-col h4 {
  color: #e2e8f0;
}


.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  font-size: 14px;
  color: #94a3b8;
  /* gris claro — visible sobre fondo oscuro */
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--color-primary);
}

/* Iconos redes sociales */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  /* gris claro siempre visible */
  font-size: 15px;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 176, 39, 0.35);
}

/* Iconos de contacto */
.contact-info li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: #94a3b8;
}

.contact-info li i {
  color: var(--color-primary);
  /* dorado — visible y con jerarquía */
  font-size: 14px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}


/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9ca3af;
}

.payment-methods {
  display: flex;
  gap: 8px;
  align-items: center;
}

.payment-badge {
  background-color: #374151;
  color: #d1d5db;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* HERO SECTION (Dark Mode Preserved) */
.hero {
  padding: 70px 95px;
  background: radial-gradient(circle at top right, #1e293b 0%, #020617 50%);
  position: relative;
  overflow: hidden;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  filter: blur(150px);
  opacity: 0.15;
  z-index: 0;
}

.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.zleft {
  position: relative;
}

.hero-right {
  text-align: center;
  position: relative;
}

.hero-right::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.4) 0%, transparent 70%);
  z-index: -1;
}

.hero-right img {
  width: 180%;
  max-width: 900px;
  margin-left: -42%;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ========================================= */
/* ABOUT US SECTION                          */
/* ========================================= */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  background: var(--bg-white);
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
}

.about-left-col h2 {
  font-size: 36px;
  margin-bottom: 24px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.about-left-col h2 span {
  color: var(--color-primary);
}

.about-left-col p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 16px;
}

.about-left-col ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.about-left-col ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 15px;
}

.about-left-col ul li::before {
  content: '\f00c';
  /* check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #16a34a;
  /* green check */
  font-size: 18px;
}

.about-right-col {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

.about-info-block {
  margin-bottom: 30px;
}

.about-info-block:last-child {
  margin-bottom: 0;
}

.about-info-block h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.about-info-block p {
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-info-block p i {
  color: var(--color-primary);
  /* Yellow accent */
  font-size: 18px;
  margin-top: 2px;
}

/* ========================================= */
/* AUTH PAGES (LOGIN / REGISTER)             */
/* ========================================= */
.auth-wrapper {
  min-height: calc(100vh - 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: #f8fafc;
}

.auth-card {
  background: var(--bg-white);
  width: 100%;
  max-width: 450px;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

body.dark-mode .auth-header h2 {
  color: #ffffff;
}

.auth-header h2 {
  font-size: 28px;
  color: var(--color-black);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 8px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}

.auth-form input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.form-options .remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-main);
}

.form-options a {
  color: var(--color-primary);
  font-weight: 600;
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--color-black);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-btn:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
}

.auth-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--color-primary);
  font-weight: 700;
  margin-left: 5px;
}

/* Social Login Spacing */
.social-auth {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.social-btn:hover {
  background: #f8fafc;
}

.social-btn i.fa-google {
  color: #ea4335;
}

.social-btn i.fa-facebook {
  color: #1877f2;
}

@media (max-width: 480px) {
  .detail-image-box {
    margin-bottom: 20px;
    height: auto;
  }
}

/* CART SIDEBAR CSS GLOBALS PARA CORREGIR NAVEGACION INVISIBLE */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 1000000 !important;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.cart-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.cart-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-light);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
}

.cart-item img {
  width: 50px;
  border-radius: 4px;
}

.cart-item-info h4 {
  font-size: 13px;
  margin-bottom: 4px;
}

.cart-item-info p {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: bold;
}

.remove-item {
  background: none;
  border: none;
  color: var(--color-red);
  cursor: pointer;
  margin-left: auto;
}

.cart-totals {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 18px;
}

.btn-checkout {
  width: 100%;
  background: var(--color-primary);
  color: #000;
  padding: 12px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-checkout:hover {
  background: #d79f2b;
}

.btn-clear-cart {
  width: 100%;
  background: transparent;
  color: var(--color-red, #ef4444);
  padding: 10px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(239, 68, 68, 0.2);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-clear-cart:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
}

.badge-hero {
  background: rgba(250, 204, 21, 0.1);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.hero h1 {
  font-size: 62px;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.05;
  color: white;
  letter-spacing: 1px;
}

.hero h1 span {
  color: var(--color-primary);
  text-shadow: 0 0 30px rgba(250, 204, 21, 0.3);
}

.hero p {
  color: #94a3b8;
  font-size: 19px;
  margin-bottom: 35px;
  line-height: 1.65;
  max-width: 520px;
  letter-spacing: 0.5px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn-hero-primary {
  background: var(--color-primary);
  color: black;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.6);
}

.btn-hero-secondary {
  background: #1e293b;
  color: white;
  padding: 14px 28px;
  border: 1px solid #334155;
  border-radius: 6px;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-hero-secondary:hover {
  background: #334155;
}

/* SWIPER PROMOS (Dark Mode) */
.promo-section {
  padding: 60px 0;
  background: #020617;
  color: white;
}

.promo-section .section-title {
  color: white;
  margin-bottom: 40px;
  justify-content: center;
}

.promoSwiper {
  width: 100%;
  padding-bottom: 50px;
}

.swiper-slide {
  transition: transform 0.3s;
}

.swiper-slide:hover {
  transform: scale(1.02);
}

/* Tactical Frame Wrapper */
.promo-frame {
  position: relative;
  background: #1e293b;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #334155;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

/* Metallic/Stone Border Effect */
.promo-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 8px solid #475569;
  /* Slate 600 */
  border-radius: 12px;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Corner Decorations (Screws/Bolts) */
.promo-frame-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
  border: 2px solid #1e293b;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.corner-tl {
  top: -2px;
  left: -2px;
  border-radius: 6px 0 10px 0;
}

.corner-tr {
  top: -2px;
  right: -2px;
  border-radius: 0 6px 0 10px;
}

.corner-bl {
  bottom: -2px;
  left: -2px;
  border-radius: 0 10px 0 6px;
}

.corner-br {
  bottom: -2px;
  right: -2px;
  border-radius: 10px 0 6px 0;
}

.promo-section img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 7; /* Cinematic standard panoramic ratio */
  object-fit: contain; /* Ensures the banner is 100% visible and never cut off */
  background-color: #0b1221; /* Seamless premium dark backing */
  border-radius: 8px;
  transition: all 0.5s ease;
}

.promo-slide-link {
  display: block;
  width: 100%;
  cursor: pointer;
}

.promo-slide-link img {
  display: block;
}

@media (max-width: 1024px) {
  .promo-section img {
    aspect-ratio: 16 / 7; /* Optimized tablet proportion */
  }
}

@media (max-width: 768px) {
  .promo-section img {
    height: clamp(185px, 34vw, 245px) !important;
    width: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    background: #0b1221 !important;
  }
  .promo-frame::before {
    display: none !important;
  }
  .promo-frame-corner {
    display: none !important;
  }
  .promo-frame {
    padding: 0 !important; /* Zero padding to let the banner go edge-to-edge */
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #0f172a !important;
    overflow: hidden !important;
  }
  .promoSwiper {
    padding-bottom: 0 !important; /* Minimal spacing */
  }
  .promoSwiper .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0b1221 !important;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px !important;
    height: 32px !important;
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 12px !important;
  }
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary) !important;
  background: rgba(2, 6, 23, 0.85);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  border: 1px solid #1e293b;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
}

.swiper-pagination-bullet {
  background: #94a3b8 !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
  opacity: 1 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

/* ========================================= */
/* CSS CART FLYOUT                           */
/* ========================================= */
.action-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--color-red);
  color: white;
  font-size: 10px;
  font-weight: bold;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: var(--bg-white);
  z-index: 1000000 !important;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 18px;
  margin: 0;
}

.cart-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.empty-cart {
  text-align: center;
  color: var(--text-muted);
  margin-top: 50px;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
}

.cart-item img {
  width: 60px;
  height: 80px;
  object-fit: contain;
  background: #f3f4f6;
  border-radius: 6px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.cart-item-info p {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

.remove-item {
  background: none;
  border: none;
  color: var(--color-red);
  cursor: pointer;
  font-size: 16px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-light);
}

.cart-totals {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
}

.btn-checkout {
  width: 100%;
  background: var(--color-primary);
  color: black;
  font-weight: bold;
  border: none;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s;
}

.btn-checkout:hover {
  transform: translateY(-2px);
}

/* ========================================= */
/* PRODUCT DETAILS PAGE (producto.php)       */
/* ========================================= */

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 40px 0;
}

.product-detail-image {
  background: #f9fafb;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-detail-image img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.detail-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.detail-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.detail-set {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.detail-price {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 15px;
}

.detail-stock {
  font-size: 14px;
  background: #f3f4f6;
  color: var(--text-main);
  padding: 5px 12px;
  display: inline-block;
  border-radius: 6px;
  margin-bottom: 30px;
  font-weight: 500;
}

.detail-desc-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.detail-desc-text {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qty-row span {
  font-weight: 600;
  font-size: 14px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  height: 42px;
}

.quantity-selector button {
  background: #fff;
  border: none;
  width: 40px;
  height: 100%;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  transition: background 0.2s;
}

.quantity-selector button:hover {
  background: #f3f4f6;
}

.quantity-selector input {
  width: 50px;
  height: 100%;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

.buttons-row {
  display: flex;
  gap: 15px;
}

.btn-buy-now {
  flex: 1;
  background: #000;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
}

.detail-buttons-flex .btn-add {
  flex: 1;
  padding: 14px;
  font-size: 15px;
}

.vendor-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.vendor-icon {
  background: #f3f4f6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: var(--text-muted);
}

.vendor-info h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.vendor-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.trust-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}

.trust-line i {
  color: var(--color-red);
}

@media (max-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .buttons-row {
    flex-direction: column;
  }
}

/* ========================================= */
/* CHECKOUT PAGE (checkout.php)              */
/* ========================================= */

.checkout-page-body {
  background-color: #f9fafb;
}

.checkout-header {
  text-align: center;
  padding: 15px 0;
  background: var(--bg-black);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.checkout-header img {
  max-height: 80px;
}

.checkout-sub-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 15px;
  color: #fff;
}

.checkout-sub-actions a {
  border: 1px solid #444;
  padding: 6px 20px;
  color: #ccc;
  border-radius: 4px;
  transition: all 0.2s;
}

.checkout-sub-actions a:hover {
  background: #222;
  color: white;
  border-color: #666;
}

.checkout-subtitle {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  margin-top: 10px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 50px auto;
  align-items: start;
}

.checkout-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 10px;
}

.step-card {
  border-bottom: 1px solid var(--border-light);
}

.step-card:last-child {
  border-bottom: none;
}

.step-header {
  padding: 15px 20px;
  background: #f8f9fa;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}

.step-header h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
  color: #666;
}

.step-header p {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: #999;
}

.step-card.active .step-header {
  background: white;
  border-bottom: 1px solid #f0f0f0;
}

.step-card.active .step-header h3 {
  color: black;
  font-size: 18px;
}

.step-body {
  display: none;
  padding: 20px;
  background: white;
  animation: fadeIn 0.3s forwards;
}

.step-card.active .step-body {
  display: block;
}

/* Formularios dentro de los pasos */
.login-guest-flex {
  display: flex;
  gap: 40px;
}

.login-guest-flex>div {
  flex: 1;
}

.login-guest-flex h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.login-guest-flex .divider {
  width: 3px;
  background: var(--border-light);
  flex: none;
  align-self: stretch;
}

@media (max-width: 768px) {
  .login-guest-flex .divider {
    width: 100%;
    height: 1px;
    margin: 10px 0;
  }
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  border-radius: 6px;
  transition: border 0.2s;
}

.form-group input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.btn-checkout-step {
  background: var(--color-primary);
  color: black;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  float: right;
  border-radius: 6px;
  transition: opacity 0.2s;
}

.btn-checkout-step:hover {
  opacity: 0.8;
}

.checkout-summary {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  top: 20px;
}

.checkout-summary h3 {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 25px;
  padding-bottom: 12px;
  font-weight: 900;
  color: #333;
  border-bottom: 2px solid var(--border-light);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px !important;
  margin-bottom: 16px;
  color: #4b5563;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  margin-top: 15px;
  border-top: 1px solid var(--border-light);
  padding-top: 15px;
  color: black;
}

.btn-place-order {
  width: 100%;
  background: #e5e7eb;
  color: #9ca3af;
  padding: 14px;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: not-allowed;
  transition: all 0.3s;
  border-radius: 8px;
}

.btn-place-order.enabled {
  background: black;
  color: var(--color-primary);
  cursor: pointer;
}

.btn-place-order.enabled:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-items-review {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
  overflow: hidden;
}

.cart-items-review-header {
  background: #f9fafb;
  color: #333;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
}

.cart-review-list {
  padding: 0 20px;
}

.rev-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-light);
}

.rev-item:last-child {
  border-bottom: none;
}

.rev-item img {
  height: 60px;
  margin-right: 15px;
  border-radius: 4px;
  border: 1px solid #eee;
}

.rev-info {
  flex: 1;
  font-size: 13px;
}

.rev-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--text-main);
}

.rev-info p {
  margin: 0;
  color: #888;
  font-size: 12px;
}

.rev-price {
  text-align: right;
  font-size: 16px;
  font-weight: 800;
  color: #16a34a;
}

.checkout-footer-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 12px;
  color: #666;
  text-align: center;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  max-width: 1100px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.checkout-footer-cards div {
  flex: 1;
  padding: 0 15px;
  border-right: 1px solid var(--border-light);
}

.checkout-footer-cards div:last-child {
  border-right: none;
}

.checkout-footer-cards h5 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--color-primary-hover);
  text-transform: uppercase;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === USER ACCOUNT DROPDOWN === */
.user-account-dropdown {
  display: none;
  top: 100%;
  margin-top: 5px;
  min-width: 230px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  transform-origin: top right;
  background-color: white !important;
  z-index: 9999 !important;
}

.user-account-dropdown .dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 18px !important;
  font-size: 13px !important;
  color: #4a5568 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  background-color: transparent !important;
  line-height: normal !important;
}

.user-account-dropdown .dropdown-item:hover {
  background-color: #f8fafc !important;
  color: #b18428 !important;
  padding-left: 22px !important;
}

.user-account-dropdown .dropdown-item i {
  width: 18px !important;
  text-align: center !important;
  font-size: 14px !important;
  color: #a0aec0 !important;
}

.user-account-dropdown .dropdown-item:hover i {
  color: #b18428 !important;
}

.user-account-dropdown .badge-red {
  background-color: #ff5c5c !important;
  color: white !important;
  font-size: 10px !important;
  font-weight: bold !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  min-width: 20px !important;
  text-align: center !important;
}

.user-account-dropdown .badge-price {
  background-color: #fff5f5 !important;
  color: #ff5c5c !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 92, 92, 0.2) !important;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* === RESPONSIVE DESIGN (MOBILE FIRST) === */

/* Mobile Sidebar Styles */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: white;
  z-index: 10001;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
  right: 0;
}

.mobile-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-close-btn,
.mobile-theme-btn {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-close-btn:hover,
.mobile-theme-btn:hover {
  background: #e2e8f0;
  color: var(--color-primary);
}

.mobile-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mobile-user-info {
  background: #f8fafc;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.mobile-user-info .welcome {
  font-size: 11px;
  color: #94a3b8;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
}

.mobile-user-info .name {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin: 2px 0;
}

.mobile-user-info .credits {
  font-size: 13px;
  color: #b18428;
  font-weight: bold;
}

.sidebar-divider {
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 1px;
  margin: 25px 0 15px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-main-nav,
.mobile-cat-nav,
.mobile-account-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-main-nav a,
.mobile-cat-nav a,
.mobile-account-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

/* Mobile categories as accordion */
.mobile-cat-group {
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
}

.mobile-cat-group summary {
  list-style: none;
  padding: 10px 12px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 800;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s;
}

.mobile-cat-group summary::-webkit-details-marker {
  display: none;
}

.mobile-cat-group summary:hover {
  background: #f8fafc;
  color: #b18428;
}

.mobile-cat-group summary i {
  transition: transform 0.2s ease;
  color: #94a3b8;
}

.mobile-cat-group[open] summary i {
  transform: rotate(180deg);
}

.mobile-cat-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 12px 10px;
  background: #ffffff;
}

.mobile-cat-link {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-cat-link:hover {
  background: #ffffff;
  border-color: rgba(245, 176, 39, 0.35);
  color: #b18428;
}

.mobile-cat-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 4px 12px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  margin-left: 4px;
}

.mobile-cat-sublink {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  transition: all 0.2s;
}

.mobile-cat-sublink:hover {
  border-color: rgba(245, 176, 39, 0.35);
  color: #b18428;
}

.mobile-main-nav a i {
  font-size: 16px;
  color: #b18428;
  width: 20px;
}

.mobile-main-nav a:hover {
  background: #f8fafc;
  color: #b18428;
}

/* ── Dark Mode para Mobile Sidebar ── */
body.dark-mode .mobile-sidebar {
  background: #0f172a !important;
  color: #f1f5f9 !important;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .mobile-sidebar-header {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .mobile-close-btn,
body.dark-mode .mobile-theme-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #94a3b8 !important;
}

body.dark-mode .mobile-close-btn:hover,
body.dark-mode .mobile-theme-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--color-primary) !important;
}

body.dark-mode .mobile-user-info {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .mobile-user-info .welcome {
  color: #64748b !important;
}

body.dark-mode .mobile-user-info .name {
  color: #ffffff !important;
}

body.dark-mode .sidebar-divider {
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
  color: #475569 !important;
}

body.dark-mode .mobile-main-nav a,
body.dark-mode .mobile-cat-nav a,
body.dark-mode .mobile-account-nav a {
  color: #cbd5e1 !important;
}

body.dark-mode .mobile-cat-group {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .mobile-cat-group summary {
  color: #cbd5e1 !important;
}

body.dark-mode .mobile-cat-group summary:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--color-primary) !important;
}

body.dark-mode .mobile-cat-links {
  background: rgba(255, 255, 255, 0.02) !important;
}

body.dark-mode .mobile-cat-link {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-left: 3px solid var(--color-primary) !important;
  color: #ffffff !important;
}

body.dark-mode .mobile-cat-link:hover {
  border-color: rgba(245, 176, 39, 0.25) !important;
  color: var(--color-primary) !important;
}

body.dark-mode .mobile-cat-sublink {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
  color: #64748b !important;
}

body.dark-mode .mobile-cat-sublink:hover {
  border-color: rgba(245, 176, 39, 0.25) !important;
  color: var(--color-primary) !important;
}


/* ================================ */
/* Notifications (Mi Cuenta)        */
/* ================================ */
.notif-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(245, 176, 39, 0.10);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.04);
}

.notif-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 176, 39, 0.22);
  border: 1px solid rgba(245, 176, 39, 0.35);
  color: #8a5e0f;
  flex-shrink: 0;
}

.notif-copy {
  min-width: 0;
}

.notif-title {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-meta {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(100, 116, 139, 0.95);
}

.notif-close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(15, 23, 42, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.notif-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(245, 176, 39, 0.35);
  color: #0f172a;
}

body.dark-mode .notif-card {
  background: rgba(245, 176, 39, 0.08);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

body.dark-mode .notif-icon {
  background: rgba(245, 176, 39, 0.14);
  border-color: rgba(245, 176, 39, 0.25);
  color: rgba(245, 176, 39, 0.95);
}

body.dark-mode .notif-title {
  color: rgba(248, 250, 252, 0.95);
}

body.dark-mode .notif-meta {
  color: rgba(148, 163, 184, 0.9);
}

body.dark-mode .notif-close {
  background: rgba(2, 6, 23, 0.65);
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(226, 232, 240, 0.9);
}

body.dark-mode .notif-close:hover {
  background: rgba(245, 176, 39, 0.18);
  border-color: rgba(245, 176, 39, 0.30);
  color: #fff;
}

body.dark-mode .mobile-main-nav a:hover,
body.dark-mode .mobile-cat-nav a:hover,
body.dark-mode .mobile-account-nav a:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--color-primary) !important;
}

@media (max-width: 1024px) {
  .hero .container {
    gap: 40px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .catalog-body {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {

  /* Hero Stacking */
  .hero {
    padding: 40px 0;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-left {
    width: 100% !important;
    order: 2;
    margin-top: 20px;
  }

  .hero-right {
    width: 60% !important;
    order: 1;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
  }

  .hero p {
    text-align: center;
    margin: 20px auto;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Promo Section */
  .promo-section {
    padding: 30px 0;
  }

  .promo-frame {
    padding: 5px;
  }

  /* Product Grids (Catalog and Home) */
  .product-grid,
  .grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .product-card {
    padding: 8px;
  }

  .product-title {
    font-size: 13px;
    height: 38px;
    overflow: hidden;
  }

  .card-actions button {
    padding: 8px;
    font-size: 12px;
  }

  /* Catalog Filters Sidebar */
  aside.w-full.lg\:w-64 {
    margin-bottom: 20px;
    padding: 15px;
  }

  /* Features Section */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Footer */
  .footer-main .container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 640px) {

  /* Header adjustments */
  header {
    padding: 8px 0;
  }

  .user-actions {
    gap: 8px;
  }

  .logo-link img {
    height: 32px;
  }

  /* Sections */
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .section-title {
    font-size: 16px;
  }

  .see-all {
    font-size: 11px;
  }

  /* Product Detail Page */
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-info-panel {
    padding: 20px;
  }

  /* Checkout Accordion */
  .step-header h3 {
    font-size: 13px;
  }

  .login-guest-flex {
    gap: 15px;
  }

  /* Account Dashboard */
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .max-w-4xl {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 13px;
  }

  /* Product Grid 2 items per row */
  .product-grid,
  .grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .card-image-wrap {
    height: 150px;
  }

  .product-price,
  .product-price-val {
    font-size: 18px !important;
  }

  /* Navigation Tabs */
  .category-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* Buttons */
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    margin-bottom: 10px;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* === FLOATING SOCIALS === */
.floating-socials {
  position: fixed;
  right: 10px;
  /* Menos separado del margen derecho */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 9999;
}

.social-btn {
  width: 42px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 20px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-btn.facebook {
  background-color: #1877f2;
  /* Azul Facebook Oficial */
}

.social-btn.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  /* Gradiente Instagram Oficial */
}

.social-btn.whatsapp {
  background-color: #25d366;
  /* Verde WhatsApp Oficial */
}

.social-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.social-btn:hover i {
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .floating-socials {
    top: auto;
    bottom: 80px;
    transform: none;
    right: 8px;
    flex-direction: column;
    gap: 8px;
  }

  .social-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .social-btn:hover {
    width: 32px;
    padding-right: 0;
    border-radius: 50%;
  }
}

/* ========================================= */
/* PREMIUM CHECKOUT REMODEL                  */
/* ========================================= */
.checkout-page-body {
  background-color: #f8fafc;
  color: #1e293b;
}

.checkout-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.checkout-header h1 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
}

.step-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.step-card.active {
  border-color: #b18428;
  box-shadow: 0 20px 25px -5px rgba(177, 132, 40, 0.1), 0 10px 10px -5px rgba(177, 132, 40, 0.04);
}

.step-card.completed {
  border-color: #f1f5f9;
  background: #fcfcfc;
}

.step-header {
  background: transparent;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.step-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-header p {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.step-status {
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.completed .step-status {
  background: #ecfdf5;
  color: #10b981;
}

.active .step-status {
  background: #b18428;
  color: #fff;
}

.step-body {
  padding: 32px 32px 32px 32px;
}

/* Stepper Indicator */
.checkout-stepper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  text-align: center;
}

/* Line between circles */
.stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

body.dark-mode .stepper-item:not(:last-child)::after {
  background: #1e293b;
}

.stepper-item.completed:not(:last-child)::after {
  background: #10b981;
}

.stepper-circle {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
  margin-bottom: 10px;
}

.stepper-item.active .stepper-circle {
  background: #b18428;
  border-color: #b18428;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(177, 132, 40, 0.2);
}

.stepper-item.completed .stepper-circle {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.stepper-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
  display: block;
  width: 100%;
  word-wrap: break-word;
}

.stepper-item.active .stepper-label {
  color: #0f172a;
}

/* Forms Premium */
.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  transition: all 0.2s ease;
}

.form-group input:focus {
  background: #fff;
  border-color: #b18428;
  box-shadow: 0 0 0 4px rgba(177, 132, 40, 0.1);
  outline: none;
}

/* Buttons */
.btn-checkout-step {
  background: #1e293b;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(30, 41, 59, 0.2);
}

.btn-checkout-step:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(30, 41, 59, 0.3);
}

/* Summary Card */
.checkout-summary {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ========================================= */
/* DARK MODE SUPPORT FOR CHECKOUT            */
/* ========================================= */
body.dark-mode.checkout-page-body {
  background-color: #060910;
  color: #f8fafc;
}

body.dark-mode .step-card,
body.dark-mode .checkout-summary,
body.dark-mode .checkout-header {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

body.dark-mode .step-header,
body.dark-mode .step-card.active .step-header,
body.dark-mode .step-body,
body.dark-mode .step-card.completed {
  background: transparent !important;
  border-color: #1e293b !important;
}

body.dark-mode .step-card.active {
  border-color: #b18428 !important;
}

body.dark-mode .step-header h3,
body.dark-mode .step-card.active .step-header h3 {
  color: #f8fafc !important;
}

body.dark-mode .step-header p,
body.dark-mode .summary-row,
body.dark-mode .stepper-label,
body.dark-mode .form-group label {
  color: #94a3b8 !important;
}

body.dark-mode .stepper-circle {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

body.dark-mode .step-status {
  background: #1e293b;
  color: #94a3b8;
}

body.dark-mode .active .step-status {
  background: #b18428 !important;
  color: #fff !important;
}

body.dark-mode .completed .step-status {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
  background: #060910;
  border-color: #1e293b;
  color: #f8fafc;
}

body.dark-mode .btn-checkout-step {
  background: #b18428;
  color: #000;
  box-shadow: 0 10px 15px -3px rgba(177, 132, 40, 0.2);
}

body.dark-mode .btn-checkout-step:hover {
  background: #e09f20;
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(177, 132, 40, 0.3);
}

body.dark-mode .checkout-summary h3 {
  color: #f8fafc;
  border-bottom-color: #1e293b;
}

body.dark-mode .summary-total {
  border-top-color: #1e293b;
}

body.dark-mode .summary-total span:first-child {
  color: #f8fafc;
}

body.dark-mode .summary-row span:last-child {
  color: #f8fafc;
}

body.dark-mode .checkpoint-badge {
  background: #1e293b;
}

body.dark-mode .stepper-item.active .stepper-label {
  color: #b18428;
}

body.dark-mode .step-checkout-footer {
  background: var(--bg-white);
}

/* Additional Checkout Dark Mode Fixes */
body.dark-mode .summary-row span:first-child {
  color: #94a3b8 !important;
}

body.dark-mode .checkout-summary h3 {
  border-bottom-color: #1e293b !important;
}

body.dark-mode .summary-total {
  border-top-color: #1e293b !important;
}

body.dark-mode .bg-gray-50 {
  background-color: #1e293b !important;
}

body.dark-mode .border-gray-200 {
  border-color: #334155 !important;
}

body.dark-mode .text-gray-900 {
  color: #f8fafc !important;
}

body.dark-mode .text-gray-800,
body.dark-mode .text-gray-700,
body.dark-mode .text-gray-600 {
  color: #f8fafc !important;
}

body.dark-mode .text-gray-400 {
  color: #94a3b8 !important;
}

.checkout-summary h3 {
  font-size: 18px;
  font-weight: 950;
  color: #0f172a;
  margin-bottom: 24px;
  letter-spacing: 1.2px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 16px !important;
  color: #64748b;
}

.summary-total {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px dashed #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-total span:first-child {
  font-size: 20px !important;
  font-weight: 900;
  color: #0f172a;
}

.summary-total span:last-child {
  font-size: 24px !important;
  font-weight: 900;
  color: #b18428;
}

.btn-place-order {
  width: 100%;
  background: linear-gradient(135deg, #b18428 0%, #d4af37 100%);
  color: #000;
  font-weight: 900;
  font-size: 16px;
  padding: 18px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(177, 132, 40, 0.2);
  transition: all 0.3s ease;
}

.btn-place-order:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(177, 132, 40, 0.3);
}

.btn-place-order:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}


/* ═══════════════════════════════════════════════════════════════
   MEJORAS DARK MODE — Contenido de la página
═══════════════════════════════════════════════════════════════ */

/* Trust Badges */
body.dark-mode .trust-badges {
  border-top-color: var(--border-light);
  border-bottom-color: var(--border-light);
}

body.dark-mode .trust-badge-item i {
  background-color: rgba(245, 176, 39, 0.1);
  color: var(--color-primary);
}

body.dark-mode .trust-badge-item h4 {
  color: var(--text-main);
}

body.dark-mode .trust-badge-item p {
  color: var(--text-muted);
}

/* Product Cards */
body.dark-mode .product-card {
  background-color: var(--bg-white);
  border-color: var(--border-light);
}

body.dark-mode .card-image-wrap {
  background-color: #0f1a2e;
}

body.dark-mode .product-title {
  color: var(--text-main);
}

body.dark-mode .product-detail-image {
  background-color: var(--bg-white);
  border-color: var(--border-light);
}

/* About section */
body.dark-mode .about-grid {
  background-color: var(--bg-white);
  border-color: var(--border-light);
}

body.dark-mode .about-right-col {
  border-color: var(--border-light);
}

/* Stock badge & quantity selector */
body.dark-mode .detail-stock {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

body.dark-mode .quantity-selector {
  border-color: var(--border-light);
}

body.dark-mode .quantity-selector button {
  background: var(--bg-white) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-light) !important;
}

body.dark-mode .quantity-selector input {
  background: var(--bg-white) !important;
  color: var(--text-main) !important;
  border-color: var(--border-light) !important;
}

/* Product set text */
body.dark-mode .product-set {
  color: var(--text-muted);
}

/* Banner & Promo — siempre oscuros */
.banner-promo {
  background-color: #020617;
}

body.dark-mode .banner-promo {
  background-color: #000;
}

/* User Dropdown dark mejorado */
body.dark-mode .user-account-dropdown .dropdown-item {
  color: var(--text-main) !important;
}

body.dark-mode .user-account-dropdown .dropdown-item:hover {
  background-color: var(--bg-body) !important;
}

/* Mobile Sidebar dark mejorado */
body.dark-mode .mobile-sidebar {
  background: #0f172a;
}

body.dark-mode .mobile-sidebar-header {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

body.dark-mode .mobile-close-btn,
body.dark-mode .mobile-theme-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

body.dark-mode .mobile-close-btn:hover,
body.dark-mode .mobile-theme-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-primary);
}

body.dark-mode .sidebar-divider {
  border-bottom-color: rgba(255, 255, 255, 0.07);
  color: #475569;
}

body.dark-mode .mobile-main-nav a,
body.dark-mode .mobile-cat-nav a,
body.dark-mode .mobile-account-nav a {
  color: #94a3b8;
}

body.dark-mode .mobile-main-nav a:hover {
  background: rgba(245, 176, 39, 0.08);
  color: var(--color-primary);
}

/* Cart Sidebar dark */
body.dark-mode .cart-sidebar {
  background: var(--bg-white);
  border-left: 1px solid var(--border-light);
}

body.dark-mode .cart-header h3 {
  color: var(--text-main);
}

body.dark-mode .cart-item-info h4 {
  color: var(--text-main);
}

/* ═══════════════════════════════════════════════════════════════
   INDEX.PHP — DARK MODE COMPLETO Y PROFESIONAL
═══════════════════════════════════════════════════════════════ */

/* ── Secciones de contenido ── */
body.dark-mode .section-wrapper {
  background-color: var(--bg-body);
}

body.dark-mode .section-wrapper.bg-alt {
  background-color: var(--bg-body);
}

body.dark-mode .section-header {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

body.dark-mode .section-header::after {
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(245, 176, 39, 0.4);
}

body.dark-mode .section-title {
  color: var(--text-main);
}

/* ── Product Cards dark ── */
body.dark-mode .product-card {
  background-color: #111827;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .product-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary),
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(245, 176, 39, 0.08);
}

body.dark-mode .card-image-wrap {
  background: linear-gradient(145deg, #0d1728 0%, #111e35 100%);
}

body.dark-mode .product-title {
  color: #f1f5f9;
}

body.dark-mode .product-set {
  color: #475569;
}

body.dark-mode .product-stock {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #64748b;
}

body.dark-mode .btn-view {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

body.dark-mode .btn-view:hover {
  background: #000;
  border-color: rgba(245, 176, 39, 0.5);
  color: var(--color-primary);
}

/* ── Badges ── */
body.dark-mode .badge-img-right,
body.dark-mode .badge-img-left {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #e2e8f0;
}

body.dark-mode .badge-img-left {
  background: linear-gradient(135deg, var(--color-primary) 0%, #e09f20 100%);
  color: #000;
}

/* ── Trust Badges dark ── */
body.dark-mode .trust-badges {
  background-color: #0d1117;
  border-top-color: rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .trust-badge-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .trust-badge-item i {
  background: linear-gradient(135deg, rgba(245, 176, 39, 0.15) 0%, rgba(245, 176, 39, 0.08) 100%);
  color: var(--color-primary);
  box-shadow: 0 0 20px rgba(245, 176, 39, 0.15);
}

body.dark-mode .trust-badge-item:hover i {
  box-shadow: 0 0 30px rgba(245, 176, 39, 0.3);
}

body.dark-mode .trust-badge-item h4 {
  color: #f1f5f9;
}

body.dark-mode .trust-badge-item p {
  color: #64748b;
}

/* ── Banner Promo dark ── */
body.dark-mode .banner-promo {
  background: var(--bg-white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .banner-content h2 {
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .banner-content p {
  color: #64748b;
}

/* ── Noticias Home dark ── */
body.dark-mode .noticias-home {
  background-color: var(--bg-white) !important;
}

body.dark-mode .noticias-grid {
  background-color: #0d1117 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .news-card {
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

body.dark-mode .news-card:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .news-card-overlay {
  background: #0a0f1a !important;
}

body.dark-mode .news-card-overlay p {
  color: var(--color-primary) !important;
}

body.dark-mode .news-card:hover .news-card-overlay {
  background: var(--color-primary) !important;
}

body.dark-mode .news-card:hover .news-card-overlay p {
  color: #000 !important;
}

/* ── Promo Swiper dark ── */
body.dark-mode .promo-section {
  background: #020617;
}

/* ========================================= */
/* VIDEO & EVENTS SHOWCASE SECTION           */
/* ========================================= */
.video-showcase {
  padding: 80px 0;
  background: var(--bg-body);
  position: relative;
  overflow: hidden;
  transition: background-color 0.35s ease;
}

body.dark-mode .video-showcase {
  background: #060910;
}

.video-showcase .section-header {
  border-bottom: none;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 60px;
  padding-bottom: 0;
}

.video-showcase .section-header::after {
  content: '';
  display: block;
  margin: 15px auto 0;
  position: static;
  width: 80px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(245, 176, 39, 0.4);
}

.video-showcase .section-title {
  color: var(--text-main) !important;
  text-align: center;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 2px;
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
}

.showcase-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.showcase-content.only-events {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.showcase-content.only-video {
  grid-template-columns: 1fr;
  max-width: 560px;
}

/* Columna Video */
.showcase-video {
  width: 100%;
}

.showcase-video.is-vertical-video {
  display: flex;
  justify-content: center;
}

.video-card {
  background: var(--bg-white);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.video-card.is-vertical-card {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

body.dark-mode .video-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.video-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-primary);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
}

.video-wrapper.is-vertical {
  aspect-ratio: 9 / 16;
  max-width: 430px;
  margin: 0 auto;
}


.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Columna Eventos */
.events-container {
  background: var(--bg-white);
  border-radius: 32px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

body.dark-mode .events-container {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.events-header {
  padding: 25px 30px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 15px;
}

body.dark-mode .events-header {
  border-color: rgba(255, 255, 255, 0.05);
}

.events-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.events-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-item:hover {
  background: rgba(245, 176, 39, 0.05);
}

.event-date {
  width: 50px;
  height: 55px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

body.dark-mode .event-date {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.05);
}

.event-mes {
  font-size: 9px;
  font-weight: 900;
  color: #b18428;
  text-transform: uppercase;
}

.event-dia {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.event-info {
  flex: 1;
}

.event-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.event-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-clamp: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.events-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

body.dark-mode .events-footer {
  border-color: rgba(255, 255, 255, 0.05);
}

.view-all-events {
  font-size: 11px;
  font-weight: 800;
  color: #b18428;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .showcase-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .events-container {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .video-showcase {
    padding: 48px 0;
  }
  .video-showcase .section-title {
    font-size: 32px;
  }
  .video-showcase .section-header {
    margin-bottom: 34px;
  }
  .showcase-video {
    max-width: min(390px, calc(100vw - 42px));
    margin: 0 auto;
  }
  .video-card {
    border-radius: 28px;
    box-shadow: none;
  }
  .video-card.is-vertical-card {
    max-width: 390px;
  }
  .video-card:hover {
    transform: none;
  }
  .video-wrapper.is-vertical {
    width: 100%;
    max-width: 390px;
    aspect-ratio: 9 / 16;
  }
}

/* MOBILE PREMIUM GRID LAYOUT - KANTOTCG STYLE - FOR PHONES AND TABLETS */
@media (max-width: 1024px) {
  /* 1. Forzar una cuadrícula de 2 columnas súper alineada */
  .product-grid,
  .grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
    display: grid !important;
    gap: 12px !important;
    padding: 4px !important;
  }

  /* 2. Rediseñar la carta de producto vertical premium (Estilo Card TCGPlayer) */
  .product-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 10px !important;
    background-color: #0f172a !important; /* Azul cobalto profundo elegante */
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    min-height: auto !important;
    text-align: left !important;
    height: auto !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* 3. Contenedor de la Imagen (Arriba) */
  .card-image-wrap {
    width: 100% !important;
    height: auto !important;
    min-width: unset !important;
    max-width: unset !important;
    aspect-ratio: 3 / 4 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 0 0 10px 0 !important;
    background: rgba(255, 255, 255, 0.02) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .card-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 12px !important;
  }

  /* Badges de Idioma y Stock sobre la imagen */
  .badge-img-right,
  .badge-img-left {
    display: none !important; /* Evitar duplicaciones */
  }

  /* 4. Contenido / Textos */
  .card-content {
    flex: unset !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
  }

  /* Título del Producto (2 líneas máx con altura fija para alineación perfecta) */
  .product-card .card-content h3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: #f1f5f9 !important; /* Blanco suave */
    height: 30px !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
  }

  /* Set / Colección / Rareza */
  .product-card .card-content .flex.items-center.justify-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 4px !important;
  }

  .product-card .card-content .flex.items-center.justify-between p {
    font-size: 9px !important;
    font-weight: 600 !important;
    color: #64748b !important; /* Slate gray */
    margin: 0 !important;
    padding: 0 !important;
    max-width: 65% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .product-card .card-content .flex.items-center.justify-between span {
    font-size: 9px !important;
    font-weight: 800 !important;
    color: #c084fc !important; /* Púrpura vibrante para la rareza */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Área Inferior de Precio y Disponibilidad */
  .product-card .product-status-area {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 0 0 0 !important;
    margin: 6px 0 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  /* Precio */
  .product-card .product-status-area span.text-green-700,
  .product-card .product-status-area span.text-green-400 {
    font-size: 13px !important;
    font-weight: 900 !important;
    color: #34d399 !important; /* Verde Esmeralda vibrante */
    margin: 0 !important;
  }

  /* Stock */
  .product-card .product-status-area span.text-gray-400 {
    font-size: 9px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    margin: 0 !important;
  }

  /* 10. Botones de Acción (Ojito y Carrito en móvil súper estructurados) */
  .product-card .card-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .product-card .card-actions .btn-add {
    flex: 1 !important;
    background: linear-gradient(135deg, #b18428 0%, #966b1d 100%) !important;
    color: #000 !important;
    border: none !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 8px 4px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    height: 32px !important;
    cursor: pointer !important;
  }

  .product-card .card-actions .btn-view {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
  }

  .btn-view-text {
    display: none !important;
  }

  /* Support for homepage index.php layout on mobile */
  .product-card h3.product-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: #f1f5f9 !important;
    height: 30px !important;
    margin: 4px 0 2px 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .product-card p.product-set {
    font-size: 9px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: left !important;
  }

  .product-card .card-tags {
    display: flex !important;
    gap: 4px !important;
    margin: 4px 0 2px 0 !important;
    padding: 0 !important;
  }

  .product-card .card-tags .tag {
    font-size: 9px !important;
    font-weight: 800 !important;
    color: #c084fc !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .product-card .product-bottom-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 0 0 0 !important;
    margin: 6px 0 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .product-card .product-bottom-info .product-price {
    font-size: 13px !important;
    font-weight: 900 !important;
    color: #34d399 !important;
    margin: 0 !important;
    text-shadow: none !important;
  }

  .product-card .product-bottom-info .product-stock {
    font-size: 9px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    margin: 0 !important;
  }

  .card-actions-hover {
    display: none !important;
  }
}

/* Quantity Stepper for Cards - Precise Match */
.qty-wrapper {
  display: flex;
  align-items: center;
  background: #0f172a; /* Dark precise background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px; /* Slightly tighter rounding for compact mode */
  overflow: hidden;
  height: 34px;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.qty-wrapper:hover, .qty-wrapper:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
}
.qty-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  width: 22px; /* Reduced from 28px */
  height: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px; /* Smaller icons */
  user-select: none;
}
.qty-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.qty-input {
  flex: 1;
  background: transparent;
  border: none;
  text-align: center;
  color: #ffffff;
  font-size: 12px; /* Tighter font */
  font-weight: 700;
  width: 16px; /* Reduced width for number to minimize space */
  min-width: 16px;
  height: 100%;
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
  font-family: sans-serif;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* FORCE INLINE ALIGNMENT IN CARD ACTIONS */
.card-actions {
  display: flex !important;
  gap: 6px !important;
  padding: 0 8px !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100%;
}

/* Make the stepper very small and locked */
.card-actions .qty-wrapper {
  flex: 0 0 62px !important; /* Shrink from 78px to 62px giving back 16px to Agregar */
  margin: 0 !important;
}

/* Allow Agregar to breathe */
.card-actions .btn-add {
  flex: 1 !important;
  font-size: 11.5px !important; /* Sligthly larger now that space is reclaimed */
  font-weight: 800 !important;
  padding: 0 6px !important;
  height: 34px !important;
  gap: 4px !important;
  white-space: nowrap;
  overflow: hidden;
}

/* Minimize 'Ver' to icon-only to maximize space */
.card-actions .btn-view {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  justify-content: center !important;
  border-radius: 8px !important;
}

.card-actions .btn-view span, 
.card-actions .btn-view-text {
  display: none !important; /* HIDE text to keep only the EYE icon */
}
