/* Hide duplicate cart icon from ets_megamenu */
.ets_megamenu_box .shopping_cart,
.ets_megamenu_box .cart-icon-wrap,
.ets_megamenu_box [class*='ets-cart'] {
  display: none !important;
}
/* Hide ets_megamenu auto-shown search panel '\''Przydatne linki'\'' overlay */
.ets-mm-search-box .search-suggestions,
.ets_megamenu_searchbox .ets_mm_search_result {
  display: none !important;
}

/* === Category page: fix price/cart overlap === */
#category .product-miniature .product-price-and-shipping,
.product-list .product-miniature .product-price-and-shipping,
body.category .product-miniature .product-price-and-shipping {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 8px;
}
#category .product-miniature .price,
body.category .product-miniature .price {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px !important;
  font-weight: 600;
}
#category .product-miniature .cart,
#category .product-miniature .rounded-btn.add-to-cart,
body.category .product-miniature .add-to-cart {
  position: relative !important;
  flex: 0 0 auto;
}

/* Category title clipping fix */
#category .product-miniature .product-title,
#category .product-miniature .product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  min-height: 2.6em;
}

/* Lewa kolumna: ukryj label "Strona główna" - to z categorytree gdy puste */
#left-column .block-categories .category-top-menu li.category > a[href="/"],
#left-column .ps_categorytree .menu-top {
  /* keep but hide root reference */
}

/* === Faceted search: full label text === */
#search_filters .facet-label,
#search_filters_wrapper .facet-label,
.faceted-slider .ui-slider,
#search_filters .facet-title,
#search_filters .custom-checkbox span,
#search_filters .facet ul li label,
#search_filters_wrapper label {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  max-width: none !important;
  font-size: 13px;
}
#search_filters .custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
#search_filters .facet {
  margin-bottom: 16px;
}
#search_filters .facet-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* === FIX category facet labels - was 50x50 box (kolory) === */
body.page-category #search_filters .facet .facet-label,
body.page-category #search_filters_wrapper #search_filters .facet .facet-label {
  width: auto !important;
  height: auto !important;
  margin: 3px 0 !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}
body.page-category #search_filters .facet .facet-label a {
  flex: 1;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
  color: #444 !important;
  text-decoration: none;
}
body.page-category #search_filters .facet .facet-label a:hover {
  color: #c1906f !important;
}
body.page-category #search_filters_wrapper #search_filters .facet .facet-label.active::after {
  display: none !important;
}
body.page-category #search_filters_wrapper #search_filters .h6,
body.page-category #search_filters .facet-title.h6 {
  display: block !important;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 16px 0 10px;
  color: #232323;
}
body.page-category #search_filters_wrapper #search_filters .facet .collapse li {
  display: list-item !important;
  list-style: none;
}
body.page-category #search_filters .magnitude {
  color: #999;
  font-size: 12px;
  margin-left: 4px;
}

/* === Home: new products slider spacing and equal-height cards === */
body#index .pos_new_product.product_block_container {
  padding: 48px 0 16px !important;
}
body#index .pos_new_product .pos-header-row {
  margin-bottom: 24px;
}
body#index .pos_new_product .pos_content {
  margin-right: 0;
  margin-left: 0;
}
body#index .pos_new_product .newSlide .owl-stage {
  display: flex;
}
body#index .pos_new_product .newSlide .owl-item {
  display: flex;
  height: auto;
}
body#index .pos_new_product .newSlide .item-product,
body#index .pos_new_product .newSlide .product-miniature {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
body#index .pos_new_product .newSlide .img_block {
  flex: 0 0 auto;
}
body#index .pos_new_product .newSlide .product_desc,
body#index .pos_new_product .newSlide .inner_desc {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
}
body#index .pos_new_product .newSlide .inner_desc > div:first-child {
  padding: 16px 16px 0 !important;
}
body#index .pos_new_product .newSlide h3 {
  margin: 0 0 8px;
  min-height: 44px;
}
body#index .pos_new_product .newSlide .product_name {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  line-height: 22px;
  text-align: left;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body#index .pos_new_product .newSlide .product-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 40px;
  margin: 0 0 8px;
  line-height: 20px;
  text-align: left;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body#index .pos_new_product .newSlide .product-feature {
  min-height: 20px;
  margin-bottom: 8px;
  line-height: 20px;
  text-align: left;
}
body#index .pos_new_product .newSlide .inner_desc > .flex {
  margin-top: auto;
  padding: 12px 16px 16px;
}
body#index .pos_new_product .owl-nav {
  margin-top: 20px;
  margin-right: 8px;
}

@media (max-width: 767px) {
  body#index .pos_new_product.product_block_container {
    padding-top: 32px !important;
  }
  body#index .pos_new_product .pos-header-row {
    margin-bottom: 16px;
  }
  
  body#index .pos_new_product .newSlide .inner_desc > div:first-child {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }
  body#index .pos_new_product .newSlide .inner_desc > .flex {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* Header help dropdown, positioned immediately before the language selector. */
#header .header-nav .yokaba-pomoc-dropdown {
  position: relative;
  z-index: 20;
  order: 2;
  margin-right: 0;
  margin-left: 24px;
  font-family: Montserrat, sans-serif;
}
#header .header-nav #_desktop_language_selector {
  order: 1;
}
#header .header-nav .yokaba-pomoc-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0;
  color: #413f3d;
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
  cursor: pointer;
}
#header .header-nav .yokaba-pomoc-dropdown__trigger svg {
  transition: transform 0.2s ease;
}
#header .header-nav .yokaba-pomoc-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 30;
  display: block;
  visibility: hidden;
  min-width: 210px;
  margin: 0;
  padding: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
  list-style: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}
#header .header-nav .yokaba-pomoc-dropdown:hover .yokaba-pomoc-dropdown__menu,
#header .header-nav .yokaba-pomoc-dropdown:focus-within .yokaba-pomoc-dropdown__menu,
#header .header-nav .yokaba-pomoc-dropdown.is-open .yokaba-pomoc-dropdown__menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}
#header .header-nav .yokaba-pomoc-dropdown:hover .yokaba-pomoc-dropdown__trigger svg,
#header .header-nav .yokaba-pomoc-dropdown:focus-within .yokaba-pomoc-dropdown__trigger svg,
#header .header-nav .yokaba-pomoc-dropdown.is-open .yokaba-pomoc-dropdown__trigger svg {
  transform: rotate(180deg);
}
#header .header-nav .yokaba-pomoc-dropdown__item {
  margin: 0;
  padding: 0 18px;
}
#header .header-nav .yokaba-pomoc-dropdown__title,
#header .header-nav .yokaba-pomoc-dropdown__link {
  display: block;
  padding: 9px 0;
  color: #413f3d;
  font-size: 12px;
  line-height: 16px;
}
#header .header-nav .yokaba-pomoc-dropdown__title {
  padding-top: 16px;
  font-weight: 600;
}
#header .header-nav .yokaba-pomoc-dropdown__link:hover,
#header .header-nav .yokaba-pomoc-dropdown__link:focus {
  color: #9c9892;
}
#header .header-nav .yokaba-pomoc-dropdown__item--phone {
  margin-top: 7px;
  padding: 0;
  background: #f7f7f7;
}
#header .header-nav .yokaba-pomoc-dropdown__phone {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  color: #413f3d;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
