/* Mobile Filter Styles - Chỉ áp dụng cho mobile */
@media (max-width: 768px) {
    /* Ẩn hoàn toàn bộ lọc desktop */
    .dodo-product-filter {
        display: none !important;
    }

    /* Container cho mobile filter */
    .mobile-filter {
        margin-bottom: 8px;
    }
    
    /* Nội dung của mobile filter */
    .mobile-filter-content {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: space-between;
        gap: 3px;
    }
    
    /* Mỗi section trong mobile filter */
    .mobile-filter-section {
        flex: 1;
        min-width: 0; /* Để đảm bảo flex item có thể nhỏ hơn content size */
    }
    
    /* Ẩn các tiêu đề để tiết kiệm không gian */
    .mobile-filter-section h4 {
        display: none;
    }

    /* Style cho từng select */
    .mobile-filter select {
        width: 100%;
        height: 30px;
        min-width: 0;
        border: 1px solid #ddd;
        border-radius: 3px;
        padding: 0 18px 0 3px;
        font-size: 12px;
        background-color: #fff;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 3px center;
        background-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }
    
    /* Thay đổi placeholder trong select để hiển thị tên tiêu đề */
    .mobile-filter-brands option:first-child {
        font-weight: normal;
    }
    
    .mobile-filter-cats option:first-child {
        font-weight: normal;
    }
    
    .mobile-filter-price option:first-child {
        font-weight: normal;
    }
    
    /* Focus state */
    .mobile-filter select:focus {
        outline: none;
        border-color: #2271b1;
    }

    /* Reduce text wrapping issues */
    .mobile-filter select option {
        white-space: normal;
    }
    
    /* Always keep inline at all screen sizes */
    @media (max-width: 480px) {
        .mobile-filter-content {
            flex-direction: row;
            gap: 3px;
        }
        
        .mobile-filter select {
            padding: 0 15px 0 2px;
        }
    }
}

/* Ẩn mobile filter trên desktop */
@media (min-width: 769px) {
    .mobile-filter {
        display: none;
    }
} 