/* General Body Styling */
*{
    margin: 0;padding: 0;
    box-sizing: border-box;
}

body,html{
    overflow-x: hidden;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

/* Main Content Flexbox */
.main-content {
    display: flex;
    max-width: 1400px; /* Adjusted to fit the number of items per row */
    margin: 20px auto;
    padding: 20px;
    gap: 20px;
}

/* Filter Section */
.filter-section {
    flex: 0 0 250px; /* Fixed width for the filter section */
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    position: sticky;
    top: 20px;
}

.filter-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.filter-section .filter {
    margin-bottom: 20px;
}

.filter-section select,
.filter-section input[type="range"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#price-label {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

/* Produce Section Styling */
.produce-section {
    background: url('Latinamericanimages/latinamericanbanner.png') no-repeat center center / cover;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 20px;
}

/* Breadcrumb Styling */
.breadcrumb {
    position: absolute;
    top: 120px;
    left: 20px;
    font-size: 18px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 5px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Title Styling */
.produce-title {
    font-size: 48px;
    color: white;
    font-family: 'Lobster', sans-serif;
}

/* Product Section */
.product-section {
    flex-grow: 1; /* Ensures the product section takes up the remaining space */
    padding: 20px;
    background-color: #f7f7f7;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 items per row */
    gap: 20px; /* Space between product items */
}

/* Product Item Styling */
.product-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.product-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.product-item h4 {
    margin: 10px 0;
    font-size: 1.2em;
}

/* Price Styling (More Eye-Catching) */
.product-item p.price {
    font-size: 1.5rem;
    color: #4CAF50;
    font-weight: bold;
}

/* Description Styling */
.product-item p.description {
    font-size: 1rem;
    color: #555;
    margin-top: 5px;
}

/* Sort Section (optional for the 'Sort by' dropdown) */
.sort-section {
    text-align: right;
    padding: 10px;
}
.country-icon a {
    text-decoration: none;
    color: inherit; /* Optional: ensures the color matches surrounding text */
}
.sort-section select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
@media (min-width: 768px) and (max-width: 1200px){
    .product-grid{
        grid-template-columns: repeat(3,1fr);
    }
}
@media (max-width: 768px){
    .product-grid{
        grid-template-columns: 1fr 1fr;
    }
    .filter-section{
        flex: 0 0 80px;
    }
    .search-bar{
        display: none;
    }
    .product-section{
        padding: 0;
    }
    .main-content{
        flex-direction: column;
    }
    .filter-section{
        position: unset;
    }
    .title-main{
        font-size: 14px;
    }
    .filter-section h2{
        font-size: 20px;
    }
    .filter-section .filter h3{
        font-size: 13px;
    }
}
