/** MODAL PARA EL PRIEMR CAR DE PRODUCTOS VENDIDOS */
.products-section {
  padding: 2rem 0;
  background: var(--color-background);
}

.section-title {
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-text);
  font-size: 2rem;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 4 columnas en PC */
  gap: 1rem;
}

/* PRODUCT CARD */
.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.product-cardV {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}
.product-cardV:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  color: #fff;
  text-transform: uppercase;
}
.badge-new {
  background: var(--color-accent);
}

.product-image {
  height: 100%; /* imagen más grande */
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  transition: transform 0.4s;
}
.product-card:hover .product-image img {
  transform: scale(1.08);
}
.product-cardV:hover .product-image img {
  transform: scale(1.08);
}
.product-info {
  padding: 1.2rem;
}
.product-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

.product-price {
  display: flex;
  align-items: baseline; /* Importante: alinea por la base del texto */
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

/* Stock + estrellas */
.stock-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
  font-size: 0.65rem;
  flex-wrap: wrap;
  gap: 6px;
}

/* Select variación moderno */
.variation-select {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}
.variation-select-custom {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}
.variation-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(44, 125, 160, 0.2);
  outline: none;
}
.variation-select-custom:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(44, 125, 160, 0.2);
  outline: none;
}
.current-price {
  color: #000000;
  font-weight: 800;
  font-size: clamp(14px, 4vw, 16px); /* Tamaño responsivo */
  margin-right: 4px;
  line-height: 1;
}
.original-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.9rem;
}
.discount-percent {
  color: white;
  font-size: clamp(9px, 2.5vw, 11px); /* Tamaño responsivo */
  font-weight: 700;
  padding: clamp(1px, 0.5vw, 2px) clamp(4px, 1.5vw, 6px);
  border-radius: 6px;
  line-height: 1.2;
  white-space: nowrap;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-add-cart,
.btn-details {
  flex: 1;
  padding: 0.55rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-add-cart {
  background: var(--color-primary);
  color: #fff;
}
.btn-add-cart:hover {
  background: #646464;
}
.btn-add-cartD {
  flex: 1;
  padding: 0.55rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-add-cartD {
  background: var(--color-primary);
  color: #fff;
}
.btn-add-cartD:hover {
  background: #646464;
}
.btn-details {
  background: #f3f4f6;
  color: var(--color-text);
}
.btn-details:hover {
  background: #e5e7eb;
}

/* CAROUSEL CONTROLS */
.carousel-control-prev,
.carousel-control-next {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(25%) sepia(82%) saturate(2582%) hue-rotate(215deg)
    brightness(93%) contrast(87%);
}

/* RESPONSIVE MÓVIL - 2 columnas, horizontal scroll */
@media (max-width: 576px) {
  .products-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }

  .products-grid::-webkit-scrollbar {
    display: none; /* Oculta scrollbar */
  }

  .product-card {
    flex: 0 0 calc(50% - 0.5rem); /* 2 columnas visibles */
    scroll-snap-align: start;
  }
  .product-cardV {
    flex: 0 0 calc(50% - 0.5rem); /* 2 columnas visibles */
    scroll-snap-align: start;
  }
  .product-image {
    height: 100%;
  }
}

.section-title {
  position: relative;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-text);
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 10;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.slider-control:hover {
  background-color: var(--color-primary);
  color: white;
}

.slider-control.prev {
  left: 0;
}

.slider-control.next {
  right: 0;
}

.slider-control.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/**ETILO PARA LA GRILLA DE PODUCTOS COPMARO SECCION 3 */
/* GRILLA DE PRODUCTOS */
.product-section {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .product-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .product-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* TARJETA DE PRODUCTO */
.product-card-custom {
  background: var(--color-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
}

.product-card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-badge-custom {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(45deg, #ff4e50, #f9d423);
  color: var(--color-light);
  font-size: 10px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(255, 78, 80, 0.8);
  animation:
    glowPulse 1.5s infinite alternate,
    shine 3s infinite linear;
  z-index: 1;
  overflow: hidden;
}

.product-image-custom {
  width: 100%;
  padding-top: 100%;
  /* ratio cuadrado */
  position: relative;
  overflow: hidden;
}

.product-image-custom img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-custom {
  padding: 5px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title-custom,
.product-title {
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 600;
}
@media (max-width: 767px) {
  .product-title-custom,
.product-title {
    font-size: 0.75rem;
  }
}
/* Precios - Versión responsiva */
.product-price-custom {
  display: flex;
  flex-wrap: wrap; /* Permite que los elementos se ajusten en móviles */
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.current-price-custom {
  color: #050505; /* Rojo llamativo para precio actual */
  font-weight: 800;
  font-size: 16px;
  order: 1; /* Siempre primero */
  flex-shrink: 0; /* No se encoje */
}

.original-price-custom {
  text-decoration: line-through;
  color: #7f8c8d;
  font-size: 11px;
  order: 2; /* Segundo en orden */
  flex-shrink: 0;
}

.discount-percent-custom {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  order: 3; /* Tercero en orden */
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
  white-space: nowrap; /* Evita que se rompa en dos líneas */
}

/* Para móviles */
@media (max-width: 768px) {
  .product-price-custom {
    flex-wrap: nowrap; /* En móviles los mantenemos en línea */
    justify-content: flex-start;
    align-items: baseline; /* Alinea por la base del texto */
    gap: 4px;
  }

  .current-price-custom {
    font-size: 14px;
    flex: 0 0 auto; /* Tamaño fijo, no se expande */
  }

  .original-price-custom {
    font-size: 10px;
    flex: 0 0 auto;
  }

  .discount-percent-custom {
    font-size: 9px;
    padding: 1px 4px;
    flex: 0 0 auto;
  }
}

/* Para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
  .product-price-custom {
    flex-direction: column; /* Cambia a columna en móviles muy pequeños */
    align-items: flex-start;
    gap: 2px;
  }

  .current-price-custom {
    font-size: 15px;
    order: 1;
  }

  .original-price-custom {
    font-size: 11px;
    order: 2;
  }

  .discount-percent-custom {
    font-size: 10px;
    padding: 2px 8px;
    order: 3;
    align-self: flex-start; /* Alinea a la izquierda */
    margin-top: 2px;
  }
}

/* Alternativa: Diseño en línea compacto para móviles */
.product-price-custom.compact {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
}

.product-price-custom.compact .current-price-custom {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: 16px;
  align-self: center;
}

.product-price-custom.compact .original-price-custom {
  grid-column: 2;
  grid-row: 1;
  font-size: 10px;
  align-self: end;
}

.product-price-custom.compact .discount-percent-custom {
  grid-column: 2;
  grid-row: 2;
  font-size: 9px;
  padding: 1px 4px;
  align-self: start;
}

.product-actions-custom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}

.product-actions-custom button {
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.product-actions-custom button:hover {
  background: var(--color-accent);
}

/* BOTON VER MAS */
.btn-ver-mas-custom {
  display: block;
  margin: 30px auto 0;
  background: var(--color-primary);
  color: var(--color-light);
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-ver-mas-custom:hover {
  background: var(--color-accent);
}
/* =========================================
   SECCIÓN DE PRODUCTOS (GLOBAL)
   ========================================= */
.all-products-section {
  padding: 2px; /* Reducido de 2rem a 1rem */
  background: var(--color-background);
}

/* Asegura que el container-fluid no meta padding lateral en móvil */
.all-products-section .container-fluid {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.section-title {
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.8rem;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* =========================================
   GRID DE PRODUCTOS
   ========================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  align-items: stretch;
}

/* =========================================
   PRODUCT CARD
   ========================================= */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* =========================================
   BADGES
   ========================================= */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: #fff;
  z-index: 3;
}
.badge-new {
  background: var(--color-accent);
}

/* =========================================
   IMAGEN DEL PRODUCTO
   ========================================= */
.product-image {
  height: 200px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-image img {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.4s;
  object-fit: contain;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* =========================================
   INFO DEL PRODUCTO
   ========================================= */
.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  line-height: 1.25;
}

/* =========================================
   PRECIOS
   ========================================= */
.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.current-price {
  color: var(--color-primary);
  font-weight: 700;
}
.original-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.9rem;
}
.discount-percent {
  margin-left: auto;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

/* =========================================
   BOTONES
   ========================================= */
.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
.btn-add-cart,
.btn-details {
  padding: 0.55rem;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
  cursor: pointer;
  font-weight: 600;
}
.btn-add-cart {
  flex: 1;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.btn-add-cart:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}
.btn-add-cart.added {
  background: #28a745 !important;
}
.btn-details {
  flex: 0 0 42px;
  background: #f3f4f6;
  color: var(--color-text);
}
.btn-details:hover {
  background: #e5e7eb;
}

/* =========================================
   INPUT DE CANTIDAD
   ========================================= */
.quantity-control-custom {
  gap: 0.35rem;
  margin: 6px 0;
}
.quantity-control-custom .btn-qty {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  line-height: 1;
}
.quantity-control-custom .btn-qty:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.quantity-control-custom .qty-input-custom {
  width: 42px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
}
.quantity-control-custom .qty-input-custom:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

/* =========================================
   SELECT DE VARIACIONES
   ========================================= */
.variation-select,
.variation-select-custom {
  font-size: 0.75rem;
  padding: 4px 6px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #4b5563;
  margin-bottom: 6px;
  width: 100%;
}
.variation-select:focus,
.variation-select-custom:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

/* =========================================
   CÓDIGO DEL PRODUCTO
   ========================================= */
.product-code-label {
  position: absolute;
  margin-bottom: 2px;
  left: 0;
  background: var(--color-secondary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* =========================================
   RESPONSIVE - TABLET
   ========================================= */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   RESPONSIVE - MÓVIL (SIN ESPACIOS)
   ========================================= */
@media (max-width: 767px) {
  /* Sección sin padding lateral */
  .all-products-section {
    padding: 2px;
  }
  .all-products-section .container-fluid {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem; /* Mínimo espacio entre cards */
  }
  .product-image {
    height: 150px;
  }
  .product-info {
    padding: 0.6rem;
  }
  .product-title {
    font-size: 0.75rem;
    min-height: 34px;
  }
  .current-price {
    font-size: 0.95rem;
  }
  .original-price {
    font-size: 0.75rem;
  }
  .discount-percent {
    font-size: 0.7rem;
  }

  /* Botones compactos en móvil */
  .btn-add-cart,.btn-add-cartD
  .btn-details {
    padding: 0.45rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }
  .btn-details {
    flex: 0 0 36px;
  }

  /* Input cantidad compacto */
  .quantity-control-custom .btn-qty {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }
  .quantity-control-custom .qty-input-custom {
    width: 34px;
    height: 26px;
    font-size: 0.78rem;
  }

  /* Código del producto más pequeño */
  .product-code-label {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
}
/* =========================================================
   FIX DE ALTURA UNIFORME Y COMPACTADO DE PRODUCT-CARD-CUSTOM
   No rompe nada. Solo refuerza el layout actual.
   ========================================================= */

/* --- CARD: misma altura en todas, layout vertical controlado --- */
.product-card-custom {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

/* --- INFO: se convierte en columna con empuje abajo --- */
.product-info-custom {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  gap: 0 !important; /* controlamos espacios manualmente */
  padding: 0.5rem 0.6rem 0.6rem !important;
}

/* --- TÍTULO: 2 líneas exactas, sin crecer --- */
.product-title-custom {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 0 0.2rem 0 !important;
  min-height: 1.9rem !important; /* reserva espacio fijo (2 líneas) */
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: var(--color-text) !important;
}

/* --- RATING: pegado al título, sin margen --- */
.stock-rating {
  display: flex !important;
  align-items: center !important;
  margin: 0 0 0.15rem 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  min-height: 0 !important;
}
.rating-stars i {
  font-size: 0.65rem !important;
}

/* --- STOCK (fila "Stock: X" + badge Disponible) --- */
.product-info-custom > .d-flex.justify-content-between {
  margin: 0 0 0.15rem 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  min-height: 1rem !important; /* altura fija para alinear todos */
}
.product-info-custom .fw-bold {
  font-size: 0.62rem !important;
  color: #64748b !important;
  line-height: 1 !important;
}
.stock-status-badge-custom {
  font-size: 0.58rem !important;
  padding: 2px 7px !important;
  border-radius: 20px !important;
  line-height: 1 !important;
}

/* =========================================================
   CLAVE: reservar SIEMPRE la altura de la zona de variación
   para que los cards con y sin variación midan igual.
   ========================================================= */
.product-info-custom .form-group.mb-1 {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 2.4rem !important; /* reserva fija = etiqueta + select */
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}
.product-info-custom .form-label {
  font-size: 0.58rem !important;
  margin: 0 0 0.1rem 0 !important;
  line-height: 1 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}
.variation-select-custom {
  font-size: 0.7rem !important;
  padding: 3px 6px !important;
  height: 24px !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

/* =========================================================
   PRECIO: una sola fila, con empuje hacia abajo
   ========================================================= */
.product-price-custom {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin: 0.1rem 0 0.2rem 0 !important;
  line-height: 1 !important;
  min-height: 1.2rem !important;
}
.product-price-custom .fw-bold {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: var(--color-text) !important;
  line-height: 1 !important;
}
.product-price-custom .text-muted.text-decoration-line-through {
  font-size: 0.62rem !important;
  color: #94a3b8 !important;
  line-height: 1 !important;
}
.product-price-custom .text-danger.fw-semibold {
  font-size: 0.58rem !important;
  background: #16a34a !important;
  color: #fff !important;
  padding: 2px 5px !important;
  border-radius: 20px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}
.price-badge {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.58rem !important;
  padding: 2px 6px !important;
  background: #f1f5f9 !important;
  border-radius: 6px !important;
  line-height: 1 !important;
  margin: 0 0 0.15rem 0 !important;
}

/* =========================================================
   EMPUJE: acciones SIEMPRE al fondo
   ========================================================= */
.product-info-custom > .quantity-control-custom,
.product-info-custom > .product-actions {
  margin-top: auto !important;
}

/* --- Cantidad: discreta y compacta --- */
.quantity-control-custom {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.3rem !important;
  margin: 0.1rem 0 0.25rem 0 !important;
  padding: 0 !important;
}
.quantity-control-custom .btn-qty {
  width: 26px !important;
  height: 26px !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e5e7eb !important;
  color: #334155 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.18s ease !important;
}
.quantity-control-custom .btn-qty:hover {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}
.quantity-control-custom .qty-input-custom {
  width: 42px !important;
  height: 26px !important;
  font-size: 0.78rem !important;
  border-radius: 6px !important;
  border: 1px solid #e5e7eb !important;
  text-align: center !important;
  background: #fff !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* --- Botones inferiores: 34px fijos --- */
.product-actions {
  display: flex !important;
  gap: 0.35rem !important;
  padding-top: 0.1rem !important;
  margin-bottom: 0 !important;
}
.btn-add-cart,.btn-add-cartD {
  flex: 1 !important;
  height: 34px !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
}
.btn-add-cart,.btn-add-cartD:hover {
  filter: brightness(0.92) !important;
}
.btn-add-cart.added {
  background: #16a34a !important;
}
.btn-add-cartD.added {
  background: #16a34a !important;
}
.btn-details {
  flex: 0 0 34px !important;
  height: 34px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: none !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
}
.btn-details:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* =========================================================
   MÓVIL: aún más compacto
   ========================================================= */
@media (max-width: 767px) {
  .product-info-custom {
    padding: 0.4rem 0.5rem 0.5rem !important;
  }
  .product-title-custom {
    font-size: 0.7rem !important;
    min-height: 1.7rem !important;
    line-height: 1.15 !important;
    margin-bottom: 0.15rem !important;
  }
  .rating-stars i {
    font-size: 0.6rem !important;
  }
  .product-info-custom .fw-bold,
  .stock-status-badge-custom {
    font-size: 0.55rem !important;
  }
  .stock-status-badge-custom {
    padding: 1px 5px !important;
  }

  .product-info-custom .form-group.mb-1 {
    min-height: 2.1rem !important;
  }
  .product-info-custom .form-label {
    font-size: 0.52rem !important;
  }
  .variation-select-custom {
    font-size: 0.65rem !important;
    height: 22px !important;
    padding: 2px 5px !important;
  }

  .product-price-custom .fw-bold {
    font-size: 0.85rem !important;
  }
  .product-price-custom .text-muted.text-decoration-line-through {
    font-size: 0.58rem !important;
  }
  .product-price-custom .text-danger.fw-semibold {
    font-size: 0.52rem !important;
    padding: 1px 4px !important;
  }

  .quantity-control-custom .btn-qty {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.75rem !important;
  }
  .quantity-control-custom .qty-input-custom {
    width: 34px !important;
    height: 22px !important;
    font-size: 0.7rem !important;
  }

  .btn-add-cart,
  .btn-details {
    height: 30px !important;
    font-size: 0.75rem !important;
    border-radius: 7px !important;
  }
  .btn-details {
    flex: 0 0 30px !important;
  }
}

/* =========================================================
   BANNER PROMOCIONAL DENTRO DEL GRID DE PRODUCTOS
   PC: 3 columnas, imagen a la izquierda sin franjas
   Móvil: imagen arriba, texto abajo (estilo anterior)
   ========================================================= */

/* =========================================================
   BANNER PROMOCIONAL - PC: imagen arriba, texto abajo
   ========================================================= */

.product-banner-card {
  grid-column: span 2;                  /* 3 columnas en PC */
  display: flex !important;
  flex-direction: column !important;     /* imagen arriba, texto abajo */
  align-items: stretch !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  position: relative !important;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    color-mix(in srgb, var(--color-primary) 70%, #000) 60%,
    var(--color-accent) 130%
  ) !important;
  color: var(--color-light) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  min-height: 200px;
}

.product-banner-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18) !important;
}

/* Destello diagonal animado */
.product-banner-card::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: bannerShine 4.5s infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes bannerShine {
  0%   { left: -75%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

/* ---------- Imagen arriba, ancho completo, proporción 1920x677 ---------- */
.product-banner-media {
  width: 100% !important;
  flex: 0 0 auto !important;
  aspect-ratio: 1920 / 677;              /* respeta proporción del banner */
  overflow: hidden !important;
  background: #000;
  position: relative !important;
}
.product-banner-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  transition: transform 0.5s ease !important;
}
.product-banner-card:hover .product-banner-media img {
  transform: scale(1.03) !important;
}

/* ---------- Texto abajo ---------- */
.product-banner-body {
  flex: 1 1 auto !important;
  padding: 0.9rem 1.1rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  color: var(--color-light);
  position: relative;
  z-index: 3;
}

.product-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--color-light);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
.product-banner-tag i {
  animation: tagPulse 1.6s infinite ease-in-out;
}
@keyframes tagPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.85; }
}

.product-banner-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--color-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.product-banner-sub {
  font-size: 0.7rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.35;
}

.product-banner-btn {
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--color-light);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.product-banner-btn:hover {
  background: var(--color-accent);
  color: var(--color-light);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 992px) {
  .product-banner-card { grid-column: span 2; }
  .product-banner-media { flex: 0 0 55%; }
}

/* =========================================================
   MÓVIL: estilo anterior — imagen arriba a todo el ancho,
   texto abajo. Sin franjas.
   ========================================================= */
@media (max-width: 767px) {
  .product-banner-card {
    grid-column: span 2;
    flex-direction: column !important;
    min-height: auto;
    aspect-ratio: auto;
  }
  .product-banner-media {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 677;   /* respeta la proporción exacta */
    background: transparent;
  }
  .product-banner-media img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  .product-banner-body {
    padding: 0.85rem 0.95rem;
    gap: 0.35rem;
  }
  .product-banner-title { font-size: 0.9rem; }
  .product-banner-sub   { font-size: 0.68rem; }
  .product-banner-btn {
    font-size: 0.68rem;
    padding: 0.45rem 0.85rem;
  }
}

