.pro-filt-v2-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: flex-start;
}

.pro-filt-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.pro-filt-mobile-toggle {
    display: none;
    background: #938A56;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    /* Hardware acceleration for tap events */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pro-filt-mobile-toggle-icon {
    font-size: 1.4em;
    line-height: 1;
}

.pro-filt-main-area {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Smoother scrolling on iOS */
    -webkit-overflow-scrolling: touch;
}

.pro-filt-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: border-color 0.3s, box-shadow 0.3s;
    /* Prevent iOS zoom on focus */
    font-size: 16px !important;
}

.pro-filt-search-input:focus {
    outline: none;
    border-color: #938A56;
    box-shadow: 0 0 0 3px rgba(147, 138, 86, 0.1);
}

.pro-filt-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.25em;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ea5a24;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pro-filt-section-toggle {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pro-filt-toggle-icon {
    font-size: 1.2em;
    color: #ea5a24;
}

/* Category Filter Redesign Styles */
.pro-filt-cat-list,
.pro-filt-subcat-list,
.pro-filt-brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-filt-brand-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
    /* iOS smooth scrolling */
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Brands */
.pro-filt-brand-list::-webkit-scrollbar {
    width: 6px;
}
.pro-filt-brand-list::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.pro-filt-brand-list::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.pro-filt-brand-list::-webkit-scrollbar-thumb:hover {
    background: #938A56; 
}


.pro-filt-cat-list li,
.pro-filt-brand-list li {
    margin-bottom: 4px; /* Reduced vertical spacing */
    position: relative;
    display: flex;
    flex-direction: column;
}

.pro-filt-cat-item-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pro-filt-cat-list label,
.pro-filt-brand-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #444; 
    transition: all 0.2s ease;
    padding: 4px 8px; /* Reduced vertical padding */
    border-radius: 6px; 
    -webkit-tap-highlight-color: transparent;
    flex-grow: 1;
}

.pro-filt-cat-toggle {
    cursor: pointer;
    padding: 2px 10px; /* Reduced padding for toggle */
    font-weight: bold;
    color: #938A56;
    user-select: none;
}

.pro-filt-cat-list label:hover,
.pro-filt-brand-list label:hover {
    background-color: rgba(147, 138, 86, 0.08); 
    color: #938A56; 
}

/* Specific styling for nested categories to improve readability */
.pro-filt-subcat-list {
    padding-left: 20px; 
    margin-top: 0; /* Reduced space between parent and subcategories */
    border-left: 2px solid rgba(147, 138, 86, 0.2); 
    margin-left: 14px; 
    display: block; 
}

.pro-filt-subcat-list.is-hidden {
    display: none;
}

.pro-filt-subcat-list label {
    font-size: 14px; 
    color: #666; 
}

.pro-filt-cat-checkbox,
.pro-filt-brand-checkbox {
    margin-right: 12px; 
    accent-color: #938A56;
    width: 16px; /* Slightly smaller to match reduced spacing */
    height: 16px;
    cursor: pointer;
}

/* Improve visual hierarchy for top-level items */
.pro-filt-cat-list-root > li > label {
    font-weight: 500; 
}

.pro-filt-section-content {
    display: block;
}

.pro-filt-section-content.is-hidden {
    display: none;
}

/* Toggle Sub completely hidden as requested */
.pro-filt-toggle-sub {
    display: none !important;
}

/* Toggle Switch Styles */
.pro-filt-toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
    -webkit-tap-highlight-color: transparent;
}

.pro-filt-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.pro-filt-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    transition: .4s;
    margin-right: 10px;
    flex-shrink: 0;
}

.pro-filt-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

.pro-filt-toggle-switch input:checked + .pro-filt-slider {
    background-color: #938A56;
}

.pro-filt-toggle-switch input:checked + .pro-filt-slider:before {
    transform: translateX(20px);
}

.pro-filt-slider.round {
    border-radius: 24px;
}

.pro-filt-slider.round:before {
    border-radius: 50%;
}

.pro-filt-toggle-label {
    font-size: 15px;
    color: #555;
    user-select: none;
}


.pro-filt-loading {
    text-align: center;
    padding: 40px;
    font-weight: 600;
    color: #888;
    font-size: 18px;
}

.pro-filt-results {
    transition: opacity 0.3s ease;
}

.pro-filt-results.is-loading {
    opacity: 0.5;
    pointer-events: none; /* Prevent clicks while loading */
}

/* Redesigned Custom Grid Layout */
.pro-filt-custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.pro-filt-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Use transform/opacity for better performance */
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eaeaea;
    will-change: transform;
}

.pro-filt-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.pro-filt-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pro-filt-img-wrap {
    width: 100%;
    background: #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pro-filt-full-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.pro-filt-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-end; 
}

.pro-filt-item-title {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
}

.pro-filt-item-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.pro-filt-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #938A56;
    display: flex;
    flex-direction: column;
}

.pro-filt-item-action {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
}

.pro-filt-item-action .button {
    display: block;
    width: 100%;
    text-align: center;
    background: #333;
    color: #fff;
    padding: 12px; /* Slightly larger for touch */
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.pro-filt-item-action .button:hover {
    background: #ea5a24;
}

.pro-filt-load-more {
    display: block;
    margin: 20px auto 0;
    padding: 15px 30px; /* Larger tap target */
    background: #938A56;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.pro-filt-load-more:hover {
    background: #333;
    transform: translateY(-2px);
}

.pro-filt-load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* CSS approach for mobile menu to replace slideToggle */
.pro-filt-sidebar-content-wrapper {
    display: block;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .pro-filt-v2-container {
        flex-wrap: wrap; 
        gap: 15px;
    }
    
    .pro-filt-sidebar {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    .pro-filt-mobile-toggle {
        display: flex;
    }

    .pro-filt-sidebar-content-wrapper {
        display: none; /* Hidden by default on mobile */
    }
    
    .pro-filt-sidebar-content-wrapper.is-open {
        display: block;
    }
    
    .pro-filt-custom-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Smaller grid items for mobile */
        gap: 15px;
    }
    
    .pro-filt-item-content {
        padding: 15px;
    }
    
    .pro-filt-item-title {
        font-size: 16px;
    }
    
    .pro-filt-item-action {
        padding: 0 15px 15px;
    }
}