/* ==========================================
   FILTRY A HLAVIČKA KATEGORIE
   ========================================== */

.type-category .ratings-wrapper,
.type-detail .ratings-wrapper {
    order: -1;
}

.type-category .box.box-bg-default.box-sm.box-filters,
.type-category div#filters {
    display: none;
}

:where(body.ums_a11y_category_page--on) .category-header {
    align-items: center;
    column-gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    margin-bottom: 0px;
}

:where(body.ums_a11y_category_page--on) .listSorting__control:focus-visible,
:where(body.ums_a11y_category_page--on) .listSorting__control:hover,
:where(body.ums_a11y_category_page--on) .sortingToggle:focus-visible,
:where(body.ums_a11y_category_page--on) .sortingToggle:hover {
    color: black;
}

.type-category .custom-filters-dropdown .dropdown-menu {
    top: 50px;
}

.type-category div#manufacturer-filter form > fieldset {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.type-category div#manufacturer-filter form > fieldset > div > label {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.type-category div#manufacturer-filter form > fieldset > div {
    width: 100% !important;
}

.custom-filters-dropdown span {
    font-size: 14px;
    font-weight: 600;
}

.custom-filters-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label .filter-count {
    display: inline-block;
    height: 20px;
    line-height: 22px;
    text-align: center;
    vertical-align: middle;
    width: auto !important;
    min-width: 20px !important;
    padding: 0 6px !important;
    border-radius: 10px !important;
    font-weight: 300 !important;
}

span.filter-count {
    color: white;
}

.filter-count {
    background-color: #363530;
}

label.filter-label {
    display: flex !important;
    width: 100% !important;
}

.type-category fieldset {
    display: flex;
    flex-direction: column !important;
    width: 100% !important;
}

.type-category fieldset > div {
    display: flex !important;
    width: 100% !important;
}

.type-category .slider-wrapper {
    padding: 0px !important;
}

.type-category .filter-section {
    padding-bottom: 0;
    padding-top: 0;
}

.custom-filters-dropdown {
    gap: 0 10px !important;
}

.type-category .custom-filters-dropdown .dropdown .dropdown-menu {
    left: auto !important;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
}

.custom-filters-dropdown .dropdown {
    background: white;
    margin-bottom: 10px;
    padding-inline: 15px;
    border-radius: 10px;
}

.category-header {
    margin-bottom: 0;
}

select#pocet-osob,
select#odberne-miesta,
select#komfort {
    border-radius: 20px;
    width: 200px;
}

.filter-section h4 {
    margin-top: 10px;
    margin-bottom: 5px;
}

@media(max-width: 767px) {
    .custom-filters-dropdown {
        padding-top: 20px;
    }
}

.subcategories {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    padding: 0 !important;
    margin: 15px 0 !important;
    list-style: none !important;
}

.subcategories li {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.subcategories li a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 10px !important;
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    min-height: 60px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
}

.subcategories li a span {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    line-height: 1.2 !important;
}

.subcategories li a img {
    max-height: 50px !important;
    margin-right: 8px !important;
    object-fit: contain !important;
}

.mobile-filters-toggle {
    display: none !important;
}

@media (max-width: 991px) {
    .category-header {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        align-items: start !important;
        margin-bottom: 15px !important;
    }

    .category-header form,
    .category-header .listSorting {
        width: 100% !important;
        margin: 0 !important;
    }

    .mobile-filters-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: white !important;    
        border: none !important;
        border-radius: 10px !important;    
        font-size: 14px !important;
        height: 50px !important;           
        cursor: pointer;
        width: 100% !important;
        font-weight: 600 !important;
        padding: 15px 32px !important;
        color: #2A378D;
    }

    .custom-filters-dropdown {
        grid-column: 1 / -1 !important;
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 5px !important;
    }

    .custom-filters-dropdown.is-open {
        display: flex !important;
    }

    .custom-filters-dropdown .dropdown {
        width: 100% !important;
    }

    .custom-filters-dropdown .dropdown button {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

/* ==========================================
   DESKTOP - FILTRY VLEVO A ŘAZENÍ VPRAVO
   ========================================== */
@media (min-width: 992px) {
    :where(body.ums_a11y_category_page--on) .category-header, 
    .category-header {
        display: flex !important;
        flex-wrap: nowrap !important; 
        align-items: flex-start !important; 
        justify-content: space-between !important;
        gap: 20px !important;
        width: 100% !important;
        padding-top: 15px !important;
    }

    .custom-filters-dropdown {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        order: 1 !important; 
        flex: 1 1 auto !important; 
        justify-content: flex-start !important; 
        margin-bottom: 0 !important;
    }

    .category-header .listSorting {
        order: 2 !important; 
        flex: 0 0 auto !important; 
        margin: 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
    }
}

/* @media (min-width: 768px) {
    .sortingToggle {
        padding-inline: 30px;
    }
} */

.sortingToggle .icon-sort {
    display: none;
}

.sortingToggle {
    font-weight: 600;
    color: #2A378D;
    font-size: 14px;
    border: 1px solid #2A378D !important;
    border:none;
    border-radius: 10px;
}


@media(min-width: 375px) and (max-width: 991px){
.subcategories {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 0 !important;
    margin: 15px 0 !important;
    list-style: none !important;
}
}

@media(max-width: 374px){
.subcategories {
    grid-template-columns: repeat(1, 1fr) !important;
}

:where(.ums_forms_redesign--off) .add-to-cart-button, :where(.ums_forms_redesign--off) .surcharge-list select, :where(.ums_forms_redesign--off) .variant-list select {
    height: 45px;
    font-size: 14px;
    line-height: 45px;
    padding-bottom: 0;
    padding-top: 0;
}
}

@media(max-width: 767px){
    .category__secondDescription {
    margin-top: 65Px;
}

.listSorting__controls {
    padding: 10px 0;
}

.listSorting__control {
    display: block;
    line-height: 1.5;
    padding: 5px 16px;
}
}