/* FastStore vitrin filtreleri — standart tema işlevi, FastStore renkleri */

.fs-vitrin-head {
    margin: 0 0 20px;
    padding: 14px 0 0;
}

.fs-vitrin-head--has-chips {
    margin-bottom: 24px;
    padding-bottom: 4px;
}

.fs-vitrin-head__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 12px;
    row-gap: 10px;
}

.fs-vitrin-head__title-wrap {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.fs-vitrin-head__row > .fs-vitrin-filter-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
}

.fs-vitrin-head__title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111827;
}

.fs-vitrin-head__count {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
}

.fs-vitrin-head--has-chips .fs-vitrin-head__count {
    margin-bottom: 2px;
}

.fs-vitrin-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fs-vitrin-filter-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
}

.fs-vitrin-filter-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #374151;
}

.fs-vitrin-filter-btn__icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.fs-vitrin-filter-btn .ui-icon,
.fs-vitrin-filter-btn .ui-icon svg,
.fs-vitrin-filter-btn svg.ui-icon,
.fs-vitrin-filter-btn i[data-lucide].ui-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #374151;
}

.fs-vitrin-filter-btn__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1e3a8a;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1;
}

.fs-vitrin-chips {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 8px 0 0;
}

.fs-vitrin-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fs-vitrin-chip__label {
    line-height: 1.2;
}

.fs-vitrin-chip:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
}

.fs-vitrin-chip__x.ui-icon,
.fs-vitrin-chip__x.ui-icon svg,
.fs-vitrin-chip__x svg.ui-icon {
    display: block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.55;
}

.fs-vitrin-chips__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 8px;
    margin-left: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #1e3a8a;
    text-decoration: none;
    white-space: nowrap;
}

.fs-vitrin-chips__clear:hover {
    text-decoration: underline;
}

#fs-vitrin-swap > .fs-home-grid,
#fs-vitrin-swap > .fs-home-empty {
    margin-top: 2px;
}

/* Bottom sheet drawer */
.fs-filter-drawer[style*="display: none"] {
    pointer-events: none !important;
    visibility: hidden !important;
}

.fs-filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 5500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.fs-filter-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.45);
    will-change: opacity;
}

.fs-filter-drawer__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: min(92vh, 720px);
    display: flex;
    flex-direction: column;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -8px 32px rgb(15 23 42 / 0.12);
    will-change: transform, opacity;
    animation: fs-filter-sheet-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fs-filter-sheet-in {
    from {
        transform: translate3d(0, 100%, 0);
        opacity: 0.92;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.fs-motion-sheet-enter {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.fs-motion-sheet-enter-start {
    transform: translate3d(0, 100%, 0);
    opacity: 0.92;
}

.fs-motion-sheet-enter-end {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.fs-motion-sheet-leave {
    transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.18s ease;
}

.fs-motion-sheet-leave-start {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.fs-motion-sheet-leave-end {
    transform: translate3d(0, 100%, 0);
    opacity: 0.9;
}

@media (min-width: 640px) {
    .fs-motion-sheet-enter-start {
        transform: translate3d(0, 16px, 0) scale(0.98);
    }

    .fs-motion-sheet-leave-end {
        transform: translate3d(0, 12px, 0) scale(0.98);
    }
}

@media (min-width: 640px) {
    .fs-filter-drawer {
        align-items: center;
        padding: 16px;
    }

    .fs-filter-drawer__sheet {
        border-radius: 16px;
        max-height: min(88vh, 680px);
    }
}

.fs-filter-drawer__handle {
    width: 40px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: #e5e7eb;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .fs-filter-drawer__handle {
        display: none;
    }
}

.fs-filter-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.fs-filter-drawer__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #111827;
}

.fs-filter-drawer__sub {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.fs-filter-drawer__close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
}

.fs-filter-drawer__close .ui-icon svg {
    width: 18px;
    height: 18px;
}

.fs-filter-drawer__form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.fs-filter-drawer__scroll {
    overflow-y: auto;
    padding: 8px 16px 12px;
    -webkit-overflow-scrolling: touch;
}

.fs-filter-section {
    border-bottom: 1px solid #f3f4f6;
    padding: 4px 0;
}

.fs-filter-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    border: 0;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 800;
    color: #111827;
    cursor: pointer;
    text-align: left;
}

.fs-filter-section__chev-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease;
}

.fs-filter-section__chev-wrap.is-open {
    transform: rotate(180deg);
}

.fs-filter-section__chev.ui-icon,
.fs-filter-section__chev.ui-icon svg,
.fs-filter-section__chev-wrap svg.ui-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.fs-filter-section__body {
    padding-bottom: 12px;
}

.fs-filter-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fs-filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
}

.fs-filter-check:hover {
    background: #f9fafb;
}

.fs-filter-check__box {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    flex-shrink: 0;
    position: relative;
}

.fs-filter-check.is-active .fs-filter-check__box {
    border-color: #1e3a8a;
    background: #1e3a8a;
}

.fs-filter-check.is-active .fs-filter-check__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.fs-filter-check.is-active {
    color: #111827;
    font-weight: 700;
}

.fs-filter-sizes {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.fs-filter-size {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fs-filter-size.is-active {
    border-color: #1e3a8a;
    background: #1e3a8a;
    color: #fff;
}

.fs-filter-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fs-filter-color {
    display: inline-flex;
    cursor: pointer;
}

.fs-filter-color__swatch {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #e5e7eb;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.fs-filter-color.is-active .fs-filter-color__swatch {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1e3a8a;
}

.fs-filter-price__inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fs-filter-price__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fs-filter-price__field input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    box-sizing: border-box;
}

.fs-filter-sort select {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    background: #fff;
}

.fs-filter-drawer__footer {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f3f4f6;
    background: #fff;
}

.fs-filter-drawer__apply {
    width: 100%;
    justify-content: center;
}

.fs-filter-drawer__reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
}

.fs-filter-drawer__reset:hover {
    color: #111827;
}

.fs-filter-drawer__reset .ui-icon svg {
    width: 14px;
    height: 14px;
}

html.fs-filter-drawer-open {
    overflow: hidden;
}

html.fs-filter-drawer-open .fs-mobile-nav {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Size/color toggle without submit — visual only until apply */
.fs-filter-size input:focus + span,
.fs-filter-color input:focus + .fs-filter-color__swatch {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}
