/**
 * Single product page.
 *
 * Typography defers to Astra's customizer / global styles. Element-specific
 * sizes are only set where the visual hierarchy demands it (UI chips,
 * badges, specs labels, etc.).
 */

.yeg-single-product { background: #fff; color: inherit; }
.yeg-single-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 0 60px;
}
@media (max-width: 1280px) {
	.yeg-single-container { padding: 0 16px 60px; }
}

/* Override Astra's content container width so the page content aligns to
   exactly 1280px instead of inheriting Astra's wider default. */
body.single-quality-product .site-content .ast-container {
	max-width: 1280px;
	padding-left: 0;
	padding-right: 0;
}
@media (max-width: 1280px) {
	body.single-quality-product .site-content .ast-container {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* Breadcrumb */
.yeg-single-container > .yeg-breadcrumb {
	font-size: 14px;
	color: #6b6b6b;
	margin: 20px 0 40px;
}
.yeg-single-container > .yeg-breadcrumb a { color: inherit; text-decoration: none; }
.yeg-single-container > .yeg-breadcrumb a:hover { text-decoration: underline; }
.yeg-single-container > .yeg-breadcrumb [aria-current="page"] { color: #111; font-weight: 500; }
.yeg-single-container > .yeg-breadcrumb .yeg-breadcrumb-sep { margin: 0 8px; color: #c0c0c0; }

/* Hero */
.yeg-single-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 60px;
	align-items: start;
	margin-bottom: 48px;
}

/* Gallery — square at the natural source resolution so the image stays sharp. */
.yeg-single-hero-gallery {
	display: flex;
	flex-direction: column;
}
.yeg-single-gallery {
	display: flex;
	flex-direction: column;
}
.yeg-single-gallery-main {
	aspect-ratio: 1;
	background: #f4f4f4;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #ececec;
	padding: 0;
	margin: 0;
	cursor: zoom-in;
	display: block;
	width: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.yeg-single-gallery-main:hover {
	border-color: #d6d6d6;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.yeg-single-gallery-main:hover img {
	transform: scale(1.03);
}
.yeg-single-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.yeg-single-gallery-main.is-placeholder {
	background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
}
.yeg-single-gallery-thumbs {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 8px;
}
.yeg-single-gallery-thumb {
	width: 100%;
	aspect-ratio: 1;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	padding: 0;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.yeg-single-gallery-thumb:hover,
.yeg-single-gallery-thumb.is-active {
	border-color: #1a1a1a;
}
.yeg-single-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Lightbox */
.yeg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 15, 15, 0.92);
	padding: 32px;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.yeg-lightbox.is-visible { opacity: 1; }
.yeg-lightbox-img {
	max-width: min(96vw, 1600px);
	max-height: 88vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.yeg-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease;
}
.yeg-lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
body.yeg-lightbox-open { overflow: hidden; }

/* Right column info */
.yeg-single-hero-info { display: flex; flex-direction: column; gap: 20px; }

.yeg-single-meta-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}
.yeg-single-brand,
.yeg-single-collection {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	text-decoration: none;
}
.yeg-single-brand {
	background: #1a1a1a;
	color: #fff;
}
.yeg-single-collection {
	background: #f0f0f0;
	color: #444;
}
.yeg-single-brand:hover { background: #333; }
.yeg-single-collection:hover { background: #e5e5e5; color: #222; }

.yeg-single-title { margin: 0; }
.yeg-single-subtitle {
	font-size: 16px;
	color: #555;
	margin: 0;
	line-height: 1.5;
}
.yeg-single-sku {
	font-size: 13px;
	color: #888;
	margin: 0;
}
.yeg-single-sku-label { font-weight: 600; color: #555; }

.yeg-single-stock-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #1d7e3a;
	background: #ebf7ee;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	margin: 8px 0 0;
	align-self: flex-start;
}

/* CTA group — primary on its own row, secondaries side by side below. */
.yeg-single-cta-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 12px;
}
.yeg-single-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	border: 1px solid transparent;
	white-space: nowrap;
	min-width: 0;
}
.yeg-single-cta-primary {
	background: #1f5e2c;
	color: #fff;
	grid-column: 1 / -1;
}
.yeg-single-cta-primary:hover { background: #174822; color: #fff; }
.yeg-single-cta-secondary {
	background: #fff;
	color: #1a1a1a;
	border-color: #d6d6d6;
}
.yeg-single-cta-secondary:hover { border-color: #1a1a1a; }

/* Trust bullets */
.yeg-single-trust {
	list-style: none;
	padding: 16px 0 0;
	margin: 8px 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-top: 1px solid #ececec;
}
.yeg-single-trust li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #333;
}
.yeg-single-trust li svg { color: #1d7e3a; flex-shrink: 0; }

/* Sections */
.yeg-single-section { margin-bottom: 40px; }
.yeg-single-section-title {
	margin: 0 0 16px;
}

/* CTA divider between hero and content */
.yeg-single-cta-divider {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
	padding: 24px;
	background: #f7faf7;
	border: 1px solid #e1ece2;
	border-radius: 12px;
}
.yeg-single-cta-divider-heading { margin: 0 0 4px; }
.yeg-single-cta-divider-sub { margin: 0; color: #444; font-size: 15px; }
.yeg-single-cta-divider-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 768px) {
	.yeg-single-cta-divider { grid-template-columns: 1fr; }
	.yeg-single-cta-divider-actions .yeg-single-cta { flex: 1 1 0; }
}

/* Color variants (collection) swatches in the hero info column */
.yeg-single-color-variants { margin: 0; }
.yeg-single-color-variants-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6b6b6b;
	margin: 0 0 10px;
}
.yeg-single-color-variant-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
	gap: 8px;
}
.yeg-single-color-variant {
	display: block;
	aspect-ratio: 1;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.yeg-single-color-variant:hover {
	border-color: #1a1a1a;
	transform: translateY(-1px);
}
.yeg-single-color-variant.is-current {
	border-color: #1a1a1a;
	border-width: 2px;
}
.yeg-single-color-variant img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.yeg-single-color-variant-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
}

/* Key specs strip above the full specs table */
.yeg-single-key-specs {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}
.yeg-single-key-spec {
	background: #fafafa;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.yeg-single-key-spec-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b6b6b;
}
.yeg-single-key-spec-value {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
}

/* FAQ accordion list */
.yeg-single-faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid #ececec; }
.yeg-single-faq-item { border-bottom: 1px solid #ececec; padding: 4px 0; }
.yeg-single-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.yeg-single-faq-question::-webkit-details-marker { display: none; }
.yeg-single-faq-toggle {
	width: 16px;
	height: 16px;
	position: relative;
	flex-shrink: 0;
}
.yeg-single-faq-toggle::before,
.yeg-single-faq-toggle::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: #1a1a1a;
}
.yeg-single-faq-toggle::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.yeg-single-faq-toggle::after  { width: 2px; height: 12px; transform: translate(-50%, -50%); transition: transform 0.15s ease; }
.yeg-single-faq-item[open] .yeg-single-faq-toggle::after { transform: translate(-50%, -50%) scaleY(0); }
.yeg-single-faq-answer { padding: 0 0 16px; color: #444; line-height: 1.6; }
.yeg-single-faq-answer p { margin: 0 0 10px; }
.yeg-single-faq-answer p:last-child { margin-bottom: 0; }

/* Showroom block */
.yeg-single-showroom {
	background: #fafafa;
	border: 1px solid #ececec;
	border-radius: 12px;
	overflow: hidden;
}
.yeg-single-showroom-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 0;
}
.yeg-single-showroom-info { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.yeg-single-showroom-info .yeg-single-section-title { margin: 0; }
.yeg-single-showroom-lead { margin: 0; color: #444; line-height: 1.55; font-size: 15px; }
.yeg-single-showroom-detail strong {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6b6b6b;
	margin-bottom: 6px;
}
.yeg-single-showroom-detail address {
	font-style: normal;
	color: #1a1a1a;
	font-size: 15px;
	line-height: 1.5;
}
.yeg-single-showroom-hours {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.yeg-single-showroom-hours li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	color: #333;
	font-size: 14px;
}
.yeg-single-showroom-hours li span:first-child { color: #555; }
.yeg-single-showroom-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.yeg-single-showroom-map { min-height: 360px; }
.yeg-single-showroom-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; }
@media (max-width: 768px) {
	.yeg-single-showroom-grid { grid-template-columns: 1fr; }
	.yeg-single-showroom-info { padding: 24px; }
	.yeg-single-showroom-map { min-height: 280px; order: -1; }
	.yeg-single-showroom-map iframe { min-height: 280px; }
}

.yeg-single-description-body {
	max-width: 80ch;
	color: #333;
	line-height: 1.6;
}
.yeg-single-description-body p { margin: 0 0 14px; }
.yeg-single-description-body p:last-child { margin-bottom: 0; }
.yeg-single-description-body ul,
.yeg-single-description-body ol { margin: 0 0 14px 20px; }

/* Local-SEO blurb — flows visually as a continuation of the description. */
.yeg-single-local-blurb {
	max-width: 80ch;
	color: #333;
	line-height: 1.6;
	margin-top: 14px;
}
.yeg-single-local-blurb p { margin: 0; }
.yeg-single-local-blurb a { color: inherit; text-decoration: underline; text-decoration-color: #cdd5cf; text-underline-offset: 3px; }
.yeg-single-local-blurb a:hover { text-decoration-color: #1f5e2c; color: #1f5e2c; }

/* Details row: description + specs on the left (60%), about-brand on the right (40%) */
.yeg-single-details-grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 60px;
	align-items: start;
}
.yeg-single-details-main > * + * { margin-top: 32px; }

/* Specs table — flat, no card. */
.yeg-single-specs-body { padding: 0; }
.yeg-single-specs-group { padding-top: 20px; }
.yeg-single-specs-group:first-child { padding-top: 0; }
.yeg-single-specs-group-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6b6b6b;
	margin: 0 0 10px;
}
.yeg-single-specs-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0;
}
.yeg-single-specs-row { display: contents; }
.yeg-single-specs-row dt,
.yeg-single-specs-row dd {
	font-size: 14px;
	color: #333;
	padding: 8px 12px 8px 0;
	margin: 0;
	border-bottom: 1px solid #ececec;
}
.yeg-single-specs-row dt { font-weight: 500; color: #666; }
.yeg-single-specs-row dd { color: #1a1a1a; }

/* About the brand — flat, no card. */
.yeg-single-brand-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.yeg-single-brand-card .yeg-single-section-title { margin: 0; }
.yeg-single-brand-logo {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 4px 0 4px;
}
.yeg-single-brand-logo img {
	max-width: 280px;
	width: 100%;
	height: auto;
}
.yeg-single-brand-logo img {
	max-width: 100%;
	max-height: 90px;
	object-fit: contain;
}
.yeg-single-brand-description {
	color: #333;
	line-height: 1.6;
}
.yeg-single-brand-description p { margin: 0 0 14px; }
.yeg-single-brand-description p:last-child { margin-bottom: 0; }
.yeg-single-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #1f5e2c;
	text-decoration: none;
	align-self: flex-start;
}
.yeg-single-brand-link:hover { text-decoration: underline; }

/* Related strips */
.yeg-single-related-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.yeg-single-related-head .yeg-single-section-title { margin: 0; }
.yeg-single-related-view-all {
	font-size: 14px;
	font-weight: 600;
	color: #1f5e2c;
	text-decoration: none;
}
.yeg-single-related-view-all:hover { text-decoration: underline; }
.yeg-single-related-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
}

/* Reuse the archive product-card visual on the related strips, since the
   archive CSS isn't loaded on this page. */
.yeg-product-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.yeg-product-card:hover {
	border-color: #d6d6d6;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}
.yeg-product-card-link { display: block; color: inherit; text-decoration: none; }
.yeg-product-card-image {
	position: relative;
	aspect-ratio: 1;
	background: #f4f4f4;
	overflow: hidden;
}
.yeg-product-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.yeg-product-card-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
}
.yeg-product-card-brand-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(26, 26, 26, 0.9);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 5px 10px;
	border-radius: 999px;
	max-width: calc(100% - 20px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 1;
}
.yeg-product-card-body { padding: 14px 14px 18px; }
.yeg-product-card-collection {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 6px;
}
.yeg-product-card-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 4px;
	color: #1a1a1a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.yeg-product-card-subtitle {
	font-size: 13px;
	color: #666;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Tablet & mobile */
@media (max-width: 1024px) {
	.yeg-single-hero { grid-template-columns: 1fr; gap: 32px; }
	.yeg-single-hero-gallery { order: -1; }
	.yeg-single-details-grid { grid-template-columns: 1fr; gap: 32px; }
	.yeg-single-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.yeg-single-container { padding: 0 10px 60px; }
	body.single-quality-product .site-content .ast-container {
		padding-left: 10px;
		padding-right: 10px;
	}
	.yeg-single-section { margin-bottom: 40px; }
	.yeg-single-specs-list { grid-template-columns: 1fr; }
	.yeg-single-specs-row dt,
	.yeg-single-specs-row dd { padding: 6px 0; }
	.yeg-single-specs-row dt { border-bottom: 0; padding-bottom: 0; padding-top: 12px; }
	.yeg-single-specs-row dd { padding-top: 0; }
	.yeg-single-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}
}
