/**
 * Glass product detail page — Figma 1371:671869 (Granville).
 */
.gd-page {
	--gd-pad: clamp(2rem, 5vw, 11.4rem);
}

.gd-page img {
	max-width: 100%;
	height: auto;
}

.gd-section {
	padding: clamp(3rem, 4vw, 5rem) 0 clamp(5rem, 6vw, 7rem);
	background: var(--dph-bg, #f9f7f5);
}

.gd-inner {
	width: 100%;
	max-width: 150rem;
	margin: 0 auto;
	padding: 0 var(--gd-pad);
	box-sizing: border-box;
}

.gd-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	max-width: 150rem;
	margin: 0 auto;
	padding: clamp(2rem, 3vw, 3rem) var(--gd-pad) 0;
	font-family: var(--delco-font-body);
	font-size: 1.4rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a8079;
	box-sizing: border-box;
}

.gd-breadcrumb a { color: #8a8079; text-decoration: none; }
.gd-breadcrumb a:hover { color: #4779b9; }
.gd-breadcrumb__sep { color: #c3bcb4; }
.gd-breadcrumb__current { color: #323c48; font-weight: 600; }

.gd-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: clamp(3rem, 5vw, 9rem);
	align-items: start;
}

/* Gallery — same stage pattern as door product gallery (.dps-gallery__main) */
.gd-gallery { display: flex; flex-direction: column; gap: 1.6rem; }

.gd-gallery__main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: min(56vh, 48rem);
	min-height: 32rem;
	max-height: 48rem;
	padding: 2rem;
	box-sizing: border-box;
	background: #d9d4ce;
	border-radius: 1rem;
	overflow: hidden;
}

.gd-gallery__main img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.gd-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.6rem;
}

.gd-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem;
	border: 1px solid rgba(50, 60, 72, 0.18);
	border-radius: 0.6rem;
	background: #d9d4ce;
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 78 / 99;
	box-sizing: border-box;
	transition: border-color 0.18s ease;
}

.gd-thumb img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
}

.gd-thumb.is-active,
.gd-thumb:hover { border-color: #4779b9; }

/* Panel */
.gd-panel { display: flex; flex-direction: column; gap: 2.4rem; }

.gd-brand {
	margin: 0;
	font-family: var(--delco-font-body);
	font-size: 1.5rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8a8079;
}

.gd-title {
	margin: 0.4rem 0 0;
	font-family: var(--delco-font-display);
	font-size: clamp(3.6rem, 4vw, 5.6rem);
	font-weight: 500;
	line-height: 1.05;
	color: #323c48;
}

.gd-card {
	border: 1px solid rgba(50, 60, 72, 0.16);
	border-radius: 1.2rem;
	padding: clamp(2.2rem, 2.5vw, 3rem);
	background: #fff;
}

/* Spec block */
.gd-spec__label {
	margin: 0 0 1.2rem;
	font-family: var(--delco-font-body);
	font-size: 1.3rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8a8079;
}

.gd-meter { display: flex; align-items: center; gap: 1.4rem; }
.gd-meter__bars { display: flex; gap: 0.5rem; }

.gd-meter__bar {
	width: 4.9rem;
	height: 1.5rem;
	border-radius: 999px;
	background: #e4dfda;
}

.gd-meter__bar.is-on { background: #323c48; }

.gd-meter__value {
	font-family: var(--delco-font-display);
	font-size: 2rem;
	font-weight: 600;
	color: #323c48;
}

.gd-specrow {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-top: 2.4rem;
	padding-top: 2.4rem;
	border-top: 1px solid rgba(50, 60, 72, 0.14);
}

.gd-specrow__col + .gd-specrow__col { border-left: 1px solid rgba(50, 60, 72, 0.14); padding-left: 2rem; }

.gd-specrow__val {
	margin: 0.6rem 0 0;
	font-family: var(--delco-font-display);
	font-size: clamp(1.8rem, 1.5vw, 2.1rem);
	font-weight: 600;
	color: #323c48;
}

.gd-types { margin-top: 2.4rem; padding-top: 2.4rem; border-top: 1px solid rgba(50, 60, 72, 0.14); }

.gd-chips { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; }

.gd-chip {
	padding: 0.9rem 1.8rem;
	border: 1px solid rgba(50, 60, 72, 0.22);
	border-radius: 999px;
	font-family: var(--delco-font-body);
	font-size: 1.45rem;
	color: #323c48;
}

/* Standard sizes */
.gd-sizes__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.gd-sizes__title {
	margin: 0;
	font-family: var(--delco-font-display);
	font-size: clamp(1.8rem, 1.6vw, 2.2rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #323c48;
}

.gd-sizes__custom { font-family: var(--delco-font-body); font-size: 1.45rem; color: #8a8079; }

.gd-sizes__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 1rem;
}

.gd-sizes__grid--photos {
	grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr));
	gap: 1.2rem 1rem;
	align-items: stretch;
}

.gd-size {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 1.2rem;
	min-height: 11.6rem;
	height: 100%;
	padding: 1.6rem 0.6rem;
	border: 1px solid rgba(50, 60, 72, 0.14);
	border-radius: 0.8rem;
	background: #faf8f6;
	box-sizing: border-box;
}

.gd-size--photo {
	justify-content: flex-start;
	min-height: 0;
	padding: 1rem 0.6rem 1.2rem;
	background: #fff;
	gap: 1rem;
}

.gd-size__visual {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	flex: 1 1 auto;
	width: 100%;
}

/* Fixed media frame so short + tall glass drawings share one card height */
.gd-size--photo .gd-size__visual {
	flex: 0 0 auto;
	height: 14rem;
	min-height: 14rem;
	align-items: center;
}

.gd-size__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
}

.gd-size__pane {
	flex: none;
	border: 2px solid #6f7884;
	border-radius: 2px;
	background: linear-gradient(135deg, #eef1f4 0%, #d7dde3 100%);
}

.gd-size__pane:not([style*="width"]) {
	width: 3.4rem;
	height: 7.8rem;
}

.gd-size__label {
	flex: 0 0 auto;
	font-family: var(--delco-font-body);
	font-size: 1.35rem;
	line-height: 1.2;
	text-align: center;
	color: #323c48;
}

/* CTA */
.gd-actions { display: flex; flex-direction: column; gap: 1.4rem; }

.gd-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 2.1rem;
	background: #323c48;
	color: #fff;
	border-radius: var(--delco-radius-button, 1rem);
	font-family: var(--delco-font-body);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s ease;
}

.gd-cta:hover,
.gd-cta:focus,
.gd-cta:focus-visible {
	background: #4779b9;
	color: #fff;
}

.gd-note {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	font-family: var(--delco-font-body);
	font-size: 1.5rem;
	color: #323c48;
}

.gd-note svg { width: 2rem; height: 2rem; color: #4779b9; flex: none; }

/* Shared homepage CTA band — white on door glass product pages */
.gd-page .hf-cta {
	background: #fff;
}

@media (max-width: 960px) {
	.gd-grid { grid-template-columns: 1fr; gap: 3rem; }
	.gd-sizes__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
	body.gd-page {
		--gd-pad: clamp(2.4rem, 6vw, 3.6rem);
		padding-top: var(--delco-nav-offset, var(--delco-header-height, 8.4rem)) !important;
		overflow-x: clip;
	}

	body.gd-page > .header {
		position: fixed !important;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		z-index: 1100;
		animation: none !important;
		background: var(--delco-color-bg-surface, #fff) !important;
		box-shadow: 0 0 1rem rgba(50, 60, 72, 0.08);
	}

	body.gd-page > .header .header_row {
		background: var(--delco-color-bg-surface, #fff);
	}

	body.gd-page > .gd-breadcrumb {
		display: flex;
		flex-wrap: nowrap !important;
		align-items: center;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin: 0;
		padding: 0.35rem var(--gd-pad) 0;
		gap: 0.35rem;
		font-size: 1rem;
		letter-spacing: 0.04em;
		line-height: 1.2;
		overflow: hidden;
		box-sizing: border-box;
	}

	body.gd-page > .gd-breadcrumb a,
	body.gd-page > .gd-breadcrumb__sep,
	body.gd-page > .gd-breadcrumb__current {
		flex-shrink: 0;
		white-space: nowrap !important;
		word-break: normal;
		overflow-wrap: normal;
	}

	body.gd-page > .gd-breadcrumb__sep {
		flex: 0 0 auto;
	}

	body.gd-page > .gd-breadcrumb a {
		flex: 0 1 auto;
		min-width: 0;
		max-width: 34%;
		overflow: hidden;
		text-overflow: ellipsis;
		display: block;
	}

	body.gd-page > .gd-breadcrumb__current {
		flex: 1 1 0;
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		display: block;
	}

	/* Doors › Solstice — hide middle "Glass" crumb + its trailing sep */
	body.gd-page > .gd-breadcrumb a:nth-of-type(2),
	body.gd-page > .gd-breadcrumb a:nth-of-type(2) + .gd-breadcrumb__sep {
		display: none;
	}

	body.gd-page > .gd-breadcrumb a:first-of-type {
		max-width: 32%;
	}

	body.gd-page > .gd-section {
		padding-top: clamp(1.2rem, 3vw, 2rem);
	}

	body.gd-page .gd-inner {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		padding-left: var(--gd-pad);
		padding-right: var(--gd-pad);
		box-sizing: border-box;
	}

	.gd-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
		width: 100%;
		min-width: 0;
	}

	.gd-panel {
		display: contents;
	}

	.gd-panel > div:first-child {
		order: 1;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.gd-gallery {
		order: 2;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		gap: 1rem;
	}

	.gd-panel > .gd-card,
	.gd-panel > .gd-actions {
		order: 3;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
	}

	.gd-card {
		overflow: hidden;
	}

	.gd-gallery__main {
		width: 100%;
		height: min(42vh, 34rem);
		min-height: 24rem;
		max-height: 34rem;
		padding: 1.4rem;
	}

	.gd-gallery__main img {
		width: 100%;
		height: 100%;
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
		object-position: center;
	}

	.gd-gallery__thumbs {
		grid-template-columns: repeat(4, minmax(0, 5.6rem));
		justify-content: flex-start;
		gap: 0.8rem;
		max-width: 100%;
	}

	.gd-thumb {
		aspect-ratio: 1;
		max-width: 5.6rem;
	}

	.gd-title {
		font-size: clamp(2.8rem, 7vw, 3.6rem);
	}

	.gd-specrow {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.gd-specrow__col + .gd-specrow__col {
		border-left: 0;
		padding-left: 0;
		padding-top: 1.6rem;
		margin-top: 1.6rem;
		border-top: 1px solid rgba(50, 60, 72, 0.14);
	}

	.gd-meter {
		flex-wrap: wrap;
		gap: 1rem;
	}

	.gd-meter__bar {
		width: clamp(2.8rem, 14vw, 4.9rem);
	}

	.gd-meter__bars {
		flex-wrap: wrap;
	}

	body.gd-page .wrapper,
	body.gd-page .wrapper_small,
	body.gd-page .wrapper_full {
		padding-left: var(--gd-pad);
		padding-right: var(--gd-pad);
	}
}

@media (max-width: 560px) {
	.gd-sizes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gd-specrow { grid-template-columns: 1fr; }
	.gd-specrow__col + .gd-specrow__col { border-left: 0; padding-left: 0; padding-top: 1.6rem; border-top: 1px solid rgba(50, 60, 72, 0.14); }
}
