@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Global */
* {
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f4f6f8;
    color: #222;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #007bff, #0056d6);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 5px solid #004bb8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* FOOTER */
footer {
    background: #007bff;
    padding: 20px;
    text-align: center;
    border-top: 5px solid #004bb8;
}

footer p {
    color: white;
    margin: 0;
    font-weight: 500;
}

/* PRODUCTOS */
.tittle-products {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #222;
    text-decoration: underline;
}

.product-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 10px 20px;
}

.product-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-box:hover {
    transform: translateY(-5px);
    border-color: #007bff;
}

.product-box img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.product-box:hover img {
    transform: scale(1.03);
}

.product-details span {
    display: block;
    margin: 5px 0;
    font-weight: 500;
}

.product-box button {
    margin-top: 15px;
    padding: 10px 0;
    width: 100%;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.product-box button:hover {
    background-color: #0056d6;
}

/* CARRITO */
.tittle-carrito {
    text-align: center;
    margin-top: 50px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #222;
    text-decoration: underline;
}

.cart {
    max-width: 1000px;
    margin: 20px auto;
    padding: 10px;
}

.cart ul {
    list-style: none;
    padding: 15px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    border: 2px solid #ccc;
    border-radius: 10px;
    gap: 20px;
    background: white;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.cart-item {
    width: calc(33% - 20px);
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-4px);
}

.cart-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    transition: 0.3s ease;
}

.cart-item:hover img {
    transform: scale(1.1);
}

.cart-item-details span {
    display: block;
    margin: 3px 0;
    font-weight: 500;
}

.cart-item-price {
    font-weight: 700;
    color: #007bff;
}

.price {
    font-weight: 700;
}

/* Acciones */
.cart-actions button,
.button-delete {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Botón eliminar */
.button-delete {
    background-color: #ff2727;
    color: white;
    margin-top: 10px;
}

.button-delete:hover {
    background-color: #cc0000;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .cart-item {
        width: calc(50% - 20px);
    }
    .product-box {
        width: 85%;
    }
}

@media screen and (max-width: 480px) {
    .cart-item {
        width: 100%;
    }
}
