        /* Basic Reset & Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
}

/* Header & Navigation */
header {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700; /* Gold */
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #007bff; /* Blue */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #0056b3;
}

/* Hero Banner (Home Page) */
.hero-banner {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero-banner h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

.hero-banner p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Product Grid (Home & Catalog) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.product-card img {
    max-width: 100%;
    height: 200px; /* Consistent height for product images */
    object-fit: contain; /* Ensures image fits without cropping or distorting */
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-card h3 {
    margin: 10px 0;
    font-size: 1.3em;
    color: #333;
}

.product-card p {
    color: #666;
    margin-bottom: 15px;
}

.product-card .product-price {
    font-weight: bold;
    color: #e67e22; /* Orange */
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Categories (Home Page) */
.category-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card img {
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 1.1em;
    color: #555;
}


/* Catalog Page Specifics */
.catalog-page h1 {
    text-align: left;
    margin-bottom: 20px;
    color: #222;
}

.filters-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px;
}

.filter-group label {
    font-weight: bold;
    margin-right: 10px;
    color: #555;
}

.filter-group select,
.search-bar input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.search-bar {
    display: flex;
    gap: 10px;
}

.search-bar button {
    background-color: #28a745; /* Green */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #218838;
}

#no-results {
    text-align: center;
    padding: 30px;
    font-size: 1.2em;
    color: #777;
}

/* Product Detail Page Specifics */
.product-detail-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    align-items: flex-start;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-image {
    flex: 1;
    min-width: 300px; /* Ensure image section has a minimum width */
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.product-info {
    flex: 2;
    min-width: 350px; /* Ensure info section has a minimum width */
}

.product-info h2 {
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
    color: #222;
}

.product-info .price {
    font-size: 2em;
    color: #e67e22; /* Orange */
    font-weight: bold;
    margin-bottom: 25px;
}

.product-info .description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.product-info .add-to-cart-btn {
    padding: 15px 30px;
    font-size: 1.2em;
    margin-right: 20px;
    background-color: #28a745; /* Green */
}

.product-info .add-to-cart-btn:hover {
    background-color: #218838;
}

.product-info .back-to-catalog {
    background-color: #6c757d; /* Grey */
}

.product-info .back-to-catalog:hover {
    background-color: #5a6268;
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #333;
    color: white;
    font-size: 0.9em;
}

/* Responsive Design (Basic) */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 5px 15px;
    }

    .hero-banner h1 {
        font-size: 2em;
    }

    .product-grid, .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .product-detail-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-info h2 {
        text-align: center;
    }

    .product-info .add-to-cart-btn,
    .product-info .back-to-catalog {
        display: block;
        margin: 10px auto;
    }

    .filters-sort {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group, .search-bar {
        width: 100%;
        justify-content: center;
    }

    .search-bar input {
        flex-grow: 1;
    }
}