@media (min-width: 992px) {
    #mobile-main-header-wrapper,
    .mobile-header-wrapper,
    #mobile-primary-navigation,
    .mobile-navigation-drawer,
    .mobile-search-backdrop,
    .mobile-floating-filter-wrapper {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 991px) {
    body.filter-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }

    .filter-bar-desktop {
        display: none !important;
    }

    .mobile-filter-trigger {
        display: flex !important;
        width: 100%;
        padding: 13px 20px;
        font-size: 15px;
        font-weight: 700;
        color: #ffffff;
        background: linear-gradient(135deg, #A74463 0%, #832b43 100%);
        border: none;
        border-radius: 14px;
        margin-bottom: 12px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 4px 16px rgba(167, 68, 99, 0.28);
        transition: transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }

    .mobile-filter-trigger:active {
        transform: scale(0.98);
    }

    .mobile-filter-trigger i {
        font-size: 16px;
    }

    .mobile-filter-badge-counter {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        color: #832b43;
        font-size: 11px;
        font-weight: 800;
        height: 20px;
        min-width: 20px;
        padding: 0 6px;
        border-radius: 10px;
    }

    /* ==========================================================
       MOBILE ACTIVE FILTER TAGS & RESET BTN (APP-STYLE PILL THEME)
       ========================================================== */
    .active-filters-mobile-wrapper {
        display: block !important;
        width: 100% !important;
        margin-bottom: 18px !important;
    }

    .active-filters-mobile-wrapper .active-filters-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* ফিল্টার ড্রয়ারের ভেতরের সিলেক্টেড চিপসের হুবহু স্টাইল */
    .active-filters-mobile-wrapper .active-filter-tag {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 7px 14px !important;
        background: #A74463 !important;
        border: 1.5px solid #A74463 !important;
        border-radius: 9999px !important; /* রাউন্ডেড পিল শেইপ */
        color: #ffffff !important;
        font-family: 'Inter', system-ui, sans-serif !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        box-shadow: 0 2px 8px rgba(167, 68, 99, 0.22) !important;
        cursor: pointer !important;
        user-select: none !important;
        transition: transform 0.15s ease, background-color 0.2s ease !important;
    }

    .active-filters-mobile-wrapper .active-filter-tag:active {
        transform: scale(0.96) !important;
    }

    .active-filters-mobile-wrapper .active-filter-tag span {
        color: #ffffff !important;
        display: inline-block !important;
    }

    .active-filters-mobile-wrapper .active-filter-remove-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: rgba(255, 255, 255, 0.9) !important;
        margin-left: 2px !important;
        text-decoration: none !important;
        font-size: 11px !important;
    }

    .active-filters-mobile-wrapper .active-filter-remove-link:hover {
        color: #ffffff !important;
    }

    /* রিসেট বাটন - ক্লিন অ্যাপ বাটন স্টাইল */
    .active-filters-mobile-wrapper .clear-all-filters-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 7px 14px !important;
        background: #f1f5f9 !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 9999px !important;
        color: #475569 !important;
        font-family: 'Inter', system-ui, sans-serif !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        line-height: 1.2 !important;
        transition: all 0.2s ease !important;
    }

    .active-filters-mobile-wrapper .clear-all-filters-btn:hover,
    .active-filters-mobile-wrapper .clear-all-filters-btn:active {
        background: #e2e8f0 !important;
        color: #0f172a !important;
    }

    /* ফ্লোটিং র‍্যাপার ডানপাশে ফিক্সড রাখার জন্য */
    .mobile-floating-filter-wrapper {
        position: fixed !important;
        bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
        right: 20px !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        pointer-events: none !important;
    }

    /* গোল রাউন্ড সার্কেল ফ্লোটিং বাটন (ডানপাশে) */
    .mobile-floating-filter-pill {
        width: 52px !important;
        height: 52px !important;
        border-radius: 50% !important;
        background: #832b43 !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 6px 20px rgba(131, 43, 67, 0.45) !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: scale(0.7) !important;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.22s ease !important;
        -webkit-tap-highlight-color: transparent !important;
        position: relative !important;
    }

    .mobile-floating-filter-pill.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) !important;
    }

    .mobile-floating-filter-pill.scrolling-down {
        opacity: 1 !important; 
        transform: scale(0.9) !important;
    }

    .mobile-floating-filter-pill:active {
        transform: scale(0.92) !important;
    }

    .mobile-floating-filter-pill i {
        font-size: 18px !important;
    }

    /* ব্যাজ পজিশনিং */
    .floating-pill-badge {
        display: none;
        position: absolute;
        top: -2px;
        right: -2px;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        color: #832b43;
        font-size: 10.5px;
        font-weight: 800;
        height: 20px;
        min-width: 20px;
        padding: 0 4px;
        border-radius: 10px;
        line-height: 1;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .floating-pill-badge.visible {
        display: inline-flex !important;
    }

    /* অ্যানিমেটেড টুলটিপ স্টাইল */
    .filter-animated-tooltip {
        position: absolute;
        right: 64px;
        background: #0f172a;
        color: #ffffff;
        font-family: 'Inter', system-ui, sans-serif;
        font-size: 12px;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 8px;
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .filter-animated-tooltip::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -4px;
        transform: translateY(-50%);
        border-width: 4px 0 4px 5px;
        border-style: solid;
        border-color: transparent transparent transparent #0f172a;
    }

    .filter-animated-tooltip.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    /* ফিল্টার ড্রয়ার প্যানেল */
    .filter-container {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background-color: rgba(15, 23, 42, 0.55) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        z-index: 100050 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }

    .filter-container.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .filter-mobile-panel {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: 50px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        background: #ffffff !important;
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.25) !important;
        display: flex !important;
        flex-direction: column !important;
        transform: translateY(100%) !important;
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 100060 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .filter-container.active .filter-mobile-panel {
        transform: translateY(0) !important;
    }

    .filter-mobile-panel::before {
        content: '';
        display: block;
        width: 38px;
        height: 4px;
        background-color: #cbd5e1;
        border-radius: 4px;
        margin: 10px auto 4px auto;
        flex-shrink: 0;
    }

    .filter-mobile-panel form,
    .filter-mobile-panel #filter-form {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: 100% !important;
        overflow: hidden !important;
        margin: 0 !important;
    }

    .filter-mobile-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 20px 14px 20px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
        flex-shrink: 0 !important;
    }

    .filter-mobile-header h3 {
        font-family: 'Inter', system-ui, sans-serif !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }

    .filter-close-btn {
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        background: #f1f5f9 !important;
        border: none !important;
        color: #475569 !important;
        font-size: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }

    .filter-mobile-panel .filter-controls,
    .filter-mobile-panel .filter-controls-mobile-placeholder {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 6px 0 30px 0 !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    .filter-mobile-panel .filter-item {
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .filter-mobile-panel .filter-button {
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 15px 20px !important;
        font-size: 14.5px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        cursor: pointer !important;
    }

    .filter-mobile-panel .filter-button i {
        font-size: 12px !important;
        color: #94a3b8 !important;
        transition: transform 0.25s ease !important;
    }

    .filter-mobile-panel .filter-item.active .filter-button i {
        transform: rotate(180deg) !important;
        color: #A74463 !important;
    }

    .mobile-filter-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #A74463 !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        height: 20px !important;
        min-width: 20px !important;
        padding: 0 6px !important;
        border-radius: 10px !important;
        margin-left: auto !important;
        margin-right: 12px !important;
    }

    .filter-mobile-panel .filter-dropdown {
        display: none;
        width: 100% !important;
        background-color: #f8fafc !important;
        border-top: 1px solid #f1f5f9 !important;
        padding: 0 !important;
    }

    .filter-mobile-panel .filter-item.active .filter-dropdown {
        display: block !important;
    }

    .filter-mobile-panel .filter-search-container {
        padding: 10px 16px !important;
        background: #f1f5f9 !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .filter-mobile-panel .filter-search-input {
        width: 100% !important;
        height: 36px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 9999px !important;
        padding: 0 14px !important;
        font-size: 13px !important;
        background: #ffffff !important;
        outline: none !important;
    }

    .filter-mobile-panel .filter-dropdown-body {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 14px 16px !important;
        max-height: 260px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .filter-mobile-panel .filter-dropdown-body label {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 7px 14px !important;
        background: #ffffff !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 9999px !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        cursor: pointer !important;
        user-select: none !important;
    }

    .filter-mobile-panel .filter-dropdown-body label input[type="checkbox"],
    .filter-mobile-panel .filter-dropdown-body label input[type="radio"] {
        display: none !important;
    }

    .filter-mobile-panel .filter-dropdown-body label.is-checked,
    .filter-mobile-panel .filter-dropdown-body label:has(input:checked) {
        background: #A74463 !important;
        border-color: #A74463 !important;
        color: #ffffff !important;
    }

    .filter-mobile-footer {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        padding: 14px 18px !important;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 12px)) !important;
        background: #ffffff !important;
        border-top: 1px solid #f1f5f9 !important;
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08) !important;
        flex-shrink: 0 !important;
        z-index: 20 !important;
        box-sizing: border-box !important;
    }

    .filter-mobile-footer .filter-reset-btn {
        flex: 1 !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8fafc !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #475569 !important;
        text-decoration: none !important;
    }

    .filter-mobile-footer .filter-apply-mobile-btn {
        flex: 1.5 !important;
        height: 48px !important;
        background: linear-gradient(135deg, #A74463 0%, #832b43 100%) !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }
}