/* A19Customs-inspired Product Detail Page in HamzaBG Mods Cobalt Blue Theme (Light & Dark). */

.hbg-pd-page {
	--pd-accent: #3b82f6;
	--pd-accent-hi: #2563eb;
	--pd-accent-soft: rgba(59, 130, 246, 0.14);
	--pd-accent-line: rgba(59, 130, 246, 0.42);
	--pd-bg: #f6f8fc;
	--pd-card: #ffffff;
	--pd-soft: #f1f5f9;
	--pd-ink: #0f172a;
	--pd-muted: #475569;
	--pd-faint: #64748b;
	--pd-line: rgba(15, 23, 42, 0.1);
	--pd-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	padding: calc(var(--sa-nav-h, 76px) + 28px) 24px 80px;
	background: var(--pd-bg);
	color: var(--pd-ink);
}

body.dark .hbg-pd-page {
	--pd-bg: #070b14;
	--pd-card: #0c1220;
	--pd-soft: #111a2e;
	--pd-ink: #f8fafc;
	--pd-muted: #94a3b8;
	--pd-faint: #64748b;
	--pd-line: rgba(255, 255, 255, 0.08);
	background:
		radial-gradient(ellipse 75% 45% at 50% 0%, rgba(59, 130, 246, 0.1), transparent 65%),
		var(--pd-bg);
}

.hbg-pd-wrap {
	max-width: 1220px;
	margin: 0 auto;
}

/* Breadcrumbs */
.hbg-pd-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--pd-faint);
}

.hbg-pd-crumbs a {
	color: var(--pd-muted);
	text-decoration: none;
}

.hbg-pd-crumbs a:hover {
	color: var(--pd-accent);
}

.hbg-pd-crumbs li + li::before {
	content: "/";
	margin-right: 8px;
	opacity: 0.45;
}

/* Two-column asymmetric grid (A19Customs split) */
.hbg-pd-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.88fr);
	gap: 36px;
	align-items: start;
}

.hbg-pd-left {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 34px;
}

.hbg-pd-right {
	min-width: 0;
}

/* Gallery stage */
.hbg-pd-stage-wrap {
	position: relative;
}

.hbg-pd-stage {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--pd-line);
	background: #090d16;
	cursor: zoom-in;
	box-shadow: 0 24px 60px -32px rgba(2, 6, 23, 0.65);
}

.hbg-pd-stage img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.hbg-pd-stage:hover img {
	transform: scale(1.015);
}


.hbg-pd-chip {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 10px;
	border-radius: 6px;
	background: var(--pd-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hbg-pd-zoom-hint {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 6px;
	background: rgba(7, 11, 20, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #f8fafc;
	font-family: var(--pd-mono);
	font-size: 11px;
}

.hbg-pd-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(7, 11, 20, 0.74);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hbg-pd-arrow:hover {
	background: var(--pd-accent);
	border-color: var(--pd-accent);
}

.hbg-pd-arrow--prev { left: 18px; }
.hbg-pd-arrow--next { right: 18px; }

.hbg-pd-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.hbg-pd-thumb {
	width: 100%;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: #0b101b;
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.18s ease, border-color 0.18s ease;
}

.hbg-pd-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.hbg-pd-thumb:hover { opacity: 0.95; }

.hbg-pd-thumb.is-active {
	opacity: 1;
	border-color: var(--pd-accent);
	box-shadow: 0 0 0 3px var(--pd-accent-soft);
}

/* Features & Overview sections */
.hbg-pd-section {
	padding: 24px 26px;
	border-radius: 14px;
	border: 1px solid var(--pd-line);
	background: var(--pd-card);
}

.hbg-pd-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--pd-line);
}

.hbg-pd-sec-head h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--pd-ink);
}

.hbg-pd-sec-head span {
	font-family: var(--pd-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--pd-faint);
}

.hbg-pd-feats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hbg-pd-feats li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--pd-line);
	font-size: 14.5px;
	font-weight: 500;
	color: var(--pd-ink);
}

.hbg-pd-feats li svg {
	flex: none;
	color: var(--pd-accent);
}

.hbg-pd-about h3 {
	margin: 18px 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: var(--pd-ink);
}

.hbg-pd-desc {
	margin: 0 0 12px;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--pd-muted);
	word-break: break-word;
}

.hbg-pd-support-line {
	margin: 14px 0 0;
	font-size: 13.5px;
	color: var(--pd-faint);
}

.hbg-pd-support-line a {
	color: var(--pd-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Right Column Purchase Card + Vehicle Specifications */
.hbg-pd-buycard {
	padding: 26px;
	border-radius: 16px;
	border: 1px solid var(--pd-line);
	background: var(--pd-card);
	box-shadow: 0 22px 54px -34px rgba(2, 6, 23, 0.45);
}

.hbg-pd-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--pd-accent);
}

body.dark .hbg-pd-brand-ico {
	filter: brightness(0) invert(1);
	opacity: 0.92;
}

.hbg-pd-title {
	margin: 0;
	font-size: clamp(26px, 2.8vw, 34px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--pd-ink);
}

.hbg-pd-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.hbg-pd-tag {
	padding: 4px 11px;
	border-radius: 9999px;
	border: 1px solid var(--pd-line);
	background: var(--pd-soft);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--pd-muted);
}

.hbg-pd-tag.is-accent {
	background: var(--pd-accent);
	border-color: var(--pd-accent);
	color: #ffffff;
}

.hbg-pd-tag.is-out {
	background: rgba(239, 68, 68, 0.16);
	border-color: rgba(239, 68, 68, 0.45);
	color: #ef4444;
}

.hbg-pd-tag--views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.hbg-pd-tag--views svg {
	flex: none;
	opacity: 0.85;
}

.hbg-pd-pricebar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 18px 0;
	padding: 14px 0;
	border-top: 1px solid var(--pd-line);
	border-bottom: 1px solid var(--pd-line);
}

.hbg-pd-pricebar strong {
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--pd-ink);
}

.hbg-pd-pricebar span {
	font-family: var(--pd-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--pd-faint);
}

.hbg-pd-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hbg-pd-act-row {
	display: flex;
	gap: 10px;
}

.hbg-pd-cta {
	flex: 1 1 auto;
	height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #ffffff;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 26px -10px rgba(59, 130, 246, 0.65);
	transition: transform 0.15s ease, filter 0.15s ease;
}

.hbg-pd-cta:hover:not(:disabled) {
	color: #ffffff;
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.hbg-pd-cta.is-disabled {
	background: var(--pd-soft);
	color: var(--pd-faint);
	box-shadow: none;
	cursor: not-allowed;
}

.hbg-pd-sq {
	width: 50px;
	height: 50px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 8px;
	border: 1px solid var(--pd-line);
	background: var(--pd-soft);
	color: var(--pd-ink);
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.hbg-pd-sq:hover,
.hbg-pd-sq.is-copied {
	border-color: var(--pd-accent);
	color: var(--pd-accent);
	background: var(--pd-accent-soft);
}

.hbg-pd-sec-btn {
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid var(--pd-line);
	background: transparent;
	color: var(--pd-ink);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hbg-pd-sec-btn:hover {
	border-color: var(--pd-accent);
	background: var(--pd-accent-soft);
	color: var(--pd-accent);
}

.hbg-pd-fine {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: var(--pd-faint);
}

/* Vehicle Specifications */
.hbg-pd-sheet-wrap {
	margin-top: 24px;
}

.hbg-pd-sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--pd-line);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--pd-ink);
}

.hbg-pd-sheet {
	margin: 0;
}

.hbg-pd-sheet > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--pd-line);
	font-size: 13.5px;
}

.hbg-pd-sheet dt {
	font-size: 13px;
	letter-spacing: 0.01em;
	color: var(--pd-faint);
	font-weight: 500;
}

.hbg-pd-sheet dd {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pd-ink);
	text-align: right;
}

.hbg-pd-copy-mini {
	padding: 2px 7px;
	border-radius: 4px;
	border: 1px solid var(--pd-accent-line);
	background: var(--pd-accent-soft);
	color: var(--pd-accent);
	font-family: var(--pd-mono);
	font-size: 10.5px;
	font-weight: 600;
	cursor: pointer;
}

.hbg-pd-note {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 18px;
	padding: 12px 13px;
	border-radius: 10px;
	border: 1px solid var(--pd-line);
	background: var(--pd-soft);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--pd-muted);
}

.hbg-pd-note svg {
	flex: none;
	margin-top: 2px;
	color: var(--pd-accent);
}

.hbg-pd-note a {
	color: var(--pd-accent);
	font-weight: 600;
	text-decoration: underline;
}

/* More Like This */
.hbg-pd-more {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--pd-line);
}

.hbg-pd-more-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.hbg-pd-more-head h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--pd-ink);
}

.hbg-pd-more-head a {
	font-family: var(--pd-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--pd-accent);
	text-decoration: none;
}

.hbg-pd-more-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hbg-pd-mcard {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--pd-line);
	background: var(--pd-card);
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hbg-pd-mcard:hover {
	border-color: var(--pd-accent-line);
	box-shadow: 0 18px 40px -24px rgba(59, 130, 246, 0.35);
}

.hbg-pd-mcard-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.hbg-pd-mcard-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 15px 16px;
	flex: 1 1 auto;
}

.hbg-pd-mcard-eye {
	font-family: var(--pd-mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	color: var(--pd-faint);
}

.hbg-pd-mcard-body strong {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--pd-ink);
}

.hbg-pd-mcard-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 10px;
}

.hbg-pd-mcard-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--pd-ink);
}

.hbg-pd-mcard-go {
	font-family: var(--pd-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--pd-accent);
}

/* Fullscreen Lightbox */
.hbg-pd-lb {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: rgba(4, 7, 15, 0.92);
	backdrop-filter: blur(10px);
}

.hbg-pd-lb[hidden] {
	display: none;
}

.hbg-pd-lb-img {
	max-width: 90vw;
	max-height: 84vh;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

.hbg-pd-lb-close {
	position: fixed;
	top: 20px;
	right: 24px;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(15, 23, 42, 0.8);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.hbg-pd-lb-nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(15, 23, 42, 0.8);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.hbg-pd-lb-nav--prev { left: 22px; }
.hbg-pd-lb-nav--next { right: 22px; }

.hbg-pd-lb-count {
	position: fixed;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #f8fafc;
	font-family: var(--pd-mono);
	font-size: 12px;
}

/* Footer safe clearance for fixed bottom-right buttons */
@media (min-width: 769px) {
	.sh-footer-bottom,
	footer .sh-foot-bottom,
	.hbg-footer-bar {
		padding-right: 170px;
	}
}

@media (max-width: 960px) {
	.hbg-pd-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.hbg-pd-more-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.hbg-pd-page {
		padding: calc(var(--sa-nav-h, 70px) + 18px) 16px 64px;
	}
	.hbg-pd-feats,
	.hbg-pd-more-grid {
		grid-template-columns: 1fr;
	}
	.hbg-pd-buycard,
	.hbg-pd-section {
		padding: 18px;
	}
}

.hbg-pd-video-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--pd-line);
	background: #05080f;
}

.hbg-pd-video-wrap iframe,
.hbg-pd-video-wrap video {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
	object-fit: contain;
}
