@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* 
.roboto-<uniquifier> {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
  } */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-variation-settings: "wdth" 100;
    background-color: #6482AD;
}

img{
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.products {
    margin-top: 150px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.card-product {
    background: #7FA1C3;
    padding: 50px 30px;
    border-radius: 50px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.205);
    color: #F5EDED;
    text-align: center;
    transition: 200ms;
}

.card-product:hover{
    translate: 0 -8.5px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.39);
}

.card-product p {
    text-align: left;
}

.card-product img {
    height: 300px;
    margin-bottom: 30px;
}

.product-title{
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.product-title h3 {
    color: #E2DAD6;
    font-size: 18px;
    font-weight: 500;
}

.price {
    color: #ffe9ac;
    font-weight: 900;
}

.product-button{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.fa-heart {
    padding: 20px;
    border: 1px solid #dfc5b8;
    border-radius: 50px;
}

.fa-heart:hover{
    background-color: #dfc5b8;
    cursor: pointer;
}

.product-button a{
    display: block;
    padding: 15px 20px;
    background-color: #6482AD;
    color: #E2DAD6;
    text-decoration: none;
    border-radius: 50px;
    transition: 200ms;
}

.product-button a:hover {
    background-color: #c2aca1;
}

#cart-icon{
    position: fixed;
    top: 20px;
    right: 20px;
    color: #E2DAD6;
    font-size: 15px;
    text-decoration: none;
    background-color: #7FA1C3;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.219);
}

#cart-icon i{
    margin-right: 5px;
}

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;  
}

.cart-content {
    background-color: #7FA1C3;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    max-height: 400px;
    overflow-y: 0;
}

#cart-items{
    list-style: none;
    padding: 0;
}

#cart-items li{
    padding: 10px 0;
    border-bottom: 1px solid #dfc5b8;
}

#checkout {
    background-color: #6482AD;
    color: #ffffff;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

#total{
    margin-top: 15px;
    font-weight: 900;
    color: #E2DAD6;
}

#close-cart{
    cursor: pointer;
    font-size: 45px;
    position: absolute;
    top: 10px;
    right: 20px;
    color: #ffffff;
}

.purchase-modal {
    display:none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.purchase-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.purchase-content h2{
    margin-bottom: 15px;
}

.purchase-content button {
    background-color: #6482AD;
    color: #dfc5b8;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.cart-content li button {
    background-color: #ff4d4d; /* Color rojo para el botón */
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
}
.cart-content li button:hover {
    background-color: #e60000; /* Color más oscuro al pasar el mouse */
}

@media(max-width:991px){
    body{
        padding: 30px;
    }
    
    .products{
        margin-top: 50px;
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }
}