/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: May 30 2025 | 12:39:02 */
/* Universal Widget Accordion System */
.widget-accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

/* Universal title styling */
.widget-accordion .widget-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    position: relative;
}

.widget-accordion .widget-title:hover {
    background-color: #e9ecef;
}

/* Add the + sign using CSS */
.widget-accordion .widget-title::after {
    content: '+';
    font-size: 18px;
    font-weight: bold;
    color: #666;
    transition: transform 0.3s ease;
    line-height: 1;
}

/* Rotate to X when expanded */
.widget-accordion.expanded .widget-title::after {
    transform: rotate(45deg);
}

/* =================================
   STANDARD WOOCOMMERCE FILTERS
   ================================= */

/* Target the standard WooCommerce filter list */
.widget-accordion .woocommerce-widget-layered-nav-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    list-style: none;
    margin: 0;
}

/* When expanded, show the standard filter list */
.widget-accordion.expanded .woocommerce-widget-layered-nav-list {
    max-height: 1000px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
    padding: 16px;
}

/* Style the standard filter buttons */
.widget-accordion .woocommerce-widget-layered-nav-list__item {
    margin: 0;
}

.widget-accordion .woocommerce-widget-layered-nav-list__item a {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease;
}

.widget-accordion .woocommerce-widget-layered-nav-list__item a:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

/* Hide the count spans in standard widgets */
.widget-accordion .woocommerce-widget-layered-nav-list__item .count {
    display: none;
}

/* Active/selected standard filters */
.widget-accordion .woocommerce-widget-layered-nav-list__item.chosen a,
.widget-accordion .woocommerce-widget-layered-nav-list__item.wc-layered-nav-term-selected a {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* =================================
   YITH SORT BY WIDGET
   ================================= */

/* Target the YITH orderby list */
.widget-accordion .orderby {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 16px;
    list-style: none;
    margin: 0;
}

/* When expanded, show the YITH orderby list */
.widget-accordion.expanded .orderby {
    max-height: 500px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
    padding: 16px;
}

/* Style YITH orderby items */
.widget-accordion .orderby-wrapper {
    margin: 0 0 8px 0;
}

.widget-accordion .orderby-item {
    display: block;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease;
}

.widget-accordion .orderby-item:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

.widget-accordion .orderby-item:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Active YITH sort option */
.widget-accordion .orderby-item.active {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* =================================
   WOOCOMMERCE PRICE FILTER WIDGET
   ================================= */

/* Target the WooCommerce price filter form */
.widget-accordion.widget_price_filter form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 16px;
    margin: 0;
}

.widget-accordion.widget_price_filter.expanded form {
    max-height: 300px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
    padding: 16px;
}

/* Style the price slider wrapper */
.widget-accordion .price_slider_wrapper {
    margin-bottom: 0;
}

/* Price slider styling */
.widget-accordion .price_slider {
    margin-bottom: 16px;
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
}

.widget-accordion .price_slider .ui-slider-range {
    background-color: #0073aa;
    border-radius: 3px;
}

.widget-accordion .price_slider .ui-slider-handle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #0073aa;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    top: -6px;
    cursor: pointer;
}

.widget-accordion .price_slider .ui-slider-handle:hover,
.widget-accordion .price_slider .ui-slider-handle:focus {
    background-color: #005a87;
    outline: none;
}

/* Price amount section styling */
.widget-accordion .price_slider_amount {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Price label styling */
.widget-accordion .price_label {
    font-weight: 500;
    color: #333;
    text-align: center;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.widget-accordion .price_label .from,
.widget-accordion .price_label .to {
    font-weight: bold;
    color: #0073aa;
}

/* Filter button styling */
.widget-accordion .price_slider_amount .button {
    background-color: #0073aa;
    color: white;
    border: 1px solid #0073aa;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.widget-accordion .price_slider_amount .button:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.widget-accordion .price_slider_amount .button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Hide the text inputs (they're used by the slider) */
.widget-accordion .price_slider_amount input[type="text"] {
    display: none !important;
}

/* Clear floats */
.widget-accordion .clear {
    clear: both;
}

/* =================================
   WOOCOMMERCE PRODUCT CATEGORIES
   ================================= */

/* Target the WooCommerce product categories list */
.widget-accordion .product-categories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 16px;
    list-style: none;
    margin: 0;
}

.widget-accordion.expanded .product-categories {
    max-height: 800px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
    padding: 16px;
}

/* Style category items */
.widget-accordion .product-categories .cat-item {
    margin: 0 0 8px 0;
}

.widget-accordion .product-categories .cat-item a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.widget-accordion .product-categories .cat-item a:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

.widget-accordion .product-categories .cat-item a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Highlight current category */
.widget-accordion .product-categories .current-cat a {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
    font-weight: 500;
}

.widget-accordion .product-categories .current-cat a:hover {
    background-color: #005a87;
    border-color: #005a87;
}

/* Option 1: Hide non-current categories (uncomment to enable) */
/*
.widget-accordion .product-categories .cat-item:not(.current-cat):not(.cat-parent) {
    display: none;
}
.widget-accordion .product-categories .cat-parent .children .cat-item {
    display: block;
}
*/

/* Option 2: Fade non-current categories (uncomment to enable) */
/*
.widget-accordion .product-categories .cat-item:not(.current-cat) a {
    opacity: 0.6;
}
.widget-accordion .product-categories .cat-item:not(.current-cat) a:hover {
    opacity: 1;
}
*/

/* Hide category counts */
.widget-accordion .product-categories .count {
    display: none;
}

/* Style nested categories */
.widget-accordion .product-categories .children {
    margin: 8px 0 0 20px;
    padding: 0;
    list-style: none;
    display: none; /* Hide all child categories by default */
}

/* Show children only when parent category is current */
.widget-accordion .product-categories .current-cat .children,
.widget-accordion .product-categories .current-cat-parent .children {
    display: block;
}

.widget-accordion .product-categories .children .cat-item {
    margin: 4px 0;
}

.widget-accordion .product-categories .children .cat-item a {
    font-size: 13px;
    padding: 6px 10px;
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

/* Highlight current child category */
.widget-accordion .product-categories .children .current-cat a {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* =================================
   BRAND FILTER WIDGET (PWB)
   ================================= */

/* Target the brand filter container */
.widget-accordion .pwb-filter-products {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 16px;
    margin: 0;
}

.widget-accordion.expanded .pwb-filter-products {
    max-height: 600px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
    padding: 16px;
}

/* Style the brand filter list */
.widget-accordion .pwb-filter-products ul {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.widget-accordion .pwb-filter-products li {
    margin: 0;
}

/* Style brand filter labels/checkboxes */
.widget-accordion .pwb-filter-products label {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.widget-accordion .pwb-filter-products label:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

/* Style the checkboxes */
.widget-accordion .pwb-filter-products input[type="checkbox"] {
    margin: 0 8px 0 0;
    width: 16px;
    height: 16px;
    accent-color: #0073aa;
}

/* Style checked state */
.widget-accordion .pwb-filter-products input[type="checkbox"]:checked + span {
    font-weight: 500;
    color: #0073aa;
}

.widget-accordion .pwb-filter-products label:has(input:checked) {
    background-color: #e7f3ff;
    border-color: #0073aa;
}

/* Style the apply filter button */
.widget-accordion .pwb-apply-filter {
    width: 100%;
    background-color: #0073aa;
    color: white;
    border: 1px solid #0073aa;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.widget-accordion .pwb-apply-filter:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.widget-accordion .pwb-apply-filter:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Target the YITH stock/on sale list */
.widget-accordion .yith-wcan-stock-on-sale {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 16px;
    list-style: none;
    margin: 0;
}

.widget-accordion.expanded .yith-wcan-stock-on-sale {
    max-height: 200px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
    padding: 16px;
}

/* Style YITH stock/on sale buttons */
.widget-accordion .yith-wcan-stock-on-sale li {
    margin: 0 0 8px 0;
}

.widget-accordion .yith-wcan-instock-button {
    display: block;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease;
    text-align: center;
}

.widget-accordion .yith-wcan-instock-button:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

.widget-accordion .yith-wcan-instock-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* =================================
   YITH STOCK/ON SALE WIDGET
   ================================= */

/* Target the YITH stock/on sale list */
.widget-accordion .yith-wcan-stock-on-sale {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 16px;
    list-style: none;
    margin: 0;
}

.widget-accordion.expanded .yith-wcan-stock-on-sale {
    max-height: 200px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
    padding: 16px;
}

/* Style YITH stock/on sale buttons */
.widget-accordion .yith-wcan-stock-on-sale li {
    margin: 0 0 8px 0;
}

.widget-accordion .yith-wcan-instock-button {
    display: block;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease;
    text-align: center;
}

.widget-accordion .yith-wcan-instock-button:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

.widget-accordion .yith-wcan-instock-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Active state for stock filter */
.widget-accordion .yith-wcan-instock-button.active,
.widget-accordion .yith-wcan-instock-button.selected {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* =================================
   YITH FILTER WIDGETS (if needed)
   ================================= */

/* Target YITH filter lists (for other YITH widgets like brand, category filters) */
.widget-accordion .yith-wcan-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    list-style: none;
    margin: 0;
}

.widget-accordion.expanded .yith-wcan-list {
    max-height: 1000px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
    padding: 16px;
}

.widget-accordion .yith-wcan-list .yith-wcan-label {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 768px) {
    .widget-accordion .woocommerce-widget-layered-nav-list {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 6px;
    }
    
    .widget-accordion .woocommerce-widget-layered-nav-list__item a {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .widget-accordion .yith-wcan-list {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .widget-accordion .orderby-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Mobile price filter adjustments */
    .widget-accordion .price_slider_amount .button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .widget-accordion .price_label {
        padding: 6px;
        font-size: 13px;
    }
    
    /* Mobile YITH stock filter adjustments */
    .widget-accordion .yith-wcan-instock-button {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Mobile category filter adjustments */
    .widget-accordion .product-categories .cat-item a {
        padding: 6px 10px;
        font-size: 13px;
        margin-right: 6px;
        margin-bottom: 4px;
    }
    
    .widget-accordion .product-categories .children {
        margin-left: 10px;
    }
    
    /* Mobile brand filter adjustments */
    .widget-accordion .pwb-filter-products ul {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .widget-accordion .pwb-filter-products label {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .widget-accordion .pwb-apply-filter {
        padding: 10px 16px;
        font-size: 13px;
    }
}