/* ===== WC Filters ===== */
.wcf-filters,.wcf-acc,.wcf-active,.wcf-attrs,.wc-filter-results{
    --wcf-accent:#2563eb;
    --wcf-text:#1f2937;
    --wcf-muted:#6b7280;
    --wcf-border:#e5e7eb;
    --wcf-bg:#ffffff;
    --wcf-soft:#f3f4f6;
    --wcf-radius:10px;
    --wcf-body-max:300px; /* filters body max height, then scroll */
}
.wcf-tree{--wcf-body-max:420px;} /* category tree body max height, then scroll */

/* ---- Reset list styles ---- */
.wcf-acc ul,.wcf-acc ol,.wcf-acc li{list-style:none!important;margin:0!important;padding:0!important;background:none;}
.wcf-acc li::before,.wcf-acc li::after{content:none!important;display:none!important;}
.wcf-acc li::marker{content:""!important;}

/* ---- Accordion ---- */
.wcf-acc{background:var(--wcf-bg);border:1px solid var(--wcf-border);border-radius:var(--wcf-radius);margin:0 0 12px;overflow:hidden;color:var(--wcf-text);}
.wcf-acc>summary{list-style:none!important;}
.wcf-acc>summary::-webkit-details-marker{display:none!important;}
.wcf-acc>summary::marker{content:""!important;}
.wcf-acc__head{display:flex;align-items:center;gap:8px;margin:0;padding:14px 16px;cursor:pointer;font-size:15px;font-weight:700;line-height:1.5;user-select:none;}
.wcf-acc__head:focus-visible{outline:2px solid var(--wcf-accent);outline-offset:-2px;}
.wcf-acc__title{order:1;flex:1 1 auto;}
.wcf-acc__badge{order:2;display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--wcf-accent);color:#fff;font-size:12px;font-weight:600;}
.wcf-acc__badge[hidden]{display:none!important;}

/* Angle icon: on the LEFT, down when closed, up when open */
.wcf-acc__icon{order:3;flex:none;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;color:var(--wcf-muted);transition:transform .25s ease;}
[dir="ltr"] .wcf-acc__icon{order:0;}
.wcf-acc__icon svg{display:block;width:18px;height:18px;}
.wcf-acc[open]>.wcf-acc__head .wcf-acc__icon{transform:rotate(180deg);color:var(--wcf-accent);}

/* Body with max height + scroll */
.wcf-acc__body{max-height:var(--wcf-body-max);overflow-y:auto;overscroll-behavior:contain;padding:4px 16px 12px;border-top:1px solid var(--wcf-border);scrollbar-width:thin;scrollbar-color:#cbd0d8 transparent;}
.wcf-acc__body::-webkit-scrollbar{width:6px;}
.wcf-acc__body::-webkit-scrollbar-thumb{background:#cbd0d8;border-radius:3px;}
.wcf-acc__body::-webkit-scrollbar-track{background:transparent;}

/* ---- Search (sticky at top of body) ---- */
.wcf-search-wrap{position:sticky;top:-4px;z-index:2;background:var(--wcf-bg);padding:10px 0 6px;}
.wcf-acc input.wcf-search{display:block;width:100%;box-sizing:border-box;margin:0;padding:8px 12px;border:1px solid var(--wcf-border);border-radius:8px;background:var(--wcf-soft);font-size:13px;box-shadow:none;}
.wcf-acc input.wcf-search:focus{outline:none;border-color:var(--wcf-accent);background:#fff;}

/* ---- Options ---- */
.wcf-option__label{display:flex;align-items:center;gap:10px;margin:0;padding:8px 0;cursor:pointer;font-size:14px;font-weight:400;line-height:1.6;}
.wcf-option__label:hover .wcf-option__name{color:var(--wcf-accent);}
.wcf-option__name{flex:1;transition:color .15s;}
.wcf-option__count{color:var(--wcf-muted);font-size:12px;}
.wcf-empty{margin:8px 0 0;color:var(--wcf-muted);font-size:13px;}

/* ---- Checkbox design ---- */
.wcf-acc input.wcf-checkbox{
    -webkit-appearance:none!important;appearance:none!important;
    position:static!important;opacity:1!important;
    flex:none;display:inline-block;
    width:20px!important;height:20px!important;min-width:20px;
    margin:0!important;padding:0!important;
    border:1.5px solid #c5c9d0!important;border-radius:6px!important;
    background-color:#fff!important;background-repeat:no-repeat;background-position:center;background-size:14px 14px;
    box-shadow:none!important;cursor:pointer;vertical-align:middle;
    transition:background-color .15s,border-color .15s,box-shadow .15s;
}
.wcf-acc input.wcf-checkbox::before,.wcf-acc input.wcf-checkbox::after{content:none!important;display:none!important;}
.wcf-acc input.wcf-checkbox:hover{border-color:var(--wcf-accent)!important;}
.wcf-acc input.wcf-checkbox:checked{
    background-color:var(--wcf-accent)!important;border-color:var(--wcf-accent)!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.wcf-acc input.wcf-checkbox:focus{outline:none;}
.wcf-acc input.wcf-checkbox:focus-visible{box-shadow:0 0 0 3px rgba(37,99,235,.25)!important;}
.wcf-acc input.wcf-checkbox:checked+.wcf-option__name{font-weight:600;}

/* ---- Category tree ---- */
.wcf-acc .wcf-tree__list{padding-top:6px!important;}
.wcf-acc .wcf-tree__children{margin-inline-start:10px!important;padding-inline-start:10px!important;border-inline-start:1px dashed var(--wcf-border);}
.wcf-acc .wcf-tree__children[hidden]{display:none!important;}
.wcf-tree__row{display:flex;align-items:center;gap:6px;}
.wcf-tree .wcf-tree__link{flex:1;display:block;padding:7px 0;color:var(--wcf-text);font-size:14px;font-weight:400;text-decoration:none;}
.wcf-tree .wcf-tree__link:hover{color:var(--wcf-accent);}
.wcf-tree__item.is-current>.wcf-tree__row>.wcf-tree__link{color:var(--wcf-accent);font-weight:700;}
.wcf-tree__item.is-ancestor>.wcf-tree__row>.wcf-tree__link{font-weight:600;}
.wcf-tree button.wcf-tree__toggle{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:0;margin:0;padding:0;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--wcf-muted);cursor:pointer;}
.wcf-tree button.wcf-tree__toggle:hover{background:var(--wcf-soft);color:var(--wcf-accent);}
.wcf-tree__chevron{display:inline-flex;transition:transform .25s ease;}
.wcf-tree__chevron svg{display:block;width:16px;height:16px;}
.wcf-tree__toggle[aria-expanded="true"] .wcf-tree__chevron{transform:rotate(180deg);}

/* ---- Active filters ---- */
.wcf-active:empty{display:none;}
.wcf-active{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 16px;font-size:13px;}
.wcf-active__title{font-weight:700;color:var(--wcf-text);}
.wcf-active__chips{display:flex;flex-wrap:wrap;gap:8px;}
.wcf-active a.wcf-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 12px;padding-inline-end:6px;border:1px solid var(--wcf-border);border-radius:999px;background:var(--wcf-soft);color:var(--wcf-text);text-decoration:none;line-height:1.5;transition:border-color .15s;}
.wcf-active a.wcf-chip:hover{border-color:var(--wcf-accent);}
.wcf-chip__label{color:var(--wcf-muted);}
.wcf-chip__value{font-weight:600;}
.wcf-chip__x{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-inline-start:4px;border-radius:50%;background:#d1d5db;color:#fff;font-size:14px;line-height:1;}
.wcf-active a.wcf-chip:hover .wcf-chip__x{background:var(--wcf-accent);}
.wcf-active a.wcf-active__clear{color:var(--wcf-accent);text-decoration:underline;font-weight:600;}

/* ---- Loading ---- */
.wc-filter-results{position:relative;}
.wc-filter-results.wcf-is-loading{pointer-events:none;min-height:200px;}
.wc-filter-results.wcf-is-loading::before{content:"";position:absolute;inset:0;z-index:5;background:rgba(255,255,255,.7);}
.wc-filter-results.wcf-is-loading::after{content:"";position:absolute;top:120px;left:50%;z-index:6;width:36px;height:36px;margin-left:-18px;border:3px solid var(--wcf-border);border-top-color:var(--wcf-accent);border-radius:50%;animation:wcf-spin .7s linear infinite;}
@keyframes wcf-spin{to{transform:rotate(360deg);}}

/* ---- Product attributes grid (2 columns) ---- */
.wcf-attrs{
    --wcf-attr-border:#e30613; /* box border color */
    --wcf-attr-gap:16px;
    margin:0 0 24px;color:var(--wcf-text);
}
.wcf-attrs__title{margin:0 0 16px;font-size:18px;font-weight:700;}
.wcf-attrs ul.wcf-attrs__grid{
    display:flex;flex-wrap:wrap;justify-content:center; /* odd last item is centered */
    gap:var(--wcf-attr-gap);
    list-style:none!important;margin:0!important;padding:0!important;
}
.wcf-attrs li.wcf-attrs__item{
    box-sizing:border-box;
    flex:0 0 calc(50% - (var(--wcf-attr-gap) / 2));
    max-width:calc(50% - (var(--wcf-attr-gap) / 2));
    display:flex;align-items:center;flex-wrap:wrap;gap:4px;
    min-height:46px;margin:0!important;padding:10px 16px!important;
    border:1px solid var(--wcf-attr-border);border-radius:2px;
    background:var(--wcf-bg);
    list-style:none!important;font-size:14px;line-height:1.7;
}
.wcf-attrs li.wcf-attrs__item::before,.wcf-attrs li.wcf-attrs__item::after{content:none!important;display:none!important;}
.wcf-attrs li.wcf-attrs__item::marker{content:""!important;}
.wcf-attrs__label{font-weight:600;white-space:nowrap;}
.wcf-attrs__value{font-weight:400;}
.wcf-attrs__value a{color:inherit;text-decoration:underline;text-underline-offset:3px;}
.wcf-attrs__value a:hover{color:var(--wcf-attr-border);}
@media (max-width:600px){
    .wcf-attrs li.wcf-attrs__item{flex-basis:100%;max-width:100%;}
}

/* ---- Elementor editor placeholder ---- */
.wcf-placeholder{padding:16px;border:1px dashed #c5c9d0;border-radius:10px;color:#6b7280;font-size:13px;text-align:center;}



/*--------- Accordion Design / Start ------------*/

.wcf-acc{
    --wcf-accent:#EE0000 !important;
    border-radius:0;
    border:0;
}

.wcf-acc .wcf-acc__head{
    padding:10px;
    border-right:4px solid #EE0000;
}

.wcf-tree__item.is-current>.wcf-tree__row>.wcf-tree__link,
.wcf-tree .wcf-tree__link:hover,
.wcf-acc[open]>.wcf-acc__head .wcf-acc__icon,
.wcf-option__label:hover .wcf-option__name,
.wcf-active a.wcf-active__clear{
    color:#EE0000;
}

.wcf-acc .wcf-acc__body{
    border-right:4px solid #dddddd;
    border-top:2px solid #f1f1f1;
    padding:10px;
}

.wcf-active a.wcf-chip{
    border-color:#9f9f9f;
}

/*--------- Accordion Design / End ------------*/
/*--------- Single product attrs / Start ------------*/
.wcf-attrs table.wcf-attrs__table{
    border-radius:0;
    border-color:#EE0000;
}

.wcf-attrs__table th, .wcf-attrs__table td{
    border-bottom-color:#EE0000;
}

table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th{
    background:#fff;
}

.wcf-attrs__table th{
    background:#fff;
    border-left:1px solid #EE0000;
    color:#1f2937;
}

/*--------- Single product attrs / End ------------*/