/* =====================================================================
   Vianek: karta produktu (obszar B1). Ładowane po vianek-identity.css.
   Charakter Vianek: karty faktów i panele w pastelu z koloru produktu (--tint z meta `color`).
   ===================================================================== */
.pdp { --tc: var(--tint, var(--tint-fallback, #D8D2C8)); --tint-card: color-mix(in oklab, var(--tc) 13%, var(--paper)); --tint-line: color-mix(in oklab, var(--tc) 26%, var(--paper)); }
@supports (color: oklch(from red l c h)) {
  .pdp { --tint-card: oklch(from var(--tc) .94 min(c, .04) h); --tint-line: oklch(from var(--tc) .87 min(c, .06) h); }
}

/* okruszki */
.pdp-info { gap: 18px; }
.pdp-crumbs { min-width: 0; margin-bottom: -4px; }
.pdp-crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.pdp-crumbs li { display: flex; flex: none; }
.pdp-crumbs li[aria-current] { flex: 0 1 auto; min-width: 0; }
.pdp-crumbs li + li::before { content: "/"; padding: 0 .5em; color: var(--line); color: color-mix(in oklab, var(--muted) 50%, var(--paper)); }
.pdp-crumbs a { color: var(--muted); text-decoration: none; }
.pdp-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pdp-crumbs [aria-current] span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 32ch; }

/* marka w H1 (nazwa produktu z marką = to samo, co tytuł na vianek.pl) */
.pdp-info h1 .tp-brand { display: block; width: max-content; margin-bottom: 14px; font: 500 .75rem/1.3 var(--f); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.pdp-info h1 a.tp-brand:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.pdp-info h1 .pdp-name { display: block; }

/* cena, Omnibus, cena jednostkowa, status */
.pdp-pricebox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pdp-pricebox .pdp-price { margin: 0; }
.pdp-pricebox .pdp-omni { flex-basis: 100%; margin: 0; }
.pdp-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid var(--ink); font: 500 .6875rem/1 var(--f); letter-spacing: .14em; text-transform: uppercase; }
.pdp-status.is-off { border-color: var(--line); color: var(--muted); background: var(--soft); }
.pdp-unit { font-size: .8125rem; color: var(--muted); white-space: nowrap; }

/* karty faktów w pastelu produktu */
.pdp-facts.pdp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-top: 0; margin: 2px 0 0; }
.pdp-facts.pdp-cards > div { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 15px; border: 0; background: var(--tint-card); min-width: 0; }
.pdp-facts.pdp-cards.n1 > div, .pdp-facts.pdp-cards.n3 > div:last-child { grid-column: 1 / -1; }
.pdp-facts.pdp-cards dt { font: 500 .6875rem/1.3 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pdp-facts.pdp-cards dd { margin: 0; font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.pdp-facts.pdp-cards dd small { display: block; margin-top: 2px; }
.pdp-facts.pdp-cards a { color: inherit; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .3); text-underline-offset: 3px; }
.pdp-facts.pdp-cards a:hover { text-decoration-color: currentColor; }

/* dodatki przed przyciskiem: rutyna i powiadomienie o dostępności w tym samym języku co karty */
.pdp .vx-rut { margin: 0; border-color: var(--tint-line); background: var(--tint-card); }
.pdp .vx-rut:hover { border-color: var(--ink); }
.pdp .vx-bis { margin: 0; }
.pdp .vx-bis .cwginstock-subscribe-form { background: var(--tint-card); border-color: var(--tint-line); }
.pdp-info:has(.vx-bis) .pdp-buy { display: none; }
.pdp-alt { justify-self: start; font-size: .9375rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.pdp-alt:hover { color: var(--accent); }

/* zakup + lista zaufania */
.pdp-add.is-loading { opacity: .6; pointer-events: none; }
.pdp-trust { gap: 9px; }
.pdp-trust li > span { flex: 1; min-width: 0; }
.pdp-trust a { color: inherit; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .3); text-underline-offset: 3px; }
.pdp-trust a:hover { text-decoration-color: currentColor; }
.pdp-ship-t { display: block; }
.pdp-ship-bar { display: block; height: 4px; margin-top: 7px; max-width: 320px; background: var(--line); overflow: hidden; }
.pdp-ship-bar[hidden] { display: none; }
.pdp-ship-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--ink); transition: width .5s ease; }
.pdp-ship.is-free .pdp-ship-bar i { background: var(--accent); }

/* opinie: średnia + rozkład ocen, „Pokaż więcej”, formularz rozwijany */
.pdp-reviews .section-title { gap: 18px 40px; }
.pdp-reviews .rv-sum > div { display: grid; gap: 4px; }
.rv-dist { display: grid; gap: 3px; width: 220px; margin: 0; padding: 0; list-style: none; font-size: .75rem; color: var(--muted); }
.rv-dist li { display: grid; grid-template-columns: 12px 1fr 30px; align-items: center; gap: 8px; }
.rv-dist i { position: relative; height: 5px; background: var(--line); }
.rv-dist i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); }
.rv-dist b { font-weight: 400; text-align: right; }
.rv[hidden] { display: none; }
.rv:focus { outline: none; }
.rv-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; padding: clamp(20px, 2.4vw, 32px) var(--pad) 0; }
.rv-actions .btn { min-width: 240px; }
.rv-more span { color: var(--muted); font-weight: 400; margin-left: .3em; }
.rv-more:hover span { color: inherit; }
.rv-add > summary { list-style: none; display: inline-flex; justify-content: center; cursor: pointer; }
.rv-add > summary::-webkit-details-marker { display: none; }
.rv-add[open] { flex-basis: 100%; }
.rv-add[open] > summary { display: none; }
.rv-add .rv-form { margin: 0 auto; padding-top: 8px; border-top: 0; }
.rv-thanks { margin: 20px var(--pad) 0; padding: 12px 16px; background: var(--tint-card); }

/* dolny pasek zakupu (telefon) */
@media (max-width: 1020px) {
  .pdp-bar img { flex: none; width: 44px; height: 44px; object-fit: contain; background: var(--tint-card); mix-blend-mode: multiply; }
  .pdp-bar div { gap: 1px; }
  .pdp-bar b { display: flex; gap: 8px; align-items: baseline; }
  .pdp-bar del { font-size: .8125rem; font-weight: 300; color: var(--muted); }
}

@media (max-width: 700px) {
  .pdp-crumbs ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .pdp-crumbs ol::-webkit-scrollbar { display: none; }
  .pdp-crumbs [aria-current] span { max-width: 22ch; }
  .pdp-facts.pdp-cards > div { padding: 12px 13px 13px; }
  .pdp-facts.pdp-cards dd { font-size: .875rem; }
  .pdp-reviews .section-title { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rv-dist { width: 100%; max-width: 360px; }
  .rv-actions > * { width: 100%; }
  .rv-actions .btn { min-width: 0; width: 100%; }
}

/* PDP-19a: kotwice (#podobne, #opinie) nie chowają się pod przyklejonym nagłówkiem */
.pdp [id] { scroll-margin-top: 96px; }
/* PDP-17b: „Dodaj do koszyka” na telefonie w jednej linii, wyśrodkowane */
@media (max-width: 620px) {
  .pdp-buy .pdp-add { padding-inline: 14px; white-space: nowrap; text-align: center; }
}

/* opisy produktu: wiersze tekst + zdjęcie na przemian (jak na vianek.pl) */
.pdp-story { grid-template-columns: 1fr; }
.story-b { border-right: 0; background: var(--soft); }
.story-b.has-pic { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; padding: 0; }
.story-b.has-pic .story-t { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 84px); }
.story-b.has-pic .story-i { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.story-b.has-pic .story-i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.story-b.has-pic.is-flip .story-t { order: 2; }
.story-b:nth-child(2), .story-b:nth-child(3) { background: var(--soft); }
.story-b:nth-child(even) { background: var(--tint-card, var(--soft)); }
@media (max-width: 760px) {
  .story-b.has-pic { grid-template-columns: 1fr; }
  .story-b.has-pic.is-flip .story-t { order: 0; }
  .story-b.has-pic .story-t { padding: 32px var(--pad); }
}

/* dwie pierwsze opinie nad opisami produktu */
.pdp-rv-top { margin-top: var(--section); }
.pdp-rv-top + .pdp-story { margin-top: 0; }

/* Podobne produkty: jedna pusta linia nad stopką */
.shelf.pdp-more { margin-bottom: 1.65em; }
