/* General Styles */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

/* Header & Navigation */
header {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e7e7e7;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

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

nav ul li {
    margin-left: 1.5rem;
    position: relative; /* For dropdown positioning */
}

nav ul li a {
    color: #333;
    font-weight: 500;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none; /* Remove default list styling */
    padding: 0.5rem 0; /* Add some padding */
    margin: 0; /* Reset margin */
}

.dropdown-content li {
    margin: 0; /* Reset margin for list items */
}

.dropdown-content li a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-content li a:hover { background-color: #f1f1f1; }

.dropdown:hover .dropdown-content {
    display: block;
}

/* Search Container */
.search-container input[type=text] {
    padding: 6px;
    border: 1px solid #ccc;
    margin-right: 5px;
}

.search-container button {
    padding: 6px 10px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.search-container button:hover {
    background: #0056b3;
}

/* Main Content Sections */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hero Section */
#hero {
    background-color: #007bff; /* Example background */
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    box-shadow: none;
    border-radius: 0;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #ffc107;
    color: #333;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e0a800;
    text-decoration: none;
}

/* Intro Section */
#intro ul {
    list-style: disc;
    margin-left: 20px;
}

/* Product Overview */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.category-item {
    border: 1px solid #eee;
    padding: 1.5rem;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #f8f9fa;
    margin-right: 1rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: #adb5bd;
    text-decoration: underline;
}

.footer-contact p,
.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design (Basic Example) */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Hide main nav links on small screens */
        /* Consider implementing a hamburger menu here */
    }
    .search-container {
        display: none; /* Hide search on small screens or reposition */
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        margin-bottom: 1rem;
    }
    #hero h1 {
        font-size: 2rem;
    }
    #hero p {
        font-size: 1rem;
    }
}



/* About Section Image */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.about-image {
    max-width: 250px; /* Limit image size */
    height: auto;
    border-radius: 5px;
    flex-shrink: 0; /* Prevent image from shrinking too much */
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack image and text vertically */
        text-align: center;
    }
    .about-image {
        margin-bottom: 1rem;
        max-width: 80%; /* Allow image to be larger on mobile */
    }
}

