
/* Basic Resets & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50; /* Green for marketplace */
}

.search-bar {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    flex-grow: 1;
    margin: 0 40px;
    max-width: 400px;
}

.search-bar input {
    border: none;
    padding: 10px 15px;
    outline: none;
    flex-grow: 1;
    font-size: 20px;
}

.search-bar button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
}

.header-icons a {
    margin-left: 20px;
    font-size: 20px;
    color: #555;
}

/* Main Navigation */
.main-nav {
    background: #333;
    color: #fff;
    padding: 10px 0;
}

.main-nav ul {
    display: flex;
    justify-content: flex-start; /* Align left */
}

.main-nav ul li a {
    padding: 10px 20px;
    display: block;
    transition: background 0.3s ease;
}

.main-nav ul li a:hover {
    background: #555;
}

/* Hero Banner */
.hero-banner {
    background: url('https://via.placeholder.com/1200x400/4CAF50/FFFFFF?text=DISCOVER.+SHOP.+ENJOY.') no-repeat center center/cover; /* Replace with your actual hero image */
    color: #fff;
    padding: 80px 0;
    text-align: left;
    height: 400px; /* Adjust height as needed */
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 500px;
    padding-left: 20px; /* Align with container */
}

.hero-banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.shop-now-btn {
    background: #FFC107; /* Amber for highlight */
    color: #333;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.shop-now-btn:hover {
    background: #e0a800;
}

/* Main Content Area */
.main-content {
    display: flex;
    padding-top: 30px;
    gap: 30px; /* Space between sidebar and catalog */
}

/* Sidebar */
.sidebar {
    flex: 0 0 250px; /* Fixed width for sidebar */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content; /* Adjust height based on content */
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #555;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.sidebar ul li:last-child a {
    border-bottom: none;
}

.sidebar ul li a:hover {
    color: #4CAF50;
}

/* Product Catalog */
.product-catalog {
    flex-grow: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.product-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    max-width: "50%";
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.product-card .price {
    font-size: 20px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 15px;
}

.product-card .shopNameLabel {
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background: #2196F3; /* Blue for call to action */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #1976D2;
}

.productLink {
    color: #2196F3;
}

.btnStack {
    font-family: Oswald;
    background: #2196F3; /* Blue for call to action */
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.428571429;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

a.btnStack:hover {
    background: #1976D2;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    margin: 0 4px;
    color: #555;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {
    background-color: #f2f2f2;
}


/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #444;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-links a {
    margin-right: 20px;
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.social-icons a {
    margin-left: 15px;
    font-size: 20px;
    color: #bbb;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    .search-bar {
        margin: 15px 0;
        max-width: 100%;
    }
    .main-nav ul {
        justify-content: center;
    }
    .hero-banner {
        text-align: center;
        padding: 50px 0;
    }
    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }
    .hero-banner h1 {
        font-size: 36px;
    }
    .main-content {
        flex-direction: column;
        padding-top: 20px;
    }
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        margin-bottom: 20px;
    }
    .footer-links a, .social-icons a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    .search-bar input, .search-bar button {
        padding: 8px 10px;
        font-size: 16px;
    }
    .main-nav ul li a {
        padding: 8px 12px;
        font-size: 14px;
    }
    .hero-banner h1 {
        font-size: 28px;
    }
    .shop-now-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
    .product-card h3 {
        font-size: 16px;
    }
    .product-card .price {
        font-size: 18px;
    }
    .add-to-cart-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}
