/* Vyhledávání má na počítači vlastní pole jako původní e-shop. */
/* Native widgets follow the relocated header controls, including their arrows. */
@media(min-width:768px) {
  #header .es-header-account { anchor-name: --es-account; }
  #header .cart-count { anchor-name: --es-cart; }
  #login { position-anchor: --es-account; }
  #cart-widget { position-anchor: --es-cart; }
  .user-action :is(#login,#cart-widget) { inset: auto; margin: 0; width: 500px; top: calc(anchor(bottom) + 8px); right: anchor(right); max-width: calc(100vw - 24px); }
  .user-action :is(#login,#cart-widget)::before { left: auto; right: 50px; }
  .user-action #login::before { right: 64px; }
}
@media(min-width:768px) and (max-width:1199px) { .user-action #login::before { right: 16px; } }
@media(min-width: 992px) {
  body.template-13 #header .header-top-wrapper .site-name { flex: 0 0 220px; }
  body.template-13 #header .header-top-wrapper .navigation-buttons { flex: 0 0 190px; }
  body.template-13 #header .header-top-wrapper .search { flex: 1 1 auto; padding: 0 32px; }
  body.template-13 #header .header-top-wrapper .search-form { width: 100%; }
  body.template-13 #header .header-top-wrapper .search-form fieldset { display: flex; width: 100%; }
  body.template-13 #header .header-top-wrapper .search-input-icon { display: none; }
  body.template-13 #header .header-top-wrapper .search-input {
    min-width: 0;
    height: 46px;
    padding: 11px 16px;
    border: 1px solid #767676;
    border-radius: var(--es-radius) 0 0 var(--es-radius);
    background: #fff;
    font-size: 14px;
  }
  body.template-13 #header .header-top-wrapper .search-button {
    display: block;
    flex: 0 0 auto;
    min-height: 46px;
    border-radius: 0 var(--es-radius) var(--es-radius) 0;
    padding: 12px 20px;
  }
}
@media(max-width: 767px) {
  body.template-13 { --es-h1: 25px; --es-h2: 22px; --es-h3: 19px; --es-gap: 16px; }
  body.template-13 .breadcrumbs { padding: 14px 0 18px; font-size: 12px; line-height: 1.8; }
  body.template-13 .breadcrumbs .navigation-bullet { padding: 0 5px; }
  body.template-13 h1 { margin-bottom: 20px; }
  body.template-13 .products-block .product .p .p-in .name { font-size: 14px; min-height: 4.5em; }
  body.template-13 .products-block .price-final { font-size: 18px; }
  body.template-13 .products-block .btn:not(.btn-icon) { padding: 10px 12px; font-size: 12px; letter-spacing: .03em; }
  body.template-13 #content .homepage-group-title { margin: 28px 0 20px; }
  body.template-13 .benefitBanner { margin: 20px 0 24px; }
  body.template-13 .benefitBanner__picture { flex-basis: 48px; }
  body.template-13 .benefitBanner__img { max-width: 48px; max-height: 48px; }
  body.template-13 .benefitBanner__title { font-size: 15px; }
  body.template-13 .benefitBanner__data { font-size: 13px; }
  body.template-13 .p-to-cart-block .btn.add-to-cart-button { padding: 14px 18px; }
}
@media(prefers-reduced-motion: reduce) {
  body.template-13 .btn,.es-category-grid a { transition: none; }
}

/* Okraje karet a nadpisů používají stejnou osu jako breadcrumbs. */
body.template-13:is(.type-category,.type-manufacturer,.type-search) #content { padding: 0 0 32px; }
body.template-13 .products-page.products-block { width: calc(100% + 20px); margin: 0 -10px; }
@media(min-width:992px) {
  body.template-13 #header .cart-count { width: auto; margin-left: 0; gap: 12px; font-size: 16px; line-height: 1.4; }
  body.template-13 #header .cart-price { white-space: nowrap; font-size: 16px; line-height: 24px; }
}
@media(max-width:767px) {
  body.template-13.mobile-header-version-1 #navigation { height: calc(100vh - 50px); height: calc(100dvh - 50px); }
  body.type-category .subcategories.with-image>li>a { display: flex; flex-direction: column; align-items: center; padding: 12px 10px; gap: 10px; height: 100%; }
  body.type-category .subcategories.with-image>li>a>.image { width: 72px; height: 60px; padding: 0; flex: 0 0 60px; margin: 0; }
  body.type-category .subcategories.with-image>li>a>.image img { width: 72px; height: 60px; object-fit: contain; }
  body.type-category .subcategories.with-image>li>a>.text { display: block; width: 100%; max-width: none; min-width: 0; height: auto; max-height: none; flex: 0 0 auto; -webkit-line-clamp: unset; -webkit-box-orient: initial; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; font-size: 14px; line-height: 1.4; padding: 0; text-align: center; }
}
@media(max-width:359px) {
  body.type-posts-listing .subcategories { grid-template-columns: 1fr; }
  body.type-posts-listing .subcategories>li>a { flex-direction: row; align-items: center; gap: 14px; }
  body.type-posts-listing .subcategories.with-image>li>a>.image { flex: 0 0 120px; width: 120px; height: 80px; }
}

/* Hlavička: původní nativní ovládání účtu vedle telefonu a košíku. */
.es-header-ready .top-navigation-tools:empty,
.es-header-ready .top-navigation-tools .top-nav-button-register { display: none; }
body.template-13 #header .navigation-buttons { display: flex; align-items: center; }
body.template-13 #header .es-header-control { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 44px; margin: 0; padding: 6px 12px; border: 0; border-radius: 0; background: transparent; color: var(--es-ink); font: 600 14px/1.4 'Open Sans',sans-serif; text-decoration: none; white-space: nowrap; }
body.template-13 #header .es-header-control:before { content: none; }
body.template-13 #header .es-header-control svg { display: block; flex: 0 0 24px; pointer-events: none; }
body.template-13 #header .es-header-control:hover { color: var(--es-action); background: #f2f6f9; }
body.template-13 #header .es-header-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
body.template-13 #header .es-header-copy small { color: var(--es-muted); font-size: 11px; font-weight: 400; }
body.template-13 #header .es-header-copy strong { font-size: 14px; font-weight: 600; }
body.template-13 #header .cart-count { border-radius: 0; }
body.template-13 #header .cart-count:hover { color: var(--es-action); background: #f2f6f9; }
@media(min-width:768px) {
  body.template-13.submenu-visible #header,
  body.template-13.submenu-visible .top-navigation-bar { position: relative; z-index: 1003; }
  /* Rozšířený podklad nemění geometrii ani nativní otevírání menu. */
  body.template-13 #navigation .navigation-in>.menu-level-1>li>.menu-level-2 { overflow: visible; box-shadow: none; }
  body.template-13 #navigation .navigation-in>.menu-level-1>li>.menu-level-2::before { content: ""; position: absolute; inset: 0 auto 0 calc(50% - 150vw); width: 300vw; background: #fff; z-index: -1; pointer-events: none; }
  body.template-13 #header .header-top { padding: 0; }
  body.template-13 #header .header-top-wrapper { display: flex; align-items: center; gap: 24px; min-height: 94px; }
  body.template-13 #header .header-top-wrapper .site-name { flex: 0 0 170px; }
  body.template-13 #header .site-name img { max-width: 170px; max-height: 58px; }
  body.template-13 #header .header-top-wrapper .search { display: block; flex: 1 1 auto; min-width: 160px; padding: 0; }
  body.template-13 #header .header-top-wrapper .navigation-buttons { flex: 0 0 auto; width: auto; gap: 0; }
  body.template-13 #header .cart-count { width: auto; min-width: 116px; height: 48px; padding: 6px 12px; margin: 0; gap: 10px; font-size: 14px; }
  body.template-13 #header .cart-price { display: inline-block !important; font-size: 14px; }
  body.template-13 #header .es-header-account { border-left: 1px solid var(--es-line); border-right: 1px solid var(--es-line); padding-left: 16px; padding-right: 16px; }
}
@media(min-width:768px) and (max-width:1199px) {
  body.template-13 #header .es-header-copy, body.template-13 #header .es-header-account>span, body.template-13 #header .es-checkout-cart>span { display: none; }
  body.template-13 #header .header-top-wrapper { gap: 20px; }
  body.template-13 #header .es-header-control { padding: 6px 12px; }
}
@media(max-width:767px) {
  /* Trvale dostupné nativní hledání má vlastní řádek pod logem a ikonami. */
  body.template-13.mobile-header-version-1 .overall-wrapper { padding-top: 104px; }
  body.template-13.mobile-header-version-1 #header .header-top-wrapper { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 0; width: 100%; height: auto; min-height: 50px; padding: 0 10px; }
  body.template-13.mobile-header-version-1 #header .site-name { grid-column: 1; grid-row: 1; }
  body.template-13.mobile-header-version-1 #header .header-top-wrapper .navigation-buttons { grid-column: 2; grid-row: 1; }
  body.template-13.mobile-header-version-1 #header .header-top-wrapper .search { display: block; grid-column: 1 / -1; grid-row: 2; position: relative; inset: auto; width: 100%; max-width: none; min-width: 0; height: auto; margin: 0; padding: 0 0 10px; }
  body.template-13.mobile-header-version-1 #header .header-top-wrapper .search-form { display: block; width: 100%; margin: 0; padding: 0; }
  body.template-13.mobile-header-version-1 #header .header-top-wrapper .search-form fieldset { display: flex; align-items: stretch; gap: 0; position: static; width: 100%; min-width: 0; margin: 0; padding: 0; }
  body.template-13.mobile-header-version-1 #header .header-top-wrapper .search-input { flex: 1 1 0; width: 0; min-width: 0; height: 44px; margin: 0; padding: 10px 12px 10px 46px; border: 1px solid #767676; border-radius: var(--es-radius); font-size: 16px; line-height: 22px; }
  body.template-13.mobile-header-version-1 #header .header-top-wrapper .search-form .search-button { flex: 0 0 96px; width: 96px; min-width: 96px; height: 44px; margin: 0; padding: 0 10px; border-radius: 0 var(--es-radius) var(--es-radius) 0; font-size: 12px; }
  body.template-13.mobile-header-version-1 #header .header-top-wrapper .search-button:before { flex-basis: 18px; width: 18px; height: 18px; }
  body.template-13.mobile-header-version-1 #header .navigation-buttons [data-testid="linkSearchIcon"] { display: none; }
  body.template-13.mobile-header-version-1 #header .searchWhisperer { position: absolute; top: 44px; right: 0; left: 0; width: 100%; max-width: none; max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain; margin: 0; }
  body.template-13.mobile-header-version-1:is(.navigation-window-visible,.login-window-visible,.cart-window-visible) #header .header-top-wrapper .search { display: none; }
  body.template-13 #navigation .menu-level-1>li>a { min-height: 48px; padding: 14px 50px 14px 20px; font-size: 15px; font-weight: 600; line-height: 1.45; text-decoration: none; }
  body.template-13 #navigation .menu-level-1>li>a b { padding: 0; font-weight: inherit; line-height: inherit; text-decoration: none; }
  body.template-13 #navigation .menu-level-2 a { font-size: 14px; line-height: 1.5; text-decoration: none; }
  /* Nativní náhledy podkategorií v mobilním menu. */
  body.template-13 #navigation .menu-level-2>li { position: relative; min-height: 60px; }
  body.template-13 #navigation .menu-level-2>li>.menu-image { display: flex; position: absolute; top: 8px; left: 20px; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 3px; border: 1px solid var(--es-line); border-radius: var(--es-radius); background: #fff; }
  body.template-13 #navigation .menu-level-2>li>.menu-image img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
  body.template-13 #navigation .menu-level-2>li:has(>.menu-image)>div>a { display: flex; align-items: center; min-height: 60px; padding: 10px 20px 10px 80px; }
  body.template-13 #navigation .menu-level-2>li>div>a:hover { background: #edf4f9; }
  body.template-13 #navigation .menu-level-2>li>div>a:focus-visible { outline: 2px solid #245b92; outline-offset: -3px; }
  body.template-13 #navigation a:hover { color: var(--es-action); }
  body.template-13 #header .site-name { flex: 0 0 110px; width: 110px; min-width: 0; margin: 0; }
  body.template-13 #header .site-name img { max-width: 110px; max-height: 40px; }
  body.template-13 #header .header-top-wrapper .navigation-buttons { flex: 1 1 auto; justify-content: flex-end; width: auto; min-width: 0; }
  body.template-13 #header .navigation-buttons>a, body.template-13 #header .navigation-buttons>button { flex: 0 0 38px; width: 38px; height: 50px; min-width: 38px; padding: 0; margin: 0; }
  body.template-13 #header .es-header-copy, body.template-13 #header .es-header-account>span, body.template-13 #header .es-checkout-cart>span { display: none; }
  body.template-13 #header .es-header-control svg { width: 22px; height: 22px; flex-basis: 22px; }
  body.template-13 #header .cart-count:before { font-size: 24px; }
  body.template-13 #header .navigation-buttons .cart-count i { right: 0; }
}


/* Horni informacni lista: mensi sazba, cela sirka a ucet pouze v hlavicce. */
html.es-header-ready body.template-13 .top-navigation-bar .top-navigation-tools { display: none; }
@media(min-width:768px) {
 body.template-13 .top-navigation-bar { font-size: 12px; line-height: 18px; }
 body.template-13 .top-navigation-bar .container { min-height: 32px; align-items: center; }
 body.template-13 .top-navigation-bar .container>.top-navigation-menu { flex: 1 1 auto; width: 100%; min-width: 0; height: 32px; padding: 0 76px 0 0; }
 body.template-13 .top-navigation-bar .top-navigation-bar-menu { height: 32px; line-height: 18px; }
 body.template-13 .top-navigation-bar .top-navigation-bar-menu>li { height: auto; vertical-align: top; }
 body.template-13 .top-navigation-bar .top-navigation-bar-menu>li>a,
 body.template-13 .top-navigation-bar .top-navigation-menu-trigger { align-items: center; min-height: 32px; padding: 7px 14px; font-size: 12px; line-height: 18px; }
 body.template-13 .top-navigation-bar .top-navigation-menu-trigger { margin-right: -76px; }
 body.template-13 .top-navigation-bar .top-navigation-bar-menu>li:first-child>a { padding-left: 0; }
 body.template-13 .top-navigation-bar .top-navigation-bar-menu-helper a { font-size: 12px; line-height: 18px; }
}

/* Naseptavac je ukotveny ke skutecne sirce hledani, bez procentniho odsazeni Disco. */
@media(min-width:768px) {
 body.template-13 #header .header-top-wrapper .search { position: relative; container: es-header-search / inline-size; }
 body.template-13 #header .header-top-wrapper .searchWhisperer { inset: 100% 0 auto; width: 100%; max-width: 100%; margin: 0; padding: 24px; }
}
@container es-header-search (max-width:760px) {
 body.template-13 #header .searchWhisperer__products { flex-basis: 100%; min-width: 0; order: 1; }
 body.template-13 #header .searchWhisperer__additionalResults { flex-basis: 100%; order: 2; margin: 24px 0 0; padding: 24px 0 0; border-right: 0; border-top: 1px solid var(--es-line); }
}
@container es-header-search (max-width:440px) {
 body.template-13 #header .searchWhisperer { padding: 16px; }
 body.template-13 #header .searchWhisperer__products__listItem { flex-basis: 50%; min-width: 0; }
}
@container es-header-search (max-width:300px) {
 body.template-13 #header .searchWhisperer__products__listItem { flex-basis: 100%; }
}

/* Okamžitý hover mění jen viditelnost; panel je stále na spodní hraně navigace. */
@media(min-width:768px) {
 body.template-13 #header,body.template-13 .top-navigation-bar { position: relative; z-index: 1003; }
 body.template-13 #header { overflow-x: clip; }
 body.template-13 #navigation { transition: none; }
 body.template-13 #navigation .navigation-in { height: 100%; }
 body.template-13 #navigation:has(.navigation-in>.menu-level-1>li.ext:hover) { overflow: visible; }
 body.template-13 #navigation:has(.navigation-in>.menu-level-1>li.ext:hover) .splitted { display: none; }
 body.template-13 #navigation .navigation-in>.menu-level-1>li>.menu-level-2 { top: calc(100% + 1px); width: min(1760px, calc(100vw - 48px)); }
 body.template-13 #navigation .navigation-in>.menu-level-1:hover>li:not(:hover)>.menu-level-2 { display: none; }
 body.template-13 #navigation .navigation-in>.menu-level-1>li.ext:hover>.menu-level-2 { display: flex; }
 body.template-13::before { transition: none; }
 body.template-13:has(#navigation .navigation-in>.menu-level-1>li.ext:hover)::before { background-color: rgba(0,0,0,.3); opacity: 1; z-index: 1002; }
}

/* Na nízkém desktopu zachovat nativní posuv vysokých nabídek. */
@media(min-width:768px) and (max-height:900px) {
 body.template-13 #navigation .navigation-in>.menu-level-1>li>.menu-level-2 { overflow: auto; box-shadow: 0 0 0 150vw #fff; clip-path: inset(0 -150vw); }
 body.template-13 #navigation .navigation-in>.menu-level-1>li>.menu-level-2::before { content: none; }
}

/* Clearfix pseudo-prvky nesmi vytvaret dalsi flex mezery v hlavicce. */
@media(min-width:768px) { body.template-13 #header .header-top-wrapper::before,body.template-13 #header .header-top-wrapper::after { display: none; } }
@media(max-width:767px) { body.template-13.mobile-header-version-1 #header .site-name { padding-left: 0; } }

/* Mobilní hledání: původní ikonka Disco a celá bílá posuvná plocha. */
@media(max-width:767px){
body.template-13.mobile-header-version-1 #header .header-top-wrapper .search-form .search-button{display:none}
body.template-13.mobile-header-version-1 #header .header-top-wrapper .search-input{padding-left:46px;border-right:1px solid #767676;border-radius:var(--es-radius)}
body.template-13.mobile-header-version-1 #header .search-input-icon{display:flex;left:0;top:0;width:44px;height:44px;transform:none;z-index:1;color:var(--es-ink)}
body.template-13 #header .search-input-icon:before{content:"";width:22px;height:22px;background:currentColor;mask:var(--es-icon-search) center/contain no-repeat}
body.template-13:is(.search-focused,.search-window-visible) #header .search-input-icon:before{mask-image:var(--es-icon-close)}
body.template-13 #header .search-input-icon:focus-visible{outline:2px solid var(--es-action);outline-offset:-4px;border-radius:var(--es-radius)}
html:has(>body.template-13:is(.search-focused,.search-window-visible)){overflow:hidden;scrollbar-gutter:auto;overflow-anchor:none;overscroll-behavior:none}
body.template-13.search-focused:before{background:#fff}
body.template-13.search-focused #header{transform:none!important;width:100vw;transition:none}
body.template-13.mobile-header-version-1.search-focused #header .searchWhisperer{position:fixed;inset:94px 0 0;width:100vw;height:auto;max-height:none;margin:0;padding:10px 12px max(20px,env(safe-area-inset-bottom));background:#fff;box-shadow:none;overflow:auto;overscroll-behavior:contain;align-content:flex-start}
}

@media(max-width:767px){body.template-13.mobile-header-version-1 #header .header-top-wrapper .search-input{transition-property:background-color,border-color,color,box-shadow}}
