:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --border: #ddd;
}
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

/* Filter Sidebar */
.filter-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-section {
    border-radius: 8px;
    padding: 20px;
    margin-top: -30px;
}

.filter-title {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 500;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.filter-option label {
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
}

/* Search Box */
.search-box {
    width: 100%;
    border: 2.5px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 540;
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.search-box:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

/* Reset Button */
.reset-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    width: 90%;
    margin-left: 5%;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 30px;
}

.reset-btn:hover {
    background-color: #c0392b;
}

/* Product Grid */
.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}



.product-card {
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 430px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image-container {
    height: 250px; 
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.product-brand {
    font-size: 14px;
    color: var(--gray);
    margin-top: 15px;
    font-weight: 500;
}

.product-category {
    display: inline-block;
    color: var(--gray);
    border-radius: 4px;
    font-size: 15px;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: 500;
}

.details-link {
    margin-top: 20px;
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.details-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Image Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.gallery-modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gallery-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-modal-title {
    font-size: 18px;
    font-weight: 600;
}

.close-gallery-modal {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

.gallery-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-main-image {
    width: 100%;
    height: 400px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gallery-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-thumbnail:hover, .gallery-thumbnail.active {
    border-color: var(--primary);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

        .product-grid.loading {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.no-products-found {
    text-align: center;
    margin-bottom: 70px;
    opacity: .7;
}
.no-products-found h3 {
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .filter-sidebar {
        width: 100%;
    }
    
    .gallery-modal-content {
        width: 95%;
    }
    
    .gallery-main-image {
        height: 300px;
    }
    
    .product-card {
        height: 550px;
    }
    .product-grid {
        display: grid;
        grid-template-columns: repeat(1,1fr);
        gap: 10px;
    }
	.product-image-container {
        height: 350px; 
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }
}