/* דף המוצר והקונפיגורטור (design/Configurator.dc.html). רכיבים משותפים (צבעים, כפתור) ב-ui.css. */

.zebra-product {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 32px) 80px;
	color: var(--zebra-ink);
	font-size: 16px;
	line-height: 1.55;
}

.zebra-breadcrumb {
	padding: 4px 0 16px;
	font-size: 14px;
	color: var(--zebra-muted);
}

.zebra-breadcrumb a {
	color: var(--zebra-muted);
}

.zebra-noscript {
	padding: 16px;
	border-radius: 12px;
	background: #fff;
}

.zebra-product__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	grid-template-areas: "visual config";
	gap: 48px;
	align-items: start;
}

.zebra-product__visual {
	grid-area: visual;
}

.zebra-product__config {
	grid-area: config;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.zebra-product__visual-sticky {
	position: sticky;
	top: 24px;
}

.zebra-product__visual-note {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--zebra-muted);
	text-align: center;
}

.zebra-product__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.zebra-product__title {
	margin: 0;
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -.03em;
}

.zebra-product__intro {
	margin: 0;
	font-size: 17px;
	color: var(--zebra-muted);
}

.zebra-form {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* שלבים */
.zebra-step {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.zebra-step__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.zebra-step__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 18px;
	font-weight: 800;
}

.zebra-step__num {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--zebra-ink);
	color: var(--zebra-paper);
	font-size: 14px;
}

.zebra-step__sub {
	font-weight: 400;
	color: var(--zebra-muted);
}

.zebra-step__link {
	font-size: 14px;
	font-weight: 700;
	color: var(--zebra-ink);
}

.zebra-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.zebra-field__label {
	padding: 0;
	font-size: 14px;
	font-weight: 700;
}

.zebra-field__note {
	font-weight: 400;
	color: var(--zebra-muted);
}

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

.zebra-field__help.is-error {
	color: var(--zebra-error);
	font-weight: 500;
}

.zebra-note {
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	color: var(--zebra-muted);
}

.zebra-product input[type="text"],
.zebra-product input[type="number"] {
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 14px;
	border: 1.5px solid var(--zebra-line);
	border-radius: 12px;
	background: #fff;
	color: var(--zebra-ink);
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	box-shadow: none;
}

.zebra-product input[type="text"] {
	width: 100%;
	font-weight: 500;
	font-size: 16px;
}

.zebra-product input:focus-visible {
	outline: 3px solid var(--zebra-ink);
	outline-offset: 2px;
}

.zebra-product input[aria-invalid="true"] {
	border-color: var(--zebra-error);
}

/* כפתורי בחירה (radio מוסתר + כרטיס) */
.zebra-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.zebra-options--series,
.zebra-options--widths {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zebra-option,
.zebra-swatch,
.zebra-pill {
	position: relative;
	cursor: pointer;
}

.zebra-option input,
.zebra-swatch input,
.zebra-pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.zebra-option__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	height: 100%;
	box-sizing: border-box;
	min-height: 56px;
	padding: 12px 16px;
	border: 1.5px solid var(--zebra-line);
	border-radius: 12px;
	transition: border-color .15s ease, background-color .15s ease;
}

.zebra-options--series .zebra-option__body {
	min-height: 64px;
	padding: 12px 14px;
	border-radius: 14px;
}

.zebra-option__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.zebra-options--series .zebra-option__title {
	font-weight: 800;
}

.zebra-option__sub {
	font-size: 13px;
	color: var(--zebra-muted);
}

.zebra-option input:checked + .zebra-option__body {
	border-color: var(--zebra-ink);
	background: #fff;
}

.zebra-option input:focus-visible + .zebra-option__body,
.zebra-swatch input:focus-visible + .zebra-swatch__chip,
.zebra-pill input:focus-visible + span {
	outline: 3px solid var(--zebra-accent);
	outline-offset: 2px;
}

.zebra-option.is-disabled {
	cursor: not-allowed;
}

.zebra-option.is-disabled .zebra-option__body {
	border-style: dashed;
	border-color: #CFCBC2;
	color: #8A877F;
}

.zebra-option.is-disabled .zebra-option__sub {
	color: #8A877F;
}

/* כפתורי רוחב: מספר גדול + מחיר, הנבחר בשחור */
.zebra-option--width .zebra-option__body {
	align-items: center;
	padding: 10px 8px;
	background: #fff;
}

.zebra-option--width .zebra-option__title {
	font-size: 17px;
	font-weight: 800;
}

.zebra-option--width .zebra-option__sub {
	color: inherit;
}

.zebra-option--width input:checked + .zebra-option__body {
	background: var(--zebra-ink);
	color: var(--zebra-paper);
}

.zebra-option--width.is-disabled .zebra-option__body {
	background: transparent;
}

/* גוונים */
.zebra-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.zebra-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.zebra-swatch__chip {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #D9D6CE;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
	transition: box-shadow .15s ease;
}

.zebra-swatch input:checked + .zebra-swatch__chip {
	box-shadow: 0 0 0 3px var(--zebra-paper), 0 0 0 5px var(--zebra-ink);
}

.zebra-swatch__name {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.25;
}

.zebra-swatch input:checked ~ .zebra-swatch__name {
	font-weight: 800;
}

.zebra-swatch__from {
	font-size: 12px;
	color: var(--zebra-muted);
}

/* עוזר מידה */
.zebra-helper {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border-radius: 16px;
	background: #fff;
}

.zebra-helper__label {
	font-size: 14px;
	font-weight: 700;
}

.zebra-helper__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.zebra-product .zebra-helper input[type="number"] {
	width: 150px;
	background: var(--zebra-paper);
}

.zebra-pills {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: #E9E7E2;
}

.zebra-pill span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
}

.zebra-pill input:checked + span {
	background: var(--zebra-ink);
	color: var(--zebra-paper);
}

.zebra-helper__result {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 15px;
}

.zebra-helper__result[hidden],
.zebra-button-outline[hidden] {
	display: none;
}

.zebra-button-outline {
	min-height: 40px;
	padding: 8px 16px;
	border: 1.5px solid var(--zebra-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--zebra-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.zebra-button-outline:hover {
	background: var(--zebra-ink);
	color: var(--zebra-paper);
}

/* מנגנון והצרה */
.zebra-addons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.zebra-addons[hidden],
.zebra-check[hidden],
.zebra-narrow[hidden],
.zebra-note[hidden] {
	display: none;
}

.zebra-check {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--zebra-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}

.zebra-check.is-checked {
	border-color: var(--zebra-ink);
}

.zebra-check input {
	width: 20px;
	height: 20px;
	accent-color: var(--zebra-ink);
}

.zebra-check__text {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.zebra-check__text small {
	font-size: 13px;
	color: var(--zebra-muted);
}

.zebra-narrow {
	padding-inline-start: 32px;
}

.zebra-product .zebra-narrow input[type="number"] {
	width: 180px;
	font-size: 20px;
}

/* סיכום ומחיר */
.zebra-summary {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px;
	border-radius: 24px;
	background: var(--zebra-ink);
	color: var(--zebra-paper);
}

.zebra-summary__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px;
}

.zebra-summary__price {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.zebra-summary__caption {
	font-size: 14px;
	color: #A8A6A0;
}

.zebra-summary__total {
	font-size: clamp(40px, 5vw, 52px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.03em;
}

.zebra-qty {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: #2A2A2A;
}

.zebra-qty__btn {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--zebra-paper);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.zebra-qty__btn:hover {
	background: #3A3A3A;
	color: var(--zebra-paper);
}

.zebra-qty__value {
	min-width: 56px;
	text-align: center;
	font-weight: 700;
}

.zebra-summary__lines {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid #2E2E2E;
	font-size: 14px;
	color: #A8A6A0;
}

.zebra-summary__line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.zebra-summary__line dt {
	font-weight: 400;
}

.zebra-summary__line dd {
	margin: 0;
	white-space: nowrap;
}

.zebra-summary .zebra-button {
	margin-top: 0;
	padding: 18px;
	font-weight: 800;
}

.zebra-summary .zebra-button[aria-disabled="true"] {
	background: #3A3A3A;
	color: #A8A6A0;
}

.zebra-summary__another {
	padding: 4px;
	border: 0;
	background: transparent;
	color: var(--zebra-paper);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.zebra-summary__another:hover {
	background: transparent;
	color: #fff;
}

.zebra-summary__trust {
	margin: 0;
	font-size: 13px;
	color: #A8A6A0;
	text-align: center;
}

.zebra-product__description {
	max-width: 760px;
	margin: 64px auto 0;
}

/* פס תחתון במובייל */
.zebra-sticky-bar {
	display: none;
}

@media (max-width: 900px) {
	.zebra-product__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "visual" "config";
		gap: 24px;
	}

	.zebra-product__visual-sticky {
		position: static;
	}

	.zebra-product__visual .zebra-preview__stage {
		aspect-ratio: 4 / 3;
	}

	.zebra-product__visual-note {
		display: none;
	}

	.zebra-product {
		padding-bottom: 110px;
	}

	.zebra-sticky-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 50;
		display: flex;
		align-items: center;
		gap: 16px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -6px 24px rgba(0, 0, 0, .1);
	}

	.zebra-sticky-bar__price {
		display: flex;
		flex-direction: column;
		line-height: 1.1;
	}

	.zebra-sticky-bar__price strong {
		font-size: 22px;
		font-weight: 900;
	}

	.zebra-sticky-bar .zebra-button {
		flex: 1;
		width: auto;
		min-height: 50px;
		margin: 0;
	}
}

@media (max-width: 480px) {
	.zebra-options--series {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* תמונות הגוון: רצועת תמונות ממוזערות מתחת להדמיה, והתמונה הנבחרת מעל ההדמיה */
.zebra-preview__stage > img.zebra-stage-photo { /* גובר על height:auto של ה-Theme */
	position: absolute;
	inset: 0;
	z-index: 4;
	width: 100%;
	height: 100%;
	object-fit: contain; /* תמונות בגדלים שונים – בלי חיתוך */
	background: #fff;
	border-radius: inherit;
}

.zebra-stage-photo[hidden],
.zebra-photos[hidden] {
	display: none;
}

.zebra-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.zebra-photos__thumb {
	position: relative;
	width: 64px;
	height: 64px;
	padding: 0;
	overflow: hidden;
	border: 1.5px solid var(--zebra-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}

.zebra-photos__thumb:hover {
	background: #fff;
	border-color: var(--zebra-muted);
}

.zebra-photos__thumb[aria-pressed="true"] {
	border-color: var(--zebra-ink);
	box-shadow: inset 0 0 0 1px var(--zebra-ink);
}

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

.zebra-photos__stripes {
	position: absolute;
	inset: 10px;
	border-radius: 4px;
	background-color: #D9D6CE;
}
