/* Global Reset and Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}
:root {
    --primary-color: #007bff; /* Blue for buttons and links */
    --text-color: #333;
    --bg-color: #f4f4f4; /* Light background */
}
body {
    background-color: white;
    color: var(--text-color);
}

/* Header Styling (Responsive) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}
nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}
.header-actions {
    display: flex;
    align-items: center;
}
.search-bar {
    display: flex;
    margin-right: 20px;
}
.search-bar input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}
.search-bar button {
    padding: 8px 10px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.cart-icon {
    position: relative;
    font-size: 1.5em;
    color: var(--text-color);
    text-decoration: none;
}
#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7em;
    font-weight: bold;
}

/* Footer Styling */
footer {
    padding: 20px 5%;
    text-align: center;
    background-color: var(--text-color);
    color: white;
    margin-top: 50px;
}
.footer-links a {
    color: #ccc;
    margin: 0 10px;
    text-decoration: none;
}

/* Responsiveness adjustments (Example) */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav {
        order: 3; /* Move navigation to the bottom of the header on small screens */
        width: 100%;
        text-align: center;
        padding-top: 10px;
    }
    .header-actions {
        margin-top: 10px;
    }
}
/* --- Product Page Specific Styles --- */

.product-page-main {
    padding: 20px 5%;
}

.shop-layout {
    display: flex;
    gap: 30px;
}

/* Filter Sidebar */
.sidebar {
    width: 250px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    flex-shrink: 0; /* Prevents sidebar from shrinking */
}
.sidebar h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}
.filter-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.filter-group h4 {
    margin-bottom: 10px;
}
.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95em;
    cursor: pointer;
}
input[type="range"] {
    width: 100%;
    margin-top: 5px;
}
.reset-button {
    width: 100%;
    padding: 10px;
    background-color: #dc3545; /* Red for reset */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

/* Product Listing Area */
.product-listing {
    flex-grow: 1; /* Allows listing to take up remaining space */
}
/* Re-use .product-grid and .product-card styles from index.html */


/* Media Query for smaller screens */
@media (max-width: 900px) {
    .shop-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Style for hiding products when filtered */
.product-card.hidden {
    display: none;
}