/* Productos destacados adaptados al slider */
.productos-destacados {
  width: 100%;
  margin-bottom: 20px;
}

/* Contenedor del slider */
.productos-slider-wrapper {
  position: relative;
}

.btn-carousel-prev,
.btn-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.btn-carousel-prev {
  left: -10px;
}

.btn-carousel-next {
  right: -10px;
}

.productos-slider {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 12px;
}

/* Ocultar scroll en navegadores modernos */
.productos-slider::-webkit-scrollbar {
  height: 6px;
}
.productos-slider::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* Estilo para cada tarjeta de producto */
.producto {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: var(--color-primario);
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--color-sombras);
  padding: 8px;
  text-align: center;
  width: 170px;
  max-width:190px;
  min-width: 170px;
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.producto:hover {
  transform: scale(1.05);
}

.producto img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgb(161, 185, 192);
}

.producto h3 {
  color: var(--color-texto-principal);
  margin: 10px 0;
  height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: 12px;
}

.producto p {
  font-size: 12px;
}

.etiqueta-descuento,
.etiqueta-stock {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.etiqueta-descuento {
  background-color: #ffa3b5;
  color: white;
}
.etiqueta-stock {
  background-color: var(--color-sombras);
  color: white;
}

.acciones-producto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.control-cantidad {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  width: 90px !important;
}

.cantidad-btn {
  width: 25px;
  height: 25px;
  font-size: 14px;
  background-color: var(--color-fondo-botones);
  border: 1px solid var(--color-fondo-secundario);
  cursor: pointer;
  border-radius: 20%;
  color: var(--color-texto-secundario);
}

.control-cantidad input {  
  text-align: center;
  font-size: 14px;
  padding: 3px;
  border: 1px solid var(--color-fondo-secundario);
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

.btn-carrito {
  background-color: var(--color-fondo-botones) !important;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.btn-carrito:hover {
  background-color: var(--color-secundario);
}

.productos-destacados .precio-mayor,
.productos-destacados .precio-distribuidor {
    display: none !important;
}              

.control-cantidad.input-group {
    flex-wrap: nowrap !important;
}

/* Responsive */
@media (max-width: 768px) {
  .producto {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .producto {
    width: 45%;
    max-width: 45%;
  }
}
