/* ==================================================
   DETALLE DEL PRODUCTO
================================================== */

.producto-detalle {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 80px 30px;

    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr);

    gap: 70px;

    align-items: start;
}


/* ==================================================
   GALERÍA
================================================== */

.producto-galeria {
    width: 100%;
}


.producto-imagen-principal {
    width: 100%;

    background-color: var(--color-crema);

    overflow: hidden;

    border-radius: 10px;
}


.producto-imagen-principal img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: cover;

    transform: scale(1);

    transform-origin: center center;

    transition: transform 0.15s ease-out;
}


/* ==================================================
   ZOOM
================================================== */

.producto-imagen-principal.zoom-activo img {
    transform: scale(1.9);
}


/* ==================================================
   MINIATURAS
================================================== */

.producto-miniaturas {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 12px;

    margin-top: 15px;

    width: 100%;
}


.miniatura {
    width: 100%;

    aspect-ratio: 9 / 16;

    padding: 0;

    border: 2px solid transparent;

    border-radius: 8px;

    background-color: transparent;

    cursor: pointer;

    overflow: hidden;

    transition:
        border-color 0.3s ease,
        transform 0.2s ease;
}


.miniatura img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.miniatura:hover {
    border-color: var(--color-dorado);

    transform: translateY(-3px);
}


.miniatura-activa {
    border-color: var(--color-dorado);
}


/* ==================================================
   INFORMACIÓN DEL PRODUCTO
================================================== */

.producto-detalle-informacion {
    padding-top: 10px;
}


.producto-detalle-informacion h1 {
    font-family: "Alex Brush", cursive;

    font-size: 65px;

    font-weight: normal;

    line-height: 1.1;

    color: var(--color-negro);

    margin-bottom: 20px;
}


.producto-precio {
    font-family: "Alegreya", serif;

    font-size: 28px;

    color: var(--color-dorado);

    margin-bottom: 35px;
}


/* ==================================================
   VARIANTES DEL PRODUCTO
================================================== */

.producto-variantes {
    margin-top: 25px;

    margin-bottom: 35px;

    padding: 22px;

    border: 1px solid #d8d2bd;

    border-radius: 8px;

    background-color: #faf9f5;
}


/* ==================================================
   OPCIONES
================================================== */

.producto-opcion {
    margin-bottom: 20px;
}


.producto-opcion:last-of-type {
    margin-bottom: 0;
}


.producto-opcion label {
    display: block;

    margin-bottom: 10px;

    font-family: "Alegreya", serif;

    font-size: 17px;

    font-weight: 600;

    color: #000000;
}


/* ==================================================
   BOTONES DE COLOR Y TALLA
================================================== */

.producto-opciones-botones {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 5px;
}


/* ==================================================
   BOTÓN DE OPCIÓN
================================================== */

.opcion-boton {
    min-width: 85px;

    padding: 10px 18px;

    border: 1px solid #000000;

    border-radius: 4px;

    background-color: #ffffff;

    color: #000000;

    font-family: "Alegreya", serif;

    font-size: 16px;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}


/* ==================================================
   HOVER
================================================== */

.opcion-boton:hover {
    border-color: #B8AD81;

    transform: translateY(-2px);
}


/* ==================================================
   OPCIÓN SELECCIONADA
================================================== */

.opcion-boton-activo {
    background-color: #000000;

    color: #B8AD81;

    border-color: #B8AD81;
}


.opcion-boton-activo:hover {
    background-color: #000000;

    color: #B8AD81;

    border-color: #B8AD81;
}


/* ==================================================
   TALLAS
================================================== */

.producto-tallas {
    margin-top: 5px;
}


.opcion-talla {
    min-width: 55px;

    padding: 9px 16px;
}


/* ==================================================
   OPCIÓN AGOTADA
================================================== */

.opcion-boton.opcion-agotada {
    background-color: #eeeeee;

    color: #999999;

    border-color: #d0d0d0;

    cursor: not-allowed;

    text-decoration: line-through;

    transform: none;
}


.opcion-boton.opcion-agotada:hover {
    border-color: #d0d0d0;

    transform: none;
}


/* ==================================================
   DISPONIBILIDAD
================================================== */

.producto-disponibilidad {
    margin-top: 16px;

    margin-bottom: 0;

    padding-top: 12px;

    border-top: 1px solid #e1ddcf;

    font-family: "Alegreya", serif;

    font-size: 16px;

    font-weight: 500;

    color: #555555;
}


/* ==================================================
   DESCRIPCIÓN
================================================== */

.producto-descripcion {
    margin-bottom: 35px;
}


.producto-descripcion h2 {
    font-family: "Alegreya", serif;

    font-size: 24px;

    font-weight: normal;

    margin-bottom: 10px;
}


.producto-descripcion p {
    font-family: "Alegreya", serif;

    font-size: 18px;

    line-height: 1.7;

    color: var(--color-gris);
}


/* ==================================================
   CATEGORÍA
================================================== */

.producto-categoria {
    margin-bottom: 30px;

    font-family: "Alegreya", serif;

    font-size: 17px;
}


.producto-categoria span {
    color: var(--color-gris);
}


.producto-categoria a {
    color: var(--color-dorado);

    text-decoration: none;
}


.producto-categoria a:hover {
    text-decoration: underline;
}


/* ==================================================
   BOTONES DEL PRODUCTO
================================================== */

.producto-botones {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 15px;

    margin-top: 35px;
}

.boton-whatsapp {

    display: inline-block;

    padding: 12px 30px;

    background-color: #000000;

    color: #B8AD81;

    border: 2px solid #B8AD81;

    border-radius: 6px;

    font-family: "Alegreya", serif;

    font-size: 18px;

    cursor: pointer;

    transition: all 0.3s ease;
}


.boton-whatsapp:hover {

    background-color: #B8AD81;

    color: #000000;
}


.boton-whatsapp:disabled {

    background-color: #eeeeee;

    color: #999999;

    border-color: #d0d0d0;

    cursor: not-allowed;
}

.producto-botones .boton-volver {
    display: inline-block;

    padding: 12px 30px;

    background-color: #000000;

    color: #B8AD81;

    border: 2px solid #B8AD81;

    border-radius: 6px;

    text-decoration: none;

    font-family: "Alegreya", serif;

    font-size: 18px;

    transition: all 0.3s ease;
}


.producto-botones .boton-volver:hover {
    background-color: #B8AD81;

    color: #000000;
}


/* ==================================================
   SIN IMAGEN
================================================== */

.producto-galeria .producto-sin-imagen {
    width: 100%;

    aspect-ratio: 9 / 16;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: var(--color-crema);

    color: var(--color-gris);

    font-family: "Alegreya", serif;

    border-radius: 10px;
}


/* ==================================================
   TABLET
================================================== */

@media screen and (max-width: 1024px) {

    .producto-detalle {
        grid-template-columns: 1fr 1fr;

        gap: 40px;

        padding: 60px 25px;
    }


    .producto-galeria {
        max-width: 500px;
    }


    .producto-detalle-informacion h1 {
        font-size: 55px;
    }


    .producto-precio {
        font-size: 25px;
    }


    .producto-miniaturas {
        grid-template-columns: repeat(5, 1fr);

        gap: 8px;
    }


}


/* ==================================================
   MÓVIL
================================================== */

@media screen and (max-width: 700px) {

    .producto-detalle {
        width: 100%;

        padding: 50px 20px;

        display: flex;

        flex-direction: column;

        gap: 40px;
    }


    .producto-galeria {
        width: 100%;

        max-width: 500px;

        margin: 0 auto;
    }


    .producto-imagen-principal img {
        aspect-ratio: 9 / 16;
    }


    .producto-miniaturas {
        grid-template-columns: repeat(4, 1fr);

        gap: 8px;

        overflow-x: visible;
    }


    .producto-detalle-informacion {
        width: 100%;

        padding-top: 0;

        text-align: center;
    }


    .producto-detalle-informacion h1 {
        font-size: 48px;
    }


    .producto-precio {
        font-size: 24px;
    }


    /* ----------------------------------------------
       VARIANTES EN MÓVIL
    ---------------------------------------------- */

    .producto-variantes {
        width: 100%;

        padding: 16px;

        margin-top: 20px;
    }


    .producto-opcion {
        text-align: left;
    }


    .producto-opciones-botones {
        gap: 8px;
    }


    .opcion-boton {
        padding: 10px 15px;

        font-size: 16px;
    }


    .opcion-talla {
        min-width: 52px;

        padding: 9px 14px;
    }


    .producto-disponibilidad {
        text-align: left;
    }


    .producto-descripcion p {
        font-size: 17px;
    }


    .producto-categoria {
        font-size: 16px;
    }


    .boton-volver {
        width: 100%;

        max-width: 300px;
    }

}


/* ==================================================
   MÓVILES PEQUEÑOS
================================================== */

@media screen and (max-width: 380px) {

    .producto-detalle {
        padding: 40px 15px;
    }


    .producto-detalle-informacion h1 {
        font-size: 42px;
    }


    .producto-miniaturas {
        grid-template-columns: repeat(3, 1fr);
    }


    .producto-precio {
        font-size: 22px;
    }


    .producto-variantes {
        padding: 14px;
    }


    .opcion-boton {
        padding: 9px 13px;

        font-size: 15px;
    }


    .opcion-talla {
        min-width: 48px;

        padding: 8px 12px;
    }

}