/* ==========================================================================
   Shop Garage – profi filtr výpisu (F5-26). Načítá se jen ve výpisu obchodu
   (eshop_katalog.php), vše pod kořenem .esh.esf, třídy s prefixem .esf-.
   Mobil napřed (390 px): filtr ve spodním panelu s gesty, plovoucí tlačítko
   „Filtrovat“, štítky aktivních filtrů, dlaždice velikostí, vzorky barev,
   přepínač „Jen skladem“, posuvník ceny se dvěma jezdci (prst i klávesnice).
   Efekty (View Transitions, kostry karet, bliknutí změněných počtů) ctí
   prefers-reduced-motion. Bez JS: panel je obyčejný formulář nad výpisem.
   Barvy a písmo z eshop.css (--esh-*); eshop.css se tu nemění.
   ========================================================================== */

.esh.esf {
    --esf-radius: 18px;
    --esf-tmava: var(--esh-night);
    --esf-mekka: #f6f4ef;
    --esf-zvyrazneni: #fff0a8;
    --esf-stin: 0 18px 50px rgba(17, 18, 20, .22);
    --esf-anim: .32s var(--esh-ease);
}

/* Miniatury celé, bez ořezu (rozhodnutí Romana 27. 9., bod 13): jen ve výpisu s filtrem */
.esh.esf .esh-karta__foto img {
    object-fit: contain;
}

/* ---------------------------------------------------------------- Oblíbené výběry (SEO stránky) */
.esh .esf-rychle {
    margin: -8px 0 22px;
}

.esh .esf-rychle__nadpis {
    margin: 0 0 8px;
    color: var(--esh-muted);
    font-size: calc(12px + 12 * var(--esh-s));
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.esh .esf-rychle__seznam {
    display: flex;
    gap: 8px;
    margin: 0 calc(-1 * var(--esh-gutter));
    padding: 2px var(--esh-gutter) 6px;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.esh .esf-rychle__seznam::-webkit-scrollbar {
    display: none;
}

.esh .esf-rychle__seznam > li {
    flex: 0 0 auto;
    margin: 0;
    scroll-snap-align: start;
}

.esh a.esf-rychle__odkaz {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--esh-line-strong);
    border-radius: 999px;
    color: var(--esh-ink);
    background: #fff;
    font-size: calc(14px + 14 * var(--esh-s));
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s var(--esh-ease), border-color .18s var(--esh-ease), transform .18s var(--esh-ease);
}

@media (hover: hover) {
    .esh a.esf-rychle__odkaz:hover {
        border-color: var(--esh-ink);
        transform: translateY(-1px);
    }
}

.esh a.esf-rychle__odkaz.is-aktivni {
    border-color: var(--esf-tmava);
    color: #fff;
    background: var(--esf-tmava);
}

.esh a.esf-rychle__odkaz.is-aktivni .esf-pocet {
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

/* ---------------------------------------------------------------- Lišta nad výpisem */
.esh .esf-lista {
    flex-wrap: wrap;
    gap: 10px 14px;
}

.esh button.esf-otevrit,
.esh button.esf-plovouci__tlacitko {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--esf-tmava);
    font: inherit;
    font-size: calc(14px + 14 * var(--esh-s));
    font-weight: 800;
    cursor: pointer;
}

.esh button.esf-otevrit[hidden] {
    display: none;
}

.esh .esf-otevrit__ikona {
    position: relative;
    width: 18px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.esh .esf-otevrit__ikona::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 3px;
    right: 3px;
    border-top: 2px solid currentColor;
}

.esh .esf-otevrit__pocet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    color: var(--esf-tmava);
    background: #fff;
    font-size: 12px;
}

.esh .esf-otevrit__pocet[hidden] {
    display: none;
}

/* ---------------------------------------------------------------- Aktivní filtry (štítky) */
.esh .esf-aktivni {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 18px;
}

.esh .esf-cipy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.esh .esf-cipy__polozka {
    margin: 0;
    animation: esf-cip-prijezd .32s var(--esh-ease) both;
    animation-delay: calc(var(--esf-i, 0) * 35ms);
}

.esh a.esf-cip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 10px 6px 14px;
    border: 1px solid var(--esf-tmava);
    border-radius: 999px;
    color: var(--esh-ink);
    background: var(--esf-mekka);
    font-size: calc(14px + 14 * var(--esh-s));
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .18s var(--esh-ease), color .18s var(--esh-ease), border-color .18s var(--esh-ease);
}

.esh .esf-cip__skupina {
    color: var(--esh-muted);
    font-weight: 600;
}

.esh .esf-cip__text {
    font-weight: 800;
}

.esh .esf-cip__x {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(17, 18, 20, .08);
    transition: transform .2s var(--esh-ease), background-color .18s var(--esh-ease);
}

.esh .esf-cip__x::before,
.esh .esf-cip__x::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 5px;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

.esh .esf-cip__x::after {
    transform: rotate(-45deg);
}

@media (hover: hover) {
    .esh a.esf-cip:hover {
        border-color: var(--esh-red);
        color: #fff;
        background: var(--esh-red);
    }
}

@media (hover: hover) {
    .esh a.esf-cip:hover .esf-cip__skupina {
        /* bílá: na červené 5,4:1 (poloprůhledná bílá by dala jen 4,3:1, pod AA) */
        color: #fff;
    }
}

@media (hover: hover) {
    .esh a.esf-cip:hover .esf-cip__x {
        background: rgba(255, 255, 255, .22);
        transform: rotate(90deg);
    }
}

.esh a.esf-zrusit {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--esh-ink);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (hover: hover) {
    .esh a.esf-zrusit:hover {
        color: var(--esh-red);
    }
}

.esh a.esf-zrusit[hidden] {
    display: none;
}

/* ---------------------------------------------------------------- Panel: kategorie a skupiny */
.esh .esf-panel {
    min-width: 0;
}

.esh .esf-panel__hlava {
    display: none;
}

.esh .esf-kategorie {
    margin: 0 0 8px;
}

.esh .esf-kategorie__hlava {
    list-style: none;
    cursor: pointer;
}

.esh .esf-kategorie__hlava::-webkit-details-marker {
    display: none;
}

.esh .esf-kategorie__hlava .esh-bok__nadpis {
    display: inline-block;
}

.esh .esf-form__nadpis {
    margin-top: 18px;
}

.esh .esf-skupiny {
    display: flex;
    flex-direction: column;
}

.esh .esf-skupina {
    border-top: 1px solid var(--esh-line);
}

.esh .esf-skupina:last-child {
    border-bottom: 1px solid var(--esh-line);
}

.esh .esf-skupina__hlava {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 0;
    list-style: none;
    cursor: pointer;
}

.esh .esf-skupina__hlava::-webkit-details-marker {
    display: none;
}

.esh .esf-skupina__hlava::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin: -4px 4px 0 auto;
    border-right: 2px solid var(--esh-ink);
    border-bottom: 2px solid var(--esh-ink);
    transform: rotate(45deg);
    transition: transform var(--esf-anim);
}

.esh .esf-skupina[open] > .esf-skupina__hlava::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.esh .esf-skupina__nazev {
    font-size: calc(15px + 15 * var(--esh-s));
    font-weight: 800;
}

.esh .esf-skupina__stav {
    overflow: hidden;
    max-width: 55%;
    padding: 2px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--esh-red);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.esh .esf-skupina__telo {
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    border: 0;
}

.esh .esf-skupina[open] > .esf-skupina__telo {
    animation: esf-rozbal .28s var(--esh-ease);
}

.esh .esf-napoveda {
    margin: 8px 0 0;
    color: var(--esh-muted);
    font-size: calc(13px + 13 * var(--esh-s));
}

/* Počet u hodnoty (bliká po změně) */
.esh .esf-pocet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    margin-left: auto;
    padding: 0 7px;
    border-radius: 999px;
    color: var(--esh-muted);
    background: var(--esf-mekka);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.esh .esf-pocet.is-zmena {
    animation: esf-blik .9s var(--esh-ease);
}

/* ---------------------------------------------------------------- Hodnoty: seznam (checkbox) */
.esh .esf-hodnoty {
    margin: 0;
    padding: 0;
    list-style: none;
}

.esh .esf-hodnota {
    position: relative;
    margin: 0;
}

.esh .esf-hodnota__pole {
    position: absolute;
    top: 50%;
    left: 0;
    width: 22px;
    height: 22px;
    margin: -11px 0 0;
    opacity: 0;
    cursor: pointer;
}

.esh label.esf-hodnota__stitek {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    padding: 6px 0 6px 34px;
    color: var(--esh-ink);
    font-size: calc(15px + 15 * var(--esh-s));
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}

.esh .esf-hodnoty--seznam label.esf-hodnota__stitek::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border: 2px solid var(--esh-line-strong);
    border-radius: 5px;
    background: #fff;
    transition: background-color .15s var(--esh-ease), border-color .15s var(--esh-ease);
}

.esh .esf-hodnoty--seznam label.esf-hodnota__stitek::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 8px;
    width: 6px;
    height: 12px;
    margin-top: -8px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    opacity: 0;
    transform: rotate(45deg) scale(.4);
    transition: opacity .15s var(--esh-ease), transform .2s var(--esh-ease);
}

.esh .esf-hodnoty--seznam .esf-hodnota__pole:checked + label.esf-hodnota__stitek::before {
    border-color: var(--esf-tmava);
    background: var(--esf-tmava);
}

.esh .esf-hodnoty--seznam .esf-hodnota__pole:checked + label.esf-hodnota__stitek::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

@media (hover: hover) {
    .esh .esf-hodnoty--seznam label.esf-hodnota__stitek:hover::before {
        border-color: var(--esh-ink);
    }
}

.esh .esf-hodnota__pole:focus-visible + label.esf-hodnota__stitek {
    outline: 3px solid var(--esh-focus);
    outline-offset: 2px;
    border-radius: 6px;
}

.esh .esf-hodnota__pole:checked + label.esf-hodnota__stitek .esf-hodnota__nazev {
    font-weight: 800;
}

/* Nulový počet: neaktivní hodnota (disabled), zůstává vidět */
.esh .esf-hodnota.is-nula label.esf-hodnota__stitek,
.esh .esf-hodnota__pole:disabled + label.esf-hodnota__stitek {
    color: var(--esh-muted);
    opacity: .5;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------- Hodnoty: dlaždice (velikosti) */
.esh .esf-hodnoty--dlazdice {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: 8px;
}

.esh .esf-hodnoty--dlazdice .esf-hodnota__pole,
.esh .esf-hodnoty--barvy .esf-hodnota__pole,
.esh .esf-hodnoty--cipy .esf-hodnota__pole {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.esh .esf-hodnoty--dlazdice label.esf-hodnota__stitek {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 6px 4px;
    border: 1px solid var(--esh-line-strong);
    border-radius: 10px;
    background: #fff;
    font-weight: 800;
    text-align: center;
    transition: background-color .15s var(--esh-ease), color .15s var(--esh-ease), border-color .15s var(--esh-ease), transform .15s var(--esh-ease);
}

.esh .esf-hodnoty--dlazdice .esf-pocet {
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
}

@media (hover: hover) {
    .esh .esf-hodnoty--dlazdice label.esf-hodnota__stitek:hover {
        border-color: var(--esh-ink);
        transform: translateY(-1px);
    }
}

.esh .esf-hodnoty--dlazdice .esf-hodnota__pole:checked + label.esf-hodnota__stitek {
    border-color: var(--esf-tmava);
    color: #fff;
    background: var(--esf-tmava);
}

.esh .esf-hodnoty--dlazdice .esf-hodnota__pole:checked + label.esf-hodnota__stitek .esf-pocet {
    color: rgba(255, 255, 255, .8);
}

.esh .esf-hodnoty--dlazdice .esf-hodnota.is-nula label.esf-hodnota__stitek {
    background: repeating-linear-gradient(135deg, #fff 0 6px, var(--esf-mekka) 6px 12px);
}

/* ---------------------------------------------------------------- Hodnoty: vzorky barev */
.esh .esf-hodnoty--barvy {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 6px 10px;
}

.esh .esf-hodnoty--barvy label.esf-hodnota__stitek {
    position: relative;
    gap: 10px;
    padding: 6px 8px 6px 6px;
    border: 1px solid transparent;
    border-radius: 999px;
}

.esh .esf-vzorek {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--esf-barva, #ccc);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
    transition: transform .2s var(--esh-ease), box-shadow .2s var(--esh-ease);
}

.esh .esf-vzorek--bez {
    background: conic-gradient(#c92d26, #e8b33a, #2f7d4a, #2d5fa8, #7a3fa0, #c92d26);
}

@media (hover: hover) {
    .esh .esf-hodnoty--barvy label.esf-hodnota__stitek:hover .esf-vzorek {
        transform: scale(1.08);
    }
}

.esh .esf-hodnoty--barvy .esf-hodnota__pole:checked + label.esf-hodnota__stitek {
    border-color: var(--esf-tmava);
    background: var(--esf-mekka);
}

.esh .esf-hodnoty--barvy .esf-hodnota__pole:checked + label.esf-hodnota__stitek .esf-vzorek {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--esf-tmava);
}

/* ---------------------------------------------------------------- Hodnoty: čipy (štítky) */
.esh .esf-hodnoty--cipy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.esh .esf-hodnoty--cipy label.esf-hodnota__stitek {
    position: relative;
    gap: 8px;
    padding: 6px 8px 6px 14px;
    border: 1px solid var(--esh-line-strong);
    border-radius: 999px;
    background: #fff;
    font-weight: 700;
}

.esh .esf-hodnoty--cipy .esf-hodnota__pole:checked + label.esf-hodnota__stitek {
    border-color: var(--esh-red);
    color: #fff;
    background: var(--esh-red);
}

.esh .esf-hodnoty--cipy .esf-hodnota__pole:checked + label.esf-hodnota__stitek .esf-pocet {
    color: var(--esh-red);
    background: #fff;
}

/* „Zobrazit další“ a hledání v dlouhé skupině */
.esh .esf-vice {
    margin-top: 4px;
}

.esh .esf-vice__prepinac {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--esh-ink);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    list-style: none;
    cursor: pointer;
}

.esh .esf-vice__prepinac::-webkit-details-marker {
    display: none;
}

.esh .esf-vice[open] > .esf-vice__prepinac {
    display: none;
}

.esh .esf-hledat {
    margin: 0 0 8px;
}

.esh .esf-hledat[hidden],
.esh .esf-hodnota[hidden] {
    display: none;
}

/* ---------------------------------------------------------------- Přepínač „Jen skladem“ */
.esh .esf-skupina--prepinac {
    position: relative;
    padding: 6px 0;
}

.esh .esf-prepinac__pole {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.esh label.esf-prepinac {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    margin: 0;
    cursor: pointer;
}

.esh .esf-prepinac__kolej {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
    height: 30px;
    border-radius: 999px;
    background: var(--esh-line-strong);
    transition: background-color .2s var(--esh-ease);
}

.esh .esf-prepinac__kolej::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: transform .25s var(--esh-ease);
}

.esh .esf-prepinac__pole:checked + label .esf-prepinac__kolej {
    background: var(--esh-green);
}

.esh .esf-prepinac__pole:checked + label .esf-prepinac__kolej::after {
    transform: translateX(20px);
}

.esh .esf-prepinac__pole:focus-visible + label .esf-prepinac__kolej {
    outline: 3px solid var(--esh-focus);
    outline-offset: 2px;
}

.esh .esf-prepinac__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.esh .esf-prepinac__nazev {
    font-size: calc(15px + 15 * var(--esh-s));
    font-weight: 800;
}

.esh .esf-prepinac__popis {
    color: var(--esh-muted);
    font-size: calc(13px + 13 * var(--esh-s));
}

.esh .esf-skupina--prepinac.is-nula label.esf-prepinac {
    opacity: .5;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------- Rozsah: posuvník se dvěma jezdci + pole */
.esh .esf-rozsah__posuvnik {
    --esf-od: 0%;
    --esf-do: 100%;
    position: relative;
    height: 44px;
    margin: 4px 13px 6px;
}

.esh .esf-rozsah__posuvnik[hidden] {
    display: none;
}

.esh .esf-rozsah__kolej {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 4px;
    background: var(--esh-line);
}

.esh .esf-rozsah__vyber {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--esf-od);
    right: calc(100% - var(--esf-do));
    border-radius: 4px;
    background: var(--esf-tmava);
}

.esh input.esf-rozsah__jezdec {
    position: absolute;
    top: 0;
    left: -13px;
    width: calc(100% + 26px);
    height: 44px;
    margin: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.esh input.esf-rozsah__jezdec::-webkit-slider-runnable-track {
    height: 44px;
    background: transparent;
}

.esh input.esf-rozsah__jezdec::-moz-range-track {
    height: 44px;
    background: transparent;
}

.esh input.esf-rozsah__jezdec::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    margin-top: 8px;
    border: 3px solid var(--esf-tmava);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    cursor: grab;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    transition: transform .15s var(--esh-ease);
}

.esh input.esf-rozsah__jezdec::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: 3px solid var(--esf-tmava);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    cursor: grab;
    pointer-events: auto;
}

.esh input.esf-rozsah__jezdec:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.15);
}

.esh input.esf-rozsah__jezdec:focus-visible {
    outline: none;
}

.esh input.esf-rozsah__jezdec:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px var(--esh-focus);
}

.esh input.esf-rozsah__jezdec:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px var(--esh-focus);
}

.esh .esf-rozsah__pole {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.esh .esf-rozsah__bunka {
    position: relative;
}

.esh label.esf-rozsah__popisek {
    display: block;
    margin: 0 0 4px;
    color: var(--esh-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.esh input.esf-rozsah__cislo {
    padding-right: 38px;
    font-variant-numeric: tabular-nums;
    appearance: textfield;
    -moz-appearance: textfield;
}

.esh input.esf-rozsah__cislo::-webkit-outer-spin-button,
.esh input.esf-rozsah__cislo::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.esh .esf-rozsah__jednotka {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: var(--esh-muted);
    font-size: 14px;
    pointer-events: none;
}

/* ---------------------------------------------------------------- Pata panelu */
.esh .esf-panel__pata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 18px 0 0;
}

.esh .esf-panel__zobrazit {
    flex: 1 1 auto;
}

/* ---------------------------------------------------------------- Výsledky: kostry při načítání, příjezd karet */
.esh .esf-vysledky {
    position: relative;
    min-height: 200px;
}

.esh .esf-vysledky.is-nacita .esf-polozka {
    pointer-events: none;
}

.esh .esf-vysledky.is-nacita .esh-karta__foto::after,
.esh .esf-vysledky.is-nacita .esh-karta__info::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(100deg, #eeebe5 20%, #f8f6f2 40%, #eeebe5 60%) 0 0 / 300% 100%;
    animation: esf-kostra 1.1s linear infinite;
}

.esh .esf-vysledky.is-nacita .esh-karta__info {
    position: relative;
}

.esh .esf-polozka.is-nova {
    animation: esf-karta-prijezd .45s var(--esh-ease) both;
    animation-delay: calc(var(--esf-i, 0) * 30ms);
}

.esh .esf-prazdne {
    padding: 36px 20px;
    border: 1px dashed var(--esh-line-strong);
    border-radius: 12px;
    text-align: center;
}

.esh .esf-prazdne p + p {
    margin-top: 10px;
}

.esh .esf-dalsi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 34px 0 10px;
}

.esh .esf-dalsi__info {
    color: var(--esh-muted);
    font-size: 13px;
}

.esh .esf-dalsi__tlacitko.is-nacita {
    opacity: .6;
    pointer-events: none;
}

.esh .esf-lista__pocet strong.is-zmena,
.esh [data-esf-celkem-cislo].is-zmena {
    display: inline-block;
    animation: esf-bump .5s var(--esh-ease);
}

/* ---------------------------------------------------------------- Plovoucí tlačítko a clona (jen s JS na mobilu) */
.esh .esf-plovouci,
.esh .esf-clona {
    display: none;
}

/* ==========================================================================
   Mobil a tablet (< 1024 px) s JS: spodní panel (bottom sheet)
   ========================================================================== */
@media (max-width: 1023px) {
    .esf-js .esh.esf .esf-panel {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10020;
        display: flex;
        flex-direction: column;
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: var(--esf-radius) var(--esf-radius) 0 0;
        background: #fff;
        box-shadow: var(--esf-stin);
        transform: translateY(105%);
        visibility: hidden;
        transition: transform .38s var(--esh-ease), visibility 0s linear .38s;
    }

    .esf-js .esh.esf .esf-panel.is-otevreny {
        transform: translateY(var(--esf-tah, 0px));
        visibility: visible;
        transition: transform .38s var(--esh-ease), visibility 0s;
    }

    .esf-js .esh.esf .esf-panel.is-tazeny {
        transition: none;
    }

    .esf-js .esh.esf .esf-panel__hlava {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 auto;
        min-height: 64px;
        padding: 18px var(--esh-gutter) 10px;
        border-bottom: 1px solid var(--esh-line);
        touch-action: none;
        cursor: grab;
    }

    .esf-js .esh.esf .esf-panel__uchop {
        position: absolute;
        top: 8px;
        left: 50%;
        width: 44px;
        height: 5px;
        margin-left: -22px;
        border-radius: 5px;
        background: var(--esh-line-strong);
    }

    .esf-js .esh.esf .esf-panel__nadpis {
        margin: 0;
        font-size: 20px;
        font-weight: 800;
    }

    .esf-js .esh.esf button.esf-panel__zavrit {
        position: relative;
        width: 44px;
        height: 44px;
        margin-right: -8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: var(--esh-ink);
        background: var(--esf-mekka);
        cursor: pointer;
    }

    .esf-js .esh.esf button.esf-panel__zavrit span::before,
    .esf-js .esh.esf button.esf-panel__zavrit span::after {
        content: "";
        position: absolute;
        top: 21px;
        left: 13px;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transform: rotate(45deg);
    }

    .esf-js .esh.esf button.esf-panel__zavrit span::after {
        transform: rotate(-45deg);
    }

    .esf-js .esh.esf .esf-panel__telo {
        flex: 1 1 auto;
        min-height: 0;
        padding: 6px var(--esh-gutter) 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .esf-js .esh.esf .esf-panel__pata {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin: 0 calc(-1 * var(--esh-gutter));
        padding: 12px var(--esh-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--esh-line);
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(8px);
    }

    .esf-js .esh.esf .esf-clona {
        position: fixed;
        inset: 0;
        z-index: 10010;
        display: block;
        background: rgba(17, 18, 20, .5);
        opacity: 0;
        transition: opacity .3s var(--esh-ease);
    }

    .esf-js .esh.esf .esf-clona[hidden] {
        display: none;
    }

    .esf-js .esh.esf .esf-clona.is-videt {
        opacity: 1;
    }

    .esf-js .esh.esf .esf-plovouci {
        position: fixed;
        left: 50%;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        z-index: 10000;
        display: block;
        transform: translate(-50%, 0);
        transition: transform .35s var(--esh-ease), opacity .35s var(--esh-ease);
    }

    .esf-js .esh.esf .esf-plovouci[hidden],
    .esf-js .esh.esf .esf-plovouci.is-schovane {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, 140%);
    }

    .esf-js .esh.esf button.esf-plovouci__tlacitko {
        min-height: 54px;
        padding: 10px 22px;
        box-shadow: var(--esf-stin);
        white-space: nowrap;
    }

    .esf-js .esh.esf .esf-plovouci__celkem {
        padding-left: 12px;
        border-left: 1px solid rgba(255, 255, 255, .3);
        color: rgba(255, 255, 255, .85);
        font-weight: 600;
    }

    .esf-js .esh.esf .esf-plovouci__celkem strong {
        color: #fff;
    }

    .esf-js .esh.esf .esf-lista {
        justify-content: space-between;
    }

    .esf-js .esh.esf .esf-lista .esh-lista__pocet {
        order: 3;
        width: 100%;
    }

    /* bez JS zůstává obyčejný panel nad výpisem; s JS ho eshop.css details už neovládá */
    .esf-js .esh.esf .esf-kategorie {
        margin-top: 6px;
    }
}

/* Uzamčené pozadí při otevřeném panelu */
html.esf-zamceno,
html.esf-zamceno body {
    overflow: hidden;
}

/* ==========================================================================
   Desktop (≥ 1024 px): panel vlevo, přilepený při posunu
   ========================================================================== */
@media (min-width: 1024px) {
    .esh .esf-panel {
        position: sticky;
        top: calc(var(--esh-nav) + 16px);
        max-height: calc(100vh - var(--esh-nav) - 32px);
        padding-right: 10px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .esh .esf-lista .esf-otevrit {
        display: none;
    }

    .esf-js .esh.esf[data-esf-zive] .esf-panel__pata {
        display: none;
    }

    .esh .esf-rychle__seznam {
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        overflow: visible;
    }
}

@media (min-width: 1800px) {
    .esh .esf-hodnoty--dlazdice {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    /* výpis s filtrem vždy přes celou šířku (trvalé pravidlo Romana „vždy full screen“; eshop.css jinak končí na 2080 px) */
    .esh.esf .esh-obal {
        max-width: none;
    }
}

/* ---------------------------------------------------------------- View Transitions (přeskládání karet) */
::view-transition-group(*) {
    animation-duration: .38s;
    animation-timing-function: cubic-bezier(.2, .65, .25, 1);
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .2s;
}

/* ---------------------------------------------------------------- Animace */
@keyframes esf-blik {
    0% { color: var(--esh-ink); background: var(--esf-zvyrazneni); transform: scale(1.18); }
    100% { transform: scale(1); }
}

@keyframes esf-bump {
    0% { transform: translateY(-3px) scale(1.12); color: var(--esh-red); }
    100% { transform: none; }
}

@keyframes esf-cip-prijezd {
    from { opacity: 0; transform: translateY(6px) scale(.92); }
    to { opacity: 1; transform: none; }
}

@keyframes esf-karta-prijezd {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes esf-rozbal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

@keyframes esf-kostra {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .esh.esf *,
    .esh.esf *::before,
    .esh.esf *::after {
        animation: none !important;
        transition: none !important;
    }

    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }

    .esh .esf-vysledky.is-nacita .esh-karta__foto::after,
    .esh .esf-vysledky.is-nacita .esh-karta__info::after {
        background: #eeebe5;
        opacity: .7;
    }
}

@media print {
    .esh .esf-panel,
    .esh .esf-plovouci,
    .esh .esf-clona,
    .esh .esf-aktivni,
    .esh .esf-dalsi {
        display: none !important;
    }
}
