/**
 * CLUSE — product page (PDP) styles.
 *
 * Reference geometry @1440: page-content 60px, page-width 1300/40,
 * gallery = 80px thumbs column + 20px gap + 495px main image,
 * meta column 595 wide with 45px left padding (content 550),
 * title 35/42 Roboto Condensed, SKU 14px, price 18px, add-to-cart 550×46.7,
 * SPÉCIFICATIONS two 555px columns (2fr/1fr rows, 16px padding, #eee border).
 */

/* ------------------------------------------------------------------ *
 * 1. Layout columns
 * ------------------------------------------------------------------ */
.cluse-pdp .product-single__sticky {
	position: sticky;
	top: 20px;
}

.cluse-pdp .product-single__meta {
	padding-left: 45px;
}

/* ------------------------------------------------------------------ *
 * 2. Gallery (thumbs beside + main image)
 * ------------------------------------------------------------------ */
.product__photos {
	display: flex;
	gap: 20px;
	position: relative;
}

.product__main-photos {
	flex: 1 1 auto;
	order: 2;
	width: auto;
}

.product__thumbs {
	flex: 0 0 auto;
	max-width: 80px;
	order: 1;
	width: 80px;
}

.product__thumbs--scroller {
	max-height: 495px;
	overflow-y: auto;
	scrollbar-width: none;
}

.product__thumbs--scroller::-webkit-scrollbar {
	display: none;
}

.product__thumb-item {
	background: none;
	border: 0;
	box-sizing: content-box;
	cursor: pointer;
	display: block;
	margin: 0 0 20px;
	padding: 0;
	width: 80px;
}

.product__thumb-item:last-child {
	margin-bottom: 0;
}

.product__thumb {
	border: 2px solid transparent;
	display: block;
	transition: border-color 0.2s ease;
}

.product__thumb-item.is-active .product__thumb,
.product__thumb-item:hover .product__thumb {
	border-color: var(--cluse-ink);
}

.product__thumb img {
	aspect-ratio: 1 / 1;
	display: block;
	object-fit: cover;
	width: 76px;
}

.product__slide {
	display: none;
}

.product__slide.is-active {
	display: block;
}

.product__slide .image-wrap {
	aspect-ratio: 1 / 1;
	background: var(--cluse-image-bg);
	overflow: hidden;
}

.product__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.product__photo-dots {
	display: none;
}

/* ------------------------------------------------------------------ *
 * 3. Meta column
 * ------------------------------------------------------------------ */
.product-block {
	margin-bottom: 25px;
}

.product-block:last-child {
	margin-bottom: 0;
}

.product-block--header {
	margin-bottom: 10px;
}

.product-single__title {
	color: var(--cluse-ink);
	font-family: var(--cluse-font-heading);
	font-size: 35px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 42px;
	margin: 0;
}

.product-single__sku {
	color: var(--cluse-ink);
	display: flex;
	font-family: var(--cluse-font-body);
	font-size: 14px;
	gap: 8px;
	letter-spacing: var(--cluse-base-spacing);
	line-height: 1.6;
	margin: 10px 0 0;
}

.product-single__sku-label {
	color: #8a8b8b;
	font-size: 11px;
	letter-spacing: 0.15em;
	line-height: 22.4px;
}

.product-block--price {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 60px;
	margin-top: 26px;
}

.product__price {
	color: var(--cluse-ink);
	font-family: var(--cluse-font-body);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: var(--cluse-base-spacing);
	line-height: 1.6;
}

.product__price-compare {
	color: #8a8b8b;
	font-size: 14px;
}

.product__price-badge {
	background: var(--cluse-sale);
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.025em;
	line-height: 1;
	padding: 7px 8px 7px 10px;
}

/* ------------------------------------------------------------------ *
 * 4. Add to cart row + quantity
 * ------------------------------------------------------------------ */
.cluse-add-row {
	align-items: stretch;
	display: flex;
	gap: 10px;
}

.cluse-add-row .js-qty__wrapper {
	flex: 0 0 auto;
	position: relative;
	width: 110px;
}

.js-qty__wrapper {
	background: #fff;
	border: 1px solid var(--cluse-border);
	box-sizing: border-box;
	display: block;
	height: 46.7px;
	max-width: none;
	position: relative;
}

.js-qty__num {
	appearance: textfield;
	-moz-appearance: textfield;
	background: none;
	border: 0;
	box-sizing: border-box;
	font-family: var(--cluse-font-body);
	font-size: 14px;
	height: 100%;
	line-height: 1;
	padding: 0 32px;
	text-align: center;
	width: 100%;
}

.js-qty__num::-webkit-outer-spin-button,
.js-qty__num::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.js-qty__adjust {
	align-items: center;
	background: none;
	border: 0;
	color: var(--cluse-ink);
	cursor: pointer;
	display: flex;
	font-size: 16px;
	height: 100%;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	top: 0;
	width: 32px;
}

.js-qty__adjust--minus {
	left: 0;
}

.js-qty__adjust--plus {
	right: 0;
}

.cluse-add-row .add-to-cart {
	flex: 1 1 auto;
}

.add-to-cart.is-loading {
	cursor: progress;
	opacity: 0.6;
}

.add-to-cart.is-added {
	background: var(--cluse-green);
}

/* ------------------------------------------------------------------ *
 * 5. Fake social proof (viewers / stock / countdown)
 * ------------------------------------------------------------------ */
.cluse-social-proof {
	color: #6b6c6c;
	display: flex;
	flex-direction: column;
	font-size: 12.5px;
	gap: 6px;
	letter-spacing: 0.025em;
	line-height: 1.5;
}

.cluse-social-proof__row {
	align-items: center;
	display: flex;
	gap: 8px;
	margin: 0;
}

.cluse-social-proof__dot {
	animation: clusePulse 2.4s ease-in-out infinite;
	background: #2fa76a;
	border-radius: 50%;
	flex: 0 0 auto;
	height: 7px;
	width: 7px;
}

.cluse-social-proof__dot--stock {
	animation: none;
	background: #e0a12a;
}

.cluse-social-proof__icon {
	display: inline-flex;
	height: 13px;
	width: 13px;
}

.cluse-social-proof__icon svg {
	height: 13px;
	width: 13px;
}

.cluse-social-proof__row--countdown strong {
	color: var(--cluse-ink);
	font-weight: 600;
}

@keyframes clusePulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.45;
		transform: scale(0.85);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cluse-social-proof__dot {
		animation: none;
	}
}

/* ------------------------------------------------------------------ *
 * 6. Trust line / sales points
 * ------------------------------------------------------------------ */
.sales-points {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sales-point {
	display: block;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 5px;
}

.sales-point:last-child {
	margin-bottom: 0;
}

.icon-and-text {
	align-items: center;
	display: inline-flex;
	gap: 10px;
}

.icon-and-text .icon {
	height: 18px;
	width: 18px;
}

/* ------------------------------------------------------------------ *
 * 7. Description / accordions
 * ------------------------------------------------------------------ */
.product-single__description {
	font-size: 14px;
	line-height: 1.6;
}

.product-single__description p {
	margin-bottom: 1em;
}

.product-single__description p:last-child {
	margin-bottom: 0;
}

.collapsibles-wrapper--border-bottom {
	border-bottom: 1px solid var(--cluse-border);
}

.collapsible-trigger-btn--borders {
	border-top: 1px solid var(--cluse-border);
}

.product-block--tab .collapsible-trigger-btn {
	align-items: center;
	background: none;
	border-left: 0;
	border-right: 0;
	border-bottom: 0;
	cursor: pointer;
	display: flex;
	font-family: var(--cluse-font-heading);
	font-size: 12px;
	font-weight: 700;
	justify-content: space-between;
	letter-spacing: 2.38px;
	line-height: 1.19;
	padding: 22.86px 0;
	text-align: left;
	text-transform: uppercase;
	width: 100%;
}

.product-block--tab .collapsible-trigger-btn .icon {
	height: 12px;
	width: 20px;
}

.product-block--tab .collapsible-content__inner {
	font-size: 14px;
	line-height: 1.6;
	padding-bottom: 20px;
}

.product-block--tab .collapsible-content__inner p {
	margin-bottom: 1em;
}

/* ------------------------------------------------------------------ *
 * 8. COMBINEZ CECI AVEC… (small rows, reference complementary block)
 * ------------------------------------------------------------------ */
.product-recommendations__title {
	color: var(--cluse-ink);
	font-family: var(--cluse-font-heading);
	font-size: 21.35px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 20px;
	max-width: 72%;
	padding: 0 30px;
	text-align: left;
}

.product-single__related {
	display: flex;
	flex-direction: column;
}

.product-single__related .grid-product {
	margin-bottom: 0;
	padding: 0 0 8px;
}

.product-single__related .grid-product__link {
	align-items: center;
	display: flex;
	text-decoration: none;
}

.product-single__related .grid-product__image-mask {
	flex: 0 0 auto;
	width: 112px;
}

.product-single__related .grid-product__image {
	aspect-ratio: 1 / 1;
	display: block;
	object-fit: cover;
	width: 112px;
}

.product-single__related .grid-product__meta {
	margin-left: 48px;
	text-align: left;
	width: calc(100% - 112px);
}

.product-single__related .grid-product__title {
	display: block;
	font-size: 14px;
	line-height: 1.5;
}

.product-single__related .grid-product__price {
	display: block;
	font-size: 12.6px;
	line-height: 1.5;
	margin-top: 6px;
}

/* ------------------------------------------------------------------ *
 * 9. SPÉCIFICATIONS (reference .product-metafields)
 * ------------------------------------------------------------------ */
.cluse-pdp-specs h4 {
	color: var(--cluse-ink);
	font-family: var(--cluse-font-heading);
	font-size: 20.65px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 20px;
	padding: 0 30px;
}

.product-metafields {
	display: flex;
	flex-direction: row;
	gap: 50px;
	padding: 0 30px;
}

.product-metafields .metafields {
	width: 50%;
}

.product-metafields .metafields ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.product-metafields .metafields ul .metafield-border {
	border-bottom: 1px solid #eee;
	display: grid;
	grid-template-columns: 2fr 1fr;
	margin: 0;
	padding: 16px 0;
}

.product-metafields .metafields ul .metafield-first {
	color: #bbbcbc;
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	width: 100%;
}

.product-metafields .metafields ul .metafield-last {
	color: #000;
	font-size: 14px;
	font-weight: 400;
	text-align: end;
}

/* ------------------------------------------------------------------ *
 * 10. VOUS AIMEREZ PEUT-ÊTRE
 * ------------------------------------------------------------------ */
.cluse-pdp-related__title {
	color: var(--cluse-ink);
	font-family: var(--cluse-font-heading);
	font-size: 21.35px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 40px;
	text-align: center;
	text-transform: none;
}

/* Sale badge inside the related grid matches the PLP tag. */
.cluse-pdp-related .grid-product .product-card__badge {
	background: var(--cluse-sale);
	bottom: auto;
	color: #fff;
	font-size: 12px;
	left: auto;
	line-height: 1;
	padding: 7px 8px 7px 10px;
	right: 0;
	top: 0;
}

/* ------------------------------------------------------------------ *
 * 11. Responsive (mobile: swipe gallery, stacked meta)
 * ------------------------------------------------------------------ */
@media only screen and (max-width: 589px) {
	.cluse-pdp .product-single__meta {
		padding-left: 0;
		padding-top: 25px;
	}

	.product__photos {
		display: block;
		position: relative;
	}

	.product__thumbs {
		display: none;
	}

	.product__main-photos {
		display: flex;
		gap: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		width: 100%;
	}

	.product__main-photos::-webkit-scrollbar {
		display: none;
	}

	.product__slide {
		display: block;
		flex: 0 0 100%;
		scroll-snap-align: start;
	}

	.product__photo-dots {
		align-items: center;
		display: flex;
		gap: 6px;
		justify-content: center;
		padding: 12px 0 0;
	}

	.product__photo-dot {
		background: #d5d5d5;
		border: 0;
		border-radius: 50%;
		cursor: pointer;
		height: 6px;
		padding: 0;
		width: 6px;
	}

	.product__photo-dot.is-active {
		background: var(--cluse-ink);
	}

	.product-single__title {
		font-size: 29.75px;
		line-height: 35.7px;
	}

	.product-block--price {
		margin-bottom: 30px;
	}

	.cluse-add-row {
		flex-wrap: wrap;
	}

	.cluse-add-row .js-qty__wrapper {
		width: 96px;
	}

	.product-recommendations__title {
		max-width: 100%;
		padding: 0;
	}

	.cluse-pdp-specs h4 {
		padding: 0;
	}

	.product-metafields {
		flex-direction: column;
		gap: 16px;
		padding: 0;
	}

	.product-metafields .metafields {
		width: 100%;
	}

	.product-metafields .metafields ul .metafield-border {
		display: flex;
		flex-direction: column;
		padding: 8px 0;
	}

	.product-metafields .metafields ul .metafield-first {
		color: #bbbcbc;
		font-size: 12px;
		margin-bottom: 2px;
		text-transform: none;
	}

	.product-metafields .metafields ul .metafield-last {
		font-size: 14px;
		font-weight: 600;
		text-align: left;
	}

	.cluse-pdp-related__title {
		font-size: 18px;
		margin-bottom: 20px;
	}
}

@media only screen and (min-width: 590px) and (max-width: 992px) {
	.cluse-pdp .product-single__meta {
		padding-left: 20px;
	}
}

/* Reference list values inside the specs table (e.g. "Convient aux montres") */
.product-metafields .metafields ul .metafield-last.metafield-list {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
}

@media only screen and (max-width: 589px) {
	.product-metafields .metafields ul .metafield-last.metafield-list {
		align-items: flex-start;
	}
}
