/* ==========================================================================
   Shop Garage – motocykly v obchodě (F4-19): výpis /obchod/motocykly/, blok
   „Všechny parametry“ na detailu /modely/<slug>/ a porovnání motocyklů
   /porovnani-produktu/?moto=… . Vše s prefixem esh-moto-, nic globálního.
   Výpis a porovnání jsou pod kořenem .esh (proměnné z eshop.css); blok na
   detailu je na stránce webu mimo .esh, proto má vlastní proměnné převzaté
   z webu (--ink, --red, --paper, --line, --gutter, --fzd) s náhradními hodnotami.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Výpis /obchod/motocykly/
   -------------------------------------------------------------------------- */
.esh .esh-moto-mrizka {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px 16px;
}

.esh .esh-moto-karta__foto {
    aspect-ratio: 14 / 9;
    background: var(--esh-foto);
}

.esh .esh-moto-karta__foto img {
    object-fit: contain;
    padding: 4% 5%;
}

.esh .esh-moto-karta .esh-karta__info {
    gap: 8px;
}

.esh .esh-moto-odznak {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 26px;
    padding: 0 8px;
    border-radius: 3px;
    color: #fff;
    background: var(--esh-night);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    pointer-events: none;
}

.esh .esh-moto-karta__popis {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--esh-muted);
    font-size: calc(13px + 13 * var(--esh-s));
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.esh .esh-moto-karta__parametry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 4px 0 2px;
    padding: 0;
    border: 1px solid var(--esh-line);
    background: var(--esh-line);
}

.esh .esh-moto-karta__parametr {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding: 8px 10px;
    background: #fff;
}

.esh .esh-moto-karta__parametr dt {
    margin: 0;
    color: var(--esh-muted);
    font-size: calc(10.5px + 10.5 * var(--esh-s));
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.esh .esh-moto-karta__parametr dd {
    margin: 0;
    color: var(--esh-ink);
    font-size: calc(14px + 14 * var(--esh-s));
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.esh .esh-moto-karta .esh-dostupnost {
    margin-top: 2px;
}

/* tlačítka nad překryvem odkazu karty (esh-karta__odkaz::after má z-index 3) */
.esh .esh-moto-karta__tlacitka {
    position: relative;
    z-index: 4;
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.esh .esh-moto-karta__tlacitka .esh-tlacitko {
    flex: 1 1 0;
    gap: 8px;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
}

.esh .esh-moto__pozn {
    margin: 34px 0 0;
    color: var(--esh-muted);
    font-size: calc(12.5px + 12.5 * var(--esh-s));
    line-height: 1.5;
}

/* stav tlačítka Porovnat (výpis i detail) */
.esh-moto-porovnat.is-aktivni,
.esh .esh-moto-porovnat.is-aktivni {
    border-color: var(--night, #111214);
    color: #fff;
    background: var(--night, #111214);
}

.esh-moto-porovnat.is-aktivni:hover,
.esh .esh-moto-porovnat.is-aktivni:hover {
    color: #fff;
    background: #343438;
}

@media (min-width: 560px) {
    .esh .esh-moto-mrizka {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .esh .esh-moto-mrizka {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
        gap: 42px 20px;
    }
}

@media (min-width: 1800px) {
    .esh .esh-moto-mrizka {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

/* --------------------------------------------------------------------------
   Spodní lišta výběru k porovnání (jen výpis motocyklů)
   -------------------------------------------------------------------------- */
.esh-moto-lista {
    position: fixed;
    right: 380px; /* vpravo panel a bublina chatu webu */
    bottom: 0;
    left: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 10px 16px;
    border-top: 3px solid var(--red, #c92d26);
    border-radius: 0 8px 0 0;
    color: #fff;
    background: var(--night, #111214);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
    font-family: Manrope, "Inter", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.3;
}

.esh-moto-lista[hidden] {
    display: none;
}

.esh-moto-lista *,
.esh-moto-lista *::before,
.esh-moto-lista *::after {
    box-sizing: border-box;
}

body.esh-ma-porovnani .esh-moto-lista {
    bottom: 76px;
}

.esh-moto-lista__popis {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    margin: 0;
}

.esh-moto-lista__nadpis {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.esh-moto-lista__pocet {
    color: #bdb9b2;
    font-size: 12px;
}

.esh-moto-lista__vyber {
    display: flex;
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.esh-moto-lista__polozka {
    position: relative;
    display: flex;
    flex: 0 1 200px;
    align-items: center;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 4px 30px 4px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .09);
}

.esh-moto-lista__nazev {
    overflow: hidden;
    min-width: 0;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.esh-moto-lista__odebrat {
    position: absolute;
    top: 50%;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: -12px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.esh-moto-lista__odebrat:hover {
    background: var(--red, #c92d26);
}

.esh-moto-lista__akce {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.esh-moto-lista__porovnat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: var(--red, #c92d26);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.esh-moto-lista__porovnat:hover {
    color: #fff;
    background: #ad211c;
}

.esh-moto-lista__porovnat[aria-disabled="true"] {
    background: #4a4a4e;
    cursor: default;
}

.esh-moto-lista__vymazat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.esh-moto-lista__vymazat:hover {
    border-color: #fff;
}

.esh-moto-lista :focus-visible {
    outline: 3px solid #e26438;
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .esh-moto-lista {
        right: 0;
        border-radius: 0;
        padding-right: 84px; /* vpravo bublina chatu webu */
    }
}

@media (max-width: 767px) {
    .esh-moto-lista {
        gap: 10px;
        min-height: 64px;
        padding: 8px 84px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
    }

    .esh-moto-lista__popis,
    .esh-moto-lista__vyber {
        display: none;
    }

    .esh-moto-lista__akce {
        flex: 1 1 auto;
    }

    .esh-moto-lista__porovnat {
        flex: 1 1 auto;
    }

    body.esh-ma-porovnani .esh-moto-lista {
        bottom: 64px;
    }
}

/* --------------------------------------------------------------------------
   Porovnání motocyklů (/porovnani-produktu/?moto=…): na šířku, jinak třídy esh-por
   -------------------------------------------------------------------------- */
.esh.esh-moto-por .esh-por__foto,
.esh.esh-moto-por .esh-por__tip-foto {
    aspect-ratio: 14 / 9;
}

.esh.esh-moto-por .esh-por__foto img,
.esh.esh-moto-por .esh-por__tip-foto img {
    padding: 4% 5%;
    object-fit: contain;
}

.esh.esh-moto-por .esh-por__odebrat,
.esh.esh-moto-por .esh-por__tip-pridat {
    text-decoration: none;
}

.esh.esh-moto-por .esh-por__pridat-ram {
    aspect-ratio: auto;
    min-height: 100%;
    padding: 18px 14px;
}

.esh.esh-moto-por .esh-moto-por__pridat .esh-pole {
    width: 100%;
    max-width: 260px;
    min-height: 44px;
}

.esh.esh-moto-por .esh-moto-por__pridat-tl {
    min-height: 42px;
    padding: 8px 18px;
}

/* s JS se motocykl přidá hned po výběru, tlačítko není potřeba */
.esh.esh-moto-por.is-js .esh-moto-por__pridat-tl {
    display: none;
}

.esh.esh-moto-por .esh-moto-por__tabulka .esh-por__radek--akce .esh-por__koupit {
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Blok „Všechny parametry“ na detailu motorky (stránka webu, mimo .esh)
   -------------------------------------------------------------------------- */
.esh-moto-param {
    --esh-mp-ink: var(--ink, #191a1c);
    --esh-mp-night: var(--night, #111214);
    --esh-mp-paper: var(--paper, #f4f1eb);
    --esh-mp-red: var(--red, #c92d26);
    --esh-mp-muted: var(--muted, #625f59);
    --esh-mp-line: var(--line, #dcd8d1);
    --esh-mp-s: var(--fzd, 0px);

    display: block;
    width: 100%;
    padding: 90px var(--gutter, clamp(20px, 4.167vw, 80px));
    border-top: 1px solid var(--esh-mp-line);
    color: var(--esh-mp-ink);
    background: #fff;
    font-family: Manrope, "Inter", Arial, Helvetica, sans-serif;
    line-height: 1.6;
    scroll-margin-top: 110px;
}

.esh-moto-param *,
.esh-moto-param *::before,
.esh-moto-param *::after {
    box-sizing: border-box;
}

.esh-moto-param :focus-visible {
    outline: 3px solid #e26438;
    outline-offset: 3px;
}

.esh-moto-param__hlava {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px 48px;
    margin-bottom: 34px;
}

.esh-moto-param__hlava > div:first-child {
    flex: 1 1 560px;
    min-width: 0;
}

.esh-moto-param__nadtitulek {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--esh-mp-red);
    font-size: calc(11px + 11 * var(--esh-mp-s));
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.3;
    text-transform: uppercase;
}

.esh-moto-param__nadtitulek::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--esh-mp-red);
}

.esh-moto-param .esh-moto-param__nadpis {
    margin: 0 0 16px;
    color: var(--esh-mp-ink);
    font-size: clamp(32px, 3.334vw, 64px);
    font-weight: 700;
    letter-spacing: -.047em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.esh-moto-param__uvod {
    max-width: 760px;
    margin: 0;
    color: var(--esh-mp-muted);
    font-size: calc(15px + 15 * var(--esh-mp-s));
}

.esh-moto-param__uvod strong {
    color: var(--esh-mp-ink);
    font-weight: 800;
}

.esh-moto-param__akce {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.esh-moto-tl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: calc(13px + 13 * var(--esh-mp-s, 0px));
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s;
}

.esh-moto-tl svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.esh-moto-tl--plne {
    color: #fff;
    background: var(--esh-mp-red, #c92d26);
}

.esh-moto-tl--plne:hover {
    color: #fff;
    background: #ad211c;
}

.esh-moto-tl--obrys {
    border-color: #aaa69f;
    color: var(--esh-mp-ink, #191a1c);
    background: transparent;
}

.esh-moto-tl--obrys:hover {
    background: #e8e4dc;
}

.esh-moto-param__pocet:not(:empty) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    color: #fff;
    background: var(--esh-mp-red);
    font-size: 12px;
}

.esh-moto-param__odkaz {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-block: 10px;
    border-bottom: 1px solid currentColor;
    color: var(--esh-mp-ink);
    font-size: calc(13px + 13 * var(--esh-mp-s));
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.esh-moto-param__odkaz:hover {
    color: var(--esh-mp-red);
}

.esh-moto-param__nav {
    display: flex;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0 0 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.esh-moto-param__nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--esh-mp-line);
    border-radius: 20px;
    color: var(--esh-mp-ink);
    background: var(--esh-mp-paper);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.esh-moto-param__nav a:hover {
    border-color: var(--esh-mp-ink);
}

.esh-moto-param__nav span,
.esh-moto-param__skupina-nadpis span {
    color: var(--esh-mp-muted);
    font-weight: 700;
}

.esh-moto-param__upresneni {
    margin: 0 0 30px;
    padding: 14px 18px;
    border-left: 3px solid var(--esh-mp-red);
    background: var(--esh-mp-paper);
    font-size: calc(14px + 14 * var(--esh-mp-s));
}

.esh-moto-param__upresneni strong {
    font-weight: 800;
}

.esh-moto-param__mrizka {
    column-gap: 64px;
    columns: 1;
}

.esh-moto-param__skupina {
    margin: 0 0 44px;
    break-inside: avoid;
    scroll-margin-top: 110px;
}

.esh-moto-param .esh-moto-param__skupina-nadpis {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 6px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--esh-mp-ink);
    color: var(--esh-mp-ink);
    font-size: calc(22px + 22 * var(--esh-mp-s));
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.esh-moto-param__skupina-nadpis span {
    font-size: 14px;
    letter-spacing: 0;
}

.esh-moto-param__tabulka {
    width: 100%;
    border-collapse: collapse;
}

.esh-moto-param__tabulka th,
.esh-moto-param__tabulka td {
    padding: 12px 0;
    border-bottom: 1px solid var(--esh-mp-line);
    font-size: calc(13.5px + 13.5 * var(--esh-mp-s));
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
}

.esh-moto-param__tabulka th {
    width: 44%;
    padding-right: 20px;
    color: var(--esh-mp-muted);
    font-weight: 500;
}

.esh-moto-param__tabulka td {
    color: var(--esh-mp-ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.esh-moto-param__zdroj {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    margin-left: 7px;
    padding: 0 5px;
    border-radius: 10px;
    color: var(--esh-mp-muted);
    background: var(--esh-mp-paper);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    vertical-align: 2px;
}

.esh-moto-param__zdroj:hover,
.esh-moto-param__zdroj:focus-visible {
    color: #fff;
    background: var(--esh-mp-ink);
}

.esh-moto-param__vypocet {
    display: inline-block;
    margin-left: 7px;
    padding: 1px 7px;
    border: 1px solid var(--esh-mp-line);
    border-radius: 10px;
    color: var(--esh-mp-muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    vertical-align: 2px;
    cursor: help;
}

.esh-moto-param__pata {
    margin-top: 10px;
    padding-top: 26px;
    border-top: 1px solid var(--esh-mp-line);
}

.esh-moto-param .esh-moto-param__pata-nadpis {
    margin: 0 0 12px;
    color: var(--esh-mp-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.esh-moto-param__zdroje {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--esh-mp-muted);
    font-size: 13px;
}

.esh-moto-param__zdroje li {
    margin: 0 0 4px;
    padding-left: 4px;
    scroll-margin-top: 120px;
}

.esh-moto-param__zdroje li:target {
    background: #fff4c2;
}

.esh-moto-param__zdroje a {
    color: var(--esh-mp-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.esh-moto-param__poznamka {
    max-width: 980px;
    margin: 0;
    color: var(--esh-mp-muted);
    font-size: 13px;
}

@media (min-width: 1024px) {
    .esh-moto-param__mrizka {
        columns: 2;
    }
}

@media (min-width: 1800px) {
    .esh-moto-param__mrizka {
        columns: 3;
        column-gap: 72px;
    }
}

@media (max-width: 767px) {
    .esh-moto-param {
        padding-block: 60px;
    }

    .esh-moto-param__akce {
        width: 100%;
    }

    .esh-moto-param__akce .esh-moto-tl {
        flex: 1 1 100%;
    }

    .esh-moto-param__tabulka th {
        width: 46%;
        padding-right: 12px;
    }
}

/* --------------------------------------------------------------------------
   Sdílené: skrytý text pro čtečky, oznámení (když není eshop.js)
   -------------------------------------------------------------------------- */
.esh-moto-sr {
    position: absolute !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.esh-moto-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    z-index: 1000;
    max-width: min(92vw, 460px);
    padding: 12px 18px;
    border-left: 3px solid var(--red, #c92d26);
    border-radius: 4px;
    color: #fff;
    background: var(--night, #111214);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    font-family: Manrope, "Inter", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    transform: translateX(-50%);
}

.esh-moto-toast[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .esh-moto-tl,
    .esh-moto-lista {
        transition: none;
    }
}

@media print {
    .esh-moto-lista,
    .esh-moto-toast,
    .esh-moto-param__akce,
    .esh-moto-param__nav {
        display: none !important;
    }

    .esh-moto-param__mrizka {
        columns: 1;
    }
}
