/* =========================================================
   MI HUELLITA
   CSS COMPLETO - DETALLE DEL PRODUCTO + PAGO YAPE
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --purple: #4b168d;
    --purple-dark: #30105f;
    --purple-medium: #6125a4;

    --purple-light: #eee6fb;
    --purple-soft: #f8f5fd;

    --pink: #e92670;
    --pink-light: #fff0f6;

    --text: #24173a;
    --text-light: #62586d;
    --muted: #80758d;

    --white: #ffffff;

    --border: #e7deef;

    --green: #239447;
    --green-light: #eaf8ef;

    --yape: #742284;
    --yape-light: #f4e9f7;

    --shadow-sm:
        0 5px 18px rgba(67, 27, 116, 0.08);

    --shadow:
        0 18px 45px rgba(67, 27, 116, 0.13);

    --shadow-lg:
        0 25px 70px rgba(67, 27, 116, 0.18);

    --radius: 18px;
    --radius-lg: 28px;

    --transition: all .3s ease;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {

    box-sizing: border-box;

    margin: 0;
    padding: 0;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family: "Nunito", sans-serif;

    color: var(--text);

    background:
        linear-gradient(
            180deg,
            #faf8fd 0%,
            #ffffff 45%
        );

    line-height: 1.5;

    min-height: 100vh;

    overflow-x: hidden;

}


button,
input {

    font-family: "Nunito", sans-serif;

}


button {

    cursor: pointer;

    border: none;

}


img {

    display: block;

    max-width: 100%;

}


a {

    color: inherit;

    text-decoration: none;

}


/* =========================================================
   DETALLE DEL PRODUCTO
   ========================================================= */

.product-detail {

    width: min(
        calc(100% - 40px),
        1200px
    );

    margin: auto;

    padding: 35px 0 80px;

}


/* =========================================================
   BOTÓN VOLVER
   ========================================================= */

.back-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 28px;

    padding: 11px 18px;

    border: 1px solid var(--border);

    border-radius: 25px;

    background: var(--white);

    color: var(--purple);

    font-size: 14px;

    font-weight: 800;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);

}


.back-btn:hover {

    background: var(--purple);

    color: var(--white);

    transform: translateX(-4px);

    box-shadow: var(--shadow);

}


/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.detail-container {

    display: grid;

    grid-template-columns:
        1.05fr
        .95fr;

    gap: 65px;

    align-items: start;

}


/* =========================================================
   GALERÍA
   ========================================================= */

.detail-gallery {

    position: sticky;

    top: 105px;

}


/* =========================================================
   IMAGEN PRINCIPAL
   ========================================================= */

.main-image {

    position: relative;

    width: 100%;

    height: 530px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background:
        radial-gradient(
            circle at center,
            #ffffff 0%,
            #faf8fd 50%,
            #f0eaf6 100%
        );

    box-shadow: var(--shadow);

}


.main-image::before {

    content: "🐾";

    position: absolute;

    top: 25px;
    left: 28px;

    color: var(--purple);

    font-size: 28px;

    opacity: .15;

}


.main-image::after {

    content: "";

    position: absolute;

    left: 18%;
    right: 18%;

    bottom: 35px;

    height: 20px;

    border-radius: 50%;

    background:
        rgba(45, 20, 65, .13);

    filter: blur(12px);

}


.main-image img {

    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 35px;

    transition:
        transform .5s ease;

}


.main-image:hover img {

    transform: scale(1.04);

}


/* =========================================================
   MINIATURAS
   ========================================================= */

.thumbnail-list {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 12px;

    margin-top: 15px;

}


.thumbnail {

    width: 100%;

    height: 95px;

    object-fit: cover;

    padding: 5px;

    border: 2px solid transparent;

    border-radius: 13px;

    background: var(--white);

    cursor: pointer;

    box-shadow:
        0 4px 13px
        rgba(60, 30, 90, .08);

    transition: var(--transition);

}


.thumbnail:hover {

    border-color: var(--purple);

    transform: translateY(-3px);

}


.thumbnail.active {

    border-color: var(--purple);

    box-shadow:
        0 0 0 3px var(--purple-light),
        0 6px 18px
        rgba(75, 22, 141, .15);

}


/* =========================================================
   INFORMACIÓN DEL PRODUCTO
   ========================================================= */

.detail-info {

    padding: 8px 0;

}


/* =========================================================
   CATEGORÍA
   ========================================================= */

.detail-category {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 13px;

    padding: 7px 13px;

    border-radius: 20px;

    background: var(--purple-light);

    color: var(--purple);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: .5px;

    text-transform: uppercase;

}


/* =========================================================
   TÍTULO
   ========================================================= */

.detail-info h1 {

    margin-bottom: 9px;

    color: var(--purple-dark);

    font-size:
        clamp(
            35px,
            4vw,
            52px
        );

    line-height: 1.05;

    font-weight: 900;

    letter-spacing: -1px;

}


/* =========================================================
   RATING
   ========================================================= */

.detail-rating {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color: #f5a623;

    font-size: 16px;

}


.detail-rating span {

    color: var(--muted);

    font-size: 13px;

    font-weight: 700;

}


/* =========================================================
   PRECIO
   ========================================================= */

.detail-price {

    display: inline-block;

    margin-bottom: 8px;

    color: var(--purple);

    font-size: 36px;

    line-height: 1;

    font-weight: 900;

}


/* =========================================================
   STOCK
   ========================================================= */

.stock {

    margin-bottom: 20px;

    color: var(--green);

    font-size: 14px;

    font-weight: 800;

}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.detail-description {

    margin-bottom: 25px;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--border);

    color: var(--text-light);

    font-size: 16px;

    line-height: 1.7;

    font-weight: 600;

}


/* =========================================================
   CARACTERÍSTICAS
   ========================================================= */

.product-features {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;

    margin-bottom: 28px;

    padding: 18px;

    border:
        1px solid var(--border);

    border-radius: 16px;

    background:
        var(--purple-soft);

}


.product-features div {

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--purple);

    font-size: 13px;

    font-weight: 900;

}


.product-features div span {

    color: var(--text-light);

    font-weight: 700;

}


/* =========================================================
   GRUPOS DE OPCIONES
   ========================================================= */

.option-group {

    margin-bottom: 25px;

}


.option-group h3 {

    margin-bottom: 12px;

    color: var(--purple-dark);

    font-size: 16px;

    font-weight: 900;

}


/* =========================================================
   COLORES
   ========================================================= */

.color-options {

    display: flex;

    flex-wrap: wrap;

    gap: 11px;

    margin-bottom: 10px;

}


.color-option {

    position: relative;

    width: 38px;
    height: 38px;

    border:
        3px solid
        var(--white);

    border-radius: 50%;

    box-shadow:
        0 0 0 1px #d9d1df,
        0 4px 10px
        rgba(50, 20, 70, .10);

    transition: var(--transition);

}


.color-option:hover {

    transform: scale(1.15);

    box-shadow:
        0 0 0 2px var(--purple),
        0 5px 14px
        rgba(75, 22, 141, .20);

}


.color-option.selected {

    transform: scale(1.12);

    box-shadow:
        0 0 0 3px var(--purple-light),
        0 0 0 5px var(--purple);

}


.option-group > p {

    color: var(--muted);

    font-size: 13px;

    font-weight: 600;

}


.option-group > p strong {

    color: var(--purple);

    font-weight: 900;

}


/* =========================================================
   CANTIDAD
   ========================================================= */

.quantity {

    width: 145px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background: var(--white);

    box-shadow:
        0 4px 12px
        rgba(60, 30, 90, .05);

}


.quantity button {

    width: 45px;

    height: 45px;

    background:
        var(--purple-light);

    color: var(--purple);

    font-size: 21px;

    font-weight: 900;

    transition: var(--transition);

}


.quantity button:hover {

    background: var(--purple);

    color: var(--white);

}


.quantity span {

    min-width: 45px;

    text-align: center;

    color: var(--purple-dark);

    font-size: 17px;

    font-weight: 900;

}


/* =========================================================
   TOTAL
   ========================================================= */

.product-total {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin: 5px 0 25px;

    padding: 17px 20px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        var(--purple-soft);

}


.product-total span {

    color: var(--text-light);

    font-size: 15px;

    font-weight: 800;

}


.product-total strong {

    color: var(--purple);

    font-size: 25px;

    font-weight: 900;

}


/* =========================================================
   MÉTODOS DE PAGO
   ========================================================= */

.payment-options {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

}


.payment-card {

    position: relative;

    min-height: 95px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background: var(--white);

    cursor: pointer;

    transition: var(--transition);

}


.payment-card:hover {

    border-color: #cbb6de;

    transform: translateY(-2px);

    box-shadow: var(--shadow-sm);

}


.payment-card input {

    position: absolute;

    opacity: 0;

}


.payment-card:has(input:checked) {

    border:
        2px solid var(--purple);

    background:
        var(--purple-soft);

    box-shadow:
        0 0 0 3px var(--purple-light);

}


.payment-icon {

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background:
        var(--purple-light);

    font-size: 19px;

}


.payment-card strong {

    display: block;

    color: var(--purple-dark);

    font-size: 14px;

    font-weight: 900;

}


.payment-card small {

    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.2;

    font-weight: 700;

}


/* =========================================================
   BOTONES DE COMPRA
   ========================================================= */

.buy-actions {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;

    margin-top: 10px;

}


/* =========================================================
   AGREGAR AL CARRITO
   ========================================================= */

.cart-btn {

    min-height: 58px;

    padding: 12px 15px;

    border:
        2px solid var(--purple);

    border-radius: 30px;

    background:
        var(--white);

    color: var(--purple);

    font-size: 15px;

    font-weight: 900;

    transition: var(--transition);

}


.cart-btn:hover {

    background:
        var(--purple-light);

    transform: translateY(-3px);

    box-shadow:
        0 10px 20px
        rgba(75, 22, 141, .12);

}


/* =========================================================
   COMPRAR AHORA
   ========================================================= */

.buy-btn {

    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 12px 15px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-medium)
        );

    color: var(--white);

    font-size: 15px;

    font-weight: 900;

    box-shadow:
        0 10px 22px
        rgba(75, 22, 141, .20);

    transition: var(--transition);

}


.buy-btn:hover {

    background:
        linear-gradient(
            135deg,
            var(--purple-dark),
            var(--purple)
        );

    transform: translateY(-3px);

    box-shadow:
        0 15px 28px
        rgba(75, 22, 141, .28);

}


.buy-btn:active,
.cart-btn:active {

    transform: translateY(-1px);

}


/* =========================================================
   HEADER ICONS
   ========================================================= */

.header-icon {

    position: relative;

    cursor: pointer;

}


/* =========================================================
   =========================================================
   SECCIÓN DE PAGO YAPE
   =========================================================
   ========================================================= */


/* =========================================================
   FONDO DEL MODAL
   ========================================================= */

.yape-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(35, 18, 50, .62);

    backdrop-filter: blur(7px);

}


.yape-modal.active {

    display: flex;

    animation:
        modalFadeIn .3s ease;

}


@keyframes modalFadeIn {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}


/* =========================================================
   CAJA PRINCIPAL DEL PAGO
   ========================================================= */

.yape-box {

    position: relative;

    width: min(
        100%,
        470px
    );

    max-height: 90vh;

    overflow-y: auto;

    padding: 35px;

    border:
        1px solid
        rgba(255,255,255,.7);

    border-radius: 28px;

    background:
        var(--white);

    box-shadow:
        0 30px 90px
        rgba(30, 10, 50, .30);

    animation:
        yapeBoxIn .35s ease;

}


@keyframes yapeBoxIn {

    from {

        opacity: 0;

        transform:
            translateY(25px)
            scale(.96);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   BOTÓN CERRAR
   ========================================================= */

.yape-close {

    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        var(--purple-light);

    color:
        var(--purple);

    font-size: 20px;

    font-weight: 900;

    transition: var(--transition);

}


.yape-close:hover {

    background:
        var(--purple);

    color:
        var(--white);

    transform:
        rotate(90deg);

}


/* =========================================================
   ENCABEZADO YAPE
   ========================================================= */

.yape-header {

    text-align: center;

    margin-bottom: 25px;

}


.yape-logo {

    width: 64px;
    height: 64px;

    display: grid;

    place-items: center;

    margin: 0 auto 14px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            var(--yape),
            #9c36b5
        );

    color:
        var(--white);

    font-size: 30px;

    box-shadow:
        0 10px 25px
        rgba(116,34,132,.25);

}


.yape-header h2 {

    margin-bottom: 5px;

    color:
        var(--purple-dark);

    font-size: 27px;

    font-weight: 900;

}


.yape-header p {

    color:
        var(--muted);

    font-size: 13px;

    font-weight: 600;

}


/* =========================================================
   RESUMEN DEL PAGO
   ========================================================= */

.yape-summary {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 22px;

    padding: 15px 17px;

    border:
        1px solid
        var(--border);

    border-radius: 15px;

    background:
        var(--purple-soft);

}


.yape-summary span {

    color:
        var(--text-light);

    font-size: 13px;

    font-weight: 800;

}


.yape-summary strong {

    color:
        var(--purple);

    font-size: 22px;

    font-weight: 900;

}


/* =========================================================
   CAMPOS DEL FORMULARIO
   ========================================================= */

.yape-field {

    margin-bottom: 18px;

}


.yape-field label {

    display: block;

    margin-bottom: 7px;

    color:
        var(--purple-dark);

    font-size: 14px;

    font-weight: 900;

}


.yape-input {

    width: 100%;

    height: 52px;

    padding: 0 16px;

    border:
        2px solid
        var(--border);

    border-radius: 13px;

    outline: none;

    background:
        var(--white);

    color:
        var(--text);

    font-size: 15px;

    font-weight: 700;

    transition:
        var(--transition);

}


.yape-input::placeholder {

    color:
        #aaa1b1;

    font-weight: 600;

}


.yape-input:hover {

    border-color:
        #cbb6de;

}


.yape-input:focus {

    border-color:
        var(--purple);

    box-shadow:
        0 0 0 4px
        var(--purple-light);

}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.yape-info {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin: 5px 0 20px;

    padding: 13px;

    border-radius: 13px;

    background:
        var(--yape-light);

    color:
        var(--yape);

    font-size: 12px;

    line-height: 1.5;

    font-weight: 700;

}


.yape-info-icon {

    flex-shrink: 0;

    font-size: 18px;

}


/* =========================================================
   BOTÓN REALIZAR TRANSACCIÓN
   ========================================================= */

.yape-submit {

    width: 100%;

    min-height: 56px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            var(--yape),
            #9637ae
        );

    color:
        var(--white);

    font-size: 15px;

    font-weight: 900;

    box-shadow:
        0 12px 25px
        rgba(116,34,132,.22);

    transition:
        var(--transition);

}


.yape-submit:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 17px 30px
        rgba(116,34,132,.30);

}


.yape-submit:active {

    transform:
        translateY(-1px);

}


.yape-submit:disabled {

    opacity: .7;

    cursor: not-allowed;

    transform: none;

}


/* =========================================================
   MENSAJE DE ERROR
   ========================================================= */

.yape-error {

    display: none;

    margin-top: 10px;

    padding: 10px 13px;

    border-radius: 10px;

    background:
        #fff0f0;

    color:
        #c73535;

    font-size: 12px;

    font-weight: 800;

}


.yape-error.active {

    display: block;

}


/* =========================================================
   PANTALLA DE TRANSACCIÓN PROCESANDO
   ========================================================= */

.payment-processing {

    display: none;

    text-align: center;

    padding: 20px 5px;

}


.payment-processing.active {

    display: block;

}


.payment-spinner {

    width: 65px;
    height: 65px;

    margin:
        5px auto 20px;

    border:
        5px solid
        var(--purple-light);

    border-top-color:
        var(--purple);

    border-radius: 50%;

    animation:
        spinner .8s linear infinite;

}


@keyframes spinner {

    to {

        transform:
            rotate(360deg);

    }

}


.payment-processing h3 {

    margin-bottom: 7px;

    color:
        var(--purple-dark);

    font-size: 22px;

    font-weight: 900;

}


.payment-processing p {

    color:
        var(--muted);

    font-size: 13px;

    font-weight: 600;

}


/* =========================================================
   COMPRA VERIFICADA
   ========================================================= */

.payment-success {

    display: none;

    text-align: center;

    padding: 10px 5px 5px;

}


.payment-success.active {

    display: block;

    animation:
        successAppear .5s ease;

}


@keyframes successAppear {

    from {

        opacity: 0;

        transform:
            scale(.85)
            translateY(15px);

    }

    to {

        opacity: 1;

        transform:
            scale(1)
            translateY(0);

    }

}


/* =========================================================
   ICONO CHECK
   ========================================================= */

.success-icon {

    width: 82px;
    height: 82px;

    display: grid;

    place-items: center;

    margin:
        5px auto 20px;

    border-radius: 50%;

    background:
        var(--green-light);

    color:
        var(--green);

    font-size: 42px;

    font-weight: 900;

    box-shadow:
        0 0 0 10px
        rgba(35,148,71,.07);

    animation:
        successPop .5s ease;

}


@keyframes successPop {

    0% {

        transform:
            scale(.4);

        opacity: 0;

    }

    70% {

        transform:
            scale(1.1);

    }

    100% {

        transform:
            scale(1);

        opacity: 1;

    }

}


/* =========================================================
   TEXTO DE COMPRA EXITOSA
   ========================================================= */

.payment-success h3 {

    margin-bottom: 8px;

    color:
        var(--green);

    font-size: 25px;

    font-weight: 900;

}


.payment-success p {

    color:
        var(--text-light);

    font-size: 14px;

    font-weight: 700;

    line-height: 1.6;

}


.success-detail {

    margin-top: 18px;

    padding: 14px;

    border:
        1px solid
        #dcefe2;

    border-radius: 14px;

    background:
        var(--green-light);

    color:
        var(--green);

    font-size: 13px;

    font-weight: 800;

}


/* =========================================================
   BOTÓN CONTINUAR
   ========================================================= */

.success-button {

    width: 100%;

    min-height: 52px;

    margin-top: 20px;

    border-radius: 27px;

    background:
        var(--purple);

    color:
        var(--white);

    font-size: 14px;

    font-weight: 900;

    transition:
        var(--transition);

}


.success-button:hover {

    background:
        var(--purple-dark);

    transform:
        translateY(-2px);

}


/* =========================================================
   OCULTAR ELEMENTOS
   ========================================================= */

.yape-step-hidden {

    display: none !important;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .detail-container {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .detail-gallery {

        position: static;

    }


    .main-image {

        height: 500px;

        max-width: 750px;

        margin: auto;

    }


    .thumbnail-list {

        max-width: 750px;

        margin:
            15px auto 0;

    }


    .detail-info {

        max-width: 750px;

        margin: auto;

    }


    .payment-options {

        grid-template-columns:
            repeat(3, 1fr);

    }

}


/* =========================================================
   TABLET PEQUEÑO
   ========================================================= */

@media (max-width: 700px) {

    .product-detail {

        width:
            min(
                calc(100% - 30px),
                600px
            );

        padding-top: 25px;

    }


    .detail-container {

        gap: 35px;

    }


    .main-image {

        height: 420px;

        border-radius: 22px;

    }


    .main-image img {

        padding: 25px;

    }


    .thumbnail {

        height: 78px;

    }


    .detail-info h1 {

        font-size: 38px;

    }


    .detail-price {

        font-size: 32px;

    }


    .product-features {

        grid-template-columns:
            1fr;

    }


    .payment-options {

        grid-template-columns:
            1fr;

    }


    .payment-card {

        min-height: 70px;

    }


    .buy-actions {

        grid-template-columns:
            1fr;

    }


    /* MODAL YAPE */

    .yape-box {

        padding:
            30px 23px;

        border-radius:
            23px;

    }


    .yape-header h2 {

        font-size: 24px;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 500px) {

    .product-detail {

        width:
            calc(100% - 24px);

        padding:
            20px 0 50px;

    }


    .back-btn {

        margin-bottom: 18px;

        padding:
            9px 14px;

        font-size: 13px;

    }


    .main-image {

        height: 330px;

        border-radius: 18px;

    }


    .main-image img {

        padding: 18px;

    }


    .thumbnail-list {

        gap: 7px;

        margin-top: 10px;

    }


    .thumbnail {

        height: 65px;

        padding: 3px;

        border-radius: 9px;

    }


    .detail-info {

        padding-top: 5px;

    }


    .detail-category {

        font-size: 10px;

        padding:
            6px 11px;

    }


    .detail-info h1 {

        margin-bottom: 8px;

        font-size: 32px;

        letter-spacing: -.5px;

    }


    .detail-rating {

        flex-wrap: wrap;

        gap: 6px;

        font-size: 14px;

    }


    .detail-rating span {

        font-size: 11px;

    }


    .detail-price {

        margin-bottom: 7px;

        font-size: 30px;

    }


    .stock {

        font-size: 12px;

    }


    .detail-description {

        font-size: 14px;

        line-height: 1.6;

    }


    .product-features {

        padding: 15px;

        gap: 10px;

    }


    .product-features div {

        font-size: 12px;

    }


    .option-group {

        margin-bottom: 22px;

    }


    .option-group h3 {

        font-size: 15px;

    }


    .color-option {

        width: 34px;
        height: 34px;

    }


    .quantity {

        width: 135px;

    }


    .quantity button {

        width: 42px;

        height: 42px;

    }


    .product-total {

        padding:
            15px 17px;

    }


    .product-total strong {

        font-size: 22px;

    }


    .payment-card {

        min-height: 65px;

    }


    .buy-actions {

        gap: 10px;

    }


    .cart-btn,
    .buy-btn {

        min-height: 55px;

        font-size: 14px;

    }


    /* MODAL YAPE */

    .yape-modal {

        padding:
            12px;

    }


    .yape-box {

        width: 100%;

        max-height: 94vh;

        padding:
            28px 18px 22px;

        border-radius:
            20px;

    }


    .yape-close {

        width: 34px;
        height: 34px;

        top: 11px;
        right: 11px;

    }


    .yape-logo {

        width: 56px;
        height: 56px;

        font-size: 25px;

    }


    .yape-header {

        margin-bottom: 20px;

    }


    .yape-header h2 {

        font-size: 22px;

    }


    .yape-summary {

        padding:
            13px 14px;

    }


    .yape-summary strong {

        font-size: 19px;

    }


    .yape-input {

        height: 50px;

        font-size: 14px;

    }


    .yape-submit {

        min-height: 54px;

    }


}


/* =========================================================
   MOBILE MUY PEQUEÑO
   ========================================================= */

@media (max-width: 380px) {

    .main-image {

        height: 290px;

    }


    .thumbnail-list {

        gap: 5px;

    }


    .thumbnail {

        height: 58px;

    }


    .detail-info h1 {

        font-size: 29px;

    }


    .product-total {

        padding:
            13px 15px;

    }


    .product-total span {

        font-size: 13px;

    }


    .product-total strong {

        font-size: 20px;

    }


    .yape-box {

        padding:
            25px 15px 20px;

    }


    .yape-header h2 {

        font-size: 20px;

    }


    .yape-info {

        font-size: 11px;

    }

}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {

    outline:
        3px solid
        rgba(75, 22, 141, .30);

    outline-offset: 3px;

}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;

    }

}