/* ===== FILTER ===== */
.afl-scope .filter-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.afl-scope .filter-section {
    display: flex;
    flex-direction: column;
}

.afl-scope .filter-title {
    font-size: 9px !important;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.35) !important;
    font-weight: 600;
    margin-bottom: 16px !important;
}

.afl-scope .filter-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.afl-scope .filter-cat-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.afl-scope .filter-cat-list li {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 2px;
    transition: all 0.2s ease;
    color: rgba(255,255,255,0.5);
    border-left: 2px solid transparent;
    cursor: pointer;
    list-style: none !important;
}

.afl-scope .filter-cat-list li:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.04);
}

.afl-scope .filter-cat-list li.active {
    background: rgba(176,30,30,0.12);
    color: var(--e-global-color-accent, #c0392b);
    font-weight: 500;
    border-left: 2px solid var(--e-global-color-accent, #c0392b);
}

.afl-scope .filter-checks {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.afl-scope .check-wrap {
    display: flex;
    flex-direction: column;
}

.afl-scope .filter-section input[type="checkbox"] {
    display: none !important;
}

.afl-scope .check-wrap label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 0;
    margin: 0 !important;
}

.afl-scope .custom-check {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.afl-scope .check-wrap label:hover .custom-check {
    border-color: rgba(255,255,255,0.4);
}

.afl-scope .check-text {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s ease;
}

.afl-scope .check-wrap label:hover .check-text {
    color: rgba(255,255,255,0.8);
}

.afl-scope .check-wrap input[type="checkbox"]:checked + label .custom-check {
    background: var(--e-global-color-accent, #c0392b);
    border-color: var(--e-global-color-accent, #c0392b);
}

.afl-scope .check-wrap input[type="checkbox"]:checked + label .custom-check::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: 1.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.afl-scope .check-wrap input[type="checkbox"]:checked + label .check-text {
    color: rgba(255,255,255,0.9);
}

.afl-scope .price-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 10px;
}

.afl-scope #price-range,
.afl-scope #price-range-mobile {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
    margin-bottom: 14px;
}

.afl-scope #price-range::-webkit-slider-thumb,
.afl-scope #price-range-mobile::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--e-global-color-accent, #c0392b);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 0 6px rgba(192,57,43,0.5);
}

.afl-scope #price-range::-webkit-slider-thumb:hover,
.afl-scope #price-range-mobile::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.afl-scope .price-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.afl-scope .price-presets .preset {
    font-size: 9px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    color: rgba(255,255,255,0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.afl-scope .price-presets .preset:hover,
.afl-scope .price-presets .preset.active {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.2);
}

/* ===== TOOLBAR ===== */
.afl-scope .products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.afl-scope .toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.afl-scope .products-count {
    font-size: 14px;
    color: rgba(255,255,255,0.35);
}

.afl-scope .products-count span {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.afl-scope .toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.afl-scope .toolbar-search {
    display: flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 2px !important;
    padding: 6px 10px !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: fit-content !important;
    transition: border-color 0.2s;
}

.afl-scope .toolbar-search:focus-within {
    border-color: rgba(255,255,255,0.2) !important;
}

.afl-scope .toolbar-search svg {
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.afl-scope .toolbar-search input,
.afl-scope .products-toolbar input[type="text"] {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: unset !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.7) !important;
    width: 100px !important;
    line-height: normal !important;
}

.afl-scope .toolbar-search input::placeholder {
    color: rgba(255,255,255,0.25) !important;
}

.afl-scope .toolbar-sort {
    position: relative;
}

.afl-scope .sort-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 120px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 2px;
    padding: 6px 10px;
    background: transparent !important;
    cursor: pointer;
    transition: border-color 0.2s;
}

.afl-scope .sort-btn:hover {
    border-color: rgba(255,255,255,0.2) !important;
}

.afl-scope .sort-btn svg {
    transition: transform 0.2s;
}

.afl-scope .sort-btn.open svg {
    transform: rotate(180deg);
}

.afl-scope .sort-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    z-index: 999;
    overflow: hidden;
}

.afl-scope .sort-dropdown.open {
    display: block;
}

.afl-scope .sort-option {
    padding: 9px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.15s;
}

.afl-scope .sort-option:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
}

.afl-scope .sort-option.active {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.afl-scope .toolbar-view {
    display: flex;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.afl-scope .view-btn {
    padding: 6px 8px;
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afl-scope .view-btn:hover {
    color: rgba(255,255,255,0.55);
}

.afl-scope .view-btn.active {
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.8);
}

.afl-scope .filter-mobile-btn {
    display: none !important;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 2px;
    padding: 6px 12px;
    background: transparent !important;
    cursor: pointer;
    transition: all 0.2s;
}

.afl-scope .filter-mobile-btn:hover {
    border-color: rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .afl-scope .filter-mobile-btn {
        display: flex !important;
    }
    .afl-scope .custom-filter {
        display: none !important;
    }
    .afl-scope .toolbar-search {
        display: none !important;
    }
    .afl-scope .products-toolbar {
        flex-wrap: nowrap !important;
        gap: 10px;
    }
    .afl-scope .toolbar-left {
        flex: 1;
        min-width: 0;
    }
    .afl-scope .toolbar-right {
        flex-shrink: 0;
        gap: 6px;
    }
    .afl-scope .sort-btn {
        min-width: unset !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
    .afl-scope #sort-label {
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ===== DRAWER ===== */
.afl-scope .filter-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.afl-scope .filter-drawer-overlay.open { display: block; }

.afl-scope .filter-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    background: hsl(0,0%,11%);
    border-right: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.afl-scope .filter-drawer.open { transform: translateX(0); }

.afl-scope .filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.afl-scope .filter-drawer-header span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.afl-scope .filter-drawer-close {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.afl-scope .filter-drawer-close:hover { color: rgba(255,255,255,0.7); }

.afl-scope .filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.afl-scope .filter-drawer-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.afl-scope .filter-apply-btn {
    width: 100%;
    padding: 12px;
    background: var(--e-global-color-accent, #c0392b) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: opacity 0.2s;
}

.afl-scope .filter-apply-btn:hover { opacity: 0.85; }

/* ===== PRODUCT CARD ===== */
.afl-scope .custom-product-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.afl-scope .custom-product-card:hover {
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.afl-scope .card-image {
    position: relative;
    aspect-ratio: 9/10;
    background-size: cover;
    background-position: center;
    background-color: rgba(0,0,0,0.4);
    overflow: hidden;
    transition: transform 0.6s ease;
}

.afl-scope .custom-product-card:hover .card-image {
    transform: scale(1.04);
}

.afl-scope .card-cat {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

.afl-scope .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 10px;
    gap: 4px;
    min-width: 0;
}

.afl-scope .card-title {
    text-transform: var(--e-global-typography-afa0d1d-text-transform);
    font-family: var(--e-global-typography-afa0d1d-font-family), Sans-serif;
    font-size: 15px !important;
    color: rgba(255,255,255,0.9) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afl-scope .card-brand {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 10px 0 !important;
}

.afl-scope .card-price {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}

.afl-scope .card-price .woocommerce-Price-amount {
    color: rgba(255,255,255,0.8);
}

.afl-scope .card-btn {
    display: block;
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    text-decoration: none !important;
    border-radius: 2px;
    transition: all 0.2s ease;
    margin-top: auto;
}

.afl-scope .card-btn:hover {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
}

/* ===== LOOP GRID ===== */
.afl-scope .elementor-loop-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    transition: opacity 0.3s ease;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.afl-scope .elementor-loop-container .e-loop-item {
    min-width: 0 !important;
    max-width: 100% !important;
}

.afl-scope .elementor-loop-container.loop-list-view {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 768px) {
    .afl-scope .elementor-loop-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .afl-scope .elementor-loop-container.loop-list-view {
        grid-template-columns: 1fr !important;
    }
}

/* ===== NO PRODUCTS ===== */
.afl-scope .no-products {
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 60px 20px;
    font-size: 14px;
    grid-column: 1 / -1;
}
