/* Lista produktów. Stary motyw ustawia "* { color }", "a:hover { color !important }" i "img { width: 100% }". */
body.tpi-list-page .site-container-content-bnb { max-width: none !important; width: 100% !important; padding: 0 !important; margin-top: 187px !important; }
body.tpi-list-page #content, body.tpi-list-page #primary { margin: 0 !important; padding: 0 !important; }
body.tpi-list-page #main { padding: 0; margin: 0; }
body.tpi-list-page .tpi-footer { margin-top: 0; }
@media (max-width: 1024px) { body.tpi-list-page .site-container-content-bnb { margin-top: 121px !important; } }

.woocommerce nav.woocommerce-breadcrumb.tpi-l-crumbs { font-size: 14px; line-height: 1.5; color: var(--tpi-ink-2); margin: 0 auto !important; padding: 22px var(--tpi-pad) 0 !important; }
.woocommerce nav.woocommerce-breadcrumb.tpi-l-crumbs a, .tpi-l-crumbs a, .tpi-l-crumbs .tpi-l-sep { color: inherit !important; }
.tpi-l-crumbs .tpi-l-sep { margin-inline: 8px; opacity: .6; }

.tpi-ls { color: var(--tpi-ink); font-size: 16px; line-height: 1.5; background: #fff; overflow-x: clip; padding: 0; }
.tpi-ls *, .tpi-ls *::before, .tpi-ls *::after { box-sizing: border-box; }
.tpi-ls :where(.tpi-l-top, .tpi-l-cats, .tpi-l-chips, .tpi-l-types, .tpi-l-dock, .tpi-l-filters, .tpi-l-bar, .tpi-l-on, .tpi-l-next, .tpi-l-none, .tpi-l-help) * { color: inherit; }
.tpi-ls :is(.tpi-l-cats, .tpi-l-chips, .tpi-l-types, .tpi-l-on, .tpi-l-next, .tpi-l-none) a, .tpi-ls :is(.tpi-l-cats, .tpi-l-chips, .tpi-l-types, .tpi-l-on, .tpi-l-next, .tpi-l-none) a:hover { text-decoration: none !important; color: inherit !important; }
.tpi-ls :is(.tpi-l-types, .tpi-l-dock, .tpi-l-filters, .tpi-l-desc) button { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; min-height: 0; margin: 0; cursor: pointer; font: inherit; text-align: left; }
.tpi-ls :focus-visible { outline: 3px solid var(--tpi-orange); outline-offset: 2px; }
.tpi-ls [hidden] { display: none !important; }

.tpi-l-top { display: flex; align-items: baseline; gap: 14px; padding: 10px 0 26px; flex-wrap: wrap; }
.tpi-ls .tpi-l-top h1 { color: var(--tpi-ink); margin: 0 !important; padding: 0; border: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.tpi-ls .tpi-l-top span { color: var(--tpi-ink-2); }

/* Podkategorie */
.tpi-l-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tpi-l-cats.is-many { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 5.5); overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #aab2b9 transparent; scroll-snap-type: x proximity; }
.tpi-ls .tpi-l-cat { display: flex; flex-direction: column; min-height: 184px; padding: 16px 16px 0; background: var(--tpi-fog); border-radius: var(--tpi-r); scroll-snap-align: start; transition: background .2s; overflow: hidden; }
.tpi-ls .tpi-l-cat:hover { background: #e2e7ea; }
.tpi-ls .tpi-l-cat b { line-height: 1.25; font-weight: 600; }
.tpi-ls .tpi-l-cat small { color: var(--tpi-ink-2); font-size: 14px; }
.tpi-ls .tpi-l-cat img { width: 100%; height: 128px; max-width: none; margin: auto auto 0; padding: 0 0 10px; object-fit: contain; mix-blend-mode: multiply; }
.tpi-l-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tpi-ls .tpi-l-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--tpi-line); border-radius: 22px; font-size: 15px; }
.tpi-ls .tpi-l-chips a:hover { border-color: var(--tpi-ink); }

/* Rodzaj produktu */
.tpi-ls > .tpi-wrap:has(> .tpi-l-top:last-child) + .tpi-l-live .tpi-l-types { margin-top: 0; }
.tpi-l-types { display: flex; gap: 30px; margin-top: 40px; overflow-x: auto; scrollbar-width: none; }
.tpi-ls .tpi-l-types a { padding: 14px 0; font-weight: 600; font-size: 17px; color: var(--tpi-ink-2) !important; border-bottom: 3px solid transparent; white-space: nowrap; }
.tpi-ls .tpi-l-types a:hover { color: var(--tpi-ink) !important; }
.tpi-ls .tpi-l-types a[aria-current] { color: var(--tpi-ink) !important; border-color: var(--tpi-orange); }
.tpi-ls .tpi-l-types small { font-size: 14px; font-weight: 400; margin-left: 5px; }

/* Układ: szare tło na całą szerokość okna */
.tpi-l-main { position: relative; display: grid; grid-template-columns: 284px minmax(0, 1fr); gap: 32px; align-items: start; padding: 28px 0 66px; min-height: 320px; }
.tpi-l-main.is-plain { display: block; }
.tpi-l-main::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 100vw; margin-left: -50vw; background: var(--tpi-list); }
.tpi-l-results { position: relative; min-width: 0; transition: opacity .15s; }
.tpi-l-live.is-busy .tpi-l-results { opacity: .45; }
.tpi-l-live > .tpi-wrap > .tpi-l-main:first-child, .tpi-l-live > .tpi-wrap > .tpi-l-dock:first-child + .tpi-l-main { margin-top: 24px; }
.tpi-l-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 46px; margin-bottom: 20px; }
.tpi-ls .tpi-l-sort { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 400; }
.tpi-ls .tpi-l-sort select { width: auto; max-width: 100%; height: 46px; min-height: 0; margin: 0; padding: 0 12px; border: 1px solid #aab2b9; border-radius: var(--tpi-r-in); background: #fff; font: inherit; font-weight: 600; box-shadow: none; }
.tpi-l-on { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tpi-ls .tpi-l-on a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px; background: #fff; border-radius: 18px; font-size: 15px; }
.tpi-ls .tpi-l-on a:hover { background: #dbe1e5; }
.tpi-l-on i { font-style: normal; font-size: 19px; line-height: 1; }
.tpi-ls .tpi-l-on a.is-clear, .tpi-ls .tpi-l-on a.is-clear:hover { background: none; text-decoration: underline !important; text-underline-offset: 4px; }

/* Filtry */
.tpi-l-filters { margin: 0; }
.tpi-l-f { min-width: 0; margin: 0; padding: 18px 0 20px; border: 0; border-top: 1px solid var(--tpi-line); }
.tpi-l-f:first-of-type { border-top: 0; padding-top: 0; }
.tpi-ls .tpi-l-f legend { float: left; width: 100%; margin: 0 0 8px; padding: 0; border: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.tpi-l-f legend + * { clear: both; }
.tpi-ls .tpi-l-opt { display: flex; align-items: center; gap: 11px; min-height: 38px; margin: 0; font-weight: 400; line-height: 1.25; cursor: pointer; }
.tpi-l-opt:hover span { text-decoration: underline; text-underline-offset: 4px; }
.tpi-ls .tpi-l-opt small { margin-left: auto; color: var(--tpi-ink-2); font-size: 14px; }
.tpi-l-opt.is-zero { opacity: .5; }
.tpi-ls.is-js:not(.is-all) .tpi-l-opt.is-extra, .tpi-ls.is-all .tpi-l-all, .tpi-ls:not(.is-js) .tpi-l-all { display: none; }
.tpi-ls .tpi-l-opt input[type="checkbox"] { -webkit-appearance: none; appearance: none; position: static; display: grid; place-items: center; flex: none; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; border: 2px solid #7c868f; border-radius: 5px; background: #fff; box-shadow: none; cursor: pointer; }
.tpi-ls .tpi-l-opt input[type="checkbox"]::before { content: none; }
.tpi-ls .tpi-l-opt input[type="checkbox"]:checked { background: var(--tpi-ink); border-color: var(--tpi-ink); }
.tpi-ls .tpi-l-opt input[type="checkbox"]:checked::after { content: ""; position: static; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; background: none; transform: translateY(-1px) rotate(45deg); }
.tpi-l-price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.tpi-ls .tpi-l-price input { width: 100%; height: 44px; min-height: 0; margin: 0; padding: 0 8px; border: 1px solid #aab2b9; border-radius: var(--tpi-r-in); background: #fff; font: inherit; font-size: 15px; box-shadow: none; }
.tpi-ls .tpi-l-filters .tpi-l-all { margin-top: 8px; font-weight: 600; border-bottom: 2px solid var(--tpi-orange); }
.tpi-l-sheet-h, .tpi-l-dock { display: none; }
.tpi-ls .tpi-l-sheet-f button { width: 100%; min-height: 50px; background: var(--tpi-orange); color: #14181c; font-weight: 700; text-align: center; border-radius: var(--tpi-r-btn); }
@media (min-width: 901px) {
	.tpi-l-filters { position: sticky; top: calc(var(--tpi-header-bottom, 133px) + 24px); max-height: calc(100vh - var(--tpi-header-bottom, 133px) - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c3cad0 transparent; padding: 20px; background: #fff; border-radius: var(--tpi-r); }
	.tpi-ls.is-js .tpi-l-sheet-f { display: none; }
}
@media (min-width: 901px) and (max-width: 1180px) { .tpi-l-main { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; } .tpi-ls .tpi-l-price input { font-size: 14px; padding: 0 6px; } }

/* Dalsze strony */
.tpi-l-next { text-align: center; margin-top: 28px; }
.tpi-l-next > i { display: block; width: 220px; height: 4px; margin: 12px auto 0; background: #c9d0d5; border-radius: 2px; overflow: hidden; }
.tpi-l-next > i u { display: block; height: 100%; background: var(--tpi-orange); }
.tpi-ls .tpi-l-more, .tpi-ls .tpi-l-none a { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 18px; padding: 0 28px; font-weight: 700; background: #fff; border: 2px solid var(--tpi-ink); border-radius: var(--tpi-r-btn); }
.tpi-ls .tpi-l-more:hover, .tpi-ls .tpi-l-none a:hover { background: var(--tpi-orange); border-color: var(--tpi-orange); }
.tpi-l-more.is-busy { opacity: .5; }
.tpi-l-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 18px; }
.tpi-ls .tpi-l-pages .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; margin: 0; padding: 0 6px; border: 0; background: none; font-size: 16px; font-weight: 400; border-bottom: 3px solid transparent; }
.tpi-ls .tpi-l-pages .page-numbers.current { font-weight: 700; border-color: var(--tpi-orange); }
.tpi-ls .tpi-l-pages a.page-numbers:hover { border-color: var(--tpi-ink); }
.tpi-l-none { padding: 40px 28px; background: #fff; border-radius: var(--tpi-r); }
.tpi-ls .tpi-l-none b { display: block; font-size: 21px; }
.tpi-ls .tpi-l-none p { margin: 6px 0 0 !important; }

/* Kontakt i opis */
.tpi-ls .tpi-l-help { margin: 0 !important; padding: 0; background: var(--tpi-night); color: #fff; }
.tpi-l-help .tpi-wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: 48px; }
.tpi-ls .tpi-l-help h2 { margin: 0 !important; font-size: clamp(24px, 2.6vw, 34px); font-weight: 300; line-height: 1.15; }
.tpi-ls .tpi-l-help h2 b { font-weight: 700; }
.tpi-l-help .tpi-wrap > div { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.tpi-ls .tpi-l-help a, .tpi-ls .tpi-l-help a:hover { text-decoration: none !important; color: #fff !important; }
.tpi-ls .tpi-l-help a.tpi-l-tel { font-size: 24px; font-weight: 700; }
.tpi-ls .tpi-l-help a.tpi-l-btn, .tpi-ls .tpi-l-help a.tpi-l-btn:hover { display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; background: var(--tpi-orange); color: #14181c !important; font-weight: 700; border-radius: var(--tpi-r-btn); }
.tpi-ls .tpi-l-help a.tpi-l-btn:hover { background: #ff9240; }
.tpi-ls .tpi-l-desc { margin: 0 !important; padding: 64px 0 80px; }
.tpi-l-desc__in { position: relative; max-width: 860px; }
.tpi-l-desc__in > *, .tpi-l-desc .term-description { margin: 0; padding: 0; max-width: none; width: auto; }
.tpi-l-desc.is-cut:not(.is-open) .tpi-l-desc__in { max-height: 240px; overflow: hidden; }
.tpi-l-desc.is-cut:not(.is-open) .tpi-l-desc__in::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.tpi-ls .tpi-l-desc :is(h1, h2) { margin: 30px 0 12px !important; font-size: 27px; font-weight: 700; line-height: 1.2; text-align: left; }
.tpi-ls .tpi-l-desc :is(h3, h4) { margin: 24px 0 8px !important; font-size: 20px; font-weight: 700; line-height: 1.3; text-align: left; }
.tpi-ls .tpi-l-desc p { margin: 0 0 14px !important; text-align: left; }
.tpi-ls .tpi-l-desc :is(p, li) a { text-decoration: underline !important; }
.tpi-ls .tpi-l-desc :is(ul, ol) { margin: 0 0 14px !important; padding-left: 22px; }
.tpi-ls .tpi-l-desc ul { list-style: disc; }
.tpi-ls .tpi-l-desc ol { list-style: decimal; }
.tpi-l-desc .term-description > :first-child, .tpi-l-desc__in > :first-child > :first-child { margin-top: 0 !important; }
.tpi-ls .tpi-l-desc table { display: block; max-width: 100%; overflow-x: auto; }
.tpi-ls .tpi-l-desc img { max-width: 100%; height: auto; border-radius: var(--tpi-r-btn); }
.tpi-ls .tpi-l-desc button { margin-top: 14px; font-weight: 600; border-bottom: 2px solid var(--tpi-orange); color: var(--tpi-ink); }

@media (max-width: 900px) {
	.tpi-l-main { display: block; padding: 18px 0 46px; }
	.tpi-ls.is-js .tpi-l-live > .tpi-wrap > .tpi-l-dock:first-child + .tpi-l-main { margin-top: 0; }
	.tpi-l-cats, .tpi-l-cats.is-many { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px; overflow-x: auto; margin-inline: calc(var(--tpi-pad) * -1); padding-inline: var(--tpi-pad); scroll-padding-inline: var(--tpi-pad); scrollbar-width: none; }
	.tpi-ls .tpi-l-cat { min-height: 154px; padding: 12px 12px 0; font-size: 15px; }
	.tpi-ls .tpi-l-cat img { height: 84px; }
	.tpi-l-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--tpi-pad) * -1); padding-inline: var(--tpi-pad); scrollbar-width: none; }
	.tpi-ls .tpi-l-chips a { white-space: nowrap; min-height: 44px; }
	.tpi-l-types { gap: 24px; margin: 24px calc(var(--tpi-pad) * -1) 0; padding-inline: var(--tpi-pad); }
	.tpi-ls:not(.is-js) .tpi-l-filters { position: relative; margin-bottom: 20px; padding: 18px; background: #fff; border-radius: var(--tpi-r); }
	.is-js .tpi-l-bar .tpi-l-sort { display: none; }
	.is-js .tpi-l-bar { min-height: 0; margin-bottom: 14px; }
	.is-js .tpi-l-dock { display: grid; grid-template-columns: 1fr 1fr; position: sticky; top: var(--tpi-header-bottom, 121px); z-index: 20; margin-inline: calc(var(--tpi-pad) * -1); background: #fff; border-block: 1px solid var(--tpi-line); }
	.tpi-ls .tpi-l-dock > * { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin: 0; font-weight: 600; }
	.tpi-l-dock > * + * { border-left: 1px solid var(--tpi-line) !important; }
	.tpi-ls .tpi-l-dock select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
	.tpi-l-dock label:focus-within { outline: 3px solid var(--tpi-orange); outline-offset: -3px; }
	.tpi-l-dock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
	.is-js .tpi-l-filters { display: none; position: fixed; inset: 0; z-index: 100000; flex-direction: column; background: #fff; }
	.is-js.is-sheet .tpi-l-filters { display: flex; }
	.is-js .tpi-l-filters__in { flex: 1; overflow-y: auto; padding: 18px var(--tpi-pad); overscroll-behavior: contain; }
	.is-js .tpi-l-sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px var(--tpi-pad); border-bottom: 1px solid var(--tpi-line); font-weight: 700; font-size: 20px; }
	.tpi-ls .tpi-l-sheet-h button { display: grid; place-items: center; width: 48px; height: 48px; font-size: 30px; font-weight: 300; text-align: center; }
	.is-js .tpi-l-sheet-f { padding: 12px var(--tpi-pad) max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--tpi-line); }
	.tpi-ls .tpi-l-opt { min-height: 46px; }
	.tpi-ls .tpi-l-price input { font-size: 16px; }
	html.tpi-sheet-open { overflow: hidden; }
	html.tpi-sheet-open .tpi-ls { position: relative; z-index: 100001; }
}
@media (max-width: 640px) {
	.tpi-l-top { padding-bottom: 18px; }
	.tpi-ls .tpi-l-desc { padding: 44px 0 56px; }
}
@media (prefers-reduced-motion: reduce) { .tpi-ls * { transition: none !important; } }
/* Obwódka tylko przy klawiaturze, nie po kliknięciu myszą. */
.tpi-ls a:focus:not(:focus-visible), .tpi-ls button:focus:not(:focus-visible), .tpi-ls select:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
.tpi-ls .tpi-l-types a:focus-visible { outline-offset: -3px; }

/* Podkategorie: jeden wiersz, przewijany strzałkami */
.tpi-l-chipbar { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.tpi-ls .tpi-l-chipbar .tpi-l-chips { flex: 1; min-width: 0; flex-wrap: nowrap; margin: 0; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; }
.tpi-ls .tpi-l-chipbar .tpi-l-chips::-webkit-scrollbar { display: none; }
.tpi-ls .tpi-l-chipbar .tpi-l-chips a { flex: none; white-space: nowrap; scroll-snap-align: start; }
.tpi-l-chipbar.is-more-r .tpi-l-chips { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.tpi-l-chipbar.is-more-l .tpi-l-chips { -webkit-mask: linear-gradient(90deg, transparent, #000 48px); mask: linear-gradient(90deg, transparent, #000 48px); }
.tpi-l-chipbar.is-more-l.is-more-r .tpi-l-chips { -webkit-mask: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.tpi-ls .tpi-l-chipbtn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--tpi-line); border-radius: 50%; background: #fff; color: var(--tpi-ink); cursor: pointer; transition: border-color .2s, opacity .2s; }
.tpi-ls .tpi-l-chipbtn[hidden] { display: none; }
.tpi-ls .tpi-l-chipbtn:hover:not(:disabled) { border-color: var(--tpi-ink); }
.tpi-ls .tpi-l-chipbtn:disabled { opacity: .35; cursor: default; }
.tpi-l-chipbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
	.tpi-l-chipbar { margin-inline: calc(var(--tpi-pad) * -1); }
	.tpi-ls .tpi-l-chipbar .tpi-l-chips { padding-inline: var(--tpi-pad); }
	.tpi-ls .tpi-l-chipbtn { display: none !important; }
	.tpi-l-chipbar.is-more-r .tpi-l-chips, .tpi-l-chipbar.is-more-l .tpi-l-chips, .tpi-l-chipbar.is-more-l.is-more-r .tpi-l-chips { -webkit-mask: none; mask: none; }
}
