/* =========================================================================
   Karta produktu (opona) — produkt.php. Prefiks klas: pp-
   Korzysta z tokenów oponeus-ui.css (--ou-*). Jednostki px.
   ========================================================================= */

.pp { padding-top: 18px; }
.pp-product { display: block; }
.pp-h3 { font-size: 16px !important; font-weight: 600 !important; margin: 0 0 8px !important; color: var(--ou-ink); }

/* Kolory klas etykiety UE — barwy skal z rozp. (UE) 2020/740 (paliwo: zieleń→czerwień, mokra: odcienie niebieskiego);
   F/G tylko w starszych danych (rozp. 1222/2009). Kolor tekstu dobrany do kontrastu. */
.pp-c-a { --pp-c: #00a651; --pp-ct: #fff; }
.pp-c-b { --pp-c: #9aca3c; --pp-ct: #1d2125; }
.pp-c-c { --pp-c: #fff200; --pp-ct: #1d2125; }
.pp-c-d { --pp-c: #fdb913; --pp-ct: #1d2125; }
.pp-c-e { --pp-c: #ed1c24; --pp-ct: #fff; }
.pp-c-f { --pp-c: #f37021; --pp-ct: #1d2125; }
.pp-c-g { --pp-c: #ed1c24; --pp-ct: #fff; }

/* ---------- Układ górnej części ---------- */
.pp-top {
  display: grid; gap: 20px 32px; align-items: start;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "gallery" "buy" "specs";
}
.pp-head { grid-area: head; min-width: 0; }
.pp-gallery { grid-area: gallery; min-width: 0; }
.pp-specs { grid-area: specs; min-width: 0; }
.pp-buy { grid-area: buy; min-width: 0; }

@media (min-width: 768px) {
  .pp-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "gallery head" "gallery buy" "specs buy";
    grid-template-rows: auto 1fr auto;
  }
}
@media (min-width: 1100px) {
  .pp-top {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 360px;
    grid-template-areas: "gallery head buy" "gallery specs buy";
    grid-template-rows: auto 1fr;
    gap: 16px 36px;
  }
  .pp-buy { position: sticky; top: 16px; }
}

/* ---------- Nagłówek ---------- */
.pp-brandline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 6px !important; }
.pp-brandline__brand { font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--ou-primary); }
.pp-title { margin: 0 0 12px !important; }
.pp-title__model { display: block; }
.pp-title__spec { display: block; font-size: .62em; font-weight: 600; color: var(--ou-text); margin-top: 4px; letter-spacing: 0; }
.pp-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pp-badges li { margin: 0; }
.pp-badges .ou-tag { font-size: 12.5px; padding: 3px 10px; }
.pp-badges .ou-tag .ou-ico { width: 15px; height: 15px; }
.pp-badges a.ou-tag:hover { text-decoration: none; filter: brightness(.97); }
.pp-tag-svg svg { width: 18px; height: 15px; }

/* ---------- Galeria ---------- */
.pp-gallery__main {
  position: relative; margin: 0; border: 1px solid var(--ou-line); border-radius: var(--ou-radius-lg);
  background: #fff; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; padding: 20px;
}
body.ou-body .pp-gallery__main img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); max-width: none; object-fit: contain; }
.pp-gallery__season {
  position: absolute; z-index: 1; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ou-bg-soft); box-shadow: var(--ou-shadow-sm);
}
.pp-gallery__season .ou-ico { width: 22px; height: 22px; }
.pp-gallery__season--letnia { background: #fff4d6; color: #a86400; }
.pp-gallery__season--zimowa { background: var(--ou-blue-soft); color: var(--ou-blue); }
.pp-gallery__season--wielosezonowa { background: var(--ou-green-soft); color: var(--ou-green); }
.pp-gallery__note {
  position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; align-items: flex-start;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--ou-line); border-radius: var(--ou-radius-sm);
  padding: 8px 12px; font-size: 12.5px; line-height: 1.45; color: var(--ou-muted);
}
.pp-gallery__note .ou-ico { width: 16px; height: 16px; margin-top: 1px; color: var(--ou-blue); }
.pp-gallery__thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.pp-gallery__thumbs li { margin: 0; }
.pp-thumb {
  width: 76px; height: 76px; padding: 6px; border: 2px solid var(--ou-line); border-radius: var(--ou-radius); background: #fff;
  cursor: pointer; display: grid; place-items: center; transition: border-color .15s;
}
body.ou-body .pp-thumb img { width: 100%; height: 100%; max-height: 60px; object-fit: contain; }
.pp-thumb { overflow: hidden; }
.pp-thumb:hover { border-color: var(--ou-line-strong); }
.pp-thumb.is-active { border-color: var(--ou-accent); }
.pp-thumb:focus-visible, .pp-eu__open:focus-visible, .pp-eu__card:focus-visible, .pp-label__imgbtn:focus-visible, .pp-dialog__view:focus-visible, .pp-qty__btn:focus-visible, .pp-dialog__close:focus-visible {
  outline: 3px solid var(--ou-focus); outline-offset: 2px;
}

/* ---------- Kluczowe parametry ---------- */
.pp-keyspecs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ou-line); border: 1px solid var(--ou-line); border-radius: var(--ou-radius); overflow: hidden; }
.pp-keyspecs > div { background: #fff; padding: 10px 14px; min-width: 0; }
.pp-keyspecs dt { font-size: 12px; color: var(--ou-muted); font-weight: 500; margin: 0; }
.pp-keyspecs dd { margin: 2px 0 0; font-weight: 600; color: var(--ou-ink); font-size: 14.5px; overflow-wrap: anywhere; }
.pp-keyspecs > div:nth-child(odd):last-child { grid-column: 1 / -1; }
.pp-more-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-weight: 600; font-size: 14px; }
.pp-more-link .ou-ico { width: 16px; height: 16px; }

/* ---------- Panel zakupu ---------- */
.pp-buy__box { border: 1px solid var(--ou-line); border-radius: var(--ou-radius-lg); padding: 20px; background: #fff; box-shadow: var(--ou-shadow-sm); }

/* Etykieta UE — wyświetlanie zagnieżdżone obok ceny */
.pp-eu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--ou-line); }
.pp-eu__open {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--ou-line-strong); border-radius: 8px;
  background: #fff; cursor: pointer; font: 600 13px var(--ou-font); color: var(--ou-ink);
}
.pp-eu__open:hover { border-color: var(--ou-ink); }
.pp-eu__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pp-eu__chips li { margin: 0; display: inline-flex; align-items: baseline; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ou-ink); background: var(--ou-bg-soft); border-radius: 6px; padding: 3px 8px; }
.pp-eu__k { font-weight: 500; color: var(--ou-muted); font-size: 12px; }
.pp-eu__eprel { flex-basis: 100%; font-size: 13px; font-weight: 500; }

/* Strzałka klasy (kształt strzałki jak na etykiecie) */
.pp-arrow {
  position: relative; display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px 0 8px; margin-right: 10px;
  background: var(--pp-c, #888); color: var(--pp-ct, #fff); font: 700 15px/1 var(--ou-font); border-radius: 3px 0 0 3px;
}
.pp-arrow::after { content: ""; position: absolute; right: -10px; top: 0; border-style: solid; border-width: 13px 0 13px 10px; border-color: transparent transparent transparent var(--pp-c, #888); }
.pp-arrow--wet { --pp-c: #0080c6; --pp-ct: #fff; }
.pp-arrow--wet.pp-c-a { --pp-c: #0066b3; --pp-ct: #fff; }
.pp-arrow--wet.pp-c-b { --pp-c: #0080c6; --pp-ct: #fff; }
.pp-arrow--wet.pp-c-c { --pp-c: #4ba6dd; --pp-ct: #1d2125; }
.pp-arrow--wet.pp-c-d { --pp-c: #75bee9; --pp-ct: #1d2125; }
.pp-arrow--wet.pp-c-e, .pp-arrow--wet.pp-c-f, .pp-arrow--wet.pp-c-g { --pp-c: #abe1fa; --pp-ct: #1d2125; }
.pp-arrow--noise { --pp-c: var(--ou-ink); --pp-ct: #fff; font-size: 13px; gap: 1px; grid-auto-flow: column; }
.pp-arrow--noise small { font-size: 10px; font-weight: 600; }
.pp-arrow--sym { --pp-c: var(--ou-blue-soft); --pp-ct: var(--ou-blue); }
.pp-arrow--sym svg { width: 22px; height: 18px; }

/* Cena */
.pp-price { display: flex; align-items: baseline; gap: 8px; margin: 0 !important; scroll-margin-top: 90px; }
.pp-price__value { font-size: 34px; font-weight: 700; color: var(--ou-ink); letter-spacing: -.02em; line-height: 1.1; }
.pp-price__unit { font-size: 15px; color: var(--ou-muted); font-weight: 500; }
.pp-price__set { margin: 4px 0 0 !important; font-size: 15px; color: var(--ou-text); }
.pp-price__set strong { color: var(--ou-ink); }
.pp-price__vat { margin: 2px 0 16px !important; font-size: 12.5px; color: var(--ou-muted); }

/* Koszyk */
.pp-cart { margin: 0 0 14px; }
.pp-cart__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.pp-cart__label { font-weight: 600; color: var(--ou-ink); font-size: 14px; }
.pp-qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--ou-line-strong); border-radius: 999px; overflow: hidden; background: #fff; }
.pp-qty__btn { width: 42px; min-height: 44px; border: 0; background: var(--ou-bg-soft); color: var(--ou-ink); font: 600 20px/1 var(--ou-font); cursor: pointer; }
.pp-qty__btn:hover { background: var(--ou-line); }
.pp-qty__btn:disabled { opacity: .4; cursor: not-allowed; }
.pp-qty__input {
  width: 52px; border: 0; text-align: center; font: 700 16px var(--ou-font); color: var(--ou-ink); background: #fff;
  -moz-appearance: textfield; appearance: textfield;
}
.pp-qty__input::-webkit-outer-spin-button, .pp-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pp-qty__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ou-focus); }
.pp-cart__total { margin: 0 0 0 auto !important; font-size: 14px; color: var(--ou-muted); }
.pp-cart__total strong { color: var(--ou-ink); font-size: 16px; }
.pp-cart__btn .ou-ico { width: 20px; height: 20px; }
.pp-cart__btn.is-loading { opacity: .75; cursor: progress; }
.pp-cart__btn.is-added { background: var(--ou-green); border-color: var(--ou-green); }
.pp-cart__msg { margin: 8px 0 0 !important; font-size: 13.5px; min-height: 0; }
.pp-cart__msg:empty { display: none; }
.pp-cart__msg.is-error { color: var(--ou-red); font-weight: 500; }
.pp-cart__msg.is-ok { color: var(--ou-green); font-weight: 500; }
.pp-cart__msg a { font-weight: 600; }
.pp-oos { margin: 0 0 14px !important; }

/* Fakty: dostępność, dostawa, zwroty */
.pp-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; line-height: 1.5; }
.pp-facts li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.pp-facts .ou-ico { width: 18px; height: 18px; flex: 0 0 18px; color: var(--ou-accent); margin-top: 1px; }
.pp-facts strong { color: var(--ou-ink); font-weight: 600; }
.pp-facts__ok .ou-ico { color: var(--ou-green); }
.pp-facts__ok strong:first-child { color: var(--ou-green); }

/* ---------- Nawigacja sekcji ---------- */
.pp-subnav {
  position: sticky; top: 0; z-index: 50; margin: 36px 0 0; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--ou-line); -webkit-backdrop-filter: saturate(1.4) blur(6px); backdrop-filter: saturate(1.4) blur(6px);
}
.pp-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pp-subnav ul::-webkit-scrollbar { display: none; }
.pp-subnav li { margin: 0; flex: 0 0 auto; }
.pp-subnav a {
  display: block; padding: 14px 14px 12px; font-weight: 600; font-size: 14px; color: var(--ou-text); border-bottom: 3px solid transparent; white-space: nowrap;
}
.pp-subnav a:hover { color: var(--ou-ink); text-decoration: none; border-bottom-color: var(--ou-line-strong); }
.pp-subnav a.is-active { color: var(--ou-primary); border-bottom-color: var(--ou-accent); }

/* ---------- Sekcje ---------- */
.pp-section { padding: 32px 0 8px; scroll-margin-top: 60px; border-bottom: 1px solid var(--ou-line); }
.pp-section:last-child { border-bottom: 0; }
.pp-section__title { font-size: 22px !important; margin: 0 0 18px !important; }
.pp-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.pp-section__head .pp-section__title { margin: 0 !important; }
.pp-section__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.pp-section__more .ou-ico { width: 16px; height: 16px; }

/* Opis */
.pp-desc__text { max-width: 900px; }
.pp-desc__text h3 { font-size: 18px; margin-top: 24px; }
.pp-desc__text h4 { font-size: 16px; margin-top: 18px; }
.pp-desc__hint { margin-top: 18px !important; padding: 12px 16px; background: var(--ou-bg-soft); border-radius: var(--ou-radius); font-size: 14px; color: var(--ou-text); }

/* Parametry */
.pp-params { max-width: 900px; border: 1px solid var(--ou-line); border-radius: var(--ou-radius); overflow: hidden; }
.pp-params__table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; }
.pp-params__table th, .pp-params__table td { padding: 10px 16px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--ou-line); }
.pp-params__table tr:last-child th, .pp-params__table tr:last-child td { border-bottom: 0; }
.pp-params__table tr:nth-child(odd) { background: var(--ou-bg-softer); }
.pp-params__table th { width: 44%; font-weight: 500; color: var(--ou-muted); }
.pp-params__table td { font-weight: 600; color: var(--ou-ink); overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .pp-params { max-width: none; border: 0; border-radius: 0; overflow: visible; }
  .pp-params__table tbody { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .pp-params__table tr { display: grid; grid-template-columns: 46% 1fr; background: none !important; border-bottom: 1px solid var(--ou-line); }
  .pp-params__table th, .pp-params__table td { border: 0; padding: 10px 8px; }
  .pp-params__table th { width: auto; }
}

/* Etykieta */
.pp-label { display: grid; gap: 24px 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 768px) { .pp-label { grid-template-columns: 300px minmax(0, 1fr); } }
.pp-label__visual { max-width: 300px; }
.pp-label__imgbtn { display: block; padding: 0; border: 1px solid var(--ou-line); border-radius: var(--ou-radius); background: #fff; cursor: zoom-in; overflow: hidden; }
.pp-label__imgbtn img { display: block; width: 100%; height: auto; }
.pp-label__list { list-style: none !important; padding: 0 !important; margin: 0 0 14px !important; display: grid; gap: 12px; }
.pp-label__list li { display: flex; align-items: flex-start; gap: 8px; padding: 0 !important; margin: 0 !important; }
.pp-label__list li::marker { content: none; }
.pp-label__list .pp-arrow { flex: 0 0 auto; margin-top: 1px; }
.pp-label__note { font-size: 13.5px !important; color: var(--ou-muted); }
.pp-label__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-label__actions a { text-decoration: none !important; }

/* Odwzorowanie etykiety (HTML) */
.pp-elabel { border: 2px solid #1d2125; border-radius: 8px; background: #fff; padding: 12px; font-family: var(--ou-font); color: #1d2125; width: 100%; max-width: 300px; }
.pp-elabel__head { display: flex; gap: 10px; align-items: center; font-size: 12px; line-height: 1.35; padding-bottom: 10px; border-bottom: 1px solid var(--ou-line); }
.pp-elabel__eu { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 26px; border-radius: 3px; background: #0e47a1; color: #ffd400; font-weight: 700; font-size: 13px; }
.pp-elabel__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 0; }
.pp-elabel__ico { display: block; text-align: center; margin-bottom: 6px; }
.pp-elabel__ico svg { width: 22px; height: 22px; }
.pp-elabel__scale { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.pp-elabel__scale li { position: relative; margin: 0; height: 18px; }
.pp-elabel__scale li > span { display: block; height: 100%; width: var(--w, 60%); background: var(--pp-c); color: var(--pp-ct); font: 700 11px/18px var(--ou-font); padding-left: 5px; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); }
.pp-elabel__scale--wet li > span { background: #1f5fbf; color: #fff; opacity: .35; }
.pp-elabel__scale--wet li.is-on > span { opacity: 1; }
.pp-elabel__scale li > b { position: absolute; right: 0; top: -1px; height: 20px; min-width: 24px; display: grid; place-items: center; background: #1d2125; color: #fff; font-size: 12px; border-radius: 3px 0 0 3px; padding: 0 4px; }
.pp-elabel__scale li > b::before { content: ""; position: absolute; left: -7px; top: 0; border-style: solid; border-width: 10px 7px 10px 0; border-color: transparent #1d2125 transparent transparent; }
.pp-elabel__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--ou-line); }
.pp-elabel__noise { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.pp-elabel__noise svg { width: 22px; height: 22px; }
.pp-elabel__nclass { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1d2125; color: #fff; font-size: 12px; font-weight: 700; }
.pp-elabel__sym { color: #1d2125; }
.pp-elabel__sym svg { width: 30px; height: 26px; display: block; }
.pp-elabel__eprel { font-size: 11px; color: var(--ou-muted); margin-top: 8px; text-align: right; }

/* Inne rozmiary modelu */
.pp-sizes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.pp-sizes li { margin: 0; }
.pp-size {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "dim price" "idx price"; gap: 0 10px; align-items: center;
  padding: 10px 14px; border: 1px solid var(--ou-line); border-radius: var(--ou-radius); color: var(--ou-text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.pp-size:hover { border-color: var(--ou-accent); box-shadow: var(--ou-shadow-sm); text-decoration: none !important; color: var(--ou-text); }
.pp-size__dim { grid-area: dim; font-weight: 700; color: var(--ou-ink); font-size: 14.5px; }
.pp-size__idx { grid-area: idx; font-size: 12.5px; color: var(--ou-muted); }
.pp-size__price { grid-area: price; font-weight: 700; color: var(--ou-ink); font-size: 14.5px; white-space: nowrap; }

/* Karty „ten sam rozmiar” */
.pp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .pp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pp-card { margin: 0; min-width: 0; }
.pp-card__link {
  display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px; border: 1px solid var(--ou-line); border-radius: var(--ou-radius);
  background: #fff; color: var(--ou-text); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pp-card__link:hover { border-color: var(--ou-accent); box-shadow: var(--ou-shadow); transform: translateY(-2px); text-decoration: none !important; color: var(--ou-text); }
.pp-card__img { display: grid; place-items: center; aspect-ratio: 1 / 1; margin-bottom: 8px; background: #fff; }
body.ou-body .pp-card__img img { width: 100%; height: 100%; object-fit: contain; }
.pp-card__brand { font-size: 12px; font-weight: 700; color: var(--ou-primary); text-transform: uppercase; letter-spacing: .04em; }
.pp-card__name { font-weight: 600; color: var(--ou-ink); font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.pp-card__spec { font-size: 12.5px; color: var(--ou-muted); }
.pp-card__eu { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 2px; margin: 6px 0 2px; }
.pp-card__eu .pp-arrow { height: 20px; min-width: 22px; font-size: 12px; padding: 0 4px 0 6px; margin-right: 10px; }
.pp-card__eu .pp-arrow::after { border-width: 10px 0 10px 8px; right: -8px; }
.pp-card__db { font-size: 12px; font-weight: 700; color: var(--ou-ink); background: var(--ou-bg-soft); border-radius: 4px; padding: 1px 6px; }
.pp-card__price { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 17px; color: var(--ou-ink); }
.pp-card__price small { font-weight: 500; font-size: 12px; color: var(--ou-muted); }

/* GPSR */
.pp-gpsr { display: grid; gap: 24px 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pp-gpsr { grid-template-columns: 1fr 1fr; } }
.pp-gpsr__dl { margin: 0 0 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 14px; }
@media (min-width: 520px) { .pp-gpsr__dl { grid-template-columns: 190px minmax(0, 1fr); gap: 8px 16px; } }
.pp-gpsr__dl dt { color: var(--ou-muted); font-weight: 500; margin: 6px 0 0; }
@media (min-width: 520px) { .pp-gpsr__dl dt { margin: 0; } }
.pp-gpsr__dl dd { margin: 0; color: var(--ou-ink); overflow-wrap: anywhere; }
.pp-safety { margin: 0; padding-left: 20px; font-size: 14px; display: grid; gap: 6px; }
.pp-safety li { margin: 0; }
.pp-safety li::marker { color: var(--ou-accent); }

/* Dostawa, zwroty, gwarancja */
.pp-service { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .pp-service { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pp-service { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pp-service__item { margin: 0; padding: 18px; border: 1px solid var(--ou-line); border-radius: var(--ou-radius); background: var(--ou-bg-softer); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.pp-service__item p { margin: 0 0 4px !important; color: var(--ou-text); }
.pp-service__item a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; margin-right: 12px; }
.pp-service__item a .ou-ico { width: 15px; height: 15px; }
.pp-service__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--ou-primary-soft); color: var(--ou-primary); margin-bottom: 4px; }
.pp-service__icon .ou-ico { width: 22px; height: 22px; }
.pp-service__links { margin-top: auto !important; }

/* ---------- Pasek zakupu (telefony) ---------- */
.pp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; background: #fff; border-top: 1px solid var(--ou-line);
  box-shadow: 0 -6px 18px rgba(16, 24, 40, .1); padding: 10px var(--ou-gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .2s var(--ou-ease);
}
.pp-sticky[hidden] { display: none; }
.pp-sticky.is-visible { transform: none; }
.pp-sticky__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; margin: 0 auto; }
.pp-sticky__price { font-size: 13px; color: var(--ou-muted); }
.pp-sticky__price strong { font-size: 19px; color: var(--ou-ink); }
.pp-sticky__btn { min-height: 44px; }
@media (min-width: 1100px) { .pp-sticky { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .pp-sticky { transition: none; } }

/* ---------- Okno etykiety ---------- */
.pp-dialog { border: 0; padding: 0; border-radius: var(--ou-radius-lg); box-shadow: var(--ou-shadow-lg); max-width: min(440px, calc(100vw - 24px)); width: 100%; max-height: calc(100vh - 24px); overflow: auto; }
.pp-dialog::backdrop { background: rgba(17, 20, 24, .6); }
.pp-dialog__box { padding: 16px 18px 18px; }
.pp-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pp-dialog__title { font-size: 18px !important; margin: 0 !important; }
.pp-dialog__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ou-bg-soft); cursor: pointer; display: grid; place-items: center; color: var(--ou-ink); }
.pp-dialog__close:hover { background: var(--ou-line); }
.pp-dialog__body { display: grid; justify-items: center; gap: 12px; }
.pp-dialog__body img { width: 100%; height: auto; max-width: 400px; }
.pp-dialog__body .pp-elabel { max-width: 400px; }
.pp-dialog__eprel { margin: 0 !important; font-size: 14px; font-weight: 500; }

/* ---------- 404 produktu ---------- */
.pp-404 { max-width: 720px; margin: 0 auto; padding: 24px 0 40px; text-align: center; }
.pp-404__icon { display: grid; margin-left: auto; margin-right: auto; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ou-primary-soft); color: var(--ou-accent); margin-bottom: 12px; }
.pp-404__icon .ou-ico { width: 52px; height: 52px; }
.pp-404__search { display: flex; gap: 10px; max-width: 560px; margin: 20px auto 0; }
.pp-404__search .ou-input { flex: 1 1 auto; border-radius: 999px; padding-left: 18px; }
.pp-404__links { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pp-404__links li { margin: 0; }
@media (max-width: 559.98px) { .pp-404__search { flex-direction: column; } }

/* ---------- Telefony ---------- */
@media (max-width: 767.98px) {
  .pp { padding-top: 12px; }
  .pp-title { font-size: 25px !important; }
  .pp-gallery__main { aspect-ratio: auto; height: min(84vw, 400px); }
  body.ou-body .pp-gallery__main img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .pp-thumb { width: 64px; height: 64px; }
  body.ou-body .pp-thumb img { max-height: 48px; }
  .pp-buy__box { padding: 16px; }
  .pp-price__value { font-size: 30px; }
  .pp-subnav { margin-top: 28px; margin-left: calc(var(--ou-gutter) * -1); margin-right: calc(var(--ou-gutter) * -1); padding: 0 var(--ou-gutter); }
  .pp-subnav a { padding: 12px 10px 10px; font-size: 13.5px; }
  .pp-section { padding-top: 26px; }
  .pp-section__title { font-size: 20px !important; }
  .pp-params__table th, .pp-params__table td { padding: 9px 12px; font-size: 14px; }
  .pp-cards { gap: 10px; }
  .pp-card__link { padding: 10px; }
  .pp-card__price { font-size: 16px; }
  body.page-product .ou-footer { padding-bottom: 64px; }
}

/* --- Integracja: stan opony (DEMO / wada), rok produkcji ---------------------------------------- */
.pp-card__img { overflow: hidden; border-radius: 6px; }
.pp-title__dot { font-weight: 500; color: var(--ou-muted); white-space: nowrap; }
body.ou-body .pp-cond { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; }
body.ou-body .pp-cond .ou-ico { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; }
body.ou-body .pp-price__dot { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff7ed; border: 1px solid #fed7aa; font-size: 13.5px; line-height: 1.45; color: #7c2d12; }
body.ou-body .pp-price__dot .ou-ico { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
body.ou-body a.pp-eu__open { color: var(--ou-ink); text-decoration: none; }

/* --- Etykieta UE v4 („Etykieta Oponeus.pl”, inc/label) --------------------------------------------- */
/* Karta obok ceny: miniatura etykiety + strzałki klas (wyświetlanie zagnieżdżone) → okno z pełną etykietą */
.pp-eu__card {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border: 1px solid var(--ou-line-strong); border-radius: var(--ou-radius);
  background: #fff; color: var(--ou-ink); font: 500 13px/1.3 var(--ou-font); text-align: left; cursor: zoom-in;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.ou-body a.pp-eu__card { color: var(--ou-ink); text-decoration: none; }
.pp-eu__card:hover { border-color: var(--ou-ink); box-shadow: var(--ou-shadow-sm); }
body.ou-body .pp-eu__thumb { flex: 0 0 54px; width: 54px; height: 90px; border: 1px solid var(--ou-line); border-radius: 4px; background: #fff; object-fit: contain; }
.pp-eu__main { display: grid; gap: 7px; min-width: 0; flex: 1 1 auto; }
.pp-eu__title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14.5px; }
.pp-eu__more { font-weight: 600; font-size: 12.5px; color: var(--ou-primary); white-space: nowrap; }
.pp-eu__card:hover .pp-eu__more { text-decoration: underline; }
.pp-eu__classes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pp-eu__cls { display: inline-flex; align-items: center; gap: 6px; }
.pp-eu__cls .pp-arrow { height: 22px; min-width: 24px; font-size: 13px; padding: 0 4px 0 6px; margin-right: 8px; }
.pp-eu__cls .pp-arrow::after { border-width: 11px 0 11px 8px; right: -8px; }
.pp-eu__db { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px; }
.pp-eu__nc { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: var(--ou-ink); color: #fff; font-size: 11px; font-weight: 700; }
.pp-eu__eprel { flex-basis: 100%; font-size: 13px; font-weight: 500; }

/* Sekcja „Etykieta UE i karta informacyjna” */
.pp-label__imgbtn--ou { position: relative; width: 100%; aspect-ratio: 3 / 5; box-shadow: var(--ou-shadow-sm); }
a.pp-label__imgbtn { text-decoration: none !important; }
.pp-label__zoom {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: rgba(29, 33, 37, .86); color: #fff; font: 600 12.5px/1 var(--ou-font); opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease;
}
.pp-label__zoom .ou-ico { width: 14px; height: 14px; }
.pp-label__imgbtn:hover .pp-label__zoom, .pp-label__imgbtn:focus-visible .pp-label__zoom { opacity: 1; transform: none; }
@media (hover: none) { .pp-label__zoom { opacity: 1; transform: none; padding: 5px 8px; font-size: 11.5px; right: 6px; bottom: 6px; } }
.pp-label__cap { margin: 8px 0 0 !important; font-size: 12px !important; color: var(--ou-muted); text-align: center; }

/* Okno etykiety (lightbox): desktop — etykieta po lewej na całą wysokość okna, opis i akcje po prawej;
   telefon — przełącznik, etykieta, opis i akcje jedno pod drugim */
.pp-dialog--label { max-width: min(860px, calc(100vw - 24px)); width: auto; }
.pp-dialog__hgroup { min-width: 0; }
.pp-dialog__sub { margin: 2px 0 0 !important; font-size: 13px !important; color: var(--ou-muted); overflow-wrap: anywhere; }
.pp-ldlg { display: grid; gap: 14px; justify-items: center; grid-template-areas: "views" "media" "info"; width: 100%; }
.pp-ldlg__views { grid-area: views; }
.pp-ldlg__media { grid-area: media; display: grid; justify-items: center; min-width: 0; }
.pp-ldlg__info { grid-area: info; display: grid; gap: 12px; align-content: start; max-width: 460px; }
.pp-dialog__views { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--ou-bg-soft); max-width: 100%; }
.pp-dialog__view { border: 0; border-radius: 999px; padding: 7px 14px; background: transparent; color: var(--ou-muted); font: 600 13px/1.2 var(--ou-font); cursor: pointer; white-space: nowrap; }
.pp-dialog__view:hover { color: var(--ou-ink); }
.pp-dialog__view[aria-pressed="true"] { background: #fff; color: var(--ou-ink); box-shadow: var(--ou-shadow-sm); }
.pp-dialog__fig { margin: 0; display: grid; justify-items: center; }
.pp-dialog__fig[hidden], .pp-ldlg__desc[hidden] { display: none; }
.pp-dialog--label .pp-dialog__body img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px);
  border: 1px solid var(--ou-line); border-radius: 6px; background: #fff;
}
.pp-ldlg__desc { margin: 0 !important; font-size: 13.5px !important; line-height: 1.5; color: var(--ou-text); text-align: center; }
.pp-ldlg__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 !important; }
.pp-ldlg__actions a { text-decoration: none !important; }
.pp-ldlg__actions .ou-ico { width: 18px; height: 18px; }
@media (min-width: 760px) {
  /* stała ramka etykiety (3:5) wyliczona z wysokości okna → brak przeskoków przy przełączaniu wersji */
  .pp-ldlg { --pp-lh: min(calc(100vh - 128px), 1000px); grid-template-columns: calc(var(--pp-lh) * .6) 260px; grid-template-areas: "media views" "media info"; grid-template-rows: auto 1fr; justify-items: stretch; align-items: start; gap: 14px 24px; }
  @supports (height: 100dvh) { .pp-ldlg { --pp-lh: min(calc(100dvh - 128px), 1000px); } }
  .pp-ldlg__media { height: var(--pp-lh); width: calc(var(--pp-lh) * .6); align-items: start; }
  .pp-dialog--label .pp-dialog__fig { width: 100%; height: 100%; align-items: start; }
  .pp-dialog--label .pp-dialog__body img { max-width: 100%; max-height: 100%; }
  .pp-dialog__views { flex-direction: column; width: 100%; border-radius: 12px; }
  .pp-dialog__view { border-radius: 9px; text-align: left; padding: 9px 12px; }
  .pp-ldlg__desc { text-align: left; }
  .pp-ldlg__actions { flex-direction: column; align-items: stretch; }
  .pp-ldlg__actions .ou-btn { justify-content: center; }
  .pp-dialog--label .pp-dialog__box { padding: 16px 20px 20px; }
}
@media (min-width: 760px) { .pp-dialog--label { width: fit-content; } }
@media (max-width: 759.98px) {
  .pp-dialog--label { width: 100%; }
  .pp-dialog--label .pp-dialog__box { padding: 12px 12px 0; }
  .pp-dialog--label .pp-dialog__body img { max-height: calc(100vh - 290px); max-height: calc(100dvh - 290px); }
  .pp-ldlg { gap: 10px; }
  .pp-ldlg__desc { font-size: 12.5px !important; }
  /* akcje zawsze widoczne u dołu okna (okno przewija się w środku) */
  .pp-ldlg__actions { position: sticky; bottom: 0; width: calc(100% + 24px); margin: 0 -12px !important; padding: 10px 12px 12px; background: #fff; border-top: 1px solid var(--ou-line); }
  .pp-ldlg__long { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pp-label__zoom, .pp-eu__card { transition: none; } }
