/* ==========================================================================
   Single product
   ========================================================================== */

.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 0 72px;
	align-items: start;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 40px var(--gutter) 0;
}

.single-product div.product > .summary {
	max-width: 470px;
	padding-top: 16px;
}

.single-product div.product > :not(.dr-gallery, .summary) {
	grid-column: 1 / -1;
}

.single-product .woocommerce-notices-wrapper {
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin: 24px auto 0;
	padding-inline: var(--gutter);
}

/* Gallery ---------------------------------------------------------------- */

.dr-gallery {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

.dr-gallery__stage {
	position: relative;
}

/* A soft arch rather than a half circle, and the square shape of the product
   photos, so no detail in the corners or at the sides is cut off. */
.dr-gallery__main {
	margin: 0;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 140px 140px 28px 28px;
	background: var(--blush);
}

.dr-gallery__zoom {
	display: block;
	height: 100%;
	cursor: zoom-in;
}

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

.dr-gallery__sticker {
	position: absolute;
	top: 96px;
	right: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: var(--caramel-deep);
	color: #fff;
	line-height: 1;
	transform: rotate(12deg);
	pointer-events: none;
}

.dr-gallery__sticker-label {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dr-gallery__sticker-pct {
	font-family: var(--font-heading);
	font-size: 32px;
	font-weight: 500;
}

/* Thumbnails in one row under the main image; scrolls sideways when there are many. */
.dr-gallery__thumbs {
	position: relative; /* contain the thumbs' screen-reader text inside the scroller */
	display: flex;
	gap: 12px;
	padding: 4px 2px 8px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}

.dr-gallery__thumbs li {
	flex: none;
	scroll-snap-align: start;
}

.dr-gallery__thumb {
	display: block;
	width: 80px;
	height: 80px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 50%;
	background: var(--blush);
	cursor: pointer;
}

.dr-gallery__thumb[aria-pressed="true"] {
	border-color: var(--ink);
}

.dr-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dr-gallery__thumb:focus-visible {
	border-radius: 50%;
}

.dr-lightbox {
	width: min(92vw, 1100px);
	max-height: 92vh;
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: var(--paper);
}

.dr-lightbox::backdrop {
	background: rgb(59 43 34 / 0.7);
}

.dr-lightbox__img {
	display: block;
	width: 100%;
	max-height: 92vh;
	object-fit: contain;
}

.dr-lightbox__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--paper);
}

/* Summary ---------------------------------------------------------------- */

.single-product .summary {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.single-product .summary > * {
	margin: 0;
}

.product_title {
	font-size: clamp(40px, 4.4vw, 54px);
	line-height: 1;
	margin-bottom: -10px;
}

.summary > .price {
	font-family: var(--font-heading);
	font-size: 34px;
	font-weight: 500;
	gap: 0 12px;
}

.summary > .price del {
	font-family: var(--font-body);
	font-size: 16px;
}

.summary > .price ins {
	font-weight: 500;
}

.woocommerce-product-details__short-description {
	color: var(--muted);
	font-size: 17px;
	line-height: 1.75;
}

.woocommerce-product-details__short-description > :last-child {
	margin-bottom: 0;
}

/* Variations */
table.variations {
	width: 100%;
	margin-bottom: 18px;
	border-collapse: collapse;
}

table.variations tr {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

table.variations th,
table.variations td {
	padding: 0;
	text-align: left;
}

table.variations th label {
	font-size: 15px;
	font-weight: 400;
}

.dr-select-hidden {
	display: none;
}

.reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted);
}

.dr-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.dr-swatch {
	position: relative;
	cursor: pointer;
}

.dr-swatch input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.dr-swatch__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 2px solid transparent;
	border-radius: 50%;
}

.dr-swatch__dot::before {
	content: "";
	width: 30px;
	height: 30px;
	border: 1px solid #d9cec3;
	border-radius: 50%;
	background: var(--swatch);
}

.dr-swatch__text {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #e2d6cb;
	font-size: 14px;
}

.dr-swatch input:checked + .dr-swatch__dot {
	border-color: var(--ink);
}

.dr-swatch input:checked + .dr-swatch__text {
	background: var(--ink);
	box-shadow: none;
	color: #fff;
}

.dr-swatch input:focus-visible + * {
	box-shadow: var(--focus);
}

.dr-swatch.is-unavailable {
	opacity: 0.4;
}

.dr-swatch.is-unavailable .dr-swatch__text {
	text-decoration: line-through;
}

.woocommerce-variation-price {
	margin-bottom: 14px;
}

.woocommerce-variation-price .price {
	font-family: var(--font-heading);
	font-size: 28px;
}

/* Quantity + button */
form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.quantity {
	display: inline-flex;
	align-items: center;
	height: 58px;
	border-radius: 999px;
	background: var(--cream);
}

.quantity:has(input[type="hidden"]) {
	display: none;
}

.quantity .qty {
	width: 36px;
	height: 56px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	color: var(--ink);
	-moz-appearance: textfield;
	appearance: textfield;
}

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

.dr-qty-btn {
	width: 48px;
	height: 56px;
	border: 0;
	background: none;
	font-size: 20px;
	color: var(--ink);
	cursor: pointer;
}

.dr-qty-btn:focus-visible {
	border-radius: 999px;
}

.single_add_to_cart_button {
	flex: 1 1 160px;
	min-height: 58px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}

.single_add_to_cart_button:hover {
	background: var(--ink-hover);
	transform: translateY(-2px);
}

.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Service panel */
.dr-service {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 22px;
	border-radius: 24px;
	background: var(--cream);
	font-size: 14px;
	color: #5e4e44;
}

.dr-service li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dr-service .dr-icon {
	flex: none;
	color: var(--caramel-deep);
}

.dr-service__dot {
	flex: none;
	width: 9px;
	height: 9px;
	margin-inline: 2px;
	border-radius: 50%;
	background: #6f8a5e;
}

.dr-service__stock.is-low .dr-service__dot,
.dr-service__stock.is-backorder .dr-service__dot {
	background: #c08a3e;
}

.dr-service__stock.is-outofstock .dr-service__dot {
	background: #a0524a;
}

.stock.out-of-stock {
	color: #a0524a;
	font-weight: 700;
}

/* "Past er lief bij" ------------------------------------------------------ */

.dr-pairs {
	margin-top: var(--section);
	margin-inline: calc(50% - 50vw);
}

.dr-pairs__wave {
	margin-bottom: -1px;
}

.dr-pairs__body {
	padding-block: 56px var(--section);
	background: var(--cream);
}

.dr-pairs__title {
	margin-bottom: 40px;
	text-align: center;
	font-size: clamp(34px, 4vw, 44px);
}

.dr-pairs + .dr-reviews {
	padding-top: var(--section);
}

.single-product .dr-footer {
	margin-top: 0;
}

/* Reviews */
.dr-reviews {
	max-width: 800px;
}

/* Sticky add to cart (mobile) ------------------------------------------- */

.dr-sticky-atc {
	display: none;
}

@media (max-width: 899px) {
	.single-product div.product {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 16px;
	}

	.single-product div.product > .summary {
		max-width: none;
		padding-top: 28px;
	}

	.dr-gallery__thumbs {
		scrollbar-width: none;
	}

	.dr-gallery__thumb {
		width: 64px;
		height: 64px;
	}

	.dr-gallery__main {
		border-radius: 96px 96px 22px 22px;
	}

	.dr-gallery__sticker {
		top: 40px;
		right: 0;
		width: 76px;
		height: 76px;
	}

	.dr-gallery__sticker-pct {
		font-size: 26px;
	}

	.dr-sticky-atc {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--paper);
		box-shadow: 0 -10px 30px -18px rgb(59 43 34 / 0.45);
		transform: translateY(110%);
		transition: transform 0.25s ease;
	}

	.dr-sticky-atc[hidden] {
		display: none;
	}

	.dr-sticky-atc.is-visible {
		transform: none;
	}

	.dr-sticky-atc__info {
		display: flex;
		flex-direction: column;
		min-width: 0;
	}

	.dr-sticky-atc__name {
		overflow: hidden;
		font-size: 14px;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.dr-sticky-atc__btn {
		flex: none;
		min-height: 48px;
	}
}

/* Personalisation field ------------------------------------------------- */

.dr-personalise {
	flex-basis: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 6px;
}

.dr-personalise__label {
	font-size: 15px;
}

.dr-personalise__optional {
	color: var(--muted);
	font-size: 13px;
}

.dr-personalise__input {
	height: 54px;
	padding: 0 20px;
	border: 1px solid #e2d6cb;
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
}

.dr-personalise__input:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: var(--focus);
}

.dr-personalise__hint {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}
