.producto-container {
    max-width: 70%;
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-primario);
    padding: 5px;
    gap: 2px;
    width: 80%;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgb(161, 185, 192);
    border-radius: 1%;
    margin-bottom: 30px;
    margin-top: 20px;
}

.contenedor-imagen {
    width: 40%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor-imagen img {
    width: 100%;
    height: auto;
    max-height: 40%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgb(161, 185, 192);
    margin: 5%;
}

.etiqueta-descuento {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #ffa3b5;
    color: white;
    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-stock {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--color-sombras);
    color: white;
    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);
}

.container-element-product {
    flex: 1 1 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background-color: var(--color-primario);
    border-radius: 1%;
}

.container-element-product h3 {
    font-size: 20px  bold;
    color: var(--color-terciario);
}

.precio-detal,
.precio-oferta,
.precio-mayor,
.precio-distribuidor {
    font-size: 1.2rem;
    margin: 0.3rem 0;
}

.precio-detal.ofertado {
  color: red;
  text-decoration: line-through;
  font-weight: bold;
}

.precio-oferta {
  color: green;
  font-weight: bold;
  font-size: 1.1em;
}

.acciones-producto {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    gap: 1rem;
}

.control-cantidad {
    width: 30%;
    max-width: 30%;
    display: flex;
    justify-content: left;
    gap: 1rem;
}

.control-cantidad button {
    width: 30%;
    height: auto;
    padding: 0.5rem;
    background: var(--gradiente-principal);
    color: var(--color-texto-secundario);
    border: none;
    border-radius: 10%;
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 3%;
}

.control-cantidad input {
    width: 30%;
    max-width: 30%;
    height: auto;
    text-align: center;
    border: 1px solid var(--color-sombras);
    border-radius: 5px;
    background-color: var(--color-primario);
    margin-bottom: 3%;
}

.agregar-carrito{
    width: 70%;
    max-width:70%;
    height: auto;
}

.btn-carrito {
    width: 100%;
    max-width:100%;
    height:auto;
    background: linear-gradient(135deg, #53af03 0%, #53af03 100%);
    color: var(--color-texto-secundario);
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
    border-radius: 12px;
    margin-bottom: 3%;
    padding: 2% 0;
}

.accordion {
    background: var(--gradiente-principal);
    color: var(--color-primario);
    cursor: pointer;
    padding: 12px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border-radius: 12px;
    margin-bottom: 10px;
}

.accordion:hover {
    background-color: var(--color-secundario);
    color: var(--color-primario);
}

.accordion:after {
    content: '+';
    float: right;
    font-weight: bold;
}

.accordion.active:after {
    content: '-';
}

.panel {
    padding: 0 12px;
    display: none;
    background-color: white;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.panel p{
    text-align: justify;
}

.section-title {
  background:var(--gradiente-principal);
  color: var(--color-primario);
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#sugeridos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--espaciado-md);
  margin-top: var(--espaciado-xl);
  padding: var(--espaciado-md);
}

.producto-card {
  width: 160px;
  background: var(--gradient-modern);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-modern);
  padding: var(--espaciado-sm);
  transition: transform var(--transicion-normal), box-shadow var(--transicion-normal);
}

.producto-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.producto-card img {
  width: 100%;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--sombra-media);
  object-fit: cover;
}

.producto-card h3 {
  font-size: 14px;
  color: var(--color-texto-principal);
  margin: var(--espaciado-sm) 0;
  height: 4em;
  text-align: center;
}

.producto-card a {
  text-decoration: none;
  color: inherit;
}

.precio-normal {
  font-weight: bold;
  color: var(--color-terciario);
  font-size: 14px;
}

.precio-anterior {
  text-decoration: line-through;
  color: gray;
  font-weight: normal;
  font-size: 13px;
  margin-left: 5px;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {

    /* Contenedor del producto, se cambia la dirección de flex a columna */
    .producto-container {
        flex-direction: column;
        width: 100%;
        max-width: 90%;
        padding: 1rem;
    }

    /* La imagen debe ocupar todo el ancho disponible y debe estar encima de los datos */
    .contenedor-imagen {
        width: 100%;
        margin-bottom: 1rem;
        /* Espaciado entre la imagen y el contenido del producto */
    }

    .contenedor-imagen img {
        width: 100%;
        /* Asegura que la imagen ocupe el 100% del contenedor */
        height: auto;
        max-height: none;
        /* Elimina la restricción de altura para la imagen */
    }

    /* Los elementos del producto se distribuyen debajo de la imagen */
    .container-element-product {
        width: 100%;
    }

    /* Las acciones de los botones de cantidad se alinean de forma vertical */
    .acciones-producto {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .control-cantidad{
        width: 70%;
        max-width: 70%;
        
    }

    /* Ajusta el tamaño del input de cantidad en móviles */
    .control-cantidad input {
        width: 100%;
        max-width: 100%;
    }
    
    .btn-carrito{
        width: 100%;
        max-width: 100%;
        
    }
    
    .agregar-carrito{
        width: 100%;
        max-width: 100%;
    }
}