/* Pegdoll Showcase — theme tokens fall back to sensible defaults outside the Pegdoll theme. */
:root {
	--pd-bg: var(--wp--preset--color--zand, #f7eee3);
	--pd-shape: var(--wp--preset--color--bos, #2e4a3b);
	--pd-accent: var(--wp--preset--color--oranje, #d9542b);
	--pd-ink: var(--wp--preset--color--inkt, #2a221d);
	--pd-serif: var(--wp--preset--font-family--display, "Literata", Georgia, "Times New Roman", serif);
}

.pd-letters {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
}

.pd-letters__char {
	display: inline-block;
}

.pd-letters__space {
	display: inline-block;
	width: 0.35em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Slider                                                              */
/* ------------------------------------------------------------------ */

.pd-slider {
	--pd-rotation: 0deg;
	position: relative;
	/* Full bleed comes from WordPress' .alignfull rules inside the theme layout. */
	max-width: none !important;
	margin-top: 0 !important;
	margin-bottom: 0;
	background: var(--pd-bg);
	color: var(--pd-ink);
}

.pd-slider.is-sticky {
	height: var(--pd-scroll-length, 400vh);
}

.pd-slider__stage {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 520px;
	overflow: hidden;
	touch-action: pan-y;
	user-select: none;
}

.pd-slider.is-sticky .pd-slider__stage {
	position: sticky;
	top: 0;
}

.pd-slider__shape {
	position: absolute;
	left: 50%;
	bottom: -6%;
	width: min(150vw, 1500px);
	transform: translateX(-50%);
	color: var(--pd-shape);
	pointer-events: none;
}

.pd-slider__shape svg {
	display: block;
	width: 100%;
	height: auto;
}

.pd-slider__badge {
	position: absolute;
	left: 50%;
	bottom: -38vmin;
	width: 92vmin;
	max-width: 900px;
	aspect-ratio: 1;
	transform: translateX(-50%) rotate(var(--pd-rotation));
	color: var(--pd-accent);
	pointer-events: none;
}

.pd-slider__badge text {
	font-family: var(--pd-serif);
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	fill: currentColor;
}

.pd-slider__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s ease;
	will-change: filter;
}

.pd-slider.is-ready .pd-slider__canvas {
	opacity: 1;
}

.pd-slider__caption {
	position: absolute;
	left: 50%;
	bottom: clamp(24px, 7vh, 72px);
	width: min(90vw, 520px);
	transform: translateX(-50%);
	text-align: center;
	color: var(--pd-bg);
	opacity: 0;
	translate: 0 8px;
	transition: opacity 0.35s ease, translate 0.35s ease;
	z-index: 2;
}

.pd-slider__caption.is-in {
	opacity: 1;
	translate: 0 0;
}

.pd-slider__name {
	margin: 0 0 0.2em;
	font-family: var(--pd-serif);
	font-size: clamp(28px, 4.4vw, 52px);
	font-weight: var(--pd-display-weight, 300);
	line-height: 1;
	color: inherit;
}

.pd-slider__desc {
	margin: 0 0 1em;
	font-size: clamp(14px, 1.2vw, 16px);
	line-height: 1.45;
	opacity: 0.85;
}

.pd-slider__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.7em 1.4em;
	border-radius: 999px;
	background: var(--pd-accent-current, var(--pd-accent));
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.pd-slider__link:hover,
.pd-slider__link:focus-visible {
	transform: scale(1.05);
	color: #fff;
}

.pd-slider__prompt {
	position: absolute;
	top: clamp(88px, 14vh, 120px);
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.7;
}

.pd-slider__list {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.pd-slider.is-fallback.is-sticky {
	height: auto;
}

.pd-slider.is-fallback .pd-slider__stage {
	height: auto;
	min-height: 0;
	padding: 120px 16px 48px;
}

.pd-slider.is-fallback .pd-slider__canvas,
.pd-slider.is-fallback .pd-slider__caption,
.pd-slider.is-fallback .pd-slider__badge,
.pd-slider.is-fallback .pd-slider__shape,
.pd-slider.is-fallback .pd-slider__prompt {
	display: none;
}

.pd-slider.is-fallback .pd-slider__list {
	position: static;
	width: auto;
	height: auto;
	clip: auto;
	white-space: normal;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pd-slider.is-fallback .pd-slider__list img {
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------ */
/* Viewer                                                              */
/* ------------------------------------------------------------------ */

.pd-viewer {
	position: relative;
	width: 100%;
	max-width: 560px;
	aspect-ratio: 4 / 5;
	margin: 0 auto 2rem;
	border-radius: 24px;
	background: radial-gradient(circle at 50% 40%, #fbf6ef, #efe3d3);
	cursor: grab;
	touch-action: pan-y;
}

.pd-viewer:active {
	cursor: grabbing;
}

.pd-viewer canvas {
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.pd-viewer.is-ready canvas {
	opacity: 1;
}

.pd-viewer__hint {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	margin: 0;
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.7;
	pointer-events: none;
}

.pd-viewer.is-fallback {
	aspect-ratio: auto;
	background: none;
	cursor: default;
}

.pd-viewer.is-fallback canvas,
.pd-viewer.is-fallback .pd-viewer__hint {
	display: none;
}

.pd-viewer__fallback {
	display: none;
	width: 100%;
	height: auto;
}

.pd-viewer.is-fallback .pd-viewer__fallback {
	display: block;
}

/* ------------------------------------------------------------------ */
/* Product hero                                                        */
/* ------------------------------------------------------------------ */

.pd-hero {
	position: relative;
	max-width: none !important;
	min-height: 100svh;
	margin-top: 0 !important;
	padding: clamp(96px, 16vh, 150px) 16px 0;
	overflow: hidden;
	color: var(--pd-accent);
	text-align: center;
}

.pd-hero__title {
	margin: 0;
	font-family: var(--pd-serif);
	font-size: clamp(64px, 17vw, 260px);
	font-weight: var(--pd-display-weight, 300);
	line-height: 0.9;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: inherit;
}

.pd-hero__title .pd-letters__char {
	animation: pd-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	animation-delay: calc(var(--i) * 45ms);
}

.pd-hero__labels {
	position: absolute;
	left: 0;
	right: 0;
	top: 52%;
	display: flex;
	justify-content: space-between;
	padding: 0 clamp(16px, 5vw, 72px);
	font-size: 15px;
	color: var(--pd-ink);
	z-index: 2;
	pointer-events: none;
}

.pd-hero__labels a {
	color: inherit;
	pointer-events: auto;
}

.pd-viewer--hero {
	--pd-hero-top: clamp(170px, 26svh, 300px);
	position: absolute;
	left: 50%;
	top: var(--pd-hero-top);
	width: min(92vw, 640px);
	max-width: none;
	height: calc(100svh - var(--pd-hero-top));
	aspect-ratio: auto;
	margin: 0;
	transform: translateX(-50%);
	background: none;
	border-radius: 0;
	z-index: 1;
}

.pd-viewer--hero .pd-viewer__hint {
	bottom: 18px;
	color: var(--pd-ink);
}

.pd-viewer--hero.is-fallback {
	position: relative;
	height: auto;
	transform: none;
	left: auto;
	margin: 24px auto 0;
}

@keyframes pd-rise {
	from {
		opacity: 0;
		transform: translateY(0.35em);
	}
}

/* ------------------------------------------------------------------ */
/* Product details                                                     */
/* ------------------------------------------------------------------ */

.pd-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: clamp(24px, 4vw, 64px);
	max-width: 1240px !important;
	margin: clamp(48px, 8vw, 120px) auto !important;
	padding: clamp(24px, 4vw, 48px) 0 0;
	border-top: 1px solid color-mix(in srgb, var(--pd-ink) 18%, transparent);
}

.pd-meta__label {
	margin: 0 0 0.8em;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pd-accent);
}

.pd-meta__item p {
	margin: 0 0 0.6em;
	line-height: 1.55;
}

.pd-meta__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pd-meta__pills li {
	padding: 0.35em 1em;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 15px;
}

/* ------------------------------------------------------------------ */
/* Cards, grids, collections                                           */
/* ------------------------------------------------------------------ */

.pd-section-title {
	margin: 0 0 clamp(24px, 4vw, 56px);
	font-family: var(--pd-serif);
	font-size: clamp(36px, 7vw, 96px);
	font-weight: var(--pd-display-weight, 300);
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	color: var(--pd-accent);
}

.pd-grid-section {
	max-width: 1240px !important;
	margin: clamp(64px, 10vw, 140px) auto !important;
}

.pd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: clamp(16px, 2.5vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pd-card__link {
	display: block;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.pd-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	margin-bottom: 14px;
	border-radius: 20px;
	background: color-mix(in srgb, var(--pd-shape) 9%, var(--pd-bg));
	overflow: hidden;
	transition: background-color 0.3s ease;
}

.pd-card__photo,
.pd-card__still {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pd-card__photo {
	padding: 12%;
	opacity: 0;
}

.pd-card__still {
	opacity: 0;
}

.pd-card.is-ready .pd-card__still {
	opacity: 1;
}

.pd-no-webgl .pd-card__photo {
	opacity: 1;
}

.pd-card__link:hover .pd-card__media,
.pd-card__link:focus-visible .pd-card__media {
	background: color-mix(in srgb, var(--pd-accent) 16%, var(--pd-bg));
}

.pd-card__link:hover .pd-card__still,
.pd-card__link:focus-visible .pd-card__still {
	transform: translateY(-4%) rotate(-4deg) scale(1.04);
}

.pd-card__title {
	display: block;
	font-family: var(--pd-serif);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: var(--pd-display-weight, 300);
	line-height: 1.1;
}

.pd-card__sub {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	opacity: 0.75;
}

.pd-collection {
	max-width: 1240px !important;
	margin: 0 auto clamp(64px, 10vw, 140px) !important;
}

.pd-collection__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: clamp(16px, 4vw, 64px);
	align-items: end;
	margin-bottom: clamp(24px, 4vw, 48px);
}

.pd-collection__title {
	margin: 0;
	font-family: var(--pd-serif);
	font-size: clamp(36px, 5vw, 72px);
	font-weight: var(--pd-display-weight, 300);
	line-height: 1;
	color: var(--pd-accent);
}

.pd-collection__desc {
	margin: 0;
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.55;
}

@media (max-width: 700px) {
	.pd-collection__head {
		grid-template-columns: 1fr;
	}

	.pd-hero__labels {
		top: auto;
		bottom: 52px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pd-slider__caption,
	.pd-slider__canvas,
	.pd-viewer canvas,
	.pd-card__still {
		transition: none;
	}

	.pd-hero__title .pd-letters__char {
		animation: none;
	}
}

/* ------------------------------------------------------------------ */
/* "Nieuw" label & slider arrows                                       */
/* ------------------------------------------------------------------ */

.pd-new {
	display: inline-block;
	padding: 0.32em 0.85em;
	border-radius: 999px;
	background: var(--pd-new-bg, #8ccfc4);
	color: var(--pd-new-ink, #1f3a36);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.pd-new.is-hidden {
	display: none;
}

.pd-new--card {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
}

.pd-slider__caption {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Under the name, so the doll never covers it. */
.pd-new--slider {
	order: 1;
	margin: 0 0 0.8em;
}

.pd-slider__name {
	order: 0;
}

.pd-slider__desc,
.pd-slider__link {
	order: 2;
}

.pd-new--hero {
	position: relative;
	z-index: 2;
	margin-bottom: 0.8em;
	font-size: 13px;
}

.pd-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--pd-accent);
	font-size: 20px;
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.16);
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform 0.2s ease;
}

.pd-slider__arrow:hover,
.pd-slider__arrow:focus-visible {
	transform: translateY(-50%) scale(1.08);
}

.pd-slider__arrow--prev {
	left: clamp(12px, 3vw, 40px);
}

.pd-slider__arrow--next {
	right: clamp(12px, 3vw, 40px);
}

.pd-slider.is-fallback .pd-slider__arrow {
	display: none;
}

/* Buy box under the product hero */
.pd-buy {
	max-width: 620px;
	margin: clamp(36px, 5vw, 64px) auto 0;
	padding: 0 var(--pd-gutter, 20px);
	text-align: center;
}

.pd-buy__form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.pd-buy__sizes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.pd-buy__sizes legend {
	width: 100%;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pd-buy__size {
	position: relative;
	cursor: pointer;
}

.pd-buy__size input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pd-buy__size span {
	display: flex;
	flex-direction: column;
	min-width: 104px;
	padding: 12px 18px;
	border: 2px solid color-mix(in srgb, var(--pd-accent, #b04a26) 30%, transparent);
	border-radius: 16px;
	background: #fff;
	font-size: 15px;
	line-height: 1.3;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pd-buy__size strong {
	font-size: 18px;
}

.pd-buy__size:hover span {
	border-color: color-mix(in srgb, var(--pd-accent, #b04a26) 60%, transparent);
}

.pd-buy__size input:checked + span {
	border-color: var(--pd-accent, #b04a26);
	background: color-mix(in srgb, var(--pd-accent, #b04a26) 8%, #fff);
}

.pd-buy__size input:focus-visible + span {
	outline: 2px solid var(--pd-accent, #b04a26);
	outline-offset: 3px;
}

.pd-buy__price {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
}

.pd-buy__button {
	border: 0;
	font: inherit;
	cursor: pointer;
}

.pd-buy__soon {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	opacity: 0.7;
}

/* WooCommerce notices ("toegevoegd aan je winkelmand") inside the buy box */
.pd-buy .woocommerce-message,
.pd-buy .woocommerce-error,
.pd-buy .woocommerce-info {
	margin: 0 0 24px;
	padding: 14px 20px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--pd-accent, #b04a26) 10%, #fff);
	list-style: none;
	text-align: center;
}

.pd-buy .woocommerce-message .button,
.pd-buy .woocommerce-message .wc-forward {
	float: none;
	display: inline-block;
	margin-left: 0.6em;
	font-weight: 700;
}

/* The shortcode block's wpautop wraps the inline options in a <p>. */
.pd-buy__sizes > p {
	display: contents;
}

.pd-buy p:empty,
.pd-buy__sizes br {
	display: none;
}

/* Cards for products without a 3D-foto: just the product photo, filling the card. */
.pd-card--photo .pd-card__photo {
	padding: 0;
	object-fit: cover;
	opacity: 1;
}

.pd-card--photo .pd-card__link:hover .pd-card__photo,
.pd-card--photo .pd-card__link:focus-visible .pd-card__photo {
	transform: scale(1.04);
}

/* Buy box: quantity and button on one row */
.pd-buy__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.pd-buy__qty {
	display: inline-flex;
	align-items: center;
	border: 2px solid color-mix(in srgb, var(--pd-accent, #b04a26) 30%, transparent);
	border-radius: 999px;
	background: #fff;
}

.pd-buy__qty button {
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 20px;
	cursor: pointer;
}

.pd-buy__qty input {
	width: 3ch;
	border: 0;
	background: none;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
}

.pd-buy__qty input::-webkit-inner-spin-button,
.pd-buy__qty input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pd-buy__stock {
	margin: -8px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--pd-accent, #b04a26);
}

.pd-buy__size input:disabled + span {
	opacity: 0.45;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* Product page without 3D: photos left, text and buy box right */
.pd-product {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: start;
	max-width: 1240px !important;
	margin: clamp(48px, 7vw, 96px) auto 0 !important;
}

.pd-product--no-photo {
	grid-template-columns: minmax(0, 1fr);
	max-width: 640px !important;
}

.pd-product__photos {
	display: grid;
	gap: 12px;
}

.pd-product__photos.has-more {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pd-product__photos.has-more .pd-product__photo:first-child {
	grid-column: 1 / -1;
}

.pd-product__photo {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
}

.pd-product__info {
	position: sticky;
	top: 120px;
}

.pd-product__excerpt {
	margin: 0 0 1.2em;
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.55;
}

.pd-product .pd-buy {
	margin: 0;
	padding: 0;
	text-align: left;
}

.pd-product .pd-buy__form,
.pd-product .pd-buy__sizes {
	align-items: flex-start;
	justify-content: flex-start;
}

.pd-product .pd-buy__row {
	justify-content: flex-start;
}

@media (max-width: 800px) {
	.pd-product {
		grid-template-columns: minmax(0, 1fr);
	}

	.pd-product__info {
		position: static;
	}
}

/* Shop: category buttons */
.pd-filter ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 clamp(32px, 5vw, 56px);
	padding: 0;
	list-style: none;
}

.pd-filter a {
	display: block;
	padding: 0.55em 1.2em;
	border: 2px solid color-mix(in srgb, var(--pd-accent, #b04a26) 30%, transparent);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pd-filter a:hover,
.pd-filter a:focus-visible {
	border-color: var(--pd-accent, #b04a26);
}

.pd-filter a[aria-current="page"] {
	border-color: var(--pd-accent, #b04a26);
	background: var(--pd-accent, #b04a26);
	color: #fff;
}

/* ------------------------------------------------------------------ */
/* Slider caption: price and actions                                   */
/* ------------------------------------------------------------------ */

.pd-slider__price {
	order: 1;
	margin: 0 0 0.3em;
	font-size: 22px;
	font-weight: 700;
	color: var(--pd-accent);
}

.pd-slider__price:empty {
	display: none;
}

.pd-slider__actions {
	order: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.pd-slider__add {
	padding: 0.85em 1.8em;
	border: 0;
	border-radius: 999px;
	background: var(--pd-accent);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 24px rgb(20 40 46 / 0.18);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.pd-slider__add:hover,
.pd-slider__add:focus-visible {
	transform: scale(1.04);
}

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

/* ------------------------------------------------------------------ */
/* Quick add on cards                                                  */
/* ------------------------------------------------------------------ */

.pd-card {
	position: relative;
}

.pd-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--pd-accent);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 18px rgb(20 40 46 / 0.16);
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pd-add svg {
	width: 18px;
	height: 18px;
	flex: none;
}

/* Bottom right corner of the photo, which is the card width at 4:5. */
.pd-card__add {
	position: absolute;
	right: 12px;
	top: 0;
	z-index: 2;
	height: 44px;
	padding: 0 16px 0 12px;
	font-size: 14px;
	margin-top: calc(125% - 56px); /* % margins follow the width */
}

.pd-card__add:hover,
.pd-card__add:focus-visible {
	background: var(--pd-accent);
	color: #fff;
}

.pd-add.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.pd-add.is-done {
	background: var(--pd-new-bg, #8ccfc4);
	color: var(--pd-new-ink, #1f3a36);
}

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

	.pd-card__add {
		right: 8px;
		width: 44px;
		padding: 0;
		margin-top: calc(125% - 52px);
	}

	.pd-card__add .pd-add__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
}

/* ------------------------------------------------------------------ */
/* Cart drawer                                                         */
/* ------------------------------------------------------------------ */

.pd-drawer-open,
.pd-drawer-open body {
	overflow: hidden;
}

.pd-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

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

.pd-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(8 30 36 / 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.pd-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(100%, 420px);
	background: var(--pd-bg, #fbf7f2);
	color: var(--pd-ink, #1d2b30);
	box-shadow: -12px 0 40px rgb(8 30 36 / 0.2);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
	outline: none;
}

.pd-drawer.is-open .pd-drawer__backdrop {
	opacity: 1;
}

.pd-drawer.is-open .pd-drawer__panel {
	transform: none;
}

.pd-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.pd-drawer__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.pd-drawer__close {
	width: 44px;
	height: 44px;
	margin-right: -10px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.pd-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 8px 20px;
}

.pd-drawer__empty {
	margin: 40px 0;
	font-size: 17px;
	text-align: center;
}

.pd-drawer__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pd-drawer__item {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
	transition: opacity 0.2s ease;
}

.pd-drawer__item.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.pd-drawer__thumb img {
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 12px;
	background: #fff;
	object-fit: cover;
}

.pd-drawer__name {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
	text-decoration: none;
}

.pd-drawer__var {
	display: block;
	font-size: 14px;
	opacity: 0.75;
}

.pd-drawer__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}

.pd-drawer__qty {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent);
	border-radius: 999px;
}

.pd-drawer__qty button {
	width: 36px;
	height: 36px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 18px;
	cursor: pointer;
}

.pd-drawer__qty button:disabled {
	opacity: 0.3;
	cursor: default;
}

.pd-drawer__qty span {
	min-width: 2ch;
	font-weight: 700;
	text-align: center;
}

.pd-drawer__price {
	font-weight: 700;
}

.pd-drawer__remove {
	margin-top: 6px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	opacity: 0.7;
	cursor: pointer;
}

.pd-drawer__foot {
	padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	background: #fff;
}

.pd-drawer__total {
	display: flex;
	justify-content: space-between;
	margin: 0;
	font-size: 18px;
}

.pd-drawer__note {
	margin: 4px 0 14px;
	font-size: 13px;
	opacity: 0.7;
}

.pd-drawer__checkout {
	display: flex !important;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

.pd-drawer__more {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 10px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.pd-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100001;
	max-width: min(92vw, 420px);
	margin: 0;
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--pd-ink, #1d2b30);
	color: #fff;
	font-size: 15px;
	transform: translate(-50%, 20px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.pd-toast.is-in {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------ */
/* Phone buy bar                                                       */
/* ------------------------------------------------------------------ */

.pd-buybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: #fff;
	color: var(--pd-ink, #1d2b30);
	box-shadow: 0 -8px 24px rgb(8 30 36 / 0.14);
	text-align: left;
	transform: translateY(110%);
	transition: transform 0.3s ease;
}

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

.pd-buybar > p {
	display: contents;
}

.pd-buybar.is-in {
	transform: none;
}

.pd-buybar__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.pd-buybar__text strong {
	overflow: hidden;
	font-size: 16px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.pd-buybar__text span {
	font-size: 15px;
	font-weight: 600;
	color: var(--pd-accent);
}

.pd-buybar__button {
	flex: none;
	padding: 0.8em 1.4em !important;
	border: 0;
	font: inherit;
	cursor: pointer;
}

.pd-buy__row > p {
	display: contents;
}

@media (min-width: 801px) {
	.pd-buybar {
		display: none !important;
	}
}

/* ------------------------------------------------------------------ */
/* Shop: search and sort                                               */
/* ------------------------------------------------------------------ */

.pd-shop-tools {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 auto clamp(28px, 4vw, 44px);
}

.pd-shop-tools > p:not(.pd-shop-tools__empty) {
	display: contents;
}

.pd-shop-tools__search {
	position: relative;
	flex: 1 1 260px;
	max-width: 420px;
}

.pd-shop-tools__search svg {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	opacity: 0.6;
	pointer-events: none;
}

.pd-shop-tools input,
.pd-shop-tools select {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 18px;
	border: 2px solid color-mix(in srgb, var(--pd-accent, #b04a26) 25%, transparent);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 16px;
}

.pd-shop-tools input {
	padding-left: 44px;
}

.pd-shop-tools input:focus,
.pd-shop-tools select:focus {
	border-color: var(--pd-accent, #b04a26);
	outline: none;
}

.pd-shop-tools__sort {
	flex: 0 1 220px;
}

.pd-shop-tools__empty {
	flex-basis: 100%;
	margin: 24px 0 0;
	font-size: 17px;
	text-align: center;
}

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

.pd-drawer__thumb img.is-strip {
	object-position: 0 50%;
}
