body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #1a1a2e;
    color: #c10c0c;
    padding: 1px;
    text-align: center;
    position: relative;
}

.cart {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px; /* Bordes más redondeados */
    padding: 15px;
    text-align: left;
    position: fixed; /* Cambiado a fixed para mantener el carrito visible mientras se desplaza */
    top: 95px;
    right: 20px;
    width: 280px; /* Ancho ligeramente aumentado */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Añadido sombra para darle más dimensión */
    z-index: 1000;
}

.cart h3 {
    margin: 0;
    color: #333;
    font-size: 20px; /* Tamaño de fuente aumentado */
}

.cart ul {
    list-style-type: none;
    padding: 0;
    margin: 15px 0; /* Añadido margen para separar los elementos */
}

.cart ul li {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centra verticalmente los elementos */
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee; /* Añadido borde inferior para separar los productos */
}

.cart ul li:last-child {
    border-bottom: none; /* Eliminar borde inferior del último elemento */
}

.cart p {
    font-size: 18px;
    margin: 10px 0;
    color: #0073e6;
    font-weight: bold;
}

.cart button {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px; /* Tamaño de fuente aumentado */
    transition: background-color 0.3s ease;
}

.cart button:hover {
    background-color: #c0392b;
}

/* Estilo responsivo */
@media (max-width: 768px) {
    .cart {
        width: 90%; /* Ancho ajustado para móviles */
        right: 5%; /* Centramos el carrito horizontalmente */
        top: 10px; /* Margen superior reducido */
        padding: 10px;
    }

    .cart h3 {
        font-size: 18px; /* Tamaño de fuente reducido */
    }

    .cart ul li {
        flex-direction: column; /* Cambiar la disposición a columna en móviles */
        align-items: flex-start;
        padding: 8px;
    }

    .cart button {
        width: 100%; /* Botones de ancho completo en móviles */
        font-size: 16px; /* Tamaño de fuente más grande */
        padding: 10px;
    }

    .cart p {
        font-size: 16px; /* Tamaño de fuente reducido para móviles */
        text-align: right; /* Alinear el precio total a la derecha */
    }
}


.product-list {
    display: flex;
    justify-content: center;
    margin: 60px;
    gap: 20px;
}

.product {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: 200px;
}

.product img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.product h2 {
    font-size: 18px;
    margin: 10px 0;
    color: #1a1a2e;
}

.product p {
    font-size: 16px;
    margin: 10px 0;
    color: #0073e6;
}

.product input[type="number"] {
    width: 60px;
    padding: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

.product button {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.product button:hover {
    background-color: #005bb5;
}

footer {
    background-color: #1a1a2e;
    color: #fff;
    text-align: center;
    padding: 1px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .product {
        width: 100%;
        margin-bottom: 20px;
    }

    .cart {
        width: 100%;
        position: static;
        margin-top: 20px;
    }
}
