
/* ZERO CSS BASE FRAMEWORK */

.wecf-filter-wrapper { display: flex; flex-direction: column; width: 100%; }
.wecf-cat-group { display: flex; flex-direction: column; width: 100%; transition: opacity 0.2s ease; }

.jkpf-conditional-dim { opacity: 0.45 !important; }

.wecf-filter-heading { width: 100%; display: block; font-weight: bold; font-family: inherit; margin: 0 0 15px 0; }

.wecf-parent-row, .wecf-child-row { 
    display: flex !important; flex-direction: row !important; align-items: center !important; 
    justify-content: space-between !important; width: 100% !important; 
    background: transparent; cursor: pointer; text-align: left !important;
    box-sizing: border-box !important; padding: 10px 0; transition: all 0.2s ease;
    pointer-events: auto !important; 
}
.wecf-parent-row:focus, .wecf-child-row:focus { outline: none !important; }
.wecf-btn-text { flex-grow: 1 !important; text-align: left !important; display: inline-flex !important; align-items: center; }

.wecf-children-group { display: none; padding-left: 20px; flex-direction: column; width: 100%; }
.mode-flat .wecf-children-group { display: flex; }

.wecf-toggle-accordion { 
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    flex-shrink: 0 !important; cursor: pointer; padding: 5px 10px; font-weight: bold; transition: all 0.2s; user-select: none;
}
.wecf-toggle-accordion::after { content: '+'; }
.wecf-toggle-accordion.open::after { content: '-'; }

.jkpf-checkbox {
    width: 16px; height: 16px; border: 1px solid #ccc; border-radius: 3px;
    margin-right: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: all 0.2s ease;
}
.wecf-parent-row.active .jkpf-checkbox, .wecf-child-row.active .jkpf-checkbox {
    background-color: #333; border-color: #333;
}
.wecf-parent-row.active .jkpf-checkbox::after, .wecf-child-row.active .jkpf-checkbox::after {
    content: "✓"; color: #fff; font-size: 11px;
}

.jkpf-swatches-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 15px 0; }
.jkpf-swatch-item { position: relative; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; pointer-events: auto !important; }
.jkpf-swatch-circle { display: block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.jkpf-swatch-item:hover .jkpf-swatch-circle { transform: scale(1.15); }
.jkpf-swatch-item.active .jkpf-swatch-circle { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6c5ce7; transform: scale(1.1); }
.jkpf-swatch-tooltip { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #2d3436; color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; pointer-events: none; margin-bottom: 6px; z-index: 10; }
.jkpf-swatch-item:hover .jkpf-swatch-tooltip { display: block; }

.jkpf-search-wrapper { display: flex; width: 100%; margin-bottom: 15px; }
.jkpf-search-input { flex-grow: 1; padding: 10px; border: 1px solid #ddd; border-right: none; border-radius: 4px 0 0 4px; font-family: inherit; }
.jkpf-search-apply { padding: 10px 15px; background: #333; color: #fff; border: none; border-radius: 0 4px 4px 0; cursor: pointer; }

.jkpf-price-wrapper { display: flex; flex-direction: column; gap: 12px; margin-top: 5px; width: 100%; }
.jkpf-price-inputs { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.jkpf-price-input { width: 45%; padding: 10px !important; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; text-align: center; box-sizing: border-box; background: #fff;}
.jkpf-price-sep { font-weight: bold; color: #555; }
.jkpf-price-apply { width: 100%; padding: 12px; background: #333; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; text-transform: uppercase; font-size: 13px; transition: 0.2s;}
.jkpf-price-apply:hover { opacity: 0.85; }

.ui-slider { position: relative; height: 6px; background: #e0e0e0; border-radius: 3px; margin: 15px 8px; }
.ui-slider-range { position: absolute; height: 100%; background: #333; border-radius: 3px; }
.ui-slider-handle { position: absolute; top: -5px; width: 16px; height: 16px; background: #fff; border: 2px solid #333; border-radius: 50%; cursor: pointer; outline: none; margin-left: -8px;}

.jkpf-chips-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; width: 100%; }
.jkpf-chip { background: #f1f2f6; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.jkpf-chip-close { cursor: pointer; font-weight: bold; font-size: 16px; line-height: 1; opacity: 0.6; }
.jkpf-chip-close:hover { opacity: 1; color: #d63031; }
.jkpf-clear-all { cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: underline; color: #d63031; padding: 6px 5px; }

.jkpf-mobile-trigger { display: none; width: 100%; padding: 12px; background: #333; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; text-transform: uppercase; font-size: 14px; margin-bottom: 20px; align-items: center; justify-content: center; gap: 10px; }
.jkpf-drawer-close { display: none; text-align: right; font-size: 28px; cursor: pointer; margin-bottom: 15px; color: #333; }
.jkpf-drawer-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.5); z-index: 99998; }

@media (max-width: 768px) {
    .jkpf-mobile-trigger { display: flex; }
    .jkpf-drawer-inner { 
        position: fixed; top: 0; left: -100%; width: 300px; max-width: 85vw; height: 100vh;
        background: #fff; z-index: 99999; transition: left 0.3s ease; 
        overflow-y: auto; padding: 25px; box-shadow: 2px 0 15px rgba(0,0,0,0.15);
    }
    .jkpf-drawer-inner.open { left: 0; }
    .jkpf-drawer-close { display: block; }
}

.elementor-widget-loop-grid { transition: opacity 0.3s ease; }
.jkpf-loader-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.75); z-index: 9999; border-radius: 8px; }
.jkpf-loader-sticky { position: sticky; top: 40vh; display: flex; justify-content: center; align-items: center; width: 100%; }
.jkpf-spin-anim { width: 60px; height: 60px; object-fit: contain; animation: jkpf-spin-rotate 1.2s linear infinite; }
@keyframes jkpf-spin-rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.jkpf-debug-hud {
    position: fixed; bottom: 20px; right: 20px; width: 340px; background: #2d3436; color: #dfe6e9;
    border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); z-index: 9999999;
    font-family: monospace; font-size: 12px; overflow: hidden; border: 1px solid #636e72;
}
.jkpf-debug-head {
    background: #6c5ce7; color: #fff; padding: 8px 12px; font-weight: bold;
    display: flex; justify-content: space-between; align-items: center;
}
.jkpf-debug-min { cursor: pointer; font-size: 16px; line-height: 1; }
.jkpf-debug-body { padding: 12px; }
.jkpf-debug-body p { margin: 0 0 6px 0; }
.jkpf-debug-url { display: block; word-break: break-all; background: #1e272e; padding: 4px; border-radius: 4px; margin-top: 3px; max-height: 50px; overflow-y: auto;}
