/* ---------- układ ---------- */
	body.single-product .tp-wrap { padding-top: 16px; padding-bottom: 80px; }
	body.single-product .tp-wrap > div.product { gap: 28px 56px; }
	@media (min-width: 900px) {
		body.single-product .tp-wrap > div.product { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
	}
	@media (min-width: 1100px) { body.single-product .tp-wrap > div.product { column-gap: 72px; } }

	/* ---------- komunikaty WooCommerce (np. po dodaniu bez JS) ---------- */
	body.single-product .woocommerce-notices-wrapper .woocommerce-message,
	body.single-product .woocommerce-notices-wrapper .woocommerce-error,
	body.single-product .woocommerce-notices-wrapper .woocommerce-info {
		margin: 0 0 24px; border: 0; border-left: 3px solid var(--tp-ok); border-radius: 8px;
		background: var(--tp-soft); color: var(--tp-ink); font-size: .9375rem;
	}
	body.single-product .woocommerce-notices-wrapper .woocommerce-error { border-left-color: #cc1818; }

	/* ---------- galeria ---------- */
	body.single-product .tp-gallery { position: relative; }
	.tp-gallery__stage { position: relative; }
	body.single-product .tp-gallery__track { border: 0; border-radius: 0; background: #fff; }
	body.single-product .tp-gallery__item { position: relative; aspect-ratio: 1; }
	/* zdjęcie zawsze wyśrodkowane w kwadracie, także poziome i pionowe */
	body.single-product .tp-gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
	body.single-product .tp-gallery__thumbs { gap: 10px; margin-top: 12px; }
	body.single-product .tp-gallery__thumbs button {
		flex: 0 0 64px; width: 64px; height: 64px; border: 0; border-radius: 6px; background: #fff;
		opacity: .5; box-shadow: inset 0 0 0 1px var(--tp-line); transition: opacity .2s ease;
	}
	body.single-product .tp-gallery__thumbs button:hover { opacity: .85; }
	body.single-product .tp-gallery__thumbs button.is-active { opacity: 1; box-shadow: inset 0 0 0 2px var(--tp-ink); }
	body.single-product .tp-gallery__thumbs img { object-fit: contain; }
	@media (min-width: 900px) {
		/* Miniatury w pionie po lewej. Kolumna miniatur jest "przyklejona" do
		   wysokości zdjęcia (position: absolute), więc nigdy nie wydłuża galerii —
		   dzięki temu strzałki są zawsze na środku samego zdjęcia. */
		body.single-product .tp-gallery.has-thumbs { display: block; padding-left: 80px; }
		body.single-product .tp-gallery.has-thumbs .tp-gallery__thumbs {
			position: absolute; top: 0; bottom: 0; left: 0; width: 64px;
			flex-direction: column; margin: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none;
		}
		body.single-product .tp-gallery.has-thumbs .tp-gallery__thumbs::-webkit-scrollbar { display: none; }
	}
	body.single-product .tp-gallery__nav {
		display: flex; align-items: center; justify-content: center;
		top: calc(50% - 22px) !important; bottom: auto !important; transform: none !important; margin: 0 !important;
		width: 44px; height: 44px; border: 0; border-radius: 50%;
		background: rgba(255, 255, 255, .92); color: var(--tp-ink); box-shadow: 0 2px 12px rgba(31, 29, 26, .12);
		opacity: 0; transition: opacity .2s ease;
	}
	body.single-product .tp-gallery__nav--prev { left: 12px; }
	body.single-product .tp-gallery__nav--next { right: 12px; }
	body.single-product .tp-gallery__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	body.single-product .tp-gallery__nav:hover { background: #fff; color: var(--tp-ink); }
	body.single-product .tp-gallery__stage:hover .tp-gallery__nav,
	body.single-product .tp-gallery__nav:focus-visible { opacity: 1; }
	@media (hover: none) { body.single-product .tp-gallery__nav { display: none; } }
	.tp-gallery__count {
		position: absolute; right: 12px; bottom: 12px; z-index: 2;
		padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .9);
		font-size: .75rem; font-weight: 600; color: var(--tp-muted); font-variant-numeric: tabular-nums;
	}
	@media (min-width: 900px) { .tp-gallery__count { display: none; } }

	/* ---------- tytuł, ocena, cena, dostępność ---------- */
	body.single-product .tp-wrap .summary .product_title {
		margin: 0 0 10px; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
		font-weight: 600; line-height: 1.2; letter-spacing: -.015em;
	}
	body.single-product .tp-rating { gap: 6px; margin-bottom: 20px; font-size: .8125rem; color: var(--tp-ink); }
	body.single-product .tp-rating .tp-stars { font-size: .9375rem; }
	body.single-product .tp-rating__n { color: var(--tp-muted); text-decoration: underline; text-underline-offset: 3px; }
	body.single-product .tp-wrap .summary p.price {
		margin: 0 0 8px; font-size: clamp(2.125rem, 1.7rem + 1.4vw, 2.75rem);
		font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--tp-ink);
	}
	body.single-product .tp-wrap .summary p.price del { margin-right: 10px; font-size: .5em; letter-spacing: 0; }
	body.single-product .tp-wrap .summary p.stock { display: none; }
	.tp-omnibus { margin: -2px 0 10px; font-size: .8125rem; color: var(--tp-muted); }
	.tp-omnibus .amount { color: inherit; font-weight: 600; }
	.tp-stock { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; font-size: .875rem; font-weight: 600; color: var(--tp-ok); }
	.tp-stock::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(42, 122, 59, .14); }
	.tp-stock.is-low { color: var(--tp-accent-text); }
	.tp-stock.is-low::before { box-shadow: 0 0 0 4px rgba(201, 74, 8, .14); }
	.tp-stock.is-off { color: var(--tp-muted); }
	.tp-stock.is-off::before { box-shadow: none; }

	/* ---------- warianty (nadpisuje style z TOPEWNE 01) ---------- */
	body.single-product .tp-var { margin: 0 0 28px; }
	body.single-product .tp-var__l { margin: 0 0 10px; font-size: .8125rem; font-weight: 600; color: var(--tp-ink); }
	body.single-product .tp-var__row { gap: 10px; }
	body.single-product .tp-sw { color: var(--tp-muted); }
	body.single-product .tp-sw__img { width: 60px; height: 60px; border: 0; border-radius: 8px; background: #fff; opacity: 1; box-shadow: inset 0 0 0 1px var(--tp-line); transition: box-shadow .15s ease; }
	body.single-product .tp-sw__img img { object-fit: contain; mix-blend-mode: multiply; }
	body.single-product .tp-sw:hover .tp-sw__img { box-shadow: inset 0 0 0 1px var(--tp-muted); }
	body.single-product .tp-sw.is-active .tp-sw__img { box-shadow: inset 0 0 0 2px var(--tp-ink); }
	body.single-product .tp-sw:hover .tp-sw__t,
	body.single-product .tp-sw.is-active .tp-sw__t { color: var(--tp-ink); }
	body.single-product .tp-sz { height: 44px; border: 0; border-radius: 8px; line-height: 44px; color: var(--tp-ink); box-shadow: inset 0 0 0 1px var(--tp-line); }
	body.single-product .tp-sz:hover { color: var(--tp-ink); box-shadow: inset 0 0 0 1px var(--tp-muted); }
	body.single-product .tp-sz.is-active { color: var(--tp-ink); box-shadow: inset 0 0 0 2px var(--tp-ink); }

	/* ---------- ilość + do koszyka ---------- */
	body.single-product .tp-wrap form.cart { gap: 10px; margin: 0 0 14px; }
	body.single-product .tp-wrap form.cart .quantity {
		display: flex; align-items: stretch; height: 56px; border-radius: 8px;
		box-shadow: inset 0 0 0 1px var(--tp-field, #8c867d); overflow: hidden;
	}
	body.single-product .tp-wrap form.cart .quantity input.qty {
		width: 44px; height: 56px; padding: 0; border: 0; background: transparent;
		font-weight: 600; -moz-appearance: textfield;
	}
	body.single-product .tp-wrap form.cart .quantity input.qty::-webkit-outer-spin-button,
	body.single-product .tp-wrap form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
	.tp-qty__btn {
		width: 40px; padding: 0; border: 0 !important; border-radius: 0 !important;
		background: transparent !important; color: var(--tp-ink) !important;
		font-size: 1.25rem; line-height: 1; cursor: pointer;
	}
	.tp-qty__btn:hover { background: var(--tp-soft) !important; }
	.quantity:has(input[type="hidden"]) .tp-qty__btn { display: none; }
	body.single-product .tp-wrap form.cart .single_add_to_cart_button {
		display: inline-flex; align-items: center; justify-content: center; gap: 8px;
		height: 56px; border-radius: 8px; font-size: 1.0625rem; transition: background-color .18s ease;
	}
	body.single-product .tp-wrap form.cart .single_add_to_cart_button.is-busy { opacity: .75; cursor: progress; }
	body.single-product .tp-wrap form.cart .single_add_to_cart_button.is-done { background: var(--tp-ok); color: #fff; }
	body.single-product .tp-wrap form.cart .single_add_to_cart_button svg { width: 20px; height: 20px; }

	/* ---------- rabat za ilość: jedna spokojna karta ---------- */
	.tp-qd { margin: 0 0 22px; padding: 14px 16px 12px; border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; }
	.tp-qd__top { display: flex; align-items: center; gap: 10px; }
	.tp-qd__ico { flex: 0 0 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff1e8; color: var(--tp-accent-text); }
	.tp-qd__ico svg { width: 17px; height: 17px; }
	.tp-qd__title { flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0; font-size: .9375rem; font-weight: 700; line-height: 1.25; color: var(--tp-ink); }
	.tp-qd__title span { font-size: .75rem; font-weight: 400; color: var(--tp-muted); }
	.tp-qd__top .tp-linkbtn { margin: 0; flex-shrink: 0; font-size: .8125rem; }
	.tp-qd__result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin: 12px 0 8px; }
	.tp-qd__line { font-size: .875rem; color: var(--tp-muted); }
	.tp-qd__line b { margin-left: 2px; font-weight: 700; color: var(--tp-accent-text); }
	.tp-qd__save { padding: 3px 9px; border-radius: 99px; background: #eaf4ec; font-size: .8125rem; font-weight: 700; color: var(--tp-ok); }
	.tp-qd__save:empty { display: none; }
	.tp-qd__steps { display: grid; gap: 2px; }
	.tp-qd__step { height: 4px; background: #efe9e1; transition: background-color .3s ease; }
	.tp-qd__step:first-child { border-radius: 99px 0 0 99px; }
	.tp-qd__step:last-child { border-radius: 0 99px 99px 0; }
	.tp-qd__step.is-on { background: var(--tp-accent); }
	.tp-qd__step.is-next { background: #ffd3bd; }
	.tp-qd__hint { margin: 8px 0 0; font-size: .75rem; line-height: 1.45; color: var(--tp-muted); }
	.tp-qd__hint:empty { display: none; }

	/* ---------- termin dostawy + trzy korzyści ---------- */
	.tp-eta { display: flex; align-items: center; gap: 14px; padding: 0 0 18px; }
	.tp-eta__icon { flex: 0 0 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #eaf4ec; color: var(--tp-ok); }
	.tp-eta__icon svg { width: 20px; height: 20px; }
	.tp-eta__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.4; }
	.tp-eta__body strong { font-size: .9375rem; font-weight: 600; color: var(--tp-ink); }
	.tp-eta__body strong::first-letter { text-transform: uppercase; }
	.tp-eta__sub { font-size: .8125rem; font-weight: 600; color: var(--tp-ok); }
	.tp-eta__sub.is-muted { font-weight: 400; color: var(--tp-muted); }
	.tp-eta__sub:empty { display: none; }
	.tp-eta__more { flex-shrink: 0; margin: 0 !important; }
	.tp-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--tp-line); }
	.tp-mini li { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 0 8px; text-align: center; font-size: .8125rem; line-height: 1.35; color: var(--tp-ink); }
	.tp-mini li + li { border-left: 1px solid var(--tp-line); }
	.tp-mini svg { width: 22px; height: 22px; color: var(--tp-muted); }
	.tp-mini .tp-linkbtn { margin: 0; font-size: .75rem; font-weight: 500; color: var(--tp-muted) !important; }
	@media (max-width: 420px) { .tp-eta { flex-wrap: wrap; } .tp-eta__more { margin-left: 54px !important; } }
	/* ---------- karta zakupu: dostawa + korzyści + oceny w jednej ramce ---------- */
	.tp-buy { margin: 0 0 16px; border: 1px solid var(--tp-line); border-radius: 14px; background: #fff; overflow: hidden; }
	.tp-buy .tp-eta { padding: 14px 16px; gap: 12px; }
	.tp-buy .tp-eta__icon { flex-basis: 36px; height: 36px; }
	.tp-buy .tp-eta__icon svg { width: 18px; height: 18px; }
	.tp-buy .tp-mini { padding: 11px 4px; background: #fafaf9; border-top: 1px solid var(--tp-line); }
	.tp-buy .tp-mini li { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; text-align: left; padding: 0 8px 0 12px; }
	.tp-buy .tp-mini li > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
	.tp-buy .tp-mini b { font-size: .8125rem; font-weight: 600; color: var(--tp-ink); }
	.tp-buy .tp-mini li svg { flex: 0 0 20px; }
	.tp-buy .tp-mini .tp-linkbtn { align-self: flex-start; text-align: left; font-size: .72rem; line-height: 1.3; }
	@media (max-width: 560px) {
		.tp-buy .tp-eta { flex-wrap: wrap; }
		.tp-buy .tp-eta__more { order: 3; flex-basis: 100%; text-align: left; margin-left: 48px !important; }
		.tp-buy .tp-mini { grid-template-columns: 1fr; gap: 9px; padding: 12px 16px; }
		.tp-buy .tp-mini li { justify-content: flex-start; padding: 0; }
		.tp-buy .tp-mini li + li { border-left: 0; }
		.tp-buy .tp-mini li > div { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
	}
	.tp-buy .tpop--produkt { margin: 0; padding: 12px 16px; border: 0; border-top: 1px solid var(--tp-line); border-radius: 0; align-items: center; gap: 12px; }
	.tp-buy .tpop--produkt .tpop-av { width: 42px; height: 42px; font-size: 15px; }
	.tp-buy .tpop--produkt .tpop-txt { flex: 1; }
	.tp-buy .tpop--produkt .tpop-txt b { font-size: .875rem; }
	.tp-buy .tpop--produkt .tpop-txt > span { font-size: .78rem; line-height: 1.35; }
	.tp-buy .tpop--produkt .tpop-btns { margin-top: 6px; gap: 6px; }
	.tp-buy .tpop--produkt .tpop-btn { padding: 6px 12px; font-size: .78rem; }
	.tp-buy .tpo--produkt { background: #fafaf9; }
	.tp-buy .tp-mini svg { width: 19px; height: 19px; }
	.tp-buy .tpo--produkt { margin: 0; padding: 11px 16px 12px; border-top: 1px solid var(--tp-line); display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
	.tp-buy .tpo--produkt .tpo-h { margin: 0 !important; }
	.tp-buy .tpo--produkt .tpo-lista { gap: 6px 14px; }
	.tp-buy .tpo--produkt .tpo-z { min-height: 0; padding: 0; border: 0; background: none; }
	.tp-buy .tpo--produkt a.tpo-z:hover { text-decoration: underline !important; }
	@media (max-width: 420px) { .tp-buy .tp-eta__more { margin-left: 48px !important; } }

	/* ---------- rabat za ilość: smuklej, pasek zostaje ---------- */
	.tp-qd { margin: 0 0 14px; padding: 10px 14px 10px; border-radius: 12px; background: #fffaf6; border-color: #f6e4d7; }
	.tp-qd__top { gap: 8px; }
	.tp-qd__ico { flex-basis: 26px; height: 26px; }
	.tp-qd__ico svg { width: 14px; height: 14px; }
	.tp-qd__title { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 0 8px; font-size: .875rem; }
	.tp-qd__result { margin: 6px 0 6px; }
	.tp-qd__line, .tp-qd__save { font-size: .78rem; }
	.tp-qd__hint { margin-top: 5px; font-size: .72rem; }

	/* ---------- galeria przyklejona przy przewijaniu (komputer) ---------- */
	@media (min-width: 900px) {
		/* przykleja się wnętrze galerii, a nie cała kolumna — wtedy kończy się razem z rzędem
		   „zdjęcia + panel zakupu” i nie wjeżdża na opis (grid nie ogranicza sticky do swojej komórki) */
		body.single-product .tp-wrap > div.product > .tp-gallery { align-self: stretch; }
		body.single-product .tp-wrap > div.product > .tp-gallery > .tp-gallery__stage { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 130px); }
	}
	/* overflow-x:hidden na html/body wyłącza „sticky” — clip ucina tak samo, ale nie psuje przyklejania */
	html:has(body.single-product), body.single-product { overflow-x: clip !important; overflow-y: visible !important; }


	.tp-linkbtn {
		appearance: none; margin-top: 4px; padding: 0 !important; border: 0 !important;
		background: none !important; color: var(--tp-ink) !important; font: inherit;
		font-size: .8125rem; font-weight: 600; line-height: 1.4;
		text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--tp-field, #8c867d);
		cursor: pointer;
	}
	.tp-linkbtn:hover { text-decoration-color: var(--tp-ink); }
	.tp-linkbtn:focus-visible { outline: 2px solid var(--tp-accent-text); outline-offset: 2px; }

	/* ---------- opis / specyfikacja / opinie ---------- */
	body.single-product .tp-below { max-width: 880px; margin-top: 40px; }
	@media (min-width: 900px) { body.single-product .tp-below { margin-top: 80px; } }
	body.single-product .tp-sec { margin: 0; padding: 36px 0; border-top: 1px solid var(--tp-line); }
	body.single-product .tp-sec > h2,
	body.single-product .tp-reviews .woocommerce-Reviews-title { margin: 0 0 24px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; }
	.tp-desc__body { position: relative; }
	.tp-desc.is-clamped:not(.is-open) .tp-desc__body { max-height: 900px; overflow: hidden; }
	.tp-desc.is-clamped:not(.is-open) .tp-desc__body::after {
		content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
		background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none;
	}
	.tp-desc__more {
		display: block; margin: 20px auto 0; min-height: 48px; padding: 0 28px;
		border: 1px solid var(--tp-ink) !important; border-radius: 8px !important;
		background: #fff !important; color: var(--tp-ink) !important;
		font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
	}
	.tp-desc__more:hover { background: var(--tp-ink) !important; color: #fff !important; }
	.tp-desc__more[hidden] { display: none; }
	body.single-product details.tp-acc { padding: 0; }
	body.single-product details.tp-acc > summary {
		display: flex; justify-content: space-between; align-items: center;
		margin: 0; padding: 28px 0; list-style: none; font-size: 1.375rem; font-weight: 700; cursor: pointer;
	}
	body.single-product details.tp-acc > summary::-webkit-details-marker { display: none; }
	body.single-product details.tp-acc > summary::after {
		content: ""; width: 10px; height: 10px; margin-right: 6px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
		transform: rotate(45deg); transition: transform .2s ease;
	}
	body.single-product details.tp-acc[open] > summary::after { transform: rotate(-135deg); }
	.tp-acc__body { padding-bottom: 32px; }

	.tp-rev-sum { display: block; margin-top: 4px; font-size: .9375rem; font-weight: 500; letter-spacing: 0; color: var(--tp-muted); }
	.tp-reviews .commentlist { margin: 0 !important; padding: 0 !important; list-style: none; }
	.tp-reviews .commentlist > li { margin: 0 !important; padding: 20px 0 !important; border-top: 1px solid var(--tp-line); }
	.tp-reviews .commentlist > li:first-child { border-top: 0; padding-top: 0 !important; }
	.tp-reviews .comment_container { display: block; }
	.tp-reviews img.avatar { display: none !important; }
	.tp-reviews .comment-text { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; }
	.tp-reviews .star-rating { float: none !important; margin: 0 0 8px !important; color: var(--tp-star); }
	.tp-reviews p.meta { margin: 0 0 6px !important; font-size: .8125rem; color: var(--tp-muted); }
	.tp-reviews .woocommerce-review__author { color: var(--tp-ink); font-weight: 600; font-style: normal; }
	.tp-reviews .description p { margin: 0; line-height: 1.6; }
	.tp-reviews .woocommerce-noreviews,
	.tp-reviews .woocommerce-verification-required { color: var(--tp-muted); font-size: .875rem; }

	body.single-product .tp-wrap .related { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--tp-line); }
	body.single-product .tp-wrap .related > h2 { font-size: 1.375rem; margin-bottom: 24px; }

	/* Podobne produkty: 2 kolumny na telefonie, 4 w jednym rzędzie od tabletu poziomo.
	   (Lista sklepu zostaje bez zmian — to dotyczy tylko strony produktu.) */
	body.single-product .tp-wrap .related ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
	/* WooCommerce na telefonie (woocommerce-smallscreen.css) daje kartom width: 48% i float —
	   w siatce robiło to karty na pół kolumny. Karta ma wypełniać całą swoją kolumnę. */
	body.single-product .tp-wrap .related ul.products li.product {
		width: 100% !important; float: none !important; clear: none !important; margin: 0 !important;
	}
	@media (min-width: 900px) {
		body.single-product .tp-wrap .related ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
	}
	/* krótki opis pod tytułem tylko zajmuje miejsce w tak wąskich kartach */
	body.single-product .tp-wrap .related ul.products li.product .tp-loop-desc { display: none; }
	body.single-product .tp-wrap .related ul.products li.product .woocommerce-loop-product__title { font-size: .9375rem; font-weight: 500; }
	body.single-product .tp-wrap .related ul.products li.product .price { margin-bottom: 12px; font-size: 1.125rem; }
	@media (max-width: 559px) {
		body.single-product .tp-wrap .related ul.products li.product img { margin-bottom: 10px; }
		body.single-product .tp-wrap .related ul.products li.product .woocommerce-loop-product__title { font-size: .875rem; line-height: 1.35; }
		body.single-product .tp-wrap .related ul.products li.product .price { font-size: 1rem; }
		body.single-product .tp-wrap .related ul.products li.product .button { padding: 11px 8px; font-size: .8125rem; }
	}

	/* ---------- okienka ---------- */
	.tp-dlg {
		width: calc(100% - 32px); max-width: 460px; max-height: 85vh; padding: 0;
		border: 0; border-radius: 16px; background: #fff; color: var(--tp-ink);
		box-shadow: 0 24px 64px rgba(31, 29, 26, .22); overflow: auto;
	}
	.tp-dlg::backdrop { background: rgba(31, 29, 26, .45); }
	.tp-dlg[open] { animation: tp-dlg-in .22s ease-out; }
	@keyframes tp-dlg-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
	.tp-dlg__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 20px 16px 24px; background: #fff; border-bottom: 1px solid var(--tp-line); }
	.tp-dlg__title { margin: 0 !important; font-size: 1.125rem !important; font-weight: 700; }
	.tp-dlg__x {
		flex: 0 0 36px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
		padding: 0 !important; border: 0 !important; border-radius: 50% !important;
		background: var(--tp-soft) !important; color: var(--tp-ink) !important; cursor: pointer;
	}
	.tp-dlg__x svg { width: 18px; height: 18px; }
	.tp-dlg__x:hover { background: var(--tp-line) !important; }
	.tp-dlg__body { padding: 4px 24px 24px; }
	.tp-dlg__intro { margin: 16px 0; font-size: .875rem; line-height: 1.55; color: var(--tp-muted); }
	.tp-dlg__intro strong { font-weight: 600; color: var(--tp-ink); }
	.tp-dlg__note { margin: 16px 0 12px; padding: 10px 12px; border-radius: 8px; background: #fff4ec; font-size: .8125rem; line-height: 1.5; color: var(--tp-accent-text); }
	.tp-dlg__hl { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; padding: 14px 16px; border-radius: 10px; background: #eef6f0; color: var(--tp-ok); font-weight: 700; }
	.tp-dlg__hl svg { flex: 0 0 22px; width: 22px; height: 22px; }
	.tp-dlg__list { margin: 0; padding: 0; list-style: none; }
	.tp-dlg__list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--tp-line); font-size: .9375rem; }
	.tp-dlg__list li:first-child { border-top: 0; }
	.tp-dlg__list small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--tp-muted); }
	.tp-dlg__list strong { font-weight: 600; white-space: nowrap; text-align: right; }
	.tp-dlg__list--qd li { padding: 10px 0; }
	.tp-dlg__list--qd strong { color: var(--tp-accent-text); }
	.tp-dlg__foot { margin: 16px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--tp-muted); }
	@media (max-width: 560px) {
		.tp-dlg { width: 100%; max-width: none; margin: auto 0 0; border-radius: 16px 16px 0 0; }
		@keyframes tp-dlg-in { from { transform: translateY(100%); } to { transform: none; } }
	}

	/* zwroty: dwa kroki na osi czasu */
	.tp-ret { margin: 4px 0 0; padding: 0; list-style: none; }
	.tp-ret li { position: relative; margin: 0; padding: 0 0 22px 30px; }
	.tp-ret li:last-child { padding-bottom: 0; }
	.tp-ret li::before {
		content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%;
		background: #fff; box-shadow: inset 0 0 0 2px var(--tp-field, #8c867d);
	}
	.tp-ret li:not(:last-child)::after {
		content: ""; position: absolute; left: 6px; top: 21px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--tp-line);
	}
	.tp-ret li.is-free::before { background: var(--tp-ok); box-shadow: 0 0 0 4px rgba(42, 122, 59, .14); }
	.tp-ret__when { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tp-muted); }
	.tp-ret strong { display: block; margin: 2px 0 4px; font-size: 1rem; font-weight: 700; color: var(--tp-ink); }
	.tp-ret li.is-free strong { color: var(--tp-ok); }
	.tp-ret p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--tp-muted); }
	.tp-ret__cta {
		display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 18px;
		border: 1px solid var(--tp-ink); border-radius: 8px; color: var(--tp-ink) !important;
		font-size: .9375rem; font-weight: 600; text-decoration: none !important;
	}
	.tp-ret__cta:hover { background: var(--tp-ink); color: #fff !important; }

	/* ---------- powiadomienie "Dodano do koszyka" ---------- */
	.tp-toast {
		position: fixed; z-index: 99999; top: 24px; right: 24px; width: 380px; max-width: calc(100% - 24px);
		display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: start;
		padding: 16px; border-radius: 14px; background: #fff; color: var(--tp-ink);
		box-shadow: 0 16px 48px rgba(31, 29, 26, .2); animation: tp-toast-in .25s ease-out;
	}
	.tp-toast[hidden] { display: none; }
	@keyframes tp-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
	.tp-toast__img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--tp-line); }
	.tp-toast__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .8125rem; line-height: 1.4; color: var(--tp-muted); }
	.tp-toast__title { display: flex; align-items: center; gap: 6px; font-size: .9375rem; color: var(--tp-ok); }
	.tp-toast__title svg { width: 18px; height: 18px; }
	.tp-toast__text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--tp-ink); }
	.tp-toast__qd { color: var(--tp-accent-text); font-weight: 600; }
	.tp-toast__qd:empty { display: none; }
	.tp-toast__x {
		width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
		padding: 0 !important; border: 0 !important; border-radius: 50% !important;
		background: transparent !important; color: var(--tp-muted) !important; cursor: pointer;
	}
	.tp-toast__x svg { width: 16px; height: 16px; }
	.tp-toast__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
	.tp-toast__cta, .tp-toast__cont {
		display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px;
		border-radius: 8px !important; font: inherit; font-size: .875rem; font-weight: 700; text-decoration: none !important; cursor: pointer;
	}
	.tp-toast__cta { background: var(--tp-accent); color: var(--tp-on-accent) !important; }
	.tp-toast__cta:hover { background: var(--tp-accent-hover); }
	.tp-toast__cont { border: 1px solid var(--tp-line) !important; background: #fff !important; color: var(--tp-ink) !important; }
	.tp-toast__cont:hover { border-color: var(--tp-ink) !important; }
	@media (max-width: 560px) { .tp-toast { top: 12px; right: 12px; left: 12px; width: auto; max-width: none; } }

	/* ---------- pasek "Dodaj do koszyka" na telefonie ---------- */
	.tp-sticky {
		position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0;
		display: flex; align-items: center; gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff; box-shadow: 0 -4px 20px rgba(31, 29, 26, .1);
		transform: translateY(0); transition: transform .25s ease;
	}
	.tp-sticky[hidden] { display: flex; transform: translateY(110%); visibility: hidden; }
	.tp-sticky__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.tp-sticky__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .75rem; color: var(--tp-muted); }
	.tp-sticky__price { font-size: 1.125rem; font-weight: 700; color: var(--tp-ink); }
	.tp-sticky__price ins { color: #d92d20; }
	.tp-sticky__price del { font-size: .75em; font-weight: 400; color: var(--tp-muted); }
	.tp-sticky__price ins { text-decoration: none; }
	.tp-sticky__btn {
		flex: 0 0 auto; min-height: 48px; padding: 0 20px; border: 0 !important; border-radius: 8px !important;
		background: var(--tp-accent) !important; color: var(--tp-on-accent) !important;
		font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer;
	}
	@media (min-width: 900px) { .tp-sticky { display: none !important; } }
	@media (max-width: 899px) { body.tp-has-sticky { padding-bottom: 72px; } }
	/* Czat (Tidio): dymek siedzi w prawym dolnym rogu i zasłaniał przycisk.
	   Zamiast przesuwać cudzy widżet (Tidio sam pilnuje jego pozycji),
	   pasek zostawia po prawej wolne miejsce na dymek — działa zawsze. */
	body.tp-has-chat .tp-sticky { padding-right: 88px; }
	@media (max-width: 380px) {
		body.tp-has-chat .tp-sticky { gap: 8px; padding-left: 12px; }
		body.tp-has-chat .tp-sticky__btn { padding: 0 14px; font-size: .875rem; }
	}
	/* link "Zobacz koszyk", który WooCommerce dokleja po dodaniu — mamy okienko */
	body.single-product .tp-wrap form.cart .added_to_cart { display: none !important; }

	@media (prefers-reduced-motion: reduce) {
		.tp-dlg[open], .tp-toast { animation: none; }
		.tp-qd__step, .tp-gallery__nav, .tp-gallery__thumbs button, .tp-sticky { transition: none; }
	}