/**
 * File: plans_shop.css
 * Verze a aktuální datum: 19-11-26 v_1.03
 */

/* Široké rozvržení jen na stránkách prodeje plánů (kalkulačky mají dál .microsite-wrapper 900 px). */
.th-shop-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 32px 96px; /* systém stránek: odsazení obsahu od lišty menu (UI_CSS_PRO „Stránky webu“) */
    box-sizing: border-box;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 64px;
    text-align: left;
}

/* Na PC je vlevo pevné boční menu (55 px, calcwood_menu.css od 1200 px): obsah od něj odsadit. */
@media (min-width: 1200px) {
    .th-shop-wrapper { padding-left: 87px; padding-right: 48px; }
}

.th-shop-wrapper a { color: #f9c343; }
.th-shop-wrapper a:hover { color: #ffd56b; }

.th-shop-admin {
    margin: 0;
    padding: 8px 14px;
    border: 1px dashed rgba(249, 195, 67, 0.6);
    border-radius: 10px;
    color: #f9c343;
    font-size: 13px;
    align-self: flex-start;
}

.th-shop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #f9c343;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.th-shop-kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.th-shop-intro { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.th-shop-h1 { margin: 0; font-size: 46px; line-height: 1.1; font-weight: 900; color: #fff; }
.th-shop-lead { margin: 0; font-size: 18px; line-height: 1.6; color: #ccc; }
.th-shop-h2 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 900; color: #fff; }
.th-shop-text { margin: 0; font-size: 17px; line-height: 1.7; color: #ccc; }
.th-shop-muted { margin: 0; font-size: 13px; line-height: 1.55; color: #999; }
.th-shop-section { display: flex; flex-direction: column; gap: 20px; }
.th-shop-narrow { max-width: 860px; }

/* Štítky karty plánu: shared/calcwood_plan_card.css (stejné v katalogu, na stránce plánu i pod kalkulačkami). */

/* Tlačítka */
.th-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 10px;
    border: 1px solid #444;
    background: transparent;
    color: #fff !important;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}
.th-shop-btn:hover { border-color: #777; }
.th-shop-btn-gold { background: #f9c343; border-color: #f9c343; color: #111 !important; font-weight: 900; }
.th-shop-btn-gold:hover { background: #ffd56b; border-color: #ffd56b; }
.th-shop-btn-big { min-height: 56px; font-size: 18px; width: 100%; }
.th-shop-btn[disabled] { background: #3a3324; border-color: #3a3324; color: #9a8a5f !important; cursor: not-allowed; }

/* Seznam s fajfkou */
.th-shop-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #ddd; }
.th-shop-checks li { display: flex; gap: 10px; line-height: 1.5; }
.th-shop-checks li::before { content: "✓"; color: #f9c343; font-weight: 900; flex: 0 0 auto; }

/* Katalog: velká karta plánu */
.th-shop-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
}
.th-shop-feature-media { position: relative; display: block; background: #1a1410; min-height: 360px; }
.th-shop-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.th-shop-feature-media .th-shop-badge-new { position: absolute; left: 20px; top: 20px; }
.th-shop-feature-body { padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.th-shop-feature-title { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 900; }
.th-shop-feature-title a { color: #fff; text-decoration: none; }
.th-shop-buyrow { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.th-shop-price-box { display: flex; flex-direction: column; gap: 2px; }
.th-shop-price { font-size: 30px; font-weight: 900; color: #fff; }
/* Cena v akci (štítek, přeškrtnutá cena) má styly jen v shared/calcwood_plans_bf.css; tady jen zarovnání „jednorázová platba“ dolů. */
.th-shop-price-row .th-plan-price + .th-shop-muted { align-self: flex-end; padding-bottom: 6px; }
.th-shop-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }

/* Dlaždice */
.th-shop-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.th-shop-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* Dvojice obrázků s popiskem (konstrukce v řezu): vedle sebe, na telefonu pod sebou */
.th-shop-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.th-shop-duo-item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.th-shop-duo-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 1px solid #222; background: #0c0c0c; }
.th-shop-duo-item figcaption { font-size: 13px; line-height: 1.45; color: #999; }
/* Body ve dvou sloupcích pod obrázky (na telefonu jeden sloupec) */
.th-shop-checks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 1100px; }

/* Pasuje na tvoji pilu: malé karty v řadě, na telefonu posuvný řádek (kompaktní, ne přeplácané) */
.th-shop-compat { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.th-shop-compat-item { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border: 1px solid #222; border-radius: 14px; overflow: hidden; background: #111; }
.th-shop-compat-item img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; margin-bottom: 8px; background: #0c0c0c; }
.th-shop-compat-item strong { padding: 0 14px; font-size: 15px; line-height: 1.3; color: #fff; }
.th-shop-compat-item span { padding: 0 14px; font-size: 13px; line-height: 1.45; color: #999; }

/* Doporučené příslušenství: produkt bez pozadí na tmavé ploše s jemnou zlatou září, text vedle (na telefonu pod sebou) */
.th-shop-gear { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1100px; padding: 28px; border: 1px solid #222; border-radius: 20px; background: #111; box-sizing: border-box; }
.th-shop-gear-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 16px; background: radial-gradient(circle at 50% 45%, rgba(249, 195, 67, 0.16), rgba(249, 195, 67, 0) 62%), #0b0b0b; }
.th-shop-gear-media img { display: block; width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6)); transition: transform 0.3s ease; }
.th-shop-gear-media:hover img { transform: scale(1.03); }
.th-shop-gear-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.th-shop-gear-name { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 900; color: #fff; }
.th-shop-gear-size { font-size: 15px; font-weight: 700; color: #f9c343; }
.th-shop-gear[hidden] { display: none; }
/* Přepínač karet příslušenství: segmentový jako volby v kalkulačkách, na telefonu přes celou šířku */
.th-shop-gear-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border: 1px solid #2a2a2a; border-radius: 12px; background: #0d0d0d; max-width: 100%; box-sizing: border-box; }
.th-shop-gear-tabs[hidden] { display: none; }
.th-shop-gear-tab { min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: #aaa; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.th-shop-gear-tab:hover { color: #fff; }
.th-shop-gear-tab[aria-selected="true"] { background: #f9c343; color: #111; }
.th-shop-gear-tab:focus-visible { outline: 2px solid #f9c343; outline-offset: 2px; }
.th-shop-gear .th-shop-actions { margin-left: 0; margin-top: 6px; }

/* Dvě verze: karty vedle sebe k porovnání (stejná kamera = oko vidí rozdíl), na telefonu pod sebou */
.th-shop-versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.th-shop-version { display: flex; flex-direction: column; border: 1px solid #222; border-radius: 16px; overflow: hidden; background: #111; }
.th-shop-version-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0c0c0c; }
.th-shop-version-body { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 28px; }
.th-shop-version-title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 900; color: #fff; }
.th-shop-version-text { margin: 0; font-size: 15px; line-height: 1.65; color: #bbb; }

.th-shop-tile {
    background: #121212;
    border: 1px solid #222;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.th-shop-tile strong { font-size: 16px; color: #fff; }
.th-shop-tile span { font-size: 14px; line-height: 1.55; color: #bbb; }

/* Pruh výhod: jeden řádek, ikona vlevo u textu, položky oddělené jemnou linkou (bez krabiček). */
.th-shop-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}
.th-shop-trust-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.th-shop-trust-item { display: flex; align-items: flex-start; gap: 16px; padding: 26px 28px; }
.th-shop-trust-item + .th-shop-trust-item { border-left: 1px solid #222; }
.th-shop-trust-item:first-child { padding-left: 0; }
.th-shop-trust-item div { display: flex; flex-direction: column; gap: 4px; }
.th-shop-trust-item strong { color: #fff; font-size: 16px; }
.th-shop-trust-item span { color: #aaa; font-size: 14px; line-height: 1.55; }
.th-shop-trust .th-shop-icon { flex: 0 0 auto; margin-top: 1px; color: #f9c343; }
.th-shop-icon { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
    .th-shop-versions { grid-template-columns: 1fr; gap: 18px; }
    .th-shop-duo, .th-shop-checks-grid { grid-template-columns: 1fr; gap: 14px; }
    .th-shop-compat { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; }
    .th-shop-compat-item { flex: 0 0 62%; scroll-snap-align: start; }
    .th-shop-gear { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px; }
    .th-shop-gear-media { max-width: 240px; width: 100%; justify-self: center; }
    .th-shop-gear-name { font-size: 24px; }
    .th-shop-gear-tabs { display: flex; width: 100%; }
    .th-shop-gear-tab { flex: 1 1 0; padding: 6px 8px; font-size: 13px; line-height: 1.25; }
    .th-shop-version-body { padding: 18px 18px 22px; }
    .th-shop-trust, .th-shop-trust-4 { grid-template-columns: minmax(0, 1fr); }
    .th-shop-trust-item { padding: 20px 0; }
    .th-shop-trust-item + .th-shop-trust-item { border-left: 0; border-top: 1px solid #222; }
}

/* Celá karta plánu je klikací (odkaz v nadpisu se roztáhne přes kartu), tlačítko a obrázek zůstávají nad ním. */
.th-shop-card-link { position: relative; transition: border-color 0.2s, transform 0.2s; }
.th-shop-card-link:hover { border-color: rgba(249, 195, 67, 0.45); }
.th-shop-card-link .th-shop-feature-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.th-shop-card-link .th-shop-card-cta, .th-shop-card-link .th-shop-feature-media { position: relative; z-index: 2; }
.th-shop-card-link .th-shop-feature-media img { transition: transform 0.5s ease; }
.th-shop-card-link:hover .th-shop-feature-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
    .th-shop-card-link .th-shop-feature-media img { transition: none; }
}

.th-shop-upcoming { border: 1px dashed #3a3a3a; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 8px; }

/* Stránka plánu */
.th-shop-crumb { font-size: 14px; color: #999; }
.th-shop-crumb a { color: #999 !important; }
.th-shop-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr); gap: 40px; align-items: start; margin-top: 16px; }
.th-shop-gallery { display: flex; flex-direction: column; gap: 14px; }
/* Galerie na stránce: posuvný karusel (prst = scroll-snap, myš = tažení v plans_shop.js), šipky, tečky, náhledy. */
.th-shop-hero { position: relative; border-radius: 20px; overflow: hidden; background: #1a1410; aspect-ratio: 16 / 9; }
.th-shop-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    cursor: grab;
}
.th-shop-carousel::-webkit-scrollbar { display: none; }
.th-shop-carousel.th-car-dragging { cursor: grabbing; scroll-snap-type: none; }
.th-shop-carousel.th-car-dragging .th-shop-slide { pointer-events: none; }
.th-shop-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: block; background: #111; }
.th-shop-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.th-shop-slide + .th-shop-slide img { object-fit: contain; }

.th-car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 10, 10, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}
.th-car-btn svg, .th-lb-btn svg, .th-car-zoom svg {
    width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.th-car-prev { left: 14px; }
.th-car-next { right: 14px; }
.th-shop-hero:hover .th-car-btn, .th-car-btn:focus-visible { opacity: 1; }
.th-car-btn:hover { background: rgba(10, 10, 10, 0.8); }
.th-car-btn[disabled] { opacity: 0 !important; pointer-events: none; }
.th-car-zoom {
    position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(10, 10, 10, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.th-car-zoom svg { width: 18px; height: 18px; }
/* Počítadlo „3 / 14“ v rohu galerie (místo teček, i pro hodně fotek) */
.th-car-count {
    position: absolute; left: 14px; bottom: 14px; padding: 5px 12px; border-radius: 999px; font-size: 13px; color: #fff;
    background: rgba(10, 10, 10, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-variant-numeric: tabular-nums; pointer-events: none;
}

/* Náhledy v jednom řádku, posun do strany (10–15 fotek) */
.th-shop-left { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.th-shop-thumbs {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.th-shop-thumbs::-webkit-scrollbar { display: none; }
.th-shop-thumb {
    position: relative; flex: 0 0 132px; display: block; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
    background: #111; aspect-ratio: 16 / 9; cursor: pointer; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s; scroll-snap-align: start;
}
.th-shop-thumb:hover { opacity: 0.9; }
.th-shop-thumb[aria-current="true"] { opacity: 1; border-color: #f9c343; }
.th-shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-shop-thumb-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.25);
}
.th-shop-thumb-play svg { width: 26px; height: 26px; fill: #f9c343; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }

/* Video jako položka galerie */
.th-shop-slide-video { position: relative; }
.th-shop-video.th-shop-video-slide { border: 0; border-radius: 0; height: 100%; aspect-ratio: auto; max-width: none; }

/* Klíčová čísla pod galerií */
.th-shop-facts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
    border: 1px solid #222; border-radius: 16px; overflow: hidden; background: #111;
}
.th-shop-fact { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-right: 1px solid #222; border-bottom: 1px solid #222; }
.th-shop-fact:nth-child(3n) { border-right: 0; }
.th-shop-fact:nth-last-child(-n+3) { border-bottom: 0; }
.th-shop-fact strong { color: #fff; font-size: 24px; font-weight: 900; line-height: 1.15; }
.th-shop-fact span { color: #999; font-size: 13px; }

/* Nadpis sekce s ovládáním vpravo (jednotky) */
.th-shop-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.th-shop-head-row > div:first-child { display: flex; flex-direction: column; gap: 14px; }

/* Hodnocení */
.th-shop-review { margin: 0; }
.th-shop-review blockquote { margin: 0; color: #ddd; font-size: 15px; line-height: 1.6; }
.th-shop-review figcaption { color: #999; font-size: 13px; }
.th-shop-review figcaption strong { color: #fff; }

/* Závěrečná lišta s nákupem */
.th-shop-cta {
    display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 28px; align-items: center;
    background: #161616; border: 1px solid #2a2a2a; border-radius: 20px; padding: 20px;
}
.th-shop-cta img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.th-shop-cta-text { display: flex; flex-direction: column; gap: 8px; }
.th-shop-cta-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding-right: 12px; }

.th-shop-sheets-link { display: block; cursor: zoom-in; }

/* Video z YouTube (náhled, přehrávač až po kliknutí) */
.th-shop-video {
    position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000;
    border: 1px solid #222;
}
.th-shop-video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s, opacity 0.4s; opacity: 0.85; }
.th-shop-video:hover img { transform: scale(1.02); opacity: 1; }
.th-shop-video-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%;
    background: #f9c343; color: #111; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); transition: transform 0.2s;
}
.th-shop-video:hover .th-shop-video-play { transform: translate(-50%, -50%) scale(1.08); }
.th-shop-video-play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
/* Poznámka k videu (jazyk, titulky, starší verze): klidný text s jemnou žlutou linkou, ne varování. Šířka jako text stránky (.th-shop-narrow). */
.th-shop-video-older {
    margin: 0; max-width: 860px; padding: 2px 0 2px 14px; border-left: 2px solid rgba(249, 195, 67, 0.7);
    color: #bbb; font-size: 14px; line-height: 1.6;
}
.th-shop-video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.th-shop-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Prohlížeč přes celou obrazovku (plans_shop.js): rozmazané pozadí, tažení, náhledy, přiblížení */
html.th-lb-open, html.th-lb-open body { overflow: hidden; }
/* Plovoucí menu webu (hamburger má vyšší z-index) nad prohlížečem nesmí zůstat, jinak kryje Zavřít. */
html.th-lb-open .th-mobile-menu-wrapper, html.th-lb-open .th-desktop-menu { display: none !important; }
.th-lb {
    --th-lb-pull: 0;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(8, 8, 8, calc(0.82 - var(--th-lb-pull) * 0.5));
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    touch-action: none;
    user-select: none;
}
.th-lb.th-lb-show { opacity: 1; visibility: visible; }
.th-lb-stage { position: absolute; inset: 0 0 96px; overflow: hidden; cursor: grab; }
.th-lb-zoomed .th-lb-stage { cursor: move; }
.th-lb-track { display: flex; height: 100%; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
.th-lb-track.th-lb-dragging { transition: none; }
.th-lb-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 88px 16px; box-sizing: border-box; }
.th-lb-img {
    max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform-origin: center; transition: transform 0.3s ease; cursor: zoom-in; -webkit-user-drag: none;
}
.th-lb-zoomed .th-lb-img { cursor: grab; }
.th-lb-show .th-lb-slide .th-lb-img { animation: th-lb-in 0.3s ease; }
@keyframes th-lb-in { from { transform: scale(0.96); opacity: 0.4; } to { transform: none; opacity: 1; } }
.th-lb-btn {
    position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(30, 30, 30, 0.6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background 0.2s;
}
.th-lb-btn:hover { background: rgba(60, 60, 60, 0.8); }
.th-lb-btn[disabled] { opacity: 0.25; pointer-events: none; }
.th-lb-close { top: 16px; right: 16px; }
.th-lb-prev { left: 20px; top: calc(50% - 72px); }
.th-lb-next { right: 20px; top: calc(50% - 72px); }
.th-lb-count { position: absolute; top: 28px; left: 24px; color: #ccc; font-size: 14px; font-variant-numeric: tabular-nums; }
.th-lb-strip { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 10px; padding: 0 16px; }
.th-lb-thumb {
    width: 96px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #111;
    cursor: pointer; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s;
}
.th-lb-thumb:hover { opacity: 0.9; }
.th-lb-thumb[aria-current="true"] { opacity: 1; border-color: #f9c343; }
.th-lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-lb-zoomed .th-lb-prev, .th-lb-zoomed .th-lb-next, .th-lb-zoomed .th-lb-strip { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .th-lb, .th-lb-track, .th-lb-img, .th-shop-video img { transition: none; }
    .th-lb-show .th-lb-slide .th-lb-img { animation: none; }
}

@media (max-width: 900px) {
    .th-car-btn, .th-car-zoom { display: none; }
    .th-shop-thumb { flex-basis: 96px; }
    /* Telefon: fotky → nákup → čísla (nákup hned pod galerií) */
    .th-shop-left { display: contents; }
    .th-shop-gallery { order: 1; }
    .th-shop-buy { order: 2; }
    .th-shop-facts { order: 3; }
    .th-shop-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-shop-fact:nth-child(3n) { border-right: 1px solid #222; }
    .th-shop-fact:nth-child(2n) { border-right: 0; }
    .th-shop-fact:nth-last-child(-n+3) { border-bottom: 1px solid #222; }
    .th-shop-fact:nth-last-child(-n+2) { border-bottom: 0; }
    .th-shop-fact strong { font-size: 20px; }
    .th-shop-cta { grid-template-columns: minmax(0, 1fr); }
    .th-shop-cta img { display: none; }
    .th-shop-cta-buy { align-items: stretch; padding-right: 0; }
    .th-lb-stage { inset: 0 0 80px; }
    .th-lb-slide { padding: 56px 8px 8px; }
    .th-lb-prev, .th-lb-next { display: none; }
    .th-lb-thumb { width: 64px; height: 42px; }
}

.th-shop-buy {
    position: sticky;
    top: 24px;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.th-shop-buy-title { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 900; color: #fff; }
.th-shop-get { border-top: 1px solid #2a2a2a; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.th-shop-get-label { font-size: 13px; color: #999; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.th-shop-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.th-shop-price-row .th-shop-price { font-size: 36px; }
.th-shop-consents { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #ccc; line-height: 1.5; }
.th-shop-consents label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
/* Zatržítka jsou systémová .th-checkbox (shared/calc_theme.css, UI_CSS_PRO „Zaškrtávací pole“), tady jen zarovnání s textem. */
.th-shop-consents .th-checkbox { margin-top: 3px; flex: 0 0 auto; }
.th-shop-note { margin: 0; font-size: 14px; color: #f9c343; }
.th-shop-buyform { display: flex; flex-direction: column; gap: 18px; }
.th-shop-btn-busy { opacity: 0.7; cursor: progress; }
.th-shop-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(220, 53, 69, 0.15); color: #ff8a95; font-size: 14px; }
.th-shop-paid {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px;
    background: rgba(25, 135, 84, 0.15); border: 1px solid rgba(25, 135, 84, 0.5); color: #b8e6cc; font-size: 14px; line-height: 1.5;
}
.th-shop-paid strong { color: #fff; font-size: 16px; }
.th-shop-paid-dl { margin-top: 8px; min-height: 42px; font-size: 14px; align-self: flex-start; }
.th-shop-center { text-align: center; }

.th-shop-sheets { width: 100%; border-radius: 20px; display: block; border: 1px solid #222; }

.th-shop-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #222; border-radius: 14px; overflow: hidden; }
.th-shop-spec { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #1f1f1f; background: #111; font-size: 15px; }
.th-shop-spec span { color: #bbb; }
.th-shop-spec strong { color: #fff; text-align: right; }

.th-shop-faq { background: #121212; border: 1px solid #222; border-radius: 12px; padding: 16px 20px; }
.th-shop-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; color: #fff; }
.th-shop-faq p { margin: 12px 0 0; color: #bbb; line-height: 1.6; }

/* Lišta nákupu dole na telefonu */
.th-shop-mbar { display: none; }

@media (max-width: 1100px) {
    .th-shop-top { grid-template-columns: minmax(0, 1fr); }
    .th-shop-buy { position: static; }
    .th-shop-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-shop-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .th-shop-feature { grid-template-columns: minmax(0, 1fr); }
    .th-shop-feature-media { min-height: 0; aspect-ratio: 16 / 9; }
    .th-shop-wrapper { padding: 24px 16px 96px; gap: 48px; }
    .th-shop-h1 { font-size: 32px; }
    .th-shop-feature-body, .th-shop-buy { padding: 24px; }
    .th-shop-mbar {
        display: flex;
        position: sticky;
        bottom: 0;
        z-index: 50;
        background: rgba(15, 15, 15, 0.98);
        border-top: 1px solid #2a2a2a;
        padding: 12px 16px;
        align-items: center;
        gap: 12px;
        margin: 0 -16px -96px;
    }
    .th-shop-mbar strong { font-size: 20px; flex-grow: 1; color: #fff; }
}

@media (max-width: 560px) {
    .th-shop-grid4, .th-shop-grid3, .th-shop-specs { grid-template-columns: minmax(0, 1fr); }
    .th-shop-actions { margin-left: 0; width: 100%; }
    .th-shop-actions .th-shop-btn { flex: 1 1 auto; }
}
