/* PROTERM UX-02-H (kopia, 2026-11-21, DEC-032) — strona główna PL: nagłówki sekcji, karty produktów w karuzelach, banery, opis SEO (poradnik), 4 kafle kategorii.
   Zakres: body#index (plik dołączany tylko na stronie głównej w języku PL — templates/_partials/stylesheets.tpl). Treść, nagłówki i ich poziomy, linki, kolejność — bez zmian.
   Skala: nagłówki sekcji 20→28 px (clamp), H1 opisu 22→32 px, tekst 16 px / 1,7; odstępy 8/12/16/24/40 px; promień 12 px; bez wersalików z CSS. */
body#index { --u2-niebieski: #2271ce; --u2-niebieski-ciemny: #1b5fae; --u2-tekst: #1f2328; --u2-tekst-2: #5b6470; --u2-linia: #e3e8ef; --u2-tlo: #f6f8fb; --u2-r: 12px; }

/* ---------- 1. Nagłówki sekcji (H2 karuzel i bloku kategorii) — ten sam tekst i poziom, bez wersalików, wyrównane do lewej ---------- */
body#index .featured-products .products-section-title, body#index #ishicategoryblock h2.home-title {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem) !important; font-weight: 700 !important; line-height: 1.25 !important; letter-spacing: -.01em;
  text-transform: none !important; text-align: left !important; color: var(--u2-tekst) !important; margin: 0 0 16px !important; padding: 0 !important; max-width: 42ch; text-wrap: balance; }
body#index .featured-products { margin-top: 40px !important; margin-bottom: 8px !important; }
@media (min-width: 992px) { body#index .featured-products .products-section-title, body#index #ishicategoryblock h2.home-title { max-width: none; } }
body#index #ishicategoryblock { margin-top: 40px; margin-bottom: 40px; padding-left: 15px; padding-right: 15px; }

/* ---------- 2. Karty produktów w karuzelach („Najczęściej wybierane”, „Nowe”) — jak listy kategorii (UX-01-B) ---------- */
/* wysokość: skrypt motywu wyrównuje karty stałą wysokością w stylu inline (.minatureequal) — tu wysokość z treści, karty w rzędzie równe przez flex */
body#index .featured-products .slick-track { display: flex !important; align-items: stretch; }
/* szerokość slajdów — z karuzeli (styl inline); motyw nadaje kartom flex 0 0 50% (w torze flex = 50% całego toru), dlatego flex: none */
body#index .featured-products .slick-slide { height: auto !important; flex: 0 0 auto !important; max-width: none !important; }
body#index .featured-products .product-miniature { margin: 0 !important; padding: 0 6px 4px !important; }
body#index .featured-products .product-miniature .card-product { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--u2-linia) !important; border-radius: var(--u2-r) !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease; isolation: isolate; } /* warstwy linku i rat zostają wewnątrz karty — nie przykrywają przyklejonego nagłówka */
body#index .featured-products .product-miniature .card-product:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .10); border-color: #d3dae4 !important; }
/* zdjęcie: kwadrat 1:1 na samym obrazku (w karuzeli kontener nie ma określonej wysokości — procentowa wysokość rozciągała leniwe obrazki) */
body#index .featured-products .product-miniature .product__card-img > a { display: block; padding: 8px; background: #fff; }
body#index .featured-products .product-miniature .product__card-img img { display: block; width: 100% !important; height: auto !important; max-height: none; aspect-ratio: 1 / 1; object-fit: contain; }
body#index .featured-products .product-miniature .card-body { flex: 1 1 auto; display: flex; flex-direction: column; background: #fff !important; padding: 10px 12px 12px !important; height: auto !important; min-height: 0 !important; }
body#index .featured-products .product-miniature .product__card-desc { flex: 1 1 auto; display: flex; flex-direction: column; text-align: left; }
body#index .featured-products .product-miniature .product-title { margin: 0 0 6px !important; text-align: left !important; font-size: 14px !important; line-height: 1.32 !important; font-weight: 600 !important;
  min-height: calc(1.32em * 2); overflow-wrap: anywhere; hyphens: auto; }
body#index .featured-products .product-miniature .product-title a { color: var(--u2-tekst) !important; text-decoration: none !important; }
/* cała karta klikalna (rozciągnięty link nazwy); raty, opinie i przyciski nad nim */
body#index .featured-products .product-miniature .product-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
body#index .featured-products .product-miniature .card-body button, body#index .featured-products .product-miniature .listproductreviews a,
body#index .featured-products .product-miniature .payu-installment-price-listing, body#index .featured-products .product-miniature .wishlist-button-add { position: relative; z-index: 2; }
/* obwódka tylko przy nawigacji klawiaturą (nie po zwykłym dotknięciu — DEC-031 §7.3) */
body#index .featured-products .product-miniature .product-title a:focus-visible { outline: 0; }
body#index .featured-products .product-miniature .card-product:has(:focus-visible) { outline: 3px solid rgba(34, 113, 206, .55); outline-offset: 2px; }
body#index .featured-products .product-miniature .product-flags { z-index: 2; pointer-events: none; }
body#index .featured-products .product-miniature .product-flags .product-flag { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; min-width: 0; box-shadow: none; }
body#index .featured-products .product-miniature .listproductreviews { margin: 0 0 4px !important; }
body#index .featured-products .product-miniature .listproductreviews, body#index .featured-products .product-miniature .product-list-reviews { text-align: left !important; }
body#index .featured-products .product-miniature .listproductreviews .grade-stars { justify-content: flex-start !important; margin-left: 0 !important; margin-right: auto !important; }
body#index .featured-products .product-miniature .product-price-and-shipping { margin-top: auto !important; text-align: left !important; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
body#index .featured-products .product-miniature .product-price-and-shipping .price { font-size: 17px; font-weight: 700; color: var(--u2-tekst); line-height: 1.2; font-variant-numeric: tabular-nums; }
body#index .featured-products .product-miniature .product-price-and-shipping .regular-price { font-size: 13px; color: var(--u2-tekst-2); }
/* raty PayU: w obrysie karty, pod ceną (moduł ustawia je absolutnie pod kartą) */
body#index .featured-products .product-miniature .payu-installment-price-listing { position: relative !important; inset: auto !important; transform: none !important; margin: 0 !important; display: block;
  max-width: 100%; overflow: hidden; font-size: 12px; line-height: 1.35; color: var(--u2-tekst-2); }
body#index .featured-products .product-miniature .payu-installment-price-listing, body#index .featured-products .product-miniature .payu-installment-price-listing * { max-width: 100% !important; white-space: normal !important; }
body#index .featured-products .product-miniature .payu-installment-price-listing > span { margin-top: 0 !important; }
body#index .featured-products .product-miniature .payu-mini-installments-widget-details { color: var(--u2-niebieski-ciemny) !important; }
body#index .featured-products .product-miniature .fastdelivery { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 0; padding: 3px 9px 3px 7px; border-radius: 999px; background: #e7f6ec; color: #136c35;
  font-size: 12px; font-weight: 700; line-height: 1.3; text-transform: none; }
body#index .featured-products .product-miniature .fastdelivery .fastdeliveryico { font-size: 16px; line-height: 1; }
body#index .featured-products .product-miniature .fastdeliverynone { display: none !important; }
body#index .featured-products .product-miniature .ux-dostawa-zakres { display: block; margin-top: -2px; font-size: 12px; line-height: 1.3; color: var(--u2-tekst-2); }
body#index .featured-products .product-miniature .ux-dostawa { font-size: 12px; color: var(--u2-tekst-2); }
body#index .featured-products .product-miniature .ux-warianty { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--u2-niebieski-ciemny); margin-top: 2px; }
body#index .featured-products .product-miniature .ux-warianty::after { content: "\00a0›"; }
/* przyciski „Wszystkie …” i strzałki karuzeli */
body#index .featured-products .all_most_products, body#index .featured-products .all_new_products, body#index .featured-products a.btn { text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; font-size: 15px !important; }
body#index .featured-products .slick-arrow { width: 40px; height: 40px; }
body#index .featured-products .slick-arrow:focus-visible { outline: 3px solid rgba(34, 113, 206, .55); outline-offset: 2px; border-radius: 50%; }
@media (max-width: 767.98px) {
  body#index .featured-products { margin-top: 28px !important; }
  body#index .featured-products .products-section-title { padding-left: 15px !important; padding-right: 15px !important; }
  body#index .featured-products .product-miniature .card-body { padding: 8px 10px 10px !important; }
  body#index .featured-products .product-miniature .product-title { font-size: 13.5px !important; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: normal; }
}
@media (max-width: 359.98px) {
  body#index .featured-products .product-miniature .card-body { padding: 8px !important; }
  body#index .featured-products .product-miniature .product-title { font-size: 13px !important; -webkit-line-clamp: 5; }
  body#index .featured-products .product-miniature .product-price-and-shipping .price { font-size: 16px; }
}

/* ---------- 3. Banery kategorii (zdjęcia bez zmian) — równe odstępy i zaokrąglenia, bez przycinania napisów na grafikach ---------- */
body#index .top-banners-container .small-img-banner { border-radius: var(--u2-r); }
body#index .top-banners-container a { display: block; border-radius: var(--u2-r); }
body#index .top-banners-container a:focus-visible { outline: 3px solid rgba(34, 113, 206, .65); outline-offset: 3px; }
@media (max-width: 767.98px) {
  body#index .top-banners-container { padding: 0 10px; }
  body#index .top-banners-container .two-small-ones { gap: 10px; }
  body#index .top-banners-container .small-one { margin: 0 0 10px !important; }
}

/* ---------- 4. Opis SEO strony głównej (#custom-text) — poradnik redakcyjny: cała treść i linki bez zmian, tylko typografia i układ ---------- */
body#index #custom-text { background: transparent !important; border: 0 !important; box-shadow: none !important; margin: 48px auto 24px !important; max-width: 820px; }
body#index #custom-text .card-body { padding: 0 15px !important; }
body#index #custom-text h1 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem) !important; font-weight: 700 !important; line-height: 1.22 !important; letter-spacing: -.01em; text-transform: none !important;
  text-align: left !important; color: var(--u2-tekst); margin: 0 0 16px !important; text-wrap: balance; }
body#index #custom-text h2 { font-size: clamp(1.15rem, 1.02rem + .6vw, 1.45rem) !important; font-weight: 700 !important; line-height: 1.3 !important; text-align: left !important; color: var(--u2-tekst);
  margin: 32px 0 10px !important; padding-top: 24px; border-top: 1px solid var(--u2-linia); text-transform: none !important; }
body#index #custom-text h3, body#index #custom-text h4 { font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem) !important; font-weight: 700 !important; line-height: 1.35 !important; text-align: left !important;
  color: var(--u2-tekst); margin: 24px 0 8px !important; text-transform: none !important; }
body#index #custom-text p { text-align: left !important; font-size: 16px; line-height: 1.7; color: #2b3036; margin: 0 0 14px; max-width: 72ch; }
body#index #custom-text p:empty { display: none; }
body#index #custom-text a, body#index #custom-text a span { color: var(--u2-niebieski-ciemny) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body#index #custom-text a:hover, body#index #custom-text a:hover span { color: var(--u2-niebieski) !important; }
body#index #custom-text a:focus-visible { outline: 2px solid var(--u2-niebieski); outline-offset: 2px; border-radius: 2px; }
/* spis „Przeglądaj grzejniki według typu” (tabela z HTML opisu) — desktop: 3 uporządkowane kolumny; telefon: grupy z przyciskami-linkami */
body#index #custom-text table { width: 100% !important; font-size: 15px !important; margin: 8px 0 0; border-collapse: separate; background: var(--u2-tlo); border-radius: var(--u2-r); }
body#index #custom-text table td { padding: 18px 20px !important; line-height: 1.85; vertical-align: top; }
body#index #custom-text table td b { display: inline-block; font-weight: 700; color: var(--u2-tekst); margin-top: 4px; }
body#index #custom-text table td a { text-decoration: none; }
body#index #custom-text table td a:hover { text-decoration: underline; }
@media (max-width: 767.98px) {
  body#index #custom-text { margin-top: 36px !important; }
  body#index #custom-text p { font-size: 16px; line-height: 1.68; }
  body#index #custom-text table, body#index #custom-text table tbody, body#index #custom-text table tr, body#index #custom-text table td { display: block; width: auto !important; }
  body#index #custom-text table { background: transparent; }
  body#index #custom-text table td { padding: 0 !important; line-height: 1.4; }
  body#index #custom-text table td br { display: none; }
  body#index #custom-text table td b { display: block; margin: 18px 0 8px; font-size: 15px; }
  body#index #custom-text table td a { display: inline-block; margin: 0 6px 8px 0; padding: 8px 12px; min-height: 36px; border: 1px solid var(--u2-linia); border-radius: 999px; background: #fff;
    font-size: 14px; line-height: 1.3; text-decoration: none !important; color: var(--u2-niebieski-ciemny) !important; }
  body#index #custom-text table td a:active { background: var(--u2-tlo); }
}

/* ---------- 5. Kafle kategorii (moduł ishicategoryblock) — telefon 2 × 2, od 768 px 4 w rzędzie; całe kafle klikalne ---------- */
body#index #ishicategoryblock .ux2-kafle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
body#index #ishicategoryblock .ux2-kafel { margin: 0; }
body#index #ishicategoryblock .ux2-kafel a { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--u2-r); overflow: hidden; background: #fff; border: 1px solid var(--u2-linia);
  color: var(--u2-tekst); text-decoration: none; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
body#index #ishicategoryblock .ux2-kafel img { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
body#index #ishicategoryblock .ux2-kafel .ux2-kafel-nazwa { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px 12px; font-size: 14px; font-weight: 700; line-height: 1.3; }
body#index #ishicategoryblock .ux2-kafel .ux2-kafel-nazwa::after { content: "›"; font-size: 20px; line-height: 1; color: var(--u2-niebieski); }
body#index #ishicategoryblock .ux2-kafel a:hover { box-shadow: 0 8px 22px rgba(16, 24, 40, .12); border-color: #d3dae4; transform: translateY(-2px); }
body#index #ishicategoryblock .ux2-kafel a:focus-visible { outline: 3px solid rgba(34, 113, 206, .65); outline-offset: 3px; }
@media (min-width: 768px) {
  body#index #ishicategoryblock .ux2-kafle { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  body#index #ishicategoryblock .ux2-kafel .ux2-kafel-nazwa { font-size: 15px; padding: 12px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) { body#index #ishicategoryblock .ux2-kafel a { transition: none; } body#index #ishicategoryblock .ux2-kafel a:hover { transform: none; } }
