:root {
    --wcf-border: #cbd5e1;
    --wcf-text: #334155;
    --wcf-accent: #1e40af;
    --wcf-bg-soft: #f8fafc;
}

.wcf-filter-container {
    background: var(--wcf-bg-soft);
    padding: 24px;
    border: 1px solid var(--wcf-border);
    border-radius: 12px;
    color: var(--wcf-text);
}

.wcf-filter-section {
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}

.wcf-filter-section:last-of-type {
    border-bottom: none;
}

.wcf-filter-section h4 {
    margin: 0 0 14px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #1e293b;
}

.wcf-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--wcf-border);
    border-radius: 6px;
    font-size: 14px;
}

.wcf-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcf-price-inputs input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--wcf-border);
    border-radius: 6px;
}

.wcf-scrollable-section {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Custom modern scrollbar design layouts */
.wcf-scrollable-section::-webkit-scrollbar {
    width: 5px;
}
.wcf-scrollable-section::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.wcf-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 8px;
    cursor: pointer;
}

.wcf-count {
    color: #94a3b8;
    font-size: 12px;
}

.wcf-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.wcf-btn-apply {
    background: var(--wcf-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.wcf-btn-clear {
    background: #fff;
    color: #475569;
    border: 1px solid var(--wcf-border);
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    line-height: 2.2;
}

/* HORIZONTAL Matrix Config Grid Rules */
@media (min-width: 768px) {
    .wcf-layout-horizontal form {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 20px;
    }
    .wcf-layout-horizontal .wcf-filter-section {
        margin-bottom: 0;
        flex: 1;
        min-width: 200px;
        border-bottom: none;
        padding-bottom: 0;
    }
    .wcf-layout-horizontal .wcf-actions {
        margin-top: 0;
    }
}


/* NO PRODUCTS FOUND TEMPLATE DESIGN */
.wcf-no-products-notice {
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed var(--wcf-border, #cbd5e1);
    border-radius: 12px;
    width: 100%;
    grid-column: 1 / -1; /* Forces the block to take up the full width if inside an Elementor grid matrix */
    margin: 20px 0;
    box-sizing: border-box;
}

.wcf-notice-icon {
    color: #94a3b8;
    margin-bottom: 16px;
}

.wcf-no-products-notice h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.wcf-no-products-notice p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
/* ── IMPROVEMENT 2: Dropdown filter style ────────────────────────── */
.wcf-select-filter {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--wcf-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--wcf-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.wcf-select-filter:focus {
    outline: none;
    border-color: var(--wcf-accent);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, .12);
}
