:root {
	--kl-navy: #1b2845;
	--kl-red: #c8102e;
	--kl-ecru: #e8dcc4;
	--kl-cream: #fbf9f5;
	--kl-white: #ffffff;
	--kl-muted: #68645f;
	--kl-border: #ded7cc;
	--kl-shadow: 0 18px 46px rgb(27 40 69 / 9%);
	--kl-radius-sm: 8px;
	--kl-radius: 14px;
	--kl-radius-lg: 20px;
	--kl-content: 1280px;
	--kl-gutter: clamp(18px, 3.4vw, 48px);
	--kl-serif: "Libre Baskerville", Georgia, serif;
	--kl-sans: "DM Sans", Arial, sans-serif;
}

.elementor-widget-shortcode:has(.kl-pdp),
.elementor-widget-shortcode:has(.kl-pdp) > .elementor-widget-container,
.elementor-shortcode:has(.kl-pdp) {
	width: 100%;
}

.elementor-location-single:has(.kl-pdp) {
	width: 100%;
	background: var(--kl-white);
}

.elementor-location-single .e-con:has(.kl-pdp) {
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: var(--kl-white);
}

.kl-pdp,
.kl-pdp *,
.kl-pdp *::before,
.kl-pdp *::after {
	box-sizing: border-box;
}

.kl-pdp {
	position: relative;
	width: 100%;
	min-width: 0;
	background: var(--kl-white);
	color: var(--kl-navy);
	font-family: var(--kl-sans);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: clip;
}

.kl-pdp img {
	display: block;
	max-width: 100%;
}

.kl-pdp button,
.kl-pdp input,
.kl-pdp select,
.kl-pdp textarea {
	font: inherit;
}

.kl-pdp a {
	color: inherit;
}

.kl-pdp svg {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.kl-pdp :focus-visible {
	outline: 3px solid rgb(200 16 46 / 30%);
	outline-offset: 3px;
}

.kl-pdp__inner {
	width: min(100%, var(--kl-content));
	margin-inline: auto;
	padding: 26px var(--kl-gutter) 76px;
}

.kl-pdp__breadcrumb {
	display: block;
	min-width: 0;
	margin: 0 0 22px;
	color: #7a7a7a;
	font-family: var(--kl-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.kl-pdp__breadcrumb a {
	color: inherit;
	font-weight: 400;
	text-decoration: none;
}

.kl-pdp__breadcrumb a:hover {
	color: var(--kl-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kl-pdp__breadcrumb span {
	margin-inline: 9px;
	color: #aea69d;
}

.kl-pdp__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.16fr) minmax(380px, 0.84fr);
	gap: clamp(38px, 5vw, 72px);
	align-items: stretch;
}

.kl-pdp__gallery {
	position: relative;
	min-width: 0;
	min-height: 0;
	align-self: stretch;
}

.kl-pdp__thumbs {
	position: absolute;
	inset: 0 auto 0 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 86px;
	min-height: 0;
	overflow-y: auto;
}

.kl-pdp__thumb,
.kl-pdp__main-image {
	appearance: none;
	padding: 0;
	border: 1px solid var(--kl-border);
	background: var(--kl-white);
	cursor: pointer;
}

.elementor-kit-6 .kl-pdp .kl-pdp__thumb,
.elementor-kit-6 .kl-pdp .kl-pdp__main-image {
	padding: 0;
	border: 1px solid var(--kl-border);
	background: var(--kl-white);
}

.kl-pdp__thumb {
	width: 86px;
	height: 86px;
	border-radius: var(--kl-radius-sm);
	overflow: hidden;
	opacity: 0.76;
	transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.kl-pdp__thumb:hover,
.kl-pdp__thumb.is-active {
	border-color: var(--kl-red);
	box-shadow: 0 0 0 1px var(--kl-red);
	opacity: 1;
}

.woocommerce .kl-pdp__thumb > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.woocommerce .kl-pdp__main-image {
	position: absolute;
	inset: 0 0 0 102px;
	display: block;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	aspect-ratio: auto;
	border-radius: var(--kl-radius);
	overflow: hidden;
	box-shadow: var(--kl-shadow);
	touch-action: pan-y;
}

.woocommerce .kl-pdp__main-image > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 260ms ease, opacity 160ms ease;
}

.kl-pdp__main-image:hover > img {
	transform: none;
}

.kl-pdp__zoom-icon {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgb(27 40 69 / 14%);
	border-radius: 50%;
	background: rgb(255 255 255 / 94%);
	color: var(--kl-navy);
	box-shadow: 0 6px 20px rgb(27 40 69 / 12%);
}

.kl-pdp__zoom-icon svg {
	width: 21px;
	height: 21px;
}

.kl-pdp__lightbox {
	width: min(92vw, 980px);
	max-width: none;
	max-height: 90vh;
	padding: 18px;
	border: 0;
	border-radius: var(--kl-radius);
	background: var(--kl-white);
	box-shadow: 0 30px 90px rgb(0 0 0 / 34%);
}

.kl-pdp__lightbox::backdrop {
	background: rgb(13 20 35 / 76%);
}

.kl-pdp__lightbox img {
	width: 100%;
	max-height: calc(90vh - 36px);
	object-fit: contain;
}

.kl-pdp__lightbox-close {
	position: absolute;
	top: 26px;
	right: 26px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--kl-white);
	color: var(--kl-navy);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 26px rgb(0 0 0 / 18%);
}

.elementor-kit-6 .kl-pdp .kl-pdp__lightbox-close {
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--kl-white);
	color: var(--kl-navy);
	font-size: 30px;
	line-height: 1;
}

.kl-pdp__purchase {
	position: sticky;
	top: 28px;
	min-width: 0;
	padding-top: 2px;
}

.admin-bar .kl-pdp__purchase {
	top: 60px;
}

.kl-pdp__heading {
	margin-bottom: 18px;
}

.kl-pdp__title,
.kl-pdp__subtitle,
.kl-pdp__uses > h2,
.kl-pdp__related > h2,
.kl-pdp__use-card h3,
.kl-pdp-accordion__button {
	font-family: var(--kl-serif);
}

.kl-pdp__title {
	max-width: 18ch;
	margin: 0;
	color: var(--kl-navy);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: 0;
}

.kl-pdp__subtitle {
	margin: 7px 0 0;
	color: var(--kl-red);
	font-family: var(--kl-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
}

.kl-pdp__summary {
	max-width: 52ch;
	margin: 0 0 22px;
	color: #383d4a;
	font-size: 16px;
	line-height: 1.65;
}

.kl-pdp__summary > :first-child,
.kl-pdp__summary > :last-child {
	margin-block: 0;
}

.kl-pdp__price-row {
	margin-bottom: 18px;
}

.kl-pdp__price {
	color: var(--kl-navy);
	font-family: var(--kl-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
}

.kl-pdp__price del {
	color: var(--kl-muted);
	font-size: 0.64em;
	font-weight: 400;
}

.kl-pdp__price ins {
	text-decoration: none;
}

.kl-pdp__unit-price {
	margin: 3px 0 0;
	color: var(--kl-muted);
	font-size: 13px;
}

.kl-pdp__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: -8px 0 18px;
	color: var(--kl-red);
}

.kl-pdp__rating .star-rating {
	margin: 0;
}

.kl-pdp__highlights,
.kl-pdp__benefits {
	list-style: none;
	padding: 0;
}

.kl-pdp__benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 20px;
	padding: 15px 0;
	border-block: 1px solid var(--kl-border);
}

.kl-pdp__benefits li {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	padding-inline: 14px;
	color: #3f3c38;
	font-size: 13px;
	line-height: 1.35;
}

.kl-pdp__benefits li:first-child {
	padding-left: 0;
}

.kl-pdp__benefits li + li {
	border-left: 1px solid var(--kl-border);
}

.kl-pdp__benefits svg {
	width: 22px;
	height: 22px;
	flex-basis: 22px;
	color: #ad866d;
}

.kl-pdp__attributes {
	margin: 0 0 18px;
}

.kl-pdp__attributes > div {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	min-height: 46px;
}

.kl-pdp__attributes dt {
	font-size: 13px;
	font-weight: 700;
}

.kl-pdp__attributes dd {
	justify-self: start;
	margin: 0;
	padding: 7px 13px;
	border: 1px solid var(--kl-border);
	border-radius: 5px;
	background: var(--kl-white);
	color: #3e3b37;
	font-size: 14px;
}

.kl-pdp__buy {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	margin-top: 5px;
}

/*
 * WooCommerce's own single-product/add-to-cart/simple.php template calls
 * wc_get_stock_html() and echoes it directly before <form class="cart">
 * for any product with stock management (manage_stock) turned on - for
 * those products (10 of 128 live products as of 2026-08-26) this lands as
 * an unplanned THIRD child of .kl-pdp__buy's two-column grid (label, this
 * stock paragraph, then the form), which pushes the form into the grid's
 * first 110px column instead of stretching across the row - squeezing
 * "Dodaj do koszyka" down to a sliver. KL_PDP_Renderer::render() already
 * calls wc_get_stock_html() itself in its own styled .kl-pdp__stock block
 * right after .kl-pdp__buy, so this native copy is always a redundant
 * duplicate anyway (the text showed twice on the page even before this
 * layout bug was noticed) - hiding it fixes both problems in one rule.
 */
.kl-pdp__buy > p.stock {
	display: none;
}

.kl-pdp__quantity-label {
	font-size: 13px;
	font-weight: 700;
}

.kl-pdp__buy form.cart {
	display: grid !important;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 14px;
	align-items: stretch;
	width: 100%;
	margin: 0 !important;
}

.kl-pdp__buy form.cart::before,
.kl-pdp__buy form.cart::after {
	display: none !important;
}

.kl-pdp__buy form.cart .quantity {
	display: grid;
	grid-template-columns: 44px 48px 44px;
	float: none !important;
	width: 136px;
	margin: 0 !important;
	border: 1px solid var(--kl-border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--kl-white);
}

.kl-pdp__buy form.cart .quantity .qty {
	grid-column: 2;
	width: 48px;
	min-height: 48px;
	padding: 0;
	border: 0 !important;
	border-inline: 1px solid var(--kl-border) !important;
	border-radius: 0 !important;
	background: var(--kl-white);
	color: var(--kl-navy);
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
}

.kl-pdp__buy form.cart .quantity .qty::-webkit-outer-spin-button,
.kl-pdp__buy form.cart .quantity .qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.kl-pdp__qty-button {
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 48px;
	padding: 0;
	border: 0;
	background: var(--kl-white);
	color: var(--kl-navy);
	font-size: 22px;
	cursor: pointer;
}

.elementor-kit-6 .kl-pdp .kl-pdp__qty-button {
	display: grid;
	min-width: 44px;
	min-height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--kl-white);
	color: var(--kl-navy);
	font-family: var(--kl-sans);
	font-size: 22px;
	line-height: 1;
	text-transform: none;
}

.kl-pdp__qty-button:hover {
	background: var(--kl-cream);
}

.kl-pdp__qty-button--minus {
	grid-column: 1;
	grid-row: 1;
}

.kl-pdp__qty-button--plus {
	grid-column: 3;
	grid-row: 1;
}

.kl-pdp__buy form.cart .single_add_to_cart_button,
.kl-pdp #submit {
	min-height: 50px;
	padding: 13px 22px !important;
	border: 1px solid var(--kl-red) !important;
	border-radius: 6px !important;
	background: var(--kl-red) !important;
	color: var(--kl-white) !important;
	font-family: var(--kl-sans) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 24px rgb(200 16 46 / 18%);
	transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.kl-pdp__buy form.cart .single_add_to_cart_button:hover,
.kl-pdp #submit:hover {
	background: #a90d27 !important;
	transform: translateY(-1px);
	box-shadow: 0 13px 28px rgb(200 16 46 / 24%);
}

.kl-pdp__buy form.cart .single_add_to_cart_button.disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.kl-pdp__stock {
	margin: 9px 0 0 124px;
	color: #55745b;
	font-size: 13px;
}

.kl-pdp__stock p {
	margin: 0;
}

.kl-pdp__highlights {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 26px 0 0;
	padding: 17px 0 0;
	border-top: 1px solid var(--kl-border);
}

.kl-pdp__highlights li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 10px 0;
	color: #4a4641;
	font-size: 13px;
	line-height: 1.35;
}

.kl-pdp__highlights li + li {
	border-top: 0;
}

.kl-pdp__highlights svg {
	width: 21px;
	height: 21px;
	flex-basis: 21px;
	color: #ad866d;
}

.kl-pdp__long-description {
	width: 100%;
	margin-top: clamp(48px, 6vw, 78px);
	padding: clamp(30px, 4.5vw, 56px);
	border-block: 1px solid var(--kl-border);
	border-inline: 0;
	border-radius: 0;
	background: transparent;
}

.kl-pdp__long-description-inner {
	max-width: 900px;
	margin-inline: auto;
}

.kl-pdp__eyebrow {
	margin: 0 0 7px;
	color: var(--kl-red);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.kl-pdp__long-description-inner > h2 {
	margin: 0 0 22px;
	font-family: var(--kl-serif);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.2;
}

.kl-pdp__long-description-copy {
	color: #403d39;
}

.kl-pdp__long-description-copy > :first-child {
	margin-top: 0;
}

.kl-pdp__long-description-copy > :last-child {
	margin-bottom: 0;
}

.kl-pdp__long-description-copy h2,
.kl-pdp__long-description-copy h3,
.kl-pdp__long-description-copy h4 {
	margin: 28px 0 12px;
	color: var(--kl-navy);
	font-family: var(--kl-sans);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
}

.kl-pdp__long-description-copy ul {
	margin: 12px 0 20px;
	padding-left: 22px;
}

.kl-pdp__long-description-copy li + li {
	margin-top: 5px;
}

.kl-pdp__details {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(32px, 4vw, 52px);
	align-items: start;
	margin-top: clamp(48px, 6vw, 78px);
}

.kl-pdp__accordions {
	width: 100%;
	max-width: 900px;
	margin-inline: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.kl-pdp-accordion + .kl-pdp-accordion {
	border-top: 1px solid var(--kl-border);
}

.kl-pdp-accordion__heading {
	margin: 0;
}

.kl-pdp-accordion__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	min-height: 62px;
	padding: 14px 18px;
	border: 0;
	background: transparent;
	color: var(--kl-navy);
	font-size: 17px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.elementor-kit-6 .kl-pdp .kl-pdp-accordion__button {
	display: flex;
	width: 100%;
	min-height: 62px;
	padding: 14px 18px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--kl-navy);
	font-family: var(--kl-serif);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}

.kl-pdp-accordion__button:hover {
	background: rgb(232 220 196 / 26%);
}

.kl-pdp-accordion__button > svg {
	width: 18px;
	height: 18px;
	transition: transform 180ms ease;
}

.kl-pdp-accordion.is-open .kl-pdp-accordion__button > svg {
	transform: rotate(180deg);
}

.kl-pdp-accordion__label {
	display: flex;
	align-items: center;
	gap: 12px;
}

.kl-pdp-accordion__label svg {
	color: var(--kl-red);
}

.kl-pdp-accordion__panel[hidden] {
	display: none;
}

.kl-pdp-accordion__content {
	padding: 0 18px 20px 54px;
	color: #4b4843;
	font-size: 14px;
	line-height: 1.7;
}

.kl-pdp-accordion__content > :first-child {
	margin-top: 0;
}

.kl-pdp-accordion__content > :last-child {
	margin-bottom: 0;
}

.kl-pdp__uses > h2,
.kl-pdp__related > h2 {
	margin: 0 0 18px;
	color: var(--kl-navy);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 700;
	line-height: 1.25;
}

.kl-pdp__uses > h2 {
	font-family: var(--kl-serif);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.2;
}

.kl-pdp__related > h2 {
	font-family: var(--kl-serif);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.2;
}

.kl-pdp__use-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.kl-pdp__use-card {
	min-width: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
	box-shadow: none;
}

.kl-pdp__use-card img {
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: var(--kl-radius);
	object-fit: cover;
}

.kl-pdp__use-card > div {
	padding: 14px 0 0;
}

.kl-pdp__use-card h3 {
	margin: 0 0 5px;
	font-size: 16px;
	line-height: 1.35;
	text-align: center;
}

.kl-pdp__use-card p {
	margin: 0;
	color: var(--kl-muted);
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

.kl-pdp__related {
	margin-top: clamp(50px, 7vw, 88px);
	padding-top: clamp(34px, 4vw, 52px);
	border-top: 1px solid var(--kl-border);
}

/*
 * Fixed 220px columns (not `1fr`) so each card matches the exact width the
 * shared product card (template 156) renders at on /sklep/ (5 cols in a
 * ~1140px grid = 220px each). The card's featured-image widget has a fixed
 * 250px height regardless of card width, so matching PLP's width is what
 * makes the crop proportions match PLP's too — a wider `1fr` column here
 * (this section has fewer items to fill a wider details column) stretched
 * the same image into a visibly more landscape crop than everywhere else
 * the card renders. `justify-content: start` keeps cards left-aligned at
 * their natural width instead of stretching to fill leftover row space.
 */
.kl-pdp__related-grid {
	display: grid;
	grid-template-columns: repeat(5, 220px);
	justify-content: start;
	gap: 20px;
	align-items: stretch;
}

/*
 * Elementor Loop Item cards (rendered by KL_Cards_Renderer) are bare <article>
 * wrappers with no styling of their own; CSS Grid stretches them to the row
 * height by default, but their inner Elementor container must also be told to
 * fill that height, otherwise a longer, wrapped title makes only that one card
 * visually taller instead of all cards in the row matching the tallest one.
 */
.kl-elementor-product-card {
	height: 100%;
	display: flex;
}
.kl-elementor-product-card > div {
	width: 100%;
	height: 100%;
	display: flex !important;
	flex-direction: column;
}

.kl-pdp__related-card {
	min-width: 0;
	padding: 12px 12px 16px;
	border: 1px solid var(--kl-border);
	border-radius: var(--kl-radius);
	background: var(--kl-white);
	box-shadow: 0 10px 30px rgb(27 40 69 / 5%);
}

.kl-pdp__related-link {
	display: block;
	color: var(--kl-navy);
	text-decoration: none;
}

.kl-pdp__related-link img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: calc(var(--kl-radius) - 4px);
	object-fit: contain;
	object-position: center;
	background: var(--kl-white);
}

.kl-pdp__related-card h3 {
	margin: 13px 0 7px;
	font-size: 16px;
	line-height: 1.35;
}

.kl-pdp__related-price {
	color: var(--kl-red);
	font-size: 17px;
	font-weight: 700;
}

.kl-pdp__review-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.kl-pdp__review-list li {
	padding: 14px 0;
	border-bottom: 1px solid var(--kl-border);
}

.kl-pdp__review-rating {
	display: inline-block;
	margin-left: 10px;
	color: var(--kl-red);
}

.kl-pdp__reviews .comment-respond {
	margin-top: 20px;
}

.kl-pdp__reviews .comment-reply-title {
	display: block;
	margin-bottom: 12px;
	font-family: var(--kl-serif);
	font-size: 18px;
	font-weight: 700;
}

.kl-pdp__reviews label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.kl-pdp__reviews select,
.kl-pdp__reviews textarea,
.kl-pdp__reviews input[type="text"],
.kl-pdp__reviews input[type="email"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--kl-border);
	border-radius: 6px;
	background: var(--kl-white);
}

@media (max-width: 1160px) {
	.kl-pdp__hero {
		grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
		gap: 36px;
	}

	.kl-pdp__purchase {
		position: static;
	}

	.kl-pdp__buy {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.kl-pdp__stock {
		margin-left: 0;
	}
}

@media (max-width: 900px) {
	.kl-pdp__hero {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.kl-pdp__gallery {
		width: 100%;
		max-width: 760px;
		margin-inline: auto;
		aspect-ratio: 4 / 3;
	}

	.kl-pdp__purchase {
		max-width: 760px;
		margin-inline: auto;
	}

	.kl-pdp__details {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.kl-pdp__inner {
		padding: 18px 16px 48px;
	}

	.kl-pdp__breadcrumb {
		display: block;
		margin-bottom: 14px;
		font-size: 14px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.kl-pdp__breadcrumb span {
		margin-inline: 7px;
	}

	.kl-pdp__hero {
		gap: 28px;
	}

	.kl-pdp__gallery {
		position: static;
		display: flex;
		flex-direction: column;
		gap: 12px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		min-height: 0;
		aspect-ratio: auto;
		overflow: hidden;
	}

	.woocommerce .kl-pdp__main-image {
		position: relative;
		inset: auto;
		order: 1;
		width: 100%;
		height: 400px;
		min-height: 0;
		aspect-ratio: auto;
		border-radius: 12px;
	}

	.kl-pdp__thumbs {
		position: static;
		order: 2;
		flex-direction: row;
		gap: 10px;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scroll-snap-type: x proximity;
		padding: 2px 2px 8px;
		width: 100%;
		min-width: 0;
		overflow-y: hidden;
		scrollbar-width: none;
	}

	.kl-pdp__thumbs::-webkit-scrollbar {
		display: none;
	}

	.kl-pdp__thumb {
		flex: 0 0 74px;
		width: 74px;
		height: 74px;
		scroll-snap-align: start;
	}

	.kl-pdp__zoom-icon {
		top: 12px;
		right: 12px;
		width: 44px;
		height: 44px;
	}

	.kl-pdp__purchase {
		display: flex;
		flex-direction: column;
	}

	.kl-pdp__heading {
		order: 1;
	}

	.kl-pdp__summary {
		order: 2;
	}

	.kl-pdp__price-row {
		order: 3;
	}

	.kl-pdp__rating {
		order: 5;
	}

	.kl-pdp__attributes {
		order: 6;
	}

	.kl-pdp__buy {
		order: 4;
		margin-top: 0;
		margin-bottom: 18px;
	}

	.kl-pdp__benefits {
		order: 7;
	}

	.kl-pdp__stock {
		order: 8;
	}

	.kl-pdp__highlights {
		order: 9;
	}

	.kl-pdp__title {
		max-width: none;
		font-size: 20px;
	}

	.kl-pdp__subtitle {
		font-size: 14px;
	}

	.kl-pdp__summary {
		margin-bottom: 18px;
		font-size: 15px;
	}

	.kl-pdp__price {
		font-size: 16px;
	}

	.kl-pdp__benefits {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0;
		margin-top: 11px;
		margin-bottom: 10px;
		padding-block: 5px;
	}

	.kl-pdp__benefits li,
	.kl-pdp__benefits li:first-child {
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		min-height: 62px;
		padding: 5px 3px;
		font-size: 11px;
		line-height: 1.2;
		text-align: center;
		white-space: normal;
	}

	.kl-pdp__benefits li + li {
		border-top: 0;
		border-left: 1px solid var(--kl-border);
	}

	.kl-pdp__benefits svg {
		width: 22px;
		height: 22px;
		flex-basis: 22px;
	}

	.kl-pdp__attributes > div {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.kl-pdp__attributes dd {
		justify-self: start;
	}

	.kl-pdp__buy form.cart {
		grid-template-columns: 136px minmax(0, 1fr);
	}

	.kl-pdp__highlights {
		grid-template-columns: 1fr;
		gap: 0;
		margin-top: 13px;
		padding: 6px 0 0;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.kl-pdp__highlights li {
		padding: 10px 0;
		font-size: 13px;
		text-align: left;
		white-space: normal;
	}

	.kl-pdp__highlights li + li {
		border-top: 0;
		border-left: 0;
	}

	.kl-pdp__details {
		gap: 28px;
		margin-top: 34px;
	}

	.kl-pdp__long-description {
		margin-top: 17px;
		padding: 12px 0;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.kl-pdp__long-description-inner > h2 {
		margin-bottom: 17px;
		font-size: 26px;
	}

	.kl-pdp-accordion__button {
		min-height: 60px;
		padding: 13px 15px;
		font-size: 16px;
	}

	.kl-pdp-accordion__content {
		padding: 0 15px 18px;
	}

	.kl-pdp__use-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.kl-pdp__use-card {
		display: grid;
		grid-template-columns: 42% minmax(0, 1fr);
		align-items: stretch;
		height: 156px;
	}

	.kl-pdp__use-card img {
		height: 100%;
		min-height: 0;
		max-height: 156px;
		aspect-ratio: auto;
	}

	.kl-pdp__use-card > div {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.kl-pdp__use-card h3,
	.kl-pdp__use-card p {
		text-align: left;
	}

	.kl-pdp__related-grid {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		padding-bottom: 10px;
	}

	/*
	 * 2026-08-13: card width changed from a vw-relative "1 card + peek" size to
	 * a fixed 197px matching PLP's own mobile card width exactly (measured live
	 * on /sklep/ at a 375px viewport: 2-column grid, 197px columns, 10px gap —
	 * matched above too). User asked to replicate the PLP card exactly rather
	 * than keep the previous single-large-card carousel affordance; this still
	 * scrolls horizontally (multiple PLP-sized cards + a partial peek of the
	 * next), it just no longer looks like a different, bigger card than PLP's.
	 * min-width:0 overrides the flex default that would otherwise let card
	 * content refuse to shrink below its min-content size.
	 */
	.kl-pdp__related-grid > * {
		flex: 0 0 197px;
		width: 197px;
		max-width: none;
		min-width: 0;
		scroll-snap-align: start;
	}

	/*
	 * No image-height override needed here (unlike the 2026-08-13 fix this
	 * replaces): at PLP's own 197px card width, template 156's native fixed
	 * `height_mobile: 235px` (the same rule PLP itself renders with, unmodified)
	 * already reads correctly portrait — it only looked landscape/stretched at
	 * the old, much wider carousel card size. Removing the override rather than
	 * keeping it makes this card pixel-identical to PLP's, not just similarly
	 * proportioned.
	 */

}

@media (max-width: 379px) {
	.kl-pdp__inner {
		padding-inline: 12px;
	}

	.kl-pdp__buy form.cart {
		grid-template-columns: 1fr;
	}

	.kl-pdp__buy form.cart .quantity {
		width: 136px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.kl-pdp *,
	.kl-pdp *::before,
	.kl-pdp *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
