/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header .logo h1 {
    margin: 0;
    font-size: 2em;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    padding: 20px;
    flex-grow: 1;
}

/* Storage Section */
#storage {
    text-align: center;
}

#storage h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#storage p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Category Section */
#categories {
    display: flex; /* Flexbox layout for categories and products side by side */
    flex-wrap: wrap; /* Allow wrapping to next line on smaller screens */
    justify-content: space-between; /* Distribute space evenly between categories and products */
    padding: 40px 20px;
}

.category-cards {
    display: flex; /* Use flex for category cards */
    flex-wrap: wrap; /* Allow category cards to wrap onto the next line */
    justify-content: center; /* Center the category cards */
    gap: 20px; /* Space between each category card */
    flex: 1; /* Allow categories to take up equal space */
}

.product-grid {
    display: flex; /* Use flex for product cards */
    flex-wrap: wrap; /* Allow product cards to wrap onto the next line */
    gap: 20px; /* Space between product cards */
    flex: 2; /* Allow products to take up more space than categories */
    justify-content: center; /* Center the products */
}

.category-card,
.product-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px; /* Set fixed width for category and product cards */
    text-align: center;
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.category-card img,
.product-card img {
    width: 100%; /* Ensure images fill the card width */
    height: auto;
    border-radius: 5px;
}

.category-card h3,
.product-card h3 {
    margin-top: 15px;
    font-size: 1.2em;
    color: #333;
}

.category-card p,
.product-card p {
    margin-top: 10px;
    font-size: 1em;
    color: #777;
}

.category-card a,
.product-card a {
    text-decoration: none;
    color: inherit;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-5px); /* Slight hover effect to lift the card */
}

.category-card:hover img,
.product-card:hover img {
    transform: scale(1.05); /* Zoom-in effect on image */
}

.product-card .price {
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
    margin-top: 10px;
}

.product-card .buy-button {
    margin-top: auto; /* Push 'Buy Now' button to the bottom */
    padding: 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}

.product-card .buy-button:hover {
    background-color: #0056b3; /* Change button color on hover */
}

/* Responsive Layout for Small Screens */
@media (max-width: 768px) {
    #categories {
        flex-direction: column; /* Stack categories and products vertically */
    }

    .category-cards,
    .product-grid {
        flex: 1 100%; /* Allow both to take full width on small screens */
    }
}

@media (max-width: 480px) {
    .category-cards,
    .product-grid {
        flex: 1 100%; /* Full-width cards on very small screens */
    }
}
/* Category Section */
#categories {
    padding: 40px 20px;
    text-align: center; /* Center text within the section */
}

.category-cards {
    display: flex; /* Use flex for category cards */
    flex-wrap: wrap; /* Allow category cards to wrap onto the next line */
    justify-content: center; /* Center the category cards horizontally */
    gap: 20px; /* Space between each category card */
}
