/* General Styles */
body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #2c3e50;
    padding: 20px;
    text-align: center;
}

header h1 {
    color: white;
    font-size: 36px;
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    font-size: 18px;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Product Section */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.product {
    background-color: #fff;
    border-radius: 8px;
    width: 250px;
    margin: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product h3 {
    color: #2c3e50;
    font-size: 22px;
    margin: 10px 0;
}

.product p {
    color: #7f8c8d;
    font-size: 16px;
}

.product .price {
    color: #27ae60;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.product button {
    background-color: #27ae60;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.product button:hover {
    background-color: #2ecc71;
}

/* Cart Section */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #fff;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item p {
    flex-grow: 1;
    padding: 0 15px;
}

.cart-item .price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}

.btn {
    background-color: #2ecc71;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #27ae60;
}

/* Footer */
footer {
    background-color: #2c3e50;
    padding: 15px;
    text-align: center;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}
/* Make the product list responsive */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 20px;
}

/* Style for mobile screens */
@media (max-width: 768px) {
    .product {
        width: 45%;
        margin: 10px 0;
    }
}

/* Style for very small screens (like mobile) */
@media (max-width: 480px) {
    .product {
        width: 100%;
        margin: 10px 0;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item img {
        width: 60px;
        height: 60px;
    }
}
/* Button styling */
.product button {
    background-color: #27ae60; /* Green */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%; /* Make the button fill the width of the product container */
}

.product button:hover {
    background-color: #2ecc71; /* Slightly brighter green on hover */
}

/* Buttons for Cart/Checkout */
.btn {
    background-color: #2ecc71;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    width: 100%; /* Ensures the button fits well in the container */
}

.btn:hover {
    background-color: #27ae60;
}
