/* ==========================================================================
   1. ESTILOS GLOBALES Y VARIABLES
   ========================================================================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.container h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 30px;
}

.hidden {
  display: none;
}

/* ==========================================================================
   2. COMPONENTES REUTILIZABLES (Botones, Grids, Formularios)
   ========================================================================== */

/* --- Grids de Productos --- */
.grid, .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.item {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
}

.item img {
  width: 100%;
  border-radius: 8px;
}

/* --- Estilos de Producto Individual --- */
.product-item {
  text-align: left;
}

.product-item p {
  font-size: 16px;
  margin: 0 0 5px 0;
}

.product-item span {
  font-size: 15px;
  color: #333;
}

/* --- Paginación --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a {
  color: #00bcd4;
  border: 1px solid #ddd;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
  background-color: #f0f0f0;
}

.pagination a.active {
  background-color: #00bcd4;
  color: white;
  border-color: #00bcd4;
  font-weight: bold;
}

/* Paginación: botones (usados por category-page.js) */
.pagination button {
  background: white;
  color: #00bcd4;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, transform 0.06s;
  font-size: 14px;
}

.pagination button:hover:not(:disabled) {
  background-color: #f5f5f5;
}

.pagination button:active:not(:disabled) {
  transform: translateY(1px);
}

.pagination button.active {
  background-color: #00bcd4;
  color: #ffffff;
  border-color: #00aabf;
  font-weight: 700;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Ajustes responsivos para pantallas pequeñas */
@media (max-width: 640px) {
  .grid, .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .pagination {
    gap: 6px;
    margin-top: 24px;
  }
  .pagination button, .pagination a {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
  }
}

/* --- Selectores de Cantidad --- */
.quantity-selector div {
  display: flex;
  border: 1px solid #ccc;
  width: fit-content;
}

.quantity-selector input, .quantity-selector button {
  border: none;
  background-color: white;
  text-align: center;
  padding: 10px;
}

.quantity-selector input {
  width: 40px;
}


/* ==========================================================================
   3. LAYOUT PRINCIPAL (Header, Footer, Barras Superiores)
   ========================================================================== */

/* --- Barra Superior (Anuncios) --- */
/*.top-bar {
  background: #02b8ac;
  color: white;
  text-align: center;
  padding: 5px;
  font-size: 18px;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}*/
.top-bar2 {
  background: #09d3c6;
  color: white;
  padding: 8px 0;
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
}
@keyframes scroll-left {
  0% {transform: translateX(0);}
  100% {transform: translateX(-100%);}
}
/* 2. El Contenedor (el .marquee-content)*/
.marquee-content {
  display: flex;        /* Pone los <span> en línea */
  flex-shrink: 0;     /* Evita que se encoja */
  white-space: nowrap;  /* Evita que el texto se rompa */
  animation: scroll-left 30s linear infinite;   /* Aplica la animación */
}

/* 3. El Span individual*/
.marquee-content span {
  display: inline-block;
  white-space: nowrap;
  padding: 0 40px; /* Este es el 'gap' o espacio entre cada frase */
}
/* --- Header --- */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px 30px;
  background: rgb(255, 255, 255); /* Fondo blanco por defecto */
  border-bottom: 1px solid #ddd; /* Borde inferior por defecto */
  position: relative; /* Posición normal */
  z-index: 10;
}

.logo {
  justify-self: end;
  margin-right: 20px;
}

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

nav a {
  text-decoration: none;
  color: black; /* Texto negro por defecto */
  font-weight: bold;
}

nav a:hover {
  color: #02b8ac;
}

/* --- Estilo ESPECIAL para el Header sobre el Banner --- */
header.header-on-banner {
  position: absolute; /* Lo saca del flujo para superponerlo */
  top: 0;
  left: 0;
  width: 100%;
  background: transparent; /* Fondo transparente */
  border-bottom: none; /* Sin borde inferior */
  padding: 15px 0px;
}

/* Estilos para los enlaces cuando el header está sobre el banner */
header.header-on-banner nav a {
  color: rgb(17, 18, 18); /* Texto blanco */
}

header.header-on-banner .icons a img {
  /* Opcional: filtro para que los íconos se vean blancos */
  filter: brightness(0) invert(1); 
}

header.header-on-banner .hamburger-btn {
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* Sombra opcional para legibilidad */
}

.icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 25px;
  padding-right: 15px;
  position: relative;
}

.icons a img {
  height: 24px;
  width: auto;
  vertical-align: middle;
  transition: opacity 0.2s;
}

.icons a:hover img {
  opacity: 0.7;
}

.hamburger-btn {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Footer --- */
footer {
  background: #f5f5f5;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}


/* ==========================================================================
   4. ESTILOS DE PÁGINAS ESPECÍFICAS
   ========================================================================== */

/* --- Página de Inicio (index.html) --- */
.banner {
  position: relative;
  text-align: center;
}

/* Contenedor del banner para posicionar header e imagen */
.banner-content {
  display: flex;
  width: 100%;
  position: relative;
  min-height: 320px; /* Altura mínima para asegurar visibilidad */
}

/* Estilos de la imagen principal del banner (Desktop/Laptop) */
.banner-image {
  flex: 1; /* Ocupa el espacio disponible (reemplaza width: 50%) */
  width: 100%; /* Asegura que ocupe todo el ancho */
  height: 1200px; /* Tu altura original para desktop/laptop */
  object-fit: cover; /* Mantiene el recorte sin distorsión */
  border-radius: 0;
  filter: brightness(0.77); /* Tu filtro original */
}

.banner img {
  width: 100%;
  height: auto;
}

.btn-banner {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.category-card {
  position: relative;
  text-decoration: none;
  color: white;
  overflow: hidden;
  border-radius: 8px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 1px 5px rgba(0,0,0,0.7);
}

/* Sección de Carrusel de Productos */
.product-carousel-section {
  margin-bottom: 40px;
}

/* ========== Search overlay styles (appended) ========== */
.search-overlay { position: fixed; inset: 0; background: rgba(2,6,23,0.6); display: none; align-items: center; justify-content: center; z-index: 1200; }
.search-overlay.open { display: flex; }
.search-modal { width: 90%; max-width: 900px; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(2,6,23,0.4); overflow: hidden; }
.search-header { display:flex; gap:8px; align-items:center; padding:12px; border-bottom: 1px solid #f1f5f9; }
.search-input { flex:1; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(15,23,42,0.06); font-size: 16px; }
.search-close { background: none; border: none; font-size: 18px; cursor: pointer; }
.search-results { padding: 16px; max-height: 60vh; overflow: auto; }
.search-results-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.search-result-item { display:flex; gap:10px; align-items:center; padding:8px; text-decoration:none; color:inherit; border-radius:8px; }
.search-result-item:hover { background: #f8fafc; }
.result-image img { width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid #eee; }
.result-meta { display:flex; flex-direction:column; }
.result-name { font-weight:600; }
.result-price { color:#06b6d4; font-weight:700; }
.no-search, .hint { color:#64748b; padding:12px; }

@media (max-width: 640px) { .search-results-grid { grid-template-columns: 1fr; } }


.product-carousel-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

/* Estilos específicos para Swiper.js */
.swiper {
  width: 100%;
  padding-bottom: 40px; /* Espacio para los botones de navegación */
}

.swiper-slide {
  text-align: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: #02b8ac; /* Color de las flechas */
}

/* --- Páginas de Categorías (liquidacion.html, etc.) --- */
.liquidacion-header {
  text-align: left;
  margin-bottom: 30px;
}

.liquidacion-header h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.info-text p {
  margin: 5px 0;
  font-size: 16px;
}

.info-text .faded {
  color: #888;
  font-style: italic;
}

.product-item.hidden {
  display: none;
}

/* --- Sección CTA Verano (index.html) --- */

.cta-verano-section {
  background-color: #e0f2f1; /* Un tono aquamarina claro y suave */
  padding: 40px 0;
}

.cta-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.cta-text {
  flex: 1; /* Ocupa la mitad del espacio */
  display: flex;          /* Habilitamos flexbox */
  flex-direction: column; /* Apilamos los elementos verticalmente */
  align-items: center;    /* Centramos todo horizontalmente (título, párrafo, botón) */
  text-align: center;     /* Centramos el texto */
}

.cta-image {
  flex: 1; /* Ocupa la otra mitad */
  display: flex;            /* Habilitamos flexbox */
  justify-content: center;  /* Centramos la imagen horizontalmente */
  align-items: center;      /* Centramos la imagen verticalmente */
}

.cta-text h2 {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.3;
  margin-top: 0;
  max-width: 450px; /* Evita que el título sea demasiado ancho en pantallas grandes */
}

.cta-text p {
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-text .cta-btn {
  background-color: black;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cta-text .cta-btn:hover {
  background-color: #333;
}

.cta-image img {
  width: 100%;
  max-width: 400px; /* Limita el tamaño de la imagen para que no sea gigante */
  height: auto;
  border-radius: 8px;
}

.features-section {
  padding: 40px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Crea 3 columnas */
  gap: 30px;
}

.feature-item {
  text-align: center;
}

.feature-item img {
  height:230px; /* Tamaño consistente para los íconos */
  width: auto;
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* --- Página de Producto (producto.html) --- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.product-image-column img {
  width: 100%;
  border-radius: 8px;
}

.product-info-column .brand-name {
  display: block;
  font-size: 14px;
  color: #02b8ac; /* Tu color turquesa */
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.product-info-column h1 { font-family: 'Fredoka', sans-serif; font-size: 36px; margin: 5px 0 15px 0; color: #222; line-height: 1.1; }
.product-info-column .price { font-size: 28px; color: #333; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.product-info-column .tax-info { font-size: 13px; color: #888; margin-bottom: 25px; font-style: italic; }
.options, .quantity-selector { margin-top: 20px; }

.options label { font-size: 14px;
  font-weight: 700;
  color: #444;
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quantity-selector label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
}

.quantity-selector {
  margin-top: 30px;
}

.quantity-selector div {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 50px; /* Cápsula */
  padding: 5px;
  background: white;
}

.quantity-selector button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #333;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;           /* Centrado perfecto del +/- */
  align-items: center;
  justify-content: center;
}

.quantity-selector button:hover {
  background: #e0e0e0;
}

.quantity-selector input {
  width: 50px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  background: transparent;
}

/* Quitar flechas del input number en algunos navegadores */
.quantity-selector input:focus { outline: none; }

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.size-btn {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  color: #555;
  padding: 10px 20px;
  border-radius: 50px; /* Redondeado moderno (Pill shape) */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px; /* Ancho mínimo para que se vean uniformes */
}

.size-btn:hover {
  border-color: #02b8ac;
  color: #02b8ac;
  transform: translateY(-2px);
}

.size-btn.active {
  background-color: #02b8ac;
  color: white;
  border-color: #02b8ac;
  box-shadow: 0 4px 10px rgba(2, 184, 172, 0.3);
}

.add-to-cart-btn, .buy-now-btn {
  width: 100%;
  padding: 15px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
}

.add-to-cart-btn {
  background-color: white;
  border: 1px solid black;
}

.buy-now-btn {
  background-color: black;
  color: white;
  border: none;
}

.product-features {
  margin-top: 25px;
  padding-left: 20px;
  font-size: 14px;
  color: #555;
}

.product-features li {
  margin-bottom: 8px;
}

.recommendations {
  padding: 40px 0;
  border-top: 1px solid #eee;
}

/* --- Página del Carrito (carrito.html) --- */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.cart-header h1 {
  font-size: 28px;
  margin: 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.cart-table-header {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  padding: 0 10px 10px 10px;
  border-bottom: 1px solid #eee;
}
.cart-table-header span:nth-child(1) { flex-basis: 50%; }
.cart-table-header span:nth-child(2) { flex-basis: 30%; text-align: center; }
.cart-table-header span:nth-child(3) { flex-basis: 20%; text-align: right; }

.cart-item-row {
  display: flex;
  align-items: center;
  padding: 20px 10px;
  border-bottom: 1px solid #eee;
}
.cart-item-product {
  flex-basis: 50%;
  display: flex;
  align-items: center;
  gap: 15px;
}
.cart-item-product img {
  width: 90px;
  border: 1px solid #eee;
}
.cart-item-product h4 { margin: 0 0 5px 0; font-size: 16px; }
.cart-item-product p { margin: 0; font-size: 14px; }
.item-meta { color: #888; }

.cart-item-quantity {
  flex-basis: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.remove-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
}
.remove-btn:hover { color: black; }

.cart-item-total {
  flex-basis: 20%;
  text-align: right;
  font-weight: bold;
}

.summary-box {
  border: 1px solid #eee;
  padding: 20px;
  background: #fdfdfd;
}
.summary-box h2 { font-size: 16px; margin-top: 0; }
.summary-box textarea {
  width: 100%;
  height: 80px;
  border: 1px solid #ccc;
  padding: 8px;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.summary-box .checkout-btn {
  width: 100%;
  background-color: rgb(12, 12, 12);
  color: white;
  border: none;
  padding: 18px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.summary-box .checkout-btn:hover {
  opacity: 0.85;
}

/* --- Página de Checkout (checkout.html) --- */
.checkout-container {
  display: flex;
}

.checkout-form-column {
  flex: 1;
  padding: 40px 60px;
  border-right: 1px solid #e1e1e1;
}

.checkout-summary-column {
  flex-basis: 40%;
  background-color: #fafafa;
  padding: 40px 60px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.checkout-logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
}

.breadcrumb {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
}
.breadcrumb a {
  color: #00bcd4;
  text-decoration: none;
}
.breadcrumb span.active {
  color: #333;
  font-weight: bold;
}

.checkout-form-column h3 {
  font-size: 20px;
  margin: 30px 0 15px 0;
}

.checkout-form-column input,
.checkout-form-column select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.shipping-method {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid #00bcd4;
  border-radius: 4px;
  background-color: #f0fbff;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}
.form-actions a {
  color: #00bcd4;
  text-decoration: none;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.summary-item-image {
  position: relative;
}
.summary-item-image img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 8px;
}
.summary-item-quantity {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #555;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.summary-item-details { flex-grow: 1; }
.summary-item-details h4 { font-size: 14px; margin: 0; }
.summary-item-details span { font-size: 12px; color: #888; }

.summary-totals {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  margin-top: 20px;
}
.summary-totals div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.summary-totals .total-final {
  font-size: 18px;
  font-weight: bold;
}

.info-summary-box {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  font-size: 14px;
}
.info-summary-box hr { border: none; border-top: 1px solid #ddd; margin: 10px 0; }

.payment-method {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
}
.payment-method h4 { margin-top: 0; }
.payment-method ul { padding-left: 20px; font-size: 14px; color: #555; }
.payment-method li { margin-bottom: 8px; }


/* ==========================================================================
   5. COMPONENTES COMPLEJOS (Carrito, Filtros)
   ========================================================================== */

/* --- Carrito y Mini-Carrito Lateral --- */
.cart-icon-container {
  position: relative;
  display: inline-block;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background-color: #00bcd4;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid white;
  display: none;
}

.cart-count.visible {
  display: block;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100%;
  background-color: white;
  box-shadow: -4px 0 15px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.show {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #f7f7f7;
  border-bottom: 1px solid #eee;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

#sidebar-product-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 15px;
}

.sidebar-cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.sidebar-cart-item img {
  width: 70px;
  height: auto;
  border: 1px solid #eee;
}

.sidebar-cart-item .item-details {
  flex-grow: 1;
}

.sidebar-cart-item h4 { font-size: 15px; margin: 0 0 5px 0; }
.sidebar-cart-item p { margin: 0; font-size: 14px; color: #666; }

.remove-item-btn {
  background: none;
  border: 1px solid #ccc;
  color: #888;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}
.remove-item-btn:hover {
  background-color: #f5f5f5;
  color: black;
}

.sidebar-footer {
  padding: 15px;
  margin-top: auto;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-footer a {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.view-cart-btn {
  background-color: white;
  border: 1px solid black;
  color: black;
}

.checkout-btn {
  background-color: rgb(8, 8, 8);
  border: 1px solid rgb(10, 10, 10);
  color: rgb(245, 244, 244);
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 10x;
}

/* --- Filtros de Productos --- */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
  font-size: 14px;
}

.filters-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sorting-group {
  display: flex;
  align-items: center;
  gap: 25px;
}

.sort-by {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Modern select styling for 'Ordenar por' */
#sortSelect {
  appearance: none; /* remove native caret */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  border: 1px solid rgba(15,23,42,0.06);
  padding: 8px 34px 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.03);
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  cursor: pointer;
  transition: all 0.12s ease;
}
#sortSelect:hover {
  border-color: rgba(2,184,172,0.18);
  box-shadow: 0 6px 18px rgba(2,184,172,0.06);
}
#sortSelect:focus {
  outline: none;
  border-color: rgba(2,184,172,0.28);
  box-shadow: 0 8px 26px rgba(2,184,172,0.12);
}

/* Small screens: shrink select padding */
@media (max-width: 640px) {
  #sortSelect { padding: 8px 28px 8px 10px; font-size: 13px; }
}

.dropdown-filter {
  position: relative;
  display: inline-block;
}

.filter-btn {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

/* Improved filter button appearance */
.filter-btn {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 2px rgba(16,24,40,0.03);
  padding: 8px 12px;
  gap: 10px;
  border-radius: 8px;
  transition: all 0.16s ease;
  color: #111827; /* dark text */
}
.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2,184,172,0.08);
  border-color: rgba(2,184,172,0.3);
}
.filter-btn .btn-text {
  font-weight: 600;
  font-size: 14px;
}
.filter-btn span:last-child {
  font-size: 12px;
  color: #6b7280; /* subtle chevron color */
}

/* Dropdown content improvements */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 220px;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 12px 24px rgba(12, 34, 56, 0.08);
  z-index: 100;
  padding: 10px;
  border-radius: 10px;
}
.dropdown-content.show {
  display: block;
  animation: dropdownFade 0.12s ease-out;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Filter options list */
.filter-options {
  list-style: none;
  margin: 0;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-options li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  transition: background-color 0.12s, color 0.12s, transform 0.08s;
}
.filter-options li a:hover {
  background-color: rgba(2,184,172,0.06);
  color: #0f172a;
}
.filter-options li a.active {
  background: linear-gradient(90deg,#02b8ac,#09d3c6);
  color: white;
  box-shadow: 0 6px 18px rgba(2,184,172,0.16);
  transform: translateY(-1px);
}

/* Price input styles inside dropdown */
.price-range-inputs .price-input-group {
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 8px;
  padding: 6px 8px;
}
.price-range-inputs .price-input-group input {
  width: 70px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(15,23,42,0.06);
}

/* Responsive adjustments for filter bar */
@media (max-width: 640px) {
  .filter-btn { padding: 8px 10px; font-size: 13px; }
  .dropdown-content { min-width: 180px; }
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 220px;
  border: 1px solid #ddd;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 100; /* Aumentado para estar sobre el brillo */
  padding: 15px;
  border-radius: 4px;
}

.dropdown-content.show {
  display: block;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.price-input-group {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ccc;
  padding: 5px;
  background-color: white;
}

.price-input-group input {
  border: none;
  width: 60px;
}
.price-input-group input:focus {
  outline: none;
}

.apply-btn {
  width: 100%;
  padding: 8px;
  background-color: #02b8ac;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.apply-btn:hover {
  background-color: #0097a7;
}


/* ==========================================================================
   6. EFECTOS Y ANIMACIONES
   ========================================================================== */

/* --- Efecto Hover para Imágenes de Productos --- */
.item-link,
.product-item {
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.item-link img,
.product-item img {
    transition: transform 0.3s ease-in-out;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.item-link:hover img,
.product-item:hover img {
    transform: scale(1.05);
}

.item-link::before,
.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -85%;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: none;
}

.item-link:hover::before,
.product-item:hover::before {
    left: 125%;
    transition: left 1.2s ease-in-out;
}


/* ==========================================================================
   7. MEDIA QUERIES PARA DISEÑO RESPONSIVO
   ========================================================================== */

/* --- Tablets (hasta 992px) --- */
@media (max-width: 992px) {
  .grid, .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-layout, .checkout-container {
    display: flex;
    flex-direction: column;
  }
  
  .checkout-summary-column {
    position: static;
    height: auto;
    border-left: none;
  }

  header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }

  header nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgb(251, 251, 251);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
  }
  header nav.nav-active {
    display: block;
  }
  header nav ul {
    flex-direction: column;
    padding: 10px 0;
  }
  header nav li {
    padding: 15px 30px;
    text-align: center;
    border-bottom: 1px solid #f4f0f0;
  }
  
  .hamburger-btn {
    display: block;
    order: 1;
  }
  .logo {
    order: 2;
  }
  .icons {
    order: 3;
  }
}

/* --- Móviles (hasta 600px) --- */
@media (max-width: 600px) {
  .grid, .product-grid {
    grid-template-columns: 1fr;
  }

  .productos, .container {
    padding: 20px 15px;
  }
  
  .checkout-form-column, .checkout-summary-column {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .sorting-group {
    width: 100%;
    justify-content: space-between;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    flex-direction: column; /* Apila los elementos verticalmente */
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr; /* Apila las 3 columnas verticalmente */
    gap: 40px;
  }

  .product-carousel-section {
    margin-bottom: 5px; /* Reduce el margen inferior del carrusel */
  }

  .features-section {
    margin-top: 20px; /* Reduce el margen superior de la sección de beneficios */
    padding-top: 20px; /* Reduce el espacio interno superior */
  }

  .banner-image {
    height: 600px;
  }
  
}

/* ==========================================================================
   ESTILOS ADICIONALES PARA MEJORAR LA EXPERIENCIA
   ========================================================================== */

/* --- Botón "Ver todos" --- */
.view-all-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: white;
  border: 2px solid #02b8ac;
  color: #02b8ac;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background-color: #02b8ac;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 184, 172, 0.3);
}

/* --- Mejoras en productos del carrusel --- */
.carousel-product {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.carousel-product:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.carousel-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5252;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  z-index: 5;
}

.carousel-price {
  display: block;
  padding: 0 10px 10px;
}

.carousel-price .original-price {
  display: block;
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.carousel-price .sale-price {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #02b8ac;
}

/* --- Mejoras en la sección de carrusel --- */
.product-carousel-section {
  position: relative;
  padding: 10px 0;
}

.product-carousel-section h2 {
  font-size: 26px;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.product-carousel-section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #02b8ac, #09d3c6);
  border-radius: 2px;
}

/* --- Mejoras en botones de navegación del Swiper --- */
.swiper-button-next,
.swiper-button-prev {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #02b8ac;
  color: white;
}

/* --- Estilos para carrusel de productos en el carrusel --- */
.swiper-slide .product-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.swiper-slide .product-image-wrapper {
  flex: 0 0 auto;
}

.swiper-slide .product-name {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 10px;
  min-height: 50px;
}

/* --- Animación de carga --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-item {
  animation: fadeIn 0.4s ease-out;
}

/* --- Mejoras en categorías del index --- */
.category-card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.category-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

/* --- Badge de "Nuevo" --- */
.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #4caf50;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 5;
}

/* --- Loading spinner (para futuras implementaciones) --- */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #02b8ac;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Responsive adicional --- */
@media (max-width: 768px) {
  .product-carousel-section h2 {
    font-size: 22px;
  }

  .view-all-btn {
    padding: 10px 24px;
    font-size: 13px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px;
  }

  .product-carousel-section {
    margin-bottom: 20px; /* Reduce el margen inferior del carrusel */
  }

  .features-section {
    margin-top: 20px; /* Reduce el margen superior de la sección de beneficios */
    padding-top: 20px; /* Reduce el espacio interno superior */
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .category-card span {
    font-size: 16px;
    bottom: 15px;
    left: 15px;
  }

  .product-carousel-section {
    margin-bottom: 20px; /* Reduce el margen inferior del carrusel */
  }

  .features-section {
    margin-top: 20px; /* Reduce el margen superior de la sección de beneficios */
    padding-top: 20px; /* Reduce el espacio interno superior */
  }
}

/* ==========================================================================
   8. ESTILOS PARA GALERÍA DE PRODUCTO
   ========================================================================== */

.product-image-column {
  /* Preparamos la columna para que la galería se ajuste bien */
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Contenedor de la imagen principal */
.main-image-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  position: relative; /* Para posicionar las flechas de navegación */
}

.main-image-container img {
  width: 100%;
  height: auto;
  display: block;
  /* Animación suave al cambiar de imagen */
  transition: opacity 0.3s ease-in-out;
}

/* Contenedor de las miniaturas (thumbnails) */
.thumbnails-container {
  display: grid;
  /* Creamos 4 columnas para las miniaturas, puedes cambiarlo si quieres más o menos */
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumbnail {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.6; /* Hacemos más opacas las que no están seleccionadas */
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Estilo para la miniatura activa (la que corresponde a la imagen grande) */
.thumbnail.active {
  border-color: #02b8ac; /* Color principal de tu tienda */
  opacity: 1;
  transform: scale(1.05); /* La hacemos un poco más grande */
}

.thumbnail:hover:not(.active) {
  border-color: #aaa;
  opacity: 1;
}

/* Flechas de navegación (opcional, por si quieres añadirlas en el futuro) */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.gallery-nav:hover {
    background-color: white;
    color: #02b8ac;
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

/* ==========================================================================
   9. ESTILOS DE PRECIOS (Original y Oferta)
   ========================================================================== */

/* --- Estilos para Página de Producto (producto.html) --- */

/* Contenedor principal del precio en producto.html */
#product-price {
    display: flex;
    align-items: baseline; /* Alinea los textos por la base */
    gap: 15px; /* Espacio entre precios */
    margin: 15px 0;
}

/* Precio de Oferta (Aguamarina) */
#product-price .sale-price {
    font-size: 24px; 
    font-weight: bold;
    line-height: 1.4;
    /* --- Tu solicitud: fondo aguamarina y letras blancas --- */
    background-color: #02b8ac;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Estilo para cuando NO hay oferta */
#product-price .sale-price.no-offer {
    background-color: transparent;
    color: #333; /* Color de texto normal */
    padding: 0;
    font-size: 22px; /* Tamaño normal si no es oferta */
}

/* Precio Original (Subrayado) */
#product-price .original-price {
    font-size: 18px;
    color: #888;
    /* --- Tu solicitud: subrayado --- */
    text-decoration: line-through; 
    /* También es común usar "line-through" (tachado) */
    /* text-decoration: line-through; */
}

/* --- Estilos para Páginas de Categoría (pijamas.html, etc.) --- */

/* Contenedor de precios en las tarjetas de producto */
.price-container {
    display: flex;
    flex-wrap: wrap; /* Para que se ajuste en móviles */
    align-items: baseline;
    gap: 8px;
    margin-top: 5px;
    min-height: 28px; /* Altura mínima para alinear tarjetas */
}

/* Precio de Oferta (Aguamarina) */
.price-container .sale-price {
    font-size: 16px;
    font-weight: bold;
    /* --- Tu solicitud: fondo aguamarina y letras blancas --- */
    background-color: #02b8ac;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Precio Original (Subrayado) */
.price-container .original-price {
    font-size: 14px;
    color: #888;
    /* --- Tu solicitud: subrayado --- */
    text-decoration: underline;
}

/* Estilo para el precio normal (cuando no hay oferta) */
.product-item .price {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 2px 0;
}
/* ==========================================================================
   10. ESTILOS DE BADGE DE DESCUENTO (Nuevo)
   ========================================================================== */

/* Contenedor de precios en las tarjetas de producto (ajuste) */
.product-item .price-container {
    margin-top: 5px; /* Reduce este margen */
    margin-bottom: 0; /* Elimina margen inferior */
    padding: 0 5px; /* Pequeño padding horizontal */
}

/* Precio de Oferta (Aguamarina - ajuste para que el badge esté al lado) */
.product-item .price-container .sale-price {
    font-size: 16px;
    font-weight: bold;
    color: #333; /* El precio de venta puede ser oscuro si el badge ya indica oferta */
    /* Quitamos el fondo aguamarina de aquí si el badge lo lleva */
    background-color: transparent; 
    padding: 0;
    border-radius: 0;
}

/* Precio Original (Tachado, no subrayado para que combine mejor con la imagen de referencia) */
.product-item .price-container .original-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through; /* Cambiado a tachado como en tu imagen */
    margin-right: 5px; /* Pequeño espacio antes del descuento */
}

/* Nuevo Badge de Descuento (el que se parece al de tu imagen) */
.discount-percentage-badge {
    background-color: #02b8ac; /* Tu color aguamarina */
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap; /* Evita que el texto se rompa */
    line-height: 1; /* Asegura que el texto esté bien centrado */
}

/* Ajustes para la página de producto individual (si quieres que también tenga el badge) */
#product-price .discount-percentage-badge {
    font-size: 16px; /* Más grande en la página de producto */
    padding: 5px 10px;
    border-radius: 5px;
}

.product-item .product-name {
    margin-top: 5px; /* Reduce este margen */
    margin-bottom: 5px; /* Reduce este margen */
    font-size: 1em; /* Asegura un tamaño de fuente estándar */
    font-weight: 500;
    color: #333;
    line-height: 1.2; /* Reduce el espacio entre líneas si el nombre es largo */
    padding: 0 5px; /* Pequeño padding horizontal para que el texto no se pegue a los bordes */
}

/* ==========================================================================
   ESTILOS PARA POPUP PROMOCIONAL DE OUTLET
   ========================================================================== */

/* Overlay - Fondo oscuro semitransparente */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Contenedor principal del popup */
.popup-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    max-width: 550px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    animation: popupSlideIn 0.4s ease forwards;
    overflow: hidden;
}

.popup-overlay.show .popup-container {
    transform: scale(1);
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Decoración de fondo animada */
.popup-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(2, 184, 172, 0.03) 20px,
        rgba(2, 184, 172, 0.03) 40px
    );
    animation: popupBackgroundAnimation 20s linear infinite;
    pointer-events: none;
}

@keyframes popupBackgroundAnimation {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Botón de cerrar */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.popup-close:hover {
    background: #ff5252;
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 82, 82, 0.4);
}

/* Contenido del popup */
.popup-content {
    padding: 50px 40px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Emoji grande */
.popup-emoji {
    font-size: 70px;
    margin-bottom: 20px;
    animation: popupEmojiFloat 3s ease-in-out infinite;
}

@keyframes popupEmojiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Título principal */
.popup-title {
    font-size: 36px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    animation: popupTitlePulse 2.5s ease-in-out infinite;
}

@keyframes popupTitlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Texto de descuento destacado */
.popup-discount-text {
    margin: 20px 0 25px;
    position: relative;
}

.popup-discount-number {
    display: inline-block;
    background: linear-gradient(135deg, #02b8ac 0%, #09d3c6 100%);
    color: white;
    font-size: 42px;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(2, 184, 172, 0.4);
    position: relative;
    animation: popupDiscountShine 3s ease-in-out infinite;
}

@keyframes popupDiscountShine {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(2, 184, 172, 0.4);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(2, 184, 172, 0.6);
    }
}

.popup-discount-number::before {
    content: '🔥';
    position: absolute;
    left: -30px;
    font-size: 30px;
    animation: popupFlameFloat 1.5s ease-in-out infinite;
}

.popup-discount-number::after {
    content: '🔥';
    position: absolute;
    right: -30px;
    font-size: 30px;
    animation: popupFlameFloat 1.5s ease-in-out infinite 0.75s;
}

@keyframes popupFlameFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

/* Descripción */
.popup-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* Características */
.popup-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(2, 184, 172, 0.05);
    border-radius: 12px;
}

.popup-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.popup-feature-icon {
    font-size: 22px;
    flex-shrink: 0;
}

/* Botón principal CTA */
.popup-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #02b8ac 0%, #09d3c6 100%);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(2, 184, 172, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.popup-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.popup-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.popup-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(2, 184, 172, 0.5);
}

/* Botón "No, gracias" */
.popup-no-thanks {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s ease;
}

.popup-no-thanks:hover {
    color: #333;
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE - TABLETS
   ========================================================================== */
@media (max-width: 768px) {
    .popup-container {
        max-width: 90%;
        border-radius: 20px;
    }

    .popup-content {
        padding: 45px 30px 35px;
    }

    .popup-emoji {
        font-size: 60px;
    }

    .popup-title {
        font-size: 30px;
    }

    .popup-discount-number {
        font-size: 36px;
        padding: 12px 35px;
    }

    .popup-discount-number::before,
    .popup-discount-number::after {
        font-size: 26px;
        left: -26px;
        right: -26px;
    }

    .popup-description {
        font-size: 15px;
    }

    .popup-cta-button {
        padding: 16px 40px;
        font-size: 16px;
    }

    .popup-features {
        padding: 15px;
    }

    .popup-feature-item {
        font-size: 14px;
    }

    .popup-feature-icon {
        font-size: 20px;
    }
}

/* ==========================================================================
   RESPONSIVE - MÓVILES
   ========================================================================== */
@media (max-width: 480px) {
    .popup-overlay {
        padding: 15px;
    }

    .popup-container {
        max-width: 100%;
        border-radius: 18px;
    }

    .popup-close {
        width: 38px;
        height: 38px;
        font-size: 24px;
        top: 12px;
        right: 12px;
    }

    .popup-content {
        padding: 40px 25px 30px;
    }

    .popup-emoji {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .popup-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .popup-discount-text {
        margin: 15px 0 20px;
    }

    .popup-discount-number {
        font-size: 30px;
        padding: 10px 25px;
    }

    .popup-discount-number::before,
    .popup-discount-number::after {
        font-size: 22px;
        left: -22px;
    }

    .popup-discount-number::after {
        right: -22px;
    }

    .popup-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .popup-features {
        gap: 10px;
        padding: 12px;
        margin-bottom: 25px;
    }

    .popup-feature-item {
        font-size: 13px;
        gap: 10px;
    }

    .popup-feature-icon {
        font-size: 18px;
    }

    .popup-cta-button {
        padding: 14px 30px;
        font-size: 15px;
        width: 100%;
        border-radius: 40px;
    }

    .popup-no-thanks {
        font-size: 13px;
    }
}

/* ==========================================================================
   ESTILOS PARA MODAL DE AUTENTICACIÓN
   ========================================================================== */

/* Modal Overlay */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.auth-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Contenedor del Modal */
.auth-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Botón de cerrar */
.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
}

.auth-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

/* Contenedor del formulario */
.auth-form-container {
    padding: 50px 40px 40px;
}

.auth-form-container h2 {
    font-size: 28px;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin: 0 0 30px 0;
    font-size: 15px;
}

/* Formulario */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #02b8ac;
    box-shadow: 0 0 0 3px rgba(2, 184, 172, 0.1);
}

.form-group small {
    font-size: 12px;
    color: #888;
    margin-top: -2px;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* Fila de formulario (2 columnas) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Opciones del formulario */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: #02b8ac;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #019a8f;
    text-decoration: underline;
}

/* Divisor de sección */
.form-divider {
    margin: 15px 0 5px;
    padding: 15px 0 0;
    border-top: 1px solid #eee;
}

.form-divider p {
    margin: 0 0 5px 0;
    color: #333;
}

.form-divider small {
    color: #888;
    font-size: 13px;
}

/* Botones */
.auth-btn {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #02b8ac 0%, #09d3c6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(2, 184, 172, 0.3);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 184, 172, 0.4);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-btn-secondary {
    background: white;
    color: #02b8ac;
    border: 2px solid #02b8ac;
}

.auth-btn-secondary:hover {
    background: #f0fffe;
    border-color: #019a8f;
    color: #019a8f;
}

/* Divisor "o" */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 15px;
    color: #888;
    font-size: 14px;
}

/* Estado de carga */
.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   DROPDOWN DE USUARIO
   ========================================================================== */
.icons .user-icon-container {
    position: relative;
    display: inline-block;
}

/* Dropdown de usuario - POSICIÓN CORREGIDA */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* 10px debajo del icono */
    right: 0; /* Alineado a la derecha del contenedor */
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownSlide 0.2s ease;
    display: none; /* Oculto por defecto */
}

/* Animación del dropdown */
@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header del dropdown */
.user-dropdown-header {
    padding: 15px;
    background: linear-gradient(135deg, #02b8ac 0%, #09d3c6 100%);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
}

.user-email {
    font-size: 13px;
    opacity: 0.9;
    word-break: break-all;
}

/* Menú del dropdown */
.user-dropdown-menu {
    padding: 8px 0;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 15px;
}

.user-dropdown-menu a:hover {
    background: #f5f5f5;
}

.user-dropdown-menu a span {
    font-size: 18px;
}

/* Avatar del usuario logueado */
.icons .user-icon-container.logged-in .user-avatar {
    background: linear-gradient(135deg, #02b8ac 0%, #09d3c6 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.icons .user-icon-container.logged-in .user-avatar:hover {
    transform: scale(1.1);
}

/* Ajuste para el header cuando está sobre el banner */
header.header-on-banner .user-dropdown {
    top: calc(100% + 10px);
}

/* ==========================================================================
   MENSAJES DE ERROR/ÉXITO
   ========================================================================== */

.auth-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.auth-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.auth-message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 600px) {
    .auth-modal-content {
        border-radius: 12px;
        max-width: 95%;
    }
    
    .auth-form-container {
        padding: 40px 25px 30px;
    }
    
    .auth-form-container h2 {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-dropdown {
        right: -20px;
        min-width: 180px;
        font-size: 14px;
    }
    
    .user-dropdown-header {
        padding: 12px;
    }
    
    .user-name {
        font-size: 15px;
    }
    
    .user-email {
        font-size: 12px;
    }
    
    .user-dropdown-menu a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Spinner de carga */
.auth-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
  
.checkout-login-banner {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #81c784;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    animation: slideInDown 0.4s ease;
}

/* Ocultar el banner (se mostrará con JS) */
.checkout-login-banner:not(.show) {
    display: none;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-prompt-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.prompt-icon {
    font-size: 32px;
}

.prompt-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.prompt-text strong {
    font-size: 16px;
    color: #2e7d32;
}

.prompt-text p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.prompt-login-btn {
    background: #1565c0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.prompt-login-btn:hover {
    background: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

/* Responsive para banner*/
@media (max-width: 600px) {
    .checkout-login-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .login-prompt-content {
        width: 100%;
    }
    
    .prompt-login-btn {
        width: 100%;
    }

}

/* ESTILOS BLACK FRIDAY GRINCH */
.grinch-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Fondo oscuro */
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.grinch-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.grinch-modal {
  background: #111; /* Tarjeta Negra */
  width: 90%;
  max-width: 700px;
  display: flex;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid #39ff14; /* Borde Verde Neón */
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
  position: relative;
}

.grinch-close {
  position: absolute;
  top: 10px; right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.grinch-content {
  display: flex;
  width: 100%;
}

.grinch-image {
  flex: 1;
  position: relative;
  background: #fff;
}

.grinch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grinch-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: #ff0000;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 18px;
}

.grinch-text {
  flex: 1;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

.grinch-text h2 {
  color: #39ff14; /* Verde Neón */
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

.grinch-text h3 { margin: 10px 0; font-size: 20px; }

.grinch-price {
  margin: 20px 0;
  font-size: 24px;
}

.old-price {
  text-decoration: line-through;
  color: #777;
  margin-right: 10px;
  font-size: 18px;
}

.new-price {
  color: #39ff14;
  font-weight: bold;
  font-size: 32px;
}

.grinch-btn {
  background: #39ff14;
  color: black;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
}

.grinch-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
}

@media (max-width: 600px) {
  .grinch-modal { flex-direction: column; width: 92%; max-width: 450px; }
  .grinch-image { width: 100%;height: 350px; }
  /* Ajustamos un poco el texto para que no quede gigante */
  .grinch-text {padding: 20px 15px; /* Menos padding lateral */}
  .grinch-text h2 {font-size: 24px; /* Título un poco más pequeño */}
  .grinch-text h3 {font-size: 18px;}
  .grinch-price {margin: 15px 0;}
  .new-price {font-size: 28px;}
}

/* =============================================
   SECCIÓN CTA GRINCH (BLACK FRIDAY)
   ============================================= */

.cta-grinch-section {
  background-color: #0a0a0a; /* Fondo casi negro */
  background-image: radial-gradient(circle at 80% 50%, #1a3305 0%, #0a0a0a 70%); /* Degradado sutil verde oscuro */
  padding: 60px 0;
  color: white;
  border-top: 4px solid #39ff14; /* Borde Verde Neón arriba */
  border-bottom: 4px solid #39ff14; /* Borde Verde Neón abajo */
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

/* Reutilizamos .cta-grid del estilo anterior, pero ajustamos el texto */
.cta-grinch-section .cta-text h2 {
  font-size: 32px;
  font-weight: 900;
  color: #39ff14; /* Título Verde Neón */
  text-transform: uppercase;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.cta-grinch-section .cta-text p {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 25px;
}

/* Badge de Oferta */
.offer-badge {
  background-color: #ff0000;
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(255, 0, 0, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Precios */
.price-box {
  margin-bottom: 25px;
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.price-box .old-price {
  font-size: 20px;
  color: #666;
  text-decoration: line-through;
}

.price-box .new-price {
  font-size: 36px;
  font-weight: bold;
  color: white;
}

/* Botón Principal */
.grinch-btn-primary {
  background-color: #39ff14;
  color: #000;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: 18px;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

.grinch-btn-primary:hover {
  background-color: white;
  color: #000;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
}

/* Imagen con Resplandor */
.cta-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-effect {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.2) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
  animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
  from { opacity: 0.5; transform: scale(1); }
  to { opacity: 1; transform: scale(1.2); }
}

.cta-image img {
  position: relative;
  z-index: 1;
  max-width: 450px;
  transform: rotate(-5deg); /* Un toque divertido */
  transition: transform 0.5s ease;
}

.cta-image img:hover {
  transform: rotate(0deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .cta-grinch-section { text-align: center; padding: 40px 20px; }
  .price-box { justify-content: center; }
  .cta-image img { max-width: 300px; margin-top: 30px; transform: rotate(0deg); }
  .cta-grinch-section .cta-text h2 { font-size: 24px; }
}

/* =============================================
   BARRA SUPERIOR BLACK FRIDAY (COUNTDOWN)
   ============================================= */

.bf-top-bar {
  background-color: #0a0a0a; /* Fondo casi negro */
  background-image: radial-gradient(circle at 80% 50%, #1a3305 0%, #0a0a0a 70%); /* Degradado sutil verde*/
  color: #39ff14;
  padding: 10px 0;
  border-bottom: 2px solid #39ff14;
  font-family: 'Oswald', sans-serif; /* Usando la fuente moderna */
  font-weight: 500;
  position: relative;
  z-index: 100;
}

.bf-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* Para que se ajuste en móviles */
}

/* Etiqueta de texto */
.bf-label {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* El Reloj */
.bf-mini-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  background: #1a1a1a;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #333;
}

.timer-unit span {
  color: #fff;
  font-weight: 700;
  min-width: 22px;
  display: inline-block;
  text-align: right;
}

.timer-sep {
  color: #39ff14;
  animation: blink 1s infinite;
  margin-bottom: 2px;
}

/* Botón pequeño en la barra */
.bf-top-btn {
  background: #39ff14;
  color: #000;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.bf-top-btn:hover {
  background: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 10px #39ff14;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Ajuste Móvil */
@media (max-width: 600px) {
  .bf-bar-content { gap: 8px; font-size: 12px; }
  .bf-mini-timer { font-size: 14px; padding: 2px 8px; }
  .bf-label { display: none; } /* Ocultamos el texto largo en celular para que quepa el reloj */
}

/* --- REPOSICIONAMIENTO DE LOGO EN MÓVIL --- */
@media (max-width: 600px) {
  
  /* Cambiamos el header de Grid a Flex para mover cosas fácil */
  header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }

  /* 1. Logo a la Izquierda */
  .logo {
    order: 1; /* Primero */
    margin-right: auto; /* Empuja todo lo demás a la derecha */
  }

  /* 2. Íconos a la Derecha */
  .icons {
    order: 2; /* Segundo */
    padding-right: 0; /* Quitamos espacio extra */
    gap: 15px; /* Espacio entre lupa y carrito */
  }

  /* 3. Menú Hamburguesa al final (Derecha extrema) */
  .hamburger-btn {
    order: 3; /* Tercero */
    margin-left: 15px; /* Separado de los íconos */
    display: block;
  }
    
  /* 1. Ocultar la lupa buscando su nombre de archivo exacto */
  .icons img[src*="search.png"] {
  display: none !important;
  }

  /* 2. Asegurar que el contenedor del usuario (creado por JS) se vea */
  .user-icon-container {
  display: inline-flex !important;
  align-items: center;
  }

  /* 2. Ajuste opcional: Mover la imagen de fondo un poco */
  /* Esto ayuda a que las caras de las modelos no queden tapadas por el texto o logo */
  .banner img, .banner-image {
    object-position: 65% center; /* Mueve el foco de la imagen un poco a la derecha */
  }
}

/* ESTILO PARA LOGO DE TEXTO */
.logo-text {
  font-family: 'Fredoka', sans-serif; /* La fuente divertida */
  font-size: 30px;       /* Tamaño grande */
  font-weight: 600;      /* Grosor */
  color: #02b8ac;        /* Tu color turquesa corporativo */
  text-decoration: none; /* Quitar el subrayado del enlace */
  letter-spacing: 2px;   /* Espacio entre letras */
  text-transform: uppercase;
  
  /* Sombra para que destaque sobre las fotos */
  text-shadow: 2px 2px 0px #ffffff, 0 0 10px rgba(0,0,0,0.1);
  
  /* Centrado vertical */
  display: flex;
  align-items: center;
}

/* Efecto al pasar el mouse */
.logo-text:hover {
  transform: scale(1.05); /* Crece un poquito */
  transition: transform 0.2s ease;
}

/* ETIQUETA NUEVO PRODUCTO */
.product-image-container {
    position: relative; /* Necesario para posicionar la etiqueta sobre la imagen */
}

.new-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #02b8ac; /* Tu color turquesa */
    color: white;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(2, 184, 172, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Efecto opcional: Brillo suave */
.new-product-badge {
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
    100% { filter: brightness(1); }
}