/*
 * CatWalk — Listing filters CSS.
 * Extracted from inline <style> blocks in desktop_filters and
 * mobile_filters partials during audit Sprint 2.4.
 */


/* === desktop_filters.blade.php block 1 === */
/* Filter Sidebar - sadece sticky pozisyon */
    .catwalk-filter-sidebar {
        font-family: 'Inter', -apple-system, sans-serif;
        padding: 0;
        margin-right: 0;
        padding-right: 18px;
        position: sticky;
        top: 20px;
    }

    /* Header row with title + Clear All link */
    .catwalk-filter-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0 14px;
        border-bottom: 1px solid var(--catwalk-border);
        margin-bottom: 6px;
    }

    .catwalk-filter-topbar h5 {
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin: 0;
        color: var(--catwalk-text-primary);
    }

    .catwalk-filter-topbar .catwalk-clear-link {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--catwalk-primary);
        background: none;
        border: none;
        padding: 4px 0;
        cursor: pointer;
        text-decoration: none;
    }

    .catwalk-filter-topbar .catwalk-clear-link:hover {
        text-decoration: underline;
    }

    /* Form: flex column, toplam yüksekliği sınırlar */
    #search-form {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 60px);
    }

    /* Scroll edilebilir filtre içeriği */
    .filter-scroll-area {
        flex: 1;
        overflow-y: auto;
        padding-right: 0;
        scrollbar-width: thin;
        scrollbar-color: #ddd transparent;
    }

    .filter-scroll-area::-webkit-scrollbar {
        width: 3px;
    }

    .filter-scroll-area::-webkit-scrollbar-track {
        background: transparent;
    }

    .filter-scroll-area::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 99px;
    }

    .filter-scroll-area::-webkit-scrollbar-thumb:hover {
        background: #bbb;
    }

    /* Sabit filtrele butonu sarmalayıcısı */
    .filter-submit-wrap {
        padding: 14px 0 4px;
        background: var(--catwalk-bg-main);
        border-top: 1px solid var(--catwalk-border);
        flex-shrink: 0;
        display: flex;
        gap: 10px;
    }

    .filter-submit-wrap .filter-clear-btn {
        flex: 0 0 auto;
        padding: 12px 16px;
        background: transparent;
        color: var(--catwalk-text-primary);
        border: 1px solid var(--catwalk-border-dark);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .filter-submit-wrap .filter-clear-btn:hover {
        background: var(--catwalk-bg-light);
    }

    .filter-submit-wrap .filter-submit-btn {
        flex: 1 1 auto;
        background: var(--catwalk-secondary);
        color: var(--catwalk-text-white);
        border: none;
        padding: 12px;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .filter-submit-wrap .filter-submit-btn:hover {
        background: var(--catwalk-primary);
    }

    .filter-section {
        padding: 12px 0;
        border-bottom: 1px solid var(--catwalk-border);
    }

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

    /* When the section's body is collapsed, drop the header's bottom margin
       so adjacent collapsed sections don't have a yawning gap. */
    .filter-section.is-collapsed .filter-header {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin-bottom: 12px;
        padding-bottom: 8px;
        padding-right: 16px;
        padding-left: 0;
        padding-top: 0;
        border: none;
        border-bottom: 1px solid var(--catwalk-border);
        background: none;
        width: 100%;
        text-align: left;
        appearance: none;
        -webkit-appearance: none;
        font-family: inherit;
    }
    button.filter-header:focus-visible {
        outline: 2px solid var(--catwalk-primary, #d4a574);
        outline-offset: 2px;
    }

    .filter-header h6 {
        font-size: 14px;
        font-weight: 600;
        margin: 0;
        color: #171517;
    }

    .filter-header .toggle {
        font-size: 18px;
        color: var(--catwalk-text-muted);
    }

    .filter-body {
        display: block;
    }

    /* Category List */
    .category-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .category-list li {
        margin-bottom: 6px;
    }

    .category-list>li>a {
        color: #555;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.2s;
    }

    .category-list>li>a:hover,
    .category-list>li>a.active {
        color: var(--catwalk-primary);
    }

    .category-list .sub-categories {
        list-style: none;
        padding-left: 15px;
        margin: 5px 0 0 0;
    }

    .category-list .sub-categories li {
        margin-bottom: 4px;
    }

    .category-list .sub-categories a {
        color: #555;
        text-decoration: none;
        font-size: 13px;
        transition: color 0.2s;
    }

    .category-list .sub-categories a:hover {
        color: var(--catwalk-primary);
    }

    /* Scrollable category body */
    .category-scroll {
        max-height: calc(7 * 34px);
        overflow-y: auto;
        padding-right: 4px;
        margin-right: 8px;
        scrollbar-width: thin;
        scrollbar-color: #ddd transparent;
    }

    .category-scroll::-webkit-scrollbar {
        width: 3px;
    }

    .category-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .category-scroll::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 99px;
    }

    .category-scroll::-webkit-scrollbar-thumb:hover {
        background: #bbb;
    }

    /* Active category breadcrumb */
    .category-back-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 12px;
        color: var(--catwalk-text-muted);
        text-decoration: none;
        margin-bottom: 10px;
        transition: color 0.2s;
    }

    .category-back-link:hover {
        color: var(--catwalk-primary);
    }

    /* Brand Checkboxes */
    .brand-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        cursor: pointer;
    }

    .brand-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 10px;
        accent-color: var(--catwalk-primary);
    }

    .brand-item span {
        font-size: 14px;
        color: #555;
    }

    /* Scrollable brand list */
    .brand-scroll {
        max-height: calc(6 * 38px);
        overflow-y: auto;
        padding-right: 4px;
        margin-right: 8px;
        scrollbar-width: thin;
        scrollbar-color: #ddd transparent;
    }

    .brand-scroll::-webkit-scrollbar {
        width: 3px;
    }

    .brand-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .brand-scroll::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 99px;
    }

    .brand-scroll::-webkit-scrollbar-thumb:hover {
        background: #bbb;
    }

    /* Color Swatches */
    .color-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .color-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
    }

    .color-item input {
        display: none;
    }

    .color-swatch {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid transparent;
        transition: all 0.2s;
        position: relative;
    }

    .color-item input:checked+.color-swatch {
        border-color: var(--catwalk-primary);
        transform: scale(1.1);
    }

    .color-item input:checked+.color-swatch::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 14px;
        border-right: 2px solid var(--check-color, #fff);
        border-bottom: 2px solid var(--check-color, #fff);
        transform: translate(-50%, -60%) rotate(45deg);
    }

    .color-item .color-name {
        font-size: 11px;
        color: var(--catwalk-text-muted);
        margin-top: 4px;
        text-align: center;
    }

    /* Size Boxes */
    .size-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .size-item {
        cursor: pointer;
    }

    .size-item input {
        display: none;
    }

    .size-box {
        min-width: 40px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--catwalk-border);
        font-size: 13px;
        color: #555;
        padding: 0 8px;
        transition: all 0.2s;
    }

    .size-item input:checked+.size-box {
        border-color: #171517;
        background: var(--catwalk-bg-light);
        font-weight: 600;
    }

    .size-item:hover .size-box {
        border-color: var(--catwalk-text-muted);
    }

    /* Price Slider */
    .price-slider-wrap {
        padding: 10px 0;
    }

    .price-track {
        position: relative;
        height: 4px;
        background: var(--catwalk-border);
        border-radius: 2px;
        margin: 20px 0;
    }

    .price-range-bar {
        position: absolute;
        height: 100%;
        background: var(--catwalk-primary);
        border-radius: 2px;
    }

    .range-inputs {
        position: relative;
    }

    .range-inputs input[type="range"] {
        position: absolute;
        width: 100%;
        height: 4px;
        top: -22px;
        background: transparent;
        pointer-events: none;
        -webkit-appearance: none;
    }

    .range-inputs input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        background: var(--catwalk-primary);
        border-radius: 50%;
        cursor: pointer;
        pointer-events: auto;
        border: 2px solid #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .price-labels {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: var(--catwalk-text-secondary);
        margin-top: 10px;
    }

    .price-display {
        text-align: center;
        font-size: 13px;
        color: var(--catwalk-text-primary);
        margin-top: 5px;
    }

    /* Rating Stars */
    .rating-item {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
        cursor: pointer;
    }

    .rating-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 10px;
        accent-color: var(--catwalk-primary);
    }

    .stars {
        color: #ffc107;
        font-size: 14px;
    }

    .stars .empty {
        color: #e0e0e0;
    }

/* === mobile_filters.blade.php block 1 === */
/* Mobile Filter Bar */
    .catwalk-mobile-filter-bar {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }

    .catwalk-mobile-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 20px;
        background: #fff;
        border: 1px solid #e0e0e0;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #171517;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .catwalk-mobile-btn:hover {
        border-color: var(--catwalk-primary);
        color: var(--catwalk-primary);
    }

    /* Sidebar */
    .catwalk-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .catwalk-sidebar.active {
        right: 0;
    }

    .catwalk-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid var(--catwalk-border);
    }

    .catwalk-sidebar-title {
        font-size: 18px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #171517;
    }

    .catwalk-sidebar-close {
        width: 36px;
        height: 36px;
        background: none;
        border: none;
        font-size: 22px;
        color: #171517;
        cursor: pointer;
    }

    .catwalk-sidebar-close:hover {
        color: var(--catwalk-primary);
    }

    .catwalk-sidebar-content {
        flex: 1;
        overflow-y: auto;
        padding: 15px 20px;
    }

    .catwalk-sidebar-footer {
        padding: 15px 20px;
        border-top: 1px solid var(--catwalk-border);
    }

    .catwalk-apply-btn {
        width: 100%;
        padding: 15px;
        background: #171517;
        color: #fff;
        border: none;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .catwalk-apply-btn:hover {
        background: var(--catwalk-primary);
    }

    /* Filter Groups */
    .catwalk-filter-group {
        border-bottom: 1px solid var(--catwalk-border);
    }

    .catwalk-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #171517;
        cursor: pointer;
    }

    .catwalk-filter-icon {
        font-size: 18px;
        transition: transform 0.3s ease;
    }

    .catwalk-filter-header.active .catwalk-filter-icon {
        transform: rotate(45deg);
    }

    .catwalk-filter-options {
        padding-bottom: 15px;
    }

    .catwalk-filter-option {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        cursor: pointer;
    }

    .catwalk-filter-option input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--catwalk-primary);
    }

    .catwalk-checkbox-label {
        font-size: 14px;
        color: #171517;
    }

    /* Category List */
    .mobile-cat-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-cat-list li {
        margin-bottom: 6px;
    }

    .mobile-cat-list a {
        color: #555;
        text-decoration: none;
        font-size: 14px;
    }

    .mobile-cat-list a.active {
        color: var(--catwalk-primary);
    }

    .mobile-sub-cats {
        list-style: none;
        padding-left: 15px;
        margin: 5px 0 0 0;
    }

    .mobile-sub-cats a {
        color: var(--catwalk-text-muted);
        font-size: 13px;
    }

    /* Color Swatches */
    .mobile-color-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .mobile-color-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
    }

    .mobile-color-item input {
        display: none;
    }

    .mobile-color-swatch {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid transparent;
        transition: all 0.2s;
        position: relative;
    }

    .mobile-color-item input:checked+.mobile-color-swatch {
        border-color: var(--catwalk-primary);
        transform: scale(1.1);
    }

    .mobile-color-item input:checked+.mobile-color-swatch::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 14px;
        border-right: 2px solid var(--check-color, #fff);
        border-bottom: 2px solid var(--check-color, #fff);
        transform: translate(-50%, -60%) rotate(45deg);
    }

    .mobile-color-name {
        font-size: 11px;
        color: var(--catwalk-text-muted);
        margin-top: 4px;
        text-align: center;
    }

    /* Size Boxes */
    .mobile-size-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mobile-size-item {
        cursor: pointer;
    }

    .mobile-size-item input {
        display: none;
    }

    .mobile-size-box {
        min-width: 40px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--catwalk-border);
        font-size: 13px;
        color: #555;
        padding: 0 8px;
        transition: all 0.2s;
    }

    .mobile-size-item input:checked+.mobile-size-box {
        border-color: #171517;
        background: var(--catwalk-bg-light);
        font-weight: 600;
    }

    /* Price Slider */
    .mobile-price-slider {
        padding: 10px 0;
    }

    .mobile-price-track {
        position: relative;
        height: 4px;
        background: var(--catwalk-border);
        border-radius: 2px;
        margin: 20px 0;
    }

    .mobile-price-bar {
        position: absolute;
        height: 100%;
        background: var(--catwalk-primary);
        border-radius: 2px;
    }

    .mobile-range-inputs {
        position: relative;
    }

    .mobile-range-inputs input[type="range"] {
        position: absolute;
        width: 100%;
        height: 4px;
        top: -22px;
        background: transparent;
        pointer-events: none;
        -webkit-appearance: none;
    }

    .mobile-range-inputs input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        background: var(--catwalk-primary);
        border-radius: 50%;
        cursor: pointer;
        pointer-events: auto;
        border: 2px solid #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .mobile-price-labels {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: var(--catwalk-text-secondary);
        margin-top: 10px;
    }

    .mobile-price-display {
        text-align: center;
        font-size: 13px;
        color: var(--catwalk-text-primary);
        margin-top: 5px;
    }

    /* Rating */
    .mobile-stars {
        color: #ffc107;
        font-size: 14px;
    }

    .mobile-stars .empty {
        color: #e0e0e0;
    }

    /* Sort Options */
    .catwalk-sort-option {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px 0;
        border-bottom: 1px solid var(--catwalk-bg-light);
        cursor: pointer;
    }

    .catwalk-sort-option input[type="radio"] {
        width: 18px;
        height: 18px;
        accent-color: var(--catwalk-primary);
    }

    .catwalk-sort-option span {
        font-size: 15px;
        color: #171517;
    }

    /* Overlay */
    .catwalk-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }

    .catwalk-sidebar-overlay.active {
        display: block;
    }
