body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
    /* Ivory background fallback */
    background-color: #F8F3E8 !important; 
    /* Overlay gradient for readability */
    background-image: linear-gradient(rgba(248, 243, 232, 0.85), rgba(248, 243, 232, 0.85)), url('https://www.swapna.odmtschool.com/wp-content/uploads/2026/09/ChatGPT-Image-Sep-12-2026-01_46_42-AM.png') !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center !important;
}

.elegance-shop-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.elegance-shop-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    height: fit-content;
    border: 1px solid rgba(196, 154, 58, 0.2); /* Gold subtle border */
}

.elegance-filter-title {
    color: #7A1F2B; /* Burgundy */
    font-size: 1.25rem;
    margin-bottom: 25px;
    font-family: serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #F8F3E8;
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h3 {
    font-size: 0.95rem;
    color: #1C1A17; /* Dark */
    margin-bottom: 12px;
    font-family: serif;
    letter-spacing: 0.5px;
}

.elegance-select, .elegance-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    color: #555;
    background: #fafafa;
}

.elegance-input {
    width: 50%;
}

.elegance-btn-apply {
    display: block;
    width: 100%;
    padding: 12px;
    background: #7A1F2B;
    color: #F8F3E8;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: background 0.3s;
}
.elegance-btn-apply:hover {
    background: #1C1A17;
}

.elegance-btn-clear {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: transparent;
    color: #7A1F2B;
    border: 1px solid #7A1F2B;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.elegance-btn-clear:hover {
    background: #7A1F2B;
    color: #F8F3E8;
}

.elegance-shop-content {
    flex-grow: 1;
    min-width: 0;
}

.elegance-mobile-filter-btn {
    display: none;
    width: 100%;
    padding: 15px;
    background: #7A1F2B;
    color: #F8F3E8;
    border: none;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* Adjusting WooCommerce grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after {
    display: none !important;
}
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
    border: 1px solid transparent;
    transition: border 0.3s;
}
.woocommerce ul.products li.product:hover {
    border-color: #C49A3A; /* Gold */
}

.woocommerce ul.products li.product h2, 
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: serif;
    color: #1C1A17;
    font-size: 1.1rem;
    margin-top: 15px;
}

.woocommerce ul.products li.product .price {
    color: #7A1F2B !important;
}

.woocommerce span.onsale {
    background: #C49A3A !important;
    color: #fff !important;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    .elegance-shop-wrapper {
        flex-direction: column;
    }
    .elegance-mobile-filter-btn {
        display: block;
    }
    .elegance-shop-sidebar {
        display: none;
        width: 100%;
        margin-bottom: 20px;
    }
    .elegance-shop-sidebar.active {
        display: block;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}