/* PROTERM UX-05-DESKTOP (DEC-047, kopia) — karta produktu na KOMPUTERZE (≥ 992 px), tylko sklep PL. Bez zmian treści, zdjęć, danych i logiki koszyka.
   1 Prawa kolumna: motyw robił z niej panel z WEWNĘTRZNYM przewijaniem (height: 100vh; overflow-y: scroll) — cena i „Do koszyka” przy wielu kolorach były poza ekranem
     i nie przewijały się ze stroną. Teraz: bez wewnętrznego przewijania, szersza, przyklejona tak, by przy długim opisie widoczny był jej DÓŁ (cena, ilość, przycisk);
     wartość top liczy ux05-d.js (--u5-top = min(0, wysokość okna − wysokość kolumny − 16 px)).
   2 Siatka autentycznych zdjęć kolorów gęstsza (te same zdjęcia, kwadrat, ≥ 60 px; zaznaczenie i fokus z UX-04 bez zmian).
   3 H1 czytelniejszy · 4 „Do koszyka” na całą szerokość obok ilości · 5 opis: akapity i listy do 80 znaków w linii (obrazy, tabele bez zmian)
   6 „Zobacz także”: zwarte, równe karty; cała karta klikalna (rozciągnięty link tytułu), „Wybierz kolor i rozmiar” jako wyraźna etykieta akcji
   7 Pasek zakupu u góry ekranu (#u5-pasek, ux05-d.js) — tylko gdy główny przycisk jest NAD ekranem; nie przy stopce i nie przy otwartym oknie koszyka.
     U góry, bo dolne rogi zajmują Trusted Shops, edrone, reCAPTCHA i „do góry”. Element fixed — bez przesuwania treści (CLS). */
#u5-pasek { display: none; }
@media (min-width: 992px) {
  body#product .col-lg-6.colinfo { height: auto !important; align-self: flex-start; overflow: visible !important; position: sticky; top: var(--u5-top, 0px) !important; flex: 0 0 38% !important; max-width: 470px !important; padding-bottom: 16px; }
  body#product .col-lg-6.colimg { flex: 1 1 0% !important; max-width: none !important; min-width: 0; }
  body#product h1, body#product .h1 { font-size: 22px !important; line-height: 1.25 !important; }
  body#product .product-variants-item .clearfix:has(> .label-color), body#product .product-variants-item ul:has(.label-color) { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important; gap: 6px !important; }
  body#product .col-lg-6.colinfo { padding-top: 12px !important; }
  body#product .product-prices .current-price-display { font-size: 38px !important; line-height: 1.1 !important; }
  body#product .product-add-to-cart .product-quantity { flex-wrap: nowrap; }
  body#product .product-add-to-cart .product-quantity .add { flex: 1 1 auto; max-width: none; }
  body#product .product-add-to-cart .product-quantity .add .add-to-cart { width: 100%; }
  body#product .product-description :is(p, li, h2, h3, h4, h5):not(:has(img, table, iframe, video)) { max-width: 80ch; }
  /* 6 „Zobacz także” */
  body#product section.product-accessories .products { grid-template-columns: repeat(auto-fill, minmax(200px, 236px)) !important; justify-content: start !important; gap: 16px !important; }
  body#product section.product-accessories .product-miniature .card { position: relative; border: 1px solid #e3e8ef; border-radius: 12px; overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease; }
  body#product section.product-accessories .product-miniature .card:hover, body#product section.product-accessories .product-miniature .card:focus-within { border-color: #b9c6d6; box-shadow: 0 8px 22px rgba(16, 24, 40, .10); }
  body#product section.product-accessories .product-miniature .product-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  body#product section.product-accessories .product-miniature .product-title a:focus-visible { outline: none; }
  body#product section.product-accessories .product-miniature .card:has(.product-title a:focus-visible) { outline: 3px solid rgba(34, 113, 206, .55); outline-offset: 2px; }
  body#product section.product-accessories .product-miniature .card-body.minatureequal { height: auto !important; }   /* równe karty daje siatka — wysokość dopisywana przez JS motywu po wczytaniu przesuwała stopkę (CLS 0,06–0,11) */
  body#product section.product-accessories .product-miniature .ux-warianty { display: inline-block; margin-top: 8px; padding: 6px 14px; border: 1px solid #2271ce; border-radius: 18px; color: #2271ce; font-size: 14px; font-weight: 600; line-height: 1.2; }
  body#product section.product-accessories .product-miniature .card:hover .ux-warianty { background: #2271ce; color: #fff; }
  /* 7 pasek zakupu */
  #u5-pasek { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 1035; background: rgba(255, 255, 255, .97); border-bottom: 1px solid #e3e8ef; box-shadow: 0 6px 18px rgba(16, 24, 40, .08);
    transform: translateY(-110%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  #u5-pasek.u5-widoczny { transform: none; visibility: visible; }
  #u5-pasek .u5-wnetrze { max-width: 1400px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
  #u5-pasek .u5-opis { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  #u5-pasek .u5-nazwa { font-size: 16px; font-weight: 700; color: #1f2328; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #u5-pasek .u5-wariant { font-size: 13.5px; color: #5b6470; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #u5-pasek .u5-cena { flex: 0 0 auto; font-size: 22px; font-weight: 700; color: #1f2328; white-space: nowrap; font-variant-numeric: tabular-nums; }
  #u5-pasek .u5-kup { flex: 0 0 auto; min-height: 46px; padding: 0 26px; border-radius: 23px; font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
  #u5-pasek .u5-kup[disabled] { opacity: .55; cursor: not-allowed; }
  #u5-pasek button:focus-visible { outline: 3px solid rgba(34, 113, 206, .55); outline-offset: 2px; }
  body.modal-open #u5-pasek { transform: translateY(-110%) !important; visibility: hidden !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  body#product .col-lg-6.colinfo { flex-basis: 40% !important; }
  body#product h1, body#product .h1 { font-size: 20px !important; }
}
@media (prefers-reduced-motion: reduce) { #u5-pasek { transition: none; } body#product section.product-accessories .product-miniature .card { transition: none; } }
