/* Reset some default styles */
body, h2, button {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
    background-color: #f4f7fc;
    color: #333;
}

/* Container to hold content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Product Section */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* Product Cards */
.product {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product span {
    font-size: 1.2rem;
    color: #333;
    display: block;
    margin-bottom: 15px;
}

.product button {
    background-color: #ff5722;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.product button:hover {
    background-color: #e64a19;
    transform: scale(1.05);
}

/* Cart Section */
.cart-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.cart-heading {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Cart Items */
.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    font-size: 1rem;
    color: #333;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.empty-cart {
    text-align: center;
    font-size: 1.2rem;
    color: #777;
}

/* Cart Total */
.cart-total {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.total-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #444;
}

/* Checkout and Remove Buttons */
#checkout-btn {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
   
}

#checkout-btn {
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    width: 45%;
}

#remove{
       padding: 12px 24px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    width: 45%;
}

#remove{
    background-color: #f44336;
    background-color: #981919;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#remove:hover {
    background-color: #e53935;
    transform: scale(1.05);
}

#checkout-btn {
    background-color: #4caf50;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#checkout-btn:hover {
    background-color: #388e3c;
    transform: scale(1.05);
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Fade-in Animation */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Responsiveness */
@media (max-width: 768px) {
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    #checkout-buttons {
        flex-direction: column;
    }

    .remove-btn, .checkout-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}