.was-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.was-sidebar {
    width: 250px; /* Base width */
    max-width: 250px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}
.was-content {
    flex: 1; /* Allow content to fill remaining space */
    min-width: 0;
}
.was-sidebar-main-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.was-filter-group {
    margin-bottom: 30px;
}
.was-sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}
.was-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.was-category-list li {
    margin-bottom: 8px;
}
.was-category-list a {
    text-decoration: none;
    color: #555;
    display: flex;
    justify-content: space-between;
}
.was-category-list li.active a {
    font-weight: bold;
    color: #000;
}
.was-price-slider-wrap {
    display: flex;
    flex-direction: column;
}
.was-price-slider {
    width: 100%;
    margin-bottom: 10px;
}
.was-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}
.was-size-list label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}
.was-size-item {
    margin-bottom: 8px;
}
.was-clear-btn {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.was-sorting-wrap {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.was-sort-label {
    font-weight: 500;
}
.was-sorting {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.was-product-grid {
    display: grid;
    gap: 20px;
    transition: opacity 0.3s;
}
.was-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.was-pagination a, .was-pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.was-pagination span.current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Ensure loop items span correctly when switching columns via Elementor responsive controls */
.was-product-grid .elementor-loop-container {
    width: 100%;
}

@media (max-width: 1024px) {
    .was-sidebar {
        width: 100% !important; /* Override inline styles from Elementor on tablet/mobile if needed, or let Elementor handle it */
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    .was-content {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}
