﻿.body-cart-shopping {
    width: 100%;
    background: #fff;
/*    background-image: linear-gradient(to left, #00003d, rgb(2, 23, 43), #00003d,rgb(2, 23, 43) );
*/}
.container-user {
    width: 100%;
    display: grid;
    place-items: center;
}
.name_user {
/*    background: white;
*/    width: 90%;
    display: flex;
    border: none;
    border-radius: 4px 4px 0 0;
}
.name_user > h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 0 10px;
}
.icon_user-circle {
    margin: 10px;
    font-size: 30px;
}
.container_cart-shopping {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    grid-gap: 2rem;
    align-items: center;
    text-align: center;
    padding: 40px;
    width: 90%;
    height: 96%;
    background: #fff;
}
.container_box {
    padding: 10px;
}
.container__icon {
    font-size: 35px;
    padding: 10px;
}
.container_box h4 {
    font-size: 20px;
    font-weight: 100;
    margin-bottom: 8px;
    padding: 0 0 30px;
}
.button_pay_cart_shopping {
    background: #fff;
    width: 90%;
    margin: auto;
    padding:15px;
    height: auto;
}
@media(max-width: 500px) {
    .button_pay_cart_shopping {
        padding: 10px 0 60px 0;
    }
}  
.button-cart-shopping {
    background: linear-gradient(to right,#c00000, #813e3e);
    width: 30%;
    height: 44px;
    display: inline-flex;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-left: 10%;
}
.button-cart-shopping:hover{
    background: linear-gradient(to right,#813e3e, #c00000);
}
.button-cart-shopping a {
    display:inline-block;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    color: #fff;
    font-weight: 700;   
}
@media(max-width: 770px){
    .button-cart-shopping{
        width:30%;      
    }
}
@media(max-width: 630px) {
    .button-cart-shopping {
        width: 40%;
        margin-left: 10%;
    }
}
@media(max-width: 500px) {
    .button-cart-shopping {
        width: 70%;
        margin-left:15%;
    }
}
.pay_product {
    background-image: linear-gradient(#349748,#195f14);
    width: 100px;
    height: 44px;
    display: inline-flex;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    float: right;
    margin-right: 10%;
}
.pay_product:hover {
    background-image: linear-gradient(#195f14,#349748);
}
.pay_product a {
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}
@media(max-width: 630px) {
    .pay_product {
        width: 30%;
        height: 44px;
        align-items: center;
        margin-right: 10%;
        display: inline-flex;
        justify-content: center;
    }
    .pay_product a {
        justify-content: center;
        text-decoration: none;
        font-size: 16px;
        color: #fff;
        font-weight: 700;
    }
}
@media(max-width: 500px) {
    .pay_product {
        width: 70%;
        height: 44px;
        align-items: center;
        margin-right: 15%;
        margin-top: 10px;
        display: inline-flex;
        justify-content: center;
    }
}
    /*Productos-Relacionados*/
.container-related h3 {
    color: white;
}
.product-related {
    cursor: pointer;
    margin-bottom: 2rem;
}
.product-related img {
    transition: 0.3s all;
}
.price-eye-related {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px;
}
.eye-related a i {
    color: white;
}
.eye-related a i:hover {
    color: #c00000;
}
.price-related {
    color: white;
}
.price-related u {
    text-decoration-color: #c00000;
}
.p-name u {
    text-decoration-color: #c00000;
}
.product-related:hover img {
    opacity: 0.7;
}
.p-name {
    color: white;
}
.product-related .p-buy {
    border: none;
    background-image: linear-gradient(213deg,#ff7b48 7%,#f73c22 92%);
    padding: 10px;
    color: #f7f7f7;
    border-radius: 5px;
    transform: translate(20px);
    opacity: 0;
    transition: 0.3s all;
}
.product-related:hover .p-buy {
    transform: translate(0px);
    opacity: 1;
}
th, td {
    text-align: center;
}
thead {
    background: linear-gradient(90deg, #012a36 0%, #003d4a 50%, #00c4d6 100%);
    color: azure;
}
.descripcion-header {
    width: 50%;
}
.eliminar-header {
    width: 25%;
}
 /* Agrega las transiciones para la animación */
.fade-out {
    opacity: 0;
    height: 0;
    padding: 0;
    transition: all 0.3s ease;
}
/* Agrega una animación de ajuste de tamaño a la tabla */
#TablaCarrito {
    border-radius: 10px;
    transition: height 0.3s ease;
    height: auto; /* Agrega esta línea para que la altura se ajuste automáticamente */
    overflow: hidden; /* Agrega esta línea para ocultar el contenido que desborda la tabla */
}
/* Agrega la clase para reducir el tamaño de la tabla */
.reduce-height {
    height: 0;
    padding: 0;
    transition: height 0.5s ease;
}
.delete-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    background: linear-gradient(to right, #a80f0f, #640404);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}
.delete-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.delete-button:hover {
    background: linear-gradient(to right, #640404, #a80f0f);
}
.delete-button:hover::before {
    opacity: 1;
}
.delete-button:hover span {
    color: #ddd;
}
.delete-button:hover i {
    color: #ddd;
}
.delete-icon {
    margin-right: 8px;
}
    /*   css IA*/
.cantidad-column {
    text-align: center;
}
.cantidad-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cantidad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}
.cantidad-button:focus {
    outline: none;
}
.cantidad-button i {
    font-size: 16px;
    color: #333;
}
.cantidad-valor {
    margin: 0 10px;
    font-weight: bold;
    color: #333;
}
.input-bonus > input {
    width: 70%;
    height: 35px;
    color: #7b7b7b;
    font-size: 1em;
    color: #333;
    border-radius: 5px;
    outline: none;
    box-shadow: 0 0 2px rgb(2, 23, 43);
    margin-top: 5px;
    margin-bottom: 20px;
}
.input-bonus > input:hover {
    border: solid 2px rgb(2, 23, 43);
}