/* Zobrazení 3. úrovně kategorií v menu na desktopu */
@media (min-width: 768px) {
  /* Odkryje vnořené collapse kontejnery uvnitř submenu */
  #top-menu .sub-menu div.collapse {
    display: block !important;
    height: auto !important;
  }

  /* --- Úroveň 1: Hlavní podkategorie (např. "Horská") --- */
  #header .top-menu[data-depth="1"] > li > a.dropdown-item {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    padding-bottom: 0.3rem !important;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid #e0e0e0;
  }

  /* --- Úroveň 2: Podpodkategorie (např. "Horská 27,5") --- */
  #header .top-menu[data-depth="2"] {
    padding-left: 0.6rem;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
  }

  #header .top-menu[data-depth="2"] > li > a.dropdown-item {
    font-weight: 400 !important;
    font-size: 0.78rem !important;
    text-transform: none !important;
    color: #666 !important;
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
  }

  #header .top-menu[data-depth="2"] > li > a.dropdown-item:hover {
    color: #000 !important;
  }
}

/* Mobilní zobrazení */
@media (max-width: 767px) {
  .top-menu[data-depth="2"] {
    padding-left: 1.2rem;
  }

  #header .top-menu[data-depth="2"] > li > a.dropdown-item {
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    color: #666 !important;
  }
}

.lf-header-search .language-selector-wrapper {
  flex: 0 0 auto;      /* nesmí se roztahovat */
  margin: 0 .5rem 0 0;
  font-size: .8125rem;
  white-space: nowrap;
}

.lf-header-search .language-selector-wrapper .dropdown-menu {
  right: 0;
  left: auto;          /* aby nevylezlo z pravého okraje */
  min-width: 120px;
}

.lf-menu-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

/* --- Modál s obrázkem produktu --- */
#product-modal .modal-dialog {
  max-width: 92vw;
  width: 92vw;
  margin: 1rem auto;
}

/* náhledy pod fotku místo vedle ní */
#product-modal .modal-content .modal-body {
  flex-direction: column;
  align-items: center;
  margin-left: 0;
}

#product-modal .modal-content .modal-body figure {
  margin: 0 0 1rem;
  max-width: 100%;
}

#product-modal .modal-content .modal-body img.product-cover-modal {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}

/* pás náhledů na šířku */
#product-modal .modal-content .modal-body .thumbnails { width: 100%; }

#product-modal .modal-content .modal-body .mask {
  max-height: none;
  margin-top: 0;
  overflow: visible;
}

#product-modal .modal-content .modal-body .product-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

#product-modal .modal-content .modal-body .product-images li { margin: 0; }
#product-modal .modal-content .modal-body .product-images img { width: 5rem; height: auto; }

/* šipky nahoru/dolů patřily ke svislému pásu, teď nedávají smysl */
#product-modal .modal-content .modal-body .arrows { display: none; }

#product-modal .modal-dialog,
#product-modal .modal-content,
#product-modal .modal-content .modal-body,
#product-modal .modal-content .modal-body figure,
#product-modal .modal-content .modal-body .thumbnails,
#product-modal .modal-content .modal-body .mask,
#product-modal .modal-content .modal-body .product-images {
  pointer-events: none;
}

#product-modal .modal-content .modal-body img.product-cover-modal,
#product-modal .modal-content .modal-body .product-images img {
  pointer-events: auto;
}

/* Křížek vpravo nahoře. Klik jím propadne na .modal, takže zavírá. */
#product-modal .modal-content::after {
  content: "×";
  position: fixed;
  top: .5rem;
  right: 1.5rem;
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 4px rgba(0,0,0,.6);
  pointer-events: none;
}