/* Karta produktu */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 18px; font-size: 13px; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 500; }

/* Góra: galeria + panel zakupowy */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; padding-bottom: clamp(48px, 6vw, 88px); }

.gallery { position: sticky; top: 96px; display: grid; gap: 12px; }
.gallery__stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-xl); background: radial-gradient(70% 60% at 50% 62%, #fff 0%, #efece6 75%); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.gallery__stage > img { width: 100%; height: 100%; object-fit: contain; padding: 6% 10% 8%; transition: opacity .3s var(--ease); }
.gallery__stage > img.is-photo { object-fit: cover; padding: 0; }
.gallery__stage > img.is-pack { filter: var(--shadow-product); }
.gallery__numeral { position: absolute; left: 28px; top: 16px; font: 900 clamp(90px, 12vw, 180px)/.8 var(--f-display); font-variation-settings: "wdth" 62; color: rgba(18, 18, 17, .045); pointer-events: none; }
.gallery__tools { position: absolute; right: 16px; top: 16px; display: flex; gap: 8px; z-index: 3; }
.gallery__tools button { height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); font: 600 13px var(--f-body); display: inline-flex; align-items: center; gap: 8px; }
.gallery__tools button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery__tools svg { width: 16px; height: 16px; }
.hot { position: absolute; z-index: 2; transform: translate(-50%, -50%); transition: opacity .3s; }
.gallery:not(.show-hot) .hot { opacity: 0; pointer-events: none; }
.hot__dot { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 13px var(--f-mono); box-shadow: 0 0 0 6px rgba(228, 87, 15, .22); cursor: pointer; animation: pulse 2.4s infinite; }
.hot__tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); width: 220px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
.hot__tip b { display: block; font-size: 14px; margin-bottom: 2px; }
.hot:hover .hot__tip, .hot:focus-within .hot__tip, .hot.is-open .hot__tip { opacity: 1; transform: translateX(-50%); }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.thumb { aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: border-color var(--t-fast); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-pack img { object-fit: contain; padding: 8%; }
.thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.thumb--soon { display: grid; place-items: center; text-align: center; font: 600 11px var(--f-mono); color: var(--ink-3); background: var(--paper-2); cursor: default; }
.thumb--soon b { display: block; font: 800 20px var(--f-display); color: var(--ink-2); font-variation-settings: "wdth" 80; }

/* Panel zakupowy */
.buy { display: grid; gap: 22px; }
.buy__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.buy h1 { font: 800 clamp(48px, 5.4vw, 84px)/.88 var(--f-display); font-variation-settings: "wdth" 72; letter-spacing: -.02em; }
.buy__lead { font-size: 17px; color: var(--ink-2); line-height: 1.55; }
.keyspecs { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.keyspecs div { padding: 14px 0; display: grid; gap: 2px; }
.keyspecs div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.keyspecs b { font: 800 24px/1 var(--f-display); font-variation-settings: "wdth" 76; font-variant-numeric: tabular-nums; }
.keyspecs span { font-size: 12px; color: var(--ink-3); }

.step { display: grid; gap: 10px; }
.step[hidden] { display: none; }
.step__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.step__head b { font-size: 15px; font-weight: 600; }
.step__head b i { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--accent); margin-right: 8px; }
.step__head small { font-size: 12px; color: var(--ink-3); }
.req { font: 600 10px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-hover); background: var(--accent-soft); padding: 3px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }
.choices { display: grid; gap: 8px; }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); text-align: left; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.choice:hover { border-color: var(--ink); }
.choice.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice b { font-size: 15px; font-weight: 700; }
.choice small { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.choice .price { font: 700 14px var(--f-body); font-variant-numeric: tabular-nums; margin-top: 4px; }
.choice--wheel { grid-template-columns: 48px 1fr; align-items: center; column-gap: 12px; }
.choice--wheel img, .choice--wheel .wheel-ph { width: 48px; height: 48px; object-fit: contain; grid-row: span 3; }
.choice .tick { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.choice.is-on .tick { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.opts { display: grid; gap: 6px; }
.opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-size: 14px; transition: border-color var(--t-fast); }
.opt:hover { border-color: var(--line-2); }
.opt .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.opt.is-on { border-color: var(--accent); }
.opt.is-on .box { background: var(--accent); border-color: var(--accent); }
.opt.is-on .box::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt small { display: block; color: var(--ink-3); font-size: 12px; }
.opt .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.opt.is-auto { border-style: dashed; cursor: default; }
.opt.is-auto .box { background: var(--ink); border-color: var(--ink); }

.summary { border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: 20px 22px; display: grid; gap: 14px; }
.summary__lines { display: grid; gap: 6px; font-size: 13px; color: #bdb7ad; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.summary.is-open .summary__lines { max-height: 400px; }
.summary__lines div { display: flex; justify-content: space-between; gap: 12px; }
.summary__lines b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary__total { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.summary__total small { display: block; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: #a8a39a; }
.summary__total b { font: 800 40px/1 var(--f-display); font-variation-settings: "wdth" 74; font-variant-numeric: tabular-nums; }
.summary__toggle { font-size: 13px; color: #d9d4cb; text-decoration: underline; text-underline-offset: 3px; }
.summary .btn--primary { width: 100%; }
.summary__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 8px; }
.summary__row .btn { padding-inline: 8px; white-space: nowrap; }
.summary .btn--ghost { border: 1px solid #3a3935; color: #fff; }
.summary .btn--ghost:hover { border-color: #fff; }
.summary__note { font-size: 12px; color: #8f8a81; }
.dealer-mini { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.dealer-mini .av { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 900 18px var(--f-display); }
.dealer-mini small { display: block; color: var(--ink-3); font-size: 12px; }

/* Pod-nawigacja */
.subnav { position: sticky; top: 76px; z-index: 30; background: rgba(244, 242, 238, .92); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; height: 52px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-color: var(--accent); }
.subnav sup { font: 600 11px var(--f-mono); color: var(--accent); margin-left: 4px; }

/* Szczegóły */
.details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.detail { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail div { padding: 16px 18px 18px; display: grid; gap: 4px; }
.detail b { font-size: 16px; }
.detail p { font-size: 14px; color: var(--ink-2); }

/* Osprzęt */
.att-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.att-filter button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; background: var(--surface); }
.att-filter button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.atts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.att { display: grid; grid-template-rows: 190px auto; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.att[hidden] { display: none; }
.att:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.att__pic { display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 65%, #fff, var(--paper) 80%); position: relative; }
.att__pic img { max-height: 160px; max-width: 80%; object-fit: contain; filter: var(--shadow-product); }
.att__pic .ph { font: 900 54px var(--f-display); font-variation-settings: "wdth" 62; color: rgba(18, 18, 17, .1); }
.att__cat { position: absolute; left: 12px; top: 12px; }
.att__body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.att__body h4 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.att__sku { font: 500 11px var(--f-mono); color: var(--ink-3); }
.att__need { font-size: 12px; color: var(--accent-hover); }
.att__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.att__foot b { font-size: 17px; font-variant-numeric: tabular-nums; }
.att__add { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: all var(--t-fast); }
.att__add:hover { border-color: var(--ink); }
.att__add.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Tabele */
.versions { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 15px; }
.versions th, .versions td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.versions thead th { background: var(--paper); font-weight: 600; }
.versions thead th b { display: block; font: 800 24px var(--f-display); font-variation-settings: "wdth" 78; }
.versions thead th small { font: 500 11px var(--f-mono); color: var(--ink-3); }
.versions tbody th { font-weight: 500; color: var(--ink-2); width: 26%; }
.versions tr:last-child > * { border-bottom: 0; }
.versions .hl { background: #fffaf6; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.spec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 22px; }
.spec-card h4 { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 14px 0 6px; }
.spec-card dl { display: grid; grid-template-columns: 1fr auto; }
.spec-card dt, .spec-card dd { padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.spec-card dt { color: var(--ink-2); }
.spec-card dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Pobieranie, FAQ, podobne */
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dl { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); transition: border-color var(--t-fast); }
.dl:hover { border-color: var(--ink); }
.dl i { width: 44px; height: 44px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; }
.dl i svg { width: 22px; height: 22px; }
.dl small { display: block; color: var(--ink-3); font-size: 12px; }
.dl > svg { width: 18px; height: 18px; color: var(--ink-3); }
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px var(--f-body); color: var(--accent); transition: transform var(--t-med) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); font-size: 15px; max-width: 70ch; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Pasek mobilny */
.mbar { display: none; }

@media (max-width: 1100px) {
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .details, .atts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .downloads, .related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .subnav { top: 64px; }
  .thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72px; overflow-x: auto; scrollbar-width: none; }
  .thumb--soon { display: none; }
  .choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choices--3 .choice { padding: 12px 10px; }
  .choices--3 .choice small { display: none; }
  .choices--3 .choice b { font-size: 18px; }
  .keyspecs { grid-template-columns: 1fr 1fr; }
  .keyspecs div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .keyspecs div:nth-child(4) { border-top: 1px solid var(--line); }
  .choices--2 { grid-template-columns: 1fr; }
  .details, .atts, .downloads, .related, .spec-grid { grid-template-columns: 1fr; }
  .versions { font-size: 13px; display: block; overflow-x: auto; }
  .versions th, .versions td { padding: 12px; min-width: 120px; }
  .hot__tip { width: 180px; }
  .mbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .4); }
  .mbar small { display: block; font-size: 11px; color: var(--ink-3); }
  .mbar b { font: 800 22px var(--f-display); font-variation-settings: "wdth" 76; }
  body.pdp-page { padding-bottom: 76px; }
}

/* Pozycje zależne od modelu (np. UBS-Line) */
.choice[hidden], .opt[hidden], .att[hidden] { display: none; }
.att.is-off { opacity: .55; }
.att.is-off .att__pic img { filter: grayscale(1); }
.att__nofit { font: 500 11px var(--f-mono); color: var(--ink-3); }
.att__add:disabled { cursor: not-allowed; opacity: .6; }
.wheel-ph { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #e9e6df 0 24%, #8d877c 25% 30%, #2a2927 31% 100%); box-shadow: inset 0 0 0 3px #3a3936; justify-self: center; }
.model-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.model-pick a { display: grid; gap: 6px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-align: center; transition: border-color var(--t-fast); }
.model-pick a:hover { border-color: var(--ink); }
.model-pick img { height: 150px; width: 100%; object-fit: contain; }
.model-pick b { font: 800 20px var(--f-display); font-variation-settings: "wdth" 78; }
.model-pick small { color: var(--ink-3); font-size: 13px; }
@media (max-width: 720px) { .model-pick { grid-template-columns: 1fr 1fr; } .model-pick img { height: 110px; } }
.cfg-note { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-hover); font-size: 13px; line-height: 1.45; }
.cfg-note[hidden] { display: none; }
