/* --- EXTRÉMNE ŠPECIFICKÉ PRAVIDLÁ PRE HORIZONTÁLNE FILTRE (IBA DESKTOP) --- */

@media (min-width: 992px) {

    /* 1. Skrytie tlačidla Otevřít filtr */
    body #category-header .filters-unveil-button-wrapper,
    body .filters-unveil-button-wrapper {
        display: none !important;
    }

    /* 2. Zrušenie béžového pozadia a nastavenie inline layoutu */
    body #category-header #filters,
    body #filters.is-shown,
    body #filters.visible {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        background: transparent !important;
        padding: 15px 0 !important;
        margin: 0 0 20px 0 !important;
        border-top: 1px solid #e5e5e5 !important;
        border-bottom: 1px solid #e5e5e5 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
        gap: 10px !important;
    }

    /* Nápis FILTR: */
    body #filters::before {
        content: "FILTR:";
        font-weight: 700;
        font-size: 13px;
        color: #333;
        margin-right: 15px;
        letter-spacing: 0.5px;
        display: block !important;
    }

    /* 3. Usporiadanie vnútorných sekcií vedľa seba */
    body #filters .filter-sections, 
    body #filters #category-filter-hover {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        width: auto !important;
    }

    body #filters .filter-section, 
    body #filters .slider-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        float: none !important;
        width: auto !important;
        background: transparent !important;
        border: none !important;
    }

    /* 4. Tlačidlá roletiek (hlavičky h4) */
    body #filters .filter-section h4, 
    body #filters .slider-wrapper h4 {
        background-color: #fff !important;
        border: 1px solid #dcdcdc !important;
        border-radius: 4px !important;
        padding: 10px 15px !important;
        margin: 0 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #555 !important;
        text-transform: uppercase !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        min-width: 160px !important;
        transition: all 0.2s ease !important;
        position: relative;
        z-index: 10001; /* Aby boli nad mostíkom */
    }

    body #filters .filter-section h4:hover, 
    body #filters .slider-wrapper h4:hover {
        border-color: #a66027 !important;
    }

    body #filters .filter-section h4 span::before, 
    body #filters .filter-section h4 span::after,
    body #filters .filter-section h4::before {
        display: none !important;
    }

    body #filters .filter-section h4::after, 
    body #filters .slider-wrapper h4::after {
        content: "" !important;
        border-left: 4px solid transparent !important;
        border-right: 4px solid transparent !important;
        border-top: 5px solid #888 !important;
        margin-left: 10px !important;
    }

    /* 5. Obsah roletiek (Checkboxy) */
    body #filters .filter-section > form, 
    body #filters .filter-section > .param-filter-top {
        display: none !important; 
        position: absolute !important;
        top: calc(100% + 5px) !important;
        left: 0 !important;
        background: #fff !important;
        border: 1px solid #e5e5e5 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        z-index: 9999 !important;
        min-width: 200px !important;
        padding: 20px 15px 10px 15px !important;
        border-radius: 0px !important;
        width: max-content !important;
    }

    body #filters .filter-section > .param-filter-top form {
        display: block !important;
        position: static !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
    }

    body #filters .filter-section > form::before,
    body #filters .filter-section > .param-filter-top::before {
        content: "";
        position: absolute;
        top: -15px;
        left: 0;
        right: 0;
        height: 15px;
        background: transparent;
    }

    /* 6. Zobrazenie dropdownov PO HOVERI */
    body #filters .filter-section:hover > form,
    body #filters .filter-section:hover > .param-filter-top {
        display: block !important;
    }

    /* 7. OPRAVA PRE SLIDER (Cena) */
    body #filters .slider-wrapper::before {
        content: "";
        display: none !important;
        position: absolute !important;
        top: calc(100% + 5px) !important;
        left: 0 !important;
        width: 280px !important;
        height: 105px !important;
        background: #fff !important;
        border: 1px solid #e5e5e5 !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
        border-radius: 0px !important;
        z-index: 9998 !important;
        box-sizing: border-box !important;
    }

    body #filters .slider-wrapper::after {
        content: "";
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 280px;
        height: 10px;
        background: transparent;
        z-index: 10000;
    }

    body #filters .slider-wrapper .slider-header,
    body #filters .slider-wrapper .slider-content {
        display: none !important;
        position: absolute !important;
        left: 0 !important;
        width: 280px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        z-index: 9999 !important;
        box-sizing: border-box !important;
    }

    body #filters .slider-wrapper .slider-header {
        top: calc(100% + 5px) !important;
        padding: 20px 20px 5px 20px !important;
    }

    body #filters .slider-wrapper .slider-content {
        top: calc(100% + 50px) !important;
        padding: 5px 20px 20px 20px !important;
    }

    body #filters .slider-wrapper form { display: none !important; }

    body #filters .slider-wrapper:hover::before,
    body #filters .slider-wrapper:hover::after,
    body #filters .slider-wrapper:hover .slider-header,
    body #filters .slider-wrapper:hover .slider-content {
        display: block !important;
    }


    /* 8. Jemné doladenie samotných checkboxov vnútri roletiek */
    body #filters .filter-section form label,
    body #filters .filter-section .param-filter-top label {
        display: block !important;
        margin-bottom: 8px !important;
        font-size: 14px !important;
        cursor: pointer !important;
        text-transform: none !important;
        font-weight: normal !important;
    }
    body #filters .filter-section form div:last-child label,
    body #filters .filter-section .param-filter-top div:last-child label {
        margin-bottom: 0 !important;
    }

    body #filters .filter-section-count {
        margin-left: auto !important;
        padding: 0 15px !important;
        background: transparent !important;
        border: none !important;
    }
}
