/* --- Global Variables and Base Styles (Copied from previous response for context) --- */
:root {
    --green-dark: #38761D; 
    --green-light: #6AA84F; 
    --text-dark: #333;
    --text-light: #fff;
    --yellow-accent: #FFC43A;
    --grey-light: #F7F7F7;
    --font-heading: 'Poppins', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-heading); color: var(--text-dark); line-height: 1.6; background-color: var(--text-light); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
h1, h2, h3 { font-weight: 700; }

/* --- Header & Footer (Copied/Adjusted for Shop) --- */
.main-header { /* ... styles ... */ }
.logo { /* ... styles ... */ }
.desktop-nav ul { /* ... styles ... */ }
/* Add styles for active link in shop navigation */
.desktop-nav li a.active {
    color: var(--green-dark);
    border-bottom: 2px solid var(--green-dark);
}

.main-footer { /* ... styles ... */ }
/* ... other footer styles ... */

/* --- Page Hero/Title Section (New) --- */
.page-hero {
    background-color: var(--grey-light);
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
.page-hero h1 {
    font-size: 2.5em;
    color: var(--green-dark);
}

/* --- Product List & Controls --- */
.products-list-section {
    padding: 50px 0;
}

.sorting-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.sorting-options p {
    color: #666;
}

#sort-by {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

/* --- Product Grid Styling --- */
.product-grid.shop-grid {
    display: grid;
    /* Default: 4 columns on desktop/large tablet */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
}

/* Reusing the product card styles from the landing page, 
   but ensuring the `add-to-cart` button is styled consistently. */
.product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-card h3 {
    font-size: 1.2em;
    margin: 15px 10px 5px;
    color: var(--text-dark);
}

.price {
    font-size: 1.1em;
    color: #b00;
    font-weight: 600;
    margin-bottom: 15px;
}

.add-to-cart {
    background-color: var(--green-dark); /* Changed to dark green for better shop button visibility */
    color: var(--text-light);
    border: none;
    padding: 10px 0;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: var(--green-light);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination a {
    text-decoration: none;
    color: var(--green-dark);
    border: 1px solid var(--green-dark);
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--green-dark);
    color: var(--text-light);
}

/* --- Responsiveness --- */

/* Tablet View: 3 columns */
@media (max-width: 992px) {
    .product-grid.shop-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile View: 2 columns (as requested) */
@media (max-width: 600px) {
    .product-grid.shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .page-hero h1 {
        font-size: 2em;
    }
    .sorting-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}