body {
    font-family: Arial, Helvetica, sans-serif;
    display: block;
    margin: 0;
    padding: 0; 
    background-color: white;
}

.menu {
    display: flex; /* Align menu items side by side */
    justify-content: center; /* Center the menu items horizontally */
    align-items: center; /* Align items vertically */
    background: linear-gradient(to right, #4CAF50, #5387d6); /* Gradient background */
    max-width: 100%; /* Set a maximum width for the menu */
    padding: 0; /* Remove extra padding */
    margin: 0; /* Remove default margin */
    list-style: none; /* Remove bullet points */
    height: 80px; /* Set a fixed height for the menu */
    flex-direction: row; /* Ensure menu items are horizontal */
}

.menu li {
    margin: 0 15px; /* Add spacing between menu items */
    display: flex; /* Display items inline */
    align-items: center; /* Center items vertically */
    height: 100%; /* Ensure items take full height of the menu */
}

.menu a {
    text-decoration: none; /* Remove underline from links */
    color: white; /* Set link text color */
    font-weight: bold; /* Make the text bold */
    padding: 10px 15px; /* Add padding around the text */
    border-radius: 5px; /* Optional: Add rounded corners */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Add a hover effect */
}

.logo {
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center the logo horizontally */
    align-items: center; /* Center the logo vertically */
    margin: 0; /* Remove extra margin */
    position: absolute; /* Position the logo inside the menu bar */
    top: 10px; /* Adjust the vertical position to move it higher */
    left: 20px; /* Keep it aligned to the left */
    width: 5%; /* Set a fixed width for the logo */
    height: auto; /* Maintain aspect ratio */
}

.products h1 {
    font-size: 60px; /* Adjust font size */
    font-weight: bold; /* Make the text bold */
    background: linear-gradient(to right, #4CAF50, #5387d6); /* Gradient background */
    -webkit-background-clip: text; /* Clip the background to the text */
    -webkit-text-fill-color: transparent; /* Make the text transparent to show the gradient */
    text-align: center; /* Center the text */
}

.product-image {
    width: 20%; /* Set a fixed width for the product image */
    height: auto; /* Maintain the aspect ratio */
    border-radius: 5px; /* Optional: Add rounded corners */
    padding: 10px; /* Add padding around the image */
    display: none; /* Ensure the image is displayed as a block element */
    margin: 0 auto; /* Center the image horizontally */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.product h2 {
    font-size: 30px; /* Adjust font size */
    font-weight: bold; /* Make the text bold */
    background: linear-gradient(to right, #4CAF50, #5387d6); /* Gradient background */
    -webkit-background-clip: text; /* Clip the background to the text */
    -webkit-text-fill-color: transparent; /* Make the text transparent to show the gradient */
    text-align: center; /* Center the text */
}

.product p {
    font-size: 20px; /* Adjust font size for product description */
    text-align: center; /* Center the text */
    margin: auto; /* Add spacing above and below the paragraph */
    width: 40%; /* Set a fixed width for the paragraph */
}

/* Style for the cart icon */
#cart-icon {
    position: absolute; /* Position it relative to the menu bar */
    top: 10px; /* Adjust the vertical position */
    right: 20px; /* Adjust the horizontal position */
    display: none; /* Use flexbox for alignment */
    align-items: center; /* Center the icon vertically */
    text-decoration: none; /* Remove underline */
    width: 70px; /* Set a fixed width for the cart icon */
    height: 50px; /* Maintain aspect ratio */
}

/* Style for the cart image */
.cart-icon {
    width: 50px; /* Set the size of the cart icon */
    height: 45px;
}

/* Style for the cart counter */
#cart-count {
    position: absolute;
    top: -5px; /* Position the counter above the cart icon */
    right: -10px; /* Position the counter to the right of the cart icon */
    background-color: red; /* Red background for the counter */
    color: white; /* White text color */
    font-size: 12px; /* Font size for the counter */
    font-weight: bold; /* Bold text */
    border-radius: 50%; /* Make it a circle */
    padding: 2px 6px; /* Add padding for size */
    display: none; /* Ensure it displays as an inline block */
    text-align: center; /* Center the text inside the circle */
}

.product-list {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    margin: 20px auto; /* Center the product list and add spacing */
    padding: 20px; /* Add padding for better spacing */
    width: 100%; /* Adjust width for responsiveness */
    max-width: 1200px; /* Set a maximum width for larger screens */
    gap: 20px; /* Add spacing between product items */
    box-sizing: border-box; /* Include padding and border in width calculations */
}

.buy-button {
    display: none; /* Make the button a block element */
    width: 200px; /* Set a fixed width for the button */
    height: 50px; /* Set a fixed height for the button */
    margin: 20px auto; /* Center the button horizontally and add spacing */
    background: linear-gradient(to right, #4CAF50, #5387d6); /* Gradient background */
    color: white; /* Button text color */
    font-size: 20px; /* Adjust font size for the button text */
    border: none; /* Remove default border */
    border-radius: 5px; /* Add rounded corners */
    cursor: pointer; /* Change cursor to pointer on hover */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

@media screen and (max-width: 768px) {
    .menu {
        flex-direction: column; /* Stack menu items vertically on smaller screens */
        height: auto; /* Allow height to adjust based on content */
    }
    
    .menu li {
        margin: 10px 0; /* Add vertical spacing between items */
    }
    
    .logo {
        width: 15%; /* Adjust logo size for smaller screens */
    }

    .product-list {
        flex-direction: column; /* Stack products vertically on smaller screens */
        width: 100%; /* Use full width for smaller screens */
        padding: 10px; /* Reduce padding for smaller screens */
    }
    
}