/* =======================================
   ESTILO DETALLE - TIPO TEMU PROFESIONAL
======================================= */

body {
    background: #f6f6f6;
    font-family: Arial, sans-serif;
}

/* CONTENEDOR */
.container {
    max-width: 1200px;
}

/* GALERIA */
.thumbs {
    max-height: 420px;
    overflow-y: auto;
}

.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: contain;   /* NO recorta */
    background: #fff;
    padding: 5px;
    border-radius: 10px;
    transition: .2s ease;
}

.thumb-img:hover {
    transform: scale(1.05);
    border: 1px solid #ff6a00;
}

/* IMAGEN PRINCIPAL */
.main-image {
    width: 100%;
    text-align: center;
}

#imagenPrincipal {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 500px;
    object-fit: contain;   /* NO recorta */
    background: #fff;
    padding: 10px;
    border-radius: 16px;
}

/* INFO PRODUCTO */
h2 {
    font-size: 24px;
}

/* CAJA DE ENVIO */
.envio-box {
    background: #fff4e6;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* TALLAS */
.btn-outline-dark {
    margin: 3px 4px 6px 0;
    border-radius: 50px !important;
}

/* BOTON CARRITO */
.btn-dark {
    background: linear-gradient(135deg, #ff7a00, #ff3d00);
    border: none;
    font-weight: bold;
    border-radius: 14px;
    transition: .2s ease;
}

.btn-dark:hover {
    transform: scale(1.02);
    background: #ff3d00;
}

/* PRODUCTOS RELACIONADOS */
.hover-scale {
    transition: .25s ease;
}

.hover-scale:hover {
    transform: translateY(-3px);
}

/* =========================
   RESPONSIVE (CELULAR)
========================= */
@media (max-width: 768px) {

    .d-flex {
        flex-direction: column;
    }

    .thumbs {
        display: flex;
        flex-direction: row;
        gap: 8px;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        margin-bottom: 10px;
    }

    .thumb-img {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    #imagenPrincipal {
        max-width: 100%;
        max-height: 380px;
    }

    h2 {
        font-size: 20px;
    }
}
