/* Quattro Design · quick view (1.9.11, 28.10). The stage is the same grey as every product frame (--qc-product-bg,
   ground.css), so the shoe reads as lifted out of its card. RTL: name and stage on the right, the buying column on the
   left (the reel, mirrored). Phones: one scrolling sheet, the button stays at the bottom. No filters, no blur. */

html.qc-qv-lock,
html.qc-qv-lock body { overflow: hidden; }
html.qc-qv-lock body { padding-inline-end: var(--qc-qv-sbw, 0px); }
html body .qc-qv-lifted { visibility: hidden; }

html body .qc-qv {
	position: fixed;
	inset: 0;
	z-index: 2147483000; /* above the theme's toasts ("X רכש כעת") and floating buttons */
	direction: rtl;
	color: var(--qc-ink, #171719);
	font-family: var(--qc-font, Arial, sans-serif);
}
html body .qc-qv[hidden] { display: none; }
html body .qc-qv__bg { position: absolute; inset: 0; background: var(--qc-product-bg, #E9E9E7); }

/* resets against the theme's button and heading styles */
html body .qc-qv :where(button, a) { /* :where keeps this at the component rules' weight, so they win below */
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	line-height: inherit;
	min-height: 0;
	height: auto;
	cursor: pointer;
}
html body .qc-qv :where(button, a):focus-visible { outline: 2px solid var(--qc-ink, #171719); outline-offset: 3px; }
html body .qc-qv :is(p, h2) { margin: 0; }

html body .qc-qv__box {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
	grid-template-rows: auto minmax(0, 1fr);
	grid-template-areas: "head panel" "stage panel";
	column-gap: clamp(24px, 4vw, 64px);
	padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px);
	outline: none;
}

html body .qc-qv__close {
	position: absolute;
	inset-block-start: 16px;
	inset-inline-end: 16px;
	z-index: 3;
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	border-radius: var(--qc-pill, 6px);
}
html body .qc-qv__close:hover { background: rgba(23, 23, 25, .06); }

/* ---------- name ---------- */
html body .qc-qv__head { grid-area: head; display: grid; gap: 6px; align-content: start; padding-inline-end: 56px; }
html body .qc-qv__line { font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--qc-grey, #6E6E73); }
html body .qc-qv__name {
	font-family: var(--qc-font-display, Arial, sans-serif);
	font-size: clamp(34px, 4.2vw, 64px);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -.015em;
	color: var(--qc-ink, #171719);
	text-wrap: balance;
}
html body .qc-qv__sub { font-size: 15px; color: var(--qc-grey, #6E6E73); }
html body .qc-qv :is(.qc-qv__line, .qc-qv__sub)[hidden] { display: none; }

/* ---------- stage ---------- */
html body .qc-qv__stage {
	grid-area: stage;
	position: relative;
	display: grid;
	place-items: center;
	min-block-size: 0;
	padding-inline: clamp(64px, 9vw, 170px); /* room for the neighbours, the shoe never runs under them */
}
html body .qc-qv__frame {
	position: relative;
	inline-size: min(100%, 880px);
	block-size: clamp(240px, calc(100svh - 240px), 620px); /* explicit: a tall photo must not size the stage */
}
html body .qc-qv__shoe {
	position: absolute; /* a grid item's 100% height resolved to the picture's own height (1024px photos overflowed) */
	inset: 0;
	display: block;
	inline-size: 100%;
	block-size: 100%;
	max-inline-size: none;
	object-fit: contain;
	transform-origin: 50% 50%;
	will-change: transform;
}

html body .qc-qv__peek {
	position: absolute;
	inset-block-start: 50%;
	inline-size: clamp(96px, 12vw, 200px);
	aspect-ratio: 1;
	translate: 0 -50%;
	opacity: .42;
	transition: opacity .3s var(--qc-ease, ease);
}
html body .qc-qv__peek[hidden] { display: none; }
html body .qc-qv__peek:hover,
html body .qc-qv__peek:focus-visible { opacity: .85; }
html body .qc-qv__peek--prev { inset-inline-start: calc(-1 * clamp(24px, 4vw, 56px) - 4vw); }
html body .qc-qv__peek--next { inset-inline-end: -2vw; }
html body .qc-qv__peek img { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; }
html body .qc-qv__peek img.is-photo { object-fit: cover; border-radius: 12px; }

/* ---------- buying column ---------- */
html body .qc-qv__panel {
	grid-area: panel;
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-block-size: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 28px;
	border-radius: var(--qc-radius-surface, 16px);
	background: var(--qc-paper, #FAFAF8);
}
html body .qc-qv.is-loading .qc-qv__panel > :not(.qc-qv__cta):not(.qc-qv__more) { opacity: .35; }
html body .qc-qv__price { font-size: 22px; font-weight: 500; }
html body .qc-qv__price del { color: var(--qc-grey, #6E6E73); font-size: .8em; font-weight: 400; margin-inline-start: 8px; }
html body .qc-qv__price ins { text-decoration: none; }
html body .qc-qv__promo { margin-block-start: -8px; font-size: 14px; font-weight: 600; }
html body .qc-qv__promo span { font-weight: 400; color: var(--qc-grey, #6E6E73); }
html body .qc-qv :is(.qc-qv__promo, .qc-qv__group)[hidden] { display: none; }
html body .qc-qv__group { display: grid; gap: 10px; }
html body .qc-qv__label { font-size: 14px; font-weight: 600; }
html body .qc-qv__picked { font-weight: 400; color: var(--qc-grey, #6E6E73); }

html body .qc-qv__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
html body .qc-qv__swatch {
	display: grid;
	place-items: center;
	inline-size: 64px;
	block-size: 64px;
	padding: 4px;
	border: 1px solid var(--qc-line, rgba(23, 23, 25, .12));
	border-radius: 10px;
	background: var(--qc-product-bg, #E9E9E7);
	overflow: hidden;
}
html body .qc-qv__swatch img { inline-size: 100%; block-size: 100%; object-fit: contain; }
html body .qc-qv__swatch img:not([src*="qc-cutout"]) { object-fit: cover; }
html body .qc-qv__swatch:has(img:not([src*="qc-cutout"])) { padding: 0; }
html body .qc-qv__swatch--text { inline-size: auto; padding-inline: 12px; font-size: 13px; }
html body .qc-qv__swatch[aria-pressed="true"] { border-color: var(--qc-ink, #171719); box-shadow: inset 0 0 0 1px var(--qc-ink, #171719); }

html body .qc-qv__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
html body .qc-qv__chip {
	display: grid;
	place-items: center;
	min-block-size: 48px;
	border: 1px solid var(--qc-line, rgba(23, 23, 25, .12));
	border-radius: var(--qc-pill, 6px);
	background: var(--qc-white, #fff);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}
html body .qc-qv__chip:hover { border-color: var(--qc-ink, #171719); }
html body .qc-qv__chip[aria-pressed="true"] { border-color: var(--qc-ink, #171719); background: var(--qc-ink, #171719); color: var(--qc-paper, #FAFAF8); }
html body .qc-qv__hint { grid-column: 1 / -1; font-size: 14px; color: var(--qc-grey, #6E6E73); }

html body .qc-qv__cta {
	display: grid;
	place-items: center;
	inline-size: 100%;
	min-block-size: 56px;
	border-radius: var(--qc-pill, 6px);
	background: var(--qc-ink, #171719);
	color: var(--qc-paper, #FAFAF8);
	font-size: 16px;
	font-weight: 600;
	transition: opacity .2s ease;
}
html body .qc-qv .qc-qv__cta:disabled { opacity: 1 !important; /* WoodMart: button[disabled] { opacity: .6 !important } */ background: var(--qc-ink, #171719); color: var(--qc-paper, #FAFAF8); cursor: default; } /* like the product page: "בחירת מידה" in ink, not greyed */
html body .qc-qv__cta.is-loading { opacity: .7; cursor: progress; }
html body .qc-qv__cta.is-added { opacity: 1; }
html body .qc-qv__more { align-self: center; font-size: 14px; color: var(--qc-ink, #171719); text-decoration: underline; text-underline-offset: 4px; }
html body .qc-qv__live { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- tablet and phone: one scrolling sheet ---------- */
@media (max-width: 1024px) {
	html body .qc-qv__box {
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding: 20px 16px 0;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	html body .qc-qv__close { position: fixed; inset-block-start: 8px; inset-inline-end: 8px; }
	html body .qc-qv__head { padding-inline-end: 48px; }
	html body .qc-qv__name { font-size: clamp(30px, 8vw, 44px); }
	html body .qc-qv__stage { flex: none; block-size: min(38svh, 360px); padding-inline: 0; }
	html body .qc-qv__frame { block-size: 100%; min-block-size: 0; inline-size: 78%; }
	html body .qc-qv__peek { inline-size: 22vw; max-inline-size: 140px; }
	html body .qc-qv__peek--prev { inset-inline-start: -14vw; }
	html body .qc-qv__peek--next { inset-inline-end: -14vw; }
	html body .qc-qv__panel {
		align-self: stretch;
		inline-size: 100%;
		max-inline-size: 560px;
		margin-inline: auto;
		max-block-size: none;
		overflow: visible;
		padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
		border-end-start-radius: 0;
		border-end-end-radius: 0;
	}
	html body .qc-qv__cta { position: sticky; inset-block-end: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 2; }
}

@media (prefers-reduced-motion: reduce) {
	html body .qc-qv__peek { transition: none; }
}

/* ---------- 1.9.14: opened from the shelf wall (QC · קיר נבחרים): the stage is the wall, the shoe on a lit clear shelf ---------- */
html body .qc-qv--wall { color: var(--qc-paper, #FAFAF8); }
html body .qc-qv--wall .qc-qv__bg { background: #58585B url("wall/wall-shelves-1200.webp") 50% 0 / cover no-repeat; }
@media (hover: hover) {
	html body .qc-qv--wall .qc-qv__bg { background-image: url("wall/wall-shelves.webp"); filter: blur(12px) brightness(.8); inset: -24px; }
}
html body .qc-qv--wall .qc-qv__name { color: var(--qc-paper, #FAFAF8); }
html body .qc-qv--wall :is(.qc-qv__line, .qc-qv__sub, .qc-qv__picked, .qc-qv__promo span) { color: #D5D5D8; }
html body .qc-qv--wall .qc-qv__close { color: var(--qc-paper, #FAFAF8); }
html body .qc-qv--wall .qc-qv__close:hover { background: rgba(255, 255, 255, .1); }
html body .qc-qv--wall .qc-qv__shoe { object-position: 50% 100%; }
html body .qc-qv--wall .qc-qv__frame::after { /* the clear shelf under the shoe, its front edge lit */
	content: "";
	position: absolute;
	left: 4%;
	right: 4%;
	top: calc(100% + 2px);
	block-size: 14px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-top-color: rgba(255, 255, 255, .85);
	border-radius: 2px;
	background: linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, .05));
	box-shadow: 0 2px 0 rgba(255, 255, 255, .6), 0 6px 22px 4px rgba(255, 255, 255, .28), 0 26px 30px -14px rgba(0, 0, 0, .55);
}
html body .qc-qv--wall .qc-qv__panel { background: rgba(28, 28, 30, .72); border: 1px solid rgba(255, 255, 255, .14); color: var(--qc-paper, #FAFAF8); }
html body .qc-qv--wall .qc-qv__chip { background: transparent; border-color: rgba(255, 255, 255, .22); color: var(--qc-paper, #FAFAF8); }
html body .qc-qv--wall .qc-qv__chip:hover { border-color: var(--qc-paper, #FAFAF8); }
html body .qc-qv--wall .qc-qv__chip[aria-pressed="true"] { background: var(--qc-paper, #FAFAF8); color: var(--qc-ink, #171719); border-color: var(--qc-paper, #FAFAF8); }
html body .qc-qv--wall .qc-qv__swatch { border-color: rgba(255, 255, 255, .22); }
html body .qc-qv--wall .qc-qv__swatch[aria-pressed="true"] { border-color: var(--qc-paper, #FAFAF8); box-shadow: inset 0 0 0 1px var(--qc-paper, #FAFAF8); }
html body .qc-qv--wall .qc-qv__cta,
html body .qc-qv.qc-qv--wall .qc-qv__cta:disabled { background: var(--qc-paper, #FAFAF8); color: var(--qc-ink, #171719); }
html body .qc-qv--wall .qc-qv__more { color: var(--qc-paper, #FAFAF8); }
html body .qc-qv--wall .qc-qv__price, html body .qc-qv--wall .qc-qv__price :is(ins, .amount, bdi) { color: var(--qc-paper, #FAFAF8); }
html body .qc-qv--wall .qc-qv__price del, html body .qc-qv--wall .qc-qv__price del :is(.amount, bdi) { color: #B9B9BC; }
html body .qc-qv--wall .qc-qv__hint { color: #D5D5D8; }
@media (max-width: 1024px) {
	html body .qc-qv--wall .qc-qv__frame { block-size: calc(100% - 18px); }
}
