/* ==========================================================================
   V20 — product-single.css
   Single product (/product/<slug>): sticky gallery + summary + specs accordion
   + "Andere V20 bikes" grid. Cloned from v20.nl details page.
   ========================================================================== */

.product-single {
	padding-block: 3rem;
	overflow: hidden;
}

/* Mobile: drop the vertical padding and allow overflow to show. */
@media (max-width: 768px) {
	.product-single {
		padding-block: 0;
		overflow: visible;
	}
}

/* ---- Breadcrumb ---- */
.pd-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	font-size: .9rem;
}

.pd-breadcrumb li {
	display: flex;
	align-items: center;
	color: #9ca3af;
}

.pd-breadcrumb li + li::before {
	content: "/";
	margin-right: .5rem;
	color: #6c757d;
}

.pd-breadcrumb a {
	color: #9ca3af;
	text-decoration: none;
}

.pd-breadcrumb a:hover {
	color: #fff;
}

.pd-breadcrumb .is-active {
	color: #fff;
}

/* ---- Layout ---- */
.pd-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.pd-gallery__main {
	position: relative;
	margin-bottom: 1rem;
	aspect-ratio: 4 / 3;   /* fixed frame prevents layout shift on swap */
	border: 1px solid #495057;
	border-radius: 1rem;
	overflow: hidden;
	background: #fff;
}

@media (max-width: 768px) {
	.pd-gallery__main,
	#pd-main-img {
		overflow: visible;
	}
}

/* ---- Lightbox trigger (desktop only, opt-in) ---- */
.pd-gallery__zoom {
	position: absolute;
	top: .75rem;
	right: .75rem;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: #fff;
	background: rgba(0, 0, 0, .55);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 8px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.pd-gallery__zoom svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.pd-gallery__zoom:hover {
	color: #000;
	background: var(--v20-neon);
}

@media (min-width: 992px) {
	.pd-gallery__zoom {
		display: inline-flex;
	}
}

/* ---- Lightbox overlay ---- */
.pd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5vh 7vw;
	background: rgba(0, 0, 0, .92);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}

.pd-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.pd-lightbox__img {
	max-width: 100%;
	max-height: 82vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.pd-lightbox__close,
.pd-lightbox__nav {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: #fff;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.pd-lightbox__close:hover,
.pd-lightbox__nav:hover {
	color: #000;
	background: var(--v20-neon);
}

.pd-lightbox__close svg,
.pd-lightbox__nav svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.pd-lightbox__close {
	top: 3vh;
	right: 4vw;
}

.pd-lightbox__nav--prev {
	left: 3vw;
}

.pd-lightbox__nav--next {
	right: 3vw;
}

.pd-lightbox__counter {
	position: absolute;
	bottom: 3vh;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .8);
	font-size: .9rem;
	letter-spacing: 1px;
}

.pd-gallery__main img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(0.75);
	overflow: visible;
	transition: opacity .3s ease-in-out, transform .5s ease;
	opacity: 1;
}

.pd-gallery__main img.is-fading {
	opacity: 0;
	transform: scale(1.02);
}

.pd-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .5rem;
}

.pd-thumb {
	padding: 0;
	background: #000;
	border: 2px solid transparent;
	border-radius: .5rem;
	overflow: hidden;
	cursor: pointer;
	transition: border-color .2s ease, opacity .2s ease;
}

.pd-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	opacity: .7;
	transition: opacity .2s ease;
}

.pd-thumb:hover img {
	opacity: 1;
}

.pd-thumb.is-active {
	border-color: var(--v20-neon);
}

.pd-thumb.is-active img {
	opacity: 1;
}

/* ==========================================================================
   Summary
   ========================================================================== */
.pd-title {
	margin: 0 0 .75rem;
	color: #fff;
	font-weight: 700;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.15;
}

.pd-badges {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.5rem;
}

.pd-badge {
	display: inline-flex;
	align-items: center;
	padding: .4em .7em;
	font-size: .8rem;
	font-weight: 600;
	border-radius: .375rem;
}

.pd-badge--neon {
	background: var(--v20-neon);
	color: #000;
}

.pd-badge--outline {
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .5);
}

.pd-lead {
	margin: 0 0 1.5rem;
	color: #9ca3af;
	font-size: 1.1rem;
}

.pd-price {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	margin: 1.5rem 0;
}

.pd-price__amount {
	color: #fff;
	font-size: 2rem;
	font-weight: 700;
}

.pd-price__amount .amount {
	color: #fff;
}

.pd-price__tax {
	color: #9ca3af;
	font-size: .95rem;
}

/* ---- Form / buttons ---- */
.pd-form {
	display: grid;
	gap: 1rem;
	margin: 0;
}

.pd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	width: 100%;
	padding: .65rem 1rem;
	font-weight: 600;
	border-radius: .5rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pd-btn .v20-ico {
	width: 1.05em;
	height: 1.05em;
	fill: currentColor;
}

.pd-btn--lg {
	padding: .9rem 1rem;
	font-size: 1.05rem;
}

.pd-btn--outline {
	color: #adb5bd;
	background: transparent;
	border-color: #6c757d;
}

.pd-btn--outline:hover {
	color: #fff;
	border-color: #adb5bd;
}

.pd-btn--neon {
	color: #000;
	background: var(--v20-neon);
	border-color: var(--v20-neon);
}

.pd-btn--neon:hover {
	background: #fff;
	border-color: #fff;
	box-shadow: 0 0 15px var(--v20-neon);
}

.pd-btn--dark {
	color: #fff;
	background: var(--v20-dark);
	border-color: #6c757d;
}

.pd-btn--dark:hover {
	border-color: #adb5bd;
}

/* Wishlist active state — neon heart + border. */
.pd-btn--dark.is-active {
	color: var(--v20-neon);
	border-color: var(--v20-neon);
}

/* Assembly toggle */
.pd-assembly__btn {
	justify-content: space-between;
}

/* Keep the icon inline (to the left of the label), not stacked on top —
   the global `svg { display:block }` reset would otherwise break it here. */
.pd-assembly__btn > span:first-child {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}

.pd-assembly__status {
	padding: .3em .6em;
	font-size: .75rem;
	font-weight: 600;
	color: #fff;
	background: #000;
	border-radius: .375rem;
}

.pd-assembly__btn.is-active {
	color: #fff;
	border-color: var(--v20-neon);
}

.pd-assembly__btn.is-active .pd-assembly__status {
	color: #000;
	background: var(--v20-neon);
}

/* ==========================================================================
   Specs accordion
   ========================================================================== */
.pd-accordion {
	margin-top: 2.5rem;
	border-top: 1px solid rgba(108, 117, 125, .5);
}

.pd-accordion__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1rem 0;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.pd-accordion__header .v20-ico {
	width: 1rem;
	height: 1rem;
	fill: currentColor;
	transition: transform .3s ease;
}

.pd-accordion__header.is-open .v20-ico {
	transform: rotate(180deg);
}

.pd-accordion__body {
	overflow: hidden;
	transition: max-height .3s ease;
}

.pd-specs {
	margin: 0;
	padding: 0 0 1rem;
	list-style: none;
	color: #9ca3af;
}

.pd-specs li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .6rem 0;
	border-bottom: 1px solid rgba(108, 117, 125, .25);
}

.pd-specs__value {
	color: #fff;
	text-align: right;
}

/* ==========================================================================
   Andere V20 bikes
   ========================================================================== */
.pd-related {
	margin-top: 4rem;
	padding-block: 3rem;
	background: #0b0c0f;
}

/* Title now lives inside .arrivals-grid; span the full width on mobile/tablet. */
.pd-related__head {
	grid-column: 1 / -1;
	margin: 0;
	text-align: center;
}

.pd-related__head h2 {
	margin: 0;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

/* Title sits on its own full-width row (grid-column 1 / -1 above), then the
   related products flow as a normal 4-up grid — 8 products => 2 rows of 4. */
.pd-related__head {
	margin-bottom: .5rem;
}

/* Centered divider under the "Andere V20 bikes" title (matches other sections). */
.pd-related__head .section-divider {
	width: 176px;   /* double the default 88px */
	margin: .75rem auto 0;
}

.pd-related__head h2 span {
	color: rgba(255, 255, 255, .5);
}

/* 4-up related grid (col-md-6 col-xl-3). */
.product-grid--4 {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.pd-grid {
		grid-template-columns: 7fr 5fr;   /* col-lg-7 / col-lg-5 */
		align-items: start;
	}

	.pd-gallery__sticky {
		position: sticky;
		top: 100px;
	}

	.product-grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	.product-grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}
