/* ==================================================
   PÁGINA DE PRODUCTO
================================================== */

.pagina-producto {

    max-width: 1200px;

    margin: 0 auto;

    padding:
        75px
        5%
        120px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(320px, 0.85fr);

    gap: 85px;

    align-items: start;

}



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

.producto-galeria {

    min-width: 0;

}


.producto-imagen-principal {

    width: 100%;

    overflow: hidden;

    background: #f2f2f2;

}


.producto-imagen-principal img {

    width: 100%;

    height: auto;

    aspect-ratio: 0.82;

    display: block;

    object-fit: cover;

}



/* ==================================================
   INFORMACIÓN
================================================== */

.producto-compra {

    min-width: 0;

    padding-top: 10px;

}


.producto-compra h1 {

    margin-bottom: 18px;

    font-size:
        clamp(
            34px,
            4vw,
            54px
        );

    line-height: 1;

    font-weight: 400;

    text-transform: lowercase;

}


.producto-precio-pagina {

    margin-bottom: 45px;

    color: #ff006e;

    font-size: 22px;

}



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

.producto-opcion {

    margin-bottom: 32px;

}


.opcion-titulo {

    display: block;

    margin-bottom: 13px;

    font-size: 14px;

    font-weight: 400;

}


.opcion-titulo strong {

    font-weight: 400;

}



/* ==================================================
   COLORES
================================================== */

.colores-producto {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}


.color-producto {

    width: 30px;

    height: 30px;

    padding: 0;

    position: relative;

    border:
        1px solid #999999;

    border-radius: 50%;

    background:
        var(--color-producto);

    cursor: pointer;

}


.color-producto::after {

    content: "";

    position: absolute;

    inset: -5px;

    border:
        1px solid transparent;

    border-radius: 50%;

}


.color-producto.color-activo::after {

    border-color:
        #111111;

}



/* ==================================================
   SELECT
================================================== */

.selector-producto {

    width: 100%;

    min-height: 48px;

    padding:
        0
        14px;

    border:
        1px solid #999999;

    border-radius: 0;

    background:
        transparent;

    color:
        #111111;

    font-family:
        inherit;

    font-size:
        15px;

}



/* ==================================================
   PERSONALIZAR
================================================== */

.boton-personalizar-producto {

    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid #111111;

    background:
        transparent;

    color:
        #111111;

    text-decoration: none;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.boton-personalizar-producto:hover {

    background:
        #13aec0;

    color:
        #000000;

}



/* ==================================================
   CANTIDAD
================================================== */

.cantidad-producto {

    width: 145px;

    height: 45px;

    display: grid;

    grid-template-columns:
        42px
        1fr
        42px;

    border:
        1px solid #999999;

}


.cantidad-producto button {

    padding: 0;

    border: none;

    border-radius: 0;

    background: transparent;

    color: #111111;

    cursor: pointer;

    font-size: 20px;

}


.cantidad-producto input {

    width: 100%;

    min-width: 0;

    border: none;

    outline: none;

    background: transparent;

    text-align: center;

    font-family: inherit;

    font-size: 15px;

    -moz-appearance: textfield;

}


.cantidad-producto
input::-webkit-inner-spin-button,
.cantidad-producto
input::-webkit-outer-spin-button {

    margin: 0;

    -webkit-appearance: none;

}



/* ==================================================
   BOTONES DE COMPRA
================================================== */

.boton-carrito-producto,
.boton-comprar-producto {

    width: 100%;

    min-height: 54px;

    margin-bottom: 12px;

    border-radius: 0;

    cursor: pointer;

    font-family: inherit;

    font-size: 14px;

    transition:
        opacity 0.2s ease;

}


.boton-carrito-producto {

    border:
        1px solid #111111;

    background:
        #111111;

    color:
        #ffffff;

}


.boton-comprar-producto {

    border:
        1px solid #111111;

    background:
        transparent;

    color:
        #111111;

}


.boton-carrito-producto:hover,
.boton-comprar-producto:hover {

    opacity: 0.78;

}



/* ==================================================
   MENSAJE
================================================== */

/*
Restricciones de entrega, bajo los botones de compra.
*/
.producto-entrega {

    margin:
        14px
        0
        0;

    color: #555555;

    font-size: 12px;

    line-height: 1.5;

}


.producto-entrega a {

    color: #111111;

    font-weight: 700;

}


/*
Tal cual o personalizado: va pegado a la nota de entrega.
*/
.producto-devolucion {

    margin-top: 8px;

}


/*
Cuidados de la ropa, plegados para no alargar la ficha.
*/
.producto-cuidados {

    margin:
        12px
        0
        0;

    border-top:
        1px solid rgba(17, 17, 17, 0.12);

    padding-top: 10px;

    color: #555555;

    font-size: 12px;

    line-height: 1.5;

}


.producto-cuidados summary {

    color: #111111;

    font-weight: 800;

    cursor: pointer;

}


.producto-cuidados ul {

    margin:
        8px
        0
        6px;

    padding-left: 18px;

}


.producto-cuidados p {

    margin: 0;

}


.producto-cuidados a {

    color: #111111;

    font-weight: 700;

}


.mensaje-producto {

    min-height: 24px;

    margin:
        4px
        0
        20px;

    color:
        #ff006e;

    font-size: 13px;

}



/* ==================================================
   COMPARTIR
================================================== */

.producto-compartir {

    display: flex;

    align-items: center;

    gap: 9px;

    padding-top: 15px;

    border-top:
        1px solid #dddddd;

}


.producto-compartir > span {

    margin-right: 7px;

    font-size: 13px;

}


.compartir-boton {

    width: 28px;

    height: 28px;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid #111111;

    border-radius: 50%;

    background:
        transparent;

    color:
        #111111;

    cursor: pointer;

    font-size: 11px;

}



/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 850px) {

    .pagina-producto {

        grid-template-columns:
            1fr;

        gap: 45px;

        padding:
            50px
            20px
            80px;

    }


    .producto-imagen-principal {

        max-width: 620px;

        margin:
            0 auto;

    }


    .producto-compra {

        max-width: 620px;

        width: 100%;

        margin:
            0 auto;

    }

}



/* ==================================================
   ZONAS TÁCTILES (MÓVIL)

   Mínimo 44 × 44. Los swatches y los botones de
   compartir no cambian de tamaño visible: se amplía
   solo su área táctil con un pseudo-elemento, y se
   separan para que las áreas no se pisen.
================================================== */

@media (max-width: 850px) {

    .cantidad-producto {

        height: 48px;

        grid-template-columns:
            48px
            1fr
            48px;

    }


    .colores-producto {

        gap: 14px;

    }


    .color-producto::before {

        content: "";

        position: absolute;

        inset: -7px;

        border-radius: 50%;

    }


    .producto-compartir {

        gap: 16px;

    }


    .compartir-boton {

        position: relative;

    }


    .compartir-boton::before {

        content: "";

        position: absolute;

        inset: -8px;

        border-radius: 50%;

    }

}



@media (max-width: 500px) {

    .pagina-producto {

        padding-top:
            30px;

    }


    .producto-compra h1 {

        font-size:
            36px;

    }


    .producto-precio-pagina {

        margin-bottom:
            32px;

    }


    .producto-opcion {

        margin-bottom:
            27px;

    }

}

/* ==================================================
   PRODUCTO DINÁMICO
================================================== */

.producto-cargando,
.producto-error {

    max-width: 1200px;

    margin:
        0
        auto;

    padding:
        70px
        5%;

    color: #777777;

}


.producto-error {

    color: #ff006e;

}


.producto-categoria-pagina {

    margin-bottom: 12px;

    color: #777777;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

}


.producto-descripcion-pagina {

    margin-bottom: 35px;

    color: #666666;

    font-size: 15px;

    line-height: 1.6;

}