/* ==========================================================================
   G7 Atelier — Product Hero
   Scoped to .g7-hero / .g7-modal so it can't leak into Impreza's styles.
   ========================================================================== */

.g7-hero {
	--g7-ink: #0a0a0a;
	--g7-ink-2: #404040;
	--g7-mute: #737373;
	--g7-line: #e5e5e5;
	--g7-paper: #ffffff;
	--g7-black: #000000;
	--g7-display: 'Druck Wide', 'Archivo', system-ui, sans-serif;
	--g7-body: 'Manrope', system-ui, -apple-system, sans-serif;
	--g7-max: 1380px;
	--g7-gutter: 34px;

	/* Panel count per breakpoint. The inline style sets --g7-panels-lg/md/sm;
	   these rules pick which one applies, so media queries stay in control. */
	--g7-panels: var(--g7-panels-lg, 3);
}

/* --- banner shell ------------------------------------------------------- */

.g7-hero {
	position: relative;
	min-height: var(--g7-height, 88vh);
	background: #0a0a0a;
	overflow: hidden;
	font-family: var(--g7-body);
	color: var(--g7-ink);
}

.g7-hero__stage {
	position: absolute;
	inset: 0;
}

.g7-hero__track {
	position: absolute;
	inset: 0;
	display: flex;
	width: calc(var(--g7-count) / var(--g7-panels) * 100%);
	transform: translateX(calc(var(--g7-i, 0) * -100% / var(--g7-count)));
	transition: transform .85s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.g7-hero__track.is-instant {
	transition: none;
}

.g7-hero__panel {
	position: relative;
	flex: 0 0 calc(100% / var(--g7-count));
	overflow: hidden;
	border-right: 1px solid rgba(255, 255, 255, .14);
	background: #141414;
}

.g7-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
	display: block;
}

/* The scrim that used to live in the inline background gradient. */
.g7-hero__panel::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .05) 45%, rgba(0, 0, 0, .35) 100%);
	pointer-events: none;
}

/* --- slide controls ----------------------------------------------------- */

.g7-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #0a0a0a;
	font-family: var(--g7-body);
	font-weight: 800;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease;
}

.g7-hero__nav:hover { background: #fff; }
.g7-hero__nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.g7-hero__nav--prev { left: 26px; }
.g7-hero__nav--next { left: 84px; }

.g7-hero__pager {
	position: absolute;
	left: var(--g7-gutter);
	bottom: 30px;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 18px;
}

.g7-hero__dots { display: flex; gap: 8px; }

.g7-hero__dot {
	width: 34px;
	height: 4px;
	padding: 0;
	border: none;
	border-radius: 2px;
	background: rgba(255, 255, 255, .38);
	cursor: pointer;
	transition: background .25s ease;
}

.g7-hero__dot.is-active { background: #fff; }
.g7-hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.g7-hero__counter {
	font-weight: 700;
	font-size: 11px;
	letter-spacing: .2em;
	color: #fff;
}

/* --- buy card ----------------------------------------------------------- */

.g7-hero__inner {
	position: relative;
	z-index: 5;
	max-width: var(--g7-max);
	margin: 0 auto;
	padding: 56px 0;
	display: flex;
}

.g7-hero--card-right .g7-hero__inner { justify-content: flex-end; }
.g7-hero--card-left .g7-hero__inner { justify-content: flex-start; }

.g7-hero__card {
	width: 440px;
	max-width: 100%;
	background: var(--g7-paper);
	padding: 36px 34px 30px;
}

.g7-hero__crumbs,
.g7-hero__crumbs a {
	font-weight: 600;
	font-size: 9.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--g7-mute);
	text-decoration: none;
}

.g7-hero__crumbs a:hover { color: #000; }

.g7-hero__title {
	margin: 18px 0 0;
	font-family: var(--g7-display);
	font-stretch: 125%;
	font-weight: 900;
	font-size: 22px;
	padding: 0;
	line-height: 1.08;
	text-transform: uppercase;
	color: var(--g7-ink);
}

.g7-hero__metarow {
	margin-top: 10px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.g7-hero__meta {
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--g7-mute);
}

.g7-hero__tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.g7-hero__tag {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid var(--g7-line);
	font-weight: 700;
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--g7-ink-2);
	text-decoration: none;
	line-height: 1;
}

a.g7-hero__tag:hover {
	border-color: #000;
	color: #000;
}

/* Pale swatches need an outline or they vanish against the white card. */
.g7-hero__attr--color .g7-hero__opt {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

/* --- attributes --------------------------------------------------------- */

.g7-hero__selects {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.g7-hero__attr { margin-top: 24px; }

.g7-hero__attr-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.g7-hero__attr-label {
	font-weight: 800;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.g7-hero__attr-value {
	font-weight: 600;
	color: #525252;
	text-transform: none;
	letter-spacing: normal;
}

.g7-hero__sizeguide {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: var(--g7-body);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--g7-mute);
	text-decoration: underline;
}

.g7-hero__sizeguide:hover { color: #000; }

.g7-hero__options { margin-top: 12px; }

.g7-hero__attr--color .g7-hero__options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.g7-hero__attr--color .g7-hero__opt {
	width: 34px;
	height: 34px;
	padding: 0;
	background: var(--g7-swatch, #d4d4d4);
	border: 1px solid rgba(0, 0, 0, .16);
	cursor: pointer;
	transition: box-shadow .15s ease;
}

.g7-hero__attr--color .g7-hero__opt.is-active {
	box-shadow: 0 0 0 1px #fff inset, 0 0 0 1px #000;
}

.g7-hero__attr--pill .g7-hero__options {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
}

.g7-hero__attr--pill .g7-hero__opt {
	padding: 12px 4px;
	background: #fff;
	color: var(--g7-ink);
	border: 1px solid var(--g7-line);
	cursor: pointer;
	font-family: var(--g7-body);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .06em;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.g7-hero__attr--pill .g7-hero__opt:hover { border-color: #000; }

.g7-hero__attr--pill .g7-hero__opt.is-active {
	background: #000;
	color: #fff;
	border-color: #000;
}

.g7-hero__opt:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.g7-hero__opt.is-unavailable {
	opacity: .32;
	cursor: not-allowed;
	position: relative;
}

.g7-hero__note {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--g7-mute);
}

/* --- price + cta -------------------------------------------------------- */

.g7-hero__pricerow {
	margin-top: 20px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
}

.g7-hero__price,
.g7-hero__price .amount,
.g7-hero__price bdi {
	font-family: var(--g7-display);
	font-stretch: 125%;
	font-weight: 900;
	font-size: 26px;
	color: var(--g7-ink);
}

.g7-hero__price del { opacity: .4; font-size: 18px; }
.g7-hero__price ins { text-decoration: none; }

.g7-hero__lead {
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--g7-mute);
	white-space: nowrap;
}

.g7-hero__delivery {
	margin-top: 14px;
	font-weight: 600;
	font-size: 12px;
	color: #525252;
}

.g7-hero .g7-hero__cta {
	margin-top: 8px;
	width: 100%;
	display: block;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	font-family: var(--g7-body);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	padding: 19px 20px;
	line-height: 1;
	transition: background .2s ease;
}

.g7-hero .g7-hero__cta:hover { background: #171717; }
.g7-hero .g7-hero__cta:disabled { opacity: .35; cursor: not-allowed; }
.g7-hero .g7-hero__cta .amount,
.g7-hero .g7-hero__cta bdi { color: inherit; font: inherit; }

.g7-hero__pay {
	margin-top: 14px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
	font-weight: 600;
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--g7-mute);
}

/* Woo bits we don't want in this layout */
.g7-hero .single_variation_wrap .woocommerce-variation-price,
.g7-hero .single_variation_wrap .woocommerce-variation-description,
.g7-hero .reset_variations {
	display: none !important;
}

.g7-hero .woocommerce-variation-availability p {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--g7-mute);
}

/* --- size chart modal --------------------------------------------------- */

.g7-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: var(--g7-body);
}

.g7-modal[hidden] { display: none; }

.g7-modal__veil {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, .62);
}

.g7-modal__panel {
	position: relative;
	background: #fff;
	color: var(--g7-ink);
	width: 100%;
	max-width: 860px;
	max-height: 88vh;
	overflow-y: auto;
	padding: 40px 40px 34px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.g7-modal__x {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: var(--g7-mute);
	cursor: pointer;
	padding: 6px;
}

.g7-modal__x:hover { color: #000; }

.g7-modal__title {
	margin: 0;
	font-family: var(--g7-display);
	font-stretch: 125%;
	font-weight: 900;
	font-size: clamp(20px, 2.4vw, 28px);
	line-height: 1.1;
	text-transform: uppercase;
}

.g7-modal__intro {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--g7-ink-2);
	max-width: 62ch;
}

.g7-modal__body {
	margin-top: 24px;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 28px;
	align-items: start;
}

.g7-modal__figure {
	margin: 0;
	color: var(--g7-ink);
}

.g7-diagram {
	width: 100%;
	height: auto;
	display: block;
}

.g7-diagram__labels text {
	font-family: var(--g7-body);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.g7-diagram__marks { opacity: .85; }

.g7-modal__figure figcaption {
	margin-top: 10px;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--g7-mute);
	text-align: center;
}

.g7-modal__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--g7-line);
	padding-bottom: 10px;
}

.g7-modal__tabs { display: flex; gap: 20px; }

.g7-modal__tab {
	background: none;
	border: none;
	padding: 4px 0;
	cursor: pointer;
	font-family: var(--g7-body);
	font-weight: 800;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--g7-mute);
	border-bottom: 2px solid transparent;
}

.g7-modal__tab.is-active {
	color: var(--g7-ink);
	border-bottom-color: #000;
}

.g7-modal__units {
	display: inline-flex;
	border: 1px solid var(--g7-line);
}

.g7-modal__units[hidden] { display: none; }

.g7-modal__unit {
	background: #fff;
	border: none;
	cursor: pointer;
	padding: 7px 12px;
	font-family: var(--g7-body);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--g7-mute);
}

.g7-modal__unit.is-active { background: #000; color: #fff; }

.g7-modal__scroll {
	margin-top: 4px;
	overflow-x: auto;
}

.g7-modal__scroll[hidden] { display: none; }

.g7-sizes {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.g7-sizes th,
.g7-sizes td {
	padding: 12px 10px;
	text-align: left;
	border-bottom: 1px solid var(--g7-line);
	white-space: nowrap;
}

.g7-sizes thead th {
	font-weight: 800;
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--g7-mute);
	border-bottom-color: #000;
}

.g7-sizes tbody th {
	font-family: var(--g7-display);
	font-stretch: 125%;
	font-weight: 900;
	font-size: 14px;
}

.g7-sizes tbody tr.is-selected {
	background: #f7f7f7;
	box-shadow: inset 3px 0 0 #000;
}

.g7-modal__sub {
	margin: 30px 0 0;
	font-weight: 800;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.g7-modal__list {
	margin: 12px 0 0;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--g7-ink-2);
	max-width: 66ch;
}

.g7-modal__note {
	margin: 20px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--g7-line);
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--g7-mute);
	max-width: 100%;
}

body.g7-modal-open { overflow: hidden; }

.g7-hero__excerpt p { margin: 0 0 .6em; }
.g7-hero__excerpt p:last-child { margin-bottom: 0; }

.g7-hero .g7-hero__panel {
	background-color: var( --g7-panel-bg, #efece7 );
	transition: background-color .35s ease;
	overflow: hidden;
}
 
.g7-hero .g7-hero__panel > .g7-hero__img,
.g7-hero .g7-hero__panel img.g7-hero__img {
	width: 100%;
	height: 100%;
	object-fit: contain;   /* was cover — this is the no-crop switch */
	object-position: center;
	display: block;
}
 
/* Short description inside the card */
.g7-hero__excerpt {
	margin: 16px 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #4a4a4a;
	max-width: 44ch;
 
	/* stop a long description pushing the CTA out of a short card */
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
 
.g7-hero__excerpt p { margin: 0 0 .6em; }
.g7-hero__excerpt p:last-child { margin-bottom: 0; }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 1400px) {
	/* The card sits flush to the viewport edge once the max-width is gone,
	   so give the row its gutter back. */
	.g7-hero__inner { padding: 56px var(--g7-gutter); }
}

@media (max-width: 1200px) {
	.g7-hero { --g7-panels: var(--g7-panels-md, 2); }
}

@media (max-width: 900px) {
	.g7-hero {
		--g7-panels: var(--g7-panels-sm, 1);
		--g7-gutter: 20px;
		min-height: 0;
		background: #fff;
	}

	.g7-hero__stage {
		position: relative;
		inset: auto;
		height: 62vh;
		min-height: 380px;
	}

	/* Two-up on a phone: each panel is half as wide, so shorten the stage
	   to keep a sane aspect ratio rather than two tall slivers. */
	.g7-hero[data-panels-sm="2"] .g7-hero__stage {
		height: 46vh;
		min-height: 260px;
	}

	.g7-hero__nav {
		top: 30%;
		width: 40px;
		height: 40px;
	}

	.g7-hero__nav--prev { left: 14px; }
	.g7-hero__nav--next { left: 62px; }

	.g7-hero__pager {
		position: static;
		padding: 14px var(--g7-gutter) 0;
	}

	.g7-hero__counter { color: var(--g7-mute); }
	.g7-hero__dot { background: var(--g7-line); }
	.g7-hero__dot.is-active { background: #000; }

	.g7-hero__inner {
		padding: 0 var(--g7-gutter) 40px;
		justify-content: stretch;
	}

	.g7-hero__card {
		width: 100%;
		padding: 28px 0 0;
	}

	.g7-modal__body {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.g7-modal__figure {
		max-width: 200px;
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.g7-modal {
		padding: 0;
		align-items: flex-end;
	}

	.g7-modal__panel {
		max-height: 92vh;
		padding: 32px 20px 26px;
	}
}

@media (max-width: 480px) {
	.g7-hero__attr--pill .g7-hero__options { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.g7-hero__track { transition: none; }
}