
#popupCarruselContenido.loading {
  visibility: hidden;
}
body {
    margin: 0;
    padding: 0;
    background: #ffffff; /* gris muy clarito moderno */
}

.img-custom {
  width: 100px;
  height: auto;
}
th {
  background-color: #000;
  color: white;
  text-align: center;
}
td {
  vertical-align: middle !important;
}

td:not(.td-descripcion) {
  text-align: center;
}

table.table {
  border: 1px solid #000;
}
table.table th,
table.table td {
  border: 1px solid #000 !important;
}
table.table tbody tr:hover {
  background-color: #dceeff;
  transition: background-color 0.2s ease-in-out;
}


#resumen-carrito {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", sans-serif;
  z-index: 9999;
  width: 250px;
  display: none;
  transition: all 0.3s ease-in-out;
}

#resumen-carrito strong {
  font-size: 16px;
  display: block;
  margin-bottom: 10px;
}

#resumen-carrito span {
  font-weight: bold;
}

#resumen-carrito button {
  width: 100%;
  margin-top: 8px;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}






@media screen and (max-width: 768px) {
  .img-custom {
    width: 70px;
  }
  table.table th,
  table.table td {
    font-size: 12px;
    padding: 6px;
  }
  #resumen-carrito {
    width: 95%;
    right: 2.5%;
    bottom: 10px;
  }
  #search {
    font-size: 14px;
  }
  .carrito-btn,
  #resumen-carrito button,
  input[type="number"] {
    font-size: 12px;
    padding: 4px 6px;
  }
  input[type="number"] {
    width: 50px !important;
  }
}
    
/*ESTILOS PARA CAMBIAR LOS BOTONES EN EL CELULAR*/
.btn-group-responsive {
  display: flex;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .btn-group-responsive {
    flex-direction: column;
    align-items: center;
  }

  .btn-group-responsive .carrito-btn {
    width: 100%;
  }
}
    
table.table thead th {
  background-color: #f0f0f0;
  color: #333;
  padding: 12px;
  border-bottom: 2px solid #ccc !important;
  text-align: center;
}

/* Modo oscuro */
body.dark-mode table.table thead th {
  background-color: #2a2a2a !important;
  color: #fff !important;
  border-color: #444 !important;
}


table.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-top: 10px;
}

table.table thead {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 768px) {
  .carrito-btn {
    width: 100%;
    height: 50px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
      
/* Switch personalizado compatible con Bootstrap */
.switch-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #28a745;
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

.switch-label {
  font-size: 16px;
  font-weight: 500;
}

@keyframes fadeInSlide {
    from {
    opacity: 0;
    transform: translateY(20px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.fila-animada {
  animation: fadeInSlide 0.5s ease-out;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px;
}

.search-wrapper input[type="search"] {
  border: 1px solid #ccc;
  box-shadow: none;
  border-radius: 8px;
  padding: 10px 40px 10px 38px;
}

.search-wrapper input[type="text"]:focus {
  border-color: #28a745;
  box-shadow: none; /* 🔧 eliminamos el glow */
  outline: none;     /* 🔧 aseguramos que no aparezca un contorno nativo */
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
  pointer-events: none;
}

.clear-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
  cursor: pointer;
  user-select: none;
}

@media screen and (max-width: 768px) {
  .modo-tienda-activa .col-precio-mayor,
  .modo-tienda-activa .col-cantidad,
  .modo-tienda-activa .col-carrito {
    display: none !important;
  }
}

.bloque-combinado {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f8f9fa; /* fondo claro */
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.precio-combinado {
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.input-cantidad-combinada {
  width: 60px;
  text-align: center;
  font-size: 14px;
  padding: 4px 6px;
  margin-bottom: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.botones-combinados {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.botones-combinados .btn {
  font-size: 16px;
  padding: 6px 10px;
  min-width: 40px;
  border-radius: 8px;
}

.botones-combinados .btn:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
}

.input-cantidad-combinada {
  width: 60px;
  text-align: center;
  font-size: 15px;
  padding: 6px 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid #bbb;
  background-color: #fff;
}

.btn-quitar {
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-width: 2px;
  min-width: 32px;
  height: 36px;
}

.icono-quitar {
  font-size: 18px;
  line-height: 1;
  color: #dc3545;
}
    
.btn-agregar, .btn-quitar {
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  border-width: 2px;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out;
}

.btn-agregar:hover, .btn-quitar:hover {
  transform: scale(1.05);
}
@media screen and (max-width: 768px) {
  .modo-tienda-activa .col-carrito,
  .modo-tienda-activa .col-cantidad,
  .modo-tienda-activa .col-precio-mayor {
    display: none !important;
  }

}
@media screen and (max-width: 768px) {


  .modo-tienda-activa .col-carrito,
  .modo-tienda-activa .col-precio-mayor,
  .modo-tienda-activa .col-cantidad {
    display: none !important;
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.btn-agregado-pop {
  animation: pop 0.3s ease-in-out;
}
      
@media screen and (max-width: 768px) {
  #resumen-carrito {
    width: 95%;
    right: 2.5%;
    bottom: 10px;
    border-radius: 14px;
  }
}
@media screen and (max-width: 768px) {
    #resumen-carrito button {
        font-size: 16px;
        padding: 14px 18px;
        margin-top: 10px;
        border-radius: 14px;
    }

    #resumen-carrito {
        padding: 20px 16px;
        width: 95%;
        right: 2.5%;
        bottom: 10px;
        border-radius: 18px;
    }

    #resumen-carrito strong {
        font-size: 18px;
        margin-bottom: 12px;
    }

    #resumen-carrito .mb-2,
    #resumen-carrito .mb-3 {
        font-size: 16px;
      }
}

.btn-quitar-detalle {
  padding: 4px 8px;
  font-size: 16px;
  border-radius: 50%;
  line-height: 1;
}


#carrito-contador {
  position: absolute;
  top: 4px;
  right: 6px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  line-height: 1;
}


.custom-orden-select {
  border-radius: 10px;
  
  border: 1px solid #ccc;
  padding: 6px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-size: 14px;
}

@keyframes pop-cantidad {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.anim-pop {
  animation: pop-cantidad 0.3s ease-in-out;
}

.input-stock-maximo {
  border-color: #dc3545 !important;
  background-color: #fff0f0;
  animation: parpadeoStock 0.4s ease-in-out;
}

@keyframes parpadeoStock {
  0% { background-color: #fff0f0; }
  50% { background-color: #ffd6d6; }
  100% { background-color: #fff0f0; }
}

.detalle-producto-carrito img {
  width: 60px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.detalle-producto-carrito strong {
  font-size: 13px; /* ajustá el tamaño que quieras */
  font-weight: 500; /* menos grueso que bold */
}

@keyframes rebote-carrito {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.rebote {
  animation: rebote-carrito 0.4s ease-in-out;
}

body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode .table {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

body.dark-mode .table th {
  background-color: #333;
  color: #fff;
}

body.dark-mode .modal-content {
  background-color: #1e1e1e;
  color: #fff;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
  background-color: #2a2a2a;
  color: #f1f1f1;
  border-color: #444;
}

/* Estilos modo oscuro generales */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

/* Tablas */
body.dark-mode .table {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

body.dark-mode .table th,
body.dark-mode .table td {
  background-color: #1e1e1e !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}



/* Resumen de carrito */
body.dark-mode #resumen-carrito {
  background-color: #1e1e1e;
  color: #f1f1f1;
  border-color: #444;
}

/* Inputs y selects */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #2a2a2a;
  color: #f1f1f1;
  border-color: #555;
}

/* Botones */
body.dark-mode .btn {
  color: #fff;
}

body.dark-mode .btn-outline-secondary {
  border-color: #ccc;
  color: #ccc;
}

body.dark-mode .btn-outline-secondary:hover {
  background-color: #ccc;
  color: #000;
}

body.dark-mode .btn-outline-danger {
  border-color: #ff4444;
  color: #ff4444;
}

body.dark-mode .btn-outline-danger:hover {
  background-color: #ff4444;
  color: #fff;
}

body.dark-mode .btn-outline-primary {
  border-color: #4da3ff;
  color: #4da3ff;
}

body.dark-mode .btn-outline-primary:hover {
  background-color: #4da3ff;
  color: #fff;
}

/* Modal fondo */
body.dark-mode .modal-content {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

/* Etiquetas */
body.dark-mode label,
body.dark-mode .form-label {
  color: #f1f1f1;
}

body.dark-mode table.table thead th {
  background: none !important;
  background-color: #2a2a2a !important;
  color: #ffffff !important;
  border-color: #444 !important;
  font-weight: bold !important;
  text-align: center !important;
}

body.dark-mode .modal-header .btn-close {
  filter: invert(1);
}
body.dark-mode .bloque-combinado {
  background-color: #2a2a2a; /* gris oscuro */
  border: 1px solid #444;
}

body.dark-mode .precio-combinado {
  color: #f1f1f1;
}

body.dark-mode .btn-agregar,
body.dark-mode .btn-quitar {
  background-color: #1e1e1e;
  border-color: #666;
  color: white;
}

body.dark-mode .btn-agregar:hover,
body.dark-mode .btn
body.dark-mode .botones-combinados .btn i {
  color: white;
}

/* --- Estilo moderno para el bloque combinado --- */
.bloque-combinado {
  background-color: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.precio-combinado {
  font-size: 16px;
  font-weight: bold;
  color: #222;
}

.input-cantidad-combinada {
  width: 60px;
  font-size: 16px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #ccc;
  text-align: center;
}

/* Botones modernos */
.botones-combinados .btn-agregar,
.botones-combinados .btn-quitar {
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

.botones-combinados .btn-agregar {
  background-color: #28a745;
  color: white;
}

.botones-combinados .btn-quitar {
  background-color: #dc3545;
  color: white;
}

.botones-combinados .btn-agregar:hover {
  background-color: #218838;
}

.botones-combinados .btn-quitar:hover {
  background-color: #c82333;
}

/* --- Modo oscuro --- */
body.dark-mode .bloque-combinado {
  background-color: #2a2a2a;
  border: 1px solid #444;
  box-shadow: 0 4px 8px rgba(255,255,255,0.05);
}

body.dark-mode .precio-combinado {
  color: #fff;
}

body.dark-mode .input-cantidad-combinada {
  background-color: #1e1e1e;
  color: #fff;
  border-color: #555;
}

body.dark-mode .botones-combinados .btn-agregar,
body.dark-mode .botones-combinados .btn-quitar {
  color: white;
}

body.dark-mode .botones-combinados .btn-agregar {
  background-color: #28a745;
}

body.dark-mode .botones-combinados .btn-quitar {
  background-color: #dc3545;
}
.btn-agregar:hover {
  background-color: #218838 !important; /* verde más oscuro al hacer hover */
  color: white !important;
}
body.dark-mode table.table > tbody > tr:hover > td {
  background-color: #2b3d5c !important; /* azul oscuro suave */
  color: #ffffff !important;
  transition: background-color 0.2s ease-in-out;
}
/* Hover fila - cambiar colores de los botones dentro */
body.dark-mode table.table tbody tr:hover .btn-agregar {
  background-color: #28a745 !important;
  color: #fff !important;
  border-color: #28a745 !important;
}

body.dark-mode table.table tbody tr:hover .btn-quitar {
  background-color: #dc3545 !important;
  color: #fff !important;
  border-color: #dc3545 !important;
}

body.dark-mode .text-muted {
  color: #bbbbbb !important; /* gris claro para contraste suave */
}

.promo-destacada {
  background-color: #e0ffe5 !important; /* Verde claro */
}

body.dark-mode .promo-destacada {
  background-color: #294433 !important; /* Verde oscuro */
}

.promo-bloque {
  background-color: #e0ffe5;
}

body.dark-mode .promo-bloque {
  background-color: #294433 !important;
}

.etiqueta-promo {
  position: absolute;
  top: -12px;
  left: 0;
  background-color: #ff5252;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: promoFlash 1s infinite alternate;
}

body.dark-mode .etiqueta-promo {
  background-color: #ff6b6b;
  color: #fff;
}

@keyframes promoFlash {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.05); opacity: 0.85; }
}

.promo-destacada {
  border: 2px solid #28a745 !important;
  border-radius: 8px;
  animation: resplandorPromo 1.2s infinite alternate;
  padding: 4px;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
  background-color: #f5fff7;
}

body.dark-mode .promo-destacada {
  background-color: #1e2d1e;
  border-color: #4caf50 !important;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

@keyframes resplandorPromo {
  0% {
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.3);
  }
  100% {
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
  }
}



.promo-badge {
  color: #dc3545;
  font-weight: bold;
  font-size: 14px;
}

body.dark-mode .promo-badge {
  color: #ff7070;
}

.promo-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
  padding: 6px 10px;
  background-color: #e0ffe5;
  border-radius: 8px;
  font-size: 16px; /* 🔥 AUMENTADO */
  font-weight: bold; /* 🔥 Más grueso */
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
      
.promo-info .badge {
  font-size: 16px; /* 🔥 Más grande */
  padding: 6px 12px;
  border-radius: 12px;
}


body.dark-mode .promo-info {
  background-color: #294433; /* verde oscuro en oscuro */
}



@media (max-width: 768px) {
  .promo-info {
    font-size: 13px;
  }
  .promo-badge {
    font-size: 11px;
    padding: 1px 5px;
  }
}
      
@keyframes promoBrillo {
  0%   { background-color: #fff8e1; }
  50%  { background-color: #ffe0b2; }
  100% { background-color: #fff8e1; }
}

tr.promo-fila {
  animation: promoBrillo 2.5s ease-in-out infinite;
}
body.dark-mode tr.promo-fila {
  background-color: #1e2e1e !important;
  animation: none;
  box-shadow: inset 0 0 0 3px rgba(40, 167, 69, 0.3);
}

@keyframes promoRebote {
  0%   { transform: scale(1); background-color: #e0ffe0; }
  50%  { transform: scale(1.015); background-color: #ccffcc; }
  100% { transform: scale(1); background-color: #e0ffe0; }
}

tr.promo-fila-rebote {
  animation: promoRebote 0.8s ease-out;
}

tr.promo-fila-rebote {
  animation: promoRebote 5s ease-in-out infinite;
}
body.dark-mode tr.promo-fila-rebote {
  background-color: #203520;
}
      
.promo-celda-borde {
  position: relative;
  z-index: 1;
  background-color: inherit; /* hereda del modo claro u oscuro */
  border-radius: 8px;
  overflow: hidden;
}

/* El borde animado externo */
.promo-celda-borde::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(90deg, #ff0080, #ff8c00, #40e0d0, #ff0080);
  background-size: 300% 300%;
  animation: borderGlow 4s linear infinite;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  pointer-events: none;
  border-radius: 8px;
  z-index: -1;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Estilo para filas agotadas en escritorio */
.fila-agotado {
  background-color: #f8d7da !important;
  color: #721c24 !important;
}

/* Modo oscuro */
body.dark-mode .fila-agotado {
  background-color: #3a3a3a !important;
  color: #ffb3b3 !important;
}

/* Estilo extra para mostrar badge */
.badge-agotado {
  background-color: #dc3545;
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 6px;
}

.scroll-top-btn {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: #cccccc; /* ✅ Gris claro */
  border: 2px solid #cccccc; /* ✅ Borde gris igual */
  color: #ffffff; /* ✅ Flecha blanca */
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  animation: reboteScroll 0.8s ease;
}

.scroll-top-btn:hover {
  background: #999999; /* ✅ Gris un poco más oscuro al pasar mouse */
  color: #ffffff;
  transform: translateX(-50%) scale(1.05);
}

@keyframes reboteScroll {
  0% { transform: translateX(-50%) scale(0.9); }
  50% { transform: translateX(-50%) scale(1.05); }
  100% { transform: translateX(-50%) scale(1); }
}


/*ESTILO EN MODO CARTA*/
#cards-container {
  display: none;
  margin-top: 8px; /* antes 20px */
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px; /* antes 20px */
}

@media screen and (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .product-card {
    padding: 6px;
    border-radius: 10px;
  }
}

/*.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
  gap: 1rem;
}*/



.card-content {
  margin-bottom: 10px;
}


.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-card .nombre {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 8px;
}
      


.product-card .precio {
  color: #28a745;
  font-size: 20px; /* Aumentamos */
  font-weight: bold; /* Más grueso */
  margin-bottom: 0px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Sombra suave */
}


.product-card .btn-agregar {
  width: 100%;
}


.product-card.agotado {
  opacity: 0.5;
  pointer-events: none; /* Desactiva clics para que no intenten agregarlo */
  transition: none;
}

.product-card.agotado:hover {
  transform: none; /* Sin efecto de levantarse */
}

.product-card .btn-agregar.agotado {
  background-color: #6c757d; /* Gris Bootstrap */
  border-color: #6c757d;
  color: white;
  cursor: not-allowed;
}

/* Vista Cards en modo oscuro */
body.dark-mode .product-card {
  background-color: #1e1e1e;
  border-color: #444;
  color: #f1f1f1;
}

body.dark-mode .product-card .nombre {
  color: #ffffff;
}

body.dark-mode .product-card .precio {
  color: #28a745;
}

body.dark-mode .product-card input[type="number"] {
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #555;
}

/* Vista Cards en modo oscuro */
body.dark-mode .product-card {
  background-color: #1e1e1e;
  border-color: #555;
  color: #f1f1f1;
  box-shadow: 0 2px 6px rgba(255,255,255,0.05);
}

body.dark-mode .product-card .nombre {
  color: #ffffff;
}

body.dark-mode .product-card .precio {
  color: #28a745;
}

body.dark-mode .product-card input[type="number"] {
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #666;
}

body.dark-mode .product-card .btn-agregar {
  background-color: #28a745;
  color: white;
  border: none;
}

body.dark-mode .product-card .btn-agregar:hover {
  background-color: #218838;
}

body.dark-mode .product-card .btn-secondary {
  background-color: #444;
  color: #ddd;
  border: none;
}

body.dark-mode .product-card .btn-secondary:disabled {
  opacity: 0.6;
}

.precio-original {
  text-decoration: line-through;
  color: #888;
  font-size: 14px;
}

.precio-promocional {
  color: #28a745;
  font-size: 20px;
  font-weight: bold;
  display: block;
  margin-top: 4px;
}

.badge-promo {
  background-color: #ff5722;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
  display: inline-block;
}

      
@media (max-width: 768px) {
      .promo-info span {
        font-size: 13px !important;
      }
      .promo-info .precio-original {
        font-size: 13px !important;
      }
      .promo-info .precio-promocional {
        font-size: 16px !important;
      }
      .promo-info small {
        font-size: 12px !important;
    }
}

/* Ajustes especiales para las promos en modo oscuro */
body.dark-mode .promo-info {
  background-color: #2a2a2a; /* Un fondo gris oscuro suave */
  padding: 6px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
  margin-top: 6px;
}

body.dark-mode .promo-info small,
body.dark-mode .promo-info strong {
  color: #ffffff !important; /* Color blanco para mejor visibilidad */
}

body.dark-mode .promo-info .text-muted {
  color: #bbbbbb !important; /* Gris claro para el vencimiento */
}

body.dark-mode .promo-info .badge.bg-success {
  background-color: #28a745 !important; /* Verde normal */
  color: white !important;
}

/* Efecto Fade In suave para las Cards */
.product-card.fade-in {
  opacity: 0;
  transform: translateY(20px); /* se mueve más */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.show {
  opacity: 1;
  transform: translateY(0);
}

  .logo-deformable {
    height: 150px; /* Puedes ajustar aquí a 90px, 80px, 110px, lo que quieras */
    width: 100%;
    object-fit: fill; /* Se deforma para ocupar todo el ancho y altura */
  }

  @media (max-width: 768px) {
    .logo-deformable {
      height: 70px; /* Más bajito en celulares */
    }
  }
      
@media (max-width: 768px) {
  #btn-abrir-menu {
    display: block;
  }
}
@media (min-width: 769px) {
  #btn-abrir-menu {
    display: none;
  }
}

#popupModal .btn-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#modalDatosCliente .modal-content {
  background: linear-gradient(165deg, #050505 0%, #0c0c0c 60%, #121212 100%);
  color: #f4f6f8;
  border: 1px solid #2b2b2b;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

#modalDatosCliente .modal-header {
  border-bottom: 1px solid #2a2a2a;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.22);
}

#modalDatosCliente .modal-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

#modalDatosCliente .modal-body {
  padding: 20px 24px 24px;
}

#modalDatosCliente .form-label {
  font-weight: 600;
  margin-bottom: 8px;
}

#modalDatosCliente .form-control,
#modalDatosCliente .form-select {
  min-height: 50px;
  border-radius: 13px;
  border: 1px solid #3a3a3a;
  background: #ffffff;
  color: #1f1f1f;
  box-shadow: none;
}

#modalDatosCliente .form-control:focus,
#modalDatosCliente .form-select:focus {
  border-color: #19a85f;
  box-shadow: 0 0 0 0.2rem rgba(25, 168, 95, 0.18);
}

#modalDatosCliente textarea.form-control {
  min-height: 88px;
}

#modalDatosCliente .btn-close {
  filter: invert(1);
}

#modalDatosCliente .input-group .btn {
  border-radius: 0 13px 13px 0;
}

#modalDatosCliente .input-group .form-control {
  border-radius: 13px 0 0 13px;
}

#modalDatosCliente .campo-feedback {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.25;
}

#modalDatosCliente .campo-feedback.ok {
  color: #29c774;
}

#modalDatosCliente .campo-feedback.error {
  color: #ff6b6b;
}

#modalDatosCliente .form-control.is-valid,
#modalDatosCliente .form-select.is-valid {
  border-color: #23bd6d;
  box-shadow: 0 0 0 0.18rem rgba(35, 189, 109, 0.18);
}

#modalDatosCliente .form-control.is-invalid,
#modalDatosCliente .form-select.is-invalid {
  border-color: #ff5f64;
  box-shadow: 0 0 0 0.18rem rgba(255, 95, 100, 0.18);
}

body.dark-mode #modalDatosCliente .modal-content {
  background: linear-gradient(165deg, #0b0b0b 0%, #121212 70%, #181818 100%);
  color: #ffffff;
  border: 1px solid #353535;
}

@media (min-width: 992px) {
  #modalDatosCliente .modal-dialog {
    max-width: 760px;
  }

  #modalDatosCliente .modal-body {
    padding: 24px 30px 28px;
  }
}

@media (max-width: 767.98px) {
  #modalDatosCliente .modal-content {
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  #modalDatosCliente .modal-header {
    padding: 16px 16px 14px;
  }

  #modalDatosCliente .modal-body {
    padding: 14px 16px 18px;
  }

  #modalDatosCliente .form-control,
  #modalDatosCliente .form-select {
    min-height: 48px;
  }
}

@media (min-width: 769px) {
  #dropdownCategorias .dropdown-toggle {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #dropdownCategorias {
    flex-shrink: 0;
  }

  #orden-select {
    max-width: 200px;
    flex-shrink: 0;
  }
}

@media (min-width: 769px) {
  #listaCategorias {
    max-width: 35vw;
    min-width: 150px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 1px solid #ddd;
  }

  #listaCategorias li {
    margin-bottom: 4px;
  }

  #listaCategorias li:last-child {
    margin-bottom: 0;
  }

  #listaCategorias .d-flex > a {
    flex-grow: 1;
  }
}

#bloque-categoria[style*="display: none"] {
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fade-in {
  animation: fadeInCategoria 0.4s ease;
}

@keyframes fadeInCategoria {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card .nombre {
  font-size: 13px;
  word-break: break-word;
  hyphens: auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Máximo 3 líneas */
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  min-height: 3.6em; /* altura para 3 líneas aprox */
}
@media (max-width: 576px) {
  .product-card .nombre {
    font-size: 11px;
    /*-webkit-line-clamp: 2; /* Limita a 2 líneas en móviles */
    /*min-height: 2.4em;      /* Ajuste de altura aprox para 2 líneas */
    -webkit-line-clamp: 3; /* Máximo 3 líneas */
    min-height: 3.6em; /* altura para 3 líneas aprox */
  }
}

.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
}

@media (min-width: 769px) {
  .mobile-header {
    display: none !important;
  }
}

#btn-abrir-menu {
  display: none !important;
}

#boton-menu-movil {
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#boton-menu-movil:focus,
#boton-menu-movil:active,
#boton-menu-movil:focus-visible {
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

body.dark-mode #btn-menu-movil {
  background-color: #fff;       /* Fondo blanco */
  border: 1px solid #ccc;       /* Borde sutil */
  color: #000;                  /* Icono oscuro */
  border-radius: 8px;
  padding: 10px 14px;
}

body.dark-mode .modal .bg-light {
  background-color: #2c2c2c !important; /* fondo más oscuro */
  color: #fff !important;              /* texto claro */
  border: 1px solid #444;
}

body.dark-mode .modal .text-success {
  color: #6fdc8c !important; /* verde claro */
}

body.dark-mode .modal .text-danger {
  color: #ff8787 !important; /* rojo claro */
}

body.dark-mode .modal .fw-bold {
  color: #ddd !important; /* texto destacado */
}

@media (max-width: 768px) {
  #toggle-carrito-btn {
    display: none !important;
  }
}

#btn-menu-movil {
  padding: 12px 16px;
  font-size: 22px;
  border-radius: 8px;
}

#btn-carrito-movil {
  padding: 20px 24px;
  font-size: 24px;
  border-radius: 0px;
  position: relative;

}

.btn-eliminar-producto {
  background: none;
  border: none;
  color: black;
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  cursor: pointer;
}

.btn-eliminar-producto:hover {
  color: red;
  transform: scale(1.4);
}

.footer-redes {
  background-color: #f8f9fa;
  color: #333;
  font-size: 14px;
  border-top: 1px solid #ddd;
}

.footer-redes .redes-icons a {
  margin: 0 10px;
  font-size: 22px;
  color: #333;
  transition: transform 0.2s, color 0.2s;
}

.footer-redes .redes-icons a:hover {
  color: #007bff;
  transform: scale(1.2);
}

/* 🌓 Modo oscuro */
body.dark-mode .footer-redes {
  background-color: #222;
  color: #ccc;
}

body.dark-mode .footer-redes .redes-icons a {
  color: #ccc;
}

.buscador-minimalista {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.buscador-minimalista input[type="search"],
.buscador-minimalista input[type="text"] {
  border: none;
  padding: 0.75rem 1rem;
  font-size: 16px;
}

.buscador-minimalista .btn-search {
  background-color: white;
  border: none;
  padding: 0 1rem;
  font-size: 18px;
  color: #666;
  transition: background 0.2s ease;
}


.buscador-minimalista .btn-search:hover {
  background-color: #f5f5f5;
  color: #000;
}

body.dark-mode .buscador-minimalista input[type="search"],
body.dark-mode .buscador-minimalista input[type="text"],
body.dark-mode .buscador-minimalista .btn-search {
  background-color: white;
  color: #666;
  
}

  .popup-imagen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .popup-contenido {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
  }

  .popup-contenido img {
    width: 100%;
    height: auto;
    display: block;
  }

  .cerrar-popup {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 24px;
    font-weight: bold;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    line-height: 1;
  }
    


#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

#loading-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

#loading-overlay.d-none {
  opacity: 0;
  pointer-events: none;
}


#btn-whatsapp-opciones {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

#toggle-wsp {
  background-color: #25D366;
  color: white;
  font-size: 24px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#wsp-opciones {
  display: flex;
  flex-direction: column;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#wsp-opciones a {
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

#wsp-opciones a:last-child {
  border-bottom: none;
}

#wsp-opciones a:hover {
  background-color: #f5f5f5;
}

#wsp-opciones.d-none {
  display: none !important;
}

.badge-top10-img {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  width: 45px !important;
  height: 45px !important;
  z-index: 10;
  pointer-events: none;
  object-fit: contain;
}
@media (max-width: 769px) {
  .badge-top10-img {
    width: 35px !important;
   height: 35px !important;
  }
}

body.dark-mode .badge-top10-img {
  filter: brightness(1.1);
}
    
#botones-filtro .btn,
#contenedor-botones .btn {
  background-color: #ffffff !important;
  color: #000 !important;
  border: 1px solid #ccc !important;
  border-radius: 1px !important;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

#botones-filtro .btn:hover,
#contenedor-botones .btn:hover {
  background-color: #f0f0f0 !important;
}

@media (min-width: 768px) {
  .container {
    max-width: 90% !important;
  }
}

.cupon-popup {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1055;
  background: rgba(0,0,0,0.5);
  padding: 1rem;
  border-radius: 10px;
}


@media (max-width: 768px) {
  #zona-iconos-movil {
    padding-right: 5px;
  }

  #icono-usuario-movil {
    font-size: 28px;
    padding: 6px 10px;
    margin-right: 4px;
    display: flex;
    align-items: center;
  }
    
  #icono-usuario-escritorio {
    display: none !important;
  }
}



#banner-fijo img {

    
  width: 100%;
  height: auto;
  max-height: 250px;
  
}



.share-link {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  background: rgba(255,255,255,0.9);
  padding: 4px;
  
  z-index: 10;
  
  line-height: 1;
}

.share-link i {
  font-size: 20px;
  color: #bfbfbf;
}

@media (max-width: 768px) {
  .share-link {
    top: 2px !important;
    left: 2px !important;
    padding: 0px;
    font-size: 14px;
  }
    
  
}



/* Ajustes móviles */
@media (max-width: 768px) {
  #carouselBanner {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #carouselBanner img {
    max-height: 68px;
    object-fit: contain;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  #carousel-banner-indicators button {
    width: 5px !important;
    height: 5px !important;
  }
}

#carousel-banner-indicators {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 10px;
  justify-content: center;
}

#carousel-banner-indicators button {
  background-color: #000 !important;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 4px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  border: none;
}

#carousel-banner-indicators button.active {
  opacity: 1;
}

#carouselBanner img {
  max-height: 310px;
 object-fit: contain;
  width: 100%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 100% 100%;
  filter: brightness(0.2); /* flechas oscuras */
}

/* Ajustes móviles */
@media (max-width: 768px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
      display: none;
    }   
}
.popup-imagen {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-contenido {
  position: relative;
  width: 100%;
  max-width: 500px; /* máximo ancho visible en escritorio */
  max-height: 90vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.popup-contenido img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0 0 10px 10px;
}

.cerrar-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.flecha-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-left: 6px;
  padding: 4px;
}

/* ✅ ESTADO POR DEFECTO (FLECHA A LA DERECHA) */
.flecha-toggle svg {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

/* ✅ FLECHA HACIA ABAJO cuando se expande */
.flecha-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}




.categoria-item {
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.categoria-item {
  position: relative;
}

.categoria-item:hover {
  background-color: transparent;
  color: #000;
}

.categoria-item::after {
  content: none;
}

.categoria-item:hover::after {
  width: 0;
}

#menuCategoriasLateral .categoria-item:hover a {
  font-weight: 600;
}

#menuCategoriasLateral .categoria-item:hover a.active {
  font-weight: 700;
}

/* 📱 Versión para móviles: flecha más grande */
@media (max-width: 576px) {
  .flecha-toggle svg {
    width: 22px;
    height: 22px;
    stroke-width: 3.5;
  }
}

@media (min-width: 768px) {
  #dropdownCategorias .dropdown-menu {
    max-width: 360px;
    width: 100%;
  }
}

.btn-icono-ayuda {
    width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(200, 200, 200, 0.5); /* gris suave */
  position: fixed;
  bottom: 90px;
  right: 5px;
  z-index: 1055;
  /*background: none;*/
  border: none;
  color: black;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-icono-ayuda:hover {
  transform: scale(1.2);
  color: #333;
}




/* En escritorio, subilo más para evitar el carrito */
@media (min-width: 768px) {
  .btn-icono-ayuda {
    bottom: 170px; /* Más alto en desktop */
    right: 20px;
    font-size: 40px;
    width: 60px;
    height: 60px;
  }
}

.categoria-scroll-wrapper {
  position: relative;
}

.categoria-scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
}

.categoria-scroll-row {
  display: flex;
  gap: 20px;
  padding: 10px 0;
}

.categoria-card {
  flex: 0 0 auto;
  width: 200px;
  text-align: center;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.categoria-card:hover {
  transform: translateY(-4px);
    cursor: pointer;
}

.categoria-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
}

.categoria-card .titulo {
  margin-top: 10px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  text-decoration: none !important;
}

.scroll-btn {
  position: absolute;
  top: 35%;
  z-index: 10;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 32px;
  font-weight: bold;
  width: 40px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border-radius: 8px;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

#favoritos-icono-flotante {
  padding: 2px;
  font-size: 10px;
}

#favoritos-icono-flotante i:hover {
  filter: brightness(1.2);
}
#favoritos-icono-flotante i{
    font-size: 20px;
}


#contador-fav-movil, #carrito-contador-header {
  font-size: 10px;
  line-height: 1;
}

#busqueda-toggleada {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1051;
  background: white;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Color del ícono de búsqueda en modo oscuro */
body.dark-mode #btn-toggle-busqueda i{
  color: black !important;
}

@media (max-width: 768px) {
  #dropdownCategorias .dropdown-toggle {
    font-size: 16px;
    padding: 12px;
  }

  #listaCategoriasDesktop {
    font-size: 15px;
    max-height: 250px;
    overflow-y: auto;
  }
}

#bloque-categorias-movil {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.categoria-header-movil {
  font-weight: 600;
  font-size: 25px;
  padding: 10px 12px;
  border-bottom: 1px solid #ccc;
  background-color: #f8f9fa;
  color: #333;
}

.lista-categorias-movil .list-group-item {
  border: none;
  padding: 10px 14px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #333;
  transition: background-color 0.2s ease;
}

.lista-categorias-movil .list-group-item:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

.lista-categorias-movil .list-group-item i {
  margin-right: 15px;
}

#listaCategoriasMobile {
  list-style: none;          /* ❌ oculta los puntos */
  padding-left: 0;           /* ❌ elimina indentación */
  margin: 0;
}

#listaCategoriasMobile li {
  border-bottom: 1px solid #eee;
  padding: 10px 14px;
  font-size: 16px;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

@media (max-width: 768px) {
  #menuLateral.offcanvas-start {
    width: 85vw !important; /* 75% del ancho de la ventana */
    max-width: 85vw !important;
  }
}


#navCategorias li {
  position: relative;
  margin-right: 10px;
}


#navCategorias li:hover > ul.submenu-horizontal {
  display: block;
}

#navCategorias li ul.submenu-horizontal li a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
}

#navCategorias li ul.submenu-horizontal li a:hover {
  background-color: #f1f1f1;
}

/* Submenú moderno */
#navCategorias li ul.submenu-horizontal {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 999;
  transition: all 0.2s ease;
}

#navCategorias li:hover > ul.submenu-horizontal {
  display: block;
}

/* Ítems del submenú */
#navCategorias li ul.submenu-horizontal li {
  padding: 0;
}

#navCategorias li ul.submenu-horizontal li a {
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

#navCategorias li ul.submenu-horizontal li a:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

/* Flechita visual solo si querés */
#navCategorias li.con-submenu > a::after {
  content: "▾";
  font-size: 14px;
  margin-left: 6px;
  color: white;
}

#navCategorias > li > a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 18px;
  font-weight: 500;
  color: white;
  text-decoration: none;
  background-color: transparent;
  border: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

#navCategorias > li > a:hover {
  
  color: #d8d4d4;

}

/* Categoría activa */
#navCategorias > li > a.active {
  
  color: #d8d4d4;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2);
}


#menuHorizontalCategorias {
  background: #198754; /* ✅ Fondo distinto, moderno */
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 12px 20px;
  box-shadow: inset 0 -1px 0 #e0e0e0;
  z-index: 99;
  position: relative;
}

#menuHorizontalCategorias {
  background-color: #198754;
  border-top: none;
  border-bottom: none;
  padding: 12px 20px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
  margin-top: 0px;
}




.nav-scroll-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
}

.nav-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

#navCategorias > li {
  position: relative; /* mantiene posicionamiento para submenu */
  flex: 0 0 auto;
}


#titulo-categoria a.breadcrumb-categoria {
  color: #0d6efd;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

#titulo-categoria a.breadcrumb-categoria:hover {
  text-decoration: underline;
  color: #0a58ca;
}

#titulo-categoria {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}



#menuCategoriasLateral a {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  color: #333;
  font-size: 15px;
  transition: background 0.2s;
}



#menuCategoriasLateral a {
  display: block;
  padding: 6px 12px;
  font-size: 15px;
  color: #212529;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  margin-bottom: 2px;
}


#menuCategoriasLateral ul {
  padding-left: 0;
  margin-bottom: 0;
}

#menuCategoriasLateral li {
  list-style: none;
}

#menuCategoriasLateral .categoria-item {
  padding: 4px 0;
}

#menuCategoriasLateral .ps-1 {
  padding-left: 0.75rem !important;
}
#menuCategoriasLateral .ps-2 {
  padding-left: 1.25rem !important;
}
#menuCategoriasLateral .ps-3 {
  padding-left: 1.75rem !important;
}

#menuCategoriasLateralContainer {
  padding-top: 20px;
}

#menuCategoriasLateral {
  overflow-y: visible !important;
  max-height: none !important;
}

#menuCategoriasLateral a {
  display: block;
  padding: 6px 12px;
  font-size: 15px;
  color: #212529;
  border-radius: 4px;
  margin-bottom: 2px;
  transition: background-color 0.2s ease;
}



#menuCategoriasLateral ul {
  padding-left: 0;
  margin-bottom: 0;
}

#menuCategoriasLateral li {
  list-style: none;
}

#menuCategoriasLateralContainer {
  padding-top: 5px;
  /*background-color: white;*/
  max-height: calc(100vh - 145px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, .28) transparent;
}

#menuCategoriasLateral {
  overflow: visible !important;
  max-height: none !important;
}

#menuCategoriasLateralContainer::-webkit-scrollbar {
  width: 6px;
}

#menuCategoriasLateralContainer::-webkit-scrollbar-track {
  background: transparent;
}

#menuCategoriasLateralContainer::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .24);
  border-radius: 999px;
}

#menuCategoriasLateral a {
  display: block;
  padding: 6px 12px;
  font-size: 15px;
  color: #212529;
  border-radius: 4px;
  margin-bottom: 2px;
  transition: background-color 0.2s ease;
}




#menuCategoriasLateral a.active {
  background: transparent !important;
  color: #f7b500 !important;
  font-weight: 700;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.precio-filter-panel {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 14px;
  color: #212529;
}

.precio-filter-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.precio-preset {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  color: #212529;
  text-align: left;
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.25;
  transition: font-weight .15s ease, color .15s ease, background .15s ease;
}

.precio-preset:hover {
  font-weight: 600;
  background: #f8f9fa;
}

.precio-preset.active {
  color: #f7b500;
  font-weight: 700;
  background: transparent;
}

.precio-custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eceff3;
}

.precio-custom-row input {
  min-width: 0;
  width: 100%;
  flex: 1 1 0;
  height: 42px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 14px;
  outline: none;
}

.precio-custom-row input:focus {
  border-color: #111;
}

.precio-separador {
  color: #6c757d;
  font-weight: 600;
}

.precio-aplicar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease;
}

@media (max-width: 768px) {
  .precio-custom-row {
    gap: 12px;
  }

  .precio-custom-row input {
    flex-basis: 118px;
    height: 46px;
    font-size: 16px;
  }

  .precio-aplicar {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }
}

.precio-aplicar:hover {
  background: #f7b500;
  transform: translateY(-1px);
}

.filtro-precio-activo {
  gap: 12px;
  color: #5f6368;
  font-weight: 600;
  font-size: 15px;
}

.btn-quitar-filtro-precio {
  border: 0;
  background: transparent;
  color: #212529;
  font-weight: 700;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-quitar-filtro-precio:hover {
  color: #f7b500;
}

@media (min-width: 768px) {
  .precio-filter-panel-mobile {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .precio-filter-panel-desktop {
    display: none;
  }

  .precio-filter-panel-mobile {
    margin-top: 10px;
    border-radius: 14px;
  }
}

#menuHorizontalCategorias {
  scrollbar-width: thin;
  scrollbar-color: #999 transparent;
}

#menuHorizontalCategorias::-webkit-scrollbar {
  height: 6px;
}

#menuHorizontalCategorias::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 4px;
}


#menuHorizontalCategorias {
  background-color: #198754;
  padding: 12px 20px;
  position: relative;
}

.nav-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

.nav-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

#navCategorias {
  display: flex;
  flex-wrap: nowrap !important;
  gap: clamp(6px, 1.1vw, 16px);
  width: 100%;
  justify-content: center;
  align-items: center;
}

#navCategorias > li {
  flex: 0 0 auto;
  position: relative;
}

#navCategorias > li > a {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, .45vw, 7px);
  padding: 10px clamp(7px, .8vw, 14px);
  font-size: clamp(12px, .92vw, 16px);
  font-weight: 500;
  color: white;
  background-color: transparent;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#menuHorizontalCategorias #navCategorias {
  overflow: visible;
}

@media (max-width: 1200px) {
  #navCategorias {
    gap: 6px;
  }

  #navCategorias > li > a {
    padding-inline: 6px;
    font-size: 11px;
  }

  #navCategorias li.con-submenu > a::after {
    margin-left: 2px;
    font-size: 10px;
  }
}

#navCategorias > li > a:hover {
  color: #d8d4d4;
}

#navCategorias > li > a.active {
  color: #fff;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

#navCategorias li ul.submenu-horizontal {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background-color: #fff;
  padding: 8px 0;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}

#navCategorias li:hover > ul.submenu-horizontal {
  display: block;
}

#navCategorias li ul.submenu-horizontal li a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
}

#navCategorias li ul.submenu-horizontal li a:hover {
  background-color: #f1f1f1;
  color: #0d6efd;
}

#navCategorias li.con-submenu > a::after {
  content: " ▾";
  font-size: 14px;
  margin-left: 4px;
  color: white;
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

.cards-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cards-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cards-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.btn-vista i {
  font-size: 16px;
}

.btn-vista.active {
  background-color: #0d6efd;
  color: white;
}

  @media (max-width: 768px) {
    #cards-grid.cards-cols-1 {
      grid-template-columns: 1fr !important;
    }

    #cards-grid.cards-cols-2,
    #cards-grid.cards-cols-3,
    #cards-grid.cards-cols-4 {
      grid-template-columns: repeat(2, 1fr) !important;
    }

    #orden-select {
      width: 100% !important;
    }

    .d-none.d-md-flex .btn-vista,
    .btn-vista + i,
    .btn-vista + span {
      display: none !important;
    }
  }

@media (max-width: 768px) {
  .vista-mobile-selector .btn-vista {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
  }
}

body.dark-mode #menuCategoriasLateralContainer {
  background-color: #1c1c1c; /* fondo más oscuro */
  border-right: 1px solid #444;
}

body.dark-mode #menuCategoriasLateral a {
  color: #f1f1f1;
}

body.dark-mode #menuCategoriasLateral a:hover {
  background: transparent !important;
  color: #fff;
  font-weight: 600;
}

body.dark-mode #menuCategoriasLateral a.active {
  background: transparent !important;
  color: #f7b500 !important;
  font-weight: 700;
  box-shadow: none !important;
}

body.dark-mode .precio-filter-panel {
  background: #1f1f1f;
  border-color: #3a3a3a;
  color: #f1f1f1;
}

body.dark-mode .precio-preset {
  color: #f1f1f1;
}

body.dark-mode .precio-preset:hover {
  background: #2a2a2a;
}

body.dark-mode .precio-preset.active {
  color: #f7b500;
  background: transparent;
}

body.dark-mode .precio-custom-row {
  border-top-color: #3a3a3a;
}

body.dark-mode .precio-custom-row input {
  background: #151515;
  border-color: #444;
  color: #fff;
}

body.dark-mode .precio-aplicar {
  background: #f7b500;
  color: #111;
}

body.dark-mode .filtro-precio-activo {
  color: #d7d7d7;
}

body.dark-mode .btn-quitar-filtro-precio {
  color: #f1f1f1;
}

body.dark-mode #menuCategoriasLateralContainer {
  scrollbar-color: rgba(255, 255, 255, .32) transparent;
}

body.dark-mode #menuCategoriasLateralContainer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .28);
}

body.dark-mode a.text-dark {
  color: #f1f1f1 !important;
}


.buscador-minimalista input[type="search"],
.buscador-minimalista input[type="text"],
.buscador-minimalista .btn-search {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent !important;
}

.buscador-minimalista:focus-within {
  box-shadow: 0 0 0 2px #28a745 inset !important;
  border-radius: 12px;
}


#live-results {
  z-index: 1055;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  max-height: 70vh !important;
  overflow-y: auto;
}
#live-results .list-group-item {
  transition: background-color 0.2s ease;
}

#live-results .list-group-item:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

body.dark-mode #live-results .list-group-item:hover {
  background-color: #2c2c2c;
}

#live-results-mobile {
  z-index: 1055;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  max-height: 70vh !important;
  overflow-y: auto;
}
#live-results-mobile .list-group-item {
  transition: background-color 0.2s ease;
}

#live-results-mobile .list-group-item:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

.live-search-item {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #eceff3;
}

.live-search-thumb {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 10px;
  background: #f6f7f9;
}

.live-search-title {
  white-space: normal;
  color: #1f2328;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 2px;
}

.live-search-price {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  line-height: 1.1;
}

.live-search-stock {
  font-size: 12px;
  color: #5c6670;
  margin-top: 1px;
}

.live-add-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.14);
  transition: background-color .16s ease, box-shadow .16s ease, transform .12s ease;
}

.live-add-btn:hover {
  background: #1d2126;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  transform: translateY(-1px);
  color: #fff;
}

.live-add-btn-added {
  background: #0d6efd;
}

.live-notify-btn {
  white-space: nowrap;
  font-weight: 600;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .live-search-price {
    font-size: 15px;
  }

  .live-search-thumb {
    width: 52px;
    height: 52px;
  }
}

body.dark-mode #live-results-mobile .list-group-item:hover {
  background-color: #2c2c2c;
}

#live-results-mobile {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  top: 100%;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


.cupon-burbuja {
  position: absolute;
  top: -25px; /* ⬅️ antes estaba -38px */
  right:5px;
  background: #ff4757;
  color: white;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 10;
  white-space: nowrap;
  animation: reboteCupon 0.4s ease-in-out;
}

.cupon-burbuja::after {
  content: "";
  position: absolute;
  top: 100%; /* ⬅️ flecha justo debajo */
  left: 20px;
  margin-left: -5px;
  border-width: 6px;
  border-style: solid;
  border-color: #ff4757 transparent transparent transparent;
}

@media (max-width: 576px) {
  .cupon-burbuja {
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 16px;
    top: 4px;
    margin-left: 6px;
  }

  .cupon-burbuja::after {
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent #ff4757 transparent transparent;
  }
}


/* Opcional: animación suave */
@keyframes reboteCupon {
  0%   { transform: translateY(-10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 576px) {
  .product-card .text-muted.small {
    font-size: 12px !important;
    white-space: nowrap; /* evita el salto de línea */
  }

  .product-card input[type="number"] {
    font-size: 13px;
    max-width: 50px;
    padding: 2px 4px;
  }
}


.imagen-wrapper {
  position: relative;
  display: block;
  text-align: center;
}

.img-producto {
  max-height: 180px;
  width: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.imagen-wrapper.sin-stock .img-producto {
  filter: grayscale(100%) brightness(75%);
}

.imagen-wrapper.tiene-imagen-secundaria {
  position: relative;
}

.imagen-wrapper.tiene-imagen-secundaria .img-producto-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .42s ease-in-out;
}

.imagen-wrapper.tiene-imagen-secundaria .img-producto-main {
  opacity: 1;
  transition: opacity .42s ease-in-out;
}

@media (min-width: 769px) {
  .imagen-wrapper.tiene-imagen-secundaria:hover .img-producto-main {
    opacity: 0;
  }

  .imagen-wrapper.tiene-imagen-secundaria:hover .img-producto-secondary {
    opacity: 1;
  }
}

.overlay-agotado {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*background-color: rgba(0, 0, 0, 0.5); /* oscurecido */
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.votar-estrellas i {
  color: #ccc;
}
.votar-estrellas i:hover,
.votar-estrellas i:hover ~ i {
  color: #ffcc00;
}

.estrellas-interactivas i {
  transition: color 0.2s;
}

.estrellas-interactivas i:hover {
  color: #ffc107; /* dorado fuerte */
}


/* Oculta la columna Cantidad (posición 7 en tabla, es la columna 7 si empieza desde 1) */
th.col-cantidad,
td:nth-child(7) {
  display: none !important;
}

/* Clase para ocultar el menú lateral sin conflictos con Bootstrap */
.ocultar {
  display: none !important;
}

body.dark-mode .offcanvas-body {
  background-color: #1e1e1e; /* Fondo oscuro */
  color: #f0f0f0; /* Texto claro */
}

body.dark-mode .offcanvas-body .categoria-header-movil {
  color: #ffffff;
  border-bottom: 1px solid #555;
}

body.dark-mode .lista-categorias-movil li,
body.dark-mode .lista-categorias-movil a {
  color: #ffffff !important;
}

body.dark-mode .lista-categorias-movil li:hover {
  background-color: #333;
}
body.dark-mode .offcanvas {
  background-color: #1c1c1c;
}

body.dark-mode .categoria-header-movil {
  background-color: #292929;
  color: #ffffff;
  font-weight: 600;
  padding: 10px 15px;
  border-bottom: 1px solid #444;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

body.dark-mode .flecha-toggle svg * {
  fill: #ffffff !important;
}

.popup-carrusel-flotante {
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 480px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 12px;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  overflow: hidden;
}

.popup-carrusel-header {
  background: rgba(0, 0, 0, 0.0);
  color: black;
  padding: 0px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#btn-cerrar-popup-carrusel{
    color: black;
    font-size: 30px;
}
.cerrar-carrusel {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.popup-carrusel-wrapper {
  position: relative;
  overflow: hidden;
}

.popup-carrusel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.popup-carrusel-track img {
  width: 100%;
  flex-shrink: 0;
  cursor: pointer;
}

.popup-carrusel-prev,
.popup-carrusel-next {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.0);
  color: black;
  border: none;
  font-size: 50px;
  padding: 0 12px;
  cursor: pointer;
  z-index: 10;
}

.popup-carrusel-prev { left: 0; }
.popup-carrusel-next { right: 0; }


@media (max-width: 480px) {
  .popup-carrusel-flotante {
    top: 20%;
    width: 100%;
    max-width: 95%;
    z-index: 10010; /* mayor que el botón toggle */
  }
}

#btn-toggle-novedades {
  position: fixed;
  bottom: 310px; /* justo arriba del botón del video */
  right: 19px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.0);
  color: black;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  transition: transform 0.2s ease;
}

#btn-toggle-novedades:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  #btn-toggle-novedades {
      bottom: 150px; /* justo arriba del botón del video */
      right: 5px;
      font-size: 12px;
      font-weight: normal;
      width: 50px;
      height: 50px;
    }
}

@keyframes boton-popup-atencion {
  0%, 100% {
    transform: scale(1);
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: none;
  }
  50% {
    transform: scale(1.25);
    background-color: #ffc107; /* amarillo tipo "llamado de atención" */
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
  }
}

.boton-atencion {
  animation: boton-popup-atencion 0.7s ease;
}

.puntos-carrusel {
  text-align: center;
  padding: 8px 0;
  background: #f8f9fa;
}

.punto-carrusel {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: #ccc;
  border-radius: 50%;
  transition: background 0.3s;
}

#popupCarruselContenido.loading {
  visibility: hidden;
}

#popupCarruselContenido img {
  width: 100%;
  flex-shrink: 0;
}

.nav-tabs {
  border-bottom: none !important; /* 🔧 quitamos la línea base de Bootstrap */
}

.nav-tabs .nav-link {
  border: none !important;
  padding: 15px 15px;
  border-bottom: 3px solid transparent !important; /* Sin subrayado por defecto */
  font-weight: 500;
  color: #555;
  padding-bottom: 10px;
  background-color: rgba(0, 0, 0, 0.03);
  transition: border-bottom 0.3s ease, color 0.3s ease;
}

.nav-tabs .nav-link.active {
  border-bottom: 3px solid #dc3545 !important; /* ✅ solo el activo tiene subrayado */
  color: #000;
  font-weight: bold;
    background-color: rgba(0, 0, 0, 0.08);
}

/* Estilos tabs en modo oscuro */
body.dark-mode .nav-tabs {
  border-bottom: none !important;
  background-color: #1e1e1e;
}

body.dark-mode .nav-tabs .nav-link {
  color: #ccc !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  background-color: transparent !important;
}

body.dark-mode .nav-tabs .nav-link.active {
  color: #fff !important;
  border-bottom: 3px solid #28a745 !important; /* ✅ línea verde para destacar */
  font-weight: bold;
}

/* Vista 2 columnas: imagen más grande */
.cards-cols-2 .product-card img {
  height: 280px !important;
  max-height: 280px;
}
.cards-cols-2 .product-card .nombre {
    font-size: 20px;
    line-height: 1.4;
    min-height: 4.2em;
}

/* Vista 3 columnas: imagen mediana */
.cards-cols-3 .product-card img {
  height: 200px !important;
  max-height: 200px;
}
.cards-cols-3 .product-card .nombre {
    font-size: 18px;
    line-height: 1.4;
    min-height: 3.6em;
}


.product-card.animar-entrada {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-card.animar-entrada.mostrar {
  opacity: 1;
  transform: translateY(0);
}

/* modal por encima de TODO */
.modal { z-index: 999999 !important; }
/* backdrop debajo del modal pero sobre el resto */
.modal-backdrop.show { z-index: 999998 !important; }


/* Leyenda de dólar en móvil: compacta y discreta */
.leyenda-dolar-mobile {
  padding: 2px 0 0;       /* casi sin alto */
  margin: 0;
  line-height: 1;
}
.leyenda-dolar-mobile span {
  display: inline-block;
  font-size: 10px;        /* más chica */
  color: #198754;         /* verde (equivale a text-success) */
  white-space: nowrap;    /* siempre en una sola línea */
}

/* Leyenda dólar (desktop) súper compacta */
.leyenda-dolar-desktop{
  margin: 0;             /* sin márgenes extras */
  padding: 2px 0 0;      /* casi sin alto */
  line-height: 1;
}
.leyenda-dolar-desktop span{
  display: inline-block;
  font-size: 12px;       /* más chica (ajustá a gusto: 11–13px) */
  color: #198754;        /* verde Bootstrap "text-success" */
  white-space: nowrap;   /* una sola línea */
}

/* Fuerza que el Swal se muestre siempre encima de cualquier modal */
.swal2-container {
  z-index: 9999999 !important;
}

.swal2-popup {
  z-index: 9999999 !important;
}




#btn-newsletter-flotante {
  position: fixed;
  right: 20px;
  bottom: 240px; /* ajustalo si querés subirlo o bajarlo */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #222;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

#btn-newsletter-flotante:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

body.dark-mode #btn-newsletter-flotante {
  background: #2b2b2b;
  color: #fff;
}

@media (max-width: 768px) {
  #btn-newsletter-flotante {
    width: 55px;
    height: 55px;
    font-size: 22px;
    right: 2px;
    bottom: 210px;
  }
}

/* ===== AJUSTE FINAL DE SEPARACION ENTRE CARDS ===== */
/* ===== CARDS MAS JUNTAS TODAVIA ===== */
#cards-grid {
  gap: 4px !important;
}

.product-card {
  margin: 0 !important;
}

@media (max-width: 768px) {
  #cards-container {
    margin-top: 4px !important;
  }

  #cards-grid {
    gap: 2px !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .product-card {
    padding: 7px !important;
  }
}

/* ===== COMPACTAR ESPACIO INTERNO ENTRE DESCRIPCION / PRECIO / STOCK ===== */

.product-card .nombre {
  margin-bottom: 2px !important;
  min-height: auto !important;
}



.product-card .d-flex.align-items-center.justify-content-center.gap-2.mt-2.w-100 {
  margin-top: 2px !important;
  gap: 6px !important;
}



/* BOTON AGREGAR NEGRO */
.product-card .btn-success {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.product-card .btn-success:hover {
  background-color: #222 !important;
  border-color: #222 !important;
}



/* MENU CATEGORIAS FONDO NEGRO */
#menuHorizontalCategorias {
  background-color: #000 !important;
}

/* PRECIO EN MODO OSCURO */
body.dark-mode .product-card .precio {
  color: #fff !important;
  font-weight: 700;
}

/* BOTON AGREGAR - MODO OSCURO */
body.dark-mode .product-card .btn-success {
  background-color: transparent !important;
  border: 1px solid #555 !important;
  color: #fff !important;
}

body.dark-mode .product-card .btn-success:hover {
  background-color: #333 !important;
}


.product-card {
  transition: all 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.product-card img {
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}

.product-card .btn-success {
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.btn-favorito {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
}

.product-card {
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* CONTENEDOR DE IMAGEN */
.product-card .img-container {
  overflow: hidden;
  border-radius: 8px;
}

/* IMAGEN */

.product-card img {
  transition: transform 0.35s ease;
}


.product-card:hover img {
  transform: scale(1.15);
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .product-card:hover img {
    transform: scale(1.04);
  }
}

/* =========================================================
   MODAL DETALLE PRODUCTO NUEVO
   ========================================================= */

#modalCaracteristicas .modal-dialog {
  max-width: 1400px;
  width: calc(100% - 24px);
  margin: 12px auto;
}

#modalCaracteristicas .modal-content {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  background: #f7f7f8;
}

#modalCaracteristicas .modal-header {
  border-bottom: 1px solid #ececec;
  padding: 16px 20px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}

#modalCaracteristicas .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

#modalCaracteristicas .btn-close {
  background-size: 18px;
  opacity: 1;
}

#modalCaracteristicas .modal-body {
  padding: 22px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  background: #f3f4f6;
}

/* loading */
.detalle-cargando-box {
  background: #fff;
  border-radius: 22px;
  padding: 42px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* contenedor general */
.producto-modal-wrap {
  width: 100%;
}

.producto-modal-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  color: #666;
  margin-bottom: 14px;
}

.producto-modal-breadcrumb a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

.producto-modal-breadcrumb a:hover {
  text-decoration: underline;
}

/* bloque principal */
.producto-modal-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.producto-modal-imagen,
.producto-modal-info,
.producto-modal-seccion {
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* imagen */
.producto-modal-imagen {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.producto-modal-imagen img {
  max-width: 100%;
  max-height: 470px;
  object-fit: contain;
  transition: transform .2s ease;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.producto-modal-imagen img:hover {
  transform: scale(1.03);
}

/* info */
.producto-modal-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.producto-modal-codigo {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: -6px;
}

.producto-modal-titulo {
  font-size: 27px;
  line-height: 1.2;
  font-weight: 800;
  color: #222;
  margin: 0;
}

.producto-modal-precios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.precio-box {
  background: #f6f6f7;
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
}

.precio-label {
  font-size: 15px;
  color: #666;
  margin-bottom: 8px;
}

.precio-valor {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.precio-valor.precio-menor {
  color: #e63946;
}


.producto-modal-bloque {
  background: #f6f6f7;
  border-radius: 18px;
  padding: 16px;
}

.producto-modal-subtitulo {
  font-size: 25px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.producto-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.producto-modal-badges .badge {
  font-size: 15px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
}

.producto-modal-acciones {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 4px;
}

.producto-modal-acciones input[type="number"] {
  max-width: 110px;
  text-align: center;
  border-radius: 14px;
  font-size: 24px;
  font-weight: 600;
  border: 1px solid #cfd4dc;
}

.producto-modal-acciones .btn {
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}

/* secciones debajo */
.producto-modal-seccion {
  padding: 22px;
  margin-top: 22px;
}

.producto-modal-seccion h3 {
  font-size: 23px;
  font-weight: 800;
  color: #222;
  margin-bottom: 16px;
}

.producto-modal-caracteristicas {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}



/* relacionados */
.relacionados-modal-wrap {
  position: relative;
}

.relacionados-modal-carrusel {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 4px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none; /* Firefox */
}

.relacionados-modal-carrusel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.producto-modal-galeria {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  min-height: 100%;
  gap: 10px;
}

.producto-galeria-principal {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}

.producto-galeria-thumbs {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  margin-top: auto;
  scrollbar-width: thin;
}


.producto-galeria-principal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.producto-galeria-principal:hover img {
  transform: scale(1.12);
}

.producto-galeria-thumb {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.producto-galeria-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.producto-galeria-thumb.active {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.producto-galeria-thumb:hover {
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .producto-galeria-principal {
    min-height: 220px;
  }

  .producto-galeria-principal img {
    max-height: 220px;
  }

  .producto-galeria-thumb {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
  }
}

.relacionados-modal-track {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.rel-modal-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.rel-modal-card {
  flex: 0 0 calc((100% - 54px) / 4);
  max-width: calc((100% - 54px) / 4);
  min-width: calc((100% - 54px) / 4);
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.rel-modal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.09);
}

.rel-modal-card-click {
  padding: 14px 14px 10px;
  cursor: pointer;
  flex: 1;
}

.rel-modal-img-wrap {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 12px;
}

.rel-modal-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .2s ease;
}

.rel-modal-card:hover .rel-modal-img-wrap img {
  transform: scale(1.04);
}

.rel-modal-title {
  font-size: 14px;
  line-height: 1.35;
  min-height: 58px;
  color: #222;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rel-modal-price {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  margin-top: 10px;
  margin-bottom: 8px;
}

.rel-modal-stock {
  font-size: 14px;
  font-weight: 600;
  color: #ff5a1f;
}

.rel-modal-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
}

.rel-modal-actions input {
  width: 82px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
}

.rel-modal-actions .btn {
  flex: 1;
  border-radius: 14px;
  font-weight: 700;
  padding: 10px 12px;
}

.rel-modal-flecha {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all .18s ease;
}

.rel-modal-flecha:hover {
  background: #fff;
  color: #111;
  transform: translateY(-50%) scale(1.05);
}

.rel-modal-prev {
  left: -8px;
}

.rel-modal-next {
  right: -8px;
}

/* oscuro */
body.dark-mode #modalCaracteristicas .modal-content {
  background: #161616;
}

body.dark-mode #modalCaracteristicas .modal-header {
  background: #1b1b1b;
  border-bottom-color: #2a2a2a;
}

body.dark-mode #modalCaracteristicas .modal-title {
  color: #fff;
}

body.dark-mode .detalle-cargando-box,
body.dark-mode .producto-modal-imagen,
body.dark-mode .producto-modal-info,
body.dark-mode .producto-modal-seccion,
body.dark-mode .rel-modal-card {
  background: #1f1f1f;
  color: #f1f1f1;
  box-shadow: 0 8px 26px rgba(255,255,255,.03);
}

body.dark-mode .producto-modal-breadcrumb,
body.dark-mode .producto-modal-codigo,
body.dark-mode .precio-label,
body.dark-mode .producto-modal-caracteristicas {
  color: #d0d0d0;
}

body.dark-mode .producto-modal-titulo,
body.dark-mode .producto-modal-seccion h3,
body.dark-mode .producto-modal-subtitulo,
body.dark-mode .precio-valor,
body.dark-mode .rel-modal-price,
body.dark-mode .rel-modal-title {
  color: #fff;
}

body.dark-mode .precio-box,
body.dark-mode .producto-modal-bloque {
  background: #2a2a2a;
}

body.dark-mode .producto-modal-imagen,
body.dark-mode .rel-modal-img-wrap {
  background: #181818;
}

body.dark-mode .rel-modal-stock {
  color: #ff8a5b;
}

body.dark-mode .rel-modal-flecha {
  background: rgba(34,34,34,.95);
  color: #ddd;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

body.dark-mode .rel-modal-flecha:hover {
  background: #2a2a2a;
  color: #fff;
}

/* responsive */
@media (max-width: 1199px) {
  .producto-modal-main {
    grid-template-columns: 1fr;
  }

  .producto-modal-imagen {
    min-height: 420px;
  }

  .rel-modal-card {
    flex: 0 0 calc((100% - 36px) / 3);
    max-width: calc((100% - 36px) / 3);
    min-width: calc((100% - 36px) / 3);
  }
}

@media (max-width: 767px) {
  #modalCaracteristicas .modal-dialog {
    width: calc(100% - 10px);
    margin: 5px auto;
    max-width: none;
  }

  #modalCaracteristicas .modal-body {
    padding: 14px;
    max-height: calc(100vh - 70px);
  }

  .producto-modal-breadcrumb {
    font-size: 13px;
    gap: 6px;
  }

  .producto-modal-main {
    gap: 14px;
  }

  .producto-modal-imagen,
  .producto-modal-info,
  .producto-modal-seccion {
    border-radius: 18px;
    padding: 16px;
  }

  .producto-modal-imagen {
    min-height: 300px;
  }

  .producto-modal-imagen img {
    max-height: 270px;
  }

  .producto-modal-titulo {
    font-size: 22px;
  }

  .producto-modal-precios {
    grid-template-columns: 1fr;
  }

  .precio-valor {
    font-size: 22px;
  }

  .producto-modal-badges .badge {
    font-size: 13px;
    padding: 8px 12px;
  }

  .producto-modal-acciones {
    flex-direction: row;
  }

  .producto-modal-acciones input[type="number"] {
    max-width: 92px;
    font-size: 20px;
  }

  .producto-modal-acciones .btn {
    font-size: 16px;
    padding: 12px 14px;
  }

  .producto-modal-seccion h3 {
    font-size: 18px;
  }

  .producto-modal-caracteristicas {
    font-size: 15px;
    line-height: 1.7;
  }

  .rel-modal-card {
    flex: 0 0 calc((100% - 14px) / 2);
    max-width: calc((100% - 14px) / 2);
    min-width: calc((100% - 14px) / 2);
    border-radius: 18px;
  }

  .rel-modal-img-wrap {
    height: 145px;
  }

  .rel-modal-price {
    font-size: 20px;
  }

  .rel-modal-title {
    font-size: 13px;
    min-height: 52px;
  }

  .rel-modal-actions {
    gap: 6px;
    padding: 0 10px 12px;
  }

  .rel-modal-actions input {
    width: 64px;
  }

  .rel-modal-actions .btn {
    padding: 9px 10px;
  }

  .rel-modal-flecha {
    width: 38px;
    height: 38px;
    top: 36%;
  }

  .rel-modal-prev {
    left: -2px;
  }

  .rel-modal-next {
    right: -2px;
  }
}

/* ============================
   BOTONES DEL MODAL PRODUCTO
   ============================ */

.btn-modal-add,
.btn-rel-add {
  position: relative;
  transition: all 0.2s ease;
}

.btn-modal-add.is-loading,
.btn-rel-add.is-loading {
  pointer-events: none;
  opacity: 0.9;
}

.btn-modal-add .btn-spinner,
.btn-rel-add .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinBtnModal .7s linear infinite;
}

.btn-modal-add.is-loading .btn-spinner,
.btn-rel-add.is-loading .btn-spinner {
  display: inline-block;
}

.btn-modal-add.is-loading .btn-label,
.btn-rel-add.is-loading .btn-label {
  opacity: 0.7;
}

@keyframes spinBtnModal {
  to { transform: rotate(360deg); }
}

.btn-modal-add.btn-primary,
.btn-rel-add.btn-primary {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #fff !important;
}

.btn-modal-add.btn-dark,
.btn-rel-add.btn-dark {
  background-color: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}


@media (max-width: 768px) {
  .relacionados-modal-track {
    gap: 6px !important;
  }

  .rel-modal-card {
    width: calc(50% - 3px) !important;
    min-width: calc(50% - 3px) !important;
    padding: 8px !important;
  }

  .rel-modal-img-wrap {
    height: 170px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .rel-modal-img-wrap img {
    max-height: 160px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .rel-modal-title {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
    text-transform: none !important;
  }

  .rel-modal-price {
    font-size: 16px !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
  }

  .rel-modal-stock {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }

  .rel-modal-actions {
    gap: 6px !important;
  }

  .rel-modal-actions input.form-control {
    max-width: 52px !important;
    font-size: 12px !important;
    padding: 4px 6px !important;
  }

  .rel-modal-actions .btn-rel-add {
    padding: 6px 10px !important;
  }
}

@media (max-width: 768px) {
  .relacionados-modal-track {
    gap: 4px !important;
  }

  .rel-modal-card {
    width: calc(50% - 2px) !important;
    min-width: calc(50% - 2px) !important;
    padding: 6px !important;
    border-radius: 10px !important;
  }

  .rel-modal-card-click {
    padding: 0 !important;
  }

  .rel-modal-img-wrap {
    height: 210px !important;
    min-height: 210px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 4px !important;
    overflow: hidden !important;
  }

  .rel-modal-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .rel-modal-title {
    font-size: 12px !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 2.3em !important;
  }

  .rel-modal-price {
    font-size: 16px !important;
    line-height: 1.05 !important;
    margin-bottom: 2px !important;
  }

  .rel-modal-stock {
    font-size: 10px !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
  }

  .rel-modal-actions {
    gap: 4px !important;
    margin-top: 0 !important;
  }

  .rel-modal-actions input.form-control {
    max-width: 46px !important;
    min-width: 46px !important;
    height: 36px !important;
    font-size: 12px !important;
    padding: 2px 4px !important;
    margin: 0 !important;
  }

  .rel-modal-actions .btn-rel-add {
    height: 36px !important;
    padding: 4px 8px !important;
    margin: 0 !important;
  }
}

.producto-modal-compartir {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.producto-modal-compartir .btn {
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .producto-modal-compartir {
    gap: 8px;
  }

  .producto-modal-compartir .btn {
    flex: 1 1 auto;
    font-size: 14px;
    padding: 9px 12px;
  }
}

.producto-modal-footer-redes {
  margin-top: 28px;
  padding: 22px 12px 8px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  background: transparent;
}

.producto-modal-footer-redes p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.producto-modal-footer-redes .redes-icons a {
  margin: 0 10px;
  font-size: 32px;
  color: #333;
  transition: transform 0.2s, color 0.2s;
  display: inline-block;
}

.producto-modal-footer-redes .redes-icons a:hover {
  color: #007bff;
  transform: scale(1.15);
}

body.dark-mode .producto-modal-footer-redes {
  border-top: 1px solid #3a3a3a;
}

body.dark-mode .producto-modal-footer-redes p,
body.dark-mode .producto-modal-footer-redes .redes-icons a {
  color: #ccc;
}

@media (max-width: 768px) {
  .producto-modal-footer-redes {
    padding-top: 18px;
  }

  .producto-modal-footer-redes .redes-icons a {
    font-size: 28px;
    margin: 0 8px;
  }
}

.producto-modal-acciones.sin-stock {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.producto-sin-stock-box {
  background: #f8f9fa;
  border: 1px solid #e3e3e3;
  border-radius: 18px;
  padding: 14px 16px;
  text-align: center;
}

.producto-sin-stock-titulo {
  font-size: 18px;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 6px;
}

.producto-sin-stock-texto {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.btn-modal-notify {
  border-radius: 16px !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
}

body.dark-mode .producto-sin-stock-box {
  background: #2a2a2a;
  border-color: #3b3b3b;
}

body.dark-mode .producto-sin-stock-texto {
  color: #cfcfcf;
}

#modal-detalle-contenido .swal2-container {
  z-index: 99999 !important;
}

#modal-detalle-contenido .swal2-popup {
  font-size: 1rem;
}


/* ===== MODAL CARRITO PRO ===== */
.modal-carrito-pro {
  border-radius: 24px;
  overflow: hidden;
  border: none;
}

@media (min-width: 1200px) {
  #modalCarrito .modal-dialog {
    width: 60vw;
    max-width: 60vw;
  }
}

/* ===== BOTONES FLOTANTES SECUNDARIOS UNIFICADOS ===== */
#btn-flotante-video,
#btn-newsletter-flotante,
#btn-toggle-novedades {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(0, 0, 0, 0.22) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #111 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}

#btn-flotante-video {
  right: 18px !important;
  bottom: calc(10px + env(safe-area-inset-bottom)) !important;
}

#btn-newsletter-flotante {
  right: 18px !important;
  bottom: calc(78px + env(safe-area-inset-bottom)) !important;
}

#btn-toggle-novedades {
  right: 18px !important;
  bottom: calc(146px + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 769px) {
  #btn-flotante-video {
    right: 20px !important;
    bottom: 150px !important;
  }

  #btn-newsletter-flotante {
    right: 20px !important;
    bottom: 226px !important;
  }

  #btn-toggle-novedades {
    right: 20px !important;
    bottom: 302px !important;
  }
}

#btn-flotante-video:hover,
#btn-newsletter-flotante:hover,
#btn-toggle-novedades:hover {
  transform: scale(1.06);
  color: #111 !important;
}

#btn-toggle-novedades {
  flex-direction: column !important;
  gap: 2px !important;
}

#btn-toggle-novedades .news-float-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

#btn-toggle-novedades i {
  font-size: 16px !important;
}

@media (max-width: 768px) {
  #btn-flotante-video,
  #btn-newsletter-flotante,
  #btn-toggle-novedades {
    width: 52px !important;
    height: 52px !important;
    font-size: 22px !important;
  }

  #btn-flotante-video {
    right: 8px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  #btn-newsletter-flotante {
    right: 8px !important;
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }

  #btn-toggle-novedades {
    right: 8px !important;
    bottom: calc(134px + env(safe-area-inset-bottom)) !important;
  }

  #btn-toggle-novedades .news-float-text {
    font-size: 12px;
  }

  #btn-toggle-novedades i {
    font-size: 14px !important;
  }
}

.floating-tools-menu {
  position: fixed;
  right: 18px;
  bottom: calc(146px + env(safe-area-inset-bottom));
  z-index: 1060;
  width: 58px;
  height: 58px;
}

.floating-tools-toggle,
.floating-tools-menu .floating-tool-option {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(0, 0, 0, 0.22) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #111 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  line-height: 1 !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0) scale(0.78);
  transition: opacity .18s ease, transform .22s ease, box-shadow .18s ease;
}

#floating-tools-menu #btn-flotante-video,
#floating-tools-menu #btn-newsletter-flotante,
#floating-tools-menu #btn-toggle-novedades {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  top: auto !important;
}

.floating-tools-toggle {
  opacity: 1;
  pointer-events: auto;
  z-index: 4;
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
  transform: scale(1);
}

.floating-tools-toggle i {
  transition: transform .2s ease;
}

.floating-tools-menu.open .floating-tools-toggle i {
  transform: rotate(90deg);
}

.floating-tools-menu.open .floating-tool-option {
  opacity: 1;
  pointer-events: auto;
}

.floating-tools-menu.open #btn-flotante-video {
  transform: translateY(-68px) scale(1);
}

.floating-tools-menu.open #btn-newsletter-flotante {
  transform: translateY(-136px) scale(1);
}

.floating-tools-menu.open #btn-toggle-novedades {
  transform: translateY(-204px) scale(1);
}

.floating-tools-menu .floating-tool-option:hover,
.floating-tools-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24) !important;
}

.floating-tools-menu.open #btn-flotante-video:hover {
  transform: translateY(-68px) scale(1.06);
}

.floating-tools-menu.open #btn-newsletter-flotante:hover {
  transform: translateY(-136px) scale(1.06);
}

.floating-tools-menu.open #btn-toggle-novedades:hover {
  transform: translateY(-204px) scale(1.06);
}

.floating-tools-menu #btn-toggle-novedades {
  flex-direction: column !important;
  gap: 2px !important;
}

.floating-tools-menu #btn-toggle-novedades .news-float-text {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.floating-tools-menu #btn-toggle-novedades i {
  font-size: 14px !important;
}

@media (max-width: 768px) {
  .floating-tools-menu {
    right: 8px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .floating-tools-toggle,
  .floating-tools-menu .floating-tool-option {
    width: 52px !important;
    height: 52px !important;
    font-size: 22px !important;
  }

  .floating-tools-menu.open #btn-flotante-video {
    transform: translateY(-62px) scale(1);
  }

  .floating-tools-menu.open #btn-newsletter-flotante {
    transform: translateY(-124px) scale(1);
  }

  .floating-tools-menu.open #btn-toggle-novedades {
    transform: translateY(-186px) scale(1);
  }

  .floating-tools-menu.open #btn-flotante-video:hover {
    transform: translateY(-62px) scale(1.06);
  }

  .floating-tools-menu.open #btn-newsletter-flotante:hover {
    transform: translateY(-124px) scale(1.06);
  }

  .floating-tools-menu.open #btn-toggle-novedades:hover {
    transform: translateY(-186px) scale(1.06);
  }
}

.modal-carrito-header {
  padding: 22px 28px;
  border-bottom: 1px solid #e9ecef;
}

.modal-carrito-header .modal-title {
  font-size: 30px;
  font-weight: 700;
}

.modal-carrito-body {
  padding: 18px 18px 10px 18px;
  background: #fafafa;
}

.modal-carrito-footer {
  background: #fff;
  border-top: 1px solid #e9ecef;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.carrito-cupon-box {
  background: #ffffff;
  border: 1px solid #dcdfe3;
  border-radius: 16px;
  padding: 12px;
  width: 100%;
  max-width: 860px;
}

.carrito-cupon-label {
  font-weight: 700;
  color: #1f2429;
}

.carrito-cupon-group #input-cupon {
  border: 1px solid #cfd5dc;
  border-radius: 12px 0 0 12px;
  min-height: 50px;
  font-size: 18px;
  padding-left: 14px;
  background: #fff;
}

.carrito-cupon-group #input-cupon:focus {
  border-color: #6b7280;
  box-shadow: 0 0 0 0.2rem rgba(107, 114, 128, 0.14);
}

#btn-aplicar-cupon {
  border: 1px solid #111;
  border-radius: 0 12px 12px 0;
  min-width: 118px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: #111;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

#btn-aplicar-cupon:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.3);
}

#btn-aplicar-cupon:active {
  transform: translateY(0);
}

@media (min-width: 992px) {
  .carrito-cupon-box {
    width: 40%;
    min-width: 420px;
    max-width: none;
    margin-right: auto;
  }
}

.carrito-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carrito-footer-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carrito-total-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carrito-total-label {
  font-size: 20px;
  color: #333;
}

.carrito-total-footer {
  font-size: 28px;
  font-weight: 800;
  color: #111;
}

.carrito-ahorro-footer {
  font-size: 15px;
  font-weight: 600;
  color: #198754;
  margin-left: auto;
  margin-right: 10px;
}

/* ===== ITEMS ===== */
.carrito-items-pro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.carrito-item-pro {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 120px 1fr 180px;
  gap: 12px;
  align-items: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.carrito-item-pro-imgbox {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carrito-item-pro-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carrito-item-pro-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
}

.carrito-item-pro-code {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}

.carrito-item-pro-controls {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  padding: 6px;
  border-radius: 14px;
}

.carrito-cantidad-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  color: #6f42c1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.carrito-cantidad-input {
  width: 56px;
  height: 40px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
}

.carrito-cantidad-input:focus {
  outline: none;
  box-shadow: none;
}

.carrito-item-pro-priceinfo {
  margin-top: 8px;
}

.carrito-precio-anterior {
  font-size: 12px;
  color: #777;
}

.carrito-precio-actual-desc {
  font-size: 19px;
  font-weight: 700;
  color: #198754;
}

.carrito-precio-actual-normal {
  font-size: 19px;
  font-weight: 700;
  color: #111;
}

.carrito-subtotal-linea {
  margin-top: 4px;
  font-size: 12px;
  color: #495057;
}

.carrito-item-pro-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.carrito-item-pro-mainprice {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  text-align: right;
}

.carrito-btn-delete-pro {
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 16px;
  background: #f3f4f6;
  color: #6c757d;
  font-size: 22px;
  transition: all 0.2s ease;
}

.carrito-btn-delete-pro:hover {
  background: #ffe5e5;
  color: #dc3545;
}

.carrito-vacio {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #ececec;
  padding: 30px;
}

/* PC ancho similar a la maqueta */
@media (min-width: 992px) {
  #modalCarrito .modal-dialog {
    max-width: 1320px;
  }
}

/* Móvil lo dejamos más simple */
@media (max-width: 768px) {
  .modal-carrito-header .modal-title {
    font-size: 22px;
  }

  .carrito-item-pro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .carrito-item-pro-right {
    align-items: flex-start;
  }

  .carrito-item-pro-mainprice {
    text-align: left;
    font-size: 22px;
  }

  .carrito-footer-top,
  .carrito-footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .carrito-ahorro-footer {
    margin: 0;
  }

  .carrito-total-box {
    justify-content: space-between;
    width: 100%;
  }
}


/* =========================
   CARRITO MOBILE NUEVO
   ========================= */
@media (max-width: 768px) {
  #modalCarrito .modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100vh;
  }

  #modalCarrito .modal-content {
    height: auto !important;
    min-height: 100vh;
    border-radius: 0 !important;
    display: block !important;
  }

  #modalCarrito .modal-body {
    overflow: visible !important;
    max-height: none !important;
  }

  #modalCarrito .modal-footer,
  .modal-carrito-footer {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .carrito-items-pro {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .carrito-item-pro {
    display: grid !important;
    grid-template-columns: 78px 1fr auto !important;
    grid-template-areas:
      "img titulo delete"
      "img codigo delete"
      "img controles delete"
      "img precio delete"
      "img subtotal delete";
    gap: 6px 12px;
    align-items: center;
    padding: 12px !important;
    border-radius: 18px !important;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }

  .carrito-item-pro-left {
    grid-area: img;
    align-self: start;
  }

  .carrito-item-pro-imgbox {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    border-radius: 12px !important;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .carrito-item-pro-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .carrito-item-pro-center {
    display: contents !important;
  }

  .carrito-item-pro-title {
    grid-area: titulo;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 700;
    margin: 0 !important;
  }

  .carrito-item-pro-code {
    grid-area: codigo;
    font-size: 12px !important;
    color: #6c757d;
    margin: 0 !important;
  }

  .carrito-item-pro-controls {
    grid-area: controles;
    margin: 2px 0 0 0 !important;
    padding: 4px !important;
    border-radius: 14px !important;
    background: #f5f5f5;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    width: fit-content;
  }

  .carrito-cantidad-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 22px !important;
    line-height: 1;
  }

  .carrito-cantidad-input {
    width: 44px !important;
    height: 36px !important;
    font-size: 18px !important;
    text-align: center;
    border: none;
    background: transparent;
    padding: 0;
  }

  .carrito-cantidad-input:focus {
    outline: none;
    box-shadow: none;
  }

  .carrito-item-pro-priceinfo {
    grid-area: precio;
    display: block !important;
  }

  .carrito-precio-anterior {
    font-size: 12px !important;
    margin: 0;
    line-height: 1;
    color: #777;
  }

  .carrito-precio-actual-desc,
  .carrito-precio-actual-normal {
    font-size: 16px !important;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
  }

  .carrito-precio-actual-desc {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 0;
  }

  .carrito-precios-linea {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
  }

  .carrito-precio-final {
    display: inline-block;
    color: #198754;
  }

  .carrito-precio-actual-desc .badge {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    line-height: 1.1;
    font-size: 11px !important;
    padding: 4px 7px !important;
    margin-left: 0 !important;
  }

  .carrito-subtotal-linea {
    grid-area: subtotal;
    font-size: 12px !important;
    color: #495057;
    margin: 2px 0 0 0;
  }

  .carrito-item-pro-right {
    grid-area: delete;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
  }

  .carrito-item-pro-mainprice {
    display: none !important;
  }

  .carrito-btn-delete-pro {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    background: #f3f4f6;
    color: #6c757d;
    border: none;
  }

  .carrito-btn-delete-pro:hover {
    background: #ffe5e5;
    color: #dc3545;
  }

  .modal-carrito-footer {
    padding: 14px 12px 18px 12px !important;
    background: #fff;
    border-top: 1px solid #e9ecef;
  }

  .carrito-cupon-box {
    padding: 10px;
    border-radius: 14px;
  }

  .carrito-cupon-group #input-cupon {
    min-height: 46px;
    font-size: 17px;
  }

  #btn-aplicar-cupon {
    min-width: 102px;
    font-size: 16px;
    padding: 0 14px;
  }

  .carrito-footer-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .carrito-total-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .carrito-total-label {
    font-size: 16px !important;
  }

  .carrito-total-footer {
    font-size: 20px !important;
    font-weight: 800;
  }

  .carrito-ahorro-footer {
    margin: 0 !important;
    font-size: 13px !important;
    text-align: left;
  }

  .carrito-footer-top .btn-success {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    font-size: 18px;
  }

  .carrito-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
  }

  .carrito-footer-bottom .btn {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    font-size: 16px;
  }
}

/* PC */
.btn-continuar-carrito {
  min-width: 260px;
  padding: 14px 28px;
  font-size: 18px;
  border-radius: 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .btn-continuar-carrito {
    width: 100%;
  }
}

.modal-backdrop.show {
  opacity: 0.6 !important;
}

.modal-carrito-pro {
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
  border: 1px solid #eaeaea;
}

.modal-carrito-header {
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.modal-carrito-body {
  background: #f8f9fa;
}


/* barra slide de info */
.top-info-bar {
  width: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 1100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-info-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
}

.top-info-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #f5f5f5;
  flex-shrink: 0;
}

.top-info-item i {
  color: #f7b500;
  font-size: 14px;
}

.top-info-separador {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .top-info-bar {
    height: 34px;
  }

  .top-info-item {
    font-size: 12px;
    padding: 7px 14px;
    gap: 6px;
  }

  .top-info-item i {
    font-size: 12px;
  }

  .top-info-separador {
    height: 12px;
  }

}

@media (max-width: 768px) {
  .top-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 34px;
    z-index: 1060;
  }

  .mobile-header {
    position: fixed;
    top: 34px !important;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #fff;
  }

  /* Altura total reservada arriba:
     34px barra negra + aprox 62px header móvil */
  body {
    padding-top: 96px;
  }

  /* Si tenés la búsqueda toggleada fija debajo del header */
  #busqueda-toggleada {
    top: 82px !important;
  }
}

@media (max-width: 768px) {
  #menuLateral {
    top: 70px !important;
    
  }
}

@media (max-width: 768px) {
  body.menu-lateral-abierto #btn-whatsapp-opciones {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}

#tabla-productos {
  display: none;
}

.carrito-minimo-alerta,
.carrito-minimo-ok {
  border-radius: 14px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .carrito-minimo-alerta,
  .carrito-minimo-ok {
    font-size: 13px;
    padding: 12px 14px;
  }
}


#toggle-carrito-btn {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #1c1c1c, #090909);
  color: #f7b500;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1080;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#toggle-carrito-btn i {
  font-size: 28px;
  line-height: 1;
  pointer-events: none;
}

.carrito-fab-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff1f3d;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  line-height: 1;
}

@media screen and (max-width: 768px) {
  #toggle-carrito-btn {
    width: 64px;
    height: 64px;
    right: 14px;
    bottom: 18px;
    left: auto;
  }

  #toggle-carrito-btn i {
    font-size: 26px;
  }

  .carrito-fab-badge {
    min-width: 24px;
    height: 24px;
    font-size: 13px;
    top: -3px;
    right: -1px;
  }
}

#toggle-carrito-btn i {
  display: block;
  line-height: 1;
  text-shadow: none;
  transform: translateZ(0); /* 🔥 clave */
  backface-visibility: hidden;
}

#toggle-carrito-btn {
  transform: translateZ(0);
  backface-visibility: hidden;
  overflow: hidden;
}

#modalCarrito .modal-dialog {
  transform: translateY(25px) scale(0.96);
  opacity: 0;
  transition: all 0.25s ease;
}

#modalCarrito.show .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.switch-label-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1;
}

.stock-switch-mobile,
.stock-switch-desktop {
  gap: 12px;
}

@media (max-width: 768px) {
  .stock-switch-mobile {
    width: 100%;
  }

  .switch-label-text {
    font-size: 14px;
  }
}

body.dark-mode .switch-label-text {
  color: #f1f1f1;
}

/* =========================
   MODAL PRODUCTO COMPACTO
   ========================= */

.producto-modal-compartir-mini {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.producto-modal-compartir-mini .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.producto-modal-compartir-mini .btn.btn-dark {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

.producto-modal-precios-compacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.precio-box-compacto {
  background: #f5f5f5;
  border: none;
  border-radius: 18px;
  padding: 16px 14px;
}

.producto-modal-bloque-compacto {
  margin-top: 12px !important;
  padding: 14px 16px !important;
  background: #f5f5f5;
  
  border-radius: 18px;
}

.producto-modal-subtitulo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}

.producto-modal-linea-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 14px;
  color: #444;
}

.producto-modal-linea-info span {
  background: transparent !important;

  padding: 6px 12px;
  line-height: 1.5;
}

.producto-modal-linea-info strong {
  color: #111;
}

.producto-modal-linea-info-sec span {
  background: #fafafa;
}

.producto-modal-badges {
  display: none !important;
}

/* compactar acciones */
.producto-modal-acciones {
  margin-top: 14px !important;
  padding: 14px !important;
  border-radius: 18px !important;
}

.producto-modal-acciones .btn {
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
}

/* achicar un poco la galería en mobile */
@media (max-width: 768px) {
  .producto-modal-wrap {
    padding: 10px 10px 16px;
  }

  .producto-modal-breadcrumb {
    margin-bottom: 10px !important;
    font-size: 12px;
  }

  .producto-modal-titulo {
    font-size: 18px !important;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .producto-modal-codigo {
    font-size: 13px !important;
    margin-bottom: 6px;
  }

  .producto-galeria-principal {
    min-height: 180px !important;
    border-radius: 16px !important;
  }

  .producto-galeria-principal img {
    max-height: 180px !important;
  }

  .producto-galeria-thumbs {
    gap: 8px;
    margin-top: 8px;
  }

  .producto-galeria-thumb {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 10px !important;
    padding: 4px !important;
  }

  .producto-modal-compartir-mini {
    gap: 8px;
  }

  .producto-modal-compartir-mini .btn {
    font-size: 13px !important;
    padding: 9px 10px !important;
  }

  .producto-modal-precios-compacto {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .precio-box-compacto {
    padding: 14px 12px;
    border-radius: 16px;
  }

  .precio-label {
    font-size: 13px !important;
    margin-bottom: 4px;
  }

  .precio-valor {
    font-size: 16px !important;
    line-height: 1.15;
  }

  .producto-modal-bloque-compacto {
    margin-top: 10px !important;
    padding: 12px 12px !important;
    border-radius: 16px;
  }

  .producto-modal-subtitulo {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .producto-modal-linea-info {
    gap: 8px;
    font-size: 13px;
  }

  .producto-modal-linea-info span {
    padding: 5px 10px;
  }

  .producto-modal-acciones {
    padding: 12px !important;
  }
}

/* modo oscuro minimalista */
body.dark-mode .precio-box-compacto,
body.dark-mode .producto-modal-bloque-compacto {
  background: #232323;
  border-color: #3a3a3a;
}

body.dark-mode .producto-modal-subtitulo,
body.dark-mode .producto-modal-linea-info strong,
body.dark-mode .precio-valor {
  color: #fff !important;
}

body.dark-mode .producto-modal-linea-info {
  color: #d0d0d0;
}

body.dark-mode .producto-modal-linea-info span {
  background: #1a1a1a;
  border-color: #333;
}

body.dark-mode .producto-modal-compartir-mini .btn.btn-outline-dark {
  color: #fff !important;
  border-color: #555 !important;
}

body.dark-mode .producto-modal-compartir-mini .btn.btn-dark {
  background: #fff !important;
  color: #111 !important;
  border-color: #fff !important;
}










/* =====================================================
   MODAL PRODUCTO MOBILE - REORDENADO Y SIN CAJAS SEPARADAS
   SOLO CELULAR - NO TOCA PC
   ===================================================== */
@media (max-width: 767px) {

  /* cuerpo general más compacto */
  #modalCaracteristicas .modal-body {
    padding: 10px !important;
    background: #f3f4f6 !important;
  }

  .producto-modal-wrap {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
  }

  .producto-modal-breadcrumb {
    margin-bottom: 8px !important;
    padding: 0 6px;
  }

  /* bloque imagen + info casi unido */
  .producto-modal-main {
    gap: 0 !important;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
  }

  .producto-modal-imagen,
  .producto-modal-info {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .producto-modal-imagen {
    min-height: auto !important;
    padding: 10px 10px 4px 10px !important;
    margin: 0 !important;
  }

  .producto-galeria-principal {
    min-height: 180px !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  .producto-galeria-principal img {
    max-height: 180px !important;
  }

  .producto-galeria-thumbs {
    margin-top: 4px !important;
    gap: 6px !important;
    padding: 0 4px !important;
  }

  .producto-galeria-thumb {
    width: 52px !important;
    height: 52px !important;
    flex: 0 0 52px !important;
  }

  .producto-modal-info {
    padding: 6px 12px 10px 12px !important;
    gap: 8px !important;
  }

  .producto-modal-codigo {
    margin-bottom: 0 !important;
    font-size: 12px !important;
  }

  .producto-modal-titulo {
    font-size: 16px !important;
    line-height: 1.18 !important;
    margin: 0 !important;
  }

  .producto-modal-compartir {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    gap: 8px !important;
  }

  .producto-modal-compartir .btn {
    min-height: 42px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
  }

  /* PRECIOS A LA PAR */
  .producto-modal-precios {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 0 !important;
  }

  /* sacar fondos individuales de precios */
  .precio-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 4px !important;
    border-radius: 0 !important;
    min-height: auto !important;
  }

  .precio-label {
    font-size: 12px !important;
    margin-bottom: 2px !important;
    line-height: 1.1 !important;
  }

  .precio-valor {
    font-size: 19px !important;
    line-height: 1.1 !important;
  }

  /* disponibilidad y reservas sin cajas grises */
  .producto-modal-bloque {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 4px 0 !important;
    margin-top: 0 !important;
  }

  .producto-modal-subtitulo {
    font-size: 14px !important;
    margin-bottom: 4px !important;
    color: #198754;
    font-weight: bold;
  }

  .producto-modal-badges {
    gap: 6px !important;
  }

  .producto-modal-badges .badge {
    font-size: 12px !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
  }

  /* bloque acciones pegado al resto */
  .producto-modal-acciones {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-top: 2px !important;
    padding: 6px 0 0 0 !important;
    gap: 8px !important;
  }

  .producto-modal-acciones input[type="number"] {
    max-width: 82px !important;
    height: 44px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
  }

  .producto-modal-acciones .btn {
    min-height: 44px !important;
    font-size: 15px !important;
    padding: 10px 12px !important;
  }

  /* secciones de abajo mucho más cerca */
  .producto-modal-seccion {
    background: #fff !important;
    box-shadow: none !important;
    border-radius: 20px !important;
    padding: 14px 16px !important;
    margin-top: 8px !important;
  }

  .producto-modal-seccion h3 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  .producto-modal-caracteristicas {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}



/* =========================================
   ZOOM IMAGEN PRINCIPAL MODAL PRODUCTO
   ========================================= */

.producto-galeria-principal-zoom {
  position: relative;
  cursor: zoom-in;
}

.producto-galeria-principal-zoom img {
  cursor: zoom-in;
}

.producto-galeria-lupa {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  pointer-events: none;
  opacity: 0;
  transform: scale(.92);
  transition: opacity .18s ease, transform .18s ease;
}

.producto-galeria-principal-zoom:hover .producto-galeria-lupa {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 767px) {
  .producto-galeria-lupa {
    opacity: .96;
    transform: scale(1);
    width: 34px;
    height: 34px;
    font-size: 14px;
    top: 8px;
    right: 8px;
  }
}

/* =========================================
   MODAL IMAGEN AMPLIADA FULL
   ========================================= */

#modalImagenProducto {
  z-index: 9999999 !important;
}

#modalImagenProducto .modal-dialog {
  margin: 0 !important;
  max-width: 100vw !important;
}

.modal-imagen-full {
  background: rgba(0,0,0,.96) !important;
  border: none !important;
  border-radius: 0 !important;
  min-height: 100vh;
  position: relative;
}

.imagen-full-producto {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.btn-cerrar-imagen-full {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 10;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: auto;
  height: auto;
  box-shadow: none;
}

.btn-cerrar-imagen-full:hover {
  opacity: .85;
}

@media (max-width: 767px) {
  .btn-cerrar-imagen-full {
    position: fixed !important;
    top: max(35px, env(safe-area-inset-top, 0px) + 12px);
    right: max(16px, env(safe-area-inset-right, 0px) + 8px) !important;
    font-size: 36px !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.45) !important;
    color: #fff !important;
    z-index: 10001 !important;
    padding: 0 !important;
    line-height: 1 !important;
    -webkit-tap-highlight-color: transparent;
  }
}

.btn-cerrar-imagen-full {
  touch-action: manipulation;
}




/* =====================================================
   MODAL PRODUCTO DESKTOP
   Que imagen + info principal entren de entrada
   y se vean como un solo bloque horizontal
   ===================================================== */
@media (min-width: 768px) {

  /* modal general más aprovechado en alto */
  #modalCaracteristicas .modal-dialog {
    width: min(1500px, calc(90vw - 48px)) !important;
    max-width: min(1500px, calc(90vw - 48px)) !important;
    margin: 10px auto !important;
  }

  #modalCaracteristicas .modal-content {
    border-radius: 28px !important;
  }

  #modalCaracteristicas .modal-body {
    padding: 10px 10px 8px !important;
    max-height: calc(100vh - 74px) !important;
  }

  /* bloque principal más ancho y más bajo */
  .producto-modal-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(430px, 1.05fr) !important;
    gap: 0 !important;
    align-items: stretch !important;
    background: #fff !important;
    border-radius: 28px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.06) !important;
    overflow: hidden !important;
  }

  /* que imagen + info no se vean como dos cajas separadas */
  .producto-modal-imagen,
  .producto-modal-info {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .producto-modal-imagen {
    min-height: 0 !important;
    padding: 16px 14px 14px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .producto-modal-info {
    padding: 16px 16px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0px !important;
  }

  /* línea visual súper sutil si querés unión sin corte duro */
  .producto-modal-info {
    border-left: 0px solid rgba(0,0,0,0.04);
  }

  /* galería más baja pero proporcional */
  .producto-modal-galeria {
    gap: 8px !important;
  }

  .producto-galeria-principal {
    min-height: 0 !important;
    height: clamp(320px, 48vh, 560px) !important;
    max-height: 58vh !important;
    background: transparent !important;
    border-radius: 18px !important;
    padding: 8px !important;
  }

  .producto-galeria-principal img,
  #productoGaleriaImgPrincipal {
    width: 90% !important;
    height: 90% !important;
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain !important;
    transform: none !important;
  }

  .producto-galeria-principal:hover img,
  .producto-galeria-principal:hover #productoGaleriaImgPrincipal {
    transform: none !important;
  }

  .producto-galeria-thumbs {
    gap: 8px !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  .producto-galeria-thumb {
    flex: 0 0 78px !important;
    width: 78px !important;
    height: 78px !important;
    border-radius: 14px !important;
  }

  /* texto principal más compacto para que todo entre */
  .producto-modal-codigo {
    font-size: 15px !important;
    margin-bottom: -2px !important;
  }

  .producto-modal-titulo {
    font-size: clamp(20px, 1vw, 27px) !important;
    line-height: 1.12 !important;
    margin: 0 !important;
  }

  .producto-modal-compartir {
    gap: 10px !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
  }

  .producto-modal-compartir .btn {
    min-height: 40px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    border-radius: 16px !important;
  }

  /* precios más compactos */
  .producto-modal-precios {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .precio-box {
    padding: 10px 8px !important;
    border-radius: 18px !important;
    background: transparent !important;
  }

  .precio-label {
    font-size: 14px !important;
    margin-bottom: 5px !important;
  }

  .precio-valor {
    font-size: clamp(18px, 1.9vw, 28px) !important;
    line-height: 1.08 !important;
  }

  /* stock y reservas más compactos */
  .producto-modal-bloque {
    padding: 10px 10px !important;
    border-radius: 18px !important;
    background: transparent !important;
  }

  .producto-modal-subtitulo {
    font-size: 16px !important;
    margin-bottom: 10px !important;
    color: #198754 !important;;
    font-weight: bold !important;;
  }

  .producto-modal-badges {
    gap: 8px !important;
  }

  .producto-modal-badges .badge {
    font-size: 14px !important;
    padding: 8px 12px !important;
  }

  /* acciones más bajas */
  .producto-modal-acciones {
    gap: 10px !important;
    margin-top: 0 !important;
  }

  .producto-modal-acciones input[type="number"] {
    max-width: 96px !important;
    height: 52px !important;
    font-size: 20px !important;
    border-radius: 16px !important;
  }

  .producto-modal-acciones .btn {
    min-height: 52px !important;
    font-size: 17px !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
  }

  /* lo de abajo no importa tanto, pero que no meta hueco enorme */
  .producto-modal-seccion {
    margin-top: 14px !important;
    padding: 18px !important;
    border-radius: 24px !important;
  }
}

.precio-cuotas {
  margin-top: 3px;
  font-size: 14px;
  color: #666;
 
  align-items: center;
  gap: 6px;
}

.precio-cuotas i {
  font-size: 14px;
  color: #444;
}

body.dark-mode .precio-cuotas {
  color: #bbb;
}

body.dark-mode .precio-cuotas i {
  color: #ddd;
}

/* PRECIO NEGRO Y MAS GRANDE */
.product-card .precio {
  font-family: 'Inter', sans-serif;
  color: #000 !important;
  font-size: 20px !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}


@media (max-width: 768px) {
  .product-card .nombre {
      font-family: 'Inter', sans-serif !important;
      font-weight: bold; /* 👈 esto elimina la negrita */
      font-size: 11px !important;
      line-height: 1.3;
      margin-bottom: 6px;
      color: #444;
  }

  .product-card .nombre {
    margin-bottom: 2px !important;
    min-height: auto !important;
    line-height: 1.2 !important;
  }

  .product-card .precio {
    margin-bottom: 0 !important;
  }

  .product-card .d-flex.align-items-center.justify-content-center.gap-2.mt-2.w-100 {
    margin-top: 0 !important;
    gap: 4px !important;
  }
}



@media (min-width: 768px) {
  .product-card .nombre {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px !important;
  }
}

.icono-filtro {
  font-size: 18px;
  color: #111;
}

.contador-badge {
  background: #000 !important;
  color: #fff !important;

  min-width: 20px;
  height: 20px;
  padding: 6 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px; /* círculo o píldora */
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}



/* =========================================
   FILTROS RÁPIDOS - SOLO PC
   barra minimal sin cajas ni bordes
   ========================================= */
@media (min-width: 768px) {

  #botones-filtro {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 22px !important;
    padding: 4px 0 12px !important;
    margin: 0 0 10px 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #botones-filtro > button,
  #botones-filtro > .btn,
  #botones-filtro button.btn,
  #botones-filtro button[class*="btn"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;

    padding: 0 !important;
    margin: 0 !important;
    min-height: unset !important;
    min-width: unset !important;

    color: #111 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    border-radius: 0 !important;
    position: relative !important;
    transition: opacity .18s ease, color .18s ease !important;
  }

  #botones-filtro > button:hover,
  #botones-filtro > .btn:hover,
  #botones-filtro button.btn:hover,
  #botones-filtro button[class*="btn"]:hover {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #000 !important;
    opacity: .78;
  }

  #botones-filtro > button:focus,
  #botones-filtro > .btn:focus,
  #botones-filtro button.btn:focus,
  #botones-filtro button[class*="btn"]:focus,
  #botones-filtro > button:active,
  #botones-filtro > .btn:active,
  #botones-filtro button.btn:active,
  #botones-filtro button[class*="btn"]:active {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  #botones-filtro > button i,
  #botones-filtro > .btn i,
  #botones-filtro button.btn i,
  #botones-filtro button[class*="btn"] i,
  #botones-filtro > button .bi,
  #botones-filtro > .btn .bi,
  #botones-filtro button.btn .bi,
  #botones-filtro button[class*="btn"] .bi {
    font-size: 10px !important;
    color: #111 !important;
    line-height: 1 !important;
  }

  #botones-filtro > button::after,
  #botones-filtro > .btn::after,
  #botones-filtro button.btn::after,
  #botones-filtro button[class*="btn"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 1px;
    background: #111;
    transition: width .18s ease;
  }

  #botones-filtro > button:hover::after,
  #botones-filtro > .btn:hover::after,
  #botones-filtro button.btn:hover::after,
  #botones-filtro button[class*="btn"]:hover::after {
    width: 100%;
  }

  /* badges negros */
  #botones-filtro .badge,
  #botones-filtro #outlet-count,
  #botones-filtro #contador-favoritos,
  #botones-filtro #promos-count {
    background: #000 !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: none !important;

    min-width: 18px !important;
    height: 18px !important;
    padding: 0 7px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 999px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-left: 2px !important;
  }
}


@media (min-width: 768px) {

  #botones-filtro {
    display: flex !important;
    flex-wrap: wrap !important;          /* 🔥 CLAVE */
    width: 100% !important;              /* 🔥 ocupa todo el ancho */
    
    justify-content: flex-start;         /* alineado a la izquierda */
    align-items: center;

    gap: 10px 26px !important;           /* vertical / horizontal */
    
    padding: 6px 0 10px !important;
  }

  /* cada botón ocupa solo lo necesario */
  #botones-filtro > button {
    flex: 0 0 auto !important;           /* 🔥 no se estiran */
  }

  #botones-filtro {
    max-width: 1400px;
    margin: 0 auto;
  }
}

.btn-quitar-filtro {
  background: transparent;
  border: none;
  box-shadow: none;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 0;
  margin: 0;

  font-size: 17px;
  font-weight: 500;
  color: #111;

  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-quitar-filtro i {
  font-size: 14px;
  font-weight: 700;
}

.btn-quitar-filtro:hover {
  opacity: 0.7;
}


/* =========================================================
   MODAL FINANCIACION
   ========================================================= */

.precio-cuotas-click {
  cursor: pointer;
  user-select: none;
  transition: opacity .18s ease, transform .18s ease;
}

.precio-cuotas-click:hover {
  opacity: .75;
  transform: translateY(-1px);
}

#modalFinanciacion .modal-dialog {
  max-width: 980px;
}

.modal-financiacion-content {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}

#modalFinanciacion .modal-header {
  background: #fff;
  padding: 18px 20px 0;
}

#modalFinanciacion .modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

#modalFinanciacion .modal-body {
  background: #fff;
  padding: 20px;
}

.financiacion-wrap {
  width: 100%;
}

.financiacion-header-minimal {
  margin-bottom: 18px;
  text-align: center;
}

.financiacion-titulo {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}



.financiacion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.financiacion-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.financiacion-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #efefef;
}

.financiacion-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid #ececec;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.financiacion-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0);
}

.financiacion-logo-fallback {
  width: 100%;
  height: 100%;
  font-size: 11px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
}

.financiacion-nombre {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.financiacion-planes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.financiacion-plan-item {
  border: 1px solid #efefef;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
}

.financiacion-plan-linea1 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.financiacion-cuotas {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.financiacion-recargo {
  font-size: 13px;
  color: #666;
}

.financiacion-plan-linea2 {
  font-size: 15px;
  color: #111;
}

.financiacion-plan-linea2 strong {
  font-size: 17px;
  font-weight: 800;
}

/* oscuro */
body.dark-mode .modal-financiacion-content,
body.dark-mode #modalFinanciacion .modal-header,
body.dark-mode #modalFinanciacion .modal-body,
body.dark-mode .financiacion-card,
body.dark-mode .financiacion-plan-item,
body.dark-mode .financiacion-logo-wrap {
  background: #ffffff !important;
  color: #111 !important;
}

body.dark-mode .financiacion-logo {
  filter: grayscale(100%) brightness(0);
}

/* responsive */
@media (max-width: 767px) {
  .financiacion-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #modalFinanciacion .modal-body {
    padding: 14px;
  }

  .financiacion-titulo {
    font-size: 20px;
  }

  .financiacion-card {
    border-radius: 18px;
    padding: 14px;
  }

  .financiacion-logo-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .financiacion-logo {
    width: 36px;
    height: 36px;
  }

  .financiacion-nombre {
    font-size: 16px;
  }

  .financiacion-plan-linea2 strong {
    font-size: 16px;
  }
}

/* =========================================================
   MODAL FINANCIACION COMPACTO
   ========================================================= */

#modalFinanciacion .modal-dialog {
  max-width: 920px;
}

.modal-financiacion-content {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
}

#modalFinanciacion .modal-header {
  background: #fff;
  padding: 14px 18px 0;
}

#modalFinanciacion .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

#modalFinanciacion .modal-body {
  background: #fff;
  padding: 14px 16px 16px;
}

.financiacion-wrap {
  width: 100%;
}

.financiacion-header-minimal {
  margin-bottom: 12px;
  text-align: center;
}

.financiacion-titulo {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin-bottom: 2px;
  line-height: 1.1;
}

.financiacion-subtitulo {
  font-size: 12px;
  color:#007bff;
}

.financiacion-producto {
  font-size: 14px;
  color:#666;
}

.financiacion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.financiacion-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
}

.financiacion-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #efefef;
}

.financiacion-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #ececec;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.financiacion-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0);
}

.financiacion-logo-fallback {
  width: 100%;
  height: 100%;
  font-size: 10px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
}

.financiacion-nombre {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.1;
}

.financiacion-planes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.financiacion-plan-item {
  border: 1px solid #efefef;
  border-radius: 14px;
  padding: 9px 12px;
  background: #fff;
}

.financiacion-plan-linea1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.financiacion-cuotas {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.1;
}

.financiacion-recargo {
  font-size: 12px;
  color: #666;
  line-height: 1.1;
}

.financiacion-plan-linea2 {
  font-size: 13px;
  color: #111;
  line-height: 1.15;
}

.financiacion-plan-linea2 strong {
  font-size: 15px;
  font-weight: 800;
}

/* oscuro: sigue blanco */
body.dark-mode .modal-financiacion-content,
body.dark-mode #modalFinanciacion .modal-header,
body.dark-mode #modalFinanciacion .modal-body,
body.dark-mode .financiacion-card,
body.dark-mode .financiacion-plan-item,
body.dark-mode .financiacion-logo-wrap {
  background: #ffffff !important;
  color: #111 !important;
}

body.dark-mode .financiacion-logo {
  filter: grayscale(100%) brightness(0);
}

/* móvil */
@media (max-width: 767px) {
  .financiacion-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #modalFinanciacion .modal-body {
    padding: 12px;
  }

  .financiacion-titulo {
    font-size: 18px;
  }



  .financiacion-card {
    border-radius: 16px;
    padding: 10px;
  }

  .financiacion-card-top {
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .financiacion-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .financiacion-logo {
    width: 26px;
    height: 26px;
  }

  .financiacion-nombre {
    font-size: 15px;
  }

  .financiacion-plan-item {
    padding: 8px 10px;
    border-radius: 12px;
  }

  .financiacion-cuotas {
    font-size: 13px;
  }

  .financiacion-recargo {
    font-size: 11px;
  }

  .financiacion-plan-linea2 {
    font-size: 12px;
  }

  .financiacion-plan-linea2 strong {
    font-size: 14px;
  }
}

.financiacion-recargo.sin-interes {
  font-weight: 700;
  color: #111;
}

.link-financiacion {
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.link-financiacion:hover {
  opacity: 0.7;
}


#modalFinanciacion {
  backdrop-filter: blur(3px);
}

#modalFinanciacion .modal-content {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

#modalFinanciacion .modal-backdrop,
.modal-backdrop.show {
  opacity: 0.6;
}

#modalFinanciacion.fade .modal-dialog {
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#modalFinanciacion.show .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.financiacion-compartir {
  border-top: 1px solid #ececec;
  padding-top: 14px;
}

.financiacion-compartir-botones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.financiacion-compartir-botones .btn {
  border-radius: 12px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 767px) {
  .financiacion-compartir-botones {
    flex-direction: column;
  }

  .financiacion-compartir-botones .btn {
    width: 100%;
    justify-content: center;
  }
}



/* ===== CARD COMPACTA: CANTIDAD + CARRITO EN UNA LINEA ===== */

.card-compra-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 2px;
}

.card-stock {
  white-space: nowrap;
  font-size: 13px !important;
}

.card-cantidad-box {
  width: 58px;
  flex: 0 0 58px;
}

.card-cantidad-box .input-cantidad-combinada {
  width: 58px !important;
  height: 36px;
  margin: 0 !important;
  padding: 4px 6px;
  border-radius: 10px;
}

.product-card .btn-agregar-card-icon {
  width: 42px !important;
  min-width: 42px !important;
  height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.product-card .btn-agregar-card-icon i {
  margin: 0 !important;
}

/* Estado agregado: solo tilde */
.product-card .btn-agregar-card-icon.btn-primary {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #fff !important;
}

/* Mobile todavía más compacto */
@media (max-width: 768px) {
  .card-compra-row {
    gap: 4px;
  }

  .card-stock {
    font-size: 11px !important;
  }

  .card-cantidad-box {
    width: 48px;
    flex-basis: 48px;
  }

  .card-cantidad-box .input-cantidad-combinada {
    width: 48px !important;
    height: 32px;
    font-size: 12px;
  }

  .product-card .btn-agregar-card-icon {
    width: 36px !important;
    min-width: 36px !important;
    height: 32px !important;
    font-size: 15px;
  }
}

/* ===== CONTROL CANTIDAD CARD: - INPUT + ===== */

.card-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 11px;
  overflow: hidden;
  height: 36px;
  background: #fff;
}

.card-qty-control .input-cantidad-combinada {
  width: 42px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-left: 1px solid #eee !important;
  border-right: 1px solid #eee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 14px;
}

.card-qty-btn {
  width: 28px;
  height: 36px;
  border: none;
  background: #fff;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-qty-btn:hover {
  background: #f2f2f2;
}

.card-qty-control input::-webkit-outer-spin-button,
.card-qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.card-qty-control input[type=number] {
  -moz-appearance: textfield;
}

/* Ajuste para que entre cómodo con el carrito */
.card-cantidad-box {
  width: auto !important;
  flex: 0 0 auto !important;
}

@media (max-width: 768px) {
  .card-qty-control {
    height: 32px;
  }

  .card-qty-control .input-cantidad-combinada {
    width: 34px !important;
    height: 32px !important;
    font-size: 12px;
  }

  .card-qty-btn {
    width: 24px;
    height: 32px;
    font-size: 16px;
  }
}


  /* ===== STOCK ARRIBA ===== */



/* ===== STOCK ARRIBA ===== */

.card-stock-top {
  width: 100%;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 13px;
  opacity: 0.8;
}

/* =====================================================
   FIX MOBILE/TABLET MODAL PRODUCTO
   Evita desborde horizontal y mantiene bloques en filas
   ===================================================== */
@media (max-width: 991.98px) {
  #modalCaracteristicas .modal-dialog {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    margin: 6px auto !important;
  }

  #modalCaracteristicas .modal-body {
    overflow-x: hidden !important;
  }

  .producto-modal-wrap,
  .producto-modal-main,
  .producto-modal-info,
  .producto-modal-imagen {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .producto-modal-main {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .producto-modal-precios,
  .producto-modal-precios-compacto {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .precio-box,
  .precio-box-compacto {
    width: 100% !important;
    min-width: 0 !important;
  }

  .producto-galeria-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow-x: hidden !important;
    gap: 6px !important;
    padding-right: 2px !important;
  }

  .producto-galeria-thumb {
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 52px !important;
  }

  .producto-modal-linea-info {
    flex-wrap: wrap !important;
  }

  .producto-modal-compartir-mini {
    flex-wrap: wrap !important;
  }
}

@media (min-width: 768px) {
  #botones-filtro #btn-ir-tienda {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #contenedor-botones #btn-ir-tienda {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-align: center !important;
  }
}

#menuHorizontalCategorias #navCategorias {
  flex-wrap: nowrap !important;
}

#menuHorizontalCategorias #navCategorias > li > a {
  white-space: nowrap !important;
  font-size: clamp(11px, .9vw, 16px) !important;
}

/* En móvil, vista "2" debe verse igual al formato inicial (sin estirar card) */
@media (max-width: 768px) {
  .cards-cols-2 .product-card .imagen-wrapper {
    height: 210px !important;
  }

  .cards-cols-2 .product-card img,
  .cards-cols-2 .product-card .img-producto {
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  .cards-cols-2 .product-card .nombre {
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    color: #444 !important;
  }
}

/* Vista 1 en móvil: imagen más grande + fuente un toque mayor */
@media (max-width: 768px) {
  .cards-cols-1 .product-card .imagen-wrapper {
    height: 280px !important;
    padding: 8px !important;
  }

  .cards-cols-1 .product-card .nombre {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #3e3e3e !important;
  }

  .cards-cols-1 .product-card .precio {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .cards-cols-1 .product-card .card-distribuidor-preview {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .cards-cols-1 .product-card .card-qty-control {
    transform: none !important;
    height: 50px !important;
    gap: 0 !important;
    margin-right: 10px !important;
    min-width: 184px !important;
  }

  .cards-cols-1 .product-card .btn-agregar-card-icon {
    min-width: 108px !important;
    height: 48px !important;
    border-radius: 14px !important;
  }

  .cards-cols-1 .product-card .btn-agregar-card-icon i {
    font-size: 22px !important;
  }

  .cards-cols-1 .product-card .card-qty-control .card-qty-btn,
  .cards-cols-1 .product-card .card-qty-control input[type="number"] {
    height: 48px !important;
    min-height: 48px !important;
  }

  .cards-cols-1 .product-card .card-qty-control .card-qty-btn {
    width: 50px !important;
    min-width: 50px !important;
    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
  }

  .cards-cols-1 .product-card .card-qty-control input[type="number"] {
    width: 84px !important;
    min-width: 84px !important;
    font-size: 30px !important;
    font-weight: 600 !important;
  }

  .cards-cols-1 .product-card .card-compra-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }
}

.card-distribuidor-preview {
  width: 100%;
  text-align: center;
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.1;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-distribuidor-preview-link {
  display: block;
  color: #198754;
  text-decoration: underline;
  font-weight: 500;
}

.card-distribuidor-preview-link:hover {
  color: #157347;
}

/* ===== COMPRA FULL WIDTH ===== */

.card-compra-row {
  display: flex;
  width: 100%;
  gap: 6px;
}

.card-cantidad-box {
  flex: 1; /* ocupa todo lo posible */
}

.card-qty-control {
  width: 100%;
}

@media (max-width: 576px) {
  .card-distribuidor-preview {
    font-size: 9px;
    line-height: 1.05;
    margin: 0 0 3px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* Input ocupa todo su espacio */
.card-qty-control input {
  width: 100% !important;
}

/* Botón carrito ancho fijo pero más grande */
.product-card .btn-agregar-card-icon {
  flex: 0 0 60px; /* ancho fijo */
  width: 60px !important;
  min-width: 60px !important;
  height: 36px !important;
  border-radius: 10px !important;
}

/* Opcional: centrar icono perfecto */
.product-card .btn-agregar-card-icon i {
  font-size: 18px;
}

.card-qty-control {
  border-radius: 10px 0 0 10px;
}

.product-card .btn-agregar-card-icon {
  border-radius: 0 10px 10px 0 !important;
}

.product-card .btn-agregar-card-icon:hover {
  transform: scale(1.05);
}
/* ===== COMPRA FULL WIDTH REAL ===== */

.card-compra-row {
  display: flex;
  width: calc(100% + 24px); /* compensa padding */
  margin-left: -12px;
  margin-right: -12px;
  padding: 0 12px;
  gap: 6px;
}
.card-cantidad-box {
  flex: 1;
}

.card-qty-control {
  width: 100%;
}

.product-card .btn-agregar-card-icon {
  flex: 0 0 70px;
  width: 70px !important;
  min-width: 70px !important;
  height: 38px !important;
  border-radius: 10px !important;
}

/* ===== FLECHAS RELACIONADOS MÁS EXTERNAS ===== */

.relacionados-modal-wrap {
  position: relative;
}

/* Flechas base */
.rel-modal-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

/* Flecha izquierda */
.rel-modal-prev {
  left: -18px; /* ← la sacamos hacia afuera */
}

/* Flecha derecha */
.rel-modal-next {
  right: -18px; /* → la sacamos hacia afuera */
}

.relacionados-modal-wrap {
  overflow: visible !important;
}

.rel-modal-flecha {
  background: #fff;
  border: 1px solid #eee;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rel-modal-flecha:hover {
  transform: translateY(-50%) scale(1.08);
}

/* ===== BANNER FULL WIDTH REAL SIN DEFORMAR ===== */

#carouselBanner {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%) !important;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}

#carouselBanner .carousel-inner,
#carouselBanner .carousel-item,
#carouselBanner a {
  width: 100% !important;
}

#carouselBanner img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

/* Puntos debajo del banner */
#carousel-banner-indicators {
  position: relative !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

/* Celular */
@media (max-width: 768px) {
  #carouselBanner {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 12px !important;
  }

  #carouselBanner img {
    width: 100vw !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}


/* ===== SLIDE EN MODAL DE IMAGEN AMPLIADA ===== */

.zoom-img-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 24px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.zoom-img-prev {
  left: 18px;
}

.zoom-img-next {
  right: 18px;
}

.zoom-img-flecha:hover {
  background: rgba(255,255,255,0.25);
}

.zoom-img-contador {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .zoom-img-flecha {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .zoom-img-prev {
    left: 8px;
  }

  .zoom-img-next {
    right: 8px;
  }

  .zoom-img-contador {
    bottom: 14px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {

  .zoom-img-contador {
    bottom: 70px !important;
    left: 50%;
    transform: translateX(-50%);
    
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

}

@media (max-width: 767px) {

  .zoom-img-flecha {
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.45) !important;
  }

  .zoom-img-flecha:active {
    transform: translateY(-50%) scale(0.92);
  }

}

/* ===== ICONOS DINAMICOS EN CATEGORIAS ===== */

.cat-menu-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cat-menu-icon {
  width: 22px;
  min-width: 22px;
  text-align: center;
  font-size: 18px;
  color: #111;
}

.cat-menu-icon-horizontal {
  margin-right: 7px;
  font-size: 15px;
  vertical-align: -1px;
}

body.dark-mode .cat-menu-icon {
  color: #fff;
}

#menuCategoriasLateral a.active .cat-menu-icon {
  color: #f7b500;
}

/* ===== WHATSAPP FLOTANTE MODERNO ===== */

.wsp-floating {
  position: fixed;
  left: 22px;
  bottom: 24px;
  z-index: 99999;
}

.wsp-main-btn {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .38);
  transition: transform .2s ease, box-shadow .2s ease;
}

.wsp-main-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 34px rgba(37, 211, 102, .48);
}

.wsp-menu {
  position: absolute;
  left: 0;
  bottom: 78px;
  width: 280px;
  padding: 12px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}

.wsp-menu-title {
  font-size: 13px;
  font-weight: 800;
  color: #111;
  padding: 4px 6px 10px;
}

.wsp-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #111;
  transition: background .18s ease, transform .18s ease;
}

.wsp-option:hover {
  background: #f3f3f3;
  transform: translateX(3px);
}

.wsp-option-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.wsp-option strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.wsp-option small {
  display: block;
  font-size: 12px;
  color: #777;
  margin-top: 3px;
}

#wsp-opciones.d-none {
  display: none !important;
}

@media (max-width: 768px) {
  .wsp-floating {
    left: 18px;
    bottom: 22px;
  }

  .wsp-main-btn {
    width: 58px;
    height: 58px;
    font-size: 29px;
  }

  .wsp-menu {
    width: 265px;
    bottom: 70px;
    border-radius: 20px;
  }
}


/* ===== PROMOS MINIMALISTAS BLACK & WHITE ===== */

.product-card.promo-destacada {
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
  animation: none !important;
  padding: 7px !important;
}

body.dark-mode .product-card.promo-destacada {
  background: #1e1e1e !important;
  border-color: #444 !important;
  box-shadow: 0 2px 8px rgba(255,255,255,0.04) !important;
}

.promo-box-minimal {
  width: 100%;
  
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 5px 6px;
  margin: 5px 0 6px;
}

.promo-precios-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.promo-precio-original {
  color: #777;
  font-size: 13px;
  font-weight: 600;
  text-decoration: line-through;
}

.promo-precio-final {
  color: #111;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.promo-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11px;
}

.promo-vencimiento {
  border: 0;
  background: transparent;
  color: #dc3545;
  padding: 0;
  border-radius: 0;
  font-weight: 800;
  white-space: nowrap;
}

.promo-vencimiento-alerta {
  background-color:#dc3545 !important;
  color: #fff !important;
  border-color: #dc3545 !important;
  border-radius: 999px !important;
  padding: 4px 8px !important;
  animation: promoUrgentePulse 5s ease-in-out infinite;
}

@keyframes promoUrgentePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

body.dark-mode .promo-box-minimal {
  background: #2a2a2a;
  border-color: #444;
}

body.dark-mode .promo-precio-original {
  color: #aaa;
}

body.dark-mode .promo-precio-final {
  color: #fff;
}

body.dark-mode .promo-minimo,
body.dark-mode .promo-vencimiento {
  background: transparent;
  border-color: transparent;
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .promo-box-minimal {
    padding: 7px 6px;
    border-radius: 12px;
  }

  .promo-precios-row {
    gap: 6px;
  }

  .promo-precio-original {
    font-size: 12px;
  }

  .promo-precio-final {
    font-size: 16px;
  }

  .promo-meta-row {
    gap: 4px;
    font-size: 10px;
  }

  .promo-minimo,
  .promo-vencimiento {
    padding: 3px 5px;
  }
}

/* ===== CATEGORIAS MODAL - MINIMALISTA ===== */

.producto-modal-categorias-min {
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 13px;
  color: #555;
}

.producto-modal-categoria-linea {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.producto-modal-categoria-label {
  color: #777;
  font-weight: 500;
}

.producto-modal-categoria-link {
  border: none;
  background: transparent;
  padding: 0;
  color: #111;
  font-weight: 600;
  text-align: left;
}

.producto-modal-categoria-link:hover {
  text-decoration: underline;
}

.producto-modal-categorias-mas {
  border: none;
  background: transparent;
  padding: 3px 0 0;
  color: #777;
  font-size: 12px;
  text-decoration: underline;
}

.producto-modal-categorias-lista {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 4px;
}

.producto-modal-categorias-lista button {
  border: none;
  background: transparent;
  padding: 0;
  color: #333;
  font-size: 12px;
  text-align: left;
}

.producto-modal-categorias-lista button:hover {
  text-decoration: underline;
}

body.dark-mode .producto-modal-categorias-min {
  color: #aaa;
}

body.dark-mode .producto-modal-categoria-label {
  color: #aaa;
}

body.dark-mode .producto-modal-categoria-link,
body.dark-mode .producto-modal-categorias-lista button {
  color: #fff;
}

body.dark-mode .producto-modal-categorias-mas {
  color: #ccc;
}

.modal-minimal {
  border-radius: 20px;
  border: 1px solid #eee;
}

.logo-modal {
  max-width: 160px;
  display: block;
  margin: 0 auto 15px;
}

.titulo-modal {
  text-align: center;
  font-weight: 800;
}

.sub-modal {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-bottom: 15px;
}

.codigo-boxes {
  display:flex;
  gap:8px;
  justify-content:center;
}

.codigo-boxes input {
  width:45px;
  height:50px;
  text-align:center;
  font-size:22px;
  border-radius:12px;
  border:1px solid #ddd;
}

.codigo-boxes input:focus {
  border-color:#000;
}

.modal-minimal {
  border-radius: 26px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  position: relative;
}

.login-smart-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  color: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s ease;
  z-index: 5;
}

.login-smart-close:hover {
  background: #000;
  color: #fff;
  transform: scale(1.04);
}

.btn-black {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 800;
  transition: all .18s ease;
}

.btn-black:hover {
  background: #222;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-min {
  background: #fff;
  color: #111;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  transition: all .18s ease;
}

.btn-outline-min:hover {
  border-color: #000;
  background: #f7f7f7;
}

.btn-login-no-gracias {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: none;
  background: transparent;
  color: #777;
  font-size: 13px;
  text-decoration: underline;
  padding: 8px;
}

.btn-login-no-gracias:hover {
  color: #000;
}

#modalLoginSmart .form-control {
  border-radius: 14px;
  padding: 13px 15px;
  border: 1px solid #dcdcdc;
  box-shadow: none !important;
}

#modalLoginSmart .form-control:focus {
  border-color: #000;
}

#icono-usuario-movil,
#icono-usuario-movil:hover,
#icono-usuario-movil:focus,
#icono-usuario-movil:active {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

#icono-usuario-movil i {
  display: block;
  line-height: 1;
}

/* Spinner corto al agregar al carrito */
.btn-agregar .spinner-agregar {
  animation: spin-carrito 0.8s linear infinite;
}

.btn-agregar.animando-check .fa-check {
  animation: fade-check-carrito 0.35s ease;
}

@keyframes spin-carrito {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fade-check-carrito {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes carrito-pop-feedback {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  70% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

#carrito-contador.carrito-badge-pop,
#carrito-contador-header.carrito-badge-pop {
  animation: carrito-badge-pop 0.45s ease;
}

@keyframes carrito-badge-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.modal-qty-control {
  display: flex;
  align-items: stretch;
  height: 58px;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  flex: 0 0 140px;
}

.modal-qty-control input {
  width: 58px !important;
  max-width: 58px !important;
  border: none !important;
  border-left: 1px solid #eee !important;
  border-right: 1px solid #eee !important;
  border-radius: 0 !important;
  text-align: center;
  font-size: 20px !important;
  font-weight: 600;
  box-shadow: none !important;
}

.modal-qty-btn {
  width: 42px;
  border: none;
  background: #fff;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.modal-qty-btn:hover {
  background: #f3f3f3;
}

@media (max-width: 768px) {
  .modal-qty-control {
    flex: 0 0 96px;
    height: 52px;
  }

  .modal-qty-control input {
    width: 38px !important;
    max-width: 38px !important;
    font-size: 18px !important;
    padding: 0 !important;
  }

  .modal-qty-btn {
    width: 29px;
    font-size: 19px;
  }
}

/* Chrome, Edge, Safari */
.modal-qty-control input::-webkit-outer-spin-button,
.modal-qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.modal-qty-control input[type=number] {
  -moz-appearance: textfield;
}

.modal-qty-control input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
}

.modal-qty-control input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
}

/* ===== IMAGENES UNIFORMES EN CARDS - FINAL ===== */

.product-card .imagen-wrapper {
  width: 100%;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 8px;
  margin-bottom: 6px;
}

.product-card .imagen-wrapper .img-producto {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: block;
  background: transparent !important;
}

/* Evita que el zoom corte demasiado la imagen */
.product-card:hover .imagen-wrapper .img-producto {
  transform: scale(1.04) !important;
  filter: brightness(1.03);
}

/* Móvil */
@media (max-width: 768px) {
  .product-card .imagen-wrapper {
    height: 150px;
    padding: 6px;
  }

  .product-card:hover .imagen-wrapper .img-producto {
    transform: scale(1.02) !important;
  }
}

/* Vista 2 columnas */
.cards-cols-2 .product-card .imagen-wrapper {
  height: 300px;
}

/* Vista 3 columnas */
.cards-cols-3 .product-card .imagen-wrapper {
  height: 230px;
}

/* Vista 4 columnas */
.cards-cols-4 .product-card .imagen-wrapper {
  height: 210px;
}

.product-card .nombre {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px; /* 👈 altura fija exacta */
  line-height: 21px;
}


/* ===== DESCRIPCION CARD: 2 LINEAS EN PC Y CELULAR ===== */

.product-card .nombre {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.25 !important;
  height: 2.5em !important;
  min-height: 2.5em !important;
  max-height: 2.5em !important;
}

@media (max-width: 768px) {
  .product-card .nombre {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
    height: 2.5em !important;
    min-height: 2.5em !important;
    max-height: 2.5em !important;
  }
}

.login-smart-beneficios {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 10px;
  border-radius: 14px;
  background: #f7f7f7;
}

.login-smart-beneficios div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  text-align: center;
}

.login-smart-beneficios i {
  font-size: 16px;
  margin-bottom: 2px;
}

.dato-validado {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 12px;
  color: #198754;
}

.input-bloqueado-validado {
  background: #f5f5f5 !important;
  cursor: not-allowed;
}

.slides-home-dinamicos {
  margin-top: 4px;
}

.home-slide-box {
  background:  #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 16px;
  overflow: hidden;
}

.home-slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-slide-header h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
}

.home-slide-header button {
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
}

.home-slide-wrapper {
  position: relative;
}

.home-slide-carrusel {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.home-slide-carrusel::-webkit-scrollbar {
  display: none;
}

.home-slide-track {
  display: flex;
  gap: 14px;
}

.home-slide-card {
  flex: 0 0 205px;
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 18px;
  padding: 12px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-slide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.home-slide-imgbox {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-slide-imgbox img {
  max-width: 100%;
  max-height: 145px;
  object-fit: contain;
}

.home-slide-title {
  min-height: 40px;
  max-height: 40px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none !important;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-slide-precio {
  font-size: 21px;
  font-weight: 900;
  margin-top: 10px;
}

.home-slide-precio-promo {
  margin-top: 8px;
  line-height: 1.1;
}

.home-slide-precio-promo strong {
  font-size: 21px;
  font-weight: 900;
  color: #111;
}

.home-slide-precio-tachado {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  margin-right: 6px;
}

.home-slide-precio-promo small {
  display: inline-block;
  margin-top: 4px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.home-slide-stock {
  margin-top: 8px;
  color: #ff4b00;
  font-size: 13px;
  font-weight: 600;
}

.home-slide-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.home-slide-cantidad {
  width: 62px;
  height: 42px;
  text-align: center;
  border-radius: 12px;
}

.home-slide-btn {
  flex: 1;
  height: 42px;
  border-radius: 12px;
}

.home-slide-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  z-index: 3;
}

.home-slide-prev {
  left: -10px;
}

.home-slide-next {
  right: -10px;
}

@media (max-width: 768px) {
  .home-slide-box {
    padding: 13px;
    border-radius: 18px;
  }

  .home-slide-card {
    flex-basis: 185px;
  }

  .home-slide-imgbox {
    height: 130px;
  }

  .home-slide-header h3 {
    font-size: 17px;
  }
}

#slides-home-row {
  align-items: stretch;
}

#slides-home-row > div {
  display: flex;
}

.home-slide-box {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: flex;
  flex-direction: column;
}

.home-slide-wrapper {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.home-slide-carrusel {
  width: 100%;
}

.home-slide-track {
  height: 100%;
  align-items: stretch;
}

.home-slide-card {
  min-height: 355px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .home-slide-card {
    flex-basis: 260px;
  }
}

.home-slide-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-slide-actions {
  margin-top: auto;
}

.spinner-agregar {
  animation: girarSpinner .7s linear infinite;
}

@keyframes girarSpinner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.inicio-zona-tienda{
    margin-top: 30px;
    margin-bottom: 20px;
}

.linea-separadora-tienda{
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0,0,0,0.12),
        transparent
    );
    margin-bottom: 24px;
}

.inicio-zona-tienda {
    position: relative;
    border-radius: 18px;
}

.inicio-zona-tienda.tienda-scroll-destacado {
    animation: tiendaDestinoPulse 1.35s ease;
}

@keyframes tiendaDestinoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(17, 17, 17, 0);
        background: transparent;
        transform: translateY(0);
    }
    18% {
        box-shadow: 0 0 0 8px rgba(17, 17, 17, 0.08);
        background: rgba(255, 193, 7, 0.10);
        transform: translateY(-2px);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(17, 17, 17, 0);
        background: rgba(255, 193, 7, 0.06);
        transform: translateY(0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(17, 17, 17, 0);
        background: transparent;
        transform: translateY(0);
    }
}

.header-zona-tienda{
    text-align: center;
}

.header-zona-tienda h2{
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
}

.header-zona-tienda h2 i{
    color:#111;
    font-size:26px;
}

.header-zona-tienda p{
    margin:0;
    color:#777;
    font-size:15px;
    font-weight:500;
}

@media (max-width:768px){

    .inicio-zona-tienda{
        margin-top: 20px;
        margin-bottom: 14px;
    }

    .header-zona-tienda h2{
        font-size:24px;
        gap:8px;
    }

    .header-zona-tienda h2 i{
        font-size:20px;
    }

    .header-zona-tienda p{
        font-size:13px;
        padding:0 20px;
    }

    .linea-separadora-tienda{
        margin-bottom:18px;
    }
}

.rel-modal-price-promo {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
}

.rel-modal-price-promo strong {
  font-size: 22px;
  font-weight: 900;
  color: #111;
}

.rel-modal-price-old {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: 500;
}

.rel-modal-price-promo small {
  display: inline-block;
  margin-top: 4px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .rel-modal-price-promo strong {
    font-size: 16px;
  }

  .rel-modal-price-old {
    font-size: 11px;
  }

  .rel-modal-price-promo small {
    font-size: 10px;
    padding: 2px 7px;
  }
}

.home-slide-box {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 35px rgba(0,0,0,.08);
}

.home-slide-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-slide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,.13);
}

.home-slide-imgbox {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border-radius: 18px;
}

#slides-home-dinamicos {
  background: linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
  padding-top: 18px;
  padding-bottom: 22px;
  border-radius: 26px;
}

@media (max-width: 768px) {
  #slides-home-dinamicos {
    background: #f8f8f8;
    border-radius: 22px;
    padding: 14px 8px 18px;
  }

  .home-slide-box {
    box-shadow: 0 10px 24px rgba(0,0,0,.07);
  }

  .home-slide-card {
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
  }
}

#slides-home-dinamicos {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  padding-left: 24px;
  padding-right: 24px;
}

.home-slide-box {
  height: 100%;
  border-radius: 28px;
  padding: 18px;
}

@media (max-width: 768px) {
  .home-slide-box {
    min-height: 0;
  }

  .home-slide-wrapper,
  .home-slide-track {
    align-items: flex-start;
  }

  .home-slide-card {
    flex-basis: 178px;
    min-height: 0;
    padding: 10px;
  }

  .home-slide-imgbox {
    height: 118px;
    border-radius: 14px;
  }

  .home-slide-imgbox img {
    max-height: 112px;
  }

  .home-slide-title {
    min-height: 38px;
    max-height: 38px;
    font-size: 13px;
    line-height: 1.35;
  }

  .home-slide-precio {
    margin-top: 7px;
    font-size: 19px;
  }

  .home-slide-stock {
    margin-top: 5px;
    font-size: 12px;
  }

  .home-slide-info {
    flex: 0 0 auto;
  }

  .home-slide-actions {
    margin-top: 7px;
    gap: 7px;
  }

  .home-slide-cantidad,
  .home-slide-btn {
    height: 38px;
    border-radius: 11px;
  }

  .home-slide-cantidad {
    width: 54px;
  }
}

/* Ajustes finales de alineación visual tienda111 */
#slides-home-dinamicos {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
}

.slides-home-dinamicos .row {
  margin-left: 0;
  margin-right: 0;
}

.slides-home-dinamicos .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.scroll-top-btn {
  left: auto !important;
  right: 106px !important;
  bottom: calc(22px + env(safe-area-inset-bottom)) !important;
  transform: none !important;
  width: 54px;
  height: 54px;
  background: rgba(17, 17, 17, .92) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22) !important;
  backdrop-filter: blur(8px);
}

.scroll-top-btn i {
  font-size: 22px;
}

.scroll-top-btn:hover {
  background: #f7b500 !important;
  color: #111 !important;
  transform: translateY(-2px) !important;
}

.scroll-top-btn.show {
  animation: scrollTopModernIn .28s ease;
}

@keyframes scrollTopModernIn {
  0% { transform: translateY(8px) scale(.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .scroll-top-btn {
    right: 8px !important;
    bottom: calc(22px + env(safe-area-inset-bottom)) !important;
    width: 52px;
    height: 52px;
  }
}
/* Carrito compacto escritorio */
@media (min-width: 769px) {
  #modalCarrito .modal-dialog {
    max-width: min(1180px, 92vw);
  }

  #modalCarrito .modal-content {
    max-height: 88vh;
  }

  .modal-carrito-header {
    padding: 14px 22px !important;
  }

  .modal-carrito-header .modal-title {
    font-size: 28px !important;
  }

  .modal-carrito-body {
    padding: 14px 22px !important;
  }

  .carrito-items-pro {
    gap: 6px !important;
  }

  .carrito-item-pro {
    grid-template-columns: 64px minmax(0, 1fr) 118px !important;
    gap: 8px !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
    min-height: 82px !important;
  }

  .carrito-item-pro-imgbox {
    width: 58px !important;
    height: 58px !important;
    border-radius: 8px !important;
  }

  .carrito-item-pro-title {
    font-size: 12px !important;
    line-height: 1.15 !important;
    max-height: 30px;
    overflow: hidden;
  }

  .carrito-item-pro-code {
    font-size: 11px !important;
    margin-top: 1px !important;
  }

  .carrito-item-pro-controls {
    margin-top: 4px !important;
    padding: 3px !important;
    gap: 4px !important;
    border-radius: 9px !important;
  }

  .carrito-cantidad-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    font-size: 17px !important;
  }

  .carrito-cantidad-input {
    width: 36px !important;
    height: 28px !important;
    font-size: 15px !important;
  }

  .carrito-item-pro-priceinfo {
    margin-top: 3px !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .carrito-precio-anterior {
    font-size: 10px !important;
  }

  .carrito-precio-actual-desc,
  .carrito-precio-actual-normal {
    font-size: 14px !important;
    line-height: 1.1 !important;
  }

  .carrito-precio-actual-desc .badge,
  .carrito-item-pro-priceinfo .badge {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }

  .carrito-subtotal-linea {
    margin-top: 0 !important;
    font-size: 11px !important;
  }

  .carrito-item-pro-priceinfo .mt-1 {
    margin-top: 0 !important;
  }

  .carrito-item-pro-right {
    gap: 6px !important;
  }

  .carrito-item-pro-mainprice {
    font-size: 15px !important;
  }

  .carrito-btn-delete-pro {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
  }

  .modal-carrito-footer {
    padding: 10px 18px !important;
    gap: 8px !important;
    display: grid !important;
    grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
    grid-template-areas:
      "cupon total"
      "acciones acciones";
    align-items: start;
  }

  .carrito-cupon-box {
    grid-area: cupon;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 8px !important;
    border-radius: 10px !important;
    margin: 0 !important;
  }

  .carrito-cupon-label {
    font-size: 13px !important;
    margin-bottom: 4px !important;
  }

  .carrito-cupon-group #input-cupon {
    min-height: 38px !important;
    font-size: 14px !important;
    border-radius: 9px 0 0 9px !important;
  }

  #btn-aplicar-cupon {
    min-width: 88px !important;
    font-size: 14px !important;
    border-radius: 0 9px 9px 0 !important;
    box-shadow: none !important;
  }

  #info-descuento-cupon,
  #resumen-total-cupon {
    margin-top: 4px !important;
    font-size: 12px !important;
  }

  .carrito-footer-top {
    grid-area: total;
    width: 100% !important;
    gap: 8px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "totalbox"
      "continuar";
    align-items: stretch !important;
  }

  .carrito-total-box {
    grid-area: totalbox;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    min-width: 0;
  }

  .carrito-total-label {
    font-size: 15px !important;
    flex: 0 0 auto;
  }

  .carrito-total-footer {
    font-size: 24px !important;
    line-height: 1.1;
    word-break: keep-all;
    white-space: nowrap;
  }

  .carrito-total-tachado {
    display: inline-block;
    margin-right: 10px;
    color: #777;
    font-size: 18px;
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
  }

  .carrito-total-con-cupon {
    display: inline-block;
    color: #198754;
    font-size: 24px;
    font-weight: 800;
  }

  .btn-continuar-carrito {
    grid-area: continuar;
    width: 100% !important;
    max-width: none !important;
    min-height: 46px !important;
    padding: 8px 24px !important;
    font-size: 18px !important;
  }

  .carrito-footer-top .btn-continuar-carrito {
    margin-top: 4px;
  }

  .carrito-footer-bottom {
    grid-area: acciones;
    width: 100% !important;
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
  }

  .carrito-footer-bottom .btn {
    flex: 0 1 220px;
    min-width: 0;
    white-space: nowrap;
    padding: 7px 12px !important;
    font-size: 14px !important;
  }

  .carrito-footer-bottom .btn:first-child {
    flex-basis: 190px;
  }

  .cupon-burbuja {
    display: none !important;
  }
}

.carrito-total-tachado {
  display: inline-block;
  color: #777;
  font-weight: 700;
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

.carrito-total-con-cupon {
  display: inline-block;
  color: #198754;
  font-weight: 800;
}

@media (max-width: 768px) {
  .carrito-total-footer {
    display: flex !important;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }

  .carrito-total-tachado {
    font-size: 20px !important;
  }

  .carrito-total-con-cupon {
    font-size: 24px !important;
  }
}
