/* Chocolenka: bridge the native 768px navigation and the 992px desktop design.
   Load after the existing header, content-polish and menu-cart styles. */
@media (min-width: 768px) and (max-width: 991px) {
  .top-navigation-bar { min-height: 52px; border-top: 0px; border-bottom: 1px solid rgb(234, 215, 191); box-shadow: rgba(74, 43, 21, 0.035) 0px 5px 18px; background: rgb(255, 250, 244) !important; }
  .top-navigation-bar > .container { gap: 14px 24px; min-height: 51px; padding-top: 7px; padding-bottom: 7px; display: flex !important; align-items: center !important; }
  .top-navigation-bar .top-navigation-menu { min-width: 0px; min-height: 36px; flex: 1 1 auto !important; width: auto !important; padding: 0px !important; background: transparent !important; }
  .top-navigation-bar-menu { gap: 3px 4px; min-height: 36px; }
  .top-navigation-bar-menu > li, .top-navigation-bar-menu > li.cropped { min-height: 34px; }
  .top-navigation-bar-menu > li::before, .top-navigation-bar-menu > li::after { display: none !important; content: none !important; }
  .top-navigation-bar-menu > li > a { min-height: 34px; border-radius: 9px; font-size: 12px; font-weight: 650; line-height: 1.15; letter-spacing: 0.015em; transition: color 0.18s, background-color 0.18s; padding: 8px !important; color: rgb(92, 73, 61) !important; text-transform: uppercase !important; }
  .top-navigation-bar-menu > li > a:hover, .top-navigation-bar-menu > li > a:focus-visible { background: rgb(243, 228, 210); text-decoration: none; color: rgb(107, 53, 19) !important; }
  .top-navigation-bar .top-navigation-tools { min-width: max-content; min-height: 38px; align-self: center; align-items: center; gap: 2px; border: 1px solid rgb(234, 215, 191); border-radius: 12px; flex: 0 0 auto !important; width: max-content !important; padding: 3px 5px 3px 8px !important; background: rgb(255, 255, 255) !important; }
  .top-navigation-tools .responsive-tools { flex: 0 0 0px; width: 0px; min-width: 0px; overflow: hidden; }
  .top-navigation-tools .dropdown, .top-navigation-tools .languagesMenu, .top-navigation-tools > a, .top-navigation-tools > button { min-height: 30px; }
  .top-navigation-tools > a, .top-navigation-tools > button, .top-navigation-tools .dropdown-toggle, .top-navigation-tools .languagesMenu__flags { border-radius: 8px; }
  .top-navigation-tools > a:hover, .top-navigation-tools > button:hover, .top-navigation-tools .dropdown-toggle:hover, .top-navigation-tools .languagesMenu__flags:hover { background-color: rgb(247, 236, 223); }
}
@media (min-width: 768px) and (max-width: 991px) {
  #header .container.navigation-wrapper { max-width: 1380px; padding-inline: 30px; }
  #header #navigation { width: calc(100% + 60px); margin-left: -30px; margin-right: -30px; }
  #header .header-top {
    min-height: 108px;
    display: grid;
    grid-template-columns: 180px minmax(520px, 1fr) 200px;
    grid-template-areas: "logo search cart";
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    padding: 14px 0;
  }
  #header .site-name-wrapper { grid-area: logo; position: static; width: auto; height: auto; margin: 0; }
  #header .site-name { margin: 0; text-align: left; }
  #header .site-name a { display: inline-flex; align-items: center; min-height: 72px; }
  #header .site-name img { width: 164px; max-width: 100%; max-height: 76px; object-fit: contain; }
  #header .header-top > .search {
    grid-area: search;
    position: static;
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 270px;
    grid-template-areas: "form contact";
    align-items: center;
    gap: clamp(22px, 2.5vw, 38px);
    margin: 0 auto;
  }
  #header .top-navigation-contacts.search-con {
    grid-area: contact;
    width: auto;
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: start;
    gap: 5px;
    margin: 0;
    color: #603914;
    font-size: 13px;
  }
  #header .top-navigation-contacts .con-txt { width: auto; padding: 0; }
  #header .top-navigation-contacts .con-con { width: auto; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 14px; }
  #header .top-navigation-contacts .con-txt > :nth-child(n+2),
  #header .top-navigation-contacts .con-con > :nth-child(n+3) { display: none !important; }
  #header .top-navigation-contacts strong { color: #351d0d; font-size: 13px; }
  #header .top-navigation-contacts a { color: #603914; font-size: 12px; font-weight: 700; text-decoration: none; }
  #header .top-navigation-contacts a:hover { color: #c97921; }
  #header .search-form { grid-area: form; width: 100%; max-width: 660px; margin: 0; justify-self: start; }
  #header .search-form > fieldset { display: flex; width: 100%; padding: 4px; overflow: hidden; border: 1px solid #ddcdbb; border-radius: 999px; background: #fff; transition: border-color .18s ease,box-shadow .18s ease; }
  #header .search-form > fieldset:focus-within { border-color: #c97921; box-shadow: 0 0 0 3px rgba(201,121,33,.12); }
  #header .search-form .search-input { height: 44px; padding-inline: 16px 14px; border: 0 !important; border-radius: 999px 0 0 999px; background: transparent; box-shadow: none !important; }
  #header .search-form button[type="submit"] { min-width: 44px !important; width: 44px !important; height: 44px !important; flex: 0 0 44px !important; margin: 0 !important; padding: 0 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; overflow: hidden !important; border: 0 !important; border-radius: 50% !important; background: #6a3b17 !important; color: #fff !important; font-size: 0 !important; line-height: 0 !important; box-shadow: 0 3px 10px rgba(96,57,20,.18); transition: background .18s ease, box-shadow .18s ease; }
  #header .search-form button[type="submit"]::before { content: "" !important; width: 18px !important; height: 18px !important; flex: 0 0 18px !important; display: block !important; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.2 4.2'/%3E%3C/svg%3E") center / contain no-repeat !important; }
  #header .search-form button[type="submit"]:hover { background: #c97921; box-shadow: 0 4px 12px rgba(96,57,20,.24); }
  #header .navigation-buttons { grid-area: cart; position: static; width: auto; margin: 0; justify-self: end; display: flex !important; }
  #header .navigation-buttons .cart-count {
    min-width: 180px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid #eadccd;
    border-radius: 10px;
    background: #fcfaf6;
    color: #603914;
    box-shadow: none;
  }
  #header .navigation-buttons .cart-count:hover { border-color: #c97921; background: #fff8ef; color: #351d0d; }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Mobile notice offsets reserve a fixed 50px header that does not exist here. */
  html body .site-msg.information { position: relative !important; inset: auto !important; }
  html body .overall-wrapper { padding-top: 0 !important; }
  html body .top-navigation-bar, html body #header { top: auto !important; }
  html body .top-navigation-bar > .container {
    width: calc(100% - 40px); max-width: none; padding: 6px 0;
    gap: 8px 16px;
  }
  html body .top-navigation-bar .top-navigation-menu { flex: 1 1 0 !important; }
  .top-navigation-bar-menu { gap: 0 2px; }
  .top-navigation-bar-menu > li > a { padding: 7px 6px !important; font-size: 11px; }
  #header .container.navigation-wrapper { width: calc(100% - 40px); max-width: none; padding: 0; }
  #header .header-top {
    grid-template-columns: 120px minmax(0, 1fr) 60px;
    min-height: 104px; height: auto; gap: 20px; padding: 16px 0;
  }
  #header .site-name img { width: 116px; max-height: 68px; }
  #header .header-top > .search { display: block; min-width: 0; margin: 0; }
  #header .top-navigation-contacts.search-con { display: none !important; }
  #header .search-form { min-width: 0; max-width: none; }
  #header .search-form > fieldset { min-width: 0; }
  #header .search-form .search-input { min-width: 0; width: 100%; font-size: 16px; }
  #header .navigation-buttons { min-width: 0; width: 60px; }
  #header .navigation-buttons .cart-count {
    position: relative; width: 60px; min-width: 60px; min-height: 54px; padding: 8px;
    gap: 0;
  }
  /* The native icon reserves 20px for desktop cart text, hidden at this width. */
  #header .navigation-buttons .cart-count::before {
    margin: 0;
    flex: 0 0 auto;
  }
  #header .navigation-buttons .cart-count > i {
    left: auto;
    right: 6px;
    top: 4px;
  }
  #header #navigation { width: 100%; margin: 0; border-radius: 8px 8px 0 0; }
  #header #navigation .navigation-in { border-radius: 8px 8px 0 0; }
  #header #navigation .menu-level-1 > li:first-child > a { border-top-left-radius: 8px; }
  body.in-index .before-carousel { padding-top: 0 !important; }
  body.in-index .before-carousel .content-wrapper-in > .container {
    width: calc(100% - 40px) !important; max-width: none !important;
    margin-inline: auto !important; padding: 0 !important;
  }
  body.in-index .before-carousel .banners-row { margin: 0 0 26px !important; }
  body.in-index .carousel-inner { border-radius: 0 0 8px 8px !important; }
  body.in-kosik #header .header-top { grid-template-columns: 120px minmax(0, 1fr); }
  body.in-kosik #header .navigation-buttons { display: none !important; }
}


/* Chocolenka: větší kategorie podle schváleného návrhu, 2026-11-13. */
html body.in-index .chocolenka-banners {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
html body.in-index .chocolenka-banners .chocolenka-banner {
  width: 100% !important;
  margin: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 2.4 / 1;
  border-radius: 12px;
}
html body.in-index .chocolenka-banners .chocolenka-banner::before {
  background: linear-gradient(0deg, rgba(31,16,7,.72), rgba(31,16,7,.12) 75%);
}
html body.in-index .chocolenka-banners .chocolenka-banner > span {
  top: auto !important;
  left: 28px !important;
  right: 64px !important;
  bottom: 28px !important;
  width: auto !important;
  padding: 0 !important;
  transform: none !important;
  background: transparent !important;
  font-size: clamp(22px, 2.4vw, 32px) !important;
  line-height: 1.15 !important;
  text-align: left !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
html body.in-index .chocolenka-banners .chocolenka-banner::after {
  content: "";
  right: 24px;
  bottom: 28px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-7-7 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body.in-index .chocolenka-banners .chocolenka-banner:focus-visible {
  outline: 3px solid #b8792d;
  outline-offset: 4px;
}
@media (max-width: 991px) {
  html body.in-index .chocolenka-banners { gap: 16px; }
  html body.in-index .chocolenka-banners .chocolenka-banner > span {
    left: 20px !important;
    right: 54px !important;
    bottom: 20px !important;
  }
  html body.in-index .chocolenka-banners .chocolenka-banner::after { right: 18px; bottom: 20px; width: 24px; height: 24px; }
}
@media (max-width: 560px) {
  html body.in-index .chocolenka-banners { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}


/* Chocolenka: schválený kompaktní rozcestník Pro každou příležitost.
   Verze 2026-11-13. Načíst za stávající homepage styly. */
@media (min-width: 768px) and (max-width: 1199px) {
  body.in-index .zl-subcat-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
    margin-bottom: 40px;
  }
  body.in-index .zl-subcat-card {
    min-width: 0;
    min-height: 310px;
    padding: 20px 16px 16px;
  }
  body.in-index .zl-subcat-header h2 {
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 14px;
  }
  body.in-index .zl-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
  }
  body.in-index .zl-subcat-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 30px;
  }
  body.in-index .zl-subcat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 8px 4px;
  }
  body.in-index .zl-subcat-label {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }
  body.in-index .zl-subcat-icon { font-size: 17px; margin-bottom: 4px; }
  body.in-index .zl-subcat-wrapper a:focus-visible {
    outline: 3px solid #f0bd77;
    outline-offset: 3px;
  }
}


/* Chocolenka: odstranit původní světlou čáru těsně nad nadpisy zápatí.
   Verze 2026-11-13. Načíst za stávající styly zápatí. */
html body #footer .custom-footer {
  border-top: 0;
}
