/* === SIATKA PRODUKTOW === */
.products .product-miniature .product-title {
  height: auto !important;
  max-height: 64px !important;
  overflow: hidden;
}
.products .product-miniature .product-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal !important;
}
.block-social { display: none !important; }
.tabs .nav-tabs[style*="display:none"] {
  margin: 0 !important; padding: 0 !important; border: none !important;
}

/* === STRONA PRODUKTU === */
#product .product_name {
  font-size: 26px;
  line-height: 1.3;
  margin-top: 12px;
  margin-bottom: 0;
  padding-bottom: 0 !important;
}
#product .product-reference_top {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  overflow: visible !important;
  display: block !important;
  line-height: 1.2;
  min-height: 0;
}
#product .product-reference_top .label,
#product .product-reference_top span {
  color: #fff;
  font-size: 12px;
}
#product .product-information {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
#product .product-variants {
  margin: 0 !important;
  padding: 0 !important;
}

/* --- CENA --- */
#product .product-prices {
  margin-top: 20px !important;
  padding-top: 18px !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}
#product .product-prices .product-price { float: none !important; margin: 0 !important; }
#product .product-prices .product-discount { float: none !important; }
#product .product-prices .current-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
#product .product-prices .current-price .price {
  font-size: 34px !important;
  font-weight: 700 !important;
  color: #d4380d !important;
  line-height: 1;
}
#product .product-prices .tax-shipping-delivery-label {
  font-size: 13px; color: #888; margin: 2px 0 0 0;
}
#product .product-prices .clearfix,
#product .product-prices .product_additional_price,
#product .product-prices .shipping-delivery-label { display: none !important; }
#product .product-variants:empty,
#product .product-variants .allow_oosp_0:empty { display: none !important; }

/* --- ILOSC + PRZYCISK --- */
#product .product-add-to-cart { margin-top: 16px !important; padding: 0; }
#product .product-add-to-cart .product-quantity {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
#product .product-add-to-cart .control-label {
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
#product .product-add-to-cart .qty { flex-shrink: 0; }
#product .product-add-to-cart #quantity_wanted {
  font-size: 18px !important; height: 48px !important; width: 60px !important;
  text-align: center; border: 2px solid #ddd; border-radius: 4px;
}
#product .product-add-to-cart .add { flex: 1; }
#product .product-add-to-cart .btn.add-to-cart {
  width: 100% !important; font-size: 17px !important; padding: 13px 20px !important;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px;
}
#product .wishlist-button { display: none !important; }
#product #product-availability:empty,
#product .product-minimal-quantity:empty { display: none !important; }

/* --- BANER INFORMACYJNY --- */
.product-reassurance-custom {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 18px; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden;
}
.product-reassurance-custom .reassurance-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; background: #fafafa;
}
.product-reassurance-custom .reassurance-item:nth-child(2n) { border-right: none; }
.product-reassurance-custom .reassurance-item:nth-last-child(-n+2) { border-bottom: none; }
.product-reassurance-custom .reassurance-item i { font-size: 24px; color: #4a8c3f; }
.product-reassurance-custom .reassurance-item span { font-size: 14px; font-weight: 600; color: #333; }

/* === OPIS PRODUKTU === */
#description .product-description {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}
#description .product-description > table {
  width: 100%;
  border-collapse: collapse;
}
/* Każda sekcja (wiersz tabeli) */
#description .product-description > table > tbody > tr > td {
  padding: 18px 22px;
  vertical-align: top;
  border-bottom: 1px solid #e8e8e8;
}
#description .product-description > table > tbody > tr:last-child > td {
  border-bottom: none;
}
/* Nagłówki sekcji — accent bar po lewej, szare tło */
#description .product-description h2 {
  font-size: 15px !important;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 14px 0;
  padding: 9px 14px;
  border-left: 4px solid #2a7d2e;
  background-color: #f5f7f5;
  letter-spacing: 0.3px;
  text-transform: none;
  border-bottom: 2px solid #2a7d2e;
}
/* Listy parametrów */
#description .product-description ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#description .product-description li {
  font-size: 15px;
  line-height: 1.5;
  padding: 7px 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
#description .product-description li:last-child {
  border-bottom: none;
}
/* Zebra — naprzemienne tło na li */
#description .product-description li:nth-child(even) {
  background-color: #f9faf9;
}
#description .product-description li::before {
  content: none;
}
#description .product-description li b {
  color: #1a1a1a;
  font-weight: 600;
}
#description .product-description p {
  font-size: 15px; line-height: 1.7; margin: 6px 0 0 0; padding: 0 0 0 2px; color: #333;
}

/* === UKRYJ ANGARSLIDER (sample slides) === */
#angarslider,
.angarslider,
[id*="angarslider"],
[class*="angarslider"] {
  display: none !important;
}

/* === UKRYJ POLECANE KATEGORIE (angarhomecat) === */
#home_categories,
.home_categories,
[id*="home_categories"] {
  display: none !important;
}

/* === WYSZUKIWARKA - szerokość podpowiedzi jak pole input === */
ul.ui-autocomplete.searchbar-autocomplete {
  z-index: 99999 !important;
  box-sizing: border-box !important;
}
ul.ui-autocomplete li {
  white-space: normal !important;
  word-wrap: break-word;
}
/* Wysoka specyficzność — pokonujemy ul.ui-autocomplete.ui-corner-all li.ui-menu-item a z angartheme.css */
ul.ui-autocomplete.ui-corner-all li.ui-menu-item a,
ul.ui-autocomplete li.ui-menu-item a,
ul.ui-autocomplete li a {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}
/* Lewa kolumna — obrazek. Nadpisujemy float + width:16% */
ul.ui-autocomplete .ui-widget .search_left,
ul.ui-autocomplete li.ui-menu-item a span.search_left {
  float: none !important;
  width: auto !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
}
/* Base — mobile first. Na mobilce zostaje niskie do decyzji. */
ul.ui-autocomplete li.ui-menu-item a img.autocomplete-thumbnail {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain;
  display: block !important;
  margin: 0 !important;
}
/* Stare laptopy 1366×768 (~3% PL) — target głowny dolny */
@media (min-width: 1200px) {
  ul.ui-autocomplete li.ui-menu-item a img.autocomplete-thumbnail {
    width: 65px !important;
    height: 65px !important;
  }
  ul.ui-autocomplete li.ui-menu-item a span.search_name { font-size: 13px !important; }
  ul.ui-autocomplete li.ui-menu-item a span.search_price { font-size: 13px !important; }
}
/* Laptopy 1536×864 @125% DPI (11.77% PL desktop, #2) */
@media (min-width: 1500px) {
  ul.ui-autocomplete li.ui-menu-item a img.autocomplete-thumbnail {
    width: 75px !important;
    height: 75px !important;
  }
  ul.ui-autocomplete li.ui-menu-item a span.search_name { font-size: 14px !important; }
  ul.ui-autocomplete li.ui-menu-item a span.search_price { font-size: 14px !important; }
}
/* FullHD 1920×1080 (34.84% PL desktop, #1 — GLOWNY TARGET) */
@media (min-width: 1800px) {
  ul.ui-autocomplete li.ui-menu-item a img.autocomplete-thumbnail {
    width: 90px !important;
    height: 90px !important;
  }
  ul.ui-autocomplete li.ui-menu-item a span.search_name { font-size: 15px !important; }
  ul.ui-autocomplete li.ui-menu-item a span.search_price { font-size: 15px !important; }
}
/* QHD 2560×1440 (8.03% PL desktop) */
@media (min-width: 2400px) {
  ul.ui-autocomplete li.ui-menu-item a img.autocomplete-thumbnail {
    width: 110px !important;
    height: 110px !important;
  }
  ul.ui-autocomplete li.ui-menu-item a span.search_name { font-size: 16px !important; }
  ul.ui-autocomplete li.ui-menu-item a span.search_price { font-size: 16px !important; }
}
/* Prawa kolumna — tekst. Nadpisujemy float + width:84% + padding-left */
ul.ui-autocomplete .ui-widget .search_right,
ul.ui-autocomplete li.ui-menu-item a span.search_right {
  float: none !important;
  width: auto !important;
  flex: 1 1 auto !important;
  padding-left: 0 !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px;
  min-width: 0;
}
ul.ui-autocomplete li.ui-menu-item a span.search_name,
ul.ui-autocomplete li.ui-menu-item a span.search_brand,
ul.ui-autocomplete li.ui-menu-item a span.search_price {
  display: block !important;
  text-align: left !important;
  width: 100%;
  word-break: break-word;
  white-space: normal !important;
}
ul.ui-autocomplete li.ui-menu-item a span.search_name {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  color: #1a1a1a;
}
ul.ui-autocomplete li.ui-menu-item a span.search_price {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #d4380d !important;
  margin-top: 2px;
}
ul.ui-autocomplete li.ui-menu-item a span.clearfix {
  display: none !important;
}

/* === STOPKA === */
/* Ukryj newsletter */
.block_newsletter,
#footer .block_newsletter,
.footer-container .block_newsletter {
  display: none !important;
}
/* Wyrównaj kolumny stopki — 3 kolumny równej szerokości */
.footer-container .row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px 0;
}
.footer-container .footer-col {
  flex: 1 1 0;
  min-width: 220px;
  padding: 0 10px;
}
.footer-container .footer-title {
  font-size: 16px !important;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2a7d2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-container .footer-title a,
.footer-container .footer-title span {
  color: #fff;
}
.footer-container .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-container .footer-links li {
  padding: 5px 0;
}
.footer-container .footer-links li a {
  color: #d8d8d8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-container .footer-links li a:hover {
  color: #fff;
}

/* === HOME CAT PRODUCT — tytul produktu (2-3 linie) === */
#home_cat_product .product_container .right-block .name_block {
  margin-bottom: 6px;
}
#home_cat_product .product_container .right-block .product-name {
  display: -webkit-box !important;
  -webkit-line-clamp: 5 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  max-height: calc(1.25em * 5);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-transform: none !important;
}
/* Ukryj krotki opis (i tak jest ciety na 40 znakow) — zrobi miejsce na dluzszy tytul */
#home_cat_product .product_container .right-block .product-desc {
  display: none !important;
}

/* === HOME CAT PRODUCT — RESPONSYWNE SKALOWANIE BLOKOW === */
/* Uzywamy clamp() + vw do plynnego skalowania zaleznego od szerokosci okna.
   Kazda kolumna na mobile to wask (~25% szerokosci okna po rozlozeniu col-xs-12 col-sm-3),
   wiec bazujemy font na 1cqi (container-query-inline) fallback: vw. */

/* Base: mobile / bardzo wazkie — obrazek mniejszy, duzo miejsca na tekst */
#home_cat_product .product_container {
  padding: 5px 5px !important;
}
#home_cat_product ul li .left-block {
  width: 30% !important;
  padding: 0 6px 0 0 !important;
}
#home_cat_product ul li .right-block {
  width: 70% !important;
}
/* Plynny font — 10-14px zaleznie od szerokosci okna */
#home_cat_product .product_container .right-block .product-name,
#home_cat_product ul li .right-block .name_block a {
  font-size: clamp(10px, 0.85vw, 14px) !important;
  line-height: 1.25 !important;
}
#home_cat_product ul li .product-price-and-shipping .price {
  font-size: clamp(11px, 0.95vw, 16px) !important;
}
#home_cat_product ul li .right-block .product-price-and-shipping span.regular-price {
  font-size: clamp(10px, 0.8vw, 13px) !important;
}
#home_cat_product .catprod_title > a span {
  font-size: clamp(13px, 1.1vw, 18px) !important;
}

/* Zeby obrazek nie dominowal, ogranicz jego wysokosc */
#home_cat_product ul li .left-block a img {
  max-width: 100%;
  height: auto;
  max-height: 85px;
  object-fit: contain;
  width: 100% !important;
}

/* Tablet — >=768px: kolumny maja juz sensowna szerokosc */
@media (min-width: 768px) {
  #home_cat_product .product_container {
    padding: 6px 6px !important;
  }
  #home_cat_product ul li .left-block {
    width: 32% !important;
    padding: 0 8px 0 0 !important;
  }
  #home_cat_product ul li .right-block {
    width: 68% !important;
  }
  #home_cat_product ul li .left-block a img {
    max-height: 100px;
  }
}

/* Stare laptopy 1366x768 — >=1200px */
@media (min-width: 1200px) {
  #home_cat_product .product_container {
    padding: 7px 7px !important;
  }
  #home_cat_product ul li .left-block {
    width: 34% !important;
    padding: 0 9px 0 0 !important;
  }
  #home_cat_product ul li .right-block {
    width: 66% !important;
  }
  #home_cat_product ul li .left-block a img {
    max-height: 110px;
  }
}

/* Laptopy 1536x864 @125% DPI — >=1500px */
@media (min-width: 1500px) {
  #home_cat_product .product_container {
    padding: 8px 9px !important;
  }
  #home_cat_product ul li .left-block {
    width: 36% !important;
    padding: 0 10px 0 0 !important;
  }
  #home_cat_product ul li .right-block {
    width: 64% !important;
  }
  #home_cat_product ul li .left-block a img {
    max-height: 120px;
  }
}

/* FullHD 1920x1080 — >=1800px (glowny target PL) */
@media (min-width: 1800px) {
  #home_cat_product .product_container {
    padding: 10px 11px !important;
  }
  #home_cat_product ul li .left-block {
    width: 38% !important;
    padding: 0 11px 0 0 !important;
  }
  #home_cat_product ul li .right-block {
    width: 62% !important;
  }
  #home_cat_product ul li .left-block a img {
    max-height: 140px;
  }
}

/* QHD 2560x1440 — >=2400px */
@media (min-width: 2400px) {
  #home_cat_product .product_container {
    padding: 12px 14px !important;
  }
  #home_cat_product ul li .left-block {
    width: 40% !important;
  }
  #home_cat_product ul li .right-block {
    width: 60% !important;
  }
  #home_cat_product ul li .left-block a img {
    max-height: 170px;
  }
}

/* === HOME CAT PRODUCT — slider === */
/* Przed inicjalizacja bxSlider ukrywaj dluga liste */
#home_cat_product .bx_box {
  max-height: 920px;
  overflow: hidden;
}
#home_cat_product .bx_box .bx-viewport {
  max-height: 920px;
}
/* Gdy bxSlider juz zainicjalizowany (ma .bx-wrapper), pozwol na auto-wysokosc */
#home_cat_product .bx_box:has(.bx-wrapper) {
  max-height: none;
  overflow: visible;
}
