/* ============================================
   MOBILE FILTERS - CUSTOM GRID LAYOUT
   2 rows with specific layout
   ============================================ */

/* CSS variable for dynamic viewport height */
:root {
    --vh: 1vh;
}

/* Hide mobile elements on desktop by default */
.mobile-filter-container,
.mobile-header,
.mobile-sidebar,
.mobile-sidebar-overlay {
    display: none !important;
}

@media (max-width: 768px) {
    /* ============================================
       MOBILE HEADER
       ============================================ */
    .mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 43px;
        min-height: 43px;
        background: #B22234;
        z-index: 1000;
        transform: translateY(0);
        transition: transform 0.3s ease;
    }

    .mobile-header.hidden {
        transform: translateY(-100%);
    }

    /* Отступ для контента под fixed header */
    body {
        padding-top: 43px;
    }

    .mobile-header-burger {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-header-burger img {
        display: block;
    }

    .mobile-header-logo {
        display: block;
    }

    /* ============================================
       MOBILE SIDEBAR MENU
       ============================================ */
    
    /* Overlay */
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Drawer */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 222px;
        height: 100%;
        background: #FFFFFF;
        border-radius: 0 20px 0 0;
        z-index: 1002;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .mobile-sidebar.active {
        transform: translateX(0);
    }

    [data-theme="dark"] .mobile-sidebar {
        background: #1A1A1A;
    }

    /* Header - fixed at top */
    .mobile-sidebar-header {
        flex-shrink: 0;
        height: 43px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 13px 0 12px;
        background: #B22234;
        border-radius: 0 20px 0 0;
    }

    [data-theme="dark"] .mobile-sidebar-header {
        background: #B22234;
    }

    .mobile-sidebar-logo {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-sidebar-logo img {
        width: 30px;
        height: 30px;
    }

    /* Close button inside header */
    .mobile-sidebar-close {
        width: 18px;
        height: 18px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FFFFFF;
    }

    .mobile-sidebar-close svg {
        width: 18px;
        height: 18px;
    }

    /* List - scrollable */
    .mobile-sidebar-list {
        flex: 1;
        overflow-y: auto;
        padding: 12px 12px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    /* Menu item */
    .mobile-sidebar-item {
        display: block;
        padding: 14px 12px;
        font-size: 16px;
        font-weight: 600;
        color: #000000;
        text-decoration: none;
        border-radius: 0;
        transition: background 0.15s ease;
    }

    [data-theme="dark"] .mobile-sidebar-item {
        color: #FFFFFF;
    }

    /* Active item with pill/badge */
    .mobile-sidebar-item.active {
        background: #F0F0F0;
        border-radius: 10px;
    }

    [data-theme="dark"] .mobile-sidebar-item.active {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-sidebar-item-text {
        display: block;
    }

    /* Hide desktop filters on mobile */
    .filter_box {
        display: none !important;
    }

    /* Mobile filter container */
    .mobile-filter-container {
        display: flex !important;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 16px;
        padding: 15px;
        background: #FFFFFF;
    }

    [data-theme="dark"] .mobile-filter-container {
        background: #030303;
    }

    /* Row 1: Одна кнопка с тремя словами */
    .mobile-filter-row-top {
        display: block;
    }

    .mobile-filter-row-top .mobile-filter-item {
        width: 100%;
        min-height: 38px;
        height: 38px;
        border-radius: 10px 10px 0 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 0 8px 0 15px;
        position: relative;
    }

    .mobile-filter-row-top .mobile-filter-value {
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        text-align: left;
    }

    .mobile-filter-row-top .mobile-filter-item.has-value .mobile-filter-value {
        font-weight: 600;
    }

    /* Clear button for mobile filter */
    .mobile-filter-clear {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999999;
        flex-shrink: 0;
        margin-left: 8px;
        border-radius: 50%;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .mobile-filter-clear:active {
        background: rgba(0, 0, 0, 0.1);
        color: #666666;
    }

    [data-theme="dark"] .mobile-filter-clear {
        color: #666666;
    }

    [data-theme="dark"] .mobile-filter-clear:active {
        background: rgba(255, 255, 255, 0.1);
        color: #999999;
    }

    /* Row 2: Год, Цена, Параметры */
    .mobile-filter-row-bottom {
        display: flex;
        gap: 2px;
        background: transparent;
    }

    .mobile-filter-row-bottom .mobile-filter-item {
        flex: 1;
        min-height: 38px;
        height: 38px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 0 15px;
    }

    .mobile-filter-row-bottom .mobile-filter-item span {
        font-size: 15px;
        font-weight: 500;
    }

    /* Год и Цена - центрировать текст когда есть значение */
    .mobile-filter-row-bottom .mobile-filter-year.has-value,
    .mobile-filter-row-bottom .mobile-filter-price.has-value {
        justify-content: center;
    }

    /* Параметры - иконка + текст по центру */
    .mobile-filter-row-bottom .mobile-filter-params {
        justify-content: center;
        gap: 6px;
    }

    /* Параметры - только иконка (квадратная кнопка) */
    .mobile-filter-row-bottom .mobile-filter-params.icon-only {
        flex: 0 0 auto;
        width: 38px;
        min-width: 38px;
        padding: 0;
        gap: 0;
        justify-content: center;
        align-items: center;
    }

    /* First item (Год) - bottom left radius */
    .mobile-filter-row-bottom .mobile-filter-item:first-child {
        border-radius: 0 0 0 10px;
    }

    /* Last item (Параметры) - bottom right radius */
    .mobile-filter-row-bottom .mobile-filter-item:last-child {
        border-radius: 0 0 10px 0;
    }

    /* Settings icon */
    .mobile-filter-icon {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

    /* Mobile filter item button */
    .mobile-filter-item {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 38px;
        background: #EAEAEA;
        border: none;
        font-family: 'Fira Code', monospace;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #000000;
    }

    [data-theme="dark"] .mobile-filter-item {
        background: #FFFFFF;
        color: #000000;
    }

    .mobile-filter-item:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .mobile-filter-item.has-value {
        /* No background change */
    }

    [data-theme="dark"] .mobile-filter-item.has-value {
        /* No background change */
    }

    .mobile-filter-item.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Modal overlay */
    .mobile-filter-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-filter-modal.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(2px);
    }

    /* Modal content */
    .mobile-modal-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 80vh;
        background: #FFFFFF;
        border-radius: 20px 20px 0 0;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0 20px 20px 20px;
    }

    /* Picker modal has different background */
    .mobile-modal-content.mobile-modal-picker {
        background: #EAEAEA;
    }

    [data-theme="dark"] .mobile-modal-content.mobile-modal-picker {
        background: #2E364F;
    }

    .mobile-filter-modal.active .mobile-modal-content {
        transform: translateY(0);
    }

    [data-theme="dark"] .mobile-modal-content {
        background: #2E364F;
    }

    /* Modal handle (drag indicator) */
    .mobile-modal-handle {
        width: 32px;
        height: 5px;
        background: #D9D9D9;
        border-radius: 3px;
        margin: 12px auto;
        flex-shrink: 0;
    }

    [data-theme="dark"] .mobile-modal-handle {
        background: #5A6280;
    }

    /* Modal header */
    .mobile-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0 20px 0;
        flex-shrink: 0;
    }

    [data-theme="dark"] .mobile-modal-header {
        border-bottom-color: #3D4562;
    }

    .mobile-modal-title {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        font-family: 'Fira Code', monospace;
        color: #000000;
    }

    [data-theme="dark"] .mobile-modal-title {
        color: #FFFFFF;
    }

    .mobile-modal-close {
        width: 18px;
        height: 18px;
        border: none;
        background: transparent;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000000;
        transition: opacity 0.2s ease;
    }

    [data-theme="dark"] .mobile-modal-close {
        color: #FFFFFF;
    }

    .mobile-modal-close:active {
        opacity: 0.5;
    }

    .mobile-modal-close svg {
        width: 18px;
        height: 18px;
    }

    /* Modal search */
    .mobile-modal-search {
        padding: 0 0 16px 0;
        border-bottom: 1px solid #E0E0E0;
        flex-shrink: 0;
    }

    [data-theme="dark"] .mobile-modal-search {
        border-bottom-color: #3D4562;
    }

    .mobile-search-input {
        width: 100%;
        height: 44px;
        padding: 0 16px;
        background: #F5F5F5;
        border: none;
        border-radius: 10px;
        font-family: 'Fira Code', monospace;
        font-size: 14px;
        color: #000000;
        outline: none;
    }

    [data-theme="dark"] .mobile-search-input {
        background: #3D4562;
        color: #FFFFFF;
    }

    .mobile-search-input::placeholder {
        color: #999999;
    }

    /* Modal body */
    .mobile-modal-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-modal-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* Modal list item */
    .mobile-modal-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        border-bottom: 1px solid #F0F0F0;
        cursor: pointer;
        transition: background 0.15s ease;
        min-height: 56px;
    }

    [data-theme="dark"] .mobile-modal-item {
        border-bottom-color: #3D4562;
    }

    .mobile-modal-item:active {
        background: #F8F8F8;
    }

    [data-theme="dark"] .mobile-modal-item:active {
        background: #3D4562;
    }

    .mobile-modal-item.reset-option {
        background: #FFB900;
        color: #000000;
        font-weight: 600;
    }

    .mobile-modal-item.reset-option:active {
        background: #E5A700;
    }

    [data-theme="dark"] .mobile-modal-item.reset-option {
        background: #FFB900;
        color: #000000;
    }

    [data-theme="dark"] .mobile-modal-item.reset-option:active {
        background: #E5A700;
    }

    .mobile-modal-item.disabled-option {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .mobile-modal-item.disabled-option:active {
        background: transparent;
    }

    .mobile-modal-item-text {
        flex: 1;
        font-family: 'Fira Code', monospace;
        font-size: 15px;
        color: #000000;
    }

    [data-theme="dark"] .mobile-modal-item-text {
        color: #FFFFFF;
    }

    .mobile-modal-item.reset-option .mobile-modal-item-text {
        color: #000000;
    }

    .mobile-modal-item-count {
        margin-left: 12px;
        font-family: 'Fira Code', monospace;
        font-size: 14px;
        color: #666666;
    }

    [data-theme="dark"] .mobile-modal-item-count {
        color: #999999;
    }

    .mobile-modal-item.reset-option .mobile-modal-item-count {
        color: #000000;
        opacity: 0.7;
    }

    /* Modal footer */
    .mobile-modal-footer {
        padding: 40px 0;
        height: 65px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-sizing: content-box;
    }

    .mobile-modal-submit {
        width: 233px;
        height: 47px;
        background: #31343E;
        color: #FFFFFF;
        font-size: 20px;
        font-weight: 500;
        font-family: 'Fira Code', monospace;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: opacity 0.2s ease;
    }

    .mobile-modal-submit:active {
        opacity: 0.8;
    }

    .mobile-modal-count {
        font-weight: 400;
    }

    /* ============================================
       YEAR PICKER - TWO WHEEL PICKERS
       ============================================ */
    
    /* Year picker modal content */
    .year-picker-content {
        background: #FFFFFF;
        max-height: 70vh;
        padding: 0;
    }

    [data-theme="dark"] .year-picker-content {
        background: #2E364F;
    }

    /* Handle at the top */
    .year-picker-handle {
        width: 36px;
        height: 4px;
        background: #D0D0D0;
        border-radius: 2px;
        margin: 8px auto 0 auto;
    }

    [data-theme="dark"] .year-picker-handle {
        background: #5A6280;
    }

    /* Header: Title left, close right */
    .year-picker-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 9px 25px;
    }

    [data-theme="dark"] .year-picker-header {
        border-bottom-color: #3D4562;
    }

    .year-picker-title {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        font-family: 'Fira Code', monospace;
        color: #000000;
    }

    [data-theme="dark"] .year-picker-title {
        color: #FFFFFF;
    }

    .year-picker-close {
        width: 18px;
        height: 18px;
        border: none;
        background: transparent;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000000;
        transition: opacity 0.15s ease;
    }

    [data-theme="dark"] .year-picker-close {
        color: #FFFFFF;
    }

    .year-picker-close:active {
        opacity: 0.5;
    }

    .year-picker-close svg {
        width: 18px;
        height: 18px;
    }

    /* Body with wheels */
    .year-picker-body {
        position: relative;
        padding: 0 20px;
        height: 135px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .year-picker-wheels {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    /* Wrapper for wheel + highlight */
    .year-wheel-wrapper {
        position: relative;
        width: 100px;
        flex-shrink: 0;
    }

    /* Individual wheel */
    .year-wheel {
        width: 100px;
        height: 135px; /* 3 items * 45px */
        overflow-y: scroll;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* Individual highlight cell for each wheel */
    .year-wheel-highlight {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 45px;
        background: rgba(0, 0, 0, 0.04);
        border-radius: 8px;
        pointer-events: none;
    }

    [data-theme="dark"] .year-wheel-highlight {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Hide scrollbar */
    .year-wheel::-webkit-scrollbar {
        display: none;
    }
    .year-wheel {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .year-wheel-items {
        display: flex;
        flex-direction: column;
        width: 100px;
    }

    .year-wheel-item {
        width: 100px;
        height: 45px;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 500;
        font-family: 'Fira Code', monospace;
        color: #CCCCCC;
        scroll-snap-align: center;
        user-select: none;
        transition: color 0.15s ease, transform 0.15s ease;
        flex-shrink: 0;
    }

    [data-theme="dark"] .year-wheel-item {
        color: #555555;
    }

    .year-wheel-item--pad {
        color: transparent !important;
    }

    /* Selected item in center */
    .year-wheel-item.selected {
        color: #000000;
        font-weight: 600;
        transform: scale(1.1);
    }

    [data-theme="dark"] .year-wheel-item.selected {
        color: #FFFFFF;
    }

    /* Adjacent items */
    .year-wheel-item.adjacent {
        color: #888888;
    }

    [data-theme="dark"] .year-wheel-item.adjacent {
        color: #888888;
    }

    /* Far items */
    .year-wheel-item.far {
        color: #CCCCCC;
    }

    [data-theme="dark"] .year-wheel-item.far {
        color: #555555;
    }

    /* Separator between wheels */
    .year-wheel-separator {
        font-size: 24px;
        font-weight: 400;
        color: #000000;
        font-family: 'Fira Code', monospace;
        padding: 0 8px;
    }

    [data-theme="dark"] .year-wheel-separator {
        color: #FFFFFF;
    }

    /* Footer with submit button */
    .year-picker-footer {
        padding: 16px 20px 24px 20px;
    }

    .year-picker-submit {
        width: 100%;
        height: 52px;
        background: #31343E;
        color: #FFFFFF;
        font-size: 16px;
        font-weight: 600;
        font-family: 'Fira Code', monospace;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: opacity 0.15s ease;
    }

    [data-theme="dark"] .year-picker-submit {
        background: #FFB900;
        color: #000000;
    }

    .year-picker-submit:active {
        opacity: 0.85;
    }

    /* ============================================
       PRICE PICKER MODAL
       ============================================ */

    .price-picker-content {
        background: #FFFFFF;
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    [data-theme="dark"] .price-picker-content {
        background: #1A1A1A;
    }

    .price-picker-handle {
        width: 36px;
        height: 4px;
        background: #D9D9D9;
        border-radius: 2px;
        margin: 8px auto 0;
    }

    [data-theme="dark"] .price-picker-handle {
        background: #555555;
    }

    .price-picker-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 9px;
    }

    .price-picker-title {
        font-size: 18px;
        font-weight: 600;
        color: #000000;
        font-family: 'Fira Code', monospace;
        margin: 0;
    }

    [data-theme="dark"] .price-picker-title {
        color: #FFFFFF;
    }

    .price-picker-close {
        width: 18px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #000000;
    }

    [data-theme="dark"] .price-picker-close {
        color: #FFFFFF;
    }

    .price-picker-body {
        padding: 5px 15px;
    }

    .price-picker-inputs {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .price-input-wrapper {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
    }

    .price-input-label {
        position: absolute;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 16px;
        font-weight: 400;
        color: #666666;
        pointer-events: none;
        z-index: 1;
    }

    [data-theme="dark"] .price-input-label {
        color: #999999;
    }

    .price-input {
        width: 100%;
        height: 45px;
        background: rgba(0, 0, 0, 0.04);
        border: none;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 500;
        font-family: 'Fira Code', monospace;
        color: #000000;
        text-align: center;
        outline: none;
        transition: background 0.15s ease;
    }

    .price-input::placeholder {
        color: #999999;
        font-weight: 400;
    }

    .price-input.focused::placeholder {
        color: transparent;
    }

    .price-input:focus {
        background: rgba(0, 0, 0, 0.08);
    }

    [data-theme="dark"] .price-input {
        background: rgba(255, 255, 255, 0.08);
        color: #FFFFFF;
    }

    [data-theme="dark"] .price-input::placeholder {
        color: #666666;
    }

    [data-theme="dark"] .price-input:focus {
        background: rgba(255, 255, 255, 0.12);
    }

    .price-input-separator {
        font-size: 24px;
        font-weight: 400;
        color: #000000;
        font-family: 'Fira Code', monospace;
        flex-shrink: 0;
    }

    [data-theme="dark"] .price-input-separator {
        color: #FFFFFF;
    }

    /* Footer with submit button */
    .price-picker-footer {
        padding: 16px 20px 24px 20px;
    }

    .price-picker-submit {
        width: 100%;
        height: 52px;
        background: #31343E;
        color: #FFFFFF;
        font-size: 16px;
        font-weight: 600;
        font-family: 'Fira Code', monospace;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: opacity 0.15s ease;
    }

    [data-theme="dark"] .price-picker-submit {
        background: #FFB900;
        color: #000000;
    }

    .price-picker-submit:active {
        opacity: 0.85;
    }

    /* ============================================
       BRAND PICKER MODAL
       ============================================ */

    .brand-picker-content {
        background: #FFFFFF;
        border-radius: 16px 16px 0 0;
        height: calc(var(--vh, 1vh) * 95); /* Fallback для старых браузеров */
        height: 95dvh; /* Dynamic viewport height - учитывает адресную строку браузера */
        min-height: calc(var(--vh, 1vh) * 95);
        min-height: 95dvh;
        max-height: calc(var(--vh, 1vh) * 95);
        max-height: 95dvh;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    [data-theme="dark"] .brand-picker-content {
        background: #1A1A1A;
    }

    .brand-picker-handle {
        width: 36px;
        height: 4px;
        background: #D9D9D9;
        border-radius: 2px;
        margin: 8px auto 0;
        padding: 10px 40px;
        background-clip: content-box;
        cursor: grab;
        touch-action: none;
    }

    .brand-picker-handle:active {
        cursor: grabbing;
    }

    [data-theme="dark"] .brand-picker-handle {
        background: #555555;
        background-clip: content-box;
    }

    .brand-picker-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        padding: 9px 0;
    }

    .brand-picker-back {
        width: 18px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #000000;
    }

    [data-theme="dark"] .brand-picker-back {
        color: #FFFFFF;
    }

    .brand-picker-close {
        margin-left: auto;
    }

    .brand-picker-title {
        font-size: 18px;
        font-weight: 600;
        color: #000000;
        font-family: 'Fira Code', monospace;
        margin: 0;
    }

    [data-theme="dark"] .brand-picker-title {
        color: #FFFFFF;
    }

    .brand-picker-close {
        width: 18px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #000000;
    }

    [data-theme="dark"] .brand-picker-close {
        color: #FFFFFF;
    }

    .brand-picker-search {
        padding: 0 0 10px;
    }

    .brand-search-input {
        width: 100%;
        height: 44px;
        background: #F0F0F0;
        border: none;
        border-radius: 10px;
        padding: 0 16px;
        font-size: 16px;
        font-family: 'Fira Code', monospace;
        color: #000000;
        outline: none;
    }

    .brand-search-input::placeholder {
        color: #999999;
    }

    [data-theme="dark"] .brand-search-input {
        background: rgba(255, 255, 255, 0.1);
        color: #FFFFFF;
    }

    [data-theme="dark"] .brand-search-input::placeholder {
        color: #666666;
    }

    /* Slider for panels */
    .brand-picker-slider {
        flex: 1 1 auto;
        overflow: hidden;
        position: relative;
    }

    .brand-picker-panels {
        display: flex;
        width: 200%;
        height: 100%;
        transition: transform 0.3s ease;
    }

    .brand-picker-panel {
        width: 50%;
        height: 100%;
        overflow-y: auto;
        padding: 0;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .brand-picker-panel::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .brand-picker-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 0;
        margin-bottom: 15px;
    }

    .brand-picker-section-title {
        font-size: 14px;
        font-weight: 600;
        color: #999999;
        margin-bottom: 8px;
        font-family: 'Fira Code', monospace;
        min-height: 20px;
    }

    .brand-picker-list {
        list-style: none;
        margin: 0;
        padding: 0;
        min-height: 100%;
    }

    .brand-picker-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 12px;
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.15s ease;
    }

    .brand-picker-item:active {
        background: rgba(0, 0, 0, 0.05);
    }

    .brand-picker-item.selected {
        background: #F0F0F0;
    }

    [data-theme="dark"] .brand-picker-item:active {
        background: rgba(255, 255, 255, 0.05);
    }

    [data-theme="dark"] .brand-picker-item.selected {
        background: rgba(255, 255, 255, 0.1);
    }

    .brand-picker-item-text {
        font-size: 16px;
        font-weight: 500;
        color: #000000;
        flex: 1;
    }

    [data-theme="dark"] .brand-picker-item-text {
        color: #FFFFFF;
    }

    .brand-picker-item-count {
        font-size: 14px;
        color: #999999;
        font-family: 'Fira Code', monospace;
        margin-right: 8px;
    }

    .brand-picker-arrow {
        color: #CCCCCC;
        flex-shrink: 0;
    }

    [data-theme="dark"] .brand-picker-arrow {
        color: #666666;
    }

    .brand-picker-item.reset-option .brand-picker-item-text {
        color: #B22234;
    }

    .brand-picker-item.loading {
        justify-content: center;
        color: #999999;
    }

    /* Footer with submit button */
    .brand-picker-footer {
        padding: 0;
    }

    .brand-picker-submit {
        width: 100%;
        height: 52px;
        background: #31343E;
        color: #FFFFFF;
        font-size: 16px;
        font-weight: 600;
        font-family: 'Fira Code', monospace;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: opacity 0.15s ease;
    }

    [data-theme="dark"] .brand-picker-submit {
        background: #FFB900;
        color: #000000;
    }

    .brand-picker-submit:active {
        opacity: 0.85;
    }
}

@media (min-width: 769px) {
    /* Hide mobile filters on desktop */
    .mobile-filter-container {
        display: none !important;
    }
}

