/* ZODIAC – karta produktu (ciemna). Makieta: Produkt.dc.html, mobile/M-Produkt.dc.html. */

.z-pp {
	color: var(--z-bone);
}

.z-pp a {
	color: inherit;
}

.z-pp__notices {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
}

.z-pp__notices:empty {
	display: none;
}

.z-pp .woocommerce-message,
.z-pp .woocommerce-error,
.z-pp .woocommerce-info {
	margin: 16px 0 0;
	padding: 14px 18px;
	list-style: none;
	border: 1px solid var(--z-line-dark);
	border-left: 3px solid var(--z-red);
	border-radius: var(--z-radius-sm);
	background: var(--z-surface-dark);
	color: var(--z-bone);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.z-pp .woocommerce-message::before,
.z-pp .woocommerce-error::before,
.z-pp .woocommerce-info::before {
	display: none;
}

.z-pp .woocommerce-message .button {
	order: 2;
	padding: 10px 16px;
	border-radius: var(--z-radius-sm);
	background: var(--z-bone);
	color: var(--z-black);
	font-weight: 600;
	text-decoration: none;
}

.z-pp__crumbs {
	max-width: 1440px;
	margin: 0 auto;
	padding: 24px 24px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	color: var(--z-muted-dark);
}

.z-pp__crumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	color: var(--z-muted-dark);
}

.z-pp__crumbs [aria-current] {
	color: var(--z-bone);
}

/* ---------- Górna część: galeria + konfigurator ---------- */

.z-pp__top {
	max-width: 1440px;
	margin: 0 auto;
	padding: 24px 24px 80px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}

.z-pp__gallery {
	flex: 1 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (min-width: 1025px) {
	.z-pp__gallery {
		position: sticky;
		top: 100px;
	}
}

.z-pp__main {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: var(--z-radius);
	background: var(--z-surface-dark);
	overflow: hidden;
}

.z-pp__main--ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	box-sizing: border-box;
}

.z-pp__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.z-pp__swatch {
	width: 70%;
	height: 44px;
	border-radius: var(--z-radius-sm);
	border: 1px solid #4A4540;
	transition: background-color 0.2s;
}

.z-pp__ph-text {
	font-family: var(--z-font-mono);
	font-size: 12px;
	color: #8A8379;
	text-align: center;
}

.z-pp__line-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 10px;
	border-radius: 3px;
	background: var(--z-bone);
	color: var(--z-black);
	font-family: var(--z-font-mono);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.z-pp__line-badge.is-taurus {
	background: var(--z-red);
	color: #FFFFFF;
}

.z-pp__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.z-pp__thumb {
	aspect-ratio: 1 / 1;
	border-radius: var(--z-radius-sm);
	background: var(--z-surface-dark);
	border: 2px solid transparent;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
}

.z-pp__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.z-pp__thumb[aria-pressed="true"] {
	border-color: var(--z-bone);
}

.z-pp__thumb--ph {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 6px;
	font-family: var(--z-font-mono);
	font-size: 11px;
	color: #8A8379;
	cursor: default;
}

/* ---------- Konfigurator ---------- */

.z-pp__buy {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 0;
}

.z-pp__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.z-pp__eyebrow {
	font-family: var(--z-font-mono);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--z-red-light);
}

.z-pp__title {
	margin: 0;
	font-family: var(--z-font-display);
	font-weight: 900;
	font-size: 56px;
	line-height: 1.05; /* wielkie litery z ogonkami (Ś, Ż) nie mogą nachodzić na wiersz wyżej */
	text-transform: uppercase;
	color: var(--z-bone);
}

.z-pp__rating {
	font-size: 14px;
	color: var(--z-muted-dark);
}

.z-pp__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
}

.z-pp__price {
	font-family: var(--z-font-display);
	font-weight: 700;
	font-size: 40px;
	line-height: 1;
}

.z-pp__price-note {
	font-size: 14px;
	color: var(--z-muted-dark);
}

.z-pp__short {
	color: #C9C2B7;
	margin-top: -12px;
}

.z-pp__short p {
	margin: 0;
}

.z-pp__group {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.z-pp__legend {
	width: 100%;
	padding: 0;
	margin-bottom: 12px;
	font-weight: 600;
	color: var(--z-bone);
}

.z-pp__group--lines .z-opt + .z-opt {
	margin-top: 12px;
}

.z-pp__legend--split {
	display: flex;
	align-items: baseline;
	gap: 16px;
}

.z-pp__legend-value {
	font-weight: 400;
	color: #C9C2B7;
}

.z-pp__howto {
	margin-left: auto;
	font-weight: 400;
	font-size: 14px;
	color: var(--z-muted-dark) !important;
	min-height: 24px;
}

/* Opcje: ukryte radio + widoczny przycisk. */
.z-opt {
	position: relative;
	cursor: pointer;
	display: block;
}

.z-opt__body {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 44px;
	border: 2px solid #4A4540;
	border-radius: var(--z-radius);
	background: transparent;
	color: var(--z-bone);
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.z-opt:hover .z-opt__body {
	border-color: var(--z-muted-dark);
}

.z-opt input:checked + .z-opt__body {
	background: var(--z-bone);
	border-color: var(--z-bone);
	color: var(--z-black);
}

.z-opt input:focus-visible + .z-opt__body,
.z-opt input:focus-visible + .z-opt__dot {
	outline: 2px solid var(--z-red-light);
	outline-offset: 2px;
}

.z-opt input:disabled + .z-opt__body,
.z-opt input:disabled + .z-opt__dot {
	opacity: 0.35;
	cursor: not-allowed;
}

.z-opt input:disabled + .z-opt__body {
	text-decoration: line-through;
}

.z-opt--line .z-opt__body {
	padding: 18px 20px;
}

.z-opt__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.z-opt__name {
	font-family: var(--z-font-display);
	font-weight: 900;
	font-size: 26px;
	line-height: 1;
	text-transform: uppercase;
}

.z-opt__price {
	font-weight: 600;
	white-space: nowrap;
}

.z-opt__desc {
	font-size: 14px;
}

.z-opt__spec {
	font-family: var(--z-font-mono);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.04em;
	opacity: 0.75;
}

.z-pp__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.z-opt--color {
	width: 44px;
	height: 44px;
}

.z-opt__dot {
	display: block;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #5A544E;
}

.z-opt input:checked + .z-opt__dot {
	border: 3px solid var(--z-black);
	box-shadow: 0 0 0 2px var(--z-bone);
}

.z-pp__sizes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.z-opt--size .z-opt__body {
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 10px;
	text-align: center;
}

.z-opt__size {
	font-weight: 600;
}

.z-opt__range {
	font-size: 12px;
	opacity: 0.8;
}

.z-pp__kn {
	margin: -8px 0 0;
	padding: 12px 16px;
	border-left: 3px solid var(--z-red);
	background: var(--z-surface-dark);
	border-radius: 0 var(--z-radius-sm) var(--z-radius-sm) 0;
	font-size: 14px;
	color: #C9C2B7;
}

.z-pp__kn strong {
	color: var(--z-bone);
	font-family: var(--z-font-mono);
	font-weight: 500;
}

.z-pp__combo-msg {
	margin: -16px 0 0;
	font-size: 14px;
	color: var(--z-red-light);
}

.z-pp__combo-msg:empty {
	display: none;
}

.z-pp__add {
	width: 100%;
	min-height: 56px;
	border: 0;
	border-radius: var(--z-radius-sm);
	background: var(--z-red);
	color: #FFFFFF;
	font-family: var(--z-font-body);
	font-weight: 600;
	font-size: 17px;
	cursor: pointer;
	transition: background-color 0.15s;
}

.z-pp__add:hover:not(:disabled) {
	background: #9A1F18;
}

.z-pp__add:disabled {
	background: #4A4540;
	color: var(--z-muted-dark);
	cursor: not-allowed;
}

.z-pp__add .woocommerce-Price-currencySymbol {
	font-size: inherit;
}

/* Upsell: smycz w tym samym kolorze */
.z-pp__upsell {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--z-line-dark);
	border-radius: var(--z-radius);
	margin-top: -8px;
}

.z-pp__upsell[hidden] {
	display: none;
}

.z-pp__upsell-img {
	flex: 0 0 72px;
	height: 72px;
	border-radius: var(--z-radius-sm);
	background: var(--z-surface-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	font-family: var(--z-font-mono);
	font-size: 10px;
	color: #8A8379;
}

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

.z-pp__upsell-text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.z-pp__upsell-title {
	font-weight: 600;
}

.z-pp__upsell-note {
	font-size: 14px;
	color: var(--z-muted-dark);
}

.z-pp a.z-pp__upsell-add {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--z-radius-sm);
	background: var(--z-bone);
	color: var(--z-black);
	font-weight: 600;
	text-decoration: none;
}

.z-pp a.z-pp__upsell-add:hover {
	background: #FFFFFF;
}

.z-pp__perks {
	margin: 0;
	padding: 20px 0 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-top: 1px solid var(--z-line-dark);
	font-size: 14px;
	color: #C9C2B7;
}

.z-pp__perks a {
	color: #C9C2B7;
	text-underline-offset: 3px;
}

/* ---------- Porównanie okuć (jasny pas jak w makiecie) ---------- */

.z-pp__specs {
	background: var(--z-bone);
	color: var(--z-black);
}

.z-pp__specs-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 64px 24px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.z-pp__h2 {
	margin: 0;
	font-family: var(--z-font-display);
	font-weight: 900;
	font-size: 48px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--z-black);
}

.z-pp__table-wrap {
	overflow-x: auto;
}

.z-pp__table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 15px;
	color: var(--z-black);
	background: transparent;
	margin: 0;
	border: 0;
}

.z-pp__table th,
.z-pp__table td {
	padding: 14px 8px;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid #D6CFC3;
	background: transparent;
}

.z-pp__table th:first-child {
	padding-left: 0;
}

.z-pp__table thead th {
	border-bottom: 2px solid var(--z-black);
	font-weight: 600;
}

.z-pp__table thead th.is-taurus {
	color: var(--z-red);
}

.z-pp__table tbody th {
	font-weight: 400;
}

.z-pp__na {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--z-muted);
}

.z-pp__tm {
	margin: 0;
	font-size: 13px;
	color: var(--z-muted);
}

/* ---------- Akordeony ---------- */

.z-pp__details {
	max-width: 1440px;
	margin: 0 auto;
	padding: 56px 24px 80px;
	box-sizing: border-box;
}

.z-acc {
	max-width: 820px;
	border-bottom: 1px solid var(--z-line-dark);
}

.z-acc:first-child {
	border-top: 1px solid var(--z-line-dark);
}

.z-acc__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 56px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: 16px;
	color: var(--z-bone);
}

.z-acc__head::-webkit-details-marker {
	display: none;
}

.z-acc__head::after {
	content: "+";
	font-size: 22px;
	font-weight: 400;
	color: var(--z-muted-dark);
}

.z-acc[open] > .z-acc__head::after {
	content: "\2212";
}

.z-acc__body {
	padding: 0 0 20px;
	color: #C9C2B7;
	font-size: 15px;
}

.z-acc__body p {
	margin: 0 0 10px;
}

.z-acc__body ul {
	margin: 0 0 10px;
	padding-left: 18px;
}

.z-acc__body a {
	color: var(--z-bone);
	text-underline-offset: 3px;
}

/* ---------- Pasek koszyka na telefonie ---------- */

.z-pp__bar {
	display: none;
}

@media (max-width: 1024px) {
	.z-pp__top {
		gap: 32px;
	}

	.z-pp__title {
		font-size: 48px;
	}
}

@media (max-width: 767px) {
	.z-pp__crumbs {
		padding: 12px 16px 0;
		font-size: 13px;
	}

	.z-pp__notices {
		padding: 0 16px;
	}

	.z-pp__top {
		padding: 12px 0 40px;
		gap: 20px;
	}

	.z-pp__gallery {
		flex-basis: 100%;
	}

	/* Galeria na pełną szerokość. */
	.z-pp__main {
		border-radius: 0;
	}

	.z-pp__thumbs {
		padding: 0 16px;
		gap: 8px;
	}

	.z-pp__line-badge {
		top: 12px;
		left: 12px;
		font-size: 10px;
	}

	.z-pp__buy {
		flex-basis: 100%;
		padding: 0 16px;
		gap: 24px;
	}

	.z-pp__title {
		font-size: 40px;
	}

	.z-pp__price {
		font-size: 30px;
	}

	.z-opt--line .z-opt__body {
		padding: 14px 16px;
	}

	.z-opt__name {
		font-size: 22px;
	}

	.z-opt__desc {
		font-size: 13px;
	}

	.z-opt__spec {
		font-size: 11px;
	}

	.z-pp__swatches {
		gap: 12px;
	}

	.z-pp__sizes {
		gap: 8px;
	}

	.z-opt--size .z-opt__body {
		min-height: 52px;
	}

	.z-pp__upsell {
		padding: 12px;
		gap: 12px;
	}

	.z-pp__upsell-img {
		flex-basis: 56px;
		height: 56px;
	}

	.z-pp__upsell-title {
		font-size: 14px;
	}

	.z-pp__upsell-note {
		font-size: 12px;
	}

	.z-pp__specs-inner {
		padding: 40px 16px;
	}

	.z-pp__h2 {
		font-size: 36px;
	}

	.z-pp__details {
		padding: 32px 16px 120px;
	}

	/* Przyklejony dolny pasek „Dodaj do koszyka”. */
	.z-pp__bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: var(--z-black);
		border-top: 1px solid var(--z-line-dark);
		box-sizing: border-box;
		transform: translateY(0);
		transition: transform 0.2s;
	}

	.z-pp__bar.is-hidden {
		transform: translateY(110%);
	}

	.z-pp__bar-info {
		display: flex;
		flex-direction: column;
		line-height: 1.2;
		min-width: 0;
	}

	.z-pp__bar-variant {
		font-size: 11px;
		color: var(--z-muted-dark);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.z-pp__bar-price {
		font-weight: 600;
	}

	.z-pp__bar-add {
		flex: 1 1 auto;
		height: 52px;
		border: 0;
		border-radius: var(--z-radius-sm);
		background: var(--z-red);
		color: #FFFFFF;
		font-family: var(--z-font-body);
		font-weight: 600;
		font-size: 16px;
		cursor: pointer;
	}

	.z-pp__bar-add:disabled {
		background: #4A4540;
		color: var(--z-muted-dark);
	}

	body.z-product-page .elementor-location-footer {
		padding-bottom: 76px;
	}
}

/* Motyw Hello Elementor zwęża <main> do 1140 px – karta produktu ma własną szerokość (1440 px). */
body:not([class*="elementor-page-"]) .site-main.z-pp-main {
	max-width: none;
	width: 100%;
	padding-inline: 0;
}
