/*! iStage · Hlavička a menu ve stylu redesignu · v1.0.0
 *  Platí jen na počítači (od 992 px), v české verzi a mimo kroky pokladny (v košíku ano). Na mobilu a tabletu
 *  zůstává hlavička šablony beze změny.
 *  Výšky pruhů jsou stejné jako v šabloně (48 + 108 + 62 px), takže okna košíku a přihlášení sedí dál a nic se
 *  neposouvá. Vyhledávání, přihlášení, košík, měna a jazyk jsou původní prvky Shoptetu – mění se jen vzhled.
 *  Lištu kategorií staví hlavicka.js z menu Shoptetu; dokud se nepřipojí, je místo menu šablony prázdný pruh
 *  (kdyby skript selhal, menu šablony se po 4 s ukáže samo). ?hd=0 na konci adresy = původní hlavička.
 */

/* ---------- Písmo Poppins – stejné soubory jako bannery (složka homepage/fonts, licence OFL) ---------- */
@font-face{font-family:'HP Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/user/documents/homepage/fonts/poppins-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'HP Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/user/documents/homepage/fonts/poppins-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'HP Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(/user/documents/homepage/fonts/poppins-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'HP Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(/user/documents/homepage/fonts/poppins-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* doplňky ze skriptu jsou na mobilu a tabletu (a mimo českou verzi) vždy skryté
   (silnější selektor kvůli pravidlu šablony „.top-navigation-bar .container > div“ od 768 px) */
.hd-nav, .hd-kbd, .top-navigation-bar .container > .hd-tick, .top-navigation-bar .container > .hd-links { display: none; }

@media (min-width: 992px) {

  /* ---------- 0) Barvy a písmo (stejné jako sekce z redesignu na úvodní stránce a detail produktu) ---------- */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) {
    --hd-font: 'HP Poppins', 'Poppins', 'Nunito Sans', Arial, sans-serif;
    --hd-text: 'Nunito Sans', Arial, sans-serif;
    --hd-ink: #0b0d10; --hd-2: #55595f; --hd-3: #6b7079; --hd-line: #e2e2df; --hd-line-2: #cdcdc9;
    --hd-sunk: #f0f0ee; --hd-soft: #f7f7f5; --hd-acc: #fb2a2d; --hd-acc-t: #d4121a; --hd-blue: #0063c7;
    --hd-dark: #14171b; --hd-on-dark: #f4f5f1; --hd-acc-d: #ff5a5c;   /* -d = červená na tmavém (kontrast 5,9 : 1) */
    --hd-shadow: 0 18px 40px -12px rgba(11, 13, 16, .24), 0 40px 80px -40px rgba(11, 13, 16, .34);
    --hd-ease: cubic-bezier(.22, 1, .36, 1);
  }

  /* ---------- 1) Tmavý horní pruh (horní menu, telefon, měna a jazyk zůstávají ze Shoptetu) ---------- */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar {
    background-color: var(--hd-dark); border-bottom-color: var(--hd-dark); color: var(--hd-on-dark);
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .container { gap: 20px; }
  /* clearfix šablony by byl ve flexu položkou navíc (i s mezerou by posouval obsah) */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .container::before,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .container::after { content: none; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .container > div {
    flex: 0 0 auto; min-width: 0; background: transparent; text-align: left;
  }
  /* pořadí: zpráva (vlevo, doplní skript) · odkazy služeb · horní menu · telefon · měna a jazyk.
     Pravá skupina drží vpravo sama, takže to, co doplní skript, nic neposune. */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .container > .hd-tick { order: 0; flex: 1 1 auto; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .container > .hd-links { order: 1; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .top-navigation-menu { order: 2; margin-left: auto; padding-right: 0; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .top-navigation-contacts { order: 3; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .top-navigation-tools { order: 4; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar a,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu__header {
    color: var(--hd-on-dark); font-size: 12.5px; text-decoration: none;
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar a:hover,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu__header:hover { color: #fff; text-decoration: underline; }
  /* horní menu (KONTAKTY…) */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .top-navigation-bar-menu li { font-size: 12.5px; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .top-navigation-bar-menu li a { padding: 0 0 0 18px; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .top-navigation-bar-menu li:first-child a { padding-left: 0; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .top-navigation-bar-menu li::before { display: none; }
  /* telefon (text „(Po-Pá: 10-17h)“ přidává vlastní styl v Záhlaví) */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .project-phone { font-size: 12.5px; font-weight: 700; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .project-phone::before { font-size: 15px; color: var(--hd-acc-d); margin-right: 7px; }
  /* měna a jazyk */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu__content { border-right-color: rgba(255, 255, 255, .12); }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu__box { border-left-color: rgba(255, 255, 255, .12); }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu__header { padding: 0 34px 0 44px; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu__box::before { left: 17px; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu .caret { right: 14px; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu__box::before,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu .caret::before { color: rgba(244, 245, 241, .6); }
  /* bílé rozbalovací seznamy šablony (měna, jazyk, přetékající horní menu) zůstávají s tmavým textem */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu__list a,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu__list a:hover,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .top-navigation-bar-menu-helper a { color: #24242e; text-decoration: none; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .languagesMenu__list { z-index: 1002; }

  /* zprávy vlevo (střídají se po 6 s, pod myší nebo při ovládání klávesnicí stojí) */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .container > .hd-tick {
    display: grid; align-items: center; height: 48px; overflow: hidden;
  }
  .hd-tick-i {
    grid-area: 1 / 1; display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden;
    font-size: 12.5px; line-height: 48px; white-space: nowrap; color: var(--hd-on-dark) !important; text-decoration: none !important;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .45s var(--hd-ease), transform .45s var(--hd-ease), visibility 0s linear .45s;
  }
  .hd-tick-i.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .hd-tick-i.is-off { transform: translateY(-8px); }
  .hd-tick-i span { overflow: hidden; text-overflow: ellipsis; }
  .hd-tick-i b { font-weight: 700; color: var(--hd-acc-d); }
  .hd-tick-i:hover span { text-decoration: underline; }
  .hd-tick-i .hd-ico { width: 14px; height: 14px; color: var(--hd-on-dark); }
  /* odkazy služeb */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .container > .hd-links { display: flex; align-items: center; gap: 22px; height: 48px; }
  .hd-links a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 48px; }
  .hd-links a.is-cut { display: none; }                                    /* nevejde se (skript) */
  .hd-links .hd-ico { width: 14px; height: 14px; color: var(--hd-acc-d); }

  /* ---------- 2) Hlavní řádek: logo | vyhledávání | Účet | Košík ---------- */
  /* sloupce nezávislé na obsahu: logo se načítá později a tlačítko Účet doplňuje šablona až po načtení stránky –
     s šířkou podle obsahu by vyhledávání poskočilo (posun obsahu, CLS) */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .header-top {
    display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 640px) minmax(190px, 1fr); align-items: center; column-gap: 40px; height: 108px;
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .header-top > .site-name-wrapper { justify-self: start; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .header-top > .navigation-buttons { justify-self: stretch; width: 100%; }   /* celý sloupec, tlačítka vpravo */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .header-top > div { flex: none; width: auto; min-width: 0; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .site-name { padding: 0; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .header-top .search {
    justify-self: stretch; width: 100%; height: auto; padding: 0;
  }

  /* vyhledávání jako pilulka: lupa vlevo, nápověda ⌘K / Ctrl K, tlačítko Hledat vpravo */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm { position: relative; width: 100%; height: 52px; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm fieldset {
    display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; margin: 0; padding: 0 6px 0 50px;
    border: 1px solid transparent; border-radius: 999px; background: var(--hd-sunk);
    transition: background-color .2s var(--hd-ease), border-color .2s var(--hd-ease), box-shadow .2s var(--hd-ease);
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm fieldset:hover { border-color: var(--hd-line-2); }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm fieldset:focus-within {
    border-color: var(--hd-ink); background: #fff; box-shadow: 0 0 0 4px rgba(11, 13, 16, .08);
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm::before {
    content: ''; display: block; position: absolute; left: 19px; top: 50%; z-index: 2; width: 20px; height: 20px; margin: -10px 0 0;
    border: 0; background: var(--hd-3); font-size: 0; line-height: 0; pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .query-input {
    flex: 1 1 auto; width: auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
    background: transparent; box-shadow: none; outline: 0; font-family: var(--hd-text); font-size: 15px; color: var(--hd-ink);
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .query-input::placeholder { color: var(--hd-3); opacity: 1; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .query-input::-webkit-search-cancel-button { cursor: pointer; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .btn {
    position: static; flex: 0 0 auto; width: auto; min-width: 0; height: 40px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px;
    background: var(--hd-ink); box-shadow: none; color: #fff; font-family: var(--hd-font) !important; font-size: 14px; font-weight: 600;
    line-height: 40px; letter-spacing: 0; text-transform: none; transition: background-color .15s;
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .btn:hover { background: #2a2e35; color: #fff; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .btn:focus-visible { outline: 3px solid var(--hd-blue); outline-offset: 2px; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .hd-kbd { display: flex; flex: 0 0 auto; gap: 3px; pointer-events: none; }
  .hd-kbd kbd {
    display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--hd-line-2); border-bottom-width: 2px;
    border-radius: 6px; background: #fff; box-shadow: none; color: var(--hd-2); font: 600 11px/1 var(--hd-text);
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm fieldset:focus-within .hd-kbd,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .query-input:not(:placeholder-shown) ~ .hd-kbd { display: none; }
  /* našeptávač Shoptetu: pod pilulkou na střed, bez „záložky“ šablony */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .search-whisperer.active {
    top: calc(100% + 10px); left: 50%; right: auto; width: 732px; max-width: calc(100vw - 32px); margin: 0; transform: translateX(-50%);
    border: 1px solid var(--hd-line); border-radius: 20px; box-shadow: var(--hd-shadow);
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .search-whisperer.active::before,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .search-whisperer.active::after { content: none; }

  /* Účet a Košík – ikona s popiskem (tlačítka i okna přihlášení a košíku jsou původní ze Shoptetu) */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons {
    display: flex; align-items: center; justify-content: flex-end; gap: 4px; height: 108px;
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .top-nav-button,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .cart-count {
    position: relative; top: auto; right: auto; left: auto; display: inline-flex; flex-direction: row; align-items: center; gap: 9px;
    width: auto; min-width: 0; height: 48px; margin: 0; padding: 0 14px; border: 0; border-radius: 14px;
    background: transparent; box-shadow: none; color: var(--hd-ink); font-size: 14px; line-height: 1; text-decoration: none; text-transform: none;
    white-space: nowrap; transition: background-color .15s;
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .top-nav-button:hover,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .cart-count:hover,
  html[lang="cs"]:not(.hd-off) body.login-window-visible:is(:not(.ordering-process), .id--9) #header .navigation-buttons .top-nav-button,
  html[lang="cs"]:not(.hd-off) body.cart-window-visible:is(:not(.ordering-process), .id--9) #header .navigation-buttons .cart-count { background: var(--hd-sunk); }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .top-nav-button:focus-visible,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .cart-count:focus-visible { outline: 3px solid var(--hd-blue); outline-offset: 2px; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .top-nav-button::before,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .cart-count::before {
    content: ''; position: static; display: block; flex: 0 0 auto; width: 22px; height: 22px; margin: 0; background: currentColor;
    font-size: 0; line-height: 0; transform: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM4.5 21a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM4.5 21a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .cart-count::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.4 10.4a2 2 0 0 0 1.95 1.55h7.9a2 2 0 0 0 1.95-1.53L21 8H6.2'/%3E%3Ccircle cx='10' cy='20.3' r='1.3'/%3E%3Ccircle cx='17' cy='20.3' r='1.3'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.4 10.4a2 2 0 0 0 1.95 1.55h7.9a2 2 0 0 0 1.95-1.53L21 8H6.2'/%3E%3Ccircle cx='10' cy='20.3' r='1.3'/%3E%3Ccircle cx='17' cy='20.3' r='1.3'/%3E%3C/svg%3E");
  }
  /* popisky „Účet“ a „Košík“ jako v redesignu; původní text zůstává pro čtečky obrazovky */
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .top-nav-button > span {
    font-family: var(--hd-font); font-size: 13.5px; font-weight: 600;
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons :is(.top-nav-button-login, .top-nav-button-account) > span {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .top-nav-button::after,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .cart-count::after {
    content: none; position: static; display: block; width: auto; height: auto; margin: 0; transform: none;
    font-family: var(--hd-font); font-size: 13.5px; font-weight: 600; line-height: 1; color: inherit; text-transform: none;
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons :is(.top-nav-button-login, .top-nav-button-account)::after {
    content: 'Účet'; content: 'Účet' / '';
  }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .cart-count::after { content: 'Košík'; content: 'Košík' / ''; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .cart-count .cart-price { display: none !important; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons > a[data-target="cart"] i,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .cart-count > i {
    position: absolute; top: 5px; left: 22px; right: auto; bottom: auto; display: grid; place-items: center; box-sizing: content-box;
    min-width: 12px; width: auto; height: 18px; margin: 0; padding: 0 3px; border: 2px solid #fff; border-radius: 999px;
    background: var(--hd-acc); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; line-height: 18px;
  }

  /* ---------- 3) Lišta kategorií (staví hlavicka.js z menu Shoptetu) ---------- */
  /* než se lišta připojí, je místo menu šablony prázdný pruh stejné výšky (kdyby skript selhal, menu se po 4 s ukáže) */
  html[lang="cs"]:not(.hd-off):not(.hd-on):not(.hd-nomenu) body:is(:not(.ordering-process), .id--9) #header #navigation .navigation-in,
  html[lang="cs"]:not(.hd-off):not(.hd-on):not(.hd-nomenu) body:is(:not(.ordering-process), .id--9) #header .menu-helper {
    visibility: hidden; animation: hd-show 0s linear 4s forwards;
  }
  @keyframes hd-show { to { visibility: visible; } }
  html.hd-on[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header #navigation,
  html.hd-on[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .menu-helper { display: none !important; }
  /* dekorace šablony pod menu (čáry a stín přes celou šířku, #header::after) leží nad lištou – kreslí se dál,
     jen nesmí chytat myš (menu šablony to řeší z-indexem 1, ten by ale panel uzavřel pod obsah stránky) */
  html.hd-on[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header::after { pointer-events: none; }
  html.hd-on[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .hd-nav {
    display: block; position: relative; height: 62px; margin: 0; padding: 0;      /* bez z-indexu: okna Shoptetu musí být nad lištou */
    border-top: 1px solid var(--hd-line); border-bottom: 1px solid var(--hd-line);
    color: var(--hd-ink); font-family: var(--hd-text); -webkit-font-smoothing: antialiased;
  }
  .hd-nav *, .hd-nav *::before, .hd-nav *::after { box-sizing: border-box; }
  .hd-nav ul, .hd-nav li { margin: 0; padding: 0; list-style: none; }
  .hd-nav li::before, .hd-nav li::marker { content: none; }
  .hd-nav a { text-decoration: none !important; }
  .hd-nav p { margin: 0; }
  .hd-nav button { margin: 0; font: inherit; }
  .hd-ico { display: block; flex: 0 0 auto; width: 18px; height: 18px; }
  .hd-list { display: flex; align-items: stretch; gap: 4px; height: 60px; }
  .hd-li { display: flex; align-items: center; flex: 0 0 auto; }           /* celá výška lišty = žádná mezera pro myš */
  .hd-li.is-cut { display: none; }                                         /* nevejde se – je ve „Vše“ */
  .hd-nav .hd-li--end { margin-left: auto; }                              /* akce, služby a magazín vpravo */
  .hd-pill { display: flex; align-items: center; height: 38px; border-radius: 10px; transition: background-color .12s var(--hd-ease); }
  .hd-a, .hd-btn, .hd-tg {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px;
    background: none; cursor: pointer; white-space: nowrap;
    font-family: var(--hd-font); font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: -.005em; color: var(--hd-2) !important;
  }
  .hd-a--sub { padding-right: 4px; }
  .hd-tg { padding: 0 10px 0 2px; color: var(--hd-3) !important; }
  .hd-chev { width: 14px; height: 14px; transition: transform .2s var(--hd-ease); }
  .hd-li:hover .hd-pill, .hd-li.is-open .hd-pill { background: var(--hd-sunk); }
  .hd-li:hover .hd-a, .hd-li.is-open .hd-a, .hd-li:hover .hd-btn, .hd-li.is-open .hd-btn { color: var(--hd-ink) !important; }
  .hd-li.is-open .hd-chev { transform: rotate(180deg); }
  .hd-a:focus-visible, .hd-btn:focus-visible, .hd-tg:focus-visible, .hd-panel a:focus-visible { outline: 3px solid var(--hd-blue); outline-offset: 1px; }
  .hd-li--all .hd-pill { background: var(--hd-ink); }
  .hd-li--all:hover .hd-pill, .hd-li--all.is-open .hd-pill { background: #2a2e35; }
  .hd-li--all .hd-btn, .hd-li--all:hover .hd-btn, .hd-li--all.is-open .hd-btn { color: #fff !important; }
  .hd-li--all .hd-btn .hd-ico:first-child { width: 16px; height: 16px; }
  .hd-li--hot .hd-a, .hd-li--hot:hover .hd-a { color: var(--hd-acc-t) !important; }
  .hd-li--hot .hd-a .hd-ico { width: 16px; height: 16px; color: var(--hd-3); }
  .hd-li--svc .hd-btn { color: var(--hd-ink) !important; }
  .hd-li--svc .hd-btn .hd-ico:first-child { width: 16px; height: 16px; color: var(--hd-acc); }

  /* rozbalovací panel: přes celou šířku okna pod lištou (šířku okna doplní skript), obsah v šířce stránky */
  .hd-panel {
    position: absolute; top: 100%; left: calc(50% - var(--hd-vw, 100%) / 2); z-index: 52; width: var(--hd-vw, 100%);   /* pod okny Shoptetu (53–56, našeptávač 100) */
    max-height: var(--hd-mh, calc(100vh - 260px)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable both-edges;
    background: #fff; border-top: 1px solid var(--hd-line); border-bottom: 1px solid var(--hd-line); box-shadow: var(--hd-shadow);
    color: var(--hd-ink); font-family: var(--hd-text); cursor: default;
    opacity: 0; visibility: hidden; transform: translate3d(0, -10px, 0) scaleY(.985); transform-origin: center top; pointer-events: none;
    transition: opacity .2s var(--hd-ease), transform .32s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .2s;
  }
  .hd-li.is-open > .hd-panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  .hd-in {                                         /* v šířce stránky, ale vždy aspoň 40 px od okraje (vlevo plave záložka „Ověřeno zákazníky“) */
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px;
    width: calc(100% - 80px); width: min(var(--hd-cw, 100%), calc(100% - 80px)); margin: 0 auto; padding: 32px 0;
  }
  .hd-in > * { min-width: 0; }
  .hd-in--full { grid-template-columns: minmax(0, 1fr); }
  /* „Vše“: všechny kategorie ve sloupcích */
  .hd-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; align-items: start; }
  .hd-col { display: grid; gap: 20px; align-content: start; }
  .hd-grp { display: grid; gap: 2px; align-content: start; }
  .hd-grp-t {
    display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 0 0 8px; border-bottom: 1px solid var(--hd-line);
    font-family: var(--hd-font); font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--hd-ink) !important;
  }
  .hd-grp-t .hd-ico { width: 16px; height: 16px; color: var(--hd-acc-t); }
  .hd-grp-t:hover { color: var(--hd-acc-t) !important; }
  .hd-link {
    display: block; margin-left: -8px; padding: 5px 8px; border-radius: 6px; font-size: 13px; line-height: 1.35; color: var(--hd-2) !important;
    transition: background-color .12s var(--hd-ease), color .12s var(--hd-ease), padding .12s var(--hd-ease);
  }
  .hd-link:hover { background: var(--hd-sunk); color: var(--hd-ink) !important; padding-left: 12px; }
  .hd-link--more { font-weight: 700; color: var(--hd-ink) !important; }
  /* kategorie: podkategorie s obrázkem z menu Shoptetu a 3. úrovní */
  .hd-subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; align-content: start; }
  .hd-sub { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: start; }
  .hd-sub-img { display: grid; place-items: center; width: 52px; height: 52px; padding: 5px; overflow: hidden; border-radius: 12px; background: var(--hd-soft); color: var(--hd-3) !important; }
  .hd-sub-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .hd-sub-img .hd-ico { width: 22px; height: 22px; }
  .hd-sub-t { display: block; padding-top: 3px; font-family: var(--hd-font); font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--hd-ink) !important; }
  .hd-sub-t:hover { color: var(--hd-acc-t) !important; }
  .hd-sub-l { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 5px; }
  .hd-sub-l a { font-size: 12.5px; line-height: 1.45; color: var(--hd-2) !important; }
  .hd-sub-l a:hover { color: var(--hd-ink) !important; text-decoration: underline !important; }
  /* boční karty */
  .hd-aside { display: grid; gap: 12px; align-content: start; }
  .hd-promo {
    position: relative; display: grid; gap: 8px; overflow: hidden; padding: 24px; border-radius: 14px;
    background: var(--hd-dark); color: var(--hd-on-dark) !important;
  }
  .hd-promo::after {
    content: ''; position: absolute; top: -40%; right: -20%; width: 200px; height: 200px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(251, 42, 45, .34), transparent 66%);
  }
  .hd-promo--soft { background: var(--hd-sunk); color: var(--hd-ink) !important; }
  .hd-promo--soft::after { background: radial-gradient(circle, rgba(251, 42, 45, .12), transparent 66%); }
  .hd-promo > * { position: relative; z-index: 1; }
  .hd-badge {
    justify-self: start; padding: 3px 8px; border-radius: 6px; background: var(--hd-acc-t); color: #fff;
    font-family: var(--hd-font); font-size: 10.5px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase;
  }
  .hd-promo-h { font-family: var(--hd-font); font-size: 17px; font-weight: 600; line-height: 1.3; }
  .hd-promo-p { font-size: 12.5px; line-height: 1.55; opacity: .75; }
  .hd-promo-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-family: var(--hd-font); font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--hd-acc-d); }
  .hd-promo--soft .hd-promo-go { color: var(--hd-ink); }
  .hd-promo-go .hd-ico { width: 15px; height: 15px; transition: transform .2s var(--hd-ease); }
  a.hd-promo:hover .hd-promo-go .hd-ico, .hd-promo-go:hover .hd-ico { transform: translateX(3px); }
  .hd-promo a.hd-promo-go:hover { text-decoration: underline !important; }
  .hd-tel {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; margin-top: 8px; padding: 0 18px; border-radius: 999px;
    background: var(--hd-acc-t); color: #fff !important; font-family: var(--hd-font); font-size: 14px; font-weight: 600; line-height: 1;
    transition: background-color .15s;
  }
  .hd-tel:hover { background: #b50f16; }
  .hd-tel .hd-ico { width: 15px; height: 15px; }
  /* „Služby“: karty služeb */
  .hd-svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-content: start; }
  .hd-svc {
    display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--hd-line); border-radius: 20px; color: var(--hd-ink) !important;
    transition: border-color .15s var(--hd-ease), box-shadow .2s var(--hd-ease), transform .2s var(--hd-ease);
  }
  .hd-svc:hover { border-color: var(--hd-line-2); transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(11, 13, 16, .16), 0 18px 40px -22px rgba(11, 13, 16, .22); }
  .hd-svc-i { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 6px; border-radius: 14px; background: var(--hd-ink); color: var(--hd-acc); }
  .hd-svc-i .hd-ico { width: 20px; height: 20px; }
  .hd-svc-t { font-family: var(--hd-font); font-size: 14px; font-weight: 600; line-height: 1.2; }
  .hd-svc-c { font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--hd-acc-t); }
  .hd-svc-x { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12.5px; line-height: 1.6; color: var(--hd-2); }
  /* obsah panelu se jemně „dosune“ (jako v redesignu) */
  .hd-col > *, .hd-subs > *, .hd-svcs > *, .hd-aside > * { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .2s var(--hd-ease), transform .2s var(--hd-ease); }
  .hd-li.is-open .hd-col > *, .hd-li.is-open .hd-subs > *, .hd-li.is-open .hd-svcs > *, .hd-li.is-open .hd-aside > * { opacity: 1; transform: none; transition-delay: 40ms; }
}

/* užší počítače: kratší mezery, bez nápovědy klávesové zkratky a odkazů služeb v horním pruhu, panel na 3 sloupce */
@media (min-width: 992px) and (max-width: 1279.98px) {
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .header-top { column-gap: 24px; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .top-nav-button,
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #header .navigation-buttons .cart-count { padding: 0 10px; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) #formSearchForm .hd-kbd { display: none; }
  html[lang="cs"]:not(.hd-off) body:is(:not(.ordering-process), .id--9) .top-navigation-bar .container > .hd-links { display: none; }
  .hd-in { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 0 28px; }
  .hd-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-cols, .hd-subs, .hd-svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* skript zjistil, že se do horního pruhu nevejde žádný odkaz služeb */
html.hd-links-off .hd-links { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hd-tick-i, .hd-pill, .hd-chev, .hd-link, .hd-panel, .hd-svc, .hd-promo-go .hd-ico,
  .hd-col > *, .hd-subs > *, .hd-svcs > *, .hd-aside > * { transition: none !important; }
  .hd-panel, .hd-tick-i, .hd-col > *, .hd-subs > *, .hd-svcs > *, .hd-aside > * { transform: none !important; }
}
@media print { .hd-nav, .hd-kbd, .top-navigation-bar .container > .hd-tick, .top-navigation-bar .container > .hd-links { display: none !important; } }
