/* Základné nastavenia */
:root {
  --top-band-height: 25px;
  --top-band-bg: #f0f3f2;
}

body,
button,
input,
textarea,
select,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

body {
  color: #333333 !important;
}

/* Horný pás, kontakty a menu */
.top-bar,
.topPanel,
#topPanel,
.topPanel #ce_menu,
.topPanel #ce_menu ul ul,
.topPanel #ce_menu ul ul li,
.topPanel #ce_menu ul ul a {
  background-color: var(--top-band-bg) !important;
}

.topPanel,
.topPanel .w-page-width {
  min-height: var(--top-band-height) !important;
}

.topPanel #ce_menu a,
.topPanel #ce_menu a:hover,
.topPanel #ce_menu a:focus,
.topPanel #ce_menu li:focus-within > a {
  color: #333333 !important;
  font-weight: 400 !important;
}

.topPanel #ce_menu > ul,
.topPanel #ce_menu > ul > li,
.topPanel .w-page-width > :not(#ce_menu) {
  line-height: var(--top-band-height) !important;
}

.topPanel #ce_menu > ul {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.topPanel #ce_menu > ul > li > a {
  display: inline-block !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 20px !important;
  vertical-align: middle !important;
}

/* Krátke deliace čiarky medzi hornými odkazmi */
.topPanel #ce_menu > ul > li + li {
  border-left: 0 !important;
}

.topPanel #ce_menu > ul > li + li > a {
  padding-left: 14px !important;
  background: linear-gradient(rgba(51, 51, 51, 0.25), rgba(51, 51, 51, 0.25)) left center / 1px 12px no-repeat !important;
}

/* Kontaktný riadok má rovnakú výšku ako sivý pás a je o 5 px vyššie. */
.header_main_info {
  display: flex !important;
  align-items: center !important;
  height: var(--top-band-height) !important;
  top: calc(-1 * var(--top-band-height) - 8px) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.header_main_info > div {
  line-height: normal !important;
}

.topPanel #ce_menu li:hover > a,
.topPanel #ce_menu li:focus-within > a,
.topPanel #ce_menu .dropdown-menu {
  background-color: var(--top-band-bg) !important;
}

.topPanel #ce_menu li:not(:has(> ul)):hover,
.topPanel #ce_menu li:not(:has(> ul)):focus-within {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.topPanel #ce_menu li:not(:has(> ul)):hover::before,
.topPanel #ce_menu li:not(:has(> ul)):hover::after,
.topPanel #ce_menu li:not(:has(> ul)):focus-within::before,
.topPanel #ce_menu li:not(:has(> ul)):focus-within::after,
.topPanel #ce_menu li:not(:has(> ul)):hover > a::before,
.topPanel #ce_menu li:not(:has(> ul)):hover > a::after,
.topPanel #ce_menu li:not(:has(> ul)):focus-within > a::before,
.topPanel #ce_menu li:not(:has(> ul)):focus-within > a::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
}

.topPanel #ce_menu li:has(> ul)::after,
.topPanel #ce_menu li:has(> ul) > a::after,
.topPanel #ce_menu .dropdown-toggle::after,
.topPanel #ce_menu .menu-arrow,
.topPanel #ce_menu .submenu-arrow,
.topPanel #ce_menu .dropdown-arrow,
.topPanel #ce_menu .fa-angle-down,
.topPanel #ce_menu .fa-chevron-down,
.topPanel #ce_menu .glyphicon-chevron-down,
.topPanel #ce_menu .arrow {
  color: #333333 !important;
  border-top-color: #333333 !important;
  filter: none !important;
}

.topPanel #ce_menu li:has(> ul) > a::after {
  display: inline-block !important;
  position: relative !important;
  top: 0 !important;
  margin-left: 7px !important;
  vertical-align: middle !important;
}

/* Vyhľadávanie a rozšírené návrhy */
.productSearch {
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

.productSearch form {
  background: #ffffff !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 50px !important;
  overflow: visible !important;
}

#btn_search-list-category,
#txtb_searchProduct,
.txtbSearchButton {
  background-color: transparent !important;
  border: 0 !important;
}

.txtbSearchButton {
  border-radius: 0 50px 50px 0 !important;
  background-image: url("/storage/web/ikonky/searchButton.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 20px 20px !important;
}

#productSearchOut {
  overflow: visible !important;
}

/* Kategórie a podkategórie */
.mainPanel,
.mainPanel .eshopCategory,
.mainPanel #l1 > li,
.mainPanel #l1 > li > a {
  background: #ffffff !important;
  border: 0 !important;
}

.mainPanel {
  padding-top: 10.8px !important;
  margin-bottom: -11.3px !important;
}

.mainPanel #l1 > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 12px;
  color: #1b574a !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.mainPanel #l1 > li > a::after {
  content: "" !important;
  display: inline-block !important;
  position: relative;
  top: -2px;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border: solid currentColor !important;
  border-width: 0 1.5px 1.5px 0 !important;
  transform: rotate(45deg);
}

.mainPanel #l1 > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: calc(100% - 24px);
  height: 2px;
  background: #ffc000;
  opacity: 0;
  transition: opacity 120ms ease-in-out;
}

.mainPanel #l1 > li:hover > a::before,
.mainPanel #l1 > li:focus-within > a::before {
  opacity: 1;
}

#eshopCategory #l1 ul,
#eshopCategory #l1 ul li,
#eshopCategory #l1 ul li > a,
#categoryPanel,
.categoryPanel,
#categoryPanel li,
#categoryPanel a,
.categoryPanel li,
.categoryPanel a {
  background: #f0f8f4 !important;
}

/* Ikony v hlavičke: sprite jednotlivých stavov */
#loginUser .loginLink {
  display: block;
  width: 36px;
  height: 32px;
  overflow: hidden;
  background: url("/storage/web/ikonky/login_icon.svg") 0 0 / 154px 32px no-repeat !important;
}

#loginUser:hover .loginLink {
  background-position: -40.4px 0 !important;
  transform: translate(-1px, 1px);
}

#loginUser:not(:has(.loginLink[href*="login"])) .loginLink {
  background-position: -76.8px 0 !important;
}

#loginUser:not(:has(.loginLink[href*="login"])):hover .loginLink {
  background-position: -116.4px 0 !important;
  transform: translate(-1px, 1px);
}

#wishlist-link {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: url("/storage/web/ikonky/clickeshop-icons.svg") 0 0 / 104px 32px no-repeat !important;
}

#wishlist-link:is(.active, .selected, .filled, .favorited, .in-favorites) {
  background-position: -36px 0 !important;
}

#wishlist-link:hover,
#wishlist-link:is(.active, .selected, .filled, .favorited, .in-favorites):hover {
  background-position: -72px 0 !important;
  transform: translate(-1px, 1px);
}

#shoppingCart .s-img {
  display: inline-block;
  width: 33px;
  height: 32px;
  background: url("/storage/web/ikonky/cart_icon.svg") 0 0 / 66px 32px no-repeat !important;
}

#shoppingCart:hover .s-img {
  background-position: -33px 0 !important;
  transform: translate(-1px, 1px);
}

#shoppingCart .s-link {
  position: relative !important;
  display: inline-block;
}

#shoppingCart #order_products_quantity {
  position: absolute !important;
  top: -12px !important;
  left: 17px !important;
  z-index: 2;
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  background: #016b47 !important;
  color: #ffffff !important;
  font-size: 10px;
  text-align: center;
}

/* Výška desktopovej hlavičky a mierne zväčšené logo */
#header-logo img {
  transform: scale(1.2) !important;
  transform-origin: center !important;
}

@media only screen and (min-width: 801px) {
  .header {
    padding-bottom: 10px !important;
  }

  #header-logo,
  #productSearchOut,
  #headerComponents {
    transform: translateY(10px) !important;
  }
}

/* Mobilná hlavička */
@media only screen and (max-width: 800px) {
  .header {
    min-height: auto !important;
  }

  .header,
  .header .w-page-width,
  #pageHeaderContent,
  #headerComponents {
    background-color: #ffffff !important;
  }

  .header .w-page-width {
    position: relative !important;
  }

  #pageHeaderContent {
    position: static !important;
    height: 0 !important;
    overflow: visible !important;
  }

  #headerComponents {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    min-height: 54px !important;
    box-sizing: border-box !important;
    gap: 12px !important;
    padding-left: 48px !important;
  }

  #header-logo {
    position: absolute !important;
    left: calc(50% - 44px) !important;
    top: auto !important;
    bottom: 8px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    z-index: 10001 !important;
  }

  #header-logo img {
    max-height: 40px !important;
    width: auto !important;
  }

  /* Mobilná lupa používa rovnaké SVG vo veľkosti pôvodnej lupy. */
  #headerComponents #search_trg {
    display: inline-block !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    background: url("/storage/web/ikonky/searchButton.svg") center / 20px 20px no-repeat !important;
    color: transparent !important;
    font-size: 0 !important;
  }

  #headerComponents #search_trg::before,
  #headerComponents #search_trg::after {
    content: none !important;
    display: none !important;
  }

  #loginUser .loginLink {
    width: 22.5px !important;
    height: 20px !important;
    background-size: 96.25px 20px !important;
    background-position: 0 0 !important;
  }

  #loginUser:hover .loginLink {
    background-position: -25.25px 0 !important;
  }

  #loginUser:not(:has(.loginLink[href*="login"])) .loginLink {
    background-position: -48px 0 !important;
  }

  #loginUser:not(:has(.loginLink[href*="login"])):hover .loginLink {
    background-position: -72.75px 0 !important;
  }

  #wishlist-link {
    width: 20px !important;
    height: 20px !important;
    background-size: 65px 20px !important;
    background-position: 0 0 !important;
  }

  #wishlist-link:is(.active, .selected, .filled, .favorited, .in-favorites) {
    background-position: -22.5px 0 !important;
  }

  #wishlist-link:hover,
  #wishlist-link:is(.active, .selected, .filled, .favorited, .in-favorites):hover {
    background-position: -45px 0 !important;
  }

  #shoppingCart .s-img {
    width: 20.6px !important;
    height: 20px !important;
    background-size: 41.25px 20px !important;
    background-position: 0 0 !important;
  }

  #shoppingCart:hover .s-img {
    background-position: -20.6px 0 !important;
  }

  #shoppingCart #order_products_quantity {
    top: -7px !important;
    left: 10px !important;
    width: 14px;
    height: 14px;
    line-height: 14px;
    font-size: 9px;
  }

  #res-main_trg {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 50% !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    transform-origin: center !important;
  }

  /* Preklopí sa grafika menu, nápis Menu zostáva čitateľný. */
  #res-main_trg::before {
    transform: scaleX(-1) !important;
    transform-origin: center !important;
  }

  #headerComponents > #search_trg,
  #headerComponents > #loginUser,
  #headerComponents > #wishlist-link,
  #headerComponents > #shoppingCart {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  /* Vyhľadávanie sa otvára pod mobilnou hlavičkou. */
  #productSearchOut {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    z-index: 10010 !important;
    background: #ffffff !important;
  }

  #productSearchOut .productSearch,
  #productSearchOut form {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  #productSearchOut input#txtb_searchProduct {
    width: calc(100% - 52px) !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
}