/* Products Banner */
.products-banner {
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95), rgba(184, 134, 11, 0.95));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 1rem auto 0;
    max-width: 600px;
    line-height: 1.6;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Add subtle animation to banner text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Update container spacing */
.products-container {
    margin-top: 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 40vh);
    position: relative;
    z-index: 1;
}

/* Update sticky sidebar position */
.filters-sidebar {
    position: sticky;
    top: 5rem;
}

/* Category Header */
.category-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.category-header .container {
    position: relative;
    z-index: 1;
}

.category-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold-primary);
}

/* Categories Grid */
.categories-grid {
    padding: 4rem 0;
}

.category-link {
    text-decoration: none;
    color: inherit;
}

/* Filters Section */
.filter-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
}

.filter-section h3 {
    color: var(--gold-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.filter-option {
    color: #2c3e50;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: var(--gold-primary);
}

.filter-option.active {
    color: var(--gold-secondary);
    font-weight: 600;
}

.filter-checkbox {
    margin-right: 0.5rem;
    accent-color: var(--gold-primary);
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f6f8fd 0%, #f1f4f9 100%);
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.2);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.image-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.image-nav button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.image-nav button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.image-nav .prev-image {
    margin-left: 10px;
}

.image-nav .next-image {
    margin-right: 10px;
}

.product-info {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.product-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-category {
    color: var(--gold-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price {
    color: var(--gold-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-code {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0;
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
}

.whatsapp-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--gold-gradient);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.whatsapp-button:hover {
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

/* Filter Styles */
.filters-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
}

.filter-section h3 {
    color: var(--gold-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.filter-option {
    color: #2c3e50;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: var(--gold-primary);
}

.filter-option.active {
    color: var(--gold-secondary);
    font-weight: 600;
}

.filter-checkbox {
    margin-right: 0.5rem;
    accent-color: var(--gold-primary);
}

/* Products Container Layout */
.products-container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    margin-top: 5rem; /* Adjust for navbar */
    background-color: #f8f9fa;
    min-height: calc(100vh - 5rem);
}

.filters-sidebar {
    flex: 0 0 250px;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 6rem;
}

.products-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    align-content: start;
}

/* Update view options positioning */
.view-options {
    position: absolute;
    top: 6rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

/* Filters Sidebar */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filters-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-primary);
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--gold-primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-check-label {
    color: #666;
    font-size: 0.9rem;
}

/* Products Grid */
.products-grid {
    flex: 1;
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gold-primary);
}

.product-category,
.product-style {
    color: #666;
    font-size: 0.9rem;
    margin: 0.25rem 0;
    text-transform: capitalize;
}

.whatsapp-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.whatsapp-inquiry:hover {
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
    color: white;
}

/* List View */
.products-wrapper.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-view .product-card {
    display: flex;
    height: 200px;
}

.list-view .product-image {
    flex: 0 0 200px;
    padding-top: 0;
}

.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .products-container {
        flex-direction: column;
    }
    
    .filters-sidebar {
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .products-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .list-view .product-card {
        flex-direction: column;
        height: auto;
    }
    
    .list-view .product-image {
        flex: 0 0 auto;
        padding-top: 100%;
    }
}

@media (max-width: 768px) {
    .products-header h1,
    .category-header h1 {
        font-size: 2rem;
    }
    
    .filters-sidebar {
        margin-bottom: 2rem;
    }
    
    .product-card img {
        height: 200px;
    }
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

:root {
    --gold-primary: #B8860B; /* Darker gold */
    --gold-secondary: #DAA520; /* Rich golden rod */
    --gold-hover: #CD950C; /* Slightly darker than primary for hover states */
    --gold-light: rgba(184, 134, 11, 0.1); /* Transparent gold for subtle effects */
    --gold-gradient: linear-gradient(135deg, #B8860B, #DAA520);
}

/* Animation for product images */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card .product-image {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image,
.product-card:active .product-image {
    transform: scale(1.1);
}

@media (hover: none) {
    .product-card:active .product-image {
        transform: scale(1.1);
    }
}

/* Highlighted Product Styles */
@keyframes highlightProduct {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.highlighted-product {
    animation: highlightProduct 2s ease-in-out;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
}
