/* Mercan filter — v62 */


[data-toggle="filter"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* MasaÃ¼stÃ¼ sidebar â€” dÄ±ÅŸ scroll yok */
@media (min-width: 1024px) {
    [data-toggle="filter"] {
        overflow-x: clip;
        overflow-y: visible !important;
        max-height: none !important;
    }

    [data-type="vertical"][data-toggle="filter"] > [id^="filter"],
    [data-type="vertical"][data-toggle="filter"] > [id^="filter"] .drawer-wrapper,
    [data-type="vertical"][data-toggle="filter"] > [id^="filter"] .drawer-wrapper > div,
    [data-type="vertical"][data-toggle="filter"] .mercan-filter-accordion {
        overflow: visible !important;
        max-height: none !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    [data-type="vertical"][data-toggle="filter"] > [id^="filter"]::-webkit-scrollbar,
    [data-type="vertical"][data-toggle="filter"] .mercan-filter-accordion::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    [data-toggle="filter"] .mercan-filter-panel {
        overflow: visible !important;
        max-height: none !important;
    }
}

[data-toggle="filter"] .mercan-filter-panel {
    background: #fff !important;
    border: 0 !important;
    padding: 0;
    box-shadow: none;
}

[data-toggle="filter"] .mercan-filter-accordion {
    gap: 0.75rem;
}

[data-toggle="filter"] .mercan-filter-groups-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

[data-toggle="filter"] .mercan-filter-filters-stack {
    gap: 0.75rem;
}

[data-toggle="filter"] .mercan-filter-groups-wrap > div:not(.mercan-filter-group):not(.mercan-filter-groups-title):not(.mercan-filter-card) {
    display: contents;
}

/* Kart kutularÄ± */
[data-toggle="filter"] .mercan-filter-card {
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 0.625rem;
    background: #f8fafc !important;
    padding: 0.875rem 1rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

[data-toggle="filter"] .mercan-filter-groups-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary, #1a3a5f);
    padding-left: 1rem;
    margin: 0 0 0.25rem;
    line-height: 1.35;
}

/* T-Soft .filter-name / button sÄ±fÄ±rla */
[data-toggle="filter"] .filter-name,
[data-toggle="filter"] button.filter-name {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 !important;
    margin: 0 0 0.625rem !important;
    min-height: auto;
    width: 100%;
    font: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

[data-toggle="filter"] .filter-name > span:first-child,
[data-toggle="filter"] button.filter-name > span:first-child {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--primary, #1a3a5f) !important;
}

[data-toggle="filter"] .mercan-filter-always-open .filter-name {
    pointer-events: none;
    cursor: default;
}

[data-toggle="filter"] .mercan-filter-always-open .filter-name > span:last-child {
    display: none;
}

[data-toggle="filter"] .mercan-filter-group:not(.mercan-filter-always-open) .filter-name {
    cursor: pointer;
    pointer-events: auto;
}

[data-toggle="filter"] .mercan-filter-categories [id^="filter-categories-"],
[data-toggle="filter"] .mercan-filter-group [id^="filter-"]:not([id^="filter-categories-child-"]) {
    padding: 0 !important;
}

/* Kategori aÄŸacÄ± */
[data-toggle="filter"] .mercan-filter-cat-toggle,
[data-toggle="filter"] button.mercan-filter-cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.3125rem 0;
    cursor: pointer;
    user-select: none;
    font: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
}

[data-toggle="filter"] .mercan-filter-cat-title {
    font-weight: 700;
    color: var(--primary, #1a3a5f);
    font-size:larger;
}

[data-toggle="filter"] .mercan-filter-cat-toggle-sub {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
}

[data-toggle="filter"] .mercan-filter-cat-toggle-sub:hover {
    color: #ec6408;
}

[data-toggle="filter"] .mercan-filter-cat-toggle:not(.active) + .mercan-filter-cat-children,
[data-toggle="filter"] .mercan-filter-cat-toggle-sub:not(.active) + .mercan-filter-cat-grandchildren {
    display: none;
}

[data-toggle="filter"][data-mercan-search="1"] .mercan-filter-cat-toggle-sub + .mercan-filter-cat-grandchildren {
    display: flex !important;
}

[data-toggle="filter"][data-mercan-search="1"] .mercan-filter-cat-toggle-sub .mercan-filter-cat-chevron {
    transform: rotate(180deg);
}

[data-toggle="filter"] .mercan-filter-cat-children {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-left: 0.625rem;
    margin-top: 0.25rem;
    max-height: calc(1.75rem * 10 + 0.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
}

[data-toggle="filter"] .mercan-filter-cat-grandchildren {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
    padding: 0.125rem 0.25rem 0.125rem 0.75rem;
    margin: 0.25rem 0;
    max-height: calc(1.75rem * 8 + 0.5rem);
    overflow-y: auto;
    overflow-x: hidden;
}

[data-toggle="filter"] .mercan-filter-cat-link,
[data-toggle="filter"] .mercan-filter-cat-link-level3 {
    display: block;
    padding: 0.3125rem 0;
    font-size: 11px;
    line-height: 1.35;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

[data-toggle="filter"] .mercan-filter-cat-link {
    font-weight: 700;
}

[data-toggle="filter"] .mercan-filter-cat-link-level3 {
    font-weight: 500;
    padding: 0.125rem 0;
}

[data-toggle="filter"] .mercan-filter-cat-link:hover,
[data-toggle="filter"] .mercan-filter-cat-link-level3:hover {
    color: #ec6408 !important;
}

[data-toggle="filter"] .mercan-filter-cat-has-selection .mercan-filter-cat-item-muted {
    opacity: 1;
    color: var(--primary, #1a3a5f) !important;
    font-weight: 500 !important;
}

[data-toggle="filter"] .mercan-filter-cat-item-selected,
[data-toggle="filter"] .mercan-filter-cat-has-selection .mercan-filter-item-link.mercan-filter-cat-item-selected,
[data-toggle="filter"] .mercan-filter-cat-has-selection .mercan-filter-cat-toggle-sub.mercan-filter-cat-item-selected {
    opacity: 1 !important;
    color: #ec6408 !important;
    font-weight: 700 !important;
}

[data-toggle="filter"] .mercan-filter-cat-chevron {
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.15s ease;
}

/* Liste Ã¶ÄŸeleri */
[data-toggle="filter"] .mercan-filter-item-label,
[data-toggle="filter"] .mercan-filter-item-link {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b !important;
    transition: color 0.15s ease;
}

[data-toggle="filter"] .mercan-filter-item-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 1.75rem;
    padding: 0.3125rem 0;
    cursor: pointer;
}

[data-toggle="filter"] .mercan-filter-item-label:hover,
[data-toggle="filter"] .mercan-filter-item-link:hover {
    color: #ec6408 !important;
}

[data-toggle="filter"] .mercan-filter-count {
    color: #6b7280;
    font-weight: 400;
}

/* Akordeon gruplarÄ± */
[data-toggle="filter"] .mercan-filter-group:not(.mercan-filter-always-open) .filter-name:not(.active) + [id^="filter-"] {
    display: none;
}

[data-toggle="filter"] .mercan-filter-group:not(.mercan-filter-always-open) .filter-name:not(.active) {
    margin-bottom: 0 !important;
}

/* Scroll */
[data-toggle="filter"] .mercan-filter-thin-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

[data-toggle="filter"] .mercan-filter-thin-scroll::-webkit-scrollbar {
    width: 4px;
}

[data-toggle="filter"] .mercan-filter-thin-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

[data-toggle="filter"] .mercan-filter-scroll {
    max-height: 10rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    margin-right: -0.25rem;
}

[data-toggle="filter"] .mercan-filter-scroll-inline {
    max-height: 6rem;
}

/* Temizle butonlarÄ± */
[data-toggle="filter"] .mercan-filter-clear-btn,
[data-toggle="filter"] .mercan-filter-clear-all {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.375rem;
    font-size: inherit;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    color: var(--primary, #1a3a5f);
}

[data-toggle="filter"] .mercan-filter-clear-btn {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

[data-toggle="filter"] .mercan-filter-clear-all {
    border: 1px solid currentColor;
    background: #fff;
}

/* Marka toggle */
[data-toggle="filter"] .mercan-filter-brand-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[data-toggle="filter"] .mercan-filter-list-brands .form-item:nth-child(n+11) {
    display: none;
}

[data-toggle="filter"] .mercan-filter-brand-toggle:checked ~ .mercan-filter-list-brands .form-item:nth-child(n+11) {
    display: flex;
}

[data-toggle="filter"] .mercan-filter-brand-toggle:checked ~ .mercan-filter-list-brands {
    max-height: 14rem;
    overflow-y: auto;
}

[data-toggle="filter"] .mercan-filter-brand-toggle:checked ~ .mercan-filter-show-all .mercan-filter-show-more {
    display: none;
}

[data-toggle="filter"] .mercan-filter-brand-toggle:not(:checked) ~ .mercan-filter-show-all .mercan-filter-show-less {
    display: none;
}

[data-toggle="filter"] .mercan-filter-show-all {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--primary, #1a3a5f);
}

[data-toggle="filter"] .mercan-filter-show-more::after {
    content: none;
}

/* Fiyat */
[data-toggle="filter"] .mercan-filter-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

[data-toggle="filter"] .mercan-filter-price-row input[type="text"] {
    flex: 1 1 0;
    min-width: 0;
    height: 2.25rem;
    font-size: inherit;
    color: var(--primary, #1a3a5f);
    font-weight: 500;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    background: #fff !important;
    padding: 0 0.625rem !important;
}

[data-toggle="filter"] .mercan-filter-price-sep {
    color: #94a3b8;
}

[data-toggle="filter"] .mercan-filter-range {
    position: relative;
    height: 1.25rem;
    margin: 0 0.125rem 0.75rem;
    display: flex;
    align-items: center;
}

[data-toggle="filter"] .mercan-filter-range-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
    pointer-events: none;
}

[data-toggle="filter"] .mercan-filter-range-fill {
    position: absolute;
    top: 0;
    left: var(--range-min, 0%);
    width: calc(var(--range-max, 100%) - var(--range-min, 0%));
    height: 100%;
    background: #ec6408;
    border-radius: 999px;
}

[data-toggle="filter"] .mercan-filter-range-input {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    outline: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

[data-toggle="filter"] .mercan-filter-range-input::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: 0;
}

[data-toggle="filter"] .mercan-filter-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border-radius: 50%;
    background: #ec6408;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    pointer-events: all;
}

[data-toggle="filter"] .mercan-filter-range-input::-moz-range-track {
    height: 4px;
    background: transparent;
    border: 0;
}

[data-toggle="filter"] .mercan-filter-range-input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ec6408;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    pointer-events: all;
}

[data-toggle="filter"] .mercan-filter-range-input-min { z-index: 3; }
[data-toggle="filter"] .mercan-filter-range-input-max { z-index: 4; }

@media (min-width: 1024px) {
    [data-toggle="filter"] { font-size: 0.75rem; }

    [data-toggle="filter"] .mercan-filter-cat-toggle-sub,
    [data-toggle="filter"] .mercan-filter-item-label,
    [data-toggle="filter"] .mercan-filter-item-link,
    [data-toggle="filter"] .mercan-filter-cat-link,
    [data-toggle="filter"] .mercan-filter-price-row input {
        font-size: 0.75rem;
    }

    [data-toggle="filter"] .mercan-filter-groups-title,
    [data-toggle="filter"] .filter-name > span:first-child {
        font-size: 0.9375rem;
    }

    /* Başlık yalnızca DOM'da varken görünsün (boş filtrede v-if ile kalkar) */
    [data-toggle="filter"] .mercan-filter-groups-title {
        display: block !important;
    }

    /* Kart yoksa masaüstü filtre sütununu tamamen gizle */
    [data-toggle="filter"]:not(:has(.mercan-filter-card)) {
        display: none !important;
    }

    [data-toggle="filter"] .mercan-filter-price-row input {
        height: 2rem;
    }
}

@media (max-width: 1023px) {
    [data-toggle="filter"] .mercan-filter-card {
        border: 0 !important;
        border-radius: 0;
        padding: 1rem;
    }

    /* Mobil drawer â€” flex + scroll */
    [data-type="vertical"][data-toggle="filter"] > [id^="filter"].drawer {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100dvh;
    }

    [data-type="vertical"][data-toggle="filter"] .drawer-wrapper {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        max-height: 100dvh;
        overflow: hidden !important;
    }

    [data-type="vertical"][data-toggle="filter"] .mercan-filter-panel.drawer-container {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        overflow: hidden !important;
    }

    [data-type="vertical"][data-toggle="filter"] .mercan-filter-drawer-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* Alt tab bar + gÃ¼venli alan */
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    [data-type="vertical"][data-toggle="filter"] .mercan-filter-drawer-footer {
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    /* Ä°Ã§ iÃ§e scroll yerine ana panel kaydÄ±rÄ±lsÄ±n */
    [data-toggle="filter"] .mercan-filter-cat-children,
    [data-toggle="filter"] .mercan-filter-cat-grandchildren,
    [data-toggle="filter"] .mercan-filter-scroll {
        max-height: none !important;
        overflow-y: visible !important;
    }

    [data-toggle="filter"] .mercan-filter-brand-toggle:checked ~ .mercan-filter-list-brands {
        max-height: none;
        overflow-y: visible;
    }

    [data-toggle="filter"] .mercan-filter-filters-stack {
        padding-bottom: 0.5rem;
    }

    [data-toggle="filter"] .mercan-filter-sort-option {
        font: inherit;
        color: inherit;
        appearance: none;
        -webkit-appearance: none;
    }
}

.mercan-filter-status-sync {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 1024px) {
    .mercan-filter-col-empty,
    [data-toggle="filter"].mercan-filter-is-empty {
        display: none !important;
    }
}