/*
 * Estilos principales para la tienda Areplay. Este archivo define una
 * paleta oscura con acentos neon inspirados en el logotipo del usuario.
 * También incluye un efecto glitch en los títulos para reflejar la estética
 * retro‑futurista de la marca.
 */

/* Ajustes globales y variables de color */
:root {
  --color-bg: #0a0a0a;
  --color-primary: #0ff; /* cian para reflejos */
  --color-secondary: #f0f; /* magenta para reflejos */
  --color-accent: #0f0; /* verde para detalles */
  --color-text: #ffffff;
  --card-bg: #1a1a1a;
  --card-border: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  scroll-behavior: smooth;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Contenedor de iconos de consolas en el encabezado */
.console-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  color: var(--color-secondary);
}

/* Ajustar color para cada icono individual si se desea variedad */
.console-icons i:nth-child(1) {
  color: var(--color-primary);
}
.console-icons i:nth-child(2) {
  color: var(--color-secondary);
}
.console-icons i:nth-child(3) {
  color: var(--color-accent);
}

.logo-container img {
  height: 60px;
  /* Slight filter to match the neon palette */
  filter: drop-shadow(0 0 4px var(--color-primary));
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}

nav ul li {
  margin-left: 0;
}

nav {
  display: flex;
  align-items: center;
}

.account-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 255, 255, 0.08);
  color: var(--color-text);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.account-button:hover {
  transform: translateY(-1px);
  border-color: var(--color-primary);
  background: rgba(0, 255, 255, 0.14);
}

.account-button.saved {
  border-color: rgba(0, 255, 0, 0.45);
  background: rgba(0, 255, 0, 0.12);
}

.logout-button {
  border-color: rgba(255, 0, 255, 0.35);
  background: rgba(255, 0, 255, 0.08);
}

.logout-inline {
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 0, 255, 0.35);
  background: rgba(255, 0, 255, 0.08);
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
}

/* Estilos para el carrito de compras en el encabezado */
.cart {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 20px;
  font-weight: 600;

  /* Make the cart clickable to open the cart overlay */
  cursor: pointer;
}

.cart-icon {
  font-size: 1.4rem;
}

#cart-count {
  background: var(--color-secondary);
  color: var(--color-bg);
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* ==========================
   Carrito de compras overlay
   ========================== */

/* Overlay that covers the entire viewport when the cart is open */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* When the cart overlay has the 'show' class, make it visible */
.cart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Panel that contains the cart content */
.cart-panel {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  color: var(--color-text);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 20px rgba(255, 0, 255, 0.1);
}

/* Header of the cart panel */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#close-cart {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.2rem;
  cursor: pointer;
}

#cart-items-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  max-height: 200px;
  overflow-y: auto;
}

#cart-items-list li {
  padding: 5px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9rem;
}

#empty-cart-message {
  text-align: center;
  margin: 15px 0;
  color: #aaaaaa;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: stretch;
}

#clear-cart {
  background: var(--color-secondary);
  color: var(--color-bg);
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 45%;
}

#clear-cart:hover {
  opacity: 0.8;
}

#checkout-whatsapp {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 45%;
}

/* Estilos para el botón de proceder al pago dentro del carrito */
#proceed-to-pay {
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 45%;
  transition: transform 0.2s ease;
}

#proceed-to-pay:hover:not(.disabled) {
  transform: scale(1.05);
}

/* Disabled state for buttons in cart actions */
.cart-actions button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================
   Cookie consent banner
   ========================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: var(--color-text);
  padding: 15px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 3000;
  font-size: 0.9rem;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner button {
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner button:hover {
  opacity: 0.9;
}

/* =============================
   Controles de cantidad en el carrito
   ============================= */

/* Fila de ítem del carrito con nombre y cantidad */
.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

/* Nombre del producto en la fila del carrito */
.cart-item-name {
  flex: 1 1 auto;
  margin-right: 10px;
  font-size: 0.9rem;
}

/* Contenedor de los botones de aumentar/disminuir y la cantidad */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Botones + y - para ajustar cantidad */
.quantity-control button {
  background: var(--color-secondary);
  color: var(--color-bg);
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.quantity-control button:hover {
  opacity: 0.8;
}

/* Texto de la cantidad */
.quantity-control .quantity {
  min-width: 24px;
  text-align: center;
  font-size: 0.9rem;
}

/* ==========================
   Formulario de checkout y pago
   ========================== */

/* Overlay que cubre la pantalla para el checkout */
.checkout-overlay,
.account-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Mostrar overlay cuando tenga la clase show */
.checkout-overlay.show,
.account-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Panel de formulario */
.checkout-panel,
.account-panel {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  max-width: 420px;
  width: 90%;
  max-height: 92vh;
  overflow-y: auto;
  color: var(--color-text);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), 0 0 20px rgba(255, 0, 255, 0.1);
}

.checkout-header,
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.checkout-header h3,
.account-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.account-tab {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
}

.account-tab.active {
  color: var(--color-bg);
  border-color: transparent;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

#close-checkout,
#close-account,
#close-login {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.2rem;
  cursor: pointer;
}

#close-account {
  font-size: 0;
}

#close-account::before {
  content: 'x';
  font-size: 1.2rem;
}

.checkout-form .form-group,
.account-form .form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.checkout-form label,
.account-form label {
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #cccccc;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.account-form input,
.account-form textarea,
.account-form select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--color-text);
  font-size: 0.9rem;
  width: 100%;
}

.checkout-form textarea,
.account-form textarea {
  resize: vertical;
}

.checkout-submit,
#save-account,
#submit-login {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.checkout-submit:hover,
#save-account:hover,
#submit-login:hover {
  opacity: 0.9;
}

.checkout-response,
.account-response {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--color-primary);
  text-align: center;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.account-history ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.account-history li {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.035);
}

.account-history span,
.empty-history {
  color: #cccccc;
  font-size: 0.9rem;
}

#clear-account {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  border: 1px solid var(--card-border);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* Botón para obtener la ubicación actual */
.location-btn {
  background: var(--color-secondary);
  color: var(--color-bg);
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}

.location-btn:hover {
  opacity: 0.85;
}

/* Muestra de las coordenadas seleccionadas */
.location-display {
  font-size: 0.85rem;
  color: #cccccc;
  margin-top: 6px;
  word-break: break-all;
}

/* Remove bottom border on the last content section */
.content-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 5px;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--color-primary);
}

nav a:hover::after {
  width: 100%;
}

main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: 100px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero section styling */
#hero {
  width: 100%;
  /* El hero se adapta al contenido pero mantiene una altura mínima para lucir el logotipo */
  /* Let the hero height adapt to its content instead of enforcing a large minimum height.
     Add generous vertical padding to give breathing room without creating a huge gap. */
  /* Provide enough breathing room around the logo while keeping the hero compact */
  padding: 38px 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1e1e1e 0%, #0a0a0a 80%);
  margin-bottom: 40px;
  border: 1px solid var(--card-border);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1), 0 0 50px rgba(255, 0, 255, 0.1);
}

#hero .hero-content {
  text-align: center;
  width: min(100%, 1040px);
  padding: 0 22px;
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 15px;
}

/* Estilos para el logotipo grande en la sección hero */
.hero-logo {
  /* Reduce space below the logo to bring subtitle and buttons closer */
  margin-bottom: 10px;
}

.hero-logo img {
  /* Make the logo slightly smaller so the subtitle and buttons sit closer. Using a max-width in percentage ensures responsiveness across screen sizes. */
  /* Limit the logo's size so it doesn't push the subtitle too far down.
     The logo will scale responsively up to this height and width. */
  display: block;
  width: min(94%, 920px);
  height: auto;
  margin: 0 auto;
  /* Maintain the neon glitch effect */
  filter: drop-shadow(0 0 8px var(--color-primary)) drop-shadow(0 0 12px var(--color-secondary));
}

.hero-subtitle {
  font-size: 1.2rem;
  /* Pull the subtitle closer to the logo using a negative top margin. This
     reduces the vertical gap between the logo and the text without affecting
     other elements. Also decrease bottom margin so buttons sit nearer. */
  /* Pull the subtitle significantly upward to overlap the drop shadow area of the logo,
     which reduces the gap between the logo and subtitle on desktop. */
  /* Use small margins to keep the subtitle close to the logo and buttons without overlapping */
  max-width: 720px;
  margin: 2px auto 0;
  color: #bdbdbd;
}

.hero-cta {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: var(--color-bg);
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero-cta:hover {
  transform: scale(1.05);
}

/* New hero buttons group */
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  /* Reduce top margin further to tighten the spacing between subtitle and buttons */
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero-primary,
.hero-secondary {
  border: none;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-primary {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg);
}

.hero-secondary {
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
}

.hero-primary:hover,
.hero-secondary:hover {
  transform: scale(1.05);
}

/* Menu toggle button (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
}

/* Search bar styling */
#search-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 40px auto;
  text-align: center;
}

#product-search {
  width: 100%;
  padding: 10px 15px;
  border-radius: 30px;
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  color: var(--color-text);
  font-size: 1rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 0 16px;
}

.category-chip {
  border: 1px solid var(--chip-color, var(--color-primary));
  background: transparent;
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.category-chip:hover,
.category-chip.active {
  background: var(--chip-color, var(--color-primary));
  color: #000;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.category-section {
  margin-bottom: 48px;
}

.category-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--section-color, var(--color-primary));
  color: var(--section-color, var(--color-primary));
  font-size: 1.4rem;
}

.category-section-title .category-count {
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 400;
}

.product-category-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: color-mix(in srgb, var(--badge-color, #0ff) 20%, transparent);
  border: 1px solid var(--badge-color, #0ff);
  color: var(--badge-color, #0ff);
}

/* About section */
.about-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #cccccc;
  max-width: 800px;
}

/* Testimonials section */
.testimonials {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================
   Personalizador avanzado de consolas y mandos
   ========================== */

/* Contenedor principal */
.customizer-section {
  padding: 26px;
  border: 1px solid rgba(255, 0, 255, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 0, 255, 0.08), transparent 32%),
    radial-gradient(circle at bottom left, rgba(0, 255, 255, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.02);
}

.customizer-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

/* Panel izquierdo */
.customizer-panel {
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.step-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 255, 255, 0.12);
  border: 1px solid rgba(0, 255, 255, 0.25);
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.customizer-panel h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.console-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.console-option {
  min-height: 74px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.console-option span {
  display: block;
  color: #bdbdbd;
  font-size: 0.82rem;
}

.console-option strong {
  display: block;
  font-size: 1.08rem;
}

.console-option:hover,
.console-option.active {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.12), rgba(255, 0, 255, 0.09));
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.12);
}

/* Upload box */
.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 18px;
  border: 1px dashed rgba(0, 255, 255, 0.45);
  border-radius: 16px;
  background: rgba(0, 255, 255, 0.045);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-box:hover {
  transform: translateY(-2px);
  border-color: var(--color-secondary);
  background: rgba(255, 0, 255, 0.05);
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.upload-box small {
  color: #bdbdbd;
  margin-top: 4px;
}

#uploadInput {
  display: none;
}

.customizer-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

#clear-design {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
}

/* Panel derecho */
.preview-panel {
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.preview-header span {
  color: #bdbdbd;
}

.preview-header strong {
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* Console and controller previews */
.preview-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.console-preview {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    radial-gradient(circle at center, rgba(0, 255, 255, 0.08), transparent 55%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.console-mockup {
  position: relative;
  width: min(90%, 560px);
  height: 300px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}

/* Generic skin zone styling; actual shapes vary by class */
.skin-zone {
  position: absolute;
  overflow: hidden;
  background:
    var(--skin-image, linear-gradient(135deg, #202020, #0f0f0f));
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.console-details {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* PS5 default shape */
/* Ajustes estilizados de PlayStation (versión anterior) */
.console-preview[class*="ps5"] .left-zone,
.console-preview[class*="ps5"] .right-zone {
  top: 18px;
  width: 29%;
  height: 284px;
  border-radius: 34px 18px 18px 34px;
}

.console-preview[class*="ps5"] .left-zone {
  left: 12%;
  transform: skewY(-5deg);
}

.console-preview[class*="ps5"] .right-zone {
  right: 12%;
  transform: skewY(5deg);
  border-radius: 18px 34px 34px 18px;
}

.console-preview[class*="ps5"] .center-zone {
  top: 34px;
  left: 39%;
  width: 22%;
  height: 250px;
  border-radius: 18px;
  background: linear-gradient(180deg, #111, #050505);
  border-color: rgba(0, 255, 255, 0.18);
  z-index: 3;
}

.console-preview[class*="ps5"] .console-details::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 64px;
  width: 4px;
  height: 160px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  border-radius: 999px;
  opacity: 0.5;
}

/* PS5 Fat adjustments */
/* PS5 Fat (cuerpo con disco) */
.console-preview.ps5-fat .left-zone,
.console-preview.ps5-fat .right-zone {
  height: 300px;
  top: 10px;
  width: 31%;
}
.console-preview.ps5-fat .center-zone {
  height: 270px;
  top: 24px;
}

/* PS5 Slim adjustments */
/* PS5 Slim */
.console-preview.ps5-slim .left-zone,
.console-preview.ps5-slim .right-zone {
  height: 250px;
  top: 18px;
  width: 27%;
}
.console-preview.ps5-slim .center-zone {
  height: 222px;
  top: 32px;
  left: 39%;
}

/* PS5 Pro adjustments */
/* PS5 Pro */
.console-preview.ps5-pro .left-zone,
.console-preview.ps5-pro .right-zone {
  height: 306px;
  top: 8px;
  width: 28%;
}
.console-preview.ps5-pro .center-zone {
  height: 282px;
  top: 18px;
  left: 38%;
  width: 24%;
}
.console-preview.ps5-pro .console-details::before {
  content: '';
  position: absolute;
  left: 35%;
  right: 35%;
  top: 105px;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 0 rgba(255, 255, 255, 0.14), 0 52px 0 rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* PS4 base shape */
/* PS4 base shape (versión estilizada anterior) */
.console-preview[class*="ps4"] .console-mockup {
  height: 240px;
}
.console-preview[class*="ps4"] .left-zone,
.console-preview[class*="ps4"] .right-zone,
.console-preview[class*="ps4"] .center-zone {
  display: none;
}
.console-preview[class*="ps4"] .console-mockup::before,
.console-preview[class*="ps4"] .console-mockup::after {
  content: '';
  position: absolute;
  left: 8%;
  width: 84%;
  height: 46%;
  background:
    var(--skin-image, linear-gradient(135deg, #1d1d1d, #090909));
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.14);
  transform: skewX(-12deg);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.45);
}

.console-preview[class*="ps4"] .console-mockup::before {
  top: 22px;
  border-radius: 14px 14px 4px 4px;
}

.console-preview[class*="ps4"] .console-mockup::after {
  top: 124px;
  border-radius: 4px 4px 14px 14px;
  filter: brightness(0.78);
}

.console-preview[class*="ps4"] .console-details::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), transparent, var(--color-secondary));
  opacity: 0.6;
  transform: skewX(-12deg);
  border-radius: 999px;
}

/* PS4 Fat */
.console-preview.ps4-fat .console-mockup::before,
.console-preview.ps4-fat .console-mockup::after {
  height: 52%;
}
.console-preview.ps4-fat .console-mockup::after {
  top: 116px;
}

/* PS4 Slim */
.console-preview.ps4-slim .console-mockup {
  height: 205px;
}
.console-preview.ps4-slim .console-mockup::before,
.console-preview.ps4-slim .console-mockup::after {
  height: 39%;
  left: 12%;
  width: 76%;
  transform: skewX(-8deg);
}
.console-preview.ps4-slim .console-mockup::after {
  top: 104px;
}

/* PS4 Pro */
.console-preview.ps4-pro .console-mockup {
  height: 270px;
}
.console-preview.ps4-pro .console-mockup::before,
.console-preview.ps4-pro .console-mockup::after {
  height: 31%;
  left: 8%;
  width: 84%;
}
.console-preview.ps4-pro .console-mockup::before {
  top: 34px;
}
.console-preview.ps4-pro .console-mockup::after {
  top: 142px;
}
.console-preview.ps4-pro .console-details::before {
  content: '';
  position: absolute;
  left: 12%;
  width: 80%;
  top: 93px;
  height: 72px;
  background:
    var(--skin-image, linear-gradient(135deg, #151515, #060606));
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.12);
  transform: skewX(-12deg);
  filter: brightness(0.9);
}

/* Empty state overlay */
#skin-image {
  display: none !important;
}

#preview-empty-state {
  position: absolute;
  inset: auto;
  text-align: center;
  color: #d6d6d6;
  padding: 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

#preview-empty-state span {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.console-preview.has-image #preview-empty-state {
  display: none;
}

.preview-note {
  margin-top: 14px;
  color: #bdbdbd;
  font-size: 0.9rem;
}

.template-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #cccccc;
  font-size: 0.9rem;
}

.template-status strong {
  color: var(--color-primary);
}

/* Botón de compra por WhatsApp (reutilizado en personalizador) */
.whatsapp-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 255, 0, 0.12);
  border: 1px solid rgba(0, 255, 0, 0.35);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-buy:hover {
  transform: scale(1.03);
  background: rgba(0, 255, 0, 0.18);
}

/* Controller preview styling */
.controller-preview {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    radial-gradient(circle at center, rgba(255, 0, 255, 0.06), transparent 55%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.controller-mockup {
  position: relative;
  width: min(92%, 520px);
  height: 200px;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.5));
}

.controller-skin {
  position: absolute;
  overflow: hidden;
  background:
    var(--skin-image, linear-gradient(135deg, #1b1b1b, #090909));
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.14);
}

.controller-detail {
  position: absolute;
  pointer-events: none;
  background: #050505;
  border: 2px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.75);
}

/* DualSense (PS5 controller) */
.ps5-controller .controller-body {
  left: 20%;
  top: 36px;
  width: 60%;
  height: 110px;
  border-radius: 46px 46px 34px 34px;
}
.ps5-controller .left-grip,
.ps5-controller .right-grip {
  top: 88px;
  width: 26%;
  height: 96px;
  border-radius: 50px 28px 70px 58px;
  transform: rotate(15deg);
}
.ps5-controller .left-grip {
  left: 8%;
}
.ps5-controller .right-grip {
  right: 8%;
  transform: rotate(-15deg);
  border-radius: 28px 50px 58px 70px;
}
.ps5-controller .touchpad {
  left: 38%;
  top: 50px;
  width: 24%;
  height: 42px;
  border-radius: 16px;
  background: rgba(0,0,0,0.65);
  border-color: rgba(0,255,255,0.25);
}
.ps5-controller .left-stick,
.ps5-controller .right-stick {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  top: 108px;
}
.ps5-controller .left-stick {
  left: 34%;
}
.ps5-controller .right-stick {
  right: 34%;
}
.ps5-controller .dpad {
  left: 24%;
  top: 72px;
  width: 44px;
  height: 44px;
  clip-path: polygon(35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 35%,35% 35%);
}
.ps5-controller .buttons {
  right: 24%;
  top: 72px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* DualShock 4 (PS4 controller) */
.ps4-controller .controller-body {
  left: 18%;
  top: 40px;
  width: 64%;
  height: 102px;
  border-radius: 44px 44px 30px 30px;
  transform: perspective(400px) rotateX(3deg);
}
.ps4-controller .left-grip,
.ps4-controller .right-grip {
  top: 84px;
  width: 24%;
  height: 104px;
  border-radius: 42px 32px 75px 55px;
  transform: rotate(13deg);
}
.ps4-controller .left-grip {
  left: 10%;
}
.ps4-controller .right-grip {
  right: 10%;
  transform: rotate(-13deg);
  border-radius: 32px 42px 55px 75px;
}
.ps4-controller .touchpad {
  left: 36%;
  top: 54px;
  width: 28%;
  height: 38px;
  border-radius: 8px;
  background: rgba(0,0,0,0.68);
  border-color: rgba(255,0,255,0.25);
}
.ps4-controller .left-stick,
.ps4-controller .right-stick {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  top: 112px;
}
.ps4-controller .left-stick {
  left: 36%;
}
.ps4-controller .right-stick {
  right: 36%;
}
.ps4-controller .dpad {
  left: 24%;
  top: 78px;
  width: 42px;
  height: 42px;
  clip-path: polygon(35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 35%,35% 35%);
}
.ps4-controller .buttons {
  right: 24%;
  top: 78px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .customizer-section {
    padding: 18px 14px;
  }
  .customizer-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .console-preview {
    min-height: 350px;
  }
  .console-mockup {
    width: min(96%, 520px);
    height: 260px;
  }
  .console-preview[class*="ps5"] .left-zone,
  .console-preview[class*="ps5"] .right-zone {
    height: 220px;
  }
  .console-preview[class*="ps5"] .center-zone {
    height: 190px;
  }
  .console-preview.ps5-fat .left-zone,
  .console-preview.ps5-fat .right-zone,
  .console-preview.ps5-pro .left-zone,
  .console-preview.ps5-pro .right-zone {
    height: 230px;
  }
  .console-preview.ps5-fat .center-zone,
  .console-preview.ps5-pro .center-zone {
    height: 210px;
  }
  .console-preview[class*="ps4"] .console-mockup {
    height: 220px;
  }
  .controller-preview {
    min-height: 210px;
  }
  .controller-mockup {
    width: 96%;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .console-selector {
    grid-template-columns: 1fr;
  }
  .preview-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .console-preview {
    min-height: 310px;
  }
  .console-mockup {
    height: 230px;
  }
  .controller-preview {
    min-height: 180px;
  }
  .controller-mockup {
    height: 160px;
  }
  .ps5-controller .controller-body,
  .ps4-controller .controller-body {
    top: 34px;
    height: 86px;
  }
  .ps5-controller .left-grip,
  .ps5-controller .right-grip,
  .ps4-controller .left-grip,
  .ps4-controller .right-grip {
    top: 74px;
    height: 82px;
  }
  .ps5-controller .left-stick,
  .ps5-controller .right-stick,
  .ps4-controller .left-stick,
  .ps4-controller .right-stick {
    width: 32px;
    height: 32px;
    top: 98px;
  }
}
.testimonial-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.testimonial-text {
  font-style: italic;
  color: #cccccc;
  margin-bottom: 10px;
}

.testimonial-author {
  font-size: 0.9rem;
  color: var(--color-primary);
}

/* Contact section */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  color: var(--color-text);
  resize: vertical;
}

.contact-submit {
  align-self: flex-start;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: var(--color-bg);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.contact-submit:hover {
  transform: scale(1.05);
}

.contact-response {
  margin-top: 15px;
  color: var(--color-primary);
  font-weight: 600;
}

.store-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 680px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(0, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.store-location h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.store-location p {
  color: #cccccc;
  font-size: 0.95rem;
}

.location-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

/* Newsletter form */
.newsletter-title {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 600px;
}

.newsletter-form input {
  flex: 1 1 auto;
  padding: 10px 15px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  color: var(--color-text);
  font-size: 1rem;
}

.newsletter-form button {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: var(--color-bg);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

.newsletter-response {
  margin-top: 10px;
  color: var(--color-primary);
  font-weight: 600;
}

/* Social icons in footer */
.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.socials a {
  font-size: 1.5rem;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.socials a:hover {
  color: var(--color-primary);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  text-transform: uppercase;
  font-weight: 700;
}

/* Glitch effect: two layered pseudo‑elements shift horizontally with
   different colors. The clip rectangles are animated to simulate
   random interference. */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
}

.glitch::before {
  animation: glitch-before 2s infinite linear alternate-reverse;
  color: var(--color-primary);
  z-index: -1;
}

.glitch::after {
  animation: glitch-after 3s infinite linear alternate-reverse;
  color: var(--color-secondary);
  z-index: -2;
}

@keyframes glitch-before {
  0% {
    clip-path: inset(0 0 90% 0);
    transform: translate(2px, -2px);
  }
  20% {
    clip-path: inset(10% 0 75% 0);
    transform: translate(-2px, 2px);
  }
  40% {
    clip-path: inset(20% 0 60% 0);
    transform: translate(2px, -2px);
  }
  60% {
    clip-path: inset(30% 0 45% 0);
    transform: translate(-2px, 2px);
  }
  80% {
    clip-path: inset(40% 0 30% 0);
    transform: translate(2px, -2px);
  }
  100% {
    clip-path: inset(50% 0 0 0);
    transform: translate(-2px, 2px);
  }
}

@keyframes glitch-after {
  0% {
    clip-path: inset(50% 0 0 0);
    transform: translate(-2px, 2px);
  }
  20% {
    clip-path: inset(40% 0 30% 0);
    transform: translate(2px, -2px);
  }
  40% {
    clip-path: inset(30% 0 45% 0);
    transform: translate(-2px, 2px);
  }
  60% {
    clip-path: inset(20% 0 60% 0);
    transform: translate(2px, -2px);
  }
  80% {
    clip-path: inset(10% 0 75% 0);
    transform: translate(-2px, 2px);
  }
  100% {
    clip-path: inset(0 0 90% 0);
    transform: translate(2px, -2px);
  }
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.6);
}

.product-image {
  font-size: 3rem;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.product-card p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #cccccc;
}

.product-card button {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: var(--color-bg);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.product-card button:hover {
  transform: scale(1.05);
}

/* Personaliza tu consola section */
.description {
  max-width: 600px;
  margin-bottom: 15px;
  color: #cccccc;
}

#uploadInput {
  margin-bottom: 20px;
  background-color: var(--card-bg);
  color: var(--color-text);
  border: 1px solid var(--card-border);
  padding: 10px;
  border-radius: 4px;
}

#console-preview {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
  height: 280px;
  margin-bottom: 40px;
}

/* A simple handheld console silhouette using two rounded rectangles for body and screen */
#console-body {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 100%;
  background: #111;
  border: 3px solid var(--card-border);
  border-radius: 20px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

#console-body::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: #222;
  border-radius: 10px;
  border: 2px solid var(--card-border);
}

#skin-image {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  border-radius: 10px;
  object-fit: contain;
  display: none;
  /* Add a subtle glow around the uploaded artwork */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

footer {
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #888888;
}

/* Social media icons in the footer */
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.socials a {
  color: var(--color-text);
  font-size: 1.7rem;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: var(--color-primary);
}

/* Ensure the icon elements inherit proper sizing and color */
.socials i {
  font-size: 1.7rem;
  color: var(--color-text);
  transition: color 0.3s ease;
}
.socials a:hover i {
  color: var(--color-primary);
}

/* Responsive design adjustments */
@media (max-width: 600px) {
  .section-title {
    font-size: 2rem;
  }
  /* Adjust logo size */
  .logo-container img {
    height: 50px;
  }

  main {
    max-width: 100%;
    overflow-x: hidden;
    padding: 28px 14px;
  }

  #hero {
    width: calc(100vw - 28px);
    padding: 30px 0 34px;
    margin-bottom: 30px;
  }

  #hero .hero-content {
    padding: 0 12px;
  }

  .hero-logo {
    margin-bottom: 8px;
  }

  .hero-logo img {
    width: min(78vw, 300px);
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    max-width: min(100%, 310px);
  }

  .hero-buttons {
    gap: 10px;
    margin-top: 16px;
  }

  .hero-primary,
  .hero-secondary {
    width: min(calc(100vw - 56px), 290px);
  }

  #search-container {
    max-width: calc(100vw - 28px);
  }

  /* Show menu toggle button */
  .menu-toggle {
    display: block;
  }

  /* Hide nav list by default and position it as dropdown */
  nav ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 15px;
    width: 200px;
    z-index: 1500;
  }

  /* Show nav list when toggled */
  nav ul.show {
    display: flex;
  }

  /* Align header items vertically on mobile */
  header {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  nav {
    gap: 10px;
  }

  .account-controls {
    gap: 8px;
    margin-left: 0;
  }

  .account-button {
    margin-left: 0;
    width: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
  }

  .account-button span {
    display: none;
  }

  .cart {
    margin-left: 0;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .store-location {
    align-items: stretch;
    flex-direction: column;
  }

  .location-map-link {
    width: 100%;
  }

  /* Expand products to full width */
  .products {
    grid-template-columns: 1fr;
  }
  .product-card {
    width: 100%;
    max-width: 100%;
  }

  /* Customize layout becomes column */
  .customizer-layout {
    display: flex;
    flex-direction: column;
  }
}

/* Tienda Laravel - extras */
.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.product-desc {
  min-height: 2.5em;
}

.stock-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: rgba(0, 255, 0, 0.12);
  color: #8f8;
}

.stock-badge.out {
  background: rgba(255, 0, 0, 0.15);
  color: #f88;
}

.cart-total {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 0;
  color: var(--color-primary);
  text-align: right;
}

.cart-item-price {
  display: block;
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 6px;
}

.cart-item-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
}

.hero-brand {
  font-size: 3rem;
  margin-bottom: 0.25rem;
}

.hero-tagline {
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: #ccc;
}

.empty-catalog {
  grid-column: 1 / -1;
  text-align: center;
  color: #aaa;
  padding: 2rem;
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
