/* Glist — pdp.css */

/* ——— Product detail (Jacquemus-like) ——— */
.site-main--pdp {
	padding-top: var(--glist-header-h);
	background: var(--glist-white);
}

.pdp {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.75fr);
	align-items: start;
	min-height: calc(100dvh - var(--glist-header-h));
}

.pdp__gallery {
	position: relative;
	width: 100%;
	background: #f3f3f3;
	overflow: hidden;
}

.pdp__track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.pdp__track::-webkit-scrollbar {
	display: none;
}

.pdp__shot {
	flex: 0 0 100%;
	width: 100%;
	margin: 0;
	line-height: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	background: #f3f3f3;
}

.pdp__shot img {
	width: 100%;
	height: auto;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
}

.pdp__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.72);
	color: var(--glist-ink);
	font-size: 1.65rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.pdp__nav:hover {
	background: rgba(255, 255, 255, 0.95);
}

.pdp__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.pdp__nav--prev {
	left: 0.75rem;
}

.pdp__nav--next {
	right: 0.75rem;
}

.pdp__dots {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	z-index: 2;
	display: flex;
	gap: 0.45rem;
	translate: -50% 0;
}

.pdp__dot {
	width: 0.45rem;
	height: 0.45rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.pdp__dot.is-active {
	background: var(--glist-ink);
	transform: scale(1.15);
}

.pdp__panel {
	position: sticky;
	top: var(--glist-header-h);
	align-self: start;
	max-height: calc(100dvh - var(--glist-header-h));
	overflow: auto;
	padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2.5rem) 3rem;
	border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.pdp__color {
	margin: 0 0 0.45rem;
	font-family: var(--glist-sans);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--glist-muted);
}

.pdp__title {
	margin: 0 0 0.65rem;
	font-family: var(--glist-headline);
	font-size: clamp(1.65rem, 2.6vw, 2.25rem);
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
}

.pdp__price {
	margin: 0 0 1.35rem;
	font-family: var(--glist-headline);
	font-size: clamp(1.15rem, 1.8vw, 1.45rem);
	font-weight: 500;
	letter-spacing: 0.02em;
}

.pdp__variants {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0 0 1.5rem;
}

.pdp__swatch {
	display: block;
	width: 3.25rem;
	border: 1px solid transparent;
	overflow: hidden;
	line-height: 0;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.pdp__swatch img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.pdp__swatch:hover {
	opacity: 0.85;
}

.pdp__swatch.is-active {
	border-color: var(--glist-ink);
}

.pdp__label {
	margin: 0 0 0.55rem;
	font-family: var(--glist-sans);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pdp__size-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1rem;
}

.pdp__size {
	min-width: 3rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0;
	background: var(--glist-white);
	font-family: var(--glist-sans);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pdp__size:hover {
	border-color: var(--glist-ink);
}

.pdp__size.is-active {
	color: var(--glist-white);
	background: var(--glist-ink);
	border-color: var(--glist-ink);
}

.pdp__cta {
	flex: 1 1 auto;
	width: auto;
	margin-top: 0;
	padding: 0.85rem 1.25rem;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pdp__buy-row {
	display: flex;
	align-items: stretch;
	gap: 0.65rem;
	margin-top: 1.15rem;
}

.pdp__cta:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.pdp__accordions {
	margin-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pdp__acc {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pdp__acc summary {
	list-style: none;
	cursor: pointer;
	padding: 1rem 0;
	font-family: var(--glist-sans);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pdp__acc summary::-webkit-details-marker {
	display: none;
}

.pdp__acc summary::after {
	content: "+";
	float: right;
	font-weight: 400;
}

.pdp__acc[open] summary::after {
	content: "−";
}

.pdp__acc-body {
	padding: 0 0 1.15rem;
	font-family: var(--glist-sans);
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.6;
	color: #222;
}

.pdp__acc-body p {
	margin: 0 0 0.75em;
}

.pdp__acc-body p:last-child {
	margin-bottom: 0;
}

.pdp__acc-body ul {
	margin: 0 0 0.75em;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.35rem;
}

.pdp__acc-body li::before {
	content: "— ";
}

@media (max-width: 960px) {
	.pdp {
		grid-template-columns: 1fr;
	}

	.pdp__panel {
		position: static;
		max-height: none;
		border-left: 0;
		padding-top: 1.5rem;
	}

	.pdp__nav {
		width: 2.35rem;
		height: 2.35rem;
		font-size: 1.4rem;
	}

	.pdp__nav--prev {
		left: 0.45rem;
	}

	.pdp__nav--next {
		right: 0.45rem;
	}
}
