/* 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 {
    padding: 40px 20px;
    text-align: center;
}

.category-cards {
    display: grid; /* Use grid for layout */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjust columns based on screen size */
    gap: 20px; /* Space between cards */
    margin-top: 20px;
    justify-items: center; /* Ensure items are centered in their grid cell */
}

/* Category Cards */
.category-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%; /* Take full width of grid column */
    max-width: 250px; /* Ensure cards don't stretch too wide */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px; /* Ensures all cards have a minimum height */
    transition: transform 0.3s ease;
    overflow: hidden; /* Prevent overflow if content is too large */
}

.category-card img {
    width: 100%; /* Make image fill the card */
    height: auto;
    border-radius: 5px;
}

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

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

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

.category-card:hover {
    transform: translateY(-5px); /* Slight hover effect */
}

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

.category-card .buy-button {
    margin-top: auto; /* Push Buy Now button to the bottom */
}

/* Responsive Layout for Small Screens */
@media (max-width: 768px) {
    .category-cards {
        grid-template-columns: 1fr 1fr; /* 2 columns on medium screens */
    }
}

@media (max-width: 480px) {
    .category-cards {
        grid-template-columns: 1fr; /* Single column layout on small screens */
    }
}
/* Ensuring Bottom Elements are Visible */
.category-card .buy-button {
    margin-top: auto; /* Push the 'Buy Now' button to the bottom */
}

/* Make sure all products are aligned properly even if not all of them fill up the space */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Create responsive columns */
    gap: 20px;
    margin-top: 20px;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .category-cards {
        grid-template-columns: 1fr 1fr; /* Two columns layout for medium-sized screens */
    }
}

@media (max-width: 480px) {
    .category-cards {
        grid-template-columns: 1fr; /* Single column layout for smaller screens */
    }
}
/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #2ecc71;
}

/* Contact Information Styles */
.contact-info {
    text-align: center;
    margin-top: 40px;
}

.contact-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Social Media Styles */
.social-media ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.social-media ul li {
    display: inline;
    margin: 0 10px;
}

.social-media ul li a {
    text-decoration: none;
    color: #27ae60;
    font-size: 1.1em;
}

.social-media ul li a:hover {
    color: #2ecc71;
}
/* Category Section */
#categories {
    padding: 20px;
    text-align: center;
}

.category-cards {
    display: flex; /* Flexbox for layout */
    flex-wrap: wrap; /* Allow the categories to wrap onto the next line if necessary */
    justify-content: space-around; /* Space out the cards evenly */
    gap: 20px; /* Space between each category card */
    margin-top: 20px;
}

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

.category-card img {
    width: 100%; /* Make the image fill the width of the card */
    height: auto;
    border-radius: 5px;
}

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

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

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

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

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

/* Responsive Layout */
@media (max-width: 768px) {
    .category-cards {
        flex-direction: column; /* Stack categories vertically on smaller screens */
        align-items: center; /* Center the items */
    }

    .category-card {
        width: 80%; /* Make cards wider on small screens */
    }
}
/* About Us Section */
#about-us {
    padding: 40px 20px;
    text-align: center;
}

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

#about-us p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

#about-us h3 {
    font-size: 1.5em;
    margin-top: 20px;
    color: #333;
}

/* FAQ Section */
#faq {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

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

.faq-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.faq-item h3 {
    font-size: 1.2em;
    color: #333;
}

.faq-item p {
    font-size: 1.1em;
    color: #666;
}

/* Responsive Styling for About Us and FAQ */
@media (max-width: 768px) {
    #about-us, #faq {
        padding: 20px;
    }
}
/* Category Page Section */
#storage {
    padding: 40px 20px;
    text-align: center;
}

.product-grid {
    display: grid; /* Use grid layout for the products */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Automatically adjust number of columns */
    gap: 20px; /* Space between products */
    justify-items: center; /* Ensure products are centered in grid cells */
    margin-top: 20px;
}

.product-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure cards fill their grid cell */
    max-width: 250px; /* Prevent the cards from being too wide */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px; /* Ensures all cards have the same minimum height */
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

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

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

.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) {
    .product-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on medium screens */
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr; /* 1 column layout on very small screens */
    }
}

