/* ==========================================================================
   Moravskoslezské drátovny a.s. – e-shop
   Hlavní styly (navazují na Bootstrap 5.3.3)
   --------------------------------------------------------------------------
   1. Proměnné          7. Kategorie / výpis produktů
   2. Globální          8. Detail produktu
   3. Hlavička + menu   9. Košík a objednávka
   4. Drobečky          10. Formuláře, účet
   5. Úvodní strana     11. Textové stránky
   6. Sidebar, widgety  12. Patička, responzivita
   ========================================================================== */

/* ── 1. PROMĚNNÉ ─────────────────────────────────────────────────────────── */
:root {
  --bar-h:        50px;      /* výška akčního řádku a lišty e-shopu */
  --green-dark:   #1B4A1B;
  --green-mid:    #2C6E2C;
  --green-light:  #4A9040;
  --green-pale:   #EBF4EB;
  --orange:       #D95F02;
  --orange-hover: #B84F02;
  --gold:         #C8940A;
  --red:          #C62828;   /* výprodej (menu) – kontrast na --red-pale 5,6 : 1 */
  --red-pale:     #FDECEA;
  --text:         #1A1A1A;
  --text-muted:   #5A6670;
  --border:       #D4E0D4;
  --bg-light:     #F5F8F5;
  --white:        #FFFFFF;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', Consolas, monospace;
  --shadow-sm:    0 1px 4px rgba(27,74,27,.12);
  --shadow-md:    0 4px 16px rgba(27,74,27,.14);
  --shadow-lg:    0 8px 32px rgba(27,74,27,.16);

  /* napojení Bootstrapu na barvy webu */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-link-color-rgb: 44,110,44;
  --bs-link-hover-color-rgb: 74,144,64;
}

/* ── 2. GLOBÁLNÍ ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg-light); }
a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-light); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Skip link (přístupnost) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--orange); color: #fff; padding: 8px 16px; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* Tlačítka */
.btn-buy {
  background: var(--orange); color: white; border: none;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  padding: 7px 16px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; transition: all .18s; cursor: pointer;
}
.btn-buy:hover { background: var(--orange-hover); color: white; transform: translateY(-1px); }
.btn-buy:disabled { opacity: .5; transform: none; cursor: not-allowed; }
.btn-buy.btn-lg { font-size: 1.1rem; padding: 12px 28px; }
.btn-detail {
  background: transparent; color: var(--green-mid);
  border: 1px solid var(--border); font-size: .8rem;
  padding: 6px 12px; border-radius: 4px;
  transition: all .15s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-detail:hover { border-color: var(--green-mid); background: var(--green-pale); color: var(--green-dark); }
.btn-green {
  background: var(--green-dark); color: #fff; border: none;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: 9px 20px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 6px; transition: background .2s;
}
.btn-green:hover { background: var(--green-mid); color: #fff; }

/* Štítky */
.badge-sale, .badge-preorder, .badge-stock, .badge-new {
  font-family: var(--font-display); font-weight: 700;
  font-size: .7rem; padding: 1px 6px; border-radius: 2px; display: inline-block;
}
.badge-sale     { background: #FFF5EE; color: var(--orange); border: 1px solid #FAC89A; }
.badge-preorder { background: #F0F4FF; color: #3B5BDB; border: 1px solid #BED0FF; }
.badge-stock    { background: var(--green-pale); color: var(--green-dark); border: 1px solid var(--border); display: inline-flex; align-items: center; white-space: nowrap; }
.badge-new      { background: var(--gold); color: #fff; border: 1px solid var(--gold); }
.badge-surface  { background: var(--green-pale); color: var(--green-dark); font-size: .75rem; font-weight: 500; }

.notif-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--orange); border-radius: 50%; margin-left: 3px;
}

/* Animace */
.fade-in { animation: fadeInUp .4s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── 3. HLAVIČKA + MENU ──────────────────────────────────────────────────── */
.top-bar {
  background: var(--green-dark);
  padding: 6px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.75);
}
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: #fff; }
.top-bar .sep { opacity: .35; margin: 0 8px; }
/* tablet (768–991 px): menší písmo a mezery, aby se lišta vešla na jeden řádek */
@media (max-width: 991.98px) { .top-bar { font-size: .72rem; } .top-bar .sep { margin: 0 5px; } }

.site-header {
  background: var(--white);
  padding: 0;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-lg);
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { width: 250px; height: auto; display: block; }

/* Vyhledávání */
.header-search { flex: 1; max-width: 460px; }
.header-search .form-control {
  border: 1px solid var(--border); border-right: none;
  font-size: .9rem; padding: 8px 12px;
}
.header-search .form-control:focus { box-shadow: none; border-color: var(--green-light); }
.header-search .btn {
  background: var(--green-dark); color: #fff; border: none; padding: 0 16px;
}
.header-search .btn:hover { background: var(--green-mid); }

/* Našeptávač vyhledávání (assets/js/suggest.js, data z /hledani-nahled.asp) */
.suggest-host { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1060; margin: 4px 0 0; padding: 4px;
  list-style: none; background: #fff; color: var(--text); text-align: left;
  border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg);
  overflow-y: auto; overscroll-behavior: contain; min-width: min(100%, 420px);    /* max. výšku dopočítá suggest.js podle místa v okně */
}
.suggest[hidden] { display: none; }
.suggest li { margin: 0; }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 7px 9px; border-radius: 6px; color: var(--text); text-decoration: none; }
.suggest__item img, .suggest__noimg {
  flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: #fff;
}
.suggest__noimg { display: flex; align-items: center; justify-content: center; color: var(--green-mid); background: var(--green-pale); font-size: 1.25rem; }
.suggest__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.suggest__name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.suggest__sub { font-size: .78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__item--kategorie .suggest__sub { color: var(--green-mid); font-weight: 600; }
.suggest__price { font-weight: 700; white-space: nowrap; font-size: .88rem; color: var(--orange); }
.suggest li.is-active > .suggest__item, .suggest__item:hover { background: var(--green-pale); color: var(--green-dark); }
.suggest li.is-active > .suggest__more, .suggest__more:hover { background: var(--green-dark); color: #fff; }
.suggest__more { display: block; text-align: center; padding: 10px; margin-top: 4px; border-radius: 6px; font-weight: 600; text-decoration: none; color: var(--green-dark); background: var(--green-pale); }
.suggest__none { padding: 12px 14px; color: var(--text-muted); }
/* produkt, na který vede odkaz s kotvou (#k123 – initAnchorScroll v main.js): krátké zvýraznění */
@keyframes target-flash { 0%, 75% { background-color: #FFF1C2; } 100% { background-color: transparent; } }
tr.is-target > td, .product-card.is-target, .product-group.is-target > .product-group-header { animation: target-flash 5s ease-out; }
.product-card.is-target { box-shadow: 0 0 0 3px var(--gold); }
@media (prefers-reduced-motion: reduce) { tr.is-target > td, .product-card.is-target, .product-group.is-target > .product-group-header { animation: none; background-color: #FFF1C2; } }

/* stejné náhledy ve výsledcích hledání (hledani.asp) */
.search-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.search-prod-img { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.search-prod-noimg { display: flex; align-items: center; justify-content: center; color: var(--green-mid); background: var(--green-pale); font-size: 1.25rem; }
.search-prod-text { min-width: 0; }
@media (max-width: 575.98px) { .suggest__price { display: none; } }

.header-ctas { display: flex; align-items: center; gap: 12px; }
.btn-cart {
  background: var(--orange); color: white; border: none;
  padding: 8px 16px; border-radius: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s;
}
.btn-cart:hover { background: var(--orange-hover); color: white; }
.cart-badge {
  background: white; color: var(--green-dark);
  border-radius: 50%; width: 18px; height: 18px;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.btn-login {
  background: transparent; border: 1px solid rgba(97,97,97,.7);
  color: rgba(97,97,97,.85); padding: 8px 14px;
  border-radius: 4px; font-size: .82rem;
  display: flex; align-items: center; gap: 5px;
  transition: all .2s;
}
.btn-login:hover { border-color: rgb(97,97,97); color: rgb(60,60,60); }

/* Hlavní menu */
.main-nav {
  background: #1F1F1F;
}
.header-main { padding-top: 14px; padding-bottom: 14px; }
.main-nav .nav-link {
  color: rgba(255,255,255,.82);
  font-family: var(--font-display);
  font-weight: 600; font-size: .95rem;
  letter-spacing: .03em;
  padding: 10px 18px;
  transition: all .2s;
  border-bottom: 2px solid transparent;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: white;
  border-bottom-color: var(--orange);
  background: rgba(255,255,255,.05);
}
.main-nav .dropdown-menu {
  background: var(--green-dark);
  border: 1px solid rgba(255,255,255,.12);
  border-top: 2px solid var(--orange);
  border-radius: 0 0 6px 6px;
  margin-top: 0;
}
.main-nav .dropdown-item { color: rgba(255,255,255,.8); font-size: .88rem; padding: 8px 18px; }
.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus { background: rgba(255,255,255,.1); color: white; }
.main-nav .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.3); font-size: 1rem; padding: 6px 10px; margin: 6px 0; }

/* Lišta kategorií e-shopu */
.shop-bar {
  background: var(--green-dark);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.shop-bar::-webkit-scrollbar { display: none; }
.shop-bar ul { list-style: none; margin: 0; padding: 0; }
.shop-bar-list { display: flex; }
.shop-bar .nav-link {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;              /* výška řádku = akční řádek (--bar-h), písmo úměrně větší */
  letter-spacing: .06em; text-transform: uppercase;
  padding: 0 22px; height: var(--bar-h);
  display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.shop-bar .nav-link:hover,
.shop-bar .nav-link.active { color: white; border-bottom-color: var(--gold); background: var(--green-mid); }

/* Mobil a tablet: tlačítko „Nabídka produktů“ + rozbalovací struktura kategorií */
.shop-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 0; border: 0; background: none;
  color: #fff; text-align: left; font-size: .9rem; white-space: normal;
}
.shop-toggle strong { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.shop-toggle-sub { opacity: .85; }
.shop-toggle-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-toggle-icon { font-size: 1.35rem; line-height: 1; }
.shop-toggle-chevron { transition: transform .2s; }
.shop-toggle:not(.collapsed) .shop-toggle-chevron { transform: rotate(180deg); }
.shop-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.shop-all {
  white-space: normal; max-height: 65vh; overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid rgba(255,255,255,.15); padding: 4px 0 10px !important;
}
.shop-all summary, .shop-all .shop-all-link {
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .05em; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.shop-all summary::-webkit-details-marker { display: none; }
.shop-all summary::after { content: "\f282"; font-family: "bootstrap-icons"; font-size: .8rem; transition: transform .2s; }
.shop-all details[open] > summary::after { transform: rotate(180deg); }
.shop-all details ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding: 4px 0 8px !important; }
.shop-all details a { display: block; color: rgba(255,255,255,.9); font-size: .88rem; padding: 7px 10px; border-radius: 4px; }
.shop-all details a:hover, .shop-all details a:focus { background: rgba(0,0,0,.15); color: #fff; }
.shop-all details a.active { background: rgba(0,0,0,.2); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }

/* ── 4. DROBEČKOVÁ NAVIGACE ─────────────────────────────────────────────── */
.breadcrumb-bar { background: white; border-bottom: 1px solid var(--border); padding: 8px 0; }
.breadcrumb { margin: 0; font-size: .82rem; }
.breadcrumb-item a { color: var(--green-mid); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: #9aa79a; }

/* ── 5. ÚVODNÍ STRANA ───────────────────────────────────────────────────── */
.promo-banner { background: linear-gradient(90deg, var(--orange) 0%, #F08030 100%); padding: 6px 0; min-height: var(--bar-h); display: flex; align-items: center; }
.promo-banner > .container { width: 100%; }
.promo-banner .text {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: white; letter-spacing: .02em;
}
.promo-banner .cta {
  background: white; color: var(--orange);
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  padding: 5px 16px; border-radius: 3px; white-space: nowrap;
  transition: all .2s;
}
.promo-banner .cta:hover { background: var(--green-dark); color: white; }

.hero {
  background: var(--green-pale);
  border-bottom: 1px solid var(--border);
  min-height: 420px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--orange); color: white;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 2px;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--green-dark); line-height: 1.05;
  margin-bottom: 12px;
}
.hero h1 em { color: var(--orange-hover); font-style: normal; }   /* kontrast 5:1 na světle zeleném podkladu */
.hero p { color: var(--text); font-size: 1.05rem; max-width: 520px; margin-bottom: 24px; }
.hero .hero-badge { color: #fff; margin-bottom: 14px; }   /* štítek je také <p> – nesmí převzít barvu textu */
.btn-hero-primary {
  background: var(--orange); color: white; border: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  padding: 12px 28px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-hero-primary:hover { background: var(--orange-hover); color: white; transform: translateY(-1px); }
.btn-hero-secondary {
  background: #fff; color: var(--green-dark);
  border: 1px solid var(--green-mid);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.btn-hero-secondary:hover { border-color: var(--green-dark); background: var(--green-dark); color: #fff; }

/* USP lišta */
.usp-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.usp-bar ul { list-style: none; margin: 0; padding: 0; }
.usp-item { padding: 16px 20px; border-right: 1px solid var(--border); display: flex; align-items: center; gap: 12px; height: 100%; }
.usp-bar li:last-child .usp-item { border-right: none; }
.usp-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-pale); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--green-mid);
}
.usp-text { font-size: .82rem; line-height: 1.3; }
.usp-text strong { display: block; font-size: .9rem; color: var(--text); }

/* Nadpisy sekcí */
.sec-header { margin-bottom: 24px; }
.sec-header .eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.sec-header .eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--border); max-width: 120px; }
.sec-header h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green-dark); margin: 0;
}

/* Karty kategorií */
.cat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all .22s ease;
  height: 100%;
  display: flex; flex-direction: column;
  color: var(--text);
}
.cat-card:hover { border-color: var(--green-light); box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--text); }
.cat-card-img { height: 150px; background: var(--green-pale); overflow: hidden; position: relative; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-img-label {
  position: absolute; bottom: 8px; right: 8px;
  background: var(--orange); color: white;
  font-family: var(--font-display); font-weight: 700; font-size: .7rem;
  padding: 2px 8px; border-radius: 2px; letter-spacing: .05em;
}
.cat-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.cat-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--green-dark); margin-bottom: 4px; }
.cat-card-desc { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }
.cat-card-link { color: var(--orange); font-weight: 600; font-size: .82rem; display: flex; align-items: center; gap: 4px; transition: gap .2s; margin-top: auto; }   /* vždy u spodního okraje karty */
.cat-card:hover .cat-card-link { gap: 8px; }

/* O nás – čísla */
.about-text { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }
.stat-figure { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--green-dark); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-muted); }
.highlight-box { background: var(--green-pale); border-radius: 8px; padding: 20px; border: 1px solid var(--border); }
.highlight-box-title {
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--green-dark);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px;
}

/* ── 6. SIDEBAR + WIDGETY ───────────────────────────────────────────────── */
.sales-widget { background: var(--green-dark); border-radius: 8px; overflow: hidden; color: white; }
.sales-widget-header {
  background: var(--orange);
  padding: 12px 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; gap: 8px; margin: 0; color: #fff;
}
.sales-widget ul { list-style: none; margin: 0; padding: 0; }
.sales-item {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 10px;
  font-size: .87rem;
}
.sales-item a { color: #fff; }
.sales-item a:hover { color: var(--gold); }
.sales-item .discount {
  background: var(--orange); color: white;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  padding: 2px 7px; border-radius: 2px; flex-shrink: 0;
}
.sales-widget-footer { padding: 12px 18px; }

.store-card {
  background: white; border: 1px solid var(--border);
  border-radius: 6px; padding: 14px 16px; margin-bottom: 8px;
  display: flex; align-items: flex-start; gap: 12px;
  font-style: normal;
}
.store-icon {
  width: 34px; height: 34px; background: var(--green-pale);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--green-mid); font-size: .95rem; flex-shrink: 0;
}
.store-name { font-weight: 600; font-size: .9rem; color: var(--green-dark); }
.store-detail { font-size: .78rem; color: var(--text-muted); }

.bestseller-list { list-style: none; margin: 0; padding: 8px 0; counter-reset: bs; }
.bestseller-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 5px; transition: background .15s; }
.bestseller-item:hover { background: var(--green-pale); }
.bestseller-num { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: var(--text-muted); width: 20px; flex-shrink: 0; }
.bestseller-name { font-size: .88rem; color: var(--text); flex: 1; }
.bestseller-arrow { color: var(--green-light); font-size: .75rem; }

.shop-sidebar { position: static; }
.shop-sidebar.is-sticky { position: sticky; top: 175px; }   /* jen když se vejde do okna (main.js) */
.sidebar-section { background: white; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
.sidebar-header {
  background: var(--green-dark); color: white;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 14px; margin: 0;
}
.sidebar-body { padding: 12px; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav .nav-link {
  color: var(--text); font-size: .84rem; padding: 8px 14px;
  border-bottom: 1px solid var(--green-pale);
  display: flex; justify-content: space-between; align-items: center;
  transition: all .15s;
}
.sidebar-nav li:last-child .nav-link { border-bottom: none; }
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active { background: var(--green-pale); color: var(--green-dark); font-weight: 600; }
/* Výprodej v menu kategorií: červené písmo na světle červeném podkladu (IsSaleItem → .is-sale) */
.sidebar-nav .nav-link.is-sale { color: var(--red); background: var(--red-pale); font-weight: 600; }
.sidebar-nav .nav-link.is-sale:hover, .sidebar-nav .nav-link.is-sale.active,
.sidebar-nav li.is-open > .nav-link.is-sale { background: #FAD4CF; color: #A31F1F; }
.sidebar-nav .nav-link.is-sale .flyout-arrow { color: var(--red); }
.shop-all details a.is-sale { background: var(--red-pale); color: var(--red); font-weight: 600; }
.shop-all details a.is-sale:hover, .shop-all details a.is-sale:focus, .shop-all details a.is-sale.active { background: #FAD4CF; color: #A31F1F; }
/* ── Podmenu kategorií (flyout, obsah z msd_rubrikyshop.clanek) ── */
.sidebar-nav .flyout-arrow { font-size: .7rem; color: var(--green-light); margin-left: 6px; }
.sidebar-nav li.is-open > .nav-link { background: var(--green-pale); color: var(--green-dark); }
.cat-flyout-panel {
  position: fixed; z-index: 1050; width: 720px;
  background: #F4F9F1; border: 2px solid var(--green-light); border-radius: 0 6px 6px 6px;
  box-shadow: var(--shadow-lg); padding: 14px 18px;
  overflow: auto; overscroll-behavior: contain;
  font-size: .84rem; line-height: 1.35;
}
.cat-flyout-panel[hidden] { display: none; }
.cat-flyout-panel .fly-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 10px; }
.cat-flyout-panel .fly-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--green-dark); text-decoration: none; }
.cat-flyout-panel .fly-all { font-size: .8rem; font-weight: 600; color: var(--orange); text-decoration: none; white-space: nowrap; }
.cat-flyout-panel .fly-all:hover { text-decoration: underline; }
.cat-flyout-panel .fly-body { display: flex; gap: 18px; align-items: flex-start; }
.cat-flyout-panel ul { list-style: none; margin: 0; padding: 0; }
.cat-flyout-panel .fly-groups { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.cat-flyout-panel .fly-groups a { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 5px; color: var(--text); text-decoration: none; }
.cat-flyout-panel .fly-groups img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; background: white; border: 1px solid var(--border); flex-shrink: 0; }
.cat-flyout-panel .fly-groups img.is-placeholder { object-fit: contain; padding: 8px; }
.cat-flyout-panel .fly-groups a:hover, .cat-flyout-panel .fly-groups a:focus { background: white; color: var(--green-dark); }
.cat-flyout-panel .fly-groups a:hover span, .cat-flyout-panel .fly-groups a:focus span { text-decoration: underline; }
.cat-flyout-panel .fly-acc { flex: 0 0 200px; border-left: 1px solid var(--border); padding-left: 14px; }
.cat-flyout-panel .fly-acc-title { font-family: var(--font-display); font-weight: 700; color: var(--green-dark); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; margin: 0 0 6px; }
.cat-flyout-panel .fly-acc a { display: block; padding: 3px 0; color: var(--text); text-decoration: none; }
.cat-flyout-panel .fly-acc a:hover, .cat-flyout-panel .fly-acc a:focus { color: var(--orange); text-decoration: underline; }
@media (max-width: 991.98px) { .cat-flyout-panel { display: none !important; } }
.sidebar-nav .anchor-icon { font-size: .7rem; color: var(--text-muted); }
.sidebar-jump { padding: 8px 14px; font-size: .78rem; color: var(--text-muted); }
.sidebar-jump ul { list-style: none; margin: 0; padding: 0; }
.sidebar-jump a { display: block; padding: 4px 0; color: var(--text-muted); font-size: .8rem; transition: color .15s; }
.sidebar-jump a:hover { color: var(--green-mid); }

/* ── 7. KATEGORIE / VÝPIS PRODUKTŮ ──────────────────────────────────────── */
.page-title { padding: 20px 0 16px; }
.page-title h1 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--green-dark); margin-bottom: 6px; }
.page-title .lead-text { color: var(--text-muted); font-size: .87rem; margin: 0; }

.info-box {
  background: white; border: 1px solid var(--border);
  border-left: 3px solid var(--green-light);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px; font-size: .84rem; color: var(--text);
  margin-bottom: 10px;
}
.info-box strong { color: var(--green-dark); }
.info-box-orange { background: #FFF5EE; border-left-color: var(--orange); border-color: #FADEC8; }
.info-box-orange .bi { color: var(--orange); }

.view-toggle { display: flex; align-items: center; gap: 6px; background: var(--green-pale); border: 1px solid var(--border); border-radius: 5px; padding: 3px; }
.view-toggle .btn { padding: 5px 10px; border: none; background: transparent; color: var(--text-muted); font-size: .85rem; border-radius: 3px; transition: all .15s; }
.view-toggle .btn.active, .view-toggle .btn[aria-pressed="true"] { background: var(--green-dark); color: white; }

.product-group { background: white; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; overflow: hidden; scroll-margin-top: 180px; }
.product-group-header { background: var(--green-dark); padding: 12px 18px; display: flex; align-items: center; gap: 14px; }
.product-group-header.is-premium { background: linear-gradient(90deg, #1B4A1B, #2C6E2C); }
.group-img {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(255,255,255,.12); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.group-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.group-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: white; margin: 0; }
.group-title a { color: white; }
.group-title a:hover { color: var(--gold); }
.group-subtitle { font-size: .75rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.group-badges { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.group-badge {
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.9);
  font-family: var(--font-mono); font-size: .7rem;
  padding: 3px 9px; border-radius: 2px;
}
.group-badge.is-best { background: var(--orange); color: #fff; }
.made-in { font-size: .7rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 4px; }

/* Řádkové zobrazení */
.products-table { width: 100%; }
.products-table-head { background: var(--green-pale); border-bottom: 1px solid var(--border); }
.products-table-head th {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--green-dark);
  padding: 8px 12px; white-space: nowrap;
}
.product-row { border-bottom: 1px solid var(--border); transition: background .12s; }
.product-row:last-child { border-bottom: none; }
.product-row:hover { background: var(--green-pale); }
.product-row td { padding: 10px 12px; vertical-align: middle; font-size: .87rem; }
.spec-val { font-family: var(--font-mono); font-size: .82rem; color: var(--text-muted); }
.price-current { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--orange); }
.price-original { font-size: .78rem; color: var(--text-muted); text-decoration: line-through; display: block; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Mřížka */
.products-grid { display: none; }
.products-grid.active { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; }
.product-card {
  background: white; border: 1px solid var(--border);
  border-radius: 7px; overflow: hidden;
  width: calc(50% - 6px);
  display: flex; flex-direction: column;
  transition: all .2s;
}
@media (min-width: 768px)  { .product-card { width: calc(33.33% - 8px); } }
@media (min-width: 1200px) { .product-card { width: calc(25% - 9px); } }
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-light); transform: translateY(-2px); }
.product-card-img { height: 100px; background: linear-gradient(135deg, var(--green-pale) 0%, #d5e8d5 100%); display: flex; align-items: center; justify-content: center; }
.product-card-img img { max-height: 90px; width: auto; }
.product-card-img img.is-placeholder { max-height: 64px; opacity: .3; }
.product-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-card-name { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--green-dark); margin-bottom: 6px; }
.product-card-specs { font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); margin: 0 0 8px; }
.product-card-spec { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px solid var(--green-pale); }
.product-card-spec:last-child { border-bottom: none; }
.product-card-spec dt { font-weight: 400; }
.product-card-spec dd { margin: 0; }
.product-card-price { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--orange); margin-top: auto; padding-top: 8px; }
.product-card-price .orig { font-size: .75rem; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-left: 4px; }
.product-card-actions { padding: 10px 12px; background: var(--green-pale); display: flex; gap: 6px; }
.product-card-actions .btn-buy { flex: 1; justify-content: center; font-size: .8rem; padding: 7px 8px; }
.product-card-actions .btn-detail { font-size: .75rem; padding: 6px 8px; }

.accessories-header {
  background: #F5F0E8; border-top: 2px solid var(--gold);
  padding: 10px 18px; margin: 0;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: #8a6507;
  display: flex; align-items: center; gap: 8px;
}

/* Popis kategorie (SEO text pod výpisem) */
.category-description { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; font-size: .9rem; line-height: 1.7; }
.category-description h2 { font-size: 1.35rem; font-weight: 700; margin-top: .5rem; }

/* Stránkování */
.pagination .page-link { color: var(--green-mid); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

/* ── 8. DETAIL PRODUKTU ─────────────────────────────────────────────────── */
.product-detail { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.product-gallery-main {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 6px;
  aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
/* celý obrázek, volné místo zůstane bílé */
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery-main[data-lightbox] img { cursor: zoom-in; }
.gallery-zoom {
  position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,.92); color: var(--green-dark);
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  transition: background .15s, color .15s, transform .15s;
}
.gallery-zoom:hover, .gallery-zoom:focus-visible { background: var(--orange); border-color: var(--orange); color: #fff; transform: scale(1.06); }

/* Lightbox – galerie přes celou stránku (main.js initLightbox) */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10,20,10,.94); display: flex; flex-direction: column; color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; flex-shrink: 0; }
.lightbox-counter { font-family: var(--font-mono); font-size: .85rem; opacity: .85; }
.lightbox-caption { flex: 1; text-align: center; font-size: .9rem; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px 16px; touch-action: pan-y; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff;
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.lightbox-btn:hover, .lightbox-btn:focus-visible { background: var(--orange); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 10px; } .lightbox-next { right: 10px; }
.lightbox-btn[hidden] { display: none; }
.lightbox-thumbs { display: flex; gap: 6px; justify-content: center; padding: 0 10px 12px; overflow-x: auto; flex-shrink: 0; list-style: none; margin: 0; }
.lightbox-thumbs button { width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: #fff; overflow: hidden; opacity: .6; flex-shrink: 0; }
.lightbox-thumbs button.active, .lightbox-thumbs button:hover { opacity: 1; border-color: var(--orange); }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: contain; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 575.98px) {
  .lightbox-stage { padding: 0 8px 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; transform: none; background: rgba(0,0,0,.45); }
}
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; list-style: none; padding: 0; }
.product-gallery-thumbs button {
  width: 72px; height: 56px; border: 1px solid var(--border); border-radius: 4px; padding: 0;
  overflow: hidden; background: #fff; cursor: pointer;
}
.product-gallery-thumbs button.active, .product-gallery-thumbs button:hover { border-color: var(--orange); }
.product-gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-detail h1 { font-weight: 800; font-size: 1.9rem; margin-bottom: 6px; }
.product-code { font-family: var(--font-mono); font-size: .78rem; color: var(--text-muted); }
.product-price-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: 6px; padding: 16px 18px; margin: 16px 0; }
.product-price-box .price-current { font-size: 2rem; line-height: 1; }
.product-price-box .price-original { display: inline; margin-left: 8px; font-size: .9rem; }
.price-note { font-size: .78rem; color: var(--text-muted); }
.stock-info { font-size: .88rem; font-weight: 600; color: var(--green-mid); }
.stock-info.is-out { color: #3B5BDB; }
.qty-input { display: inline-flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; }
.qty-input button { border: none; background: var(--green-pale); color: var(--green-dark); width: 36px; font-size: 1.1rem; }
.qty-input input { width: 64px; border: none; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-variants .form-label { font-weight: 600; font-size: .85rem; }
.product-usp { list-style: none; padding: 0; margin: 16px 0 0; font-size: .85rem; }
.product-usp li { display: flex; gap: 8px; padding: 4px 0; color: var(--text-muted); }
.product-usp .bi { color: var(--green-light); }

.product-tabs .nav-link { color: var(--text-muted); font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.product-tabs .nav-link.active { color: var(--green-dark); border-color: var(--border) var(--border) #fff; }
.product-tab-content { background: #fff; border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; padding: 24px; font-size: .92rem; line-height: 1.7; }
.spec-table { width: 100%; font-size: .88rem; }
.spec-table th { width: 40%; color: var(--text-muted); font-weight: 500; padding: 8px 12px; background: var(--bg-light); }
.spec-table td { padding: 8px 12px; font-family: var(--font-mono); font-size: .84rem; }
.spec-table tr { border-bottom: 1px solid var(--border); }

/* ── 9. KOŠÍK A OBJEDNÁVKA ──────────────────────────────────────────────── */
.checkout-steps { display: flex; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: step; background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.checkout-steps li { flex: 1; counter-increment: step; }
.checkout-steps a, .checkout-steps span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 8px; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--text-muted); border-bottom: 3px solid transparent;
}
.checkout-steps a::before, .checkout-steps span::before {
  content: counter(step); width: 24px; height: 24px; border-radius: 50%;
  background: var(--border); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
}
.checkout-steps .is-done a { color: var(--green-mid); }
.checkout-steps .is-done a::before { background: var(--green-light); color: #fff; content: '✓'; }
.checkout-steps [aria-current="step"] { color: var(--green-dark); border-bottom-color: var(--orange); }
.checkout-steps [aria-current="step"]::before { background: var(--orange); color: #fff; }

.cart-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cart-table { width: 100%; }
.cart-table thead th { background: var(--green-pale); font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--green-dark); padding: 10px 14px; }
.cart-table td { padding: 12px 14px; vertical-align: middle; border-top: 1px solid var(--border); font-size: .9rem; }
.cart-item-img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--green-pale); }
.cart-item-name { font-weight: 600; color: var(--green-dark); }
.cart-item-meta { font-size: .78rem; color: var(--text-muted); }
.btn-remove { border: none; background: none; color: var(--text-muted); font-size: 1.1rem; padding: 4px; }
.btn-remove:hover { color: #c0392b; }
.cart-summary { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.cart-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .9rem; margin: 0; }
.cart-summary dd { margin: 0; text-align: right; font-weight: 600; }
.cart-summary .total { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--orange); }
.free-shipping-bar { font-size: .82rem; }
.free-shipping-bar .progress { height: 6px; background: var(--green-pale); }
.free-shipping-bar .progress-bar { background: var(--green-light); }

.option-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff;
  border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s;
}
.option-card:hover { border-color: var(--green-light); }
.option-card:has(input:checked) { border-color: var(--orange); background: #FFF9F4; }
.option-card .form-check-input { margin: 0; flex-shrink: 0; }
.option-card .option-name { font-weight: 600; flex: 1; }
.option-card .option-desc { display: block; font-weight: 400; font-size: .8rem; color: var(--text-muted); }
.option-card .option-price { font-weight: 700; white-space: nowrap; }

.order-done { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 40px 24px; text-align: center; }
.order-done .done-icon { font-size: 3.5rem; color: var(--green-light); }

/* ── 10. FORMULÁŘE, ÚČET ────────────────────────────────────────────────── */
.form-panel { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.form-panel h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 16px; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--green-light); box-shadow: 0 0 0 .2rem rgba(74,144,64,.2); }
.form-check-input:checked { background-color: var(--green-mid); border-color: var(--green-mid); }
.required::after { content: ' *'; color: var(--orange); }

.account-nav .nav-link { color: var(--text); padding: 10px 14px; border-bottom: 1px solid var(--green-pale); display: flex; gap: 8px; align-items: center; }
.account-nav .nav-link.active, .account-nav .nav-link:hover { background: var(--green-pale); color: var(--green-dark); font-weight: 600; }
.order-status { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.order-status.is-new { background: #F0F4FF; color: #3B5BDB; }
.order-status.is-shipped { background: #FFF5EE; color: var(--orange); }
.order-status.is-done { background: var(--green-pale); color: var(--green-dark); }

/* ── 11. TEXTOVÉ STRÁNKY ────────────────────────────────────────────────── */
.article-content { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 28px 32px; font-size: .95rem; line-height: 1.75; }
.article-content h1 { font-weight: 800; font-size: 2rem; margin-bottom: 12px; }
.article-content h2 { font-weight: 700; font-size: 1.5rem; margin: 28px 0 10px; }
.article-content h3 { font-weight: 700; font-size: 1.2rem; margin: 20px 0 8px; }
.article-content img { border-radius: 6px; }
.article-content figure figcaption { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.article-content table { width: 100%; margin-bottom: 1rem; }
.article-content blockquote { border-left: 3px solid var(--green-light); padding-left: 16px; color: var(--text-muted); }
/* Karusel úvodní strany (Úvodní animace z administrace; initHomeSlider). Bannery 1600 × 608 px –
   plocha drží jejich poměr stran, snímky leží přes sebe a prolínají se */
.home-slider { margin: 8px 0 28px; }
.home-slider-track { display: grid; border-radius: 8px; overflow: hidden; background: var(--green-pale); }
.home-slide { grid-area: 1 / 1; }
.home-slider.is-rotating .home-slide { transition: opacity .7s ease, visibility 0s linear .7s; }
.home-slide:not(.is-active) { opacity: 0; visibility: hidden; }
.home-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.home-slide a { display: block; }
.home-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 608; object-fit: cover; }
/* ovládání pod karuselem vpravo: pauza, ‹, tečky, › */
.home-slider-dots { display: flex; justify-content: flex-end; align-items: center; gap: 2px; margin-top: 6px; }
.home-slider-dot, .home-slider-pause, .home-slider-arrow {
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--green-dark); font-size: 1rem;
}
.home-slider-arrow:hover, .home-slider-pause:hover { background: var(--green-pale); }
.home-slider-dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--green-dark); transition: background .2s, width .2s; }
.home-slider-dot[aria-current="true"]::before { background: var(--green-dark); width: 22px; border-radius: 5px; }
.home-slider-dot:hover::before { background: var(--green-mid); border-color: var(--green-mid); }
.home-slider-arrow:focus-visible, .home-slider-dot:focus-visible, .home-slider-pause:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .home-slider.is-rotating .home-slide { transition: none; } }

/* Projekty EU na úvodní straně (náhledy plakátů, klik = lightbox) */
.eu-project { display: block; height: 100%; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.eu-project img { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 723; object-fit: contain; }   /* stejná výška boxů, plakát vždy celý (různé poměry stran) */
.eu-project:hover, .eu-project:focus-visible { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* Boxy z Krátkých zpráv v pravém sloupci (Partneři – banner z editoru) */
.short-box-body { text-align: center; font-size: .9rem; }
.short-box-body p:last-child { margin-bottom: 0; }
.short-box-body img { max-width: 100%; height: auto; }   /* web rámeček nepřidává; rámeček zadaný v editoru (inline styl) zůstává */

/* Seznamy z editoru: levý okraj odrážky / čísla lícuje s levým okrajem textu (vlastní značka místo
   ::marker, jehož polohu nelze přesně nastavit); seznamy s třídou (karty, galerie, přílohy) se nemění.
   Číslování přes vestavěný čítač list-item – funguje i start="…" a value="…" z editoru. */
.article-content ul:not([class]), .article-content ol:not([class]) { list-style: none; margin-left: 0; padding-left: 0; }
.article-content ul:not([class]) > li, .article-content ol:not([class]) > li { position: relative; }
.article-content ul:not([class]) > li { padding-left: 1.15em; }
.article-content ul:not([class]) > li::before {
  content: ''; position: absolute; left: 0; top: .875em;          /* střed 1. řádku (line-height 1.75) */
  width: .38em; height: .38em; margin-top: -.19em; border-radius: 50%; background: var(--green-mid);
}
.article-content ul:not([class]) ul:not([class]) > li::before { background: transparent; border: 1px solid var(--green-mid); }
.article-content ol:not([class]) > li { padding-left: 1.6em; }
.article-content ol:not([class]) > li::before {
  content: counter(list-item) "."; position: absolute; left: 0; top: 0;
  font-weight: 700; color: var(--green-dark); font-variant-numeric: tabular-nums;
}
/* typ číslování: <ol type> převádí CmsHtml na data-list; editor ukládá style="list-style-type: …" */
.article-content ol[data-list="lower-alpha"]:not([class]) > li::before, .article-content ol[style*="lower-alpha"]:not([class]) > li::before, .article-content ol[style*="lower-latin"]:not([class]) > li::before { content: counter(list-item, lower-alpha) "."; }
.article-content ol[data-list="upper-alpha"]:not([class]) > li::before, .article-content ol[style*="upper-alpha"]:not([class]) > li::before, .article-content ol[style*="upper-latin"]:not([class]) > li::before { content: counter(list-item, upper-alpha) "."; }
.article-content ol[data-list="lower-roman"]:not([class]) > li::before, .article-content ol[style*="lower-roman"]:not([class]) > li::before { content: counter(list-item, lower-roman) "."; }
.article-content ol[data-list="upper-roman"]:not([class]) > li::before, .article-content ol[style*="upper-roman"]:not([class]) > li::before { content: counter(list-item, upper-roman) "."; }
.article-content ol:not([class]):has(> li:nth-child(10)) > li { padding-left: 2.1em; }   /* dvouciferná čísla */
.article-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 16px; }
.toc { background: var(--green-pale); border: 1px solid var(--border); border-radius: 6px; padding: 14px 18px; font-size: .88rem; }
.toc ol { margin: 0; padding-left: 18px; }
/* nadpis otázky je <h2> – v obsahu stránky (.article-content h2) by dostal odsazení 28 px nahoře → u první otázky prázdná plocha */
.article-content .faq .accordion-header, .faq .accordion-header { margin: 0; }
.faq .accordion-button { font-weight: 600; color: var(--green-dark); }
.faq .accordion-button:not(.collapsed) { background: var(--green-pale); color: var(--green-dark); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(74,144,64,.2); }

.map-embed { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--green-pale); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.error-page { text-align: center; padding: 60px 16px; }
.error-page .error-code { font-family: var(--font-display); font-size: 6rem; font-weight: 800; color: var(--orange); line-height: 1; }

/* ── 12. PATIČKA ────────────────────────────────────────────────────────── */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.75); padding: 36px 0 16px; margin-top: 40px; }
.footer-logo .brand-name { font-family: var(--font-display); font-weight: 800; color: white; font-size: 1.1rem; }
.footer-logo .brand-sub { font-size: .72rem; color: rgba(255,255,255,.6); letter-spacing: .08em; text-transform: uppercase; }
.footer-text { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.65; }
.footer-contact { font-size: .82rem; color: rgba(255,255,255,.65); font-style: normal; }
.footer-heading {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-link { display: block; color: rgba(255,255,255,.78); font-size: .84rem; padding: 3px 0; transition: color .15s; }
.footer-link:hover { color: white; }
.footer-divider { border-color: rgba(255,255,255,.15); margin: 20px 0 12px; }
.footer-bottom { font-size: .75rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }

/* ── RESPONZIVITA ───────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .shop-sidebar { position: static; }
  .main-nav .navbar-collapse .nav { flex-direction: column; padding-bottom: 8px; }
}
@media (max-width: 767px) {
  .site-logo img { width: 170px; }
  .usp-item { border-right: none; border-bottom: 1px solid var(--border); }
  .products-table thead { display: none; }
  .products-table, .products-table tbody, .products-table tr, .products-table td { display: block; }
  .product-row td { padding: 4px 12px; }
  .product-row td:first-child { padding-top: 10px; }
  .product-row td:last-child { padding-bottom: 10px; }
  .product-row td[data-label]::before {
    content: attr(data-label) ': ';
    font-weight: 600; color: var(--text-muted); font-size: .75rem;
  }
  .row-actions { justify-content: flex-start; }
  .header-ctas .btn-login .label { display: none; }
  .product-group-header { flex-wrap: wrap; }
  /* košík na mobilu: název a popis přes celou šířku, pod nimi cena/j., dole množství – cena – odebrat */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody { display: block; }
  .cart-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 14px; border-top: 1px solid var(--border); }
  .cart-table tbody tr:first-child { border-top: 0; }
  .cart-table td { border: none; padding: 0; text-align: left; }
  .cart-table td.cart-col-name { grid-column: 1 / -1; grid-row: 1; }
  .cart-table td.cart-col-unit { grid-column: 1 / -1; grid-row: 2; font-size: .8rem; color: var(--text-muted); text-align: left !important; }
  .cart-table td.cart-col-unit::before { content: attr(data-label) " "; }
  .cart-table td.cart-col-qty { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: 8px; }
  .cart-table td.cart-col-total { grid-column: 2; grid-row: 3; text-align: right !important; font-size: 1rem; }
  .cart-table td.cart-col-remove { grid-column: 3; grid-row: 3; }
  .cart-table tr.cart-surcharge { grid-template-columns: 1fr auto; }
  .cart-table tr.cart-surcharge td.cart-col-name { grid-column: 1; grid-row: 1; }
  .cart-table tr.cart-surcharge td.cart-col-total { grid-column: 2; grid-row: 1; }
  .cart-table tr.cart-surcharge td:empty { display: none; }
  .btn-remove { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 6px; }
  .cart-table td.cart-col-name, .cart-table td.cart-col-unit { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .cart-table td.cart-col-qty > .cart-item-meta { display: none; }        /* jednotka je na mobilu u ceny za kus */
  .cart-table .qty-input { width: 124px; }
  .cart-unit-mobile { display: inline !important; }
  .article-content { padding: 20px; }
}
@media (max-width: 480px) {
  .product-card { width: 100%; }
}

/* Tisk */
@media print {
  .top-bar, .main-nav, .shop-bar, .header-search, .header-ctas, .site-footer, .shop-sidebar, .btn-buy, .btn-detail { display: none !important; }
  .site-header { position: static; box-shadow: none; }
  body { background: #fff; }
}
.product-tab-content h2, .product-tab-content h3 { font-weight: 700; color: var(--green-dark); }
.product-tab-content .product-group { margin-bottom: 0; }

/* Hlavička na menších displejích: vyhledávání přes celou šířku, hlavička neplovoucí */
@media (max-width: 991px) {
  .header-search { max-width: none; flex-basis: 100%; }
}
@media (max-width: 767px) {
  .site-header { position: static; }
}

/* ── HERO BOXY (úvodní strana) ──────────────────────────────────────────────
   Mřížka 2 sloupců: box .is-wide zabírá celý řádek.
   Varianty: 4× malý (2+2), 2 malé + 1 široký, 1 široký + 2 malé, …         */
.hero { padding: 36px 0; }
.hero-boxes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  height: 100%; grid-auto-rows: 1fr;          /* boxy vyplní výšku textového sloupce */
  list-style: none; margin: 0; padding: 0;
}
.hero-boxes > li { display: flex; }
.hero-boxes > li.is-wide { grid-column: 1 / -1; }
.hero-boxes > li.is-big { grid-column: 1 / -1; grid-row: span 2; }      /* velký box přes celou plochu */
.hero-boxes > li.is-big .hero-box-title { font-size: 2rem; }
.hero-boxes > li.is-big .hero-box-text { font-size: 1rem; }
.hero-box {
  position: relative; flex: 1; min-height: 170px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 22px; border-radius: 8px;
  background: rgba(255,255,255,.12) center/cover no-repeat;
  border: 1px solid #000;
  backdrop-filter: blur(6px);
  color: #fff; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.hero-box::before {                 /* světlejší šedý závoj – fotka zůstane vidět, text čitelný ve spodní části */
  content: ''; position: absolute; inset: 0;
  background: var(--hb-overlay, linear-gradient(180deg, rgba(45,48,50,.05) 0%, rgba(45,48,50,.28) 45%, rgba(45,48,50,.68) 100%));   /* přechod z administrace */
}
.hero-box-title, .hero-box-text { text-shadow: var(--hb-shadow, 0 1px 3px rgba(0,0,0,.55)); }
.hero-box > * { position: relative; }
.hero-box:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-box:not([style*="background-image"]) { background-color: var(--green-dark); backdrop-filter: none; }   /* box bez fotky – na světlém podkladu by bílý text zanikl */
.hero-box-label {
  align-self: flex-start; margin-bottom: auto;
  background: var(--hb-label-bg, var(--orange)); color: var(--hb-label, #fff);
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px;
}
.hero-box-title { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; margin-top: 10px; color: var(--hb-title, #fff); }
.hero-box-text { font-size: .88rem; color: var(--hb-text, #fff); opacity: .92; margin-top: 2px; }
.hero-box-link { font-size: .8rem; font-weight: 600; color: var(--hb-link, var(--gold)); margin-top: 6px; display: inline-flex; gap: 4px; transition: gap .2s; }
.hero-box:hover .hero-box-link { gap: 8px; }
/* Banner (administrace: nadpis se nezobrazuje – text je v obrázku): bez viditelného textu i bez přechodu přes obrázek */
.hero-box.is-plain::before { display: none; }
.hero-box.is-plain { padding: 0; }

/* Střídání obrazovek boxů (HeroPages + initHeroRotator): obrazovky leží přes sebe v jedné buňce mřížky,
   výška = nejvyšší obrazovka (žádné poskakování obsahu), přechod prolínáním */
.hero-col-boxes { display: flex; flex-direction: column; }
.hero-rotator { display: grid; flex: 1; }
.hero-rotator > .hero-page { grid-area: 1 / 1; }
.hero-rotator.is-rotating > .hero-page { transition: opacity .6s ease, visibility 0s linear .6s; }
.hero-rotator > .hero-page:not(.is-active) { opacity: 0; visibility: hidden; }
.hero-rotator > .hero-page.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero-dots { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 8px; }
.hero-dot, .hero-pause {
  width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--green-dark);
}
.hero-dot::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--green-dark); background: transparent; transition: background .2s, width .2s;
}
.hero-dot[aria-current="true"]::before { background: var(--green-dark); width: 22px; border-radius: 5px; }
.hero-dot:hover::before { background: var(--green-mid); border-color: var(--green-mid); }
.hero-pause { font-size: 1.1rem; }
.hero-dot:focus-visible, .hero-pause:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-radius: 4px; }

/* Video z YouTube místo fotky (heroVideos v main.js): iframe pokryje box jako background-size: cover */
.hero-box { isolation: isolate; }
.hero-box::before { z-index: 1; }
.hero-box > * { z-index: 2; }
.hero-box > .hero-box-video {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  container-type: size;
}
.hero-box-video iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .8s;
}
.hero-box-video iframe.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-rotator.is-rotating > .hero-page { transition: none; }
}

@media (max-width: 991px) {
  .hero { padding: 32px 0; }
  .hero-boxes { margin-top: 8px; height: auto; grid-auto-rows: auto; }
  .hero-box { min-height: 140px; }
}
@media (max-width: 575px) {
  .hero-boxes { grid-template-columns: 1fr; }
  .hero-box { min-height: 110px; }
  /* velký banner (text je v obrázku): na výšku telefonu by se ořízly boky – zobrazí se celá šířka banneru,
     svisle na střed, volné místo nahoře a dole zůstane prázdné (initHeroSharp pak načte obrázek bez ořezu) */
  .hero-boxes > li.is-big .hero-box.is-banner {
    background-color: transparent; background-size: 100% auto; background-position: center;
    border-color: transparent; backdrop-filter: none; box-shadow: none; transform: none;
  }
  .hero-boxes > li.is-big .hero-box.is-banner::before { display: none; }
}

/* ── Obsah z CMS (HTML z editoru) ─────────────────────────────────────────── */
.cms-content { font-size: .92rem; line-height: 1.7; overflow-wrap: anywhere; }
.cms-content img { max-width: 100%; height: auto; border-radius: 4px; }
.cms-content table { max-width: 100%; }
.cms-content h2, .cms-content h3 { font-weight: 700; margin-top: 1rem; }
.cms-content > :last-child { margin-bottom: 0; }

/* Barevný vzorek RAL ve výpisu produktů */
.ral-swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 2px;
  border: 1px solid rgba(0,0,0,.25); margin-right: 5px; vertical-align: -1px;
}
.product-row.is-action { background: #FFF9F4; }
.product-row td.spec-val { font-size: .8rem; }
.products-table-head th { white-space: normal; line-height: 1.2; }
.product-row td.spec-note { font-size: .78rem; color: var(--text-muted); min-width: 120px; line-height: 1.35; }

/* Dlaždicový výpis (nářadí apod.) */
.product-card-img-lg { height: 170px; position: relative; background: #fff; border-bottom: 1px solid var(--border); }
.product-card-img-lg img { max-height: 150px; max-width: 90%; object-fit: contain; }
.product-card-badge { position: absolute; top: 8px; left: 8px; }
.product-card-text { font-size: .8rem; color: var(--text-muted); line-height: 1.45; margin-bottom: 6px; }

/* Prodejny a mapa */
.address-lines { white-space: pre-line; font-style: normal; }
.map-embed { display: flex; align-items: center; justify-content: center; }
.map-embed.leaflet-container { display: block; }
/* vlastní kontext vrstvení – ovládací prvky Leafletu (z-index 1000) nepřekryjí lepivou hlavičku */
.map-embed { position: relative; z-index: 0; isolation: isolate; }
.map-lg { aspect-ratio: auto; height: 520px; }
.map-sm { aspect-ratio: auto; height: 320px; }
.map-legend { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); vertical-align: -1px; }
.map-legend.own { background: var(--orange); }
.map-legend.partner { background: var(--green-mid); }
.partner-link { display: block; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; height: 100%; color: var(--text); font-size: .85rem; transition: border-color .15s; }
.partner-link:hover { border-color: var(--green-light); color: var(--text); }
.partner-link strong { display: block; color: var(--green-dark); font-family: var(--font-display); font-size: 1rem; }
.partner-link span { color: var(--text-muted); }
.store-box { background: var(--green-pale); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; }
@media (max-width: 767px) { .map-lg { height: 380px; } }

/* Poznámka v kartě produktu (mřížka) – bez popisku, přes celou šířku */
.product-card-note { font-family: var(--font-body); font-size: .78rem; line-height: 1.4; color: var(--text-muted); margin: 0 0 6px; }
.product-card-note .ral-swatch { vertical-align: -1px; }

/* Řádkové zobrazení: cena vždy vpravo těsně před tlačítky */
.products-table .col-price { width: 1%; white-space: nowrap; text-align: right; }
.products-table .col-actions { width: 1%; white-space: nowrap; }
.products-table th.col-price { white-space: normal; min-width: 96px; }
.products-table td.col-price .badge-sale { display: table; margin: 2px 0 0 auto; }
@media (max-width: 767px) {
  .products-table .col-price, .products-table .col-actions { width: auto; text-align: left; }
}
@media (max-width: 767px) { .products-table td.col-price .badge-sale { display: inline-block; margin: 0 0 0 6px; } }

/* ── Dialog „Vložit do košíku“ ─────────────────────────────────────────── */
.buy-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--green-dark); margin-bottom: 10px; }
.buy-specs { width: 100%; font-size: .85rem; border: 1px solid var(--border); border-radius: 6px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.buy-specs th, .buy-specs td { padding: 6px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.buy-specs tr:last-child th, .buy-specs tr:last-child td { border-bottom: none; }
.buy-specs th { width: 45%; font-weight: 500; color: var(--text-muted); background: var(--bg-light); }
.buy-specs td { font-weight: 600; }
.buy-specs td.buy-specs-note { font-weight: 400; color: var(--text-muted); background: var(--bg-light); }
.buy-specs legend, #buyModal legend { font-size: .85rem; }
.buy-unit-price { font-size: .9rem; margin-bottom: 12px; }
.buy-unit-price strong { color: var(--orange); }
.buy-unit-price span { color: var(--text-muted); }
.buy-qty-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.buy-total { display: grid; grid-template-columns: auto auto; gap: 2px 16px; margin: 0; font-size: .88rem; text-align: right; }
.buy-total dt { font-weight: 500; color: var(--text-muted); }
.buy-total dd { margin: 0; font-weight: 600; white-space: nowrap; }
.buy-total .buy-total-main { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--orange); }
.buy-total dt.buy-total-main { font-size: 1rem; color: var(--green-dark); align-self: center; }
#buyModal .option-card { padding: 10px 14px; }

/* Pole množství: bez ořezaného zvýraznění uvnitř, zvýrazní se celý rámeček */
.qty-input input:focus, .qty-input input:focus-visible { outline: none; box-shadow: none; }
.qty-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(217,95,2,.25); }

/* ── Náhledy: vyplní vždy celou plochu, po najetí myší zvětšený náhled ─── */
.group-img .img-fill,
.product-card-img .img-fill,
.product-card-img-lg .img-fill { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; display: block; opacity: 1; }
.product-card-img:has(.img-fill) { background: var(--green-pale); }
[data-zoom] { cursor: zoom-in; }

.img-zoom-pop {
  position: fixed; z-index: 2000; pointer-events: none;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-lg); padding: 6px;
  opacity: 0; transform: scale(.96); transition: opacity .12s, transform .12s;
}
.img-zoom-pop.is-visible { opacity: 1; transform: none; }
.img-zoom-pop img { display: block; max-width: min(420px, 80vw); max-height: min(420px, 70vh); width: auto; height: auto; border-radius: 4px; }
@media (hover: none) { [data-zoom] { cursor: default; } }

/* ── Souhlas s cookies (main.js initConsent) ──────────────────────────────── */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060;
  background: #fff; border-top: 3px solid var(--green-mid); box-shadow: 0 -8px 32px rgba(27,74,27,.18);
  padding: 14px 0; font-size: .86rem;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar-inner { display: flex; align-items: center; gap: 20px; }
.cookie-bar-text { flex: 1; min-width: 0; }
.cookie-bar-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--green-dark); margin: 0 0 2px; }
.cookie-bar-title .bi { color: var(--gold); }
.cookie-bar-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.cookie-bar-actions .btn-buy, .cookie-bar-actions .btn-detail { white-space: nowrap; }
.btn-link-plain { border: 0; background: none; color: var(--green-mid); text-decoration: underline; font-size: .85rem; padding: 6px 4px; }
.btn-link-plain:hover { color: var(--orange); }
body.has-cookie-bar { padding-bottom: 120px; }    /* lišta nezakrývá konec stránky */
.cookie-cat { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; }
.cookie-cat .form-check-label { font-weight: 600; color: var(--green-dark); }
.cookie-cat .form-check-input:checked { background-color: var(--green-mid); border-color: var(--green-mid); }
.cookie-cat details summary { cursor: pointer; color: var(--green-mid); }
#cookieModal .modal-footer { gap: 8px; }
@media (max-width: 767.98px) {
  .cookie-bar { font-size: .8rem; padding: 10px 0; max-height: 70vh; overflow-y: auto; }
  .cookie-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .cookie-bar-actions { flex-wrap: wrap; }
  .cookie-bar-actions .btn-buy, .cookie-bar-actions .btn-detail { flex: 1; justify-content: center; }
  body.has-cookie-bar { padding-bottom: 230px; }
}
@media print { .cookie-bar { display: none !important; } }

/* ── Mapa stránek (mapa-stranek.asp) ──────────────────────────────────────── */
.sitemap-section { margin-bottom: 32px; }
.sitemap-heading { font-size: 1.35rem; font-weight: 800; color: var(--green-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.sitemap-heading .bi { color: var(--orange); }
.sitemap-quick {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border-radius: 8px;
  background: #fff; border: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sitemap-quick:hover, .sitemap-quick:focus-visible { border-color: var(--green-light); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--green-dark); }
.sitemap-quick strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--green-dark); }
.sitemap-quick-icon {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--green-pale); color: var(--green-mid); font-size: 1.35rem;
}
.sitemap-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.sitemap-card-title {
  margin: 0; padding: 11px 16px; background: var(--green-dark); font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.sitemap-card-title a { color: #fff; text-decoration: none; }
.sitemap-card-title a:hover, .sitemap-card-title a:focus { color: var(--gold); text-decoration: underline; }
.sitemap-count { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); padding: 2px 8px; border-radius: 10px; }
.sitemap-list { list-style: none; margin: 0; padding: 8px 0; font-size: .88rem; }
.sitemap-list a { display: block; padding: 5px 16px 5px 30px; color: var(--text); text-decoration: none; position: relative; }
.sitemap-list a::before { content: ""; position: absolute; left: 16px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--green-light); }
.sitemap-list a:hover, .sitemap-list a:focus { background: var(--green-pale); color: var(--green-dark); }
.sitemap-list .sitemap-sub { padding: 0 0 4px; font-size: .84rem; }
.sitemap-list .sitemap-sub a { padding-left: 46px; color: var(--text-muted); }
.sitemap-list .sitemap-sub a::before { left: 32px; background: none; border: 1px solid var(--green-light); }
.sitemap-list .sitemap-sub .sitemap-sub a { padding-left: 62px; }
.sitemap-list .sitemap-sub .sitemap-sub a::before { left: 48px; }
.sitemap-empty { margin: 0; padding: 12px 16px; font-size: .86rem; }
.sitemap-empty a { color: var(--green-mid); font-weight: 600; text-decoration: none; }
.sitemap-empty a:hover { color: var(--orange); text-decoration: underline; }
.faq-group { font-size: 1.25rem; font-weight: 800; color: var(--green-dark); margin: 28px 0 10px; }
.accordion.faq:empty { display: none; }

/* Boxy návodů z CMS (NavodGrid v inc/data.asp) */
.navod-grid { margin-bottom: 1rem; }
.navod-card {
  display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; text-decoration: none; color: var(--green-dark); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.navod-card:hover, .navod-card:focus-visible { border-color: var(--green-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.navod-card-img { display: flex; align-items: center; justify-content: center; background: #fff; aspect-ratio: 200 / 287; padding: 8px; }
.navod-card-img img { width: 100%; height: 100%; object-fit: contain; }
.navod-card-title { padding: 10px 12px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2; border-top: 1px solid var(--green-pale); background: var(--bg-light); flex: 1; display: flex; align-items: center; }
.navod-card:hover .navod-card-title { color: var(--orange); }

/* Miniatura vlajky v odznaku „Vyrobeno v …“ */
.flag-icon { width: 18px; height: 12px; border: 1px solid #3a3a3a; border-radius: 0; box-sizing: content-box; vertical-align: -2px; flex-shrink: 0; }
.made-in .flag-icon, .badge-stock .flag-icon { margin-left: 6px; }   /* odstup vlajky od textu „Vyrobeno v …“ */

/* Odznak slevy (DiscountBadge) – oranžový jako box „Výhodné ceny pletiva“ */
.badge-discount {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  background: var(--orange); color: #fff; border-radius: 2px; padding: 3px 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-discount .bi { font-size: .85em; }

/* Košík – probíhající přepočet (initCartAutoUpdate) */
form.js-cart.is-updating .cart-table td.text-end, form.js-cart.is-updating .cart-summary dd { opacity: .45; transition: opacity .15s; }

/* Hero na desktopu: levý okraj boxů = levý okraj 3. boxu sortimentu pod hero
   (sortiment: row g-4 > col-lg-8 > row g-3 > 3× col-md-4 → začátek 3. karty = 4/9 šířky řádku − 16/3 px) */
@media (min-width: 992px) {
  .hero .hero-col-text  { width: calc(44.4444% - 5.3333px); }
  .hero .hero-col-boxes { width: calc(55.5556% + 5.3333px); }
}

/* Články rubriky jako karty (stranka.asp) – styl karet z úvodní strany, odolný vůči stylům .article-content */
.article-cards { padding-left: 0; line-height: 1.4; }
.article-cards .cat-card { height: 100%; text-decoration: none; }
.article-content .article-cards .cat-card-title { font-size: 1.1rem; margin: 0 0 4px; line-height: 1.2; }
.article-cards .cat-card-desc { line-height: 1.4; }
.article-content .article-cards .cat-card-img img { border-radius: 0; height: 100%; }
.cat-card-img.is-logo { background: #fff; border-bottom: 1px solid var(--green-pale); }
.article-content .article-cards .cat-card-img.is-logo img, .cat-card-img.is-logo img { object-fit: contain; padding: 28px 32px; opacity: .85; }

/* Fotogalerie příloh na stránkách (stranka.asp) – komponenta galerie z detailu produktu */
.page-gallery { margin-bottom: 1.5rem; }                 /* přes celou šířku obsahu stránky */
/* fotogalerie a přílohy vždy až pod celým textem z CMS (neobtékají obrázky s float vložené v textu) */
.article-content h2.page-after, h2.page-after { clear: both; margin-top: 0; padding-top: 20px; }   /* padding: margin by se při clear spotřeboval na přeskočení plovoucího obrázku */
.article-content .page-gallery .product-gallery-main img { border-radius: 0; }
.article-content .page-gallery .product-gallery-thumbs { margin-bottom: 0; }

/* Obrázky v textu z CMS s odkazem na velkou fotku (main.js initContentLightbox) */
.cms-zoom {
  display: inline-block; position: relative; vertical-align: top; max-width: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 4px; margin: 0 6px 8px 0;
  cursor: zoom-in; transition: border-color .15s, box-shadow .15s;
}
.cms-zoom img { display: block; border-radius: 3px; }
.cms-zoom::after {
  content: "\F62C"; font-family: "bootstrap-icons"; position: absolute; right: 8px; bottom: 8px;
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: var(--green-dark); font-size: .85rem; box-shadow: var(--shadow-sm);
  transition: background .15s, color .15s;
}
.cms-zoom:hover, .cms-zoom:focus-visible { border-color: var(--green-light); box-shadow: var(--shadow-md); }
.cms-zoom:hover::after, .cms-zoom:focus-visible::after { background: var(--orange); color: #fff; }

/* Kroky objednávky na mobilu: číslo nad textem, menší písmo – všechny 4 kroky v jedné řadě */
@media (max-width: 575.98px) {
  .checkout-steps a, .checkout-steps span {
    flex-direction: column; gap: 4px; padding: 10px 4px 8px;
    font-size: .74rem; line-height: 1.15; text-align: center;
  }
  .checkout-steps a::before, .checkout-steps span::before { width: 26px; height: 26px; font-size: .8rem; flex-shrink: 0; }
}
.cart-unit-mobile { display: none; }

/* Náhled s velmi odlišným poměrem stran (main.js initSmartFit): celý obrázek, delší strana neořezaná */
img.fit-contain,
.group-img .img-fill.fit-contain,
.product-card-img .img-fill.fit-contain,
.product-card-img-lg .img-fill.fit-contain,
.cat-card-img img.fit-contain { object-fit: contain; background: #fff; padding: 6px; }
.group-img .img-fill.fit-contain { padding: 2px; }
.product-card-img:has(.fit-contain), .cat-card-img:has(.fit-contain) { background: #fff; }
