/* ==========================================================================
   SITE – doplňky k návrhu pro napojení na Umbraco:
   prvky, které návrh neřešil (varianty, strom kategorií, formátovaný text
   z editoru, stránky bez vlastního návrhu) a drobné úpravy společných částí.
   Soubory base/header/components/sections/footer/category/product/cart/pages
   jsou převzaté z návrhu beze změn.
   ========================================================================== */

[hidden] { display: none !important; }

/* Drobečková navigace – v návrhu je základ jen ve stylech katalogu, obsahové stránky ho potřebují taky */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--c-muted); }
.crumbs a:hover { color: var(--c-primary); }
.crumbs .bi { font-size: 10px; }
.crumbs span { color: var(--c-text); font-weight: 600; }

/* Na obsahových stránkách je navigace nad tmavou hlavičkou (ne v ní jako v návrhu) – uvnitř modrého pruhu
   splývala s pozadím. Je tak všude stejná šedá a ve stejné výšce jako v katalogu. */
.page-crumbs { padding-block: 24px 20px; }
.page-hero { padding-block: 48px 64px; }
.page-hero__inner { margin-top: 0; }

/* ---------- Hlavička a patička ---------- */
.nav__link.is-current { background: var(--c-dark-2); box-shadow: inset 0 -3px 0 var(--c-primary); }
.nav__link--all { cursor: pointer; }
.header__badge-link { display: block; flex-shrink: 0; }
/* v hlavičce je místo tří akcí z návrhu jen košík – hledání je o to širší, ať mezi logem a košíkem nezůstává díra */
.search { max-width: 760px; }
@media (max-width: 860px) { .search { max-width: none; } }

.footer__rte { line-height: 1.6; }
.footer__rte p { margin-bottom: 8px; }
.footer__rte a:hover,
.footer__bottom a:hover { color: #fff; text-decoration: underline; }
.footer__cookies { font: inherit; cursor: pointer; }
.footer__cookies:hover { text-decoration: none; }

/* ---------- Úvodní stránka ---------- */
.hero--single { grid-template-columns: 1fr; }
.band:not(.section) { margin-top: 0; }

/* ---------- Karta produktu ---------- */
.product__body { display: flex; flex-direction: column; flex: 1; }

/* Název a popisek mají v Umbracu různou délku (popisek bývá celý odstavec) – karty drží stejnou výšku jako v návrhu */
.product__name,
.product__desc,
.cart-item__desc { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.product__name { -webkit-line-clamp: 2; }
.product__desc,
.cart-item__desc { -webkit-line-clamp: 2; }
.catalog-grid.is-list .product__desc { -webkit-line-clamp: 3; }

/* Řádek s dostupností pod popiskem – v návrhu je definovaný jen pro výpis kategorie (category.css),
   karty jsou ale i na úvodu, detailu a ve vyhledávání */
.product__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: auto; padding-top: 6px; }
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 700; color: #1a9a4b; }
.stock--order { color: #c47a00; }
.product__img img { transition: transform .3s ease; }
.product:hover .product__img img { transform: scale(1.04); }
.price--request strong { font-family: var(--f-head); font-size: var(--fs-base); color: var(--c-primary); }
a.btn-cart { text-decoration: none; }

/* mřížka karet mimo výpis kategorie (příslušenství na detailu, výsledky hledání) */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* počet v kroužku (varianty apod.) */
.pd-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--c-primary);
  font-family: var(--f-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  vertical-align: middle;
}

.btn .pd-count { background: rgba(255, 255, 255, .2); color: #fff; }
.btn.is-added { background: #1a9a4b; }

/* ---------- Formuláře ---------- */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: #fdecec;
  color: #a3141c;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.form-status.is-info { background: #eef4ff; color: var(--c-primary); }
.form-status.is-success { background: #e8f6ee; color: #14753a; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--c-red); }
.form-card.is-check-invalid .field__error--check { display: block; }
button[disabled].btn { opacity: .6; cursor: default; }

/* ---------- Menu kategorií: odkaz na výpis všech produktů ---------- */
.mega__all { display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-size: var(--fs-sm); font-weight: 700; color: var(--c-primary); }
.mega__all:hover { text-decoration: underline; }

@media (min-width: 861px) {
  /* na desktopu pod kategoriemi, vpravo */
  .mega { display: flex; flex-direction: column; }
  .mega__all { order: 1; justify-content: flex-end; margin-top: 8px; padding: 12px 14px 4px; border-top: 1px solid var(--c-border); }
}

@media (max-width: 860px) {
  /* na mobilu první položka seznamu kategorií */
  .mega__all { padding: 12px 8px; border-bottom: 1px solid var(--c-border); }
}

/* ---------- Výpis kategorie ---------- */
a.cat-chip { color: inherit; }
.cat-chip span:not(.cat-chip__icon) { min-width: 0; line-height: 1.25; }
.cat-chip__icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius); background: #eef4ff; color: var(--c-primary); font-size: 20px; }
.cat-chip small .bi { font-size: 11px; }

/* Filtry v levém sloupci – doplňky k návrhu (category.css) */
/* Prohlížeč kreslí <legend> do horní hrany skupiny, mimo její vnitřní okraj: nadpis je pak nalepený
   na čáru nad sebou a pod ním je dvojnásobná mezera. Jako float se chová jako běžný blok uvnitř skupiny. */
.filter-group legend { float: left; padding: 0 0 6px; }
.filter-group legend + * { clear: both; }
.filter-check span { min-width: 0; line-height: 1.35; }
.filter-check.is-disabled { color: #a3acb9; cursor: default; }
.filter-check.is-disabled:hover span { color: inherit; }
.filter-check--extra { display: none; }
.filter-group.is-expanded .filter-check--extra { display: flex; }
.filter-group__more { display: inline-flex; align-items: center; margin-top: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--c-primary); }
.filter-group__more:hover { text-decoration: underline; }
/* poslední skupina bez čáry, když pod ní není „Zrušit všechny filtry“ */
.filters__form .filter-group:last-of-type:not(:has(~ .filters__reset)) { padding-bottom: 0; border-bottom: 0; }
.filters__submit { width: 100%; margin-top: 14px; }

/* Štítky zvolených filtrů jsou odkazy (návrh počítá s tlačítky) */
.active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d6e3fb;
  color: var(--c-primary);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.active-filters a:hover { background: #e3edff; }
.active-filters a.active-filters__clear { background: none; border-color: transparent; color: var(--c-muted); }
.active-filters a.active-filters__clear:hover { color: var(--c-red); }

/* Přenačítání výpisu po změně filtru */
.listing { transition: opacity .15s ease; }
.catalog.is-loading .listing { opacity: .5; pointer-events: none; }

@media (max-width: 1000px) {
  .filters__form .filter-group:last-of-type:not(:has(~ .filters__reset)) { padding-bottom: 14px; }
}

/* ---------- Hodnocení produktu ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Produkt bez hodnocení: zlaté obrysy hvězdiček místo šedých plných (pozvánka k hodnocení, ne nula) */
.rating--empty .rating__stars { background: none; color: var(--c-star); }
.rating--empty .rating__stars::before { content: "\2606\2606\2606\2606\2606"; }
.pd-meta .rating--empty .rating__count { color: var(--c-primary); font-weight: 600; }

.rate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 40px; align-items: center; }
.rate__summary { display: flex; align-items: center; gap: 16px; }
.rate__avg { min-width: 1.6em; font-family: var(--f-head); font-size: 48px; font-weight: 800; line-height: 1; text-align: center; }
.rating--lg .rating__stars { font-size: 22px; letter-spacing: 2px; }
.rate__count { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--c-muted); }

.rate__vote { padding: 18px 22px; border-radius: var(--radius-lg); background: var(--c-bg-soft); }
.rate__vote > strong { font-family: var(--f-head); }
.rate__stars { display: flex; gap: 2px; margin: 6px 0 4px -7px; }
.rate__stars button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #c9d0db; font-size: 26px; transition: color var(--t), transform var(--t); }
.rate__stars button.is-on { color: var(--c-star); }
.rate__stars button:hover { transform: scale(1.12); }
.rate__stars button:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.rate.is-sending .rate__stars { opacity: .6; pointer-events: none; }
.pd-section .rate__status { font-size: var(--fs-sm); line-height: 1.5; color: var(--c-muted); }
.pd-section .rate__status.is-success { color: #14753a; font-weight: 600; }
.pd-section .rate__status.is-error { color: var(--c-red); font-weight: 600; }

@media (max-width: 640px) {
  .rate { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Detail produktu ---------- */
.pd-gallery__thumbs { flex-wrap: wrap; }
.pd-gallery__thumbs img,
.pd-gallery__thumbs button:first-child img { object-fit: contain; padding: 4px; }
.pd-meta a:hover b { color: var(--c-primary); }
/* v návrhu ikonu přebíjí obecné pravidlo .pd-contact span (šedá, 13 px) – na modrém kruhu pak není vidět */
.pd-contact .pd-contact__icon { color: #fff; font-size: 19px; }
.pd-buy__add { text-decoration: none; }
.pd-section h2 .pd-count { margin-left: 6px; }
.pd-section__lead { margin: -6px 0 18px; color: var(--c-muted); }
.pd-section > p a { color: var(--c-primary); font-weight: 700; }
.download--link .download__icon { background: #eef4ff; color: var(--c-primary); }
.pd-inquiry__product span { min-width: 0; }
.pd-inquiry__intro > p { margin-top: 6px; font-size: var(--fs-sm); color: var(--c-muted); }

/* Produkt s krátkým obsahem: formulář není v úzkém sloupci vedle popisu (zůstala by pod ním díra),
   ale pod ním na celou šířku – vlevo úvod s produktem, vpravo pole ve dvou sloupcích */
.pd-content--stacked { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.pd-content--stacked .pd-content__main { max-width: 920px; }
.pd-content--stacked .pd-content__side { position: static; }

.pd-content--stacked .pd-inquiry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 48px;
  align-items: start;
  padding: 32px;
}

.pd-content--stacked .pd-inquiry h2 { font-size: var(--fs-xl); }
.pd-content--stacked .pd-inquiry__intro > p { font-size: var(--fs-base); }
.pd-content--stacked .pd-inquiry__product { margin: 20px 0 0; padding: 12px; }
.pd-content--stacked .pd-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.pd-content--stacked .pd-form > :is(label:has(textarea), .check, .field__error--check, .form-status) { grid-column: 1 / -1; }
.pd-content--stacked .pd-form__submit { grid-column: 1 / -1; justify-self: end; min-width: 260px; margin-top: 0; }
.pd-content--stacked .pd-inquiry__done { align-self: center; padding: 24px 8px; }

.pd-inquiry__perks { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--c-border); font-size: var(--fs-sm); color: var(--c-muted); }
.pd-inquiry__perks li { display: flex; align-items: center; gap: 10px; }
.pd-inquiry__perks .bi { color: var(--c-primary); font-size: 18px; }
.pd-inquiry__perks a { color: var(--c-primary); font-weight: 700; white-space: nowrap; }

@media (max-width: 860px) {
  .pd-content--stacked .pd-inquiry { grid-template-columns: minmax(0, 1fr); padding: 24px; }
}

@media (max-width: 640px) {
  .pd-content--stacked .pd-form { grid-template-columns: minmax(0, 1fr); }
  .pd-content--stacked .pd-form__submit { justify-self: stretch; }
}

.qty--sm { height: 40px; }
.qty--sm .qty__btn { width: 34px; }
.qty--sm .qty__input { width: 40px; }

/* Varianty produktu */
.variants { display: grid; gap: 10px; }

.variant {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: #fff;
  scroll-margin-top: 90px;
  transition: border-color var(--t), box-shadow var(--t);
}

.variant:hover { border-color: #c9d4e6; box-shadow: var(--shadow); }
.variant:target { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(8, 82, 215, .1); }

.variant__image {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
  color: #b4bfcd;
  font-size: 24px;
}

.variant__image img { width: 100%; height: 100%; object-fit: contain; }
.variant__image--color { background: var(--variant-color); border: 1px solid rgba(0, 0, 0, .1); }
.variant__swatch-code { padding: 0 4px; font-family: var(--f-head); font-size: var(--fs-xs); font-weight: 700; color: #fff; text-align: center; word-break: break-word; }
.variant__image.is-light .variant__swatch-code { color: var(--c-text); }

.variant__info { display: grid; gap: 2px; min-width: 0; }
.variant__info strong { font-family: var(--f-head); font-size: var(--fs-base); font-weight: 600; line-height: 1.3; }
.variant__info span { font-size: var(--fs-sm); color: var(--c-muted); }
.variant__color { display: inline-flex; align-items: center; gap: 6px; }
.variant__swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--variant-color); border: 1px solid rgba(0, 0, 0, .15); }
.variant__add { height: 40px; white-space: nowrap; }

@media (max-width: 640px) {
  .variant { grid-template-columns: 52px minmax(0, 1fr); gap: 10px 12px; padding: 10px; }
  .variant__image { width: 52px; height: 52px; }
  .variant .qty { grid-column: 1 / -1; justify-self: start; grid-row: 2; }
  .variant__add { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
}

/* ---------- Košík ---------- */
.cart-item__variant { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 4px; background: #eef4ff; color: var(--c-primary); font-size: var(--fs-xs); font-weight: 700; }
.cart-page .form-status { margin-top: 16px; }
.summary-card .form-status { margin: 0 0 12px; }

/* ---------- Formátovaný text z editoru (Umbraco) ---------- */
.pd-richtext,
.rte { font-size: var(--fs-base); line-height: 1.7; color: #38414d; overflow-wrap: anywhere; }

/* odstupy mezi bloky – obsah z editoru bývá zabalený v dalších divech, proto ne jen přímé potomky */
.pd-richtext :is(p, ul, ol, table, blockquote, .pd-table) + :is(p, ul, ol, table, blockquote, .pd-table, div),
.rte :is(p, ul, ol, table, blockquote) + :is(p, ul, ol, table, blockquote, div),
.pd-richtext > * + *,
.rte > * + * { margin-top: 14px; }

.pd-richtext h1, .pd-richtext h2, .pd-richtext h3, .pd-richtext h4, .pd-richtext h5,
.rte h1, .rte h2, .rte h3, .rte h4, .rte h5 {
  margin: 28px 0 0;
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
}

.pd-richtext h1, .pd-richtext h2, .rte h1, .rte h2 { font-size: var(--fs-lg); }
.pd-richtext h3, .rte h3 { font-size: var(--fs-md); }
.pd-richtext h4, .pd-richtext h5, .rte h4, .rte h5 { font-size: var(--fs-base); }
.pd-richtext > :first-child, .rte > :first-child { margin-top: 0; }
/* tučný mezititulek vložený mezi seznamy bez odstavce (texty zkopírované z jiných webů) */
.pd-richtext :is(ul, ol, p, table, .pd-table) + :is(strong, b),
.rte :is(ul, ol, p, table) + :is(strong, b) { display: block; margin-top: 18px; }
.pd-richtext :is(strong, b) + :is(ul, ol),
.rte :is(strong, b) + :is(ul, ol) { margin-top: 10px; }

.pd-richtext ul, .rte ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.pd-richtext ul li, .rte ul li { position: relative; padding-left: 26px; }
.pd-richtext ul li::before, .rte ul li::before { content: "\F26E"; position: absolute; left: 0; top: 0; font-family: "bootstrap-icons"; color: var(--c-primary); }
/* popis produktu: zelené zatržítko v kroužku jako v návrhu (.pd-checks) */
.pd-section .pd-richtext ul { gap: 10px; }
.pd-section .pd-richtext ul li::before { content: "\F26A"; color: #1a9a4b; }
.pd-richtext ol, .rte ol { display: grid; gap: 8px; padding-left: 22px; list-style: decimal; }
.pd-richtext ul ul, .rte ul ul, .pd-richtext ol ol, .rte ol ol { margin-top: 8px; }

.pd-richtext a, .rte a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.pd-richtext a:hover, .rte a:hover { color: var(--c-primary-dark); }
.pd-richtext strong, .pd-richtext b, .rte strong, .rte b { color: var(--c-text); }
.pd-richtext img, .rte img { height: auto; border-radius: var(--radius); }
.pd-richtext iframe, .rte iframe { max-width: 100%; border: 0; border-radius: var(--radius-lg); }
.pd-richtext hr, .rte hr { border: 0; border-top: 1px solid var(--c-border); margin-block: 24px; }

.pd-table { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.pd-richtext table, .rte table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.pd-richtext th, .pd-richtext td, .rte th, .rte td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.pd-richtext tr:last-child > *, .rte tr:last-child > * { border-bottom: 0; }
.pd-richtext th, .pd-richtext tr > td:first-child, .rte th { background: #fafbfd; color: var(--c-muted); font-weight: 600; }
.pd-richtext tr > td:first-child { width: 42%; }

/* na tmavém podkladu (why-band) */
.why-band .rte { color: rgba(255, 255, 255, .78); }
.why-band .rte strong, .why-band .rte h2, .why-band .rte h3 { color: #fff; }

/* ---------- Obsahové stránky ---------- */
.page-hero--plain { padding-block: 40px 44px; }

@media (max-width: 640px) {
  .page-crumbs { padding-block: 16px 14px; }
  .page-hero { padding-block: 32px 52px; }
  .page-hero--plain { padding-block: 28px 32px; }
}
.page__narrow { max-width: 920px; }
.text-center { text-align: center; }

.page-hero--plain { min-height: 0; }
.brand-card__logo img { max-width: 190px; max-height: 92px; }
.brand-card__logo strong { font-family: var(--f-head); font-size: var(--fs-md); }
.partner p:empty { display: none; }
.partner h3 { flex: 1; }
/* Karty partnerů mají z Umbraca jen logo a odkaz (návrh počítal i s názvem a popisem) – logo proto dostává
   většinu karty a obsah je na střed. Loga navíc mají kolem sebe bílý okraj přímo v obrázku. */
.partner { align-items: center; padding: 20px 24px 22px; text-align: center; }
.partner__logo { justify-content: center; width: 100%; height: 150px; margin-bottom: 10px; }
.partner__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner .link-more { margin-top: 0; }
.rent-card__price strong { font-size: 26px; }
.timeline__body .rte { color: #38414d; }
/* Položka časové osy s popiskem místo roku: ve štítku ikona, popisek nad nadpisem */
.timeline__year { padding-inline: 8px; white-space: nowrap; }
.timeline__year--icon { font-size: 18px; }
.timeline__label { display: block; margin-bottom: 4px; font-family: var(--f-head); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); }
@media (max-width: 640px) {
  .timeline__year--icon { font-size: 0; }
  .timeline__body h3:not([data-year])::before,
  .timeline__body h3[data-year=""]::before { content: none; }
}
.benefit .rte { font-size: var(--fs-sm); color: var(--c-muted); }
.prose.rte { font-size: var(--fs-md); }
.summary-rows + .summary-note { margin-top: 16px; }

/* Pracovní pozice (Kariéra) */
.jobs { display: grid; gap: 20px; }
.job { padding: 28px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.job__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.job__title { font-family: var(--f-head); font-size: var(--fs-lg); font-weight: 700; }
.job__place { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--fs-sm); color: var(--c-muted); }
.job__place .bi { color: var(--c-primary); }
.job__head .btn { flex-shrink: 0; height: 42px; }
.job__more { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.job__more h4 { margin-bottom: 10px; font-family: var(--f-head); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }

/* Dokumenty ke stažení */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.docs--stack { grid-template-columns: 1fr; }

.doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: #fff;
  transition: border-color var(--t), box-shadow var(--t);
}

.doc:hover { border-color: var(--c-primary); box-shadow: var(--shadow); }
.doc__icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--radius); background: #fdecec; color: var(--c-red); font-size: 20px; }
.doc > span:not(.doc__icon) { min-width: 0; }
.doc strong { display: block; font-family: var(--f-head); font-size: var(--fs-sm); line-height: 1.3; overflow-wrap: anywhere; }
.doc small { font-size: var(--fs-xs); color: var(--c-muted); }
.doc > .bi { margin-left: auto; color: var(--c-primary); }

/* Detail značky */
.brand-side { position: sticky; top: 20px; display: grid; gap: 16px; }
.brand-side__logo { display: grid; place-items: center; min-height: 180px; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.brand-side__logo img { max-width: 260px; max-height: 140px; width: auto; height: auto; object-fit: contain; }
.brand-side__logo strong { font-family: var(--f-head); font-size: var(--fs-xl); }
.brand-side__actions { display: grid; gap: 10px; }
.brand-side__actions .btn { height: 44px; }
.brand-side__label { font-family: var(--f-head); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }

.brand-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.brand-logos__item { display: grid; place-items: center; height: 96px; padding: 14px 18px; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: #fff; transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.brand-logos__item:hover { border-color: #c9d4e6; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.brand-logos__item img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }

/* Dlaždice s fotkou (sezóny a závody) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: box-shadow var(--t), transform var(--t); }
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.tile__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-bg-soft); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 20px 20px; }
.tile__body strong { font-family: var(--f-head); font-size: var(--fs-md); font-weight: 700; line-height: 1.3; }
.tile__text { flex: 1; font-size: var(--fs-sm); color: var(--c-muted); }
.tile .link-more { margin-top: 6px; }

/* Fotogalerie a videa */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery--videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--c-dark); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity var(--t); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--video { aspect-ratio: 3 / 2; cursor: pointer; }
.gallery__item--video img { opacity: .8; }
.gallery__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 34px; box-shadow: 0 8px 24px rgba(8, 82, 215, .45); transition: transform var(--t); }
.gallery__item--video:hover .gallery__play { transform: scale(1.08); }

/* Zvětšená fotka (stejný vzhled jako na detailu produktu) + šipky */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 40px; background: rgba(10, 12, 16, .9); }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-lg); background: #fff; }
.lightbox__close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 18px; }
.lightbox__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: #fff; font-size: 18px; transition: color var(--t); }
.lightbox__nav:hover, .lightbox__close:hover { color: var(--c-primary); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__count { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-family: var(--f-head); font-size: var(--fs-sm); }

/* Chybová stránka */
.error-page { display: grid; justify-items: center; gap: 12px; max-width: 640px; margin-inline: auto; padding: 56px 24px; text-align: center; }
.error-page > .bi { font-size: 56px; color: #c3ccd9; }
.error-page h1 { font-family: var(--f-head); font-size: 34px; font-weight: 700; letter-spacing: -.015em; }
.error-page p { font-size: var(--fs-md); color: var(--c-muted); }
.error-page .search-page__form { width: 100%; margin: 14px 0 6px; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.error-page__actions .btn { height: 44px; padding-inline: 22px; }

@media (max-width: 1100px) {
  .brand-side { position: static; }
  .brand-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .tiles, .docs, .gallery--videos { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .brand-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { padding: 20px; }
  .job__head { flex-direction: column; }
  .lightbox { padding: 16px; }
  .lightbox__nav { width: 40px; height: 40px; margin-top: -20px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .error-page h1 { font-size: 26px; }
}

/* ---------- Hledání ---------- */
.search-page__form { display: flex; gap: 10px; max-width: 640px; margin-bottom: 28px; }
.search-page__form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1.5px solid #cfd6e0; border-radius: var(--radius); font-size: var(--fs-base); }
.search-page__form input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(8, 82, 215, .1); }
.search-page__form .btn { height: 48px; padding-inline: 24px; }
.search-page__info { margin-bottom: 20px; color: var(--c-muted); }
.search-page__info b { color: var(--c-text); }
.search-page__group { margin-top: 44px; }
.search-results { display: grid; gap: 10px; }
.search-result { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: #fff; transition: border-color var(--t), box-shadow var(--t); }
.search-result:hover { border-color: var(--c-primary); box-shadow: var(--shadow); }
.search-result > .bi:first-child { flex-shrink: 0; font-size: 20px; color: var(--c-primary); }
.search-result span { min-width: 0; }
.search-result strong { display: block; font-family: var(--f-head); font-size: var(--fs-base); }
.search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--c-muted); }
.search-result > .bi:last-child { margin-left: auto; color: var(--c-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .product-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .product-grid, .product-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .search-page__form { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .product-grid .product { padding: 10px; }
  .product-grid .product__desc { display: none; }
}
