/* =========================================================
   SHOPTET – KATEGORIE – STABILNÍ VERZE
   Horní bar + drawer filtr zleva
========================================================= */

.type-category .category-top-filter-toggle,
.type-category .category-filter-drawer,
.type-category .category-filter-overlay {
    box-sizing: border-box;
}

/* schování původních systémových tlačítek filtru */
.type-category .filters-unveil-button,
.type-category .filters-unveil-button-wrapper,
.type-category .js-filters-unveil-button,
.type-category .open-filter,
.type-category .filter-toggle,
.type-category a[href="#filters"] {
    display: none !important;
}

/* původní levý sidebar po přesunu skryj */
.type-category .category-filter-origin-hidden {
    display: none !important;
}

/* horní bar */
.type-category .category-top-filter-wrap {
    width: 100%;
    margin: 0 0 18px 0;
}

.type-category .category-top-filter-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 30px !important;
    padding: 4px 18px !important;
    background: #eef1f4;
    border: 1px solid #000000 !important;
    color: #10213a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.05;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.type-category .category-top-filter-toggle:hover {
    background: #e8edf2;
    border-color: #000000 !important;
}

.type-category .category-top-filter-toggle::before {
    content: "";
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2310213a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'%3E%3C/polygon%3E%3C/svg%3E");
}

.type-category .category-top-filter-toggle::after {
    content: "";
    margin-left: auto;
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-right: 2px solid #10213a;
    border-bottom: 2px solid #10213a;
    transform: rotate(45deg);
    margin-top: -3px;
}

/* overlay */
.type-category .category-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9998;
}

.type-category .category-filter-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* drawer */
.type-category .category-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    max-width: calc(100vw - 24px);
    height: 100vh;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 24px 60px rgba(0,0,0,0.18);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.type-category .category-filter-drawer.is-open {
    transform: translateX(0);
}

.type-category .category-filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eceff3;
    flex: 0 0 auto;
}

.type-category .category-filter-drawer-title {
    margin: 0;
    color: #10213a;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.type-category .category-filter-drawer-close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #111111;
    font-size: 28px;
    line-height: 1;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.type-category .category-filter-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 24px 28px;
}

/* vyčištění přesunutého filtru */
.type-category .category-filter-drawer-body .category-filter-real-root,
.type-category .category-filter-drawer-body .category-filter-real-root > * {
    width: 100% !important;
    max-width: 100% !important;
}

.type-category .category-filter-drawer-body .sidebar,
.type-category .category-filter-drawer-body .sidebar-left,
.type-category .category-filter-drawer-body .sidebar-inner,
.type-category .category-filter-drawer-body #filters,
.type-category .category-filter-drawer-body .filters,
.type-category .category-filter-drawer-body .filter-section {
    box-shadow: none !important;
}

.type-category .category-filter-drawer-body .sidebar,
.type-category .category-filter-drawer-body .sidebar-left,
.type-category .category-filter-drawer-body .sidebar-inner,
.type-category .category-filter-drawer-body #filters,
.type-category .category-filter-drawer-body .filters {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    float: none !important;
}

/* sekce */
.type-category .category-filter-drawer .filter-section,
.type-category .category-filter-drawer .sidebar-inner > div,
.type-category .category-filter-drawer .filter-group,
.type-category .category-filter-drawer .parameter-filter {
    border-bottom: 1px solid #eceff3 !important;
    border-top: 0 !important;
    padding: 0 0 22px 0 !important;
    margin: 0 0 22px 0 !important;
    box-shadow: none !important;
}

.type-category .category-filter-drawer .filter-section:last-child,
.type-category .category-filter-drawer .sidebar-inner > div:last-child,
.type-category .category-filter-drawer .filter-group:last-child,
.type-category .category-filter-drawer .parameter-filter:last-child {
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* odstranění duplicitních proužků mezi sekcemi */
.type-category .category-filter-drawer hr,
.type-category .category-filter-drawer .separator,
.type-category .category-filter-drawer .divider,
.type-category .category-filter-drawer .filter-separator,
.type-category .category-filter-drawer [class*="separator"],
.type-category .category-filter-drawer [class*="divider"] {
    display: none !important;
    border: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.type-category .category-filter-drawer .sidebar-inner > div::before,
.type-category .category-filter-drawer .sidebar-inner > div::after,
.type-category .category-filter-drawer .filter-section::before,
.type-category .category-filter-drawer .filter-section::after,
.type-category .category-filter-drawer .filter-group::before,
.type-category .category-filter-drawer .filter-group::after,
.type-category .category-filter-drawer .parameter-filter::before,
.type-category .category-filter-drawer .parameter-filter::after {
    box-shadow: none !important;
    border-top: 0 !important;
}

/* nadpisy */
.type-category .category-filter-drawer .filter-section-name,
.type-category .category-filter-drawer .filter-section h4,
.type-category .category-filter-drawer .sidebar h4,
.type-category .category-filter-drawer .sidebar-inner h4,
.type-category .category-filter-drawer .parameter-name {
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #1f2a2c !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

/* řádky */
.type-category .category-filter-drawer .parameter-value,
.type-category .category-filter-drawer .filter-value,
.type-category .category-filter-drawer .availability-value {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.type-category .category-filter-drawer label,
.type-category .category-filter-drawer .parameter-values label {
    color: #1a2340 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* checkbox */
.type-category .category-filter-drawer input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* badge počtů */
.type-category .category-filter-drawer .count,
.type-category .category-filter-drawer .parameter-count,
.type-category .category-filter-drawer .filter-count {
    margin-left: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 30px !important;
    height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #f2f3f6 !important;
    color: #2d3553 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border: 0 !important;
}

/* inputy */
.type-category .category-filter-drawer input[type="text"],
.type-category .category-filter-drawer input[type="number"] {
    height: 40px !important;
    border: 1px solid #d9dee7 !important;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #1a2340 !important;
    font-size: 15px !important;
    padding: 0 12px !important;
}

/* =========================================================
   CENA – přesunutá pod Pokémon
========================================================= */

.type-category .category-filter-drawer .category-price-relocated {
    margin-top: 0 !important;
}

.type-category .category-filter-drawer .category-price-relocated .filter-section-name,
.type-category .category-filter-drawer .category-price-relocated .parameter-name,
.type-category .category-filter-drawer .category-price-relocated h4 {
    color: #1f2a2c !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-bottom: 18px !important;
}

.type-category .category-filter-drawer .category-price-relocated input[type="text"],
.type-category .category-filter-drawer .category-price-relocated input[type="number"] {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    color: #1f2a2c !important;
    font-weight: 500 !important;
}

.type-category .category-filter-drawer .category-price-relocated .from,
.type-category .category-filter-drawer .category-price-relocated .to,
.type-category .category-filter-drawer .category-price-relocated .price-from,
.type-category .category-filter-drawer .category-price-relocated .price-to,
.type-category .category-filter-drawer .category-price-relocated .price-range-from,
.type-category .category-filter-drawer .category-price-relocated .price-range-to {
    color: #1f2a2c !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
}

.type-category .category-filter-drawer .category-price-relocated .price-filter,
.type-category .category-filter-drawer .category-price-relocated .price-filter-widget,
.type-category .category-filter-drawer .category-price-relocated .price-filter-box,
.type-category .category-filter-drawer .category-price-relocated .range-filter {
    width: 100% !important;
}

.type-category .category-filter-drawer .category-price-relocated .price-filter > div:first-child,
.type-category .category-filter-drawer .category-price-relocated .price-filter-widget > div:first-child,
.type-category .category-filter-drawer .category-price-relocated .price-filter-box > div:first-child,
.type-category .category-filter-drawer .category-price-relocated .range-filter > div:first-child {
    margin-bottom: 14px !important;
}

/* slider */
.type-category .category-filter-drawer .category-price-relocated .ui-slider {
    position: relative !important;
    height: 8px !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    margin: 18px 14px 6px 14px !important;
}

.type-category .category-filter-drawer .category-price-relocated .ui-slider .ui-slider-range {
    height: 100% !important;
    background: #223032 !important;
    border: 0 !important;
    border-radius: 999px !important;
}

.type-category .category-filter-drawer .category-price-relocated .ui-slider .ui-slider-handle {
    width: 18px !important;
    height: 18px !important;
    border: 6px solid #223032 !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    top: 50% !important;
    margin-top: -9px !important;
    margin-left: -9px !important;
    box-shadow: none !important;
    outline: none !important;
    position: absolute !important;
}

.type-category .category-filter-drawer .category-price-relocated .ui-slider .ui-slider-handle:hover,
.type-category .category-filter-drawer .category-price-relocated .ui-slider .ui-slider-handle:focus,
.type-category .category-filter-drawer .category-price-relocated .ui-slider .ui-slider-handle:active {
    background: #ffffff !important;
    border-color: #223032 !important;
    box-shadow: none !important;
    outline: none !important;
}

.type-category .category-filter-drawer .category-price-relocated .ui-slider .ui-slider-handle::before,
.type-category .category-filter-drawer .category-price-relocated .ui-slider .ui-slider-handle::after {
    display: none !important;
    content: none !important;
}

/* fallback, kdy Shoptet vrací vlastní cenový blok */
.type-category .category-filter-drawer .category-price-relocated [class*="price"],
.type-category .category-filter-drawer .category-price-relocated [class*="range"] {
    box-shadow: none !important;
}

/* skryj tlačítko "Rozbalit filtr" uvnitř draweru */
.type-category .category-filter-drawer .expand-filters,
.type-category .category-filter-drawer .filters-expand,
.type-category .category-filter-drawer .js-expand-filters,
.type-category .category-filter-drawer .filter-section-expand,
.type-category .category-filter-drawer .show-all-filters,
.type-category .category-filter-drawer [class*="expand-filter"],
.type-category .category-filter-drawer [class*="rozbal"],
.type-category .category-filter-drawer button[aria-expanded],
.type-category .category-filter-drawer a[aria-expanded] {
    display: none !important;
}

/* fallback text */
.type-category .category-filter-loading,
.type-category .category-filter-empty {
    color: #10213a;
    font-size: 16px;
    line-height: 1.4;
    padding: 8px 0;
}

/* scrollbar */
.type-category .category-filter-drawer-body::-webkit-scrollbar {
    width: 10px;
}

.type-category .category-filter-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.type-category .category-filter-drawer-body::-webkit-scrollbar-thumb {
    background: #d9dde4;
    border-radius: 999px;
}

body.category-filter-drawer-open {
    overflow: hidden !important;
}

/* mobil */
@media (max-width: 767px) {
    .type-category .category-top-filter-wrap {
        width: 100%;
        margin: 0 0 14px 0;
    }

    .type-category .category-top-filter-toggle {
        font-size: 16px;
        min-height: 28px !important;
        padding: 4px 14px !important;
    }

    .type-category .category-top-filter-toggle::before {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .type-category .category-filter-drawer {
        width: calc(100vw - 14px);
        max-width: calc(100vw - 14px);
    }

    .type-category .category-filter-drawer-header {
        padding: 20px 18px 14px;
    }

    .type-category .category-filter-drawer-title {
        font-size: 24px;
    }

    .type-category .category-filter-drawer-body {
        padding: 16px 18px 24px;
    }

    .type-category .category-filter-drawer .category-price-relocated .ui-slider {
        margin: 16px 12px 6px 12px !important;
    }
}