@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ------ Reset ------ */
:root {
    --color-background: black;
    --color-background-Dark: #1f1f1f;
    --color-icons: coral;
    --color-text-light: white;
    --color-text-emphasis: #5C2FC2;
    --color-body-soft: #f1f1f1;
    --color-white-enphasis: #f9f9f9;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: rubik, sans-serif;
}

*::selection {
    background-color: var(--color-text-emphasis);
}

body {
    background-color: var(--color-body-soft);
    display: flex;
    flex-direction: column;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}


.banner {
    height: 70vh;
    background-color: var(--color-text-emphasis);
    background-image: url(../imgs/background.jpg);
    background-size: cover;
    justify-content: center;
    align-items: center;
    color: white;
    background-position: center;
    font-size: 3rem;
    position: relative;
    display: flex;
    width: 100%;

}
.banner h1 {
    font-weight: 500;
    text-transform: uppercase;
}


.banner-overlay {
    height: 50vh;
    width: 100%;
    opacity: .3;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

.text__header {
    position: relative;
    z-index: 50;
    font-size: 1.5rem;
}

.cart-icon {
    color: var(--color-text-emphasis);
    font-size: 25px;
    cursor: pointer;
    transition: all .3s ease;
}

.cart-icon:hover {
    transform: scale(1.4);
}

.cart {
    display: flex;
    gap: 30px;
    flex-direction: row;
    padding: 40px;
    justify-content: space-between;
}


.cart__container {
    width: 70%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--color-white-enphasis);
}

.cart__container i {
    font-size: 1.45rem;
    margin-left: 10px;
}

.cart-header {
    text-align: center;
    font-weight: 400;
    margin-left: 5px;
}

.cart__label {
    height: 50px;
    display: flex;
    font-size: 2rem;
    text-transform: uppercase;
    border-bottom: 1px solid gray;
    color: var(--color-text-emphasis);
    align-items: center;
    background-color: var(--color-white-enphasis);
}

.product-image {
    min-width: 100px;
    width: 200px;
    background-color: #fff;
    object-fit: contain;
    flex-grow: 1;
}

.cart__item {
    display: flex;
    height: 200px;
    padding: 20px 0;
    flex-direction: row;
    border-bottom: 1px solid gray;
}

.text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    word-wrap: break-word;
    white-space: normal;
}

.text a {
    color: var(--color-text-emphasis);
    font-size: 1rem;
}

.text__line {
    display: flex;
    font-size: 1.2rem;
}
.text__line b {
    font-weight: 500;
    color: var(--color-text-emphasis);
}
.prefix {
    color: var(--color-text-emphasis);
}

.label {
    text-decoration: none;
    font-size: 2rem;
    margin: 20px 0 20px 0;
}



.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    width: 30%;
}

.quantity-control button {
    background-color: var(--color-background-Dark);
    color: var(--color-text-light);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: all .3s ease;
}

.quantity-control button:hover {
    background-color: var(--color-text-emphasis);
}

.quantity-control input {
    width: 50px;
    text-align: center;
}

.price__updated {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.cart__info {
    width: 30%;
    height: 100%;
    min-height: 200px;
    background-color: var(--color-white-enphasis);
    padding: 20px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
}

.cart__info-line {
    display: flex;
    flex-direction: row;
    padding: 40px 0 40px;
    justify-content: space-between;
    border-bottom: 1px solid gray;
}

.greenb {
    color: var(--color-text-emphasis);
}

.button__pay {
    padding: 12px 0;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
    background-image: linear-gradient(45deg, #6a3093, #a044ff);
    box-shadow: 0 4px 10px 0 rgba(106, 48, 147, 0.3), /* Sombra primaria */
    0 6px 20px 0 rgba(160, 68, 255, 0.2);
    color: #ffff;
    border-radius: 5px;
    border: none;
    transition: background-color .3s ease;
    transition: all .3s ease;
}

.button__pay:hover {
    transform: scale(1.08);
    background-image: linear-gradient(45deg, #B24592, #F15F79);
}



.button__play i {
    padding-right: 20px;
}

.button__clean {
    padding: 12px 0;
    cursor: pointer;
    width: 100%;
    background-color: transparent;
    color: var(--color-text-emphasis);
    border: 2px solid var(--color-text-emphasis);
    margin-top: 10px;
    font-size: 1rem;
    border-radius: 5px;
    transition: all .3s ease;
}

.button__clean:hover {
    transform: scale(1.08);
    color: white;
    background-color: var(--color-text-emphasis);
}

/* cart-button section */
.cart-button {
    height: 70px;
    z-index: 400;
    width: 70px;
    display: none;
    border-radius: 100%;
    justify-content: center;
    align-items: center;
    background-color: var(--color-text-emphasis);
    position: fixed;
    right: 20px;
    bottom: 20px;
    transition: all .3s ease;
}
.cart-button:hover {
    transform: scale(1.2);
}
.cart-button i {
    font-size: 1.5rem;
    color: white;
}

/* MEDIA QUERIES */
/* Media queries para dispositivos móviles */
@media only screen and (max-width: 767px) {
    header {
        padding: 0 30px;
    }

    .esconder-menu, .mostrar-menu {
        display: block;
    }

    .esconder-menu {
        position: absolute;
        top: 30px;
        right: 30px;
        color: var(--color-text-emphasis);
    }

    .menu {
        position: fixed;
        width: 100%;
        height: 100vh;
        background-color: var(--color-background);
        top: 0;
        text-align: center;
        padding: 100px 0;
        right: -100%;
        transition: 0.8s ease-in-out;
    }



    #check:checked ~ .menu {
        right: 0;
    }

    .mostrar-menu {
        font-size: 40px;
        color: var(--color-text-emphasis);
    }

    .cart {
        flex-direction: column;
        padding: 12px;
    }

    .cart__container, .cart__info {
        width: 100%;
    }


    .quantity-control input {
        width: 40px;
    }
    .quantity-control button {
        padding: 10px;
    }

    .cart__item {
        flex-direction: column;
    }
    .cart__item {
        flex-direction: column;
        padding: 10px 0;
        align-items: center;
        min-height: 300px;
        max-height: 600px;
    }

    .cart__label {
        justify-content: center;
    }

    .product-image {
        overflow: hidden;
    }

    .text {
        text-align: center;
    }

    .line2 {
        display: none;
    }
    .label {
        margin: 0;
    }

    .text> a {
        font-size: 2rem;
        max-width: 100%;
    }


    .text__line {
        font-size: 1.2rem;
        margin: auto;
    }

    .cart-button {
        display: flex;
    }
    a.carrito {
        display: none;
    }
}

/* Media queries para tablets */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .cart {
        flex-direction: column;
        padding: 20px;
    }

    .cart__container, .cart__info {
        width: 100%;
    }



    .product-image {
        width: 100px;
    }
}

/* Media queries para escritorios */
@media only screen and (min-width: 1025px) {
    .cart {
        flex-direction: row;
    }

    .cart__container {
        width: 70%;
    }

    .cart__info {
        width: 30%;
    }

    .cart__item {
        flex-direction: row;
        padding: 20px 0;
    }

    .product-image {
        width: 200px;
    }
}


.err {
    color: red;
    font-size: 1.25rem;
}

.final {
    margin: 0;
}