
#popupCarruselContenido.loading {
  visibility: hidden;
}
body {
    margin: 0;
    padding: 0;
    background: #f3f4f6; /* 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;
}

#toggle-carrito-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #28a745;
  color: white;
  font-size: 24px;
  text-align: center;
  border: none;
  z-index: 10000;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  line-height: 60px;
}

/* En dispositivos móviles: abajo a la izquierda */
@media screen and (max-width: 768px) {
  #toggle-carrito-btn {
    right: auto;
    left: 20px;
  }
}



@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;
  }
  #toggle-carrito-btn {
    display: block;
  }
}
    
/*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;
}
#toggle-carrito-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #28a745;
  color: white;
  font-size: 24px;
  text-align: center;
  border: none;
  z-index: 10000;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  line-height: 60px;
  position: fixed;
}

#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: 30px;
  background-color: #f8f9fa;
  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: 20px;
  left: 92%;
  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: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media screen and (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
  gap: 1rem;
}*/

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  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; /* 👈 MUY IMPORTANTE */
  height: 100%; /* 👈 MUY IMPORTANTE */
}

.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;
}
      
@media (max-width: 768px) {
  .product-card .nombre {
      font-weight: bold; /* 👈 esto elimina la negrita */
      font-size: 10px;
      line-height: 1.3;
      margin-bottom: 6px;
      color: #444;
  }
}

.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-color: black; /* Gris oscuro */
  color: #f1f1f1;            /* Texto claro */
  border: 1px solid #444;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
#modalDatosCliente .btn-close {
  filter: invert(1);
}

body.dark-mode #modalDatosCliente .modal-content {
  background-color: #1c1c1c;
  color: #ffffff;
  border: 1px solid #555;
}

@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: 26px;
  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"] {
  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 .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;
}

#icono-usuario-escritorio i{
    /*font-size: 25px;*/
}
@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 {

}

#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: 65px;
    margin-bottom: 10px;
  }

  #carouselBanner img {
    max-height: 130px;
    object-fit: contain;
  }
  #carouselBanner {
    margin-bottom: 0 !important;
  }

  #carouselBanner img {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    max-height: 68px
  }
 
  #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:hover {
  background-color: #f5e5e5;
}

/* 📱 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: 13px;
}

#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;
  top: 55px;
  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:hover {
  background: #f0f0f0;
  text-decoration: none;
}



#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 a:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
  text-decoration: none;
}

#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 a:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
  text-decoration: none;
}

#menuCategoriasLateral ul {
  padding-left: 0;
  margin-bottom: 0;
}

#menuCategoriasLateral li {
  list-style: none;
}

#menuCategoriasLateralContainer {
  padding-top: 5px;
  /*background-color: white;*/
}

#menuCategoriasLateral {
  overflow-y: auto;
  max-height: unset;
}

#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:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
  text-decoration: none;
}

#menuCategoriasLateral a.active {
  background-color: #e6f4ea;
  color: #198754;
  font-weight: 600;
}





#menuCategoriasLateral a.active {
  background-color: #e6f4ea;
  color: #198754;
  font-weight: 600;
}

#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;
  gap: 16px;
}

#navCategorias > li {
  flex: 0 0 auto;
  position: relative;
}

#navCategorias > li > a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background-color: transparent;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

#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 {
      grid-template-columns: repeat(2, 1fr) !important;
    }

    #orden-select {
      width: 100% !important;
    }

    .btn-vista,
    .btn-vista + i,
    .btn-vista + span {
      display: none !important;
    }
  }

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-color: #333;
  color: #fff;
}

body.dark-mode #menuCategoriasLateral a.active {
  background-color: #2a462a;
  color: #4caf50;
  font-weight: bold;
}

body.dark-mode a.text-dark {
  color: #f1f1f1 !important;
}


.buscador-minimalista input[type="search"],
.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;
}
#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;
}
#live-results-mobile .list-group-item {
  transition: background-color 0.2s ease;
}

#live-results-mobile .list-group-item:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

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%);
}

.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);
}



