
.producto-content {
    display: flex;
    flex-wrap: wrap; /* Permite que se apilen en pantallas pequeñas */
    width: 100%;
    max-width: 1440px;
    margin: auto;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    box-sizing: border-box;
    margin: 40px 0;
}

.producto-left {
    display: flex;
    justify-content: flex-start;
    flex: 1 1 250px; /* Se encoge y crece, mínimo 350px */
}

.producto-right {
    display: flex;
    flex-direction: column;
    flex: 1 1 350px;
    gap: 10px;
}

.producto-left img {
    width: 100%;
    max-width: 550px; /* límite para pantallas grandes */
    height: auto;
    background: #f9f9f9;
}

.btn-agregar {
    background: black;
    width: 100%;
    max-width: 300px;
    height: 40px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-agregar:hover {
    background: #2c2c2c;
}

.producto-right ul {
    list-style-type: none;
    padding-left: 0;
}

.producto-right a,
.producto-right p,
.producto-right li {
    color: black;
    font-size: clamp(12px, 2vw, 14px); /* Ajuste fluido */
    text-align: justify;
    line-height: 1.5;
    font-size: 600;
}

.btn-regalo,
.btn-detalles,
.btn-envios {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    color: black;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 1px solid #c1c1c1;
    background: transparent;
    font-weight: 600;
}

.precio {
    color: #c1c1c1;
    text-decoration: line-through;
}

.detalles-info,
.envios-info,
.regalo-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.detalles-info.active,
.envios-info.active,
.regalo-info.active {
    max-height: 1000px; /* suficiente para el contenido */
    opacity: 1;
}

.regalo-info a {
    font-weight: 700;        /* Negrita */
    text-decoration: underline; /* Subrayado */
    color: black;            /* Mantener el color negro */
}


/* Loader del botón */
.btn-agregar.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-agregar.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
