/* ═══════════════════════════════════════════════════════
   MULTI-FILTER — multi-filter.css
   Palette: #0a0a0a · #ffffff · #c9a84c
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════ */
.cpf-wrapper {
    width: 100%;
}

.cpf-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════ */
.cpf-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    position: sticky;
    top: 20px;
    overflow: hidden;
}

.cpf-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: white;
    border-bottom: 1px solid #e8e8e8;
}

.cpf-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: black;
    flex: 1;
}

#cpf-lottie-filter {
    flex-shrink: 0;
}

.cpf-clear-all {
    margin-left: auto;

    background: transparent;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    padding: 0 !important;
    color: red;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}



.cpf-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    transition: color 0.2s;
}

.cpf-sidebar-toggle:hover {
    color: #c9a84c;
}

/* ── Filter Sections ──────────────────────────────────── */
.cpf-filter-section {
    border-bottom: 1px solid #e8e8e8;
}

.cpf-filter-section:last-child {
    border-bottom: none;
}

.cpf-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;

    text-transform: normal;
    color: black;
    transition: color 0.2s, background 0.2s;
}

.cpf-section-toggle:hover {
    background: #f8f8f8;
    color: #c9a84c;
}

.cpf-section-toggle:hover .cpf-chevron {
    color: #c9a84c;
}

.cpf-chevron {
    color: #888888;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}

.cpf-section-toggle[aria-expanded="false"] .cpf-chevron {
    transform: rotate(-90deg);
}

.cpf-section-body {
    padding: 2px 0 8px;
}

/* ── Scrollable ───────────────────────────────────────── */
.cpf-scrollable {
    max-height: 200px;
    overflow-y: auto;
    padding: 2px 18px;
    scrollbar-width: thin;
    scrollbar-color: #c9a84c transparent;
}

.cpf-scrollable::-webkit-scrollbar {
    width: 3px;
}

.cpf-scrollable::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 4px;
}

/* ── Checkboxes ───────────────────────────────────────── */
.cpf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    color: #333333;
    user-select: none;
    transition: color 0.18s;
}

.cpf-checkbox-label:hover {
    color: #0a0a0a;
}

.cpf-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cpf-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid #d0d0d0;
    border-radius: 3px;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.cpf-checkbox-label:hover .cpf-checkbox-custom {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.cpf-checkbox-label input:checked+.cpf-checkbox-custom {
    background: #0a0a0a;
    border-color: #0a0a0a;
    box-shadow: none;
}

.cpf-check-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cpf-checkbox-label input:checked+.cpf-checkbox-custom .cpf-check-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.cpf-checkbox-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 6px;
}

.cpf-count {
    font-size: 11px;
    font-weight: 400;
    color: #888888;
}

/* ── Price Range ──────────────────────────────────────── */
.cpf-price-range {
    padding: 10px 18px 24px;
}

.cpf-price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
}

.cpf-price-label {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    background: #ffffff;
    border: 1.5px solid #f0f0f0;
    padding: 6px 14px;
    border-radius: 12px;
    min-width: 80px;
    text-align: center;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.cpf-price-sep {
    height: 1px;
    width: 10px;
    background: #ddd;
    flex-shrink: 0;
}

.cpf-range-slider-wrap {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.cpf-range-slider-wrap::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    height: 2px;
    background: #efefef;
    border-radius: 2px;
    z-index: 0;
}

#cpf-range-track {
    position: absolute;
    height: 2px;
    background: #000;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.cpf-range {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    width: calc(100% - 10px);
    height: 2px;
    background: transparent;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    outline: none;
}

.cpf-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #000000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: grab;
    pointer-events: all;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cpf-range::-webkit-slider-thumb:hover {
    transform: scale(1.15) translateY(0);
    background: #000;
    border-color: #000;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cpf-range::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.cpf-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #000000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: grab;
    pointer-events: all;
    transition: all 0.2s ease;
}

.cpf-range::-moz-range-thumb:hover {
    background: #000;
}

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════ */
.cpf-main {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* ── Toolbar ──────────────────────────────────────────── */
.cpf-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.cpf-result-count {
    font-size: 14px;
    color: #888888;
    letter-spacing: 0.02em;
    flex: 1;
}

.cpf-result-count #cpf-count-num {
    font-weight: 400;
    color: #0a0a0a;
}

.cpf-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpf-sort-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888888;
    white-space: nowrap;
}

.cpf-sort-select-wrap {
    position: relative;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}


.cpf-sort-select-wrap:hover,
.cpf-sort-select-wrap:focus-within {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.cpf-sort-select {
    -webkit-appearance: none;
    appearance: none;
    padding: 8px 34px 8px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    color: #0a0a0a;
    cursor: pointer;
    min-width: 160px;
    outline: none;

}

.cpf-select-arrow {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.2s;
}

.cpf-sort-select-wrap:focus-within .cpf-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.cpf-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: #0a0a0a;
    color: #ffffff;
    border: 1px solid #0a0a0a;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.cpf-mobile-filter-btn:hover {
    background: transparent;
    color: #0a0a0a;
}

.cpf-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    background: #c9a84c;
    color: #0a0a0a;
    font-size: 9px;
    font-weight: 800;
    border-radius: 10px;
    padding: 0 4px;
}

/* ── Loading ──────────────────────────────────────────── */
.cpf-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    backdrop-filter: blur(3px);
    min-height: 80px;
}

.cpf-loading.active {
    display: flex;
}

.cpf-spinner-ring {
    width: 44px;
    height: 44px;
    animation: cpf-spin 0.9s linear infinite;
}

.cpf-spinner-ring svg {
    width: 100%;
    height: 100%;
}

@keyframes cpf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Product Grid ─────────────────────────────────────── */
.cpf-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cpf-product-grid.cpf-fading {
    opacity: 0.3;
    pointer-events: none;
}

/* ── No Results ───────────────────────────────────────── */
.cpf-no-results {
    text-align: center;
    padding: 72px 20px;
    color: #888888;
}

.cpf-no-results svg {
    margin-bottom: 18px;
    display: block;
    margin-inline: auto;
}

.cpf-no-results-title {
    font-size: 15px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 6px;
}

.cpf-no-results-sub {
    font-size: 13px;
    color: #888888;
    margin: 0 0 22px;
}

.cpf-clear-all-btn {
    padding: 10px 28px;
    background: #0a0a0a;
    color: #ffffff;
    border: 2px solid #0a0a0a;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cpf-clear-all-btn:hover {
    background: transparent;
    color: #0a0a0a;
}

/* ── Pagination / Load More ───────────────────────────── */
.cpf-pagination {
    text-align: center;
    margin-top: 36px;
}

.cpf-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 38px;
    background: transparent;
    border: 2px solid #0a0a0a;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    color: #0a0a0a;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, color 0.25s;
}

.cpf-load-more::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #c9a84c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.cpf-load-more:hover::before {
    transform: scaleX(1);
}

.cpf-load-more:hover {
    border-color: #c9a84c;
}

.cpf-load-more>* {
    position: relative;
    z-index: 1;
}

.cpf-load-more svg {
    transition: transform 0.22s;
}

.cpf-load-more:hover svg {
    transform: translateY(3px);
}

/* ── Overlay ──────────────────────────────────────────── */
.cpf-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.cpf-overlay.active {
    display: block;
}

body.cpf-no-scroll {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   PFC PRODUCT CARD
   ═══════════════════════════════════════════════════════ */
.cpf-product-li {
    list-style: none;
}

@media (max-width: 1340px) {
    .cpf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cpf-sidebar {
        width: 230px;
    }

    .cpf-sort-select {
        min-width: 140px;
    }

    .pfc-card {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET ≤1024px
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cpf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cpf-sidebar {
        width: 230px;
    }

    .cpf-sort-select {
        min-width: 140px;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤768px
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .cpf-layout {
        flex-direction: column;
    }

    .cpf-sidebar-header {
        margin-top: 40px !important;
    }

    .cpf-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        bottom: 0;
        width: 80vw;
        max-width: 320px;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
        overflow-y: auto;
        border-radius: 0;
        border: none;
        border-right: 1px solid #e8e8e8;
    }

    .cpf-sidebar.cpf-sidebar--open {
        transform: translateX(0);
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
    }

    .cpf-sidebar-toggle {
        display: flex;
    }

    .cpf-mobile-filter-btn {
        display: inline-flex;
    }

    .cpf-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cpf-result-count {
        order: 1;
        flex: 1 0 100%;
    }

    .cpf-mobile-filter-btn {
        order: 2;
    }

    .cpf-sort-wrap {
        order: 3;
        margin-left: auto;
    }

    .cpf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE ≤480px
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .cpf-product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cpf-result-count {
        display: none;
    }

    .cpf-sort-wrap {
        width: 100%;
    }

    .cpf-sort-select {
        min-width: 0;
        flex: 1;
    }

    .cpf-sort-select-wrap {
        flex: 1;
    }

    .cpf-load-more {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }

    .cpf-sidebar {
        width: 80vw;
        max-width: 100vw;
    }


}