/* Strona produktu. Wartości z makiet 390 px i 1800 px. */

.product-page ~ .woocommerce-notices-wrapper,
.site-main--shop > .woocommerce-notices-wrapper:not(:empty) {
	padding: 16px 24px 0;
}

.product-top__inner {
	padding: 20px 24px 56px;
}

/* Galeria */
.gallery {
	margin-top: 12px;
}

.gallery__main {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--color-sand);
}

.gallery__image,
.gallery__player {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery__image--lit {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 300ms ease;
}

.gallery.is-lamp-on .gallery__image--lit {
	opacity: 1;
}

.lamp-toggle--gallery {
	position: absolute;
	top: 12px;
	right: 12px;
}

.gallery__thumbs {
	display: flex;
	gap: 6px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}

.gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.gallery__thumb {
	position: relative;
	flex: 0 0 calc((100% - 18px) / 4);
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--color-sand);
	opacity: 0.8;
	transition: opacity var(--transition);
}

.gallery__thumb:hover,
.gallery__thumb.is-active {
	opacity: 1;
}

.gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52%;
	aspect-ratio: 1;
	border: 1px solid rgb(255 255 255 / 0.6);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.gallery__play::before {
	content: "";
	width: 34%;
	height: 46%;
	margin-left: 8%;
	background: rgb(255 255 255 / 0.8);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.gallery__progress {
	position: relative;
	height: 3px;
	margin-top: 12px;
	background: var(--color-white);
}

.gallery__progress span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: var(--color-field);
}

/* Podsumowanie */
.product-summary {
	margin-top: 32px;
}

.product-summary__eyebrow {
	margin: 0;
}

.product-summary__title {
	margin-top: 22px;
	font-size: 36px;
	line-height: 43px;
}

.product-summary__subtitle {
	display: block;
	color: rgb(42 42 38 / 0.78);
}

.product-summary__price {
	margin-top: 22px;
	line-height: 32px;
}

.price-gross {
	font-size: 22px;
	font-weight: 500;
}

.price-regular {
	color: var(--color-field);
	font-size: 16px;
}

.price-from {
	font-size: 14px;
	font-weight: 400;
}

.price-net {
	margin-left: 8px;
	color: var(--color-field);
	font-size: 14px;
}

.product-summary__availability {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 22px 0 0;
	color: var(--color-field);
	font-size: 10px;
	letter-spacing: 0.2em;
	line-height: 20px;
	text-transform: uppercase;
}

.product-summary__availability::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #008c13;
}

.product-summary__availability.is-out::before {
	background: var(--color-faint);
}

/* Warianty */
.variations {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 24px;
}

.variation-option {
	position: relative;
}

.variation-option__label {
	display: block;
	color: var(--color-field);
	font-size: 11px;
	letter-spacing: 0.2em;
	line-height: 20px;
	text-transform: uppercase;
}

.variation-option__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.variation-option__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.variation-option__value {
	color: rgb(42 42 38 / 0.78);
	font-size: 11px;
	letter-spacing: 0.2em;
	line-height: 20px;
	text-align: right;
	text-transform: uppercase;
}

.variation-option__select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.swatch {
	position: relative;
	width: 44px;
	height: 44px;
	border: 1px solid transparent;
	border-radius: 50%;
	transition: border-color var(--transition), opacity var(--transition);
}

.swatch::before {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	background: var(--swatch);
}

.swatch:hover {
	border-color: rgb(42 42 38 / 0.3);
}

.swatch[aria-pressed="true"] {
	border-color: rgb(42 42 38 / 0.78);
}

.choice {
	min-width: 86px;
	height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--color-field);
	color: var(--color-field);
	font-size: 12px;
	transition: background-color var(--transition), color var(--transition);
}

.choice:hover {
	border-color: var(--color-ink);
	color: var(--color-ink);
}

.choice[aria-pressed="true"] {
	border-color: var(--color-ink);
	background: var(--color-ink);
	color: var(--color-bg);
}

.swatch:disabled,
.choice:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.reset_variations,
.woocommerce-variation-price,
.woocommerce-variation-availability,
.woocommerce-variation-description {
	display: none !important;
}

.wc-no-matching-variations {
	margin: 16px 0 0;
	font-size: 14px;
}

/* Ilość i przycisk */
.product-summary form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart {
	display: flex;
	gap: 10px;
	margin-top: 24px;
}

.quantity {
	display: flex;
	flex: 0 0 106px;
	align-items: center;
	height: 56px;
	border: 1px solid var(--color-ink);
}

.quantity--hidden {
	display: none;
}

.quantity__step {
	flex: none;
	width: 34px;
	height: 100%;
	font-size: 17px;
}

.quantity__step:hover {
	background: var(--color-sand);
}

.quantity input {
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	font-size: 17px;
	text-align: center;
	appearance: textfield;
}

.quantity input::-webkit-inner-spin-button,
.quantity input::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

.single_add_to_cart_button {
	flex: 1;
	min-width: 0;
	height: 56px;
	padding-inline: 8px;
	background: var(--color-ink);
	color: var(--color-bg);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	transition: background-color var(--transition), opacity var(--transition);
}

.single_add_to_cart_button:hover {
	background: var(--color-black);
}

.single_add_to_cart_button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Gwarancja, FSC, korzyści */
.product-warranty {
	margin-top: 24px;
	padding: 20px;
	border: 1px solid var(--color-field);
}

.product-warranty__icon {
	display: none;
}

.product-warranty__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 23px;
}

.product-warranty__text {
	margin: 10px 0 0;
	color: rgb(42 42 38 / 0.78);
	font-size: 13px;
	line-height: 23px;
}

.product-fsc {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 24px;
	padding: 16px;
	background: var(--color-surface);
}

.product-fsc__logo {
	flex: none;
	width: 86px;
	height: auto;
}

.product-fsc__links {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 20px;
	text-transform: uppercase;
}

.product-fsc__links button,
.product-fsc__links a {
	color: var(--color-muted);
	letter-spacing: inherit;
	text-align: left;
	text-transform: inherit;
}

.product-fsc__links button:hover,
.product-fsc__links a:hover {
	color: var(--color-ink);
}

.product-perks {
	margin-top: 24px;
	color: rgb(42 42 38 / 0.78);
	font-size: 13px;
	line-height: 23px;
}

.product-perks li + li {
	margin-top: 9px;
}

.product-perks li::before {
	content: "· ";
}

/* Sekcje */
.product-section__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 56px 24px;
}

.product-section__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.product-section .section-label {
	align-self: stretch;
}

.product-section__title {
	font-size: 36px;
	line-height: 1.16;
}

.product-section__eyebrow {
	margin: 0;
	line-height: 24px;
}

.product-section--description {
	background: var(--color-sand);
}

.product-description {
	color: rgb(42 42 38 / 0.78);
}

.product-description p {
	margin: 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 24px;
}

.product-description p:first-child {
	font-size: 16px;
	font-weight: 400;
	line-height: 25px;
}

.product-description p + p {
	margin-top: 16px;
}

.product-specs {
	margin: 0;
}

.product-specs__row {
	padding-block: 16px;
	border-bottom: 1px solid rgb(42 42 38 / 0.3);
}

.product-specs dt {
	color: var(--color-field);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 19px;
	text-transform: uppercase;
}

.product-specs dd {
	margin: 6px 0 0;
	color: rgb(42 42 38 / 0.78);
	font-size: 14px;
	line-height: 24px;
}

.product-section--material {
	background: var(--color-blue);
	color: var(--color-white);
}

.product-section--material .section-label {
	color: #cad3de;
}

.product-section__lead {
	margin: 0;
	font-size: 16px;
	line-height: 25px;
}

.product-section--material .product-section__link {
	margin-top: 24px;
}

.product-related__inner {
	padding: 56px 24px;
}

.product-related__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (min-width: 1024px) {
	.product-top__inner {
		display: grid;
		grid-template-columns: calc(576 * var(--u)) calc(576 * var(--u));
		grid-template-rows: auto 1fr;
		column-gap: calc(155 * var(--u));
		min-height: calc(1253 * var(--u));
		padding: calc(69 * var(--u)) 0 calc(30 * var(--u)) calc(211 * var(--u));
	}

	.site-main--shop > .woocommerce-notices-wrapper:not(:empty) {
		padding: 16px calc(100 * var(--u)) 0;
	}

	.product-top__breadcrumb {
		grid-column: 1 / -1;
		margin-left: calc(-6 * var(--u));
	}

	.product-top .breadcrumb {
		font-size: 12px;
		letter-spacing: 0.2em;
		line-height: 21px;
		color: rgb(42 42 38 / 0.6);
	}

	.gallery {
		margin-top: calc(22 * var(--u));
	}

	.gallery__main {
		aspect-ratio: 576 / 720;
	}

	.lamp-toggle--gallery {
		top: calc(20 * var(--u));
		right: calc(20 * var(--u));
	}

	.gallery__thumbs {
		gap: calc(8 * var(--u));
		margin-top: calc(8 * var(--u));
	}

	.gallery__thumb {
		flex: 0 0 calc(138 * var(--u));
	}

	.gallery__progress {
		height: 2px;
		margin-top: calc(23 * var(--u));
	}

	.product-summary {
		margin-top: calc(14 * var(--u));
	}

	.product-summary__title {
		margin-top: calc(17 * var(--u));
		font-size: calc(49 * var(--u));
		line-height: calc(56 * var(--u));
	}

	.product-summary__price {
		display: flex;
		align-items: baseline;
		height: 27px;
		margin-top: calc(23 * var(--u));
		line-height: 27px;
		white-space: pre;
	}

	.product-summary__availability {
		gap: calc(14 * var(--u));
		margin-top: calc(12 * var(--u));
		color: rgb(42 42 38 / 0.6);
		font-size: max(10px, calc(14 * var(--u)));
		letter-spacing: 0.14em;
		line-height: 27px;
	}

	.product-summary__availability::before {
		width: 7px;
		height: 7px;
	}

	.variations {
		gap: calc(25 * var(--u));
		margin-top: calc(30 * var(--u));
	}

	.variation-option__label {
		color: rgb(117 117 117 / 0.78);
		font-size: 12px;
		letter-spacing: 0.17em;
		line-height: 27px;
	}

	.variation-option__row {
		display: block;
		margin-top: calc(15 * var(--u));
	}

	.variation-option__choices {
		gap: calc(13 * var(--u));
	}

	.variation-option__value {
		position: absolute;
		top: 4px;
		right: 0;
		font-size: 11px;
		font-weight: 500;
		letter-spacing: 0.22em;
		line-height: 19px;
	}

	.swatch {
		width: 38px;
		height: 38px;
	}

	.swatch::before {
		inset: 3px;
	}

	.choice {
		min-width: 84px;
		height: 42px;
		letter-spacing: 0.17em;
	}

	/* Na makiecie rząd przycisków tekstowych ma inne odstępy niż rzędy kolorów. */
	.variation-option:has(.choice) {
		margin-top: calc(-2 * var(--u));
	}

	.variation-option__row:has(.choice) {
		margin-top: calc(19 * var(--u));
	}

	.is-colors + .variation-option__value {
		top: 4px;
	}

	.product-summary form.cart:not(.variations_form),
	.woocommerce-variation-add-to-cart {
		gap: calc(17 * var(--u));
		margin-top: calc(26 * var(--u));
	}

	.quantity {
		flex: 0 0 calc(140 * var(--u));
		min-width: 106px;
		height: calc(55 * var(--u));
		min-height: 44px;
	}

	.quantity input {
		font-size: 18px;
		font-weight: 300;
	}

	.single_add_to_cart_button {
		height: calc(55 * var(--u));
		min-height: 44px;
		font-size: 12px;
	}

	.product-warranty {
		position: relative;
		display: flex;
		gap: calc(16 * var(--u));
		margin-top: calc(34 * var(--u));
		padding: calc(33 * var(--u)) calc(21 * var(--u)) calc(22 * var(--u));
	}

	.product-warranty__icon {
		display: block;
		flex: none;
		align-self: flex-start;
		width: 20px;
		height: 23px;
		margin-top: calc(-5 * var(--u));
	}

	.product-warranty__title {
		line-height: 19px;
	}

	.product-warranty__text {
		margin-top: 13px;
		font-size: 14px;
		line-height: 22px;
	}

	.product-fsc {
		gap: calc(72 * var(--u));
		margin-top: calc(41 * var(--u));
		padding: 0;
		background: none;
	}

	.product-fsc__logo {
		width: calc(191 * var(--u));
	}

	.product-fsc__links {
		display: flex;
		flex-direction: column;
		align-self: stretch;
		justify-content: center;
		padding-left: calc(52 * var(--u));
		border-left: 1px solid var(--color-line);
		font-size: 11px;
		letter-spacing: 0.22em;
		line-height: 27px;
	}

	.product-fsc__links:only-child {
		border: 0;
	}

	.product-perks {
		margin-top: calc(48 * var(--u));
		font-size: 14px;
		line-height: 34px;
	}

	.product-perks li + li {
		margin-top: 0;
	}

	.product-section__inner {
		display: grid;
		grid-template-columns: calc(942 * var(--u)) calc(731 * var(--u));
		gap: 0;
		padding: 0;
	}

	.product-section__side {
		display: block;
	}

	.product-section__title {
		width: calc(612 * var(--u));
		margin: calc(45 * var(--u)) 0 0 calc(211 * var(--u));
		font-size: calc(70 * var(--u));
		line-height: calc(80 * var(--u));
	}

	.product-section__eyebrow {
		width: calc(587 * var(--u));
		margin: calc(21 * var(--u)) 0 0 calc(211 * var(--u));
		line-height: calc(28 * var(--u));
	}

	.product-section__side .text-link {
		margin: calc(50 * var(--u)) 0 0 calc(213 * var(--u));
	}

	.product-section--description .product-section__inner {
		min-height: calc(571 * var(--u));
	}

	.product-section--description .product-section__side {
		padding-top: calc(135 * var(--u));
	}

	.product-section--description .product-section__content {
		width: calc(650 * var(--u));
		padding-top: calc(155 * var(--u));
	}

	.product-description p {
		width: calc(584 * var(--u));
		font-size: max(13px, calc(15 * var(--u)));
		line-height: calc(26 * var(--u));
	}

	.product-description p:first-child {
		width: calc(650 * var(--u));
		font-size: max(14px, calc(18 * var(--u)));
		line-height: calc(26 * var(--u));
	}

	.product-description p + p {
		margin-top: calc(26 * var(--u));
	}

	.product-section--specs .product-section__inner {
		min-height: calc(954 * var(--u));
		padding-bottom: calc(150 * var(--u));
	}

	.product-section--specs .product-section__side {
		padding-top: calc(197 * var(--u));
	}

	.product-section--specs .product-section__title {
		width: calc(558 * var(--u));
		max-width: 8em;
	}

	.product-section--specs .product-section__eyebrow {
		margin-top: calc(17 * var(--u));
	}

	.product-specs {
		padding-top: calc(181 * var(--u));
	}

	.product-specs__row {
		display: grid;
		grid-template-columns: calc(263 * var(--u)) 1fr;
		align-items: center;
		min-height: calc(52 * var(--u));
		padding-block: 4px;
	}

	.product-specs dt {
		color: rgb(117 117 117 / 0.78);
		letter-spacing: 0.22em;
	}

	.product-specs dd {
		margin: 0;
	}

	.product-section--material .product-section__inner {
		min-height: calc(665 * var(--u));
	}

	.product-section--material .product-section__side {
		padding-top: calc(169 * var(--u));
	}

	.product-section--material .product-section__eyebrow {
		margin-top: calc(162 * var(--u));
	}

	.product-section--material .product-section__content {
		width: calc(650 * var(--u));
		padding-top: calc(166 * var(--u));
	}

	.product-section__lead {
		font-size: max(14px, calc(18 * var(--u)));
		line-height: calc(26 * var(--u));
	}

	.product-section--material .product-section__link {
		margin-top: calc(95 * var(--u));
	}

	.product-related__inner {
		padding: calc(177 * var(--u)) 0 calc(216 * var(--u));
	}

	.product-related__head {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.product-related__link {
		margin-right: calc(107 * var(--u));
	}

	.products--related {
		margin: calc(91 * var(--u)) 0 0 calc(238 * var(--u));
	}
}
