/*
 * Product page, after Kawaii-Life-Static-HTML/product-details.html.
 *
 * Loaded on product pages only (kawaii_life_product_assets()). The markup is
 * WooCommerce's classic single product as rearranged in
 * inc/single-product.php; the design's `pd-*` class names are kept so the
 * two can be read side by side. Breakpoints follow the reference: 1050px
 * (one column), 900px (thumbnails under the image) and 650px (phones).
 */

.kawaii-product-page {
	--pd-pink: var(--wp--preset--color--accent-1);
	--pd-pink-soft: var(--wp--preset--color--accent-2);
	--pd-ink: var(--wp--preset--color--contrast);
	--pd-muted: var(--wp--preset--color--accent-4);
	--pd-line: var(--wp--preset--color--accent-6);
	--pd-pink-line: var(--wp--custom--color--pink-line);
	--pd-star: var(--wp--custom--color--star);
	--pd-surface: var(--wp--custom--color--surface);
	--pd-shadow: 0 12px 35px rgb(80 50 80 / 9%);

	color: var(--pd-ink);
}

.kawaii-product-page *,
.kawaii-product-page *::before,
.kawaii-product-page *::after {
	box-sizing: border-box;
}

/* The template's sections are full width; the product sets its own. */
.kawaii-product-page > * {
	margin-block-start: 0;
}

/* ---------- Page frame ---------- */

.kawaii-product-page .pd-crumb,
.kawaii-product-page .woocommerce-notices-wrapper,
.kawaii-product-page .pd-product {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 5%;
}

.kawaii-product-page .pd-crumb {
	margin-top: 26px;
	font-size: 12px;
	font-weight: 700;
	color: var(--pd-muted);
}

.kawaii-product-page .pd-crumb a {
	color: var(--pd-muted);
	text-decoration: none;
}

.kawaii-product-page .pd-crumb a:hover,
.kawaii-product-page .pd-crumb a:focus-visible {
	color: var(--pd-pink);
}

/* The current product: the trail's last, unlinked part. */
.kawaii-product-page .pd-crumb {
	--pd-crumb-current: var(--pd-ink);
}

.kawaii-product-page .pd-crumb__sep {
	margin-inline: 2px;
}

.kawaii-product-page .woocommerce-notices-wrapper:not(:empty) {
	margin-top: 16px;
}

.kawaii-product-page .pd-product {
	margin-top: 20px;
	margin-bottom: 80px;
}

/* ---------- Grid: gallery | info, tabs under the gallery ---------- */

.pd-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	/* The second row takes what the info column leaves, so the tabs sit right under the gallery. */
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"media info"
		"details info";
	column-gap: 50px;
	align-items: start;
}

.pd-media {
	grid-area: media;
	min-width: 0;
}

.kawaii-product-page div.pd-product.product .pd-info {
	grid-area: info;
	min-width: 0;
	/* The block theme's 22px / 1.4 would pad every inline line box. */
	font-size: 16px;
	line-height: normal;
}

/* WooCommerce floats the summary at 48% for its own two-column layout. */
.kawaii-product-page div.pd-product.product div.summary,
.kawaii-product-page div.pd-product.product div.pd-media {
	float: none;
	width: auto;
	margin: 0;
}

.pd-details {
	grid-area: details;
	min-width: 0;
	padding-top: 82px;
}

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

.pd-gallery {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.pd-thumbs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-shrink: 0;
	max-height: 528px;
	padding: 2px;
	overflow-y: auto;
	scrollbar-width: none;
}

.pd-thumbs::-webkit-scrollbar {
	display: none;
}

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

.pd-thumb {
	width: 68px;
	height: 68px;
	flex-shrink: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 16px;
	background: var(--pd-pink-soft);
	cursor: pointer;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.pd-thumb:hover {
	transform: translateY(-2px);
}

.pd-thumb.active {
	border-color: var(--pd-pink);
}

.pd-mainimg-wrap {
	position: relative;
	flex: 1;
	min-width: 0;
}

.pd-badges {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.pd-badges .pd-brand-badge {
	position: static;
	top: auto;
	left: auto;
}

.pd-brand-badge {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 3;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgb(255 255 255 / 85%);
	backdrop-filter: blur(2px);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 1px;
	color: var(--pd-ink);
}

.pd-brand-badge--sale,
.pd-brand-badge--new,
.pd-brand-badge--bestseller {
	background: var(--pd-pink);
	color: var(--wp--preset--color--white);
}

.pd-mainimg {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1.05;
	overflow: hidden;
	border-radius: 28px;
	background: var(--pd-pink-soft);
	box-shadow: 0 7px 25px rgb(75 48 64 / 4%);
	cursor: zoom-in;
}

.pd-mainimg .swiper-wrapper {
	height: 100%;
}

.pd-slide {
	height: 100%;
}

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

.pd-zoom-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 92%);
	box-shadow: 0 8px 20px rgb(75 48 64 / 16%);
	font-size: 16px;
	color: var(--pd-ink);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(0.85);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.pd-mainimg:hover .pd-zoom-btn,
.pd-zoom-btn:focus-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
}

/* Touch screens have no hover: the + waits in a corner instead. */
@media (hover: none) {
	.pd-zoom-btn {
		top: auto;
		bottom: 16px;
		left: 16px;
		width: 42px;
		height: 42px;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}
}

.pd-watch-card {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 118px;
	padding: 8px 8px 10px;
	border: 0;
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 10px 25px rgb(75 48 64 / 16%);
	cursor: pointer;
	transition: transform 0.2s ease;
}

.pd-watch-card:hover {
	transform: translateY(-3px);
}

.pd-watch-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 12px;
	background: linear-gradient(145deg, var(--pd-pink-soft), #fff0b8) center / cover no-repeat;
}

.pd-watch-play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgb(255 255 255 / 92%);
	font-size: 13px;
	color: var(--pd-pink);
}

.pd-watch-label {
	font-size: 10px;
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: 0.3px;
	text-align: center;
	color: var(--pd-ink);
}

/* ---------- Info column ---------- */

.pd-category {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--pd-pink-soft);
	font-size: 11px;
	font-weight: 900;
	color: var(--pd-pink);
	text-decoration: none;
}

.kawaii-product-page div.pd-product.product .pd-info .product_title {
	margin: 0 0 10px;
	/* Fixed, as in the reference; fluid typography would shrink the saved size. */
	font-size: clamp(28px, 3vw, 38px);
	line-height: 0.92;
	letter-spacing: -1.4px;
}

.pd-sku {
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 700;
	color: var(--pd-muted);
}

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

.pd-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	font-size: 14px;
}

.pd-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--pd-star);
}

/* The reference's "(24 reviews)" takes the row's star gold, size and weight. */
.pd-rating-link {
	font-size: 14px;
	font-weight: 400;
	color: var(--pd-star);
	text-decoration: underline;
}

.pd-tagline {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 700;
	color: var(--pd-muted);
}

.pd-tagline__dot {
	margin-inline: 8px;
}

.pd-price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.pd-now {
	font-size: 28px;
	font-weight: 900;
	color: var(--pd-ink);
}

/* Ranges keep WooCommerce's markup: "from – to", or the old price struck through. */
.pd-now del {
	font-size: 15px;
	font-weight: 400;
	color: var(--pd-muted);
}

.pd-now ins {
	text-decoration: none;
}

.pd-was {
	font-size: 15px;
	color: var(--pd-muted);
}

.pd-off {
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--wp--custom--color--success-soft);
	font-size: 11px;
	font-weight: 900;
	color: var(--wp--custom--color--success);
}

.pd-price-note {
	margin: -12px 0 22px;
	font-size: 12px;
	color: var(--pd-muted);
}

/*
 * WooCommerce's block-theme styles put the block gap under every child of
 * the summary (`.woocommerce div.product div.summary > *`), which outweighs
 * the margins above and evens every gap out to 19px. Give the design's
 * spacing back at a higher weight.
 */
.kawaii-product-page div.pd-product.product div.summary > * {
	margin-top: 0;
	margin-bottom: 0;
}

.kawaii-product-page div.pd-product.product div.summary > .pd-category {
	margin-bottom: 14px;
}

.kawaii-product-page div.pd-product.product div.summary > .pd-sku {
	margin-bottom: 10px;
}

.kawaii-product-page div.pd-product.product div.summary > .pd-rating,
.kawaii-product-page div.pd-product.product div.summary > .pd-tagline {
	margin-bottom: 18px;
}

/* WooCommerce's rating row is a block with line-height 2. */
.kawaii-product-page div.pd-product.product div.summary > .pd-rating {
	display: flex;
	line-height: normal;
}

/* Its clearfix ::before / ::after would be empty flex items, and the gap after them indents the stars. */
.kawaii-product-page div.pd-product.product div.summary > .pd-rating::before,
.kawaii-product-page div.pd-product.product div.summary > .pd-rating::after {
	content: none;
}

.kawaii-product-page div.pd-product.product div.summary > .pd-price {
	margin-bottom: 20px;
}

.kawaii-product-page div.pd-product.product div.summary > .pd-price-note {
	margin: -12px 0 22px;
}

.kawaii-product-page div.pd-product.product div.summary > .pd-offers {
	margin-bottom: 22px;
}

.kawaii-product-page div.pd-product.product div.summary > .pd-delivery {
	margin-bottom: 6px;
}

/* "Only N left!" over the quantity row, and the out of stock pill over the heart. */
.kawaii-product-page div.pd-product.product div.summary > .pd-stock {
	margin-bottom: 16px;
}

/* Stock: nothing while plenty is left. */
.kawaii-product-page div.pd-product.product .pd-stock {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: normal;
	font-weight: 800;
}

.kawaii-product-page div.pd-product.product .pd-stock--low {
	color: var(--pd-pink);
}

.kawaii-product-page div.pd-product.product .pd-stock--backorder {
	color: var(--pd-muted);
}

.kawaii-product-page div.pd-product.product .pd-stock--out {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--wp--custom--color--error-background);
	color: var(--wp--custom--color--error);
}

/* ---------- Variations: swatches over WooCommerce's selects ---------- */

.kawaii-product-page div.pd-product.product .pd-info table.variations {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 13px;
	line-height: normal;
}

.kawaii-product-page div.pd-product.product .pd-info table.variations tbody {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 18px 24px;
}

.kawaii-product-page div.pd-product.product .pd-info table.variations tr {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.kawaii-product-page div.pd-product.product .pd-info table.variations th,
.kawaii-product-page div.pd-product.product .pd-info table.variations td {
	padding: 0;
	line-height: normal;
	border: 0;
	text-align: left;
}

.kawaii-product-page div.pd-product.product .pd-info table.variations th.label label {
	display: block;
	line-height: normal;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--pd-muted);
}

/*
 * The select stays in the form for WooCommerce's script; the swatches stand
 * in for it. Weighted over the dropdown rule below, whose 180px min-width
 * would otherwise poke past the screen edge (clipped, but still scrollable)
 * from 667px landscape phones to 1180px iPads.
 */
.kawaii-product-page div.pd-product.product form.pd-swatches-ready table.variations select.pd-swatch-select {
	position: absolute;
	width: 1px;
	min-width: 0;
	height: 1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Without the swatch script: WooCommerce's dropdowns, rounded. */
.kawaii-product-page div.pd-product.product .pd-info table.variations select {
	min-width: 180px;
	padding: 10px 14px;
	border: 1px solid var(--pd-line);
	border-radius: 12px;
	background-color: var(--wp--preset--color--white);
	font: inherit;
	font-size: 13px;
	color: var(--pd-ink);
}

.kawaii-product-page div.pd-product.product .pd-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 2px;
}

.kawaii-product-page div.pd-product.product .pd-swatch {
	position: relative;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kawaii-product-page div.pd-product.product .pd-swatch:hover {
	transform: translateY(-2px);
}

.kawaii-product-page div.pd-product.product .pd-swatch:focus-visible {
	outline: 2px solid var(--pd-pink);
	outline-offset: 3px;
}

/* A choice that no variation offers with the rest of the selection. */
.kawaii-product-page div.pd-product.product .pd-swatch.is-unavailable {
	opacity: 0.4;
}

.kawaii-product-page div.pd-product.product .pd-swatch.is-unavailable::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -2px;
	right: -2px;
	z-index: 1;
	height: 2px;
	background: var(--pd-muted);
	transform: rotate(-35deg);
}

/* Image: the design's style tabs. */
.kawaii-product-page div.pd-product.product .pd-swatch--image {
	width: 44px;
	height: 44px;
	overflow: visible;
	border: 2px solid var(--pd-line);
	border-radius: 12px;
	background: var(--wp--preset--color--white);
}

.kawaii-product-page div.pd-product.product .pd-swatch--image img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 10px;
	object-fit: cover;
}

.kawaii-product-page div.pd-product.product .pd-swatch--image:hover {
	border-color: var(--pd-pink-line);
}

.kawaii-product-page div.pd-product.product .pd-swatch--image.is-selected {
	border-color: var(--pd-pink);
	background: var(--wp--custom--color--tint);
	box-shadow: 0 0 0 3px rgb(255 121 167 / 15%);
}

.kawaii-product-page div.pd-product.product .pd-swatch__check {
	position: absolute;
	right: -5px;
	bottom: -5px;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--pd-pink);
	box-shadow: 0 0 0 2px var(--wp--preset--color--white);
	font-size: 8px;
	color: var(--wp--preset--color--white);
}

.kawaii-product-page div.pd-product.product .pd-swatch--image.is-selected .pd-swatch__check {
	display: flex;
}

/* Color: round dots. */
.kawaii-product-page div.pd-product.product .pd-swatch--color {
	width: 28px;
	height: 28px;
	border: 2px solid var(--wp--preset--color--white);
	border-radius: 50%;
	background: var(--pd-swatch);
	box-shadow: 0 0 0 2px var(--pd-line);
}

.kawaii-product-page div.pd-product.product .pd-swatch--color.is-selected {
	box-shadow: 0 0 0 2px var(--pd-pink);
}

.kawaii-product-page div.pd-product.product .pd-swatch--color .pd-swatch__check {
	inset: 0;
	width: auto;
	height: auto;
	background: none;
	box-shadow: none;
	font-size: 10px;
	filter: drop-shadow(0 0 2px rgb(0 0 0 / 35%));
}

.kawaii-product-page div.pd-product.product .pd-swatch--color.is-selected .pd-swatch__check {
	display: flex;
}

/* Text: pills. */
.kawaii-product-page div.pd-product.product .pd-swatch--text {
	min-width: 44px;
	padding: 9px 14px;
	border: 2px solid var(--pd-line);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	font-size: 12px;
	font-weight: 800;
	color: var(--pd-ink);
}

.kawaii-product-page div.pd-product.product .pd-swatch--text.is-selected {
	border-color: var(--pd-pink);
	background: var(--wp--custom--color--tint);
	color: var(--pd-pink);
}

.kawaii-product-page div.pd-product.product .pd-swatch-selected {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 800;
	color: var(--pd-muted);
}

.kawaii-product-page div.pd-product.product .pd-swatch-selected:empty {
	display: none;
}

/* The attribute the sticky bar sent the shopper back to. */
.kawaii-product-page div.pd-product.product .pd-info table.variations tr.is-missing th.label label {
	color: var(--pd-pink);
}

.kawaii-product-page div.pd-product.product .pd-info table.variations tr.is-missing .pd-swatches {
	animation: pd-nudge 0.5s ease;
}

@keyframes pd-nudge {
	20%,
	60% {
		transform: translateX(-4px);
	}

	40%,
	80% {
		transform: translateX(4px);
	}
}

.kawaii-product-page div.pd-product.product .pd-info .reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	line-height: normal;
	font-weight: 700;
	color: var(--pd-muted);
}

/* The variation's price shows in the price block above, not here. */
.kawaii-product-page div.pd-product.product .pd-info .woocommerce-variation-price {
	display: none;
}

.kawaii-product-page div.pd-product.product .pd-info .single_variation_wrap {
	margin-top: 22px;
}

/* Empty until a variation is chosen; its stock line and description carry
   their own margins, so WooCommerce's block gap under it only doubled the
   space over the quantity row. */
.kawaii-product-page div.pd-product.product .pd-info .single_variation_wrap .single_variation {
	margin: 0;
}

.kawaii-product-page div.pd-product.product .pd-info .woocommerce-variation-description p {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--pd-muted);
}

/* ---------- Quantity, Add to Cart, heart, Buy It Now ---------- */

.kawaii-product-page div.pd-product.product .pd-info form.cart {
	margin: 0;
}

.kawaii-product-page div.pd-product.product .pd-qty-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}

.kawaii-product-page div.pd-product.product .pd-qty-row .quantity {
	display: flex;
	flex-shrink: 0;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid var(--pd-line);
	border-radius: 14px;
}

/* "Sold individually": WooCommerce prints a hidden field, so no stepper. */
.kawaii-product-page div.pd-product.product .pd-qty-row .quantity:has(input[type="hidden"]) {
	display: none;
}

.kawaii-product-page div.pd-product.product .pd-qty-row .quantity .qty {
	width: 44px;
	height: 46px;
	padding: 0;
	border: 0;
	border-inline: 1px solid var(--pd-line);
	border-radius: 0;
	background: var(--wp--preset--color--white);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	text-align: center;
	color: var(--pd-ink);
	-moz-appearance: textfield;
	appearance: textfield;
}

.kawaii-product-page div.pd-product.product .pd-qty-row .quantity .qty::-webkit-inner-spin-button,
.kawaii-product-page div.pd-product.product .pd-qty-row .quantity .qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.kawaii-product-page div.pd-product.product .pd-qty-row .kawaii-qty-btn {
	display: none;
	width: 40px;
	border: 0;
	background: var(--pd-surface);
	font-size: 16px;
	font-weight: 800;
	color: var(--pd-ink);
	cursor: pointer;
}

.kawaii-product-enhanced .kawaii-product-page div.pd-product.product .pd-qty-row .kawaii-qty-btn {
	display: block;
}

.kawaii-product-page div.pd-product.product .pd-qty-row .kawaii-qty-btn:hover {
	background: var(--pd-pink-soft);
	color: var(--pd-pink);
}

/* Buttons, after the reference's .btn. */
.kawaii-product-page .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	padding: 14px 20px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 12px;
	font-weight: 900;
	line-height: normal;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

/* Pink: the shine sweeps across on hover. */
.kawaii-product-page .btn.primary {
	position: relative;
	z-index: 0;
	overflow: hidden;
	background: var(--pd-pink);
	color: var(--wp--preset--color--white);
}

.kawaii-product-page .btn.primary::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	z-index: -1;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(90deg, transparent, rgb(243 243 243 / 25%), transparent);
	transform: skew(-15deg);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.kawaii-product-page .btn.primary:hover::after {
		animation: kawaii-shine 1000ms ease;
	}
}

/* Outlined: black rises from the bottom on hover. */
.kawaii-product-page .btn.light,
.kawaii-product-page .pd-addcart {
	position: relative;
	z-index: 0;
	overflow: hidden;
	border: 1px solid var(--pd-ink);
	background: var(--wp--preset--color--white);
	color: var(--pd-ink);
	transition: color 0.25s ease, border-color 0.25s ease;
}

.kawaii-product-page .btn.light::after,
.kawaii-product-page .pd-addcart::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 120%;
	background: #000;
	transform: rotate3d(0, 0, 1, 10deg) translate3d(-1.2em, 110%, 0);
	transform-origin: 0% 100%;
	transition: transform 0.45s ease;
}

.kawaii-product-page .btn.light:hover,
.kawaii-product-page .pd-addcart:hover {
	border-color: #000;
	color: var(--wp--preset--color--white);
}

.kawaii-product-page .btn.light:hover::after,
.kawaii-product-page .pd-addcart:hover::after {
	transform: none;
}

.kawaii-product-page .pd-addcart {
	flex: 1;
	min-width: 0;
	padding: 15px;
}

/* WooCommerce disables it until a variation is chosen. */
.kawaii-product-page .single_add_to_cart_button.disabled,
.kawaii-product-page .pd-buynow.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.kawaii-product-page .single_add_to_cart_button.disabled::after,
.kawaii-product-page .pd-buynow.disabled::after {
	display: none;
}

.kawaii-product-page .single_add_to_cart_button.disabled:hover {
	border-color: var(--pd-ink);
	color: var(--pd-ink);
}

.kawaii-product-page .pd-buynow {
	width: 100%;
	padding: 16px 15px;
}

/*
 * The space over Offers. On a simple product it is the add-to-cart submit,
 * so WooCommerce's `form.cart button[name="add-to-cart"]` zeroes a lighter
 * margin.
 */
.kawaii-product-page div.pd-product.product form.cart .pd-buynow {
	margin-bottom: 20px;
}

/* TI Wishlist's button, as the round heart. */
.kawaii-product-page div.pd-product.product .pd-wish {
	flex-shrink: 0;
}

.kawaii-product-page div.pd-product.product .pd-wish .tinv-wraper {
	margin: 0;
}

.kawaii-product-page div.pd-product.product .pd-wish .tinv-wishlist-clear,
.kawaii-product-page div.pd-product.product .pd-wish .tinvwl-tooltip {
	display: none;
}

.kawaii-product-page div.pd-product.product .pd-wish .tinvwl_add_to_wishlist_button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0;
	border: 1px solid var(--pd-line);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	font-size: 16px;
	color: var(--pd-muted);
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease;
}

/* The same heart masks as the product cards' (theme.json's styles.css). */
.kawaii-product-page div.pd-product.product .pd-wish .tinvwl_add_to_wishlist_button::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	margin: 0;
	background-color: currentColor;
	-webkit-mask: var(--kawaii-heart-line) center / 18px 18px no-repeat;
	mask: var(--kawaii-heart-line) center / 18px 18px no-repeat;
}

.kawaii-product-page div.pd-product.product .pd-wish .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before {
	-webkit-mask-image: var(--kawaii-heart-fill);
	mask-image: var(--kawaii-heart-fill);
}

.kawaii-product-page div.pd-product.product .pd-wish .tinvwl_add_to_wishlist_button:hover,
.kawaii-product-page div.pd-product.product .pd-wish .tinvwl_add_to_wishlist_button.tinvwl-product-in-list {
	color: var(--pd-pink);
}

.kawaii-product-page div.pd-product.product .pd-wish .tinvwl_add_to_wishlist_button:hover {
	transform: scale(1.08);
}

.kawaii-product-page div.pd-product.product .pd-wish .tinvwl_add_to_wishlist-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Out of stock: the heart alone, under the chip. */
.kawaii-product-page div.pd-product.product .pd-info > .pd-wish {
	margin-bottom: 22px;
}

/* ---------- Bundle (WPC Product Bundles) ---------- */

/* The bundled items, drawn as the grouped list's cards. */
.kawaii-product-page div.pd-product.product .woosb-products {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 18px;
	border: 0;
}

.kawaii-product-page div.pd-product.product .woosb-products .woosb-product {
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 12px 16px 12px 12px;
	border: 1px solid var(--pd-line);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	font-family: inherit;
}

.kawaii-product-page div.pd-product.product .woosb-products .woosb-product > div {
	padding: 0;
}

.kawaii-product-page div.pd-product.product .woosb-products .woosb-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--pd-pink-soft);
}

.kawaii-product-page div.pd-product.product .woosb-products .woosb-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

.kawaii-product-page div.pd-product.product .woosb-products .woosb-title {
	flex: 1;
	min-width: 0;
}

.kawaii-product-page div.pd-product.product .woosb-products .woosb-name {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--pd-ink);
}

.kawaii-product-page div.pd-product.product .woosb-products .woosb-name a {
	color: inherit;
	text-decoration: none;
}

.kawaii-product-page div.pd-product.product .woosb-products .woosb-name a:hover {
	color: var(--pd-pink);
}

.kawaii-product-page div.pd-product.product .woosb-products .woosb-price {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.35;
	text-align: right;
	color: var(--pd-ink);
}

.kawaii-product-page div.pd-product.product .woosb-products .woosb-price del {
	display: block;
	font-weight: 400;
	color: var(--pd-muted);
}

.kawaii-product-page div.pd-product.product .woosb-products .woosb-price ins {
	font-weight: 900;
	text-decoration: none;
}

/* Narrow phones (360px Androids, the 320px guard): room for the names. */
@media (max-width: 380px) {
	.kawaii-product-page div.pd-product.product .woosb-products .woosb-product {
		gap: 10px;
		padding: 10px 12px 10px 10px;
	}

	.kawaii-product-page div.pd-product.product .woosb-products .woosb-thumb {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
		border-radius: 10px;
	}

	.kawaii-product-page div.pd-product.product .woosb-products .woosb-name {
		font-size: 13px;
		overflow-wrap: anywhere;
	}
}

/* ---------- Grouped and external ---------- */

.kawaii-product-page div.pd-product.product .pd-grouped {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.kawaii-product-page div.pd-product.product .pd-grouped__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border: 1px solid var(--pd-line);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
}

.kawaii-product-page div.pd-product.product .pd-grouped__thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--pd-pink-soft);
}

.kawaii-product-page div.pd-product.product .pd-grouped__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kawaii-product-page div.pd-product.product .pd-grouped__info {
	flex: 1;
	min-width: 0;
}

.kawaii-product-page div.pd-product.product .pd-grouped__name {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 800;
	color: var(--pd-ink);
	text-decoration: none;
}

.kawaii-product-page div.pd-product.product .pd-grouped__name:hover {
	color: var(--pd-pink);
}

.kawaii-product-page div.pd-product.product .pd-grouped__price {
	font-size: 13px;
	font-weight: 900;
}

.kawaii-product-page div.pd-product.product .pd-grouped__price del {
	font-weight: 400;
	color: var(--pd-muted);
}

.kawaii-product-page div.pd-product.product .pd-grouped__price ins {
	text-decoration: none;
}

.kawaii-product-page div.pd-product.product .pd-grouped__item .pd-stock {
	margin: 4px 0 0;
	font-size: 12px;
}

.kawaii-product-page div.pd-product.product .pd-grouped__qty .quantity {
	display: flex;
	overflow: hidden;
	border: 1px solid var(--pd-line);
	border-radius: 12px;
}

.kawaii-product-page div.pd-product.product .pd-grouped__qty .quantity .qty {
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-inline: 1px solid var(--pd-line);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.kawaii-product-page div.pd-product.product .pd-grouped__qty .quantity .qty::-webkit-inner-spin-button,
.kawaii-product-page div.pd-product.product .pd-grouped__qty .quantity .qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.kawaii-product-page div.pd-product.product .pd-grouped__qty .kawaii-qty-btn {
	display: none;
	width: 32px;
	border: 0;
	background: var(--pd-surface);
	font-weight: 800;
	color: var(--pd-ink);
	cursor: pointer;
}

.kawaii-product-enhanced .kawaii-product-page div.pd-product.product .pd-grouped__qty .kawaii-qty-btn {
	display: block;
}

.kawaii-product-page div.pd-product.product .pd-grouped__qty .btn,
.kawaii-product-page div.pd-product.product .pd-grouped__qty .button {
	min-height: 38px;
	padding: 10px 14px;
	font-size: 11px;
}

.kawaii-product-page div.pd-product.product .pd-grouped__qty input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--pd-pink);
}

.kawaii-product-page div.pd-product.product .pd-info .pd-external {
	width: 100%;
	margin-bottom: 20px;
	padding: 16px 15px;
}

/* ---------- Offers for you ---------- */

.pd-offers {
	margin-bottom: 22px;
}

.pd-offer-heading {
	line-height: normal;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--pd-ink);
}

.pd-offer-heading .kawaii-icon {
	color: var(--pd-pink);
}

.pd-offer-viewport {
	position: relative;
	max-width: 500px;
	padding: 0 6px 30px;
}

.pd-offer-swiper {
	overflow: hidden;
}

.pd-offer-card {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 150px;
	overflow: hidden;
	border-radius: 20px;
	box-shadow: 0 10px 24px rgb(75 48 64 / 8%);
}

/* The ticket's punched notches between stub and panel. */
.pd-offer-card::before,
.pd-offer-card::after {
	content: "";
	position: absolute;
	left: 78px;
	z-index: 3;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	transform: translate(-50%, -50%);
}

.pd-offer-card::before {
	top: 0;
}

.pd-offer-card::after {
	top: 100%;
}

.pd-offer-stub {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 78px;
	font-size: 22px;
	color: var(--wp--preset--color--white);
	background: linear-gradient(165deg, #ff9dc2, #ff7aa9);
}

.pd-offer-card--ticket .pd-offer-stub {
	background: linear-gradient(165deg, #9fb8f2, #8a8af0);
}

.pd-offer-card--truck .pd-offer-stub {
	background: linear-gradient(165deg, #6fd4a8, #4fbf95);
}

.pd-offer-panel {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	min-width: 0;
	padding: 22px 22px 16px;
	background: linear-gradient(120deg, #f4e8ff, #ffdce9 55%, #fff1cb);
}

.pd-offer-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pd-offer-eyebrow {
	font-size: 12px;
	font-weight: 650;
	color: #8a7a82;
}

.pd-offer-value {
	font-size: 23px;
	font-weight: 900;
	letter-spacing: -0.4px;
	color: #ff5f96;
}

.pd-offer-desc {
	font-size: 13px;
	font-weight: 650;
	color: #ff5f96;
}

.pd-offer-card--ticket .pd-offer-value,
.pd-offer-card--ticket .pd-offer-desc {
	color: #6a72e0;
}

.pd-offer-card--truck .pd-offer-value,
.pd-offer-card--truck .pd-offer-desc {
	color: #2fa87d;
}

.pd-offer-divider {
	display: block;
	height: 1px;
	background: #d9d4d7;
}

.pd-offer-view {
	align-self: center;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--pd-ink);
	cursor: pointer;
}

.pd-offer-view:hover {
	color: var(--pd-pink);
}

.pd-offer-float-arrow {
	position: absolute;
	top: calc(50% - 15px);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	box-shadow: 0 6px 16px rgb(0 0 0 / 18%);
	font-size: 12px;
	color: var(--pd-ink);
	cursor: pointer;
	transform: translateY(-50%);
}

.pd-offer-float-prev {
	left: -6px;
}

.pd-offer-float-next {
	right: -6px;
}

.pd-offer-float-arrow:hover {
	color: var(--pd-pink);
}

.pd-offer-float-arrow.swiper-button-disabled,
.pd-offer-float-arrow.swiper-button-lock {
	opacity: 0;
	pointer-events: none;
}

.pd-offer-dots {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.pd-offer-dots .swiper-pagination-bullet {
	width: 7px;
	height: 7px;
	margin: 0 !important;
	border-radius: 999px;
	background: var(--pd-line);
	opacity: 1;
	transition: width 0.2s ease, background 0.2s ease;
}

.pd-offer-dots .swiper-pagination-bullet-active {
	width: 20px;
	background: var(--pd-pink);
}

/* ---------- Expected delivery ---------- */

.pd-delivery {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	padding: 13px 16px;
	border: 1px solid var(--pd-line);
	border-radius: 14px;
	background: var(--pd-surface);
	font-size: 13px;
	font-weight: 700;
	color: var(--pd-ink);
}

.pd-delivery .kawaii-icon {
	color: var(--pd-pink);
}

/* ---------- Tabs (WooCommerce's markup; its script switches them) ---------- */

.kawaii-product-page div.pd-product.product .pd-details .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 28px;
	margin: 0 0 20px;
	padding: 0;
	overflow-x: auto;
	border-bottom: 1px solid var(--pd-line);
	list-style: none;
	scrollbar-width: none;
}

.pd-details .woocommerce-tabs ul.tabs::-webkit-scrollbar {
	display: none;
}

/* WooCommerce draws its tabs as bordered folders; the design's are plain words. */
.kawaii-product-page div.pd-product.product .pd-details .woocommerce-tabs ul.tabs::before,
.kawaii-product-page div.pd-product.product .pd-details .woocommerce-tabs ul.tabs li::before,
.kawaii-product-page div.pd-product.product .pd-details .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.kawaii-product-page div.pd-product.product .pd-details .woocommerce-tabs ul.tabs li {
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.kawaii-product-page div.pd-product.product .pd-details .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0 0 12px;
	border-bottom: 2px solid transparent;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
	color: var(--pd-muted);
	text-decoration: none;
}

.kawaii-product-page div.pd-product.product .pd-details .woocommerce-tabs ul.tabs li.active a {
	border-bottom-color: var(--pd-pink);
	color: var(--pd-pink);
}

.kawaii-product-page div.pd-product.product .pd-details .woocommerce-tabs .panel {
	margin: 0;
	font-size: 14px;
	line-height: 1.75;
	color: var(--pd-muted);
}

.pd-details .woocommerce-tabs .panel p {
	max-width: 720px;
	margin: 0 0 1em;
}

.pd-details .woocommerce-tabs .panel h2:empty {
	display: none;
}

/* Key Features: the Short description box, under the Product Details text. */
.pd-details .woocommerce-tabs .panel .pd-key-features {
	max-width: 720px;
	margin-top: 26px;
}

.kawaii-product-page .pd-details .woocommerce-tabs .panel .pd-key-features__title {
	margin: 0 0 12px;
	font-size: 18px;
	letter-spacing: -0.4px;
	color: var(--pd-pink);
}

.pd-details .woocommerce-tabs .panel .pd-key-features ul,
.pd-details .woocommerce-tabs .panel .pd-key-features ol {
	margin: 0;
	padding-left: 22px;
}

.pd-details .woocommerce-tabs .panel .pd-key-features li {
	margin: 0 0 6px;
}

.pd-details .woocommerce-tabs .panel .pd-key-features > :last-child {
	margin-bottom: 0;
}

.pd-spec-list {
	max-width: 460px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pd-spec-list li {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--pd-line);
	font-size: 13px;
	line-height: 1.5;
}

.pd-spec-list li > :first-child {
	font-weight: 700;
	color: var(--pd-muted);
}

.pd-spec-list li > :last-child {
	font-weight: 800;
	text-align: right;
	color: var(--pd-ink);
}

.pd-spec-list a {
	color: inherit;
}

/* ---------- Benefits row ---------- */

.pd-benefits {
	margin-top: 15px;
}

.pd-benefits .benefits {
	max-width: none !important;
}

/* ---------- Dialogs: lightbox and video ---------- */

.pd-lightbox,
.pd-videobox {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 40px 20px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--white);
}

.pd-lightbox::backdrop,
.pd-videobox::backdrop {
	background: rgb(28 20 26 / 78%);
}

.pd-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.pd-videobox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pd-lightbox-inner {
	position: relative;
	width: min(560px, 78vw);
}

.pd-lightbox-brand {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 2;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 1px;
	text-shadow: 0 1px 6px rgb(0 0 0 / 30%);
}

.pd-lightbox-img {
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 26px;
	background: var(--pd-pink-soft);
	box-shadow: 0 30px 70px rgb(0 0 0 / 35%);
}

.pd-lightbox-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pd-lightbox-thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
}

.pd-lightbox-thumb {
	width: 48px;
	height: 48px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 12px;
	background: var(--pd-pink-soft);
	opacity: 0.65;
	cursor: pointer;
	transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pd-lightbox-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pd-lightbox-thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
}

.pd-lightbox-thumb.active {
	border-color: var(--wp--preset--color--white);
	opacity: 1;
}

.pd-lightbox-close {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--pd-pink);
	border-radius: 50%;
	background: rgb(255 255 255 / 85%);
	font-size: 17px;
	color: var(--pd-ink);
	cursor: pointer;
}

.pd-lightbox-close:hover {
	background: var(--wp--preset--color--white);
}

.pd-lightbox-arrow {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 15%);
	font-size: 16px;
	color: var(--wp--preset--color--white);
	cursor: pointer;
}

.pd-lightbox-arrow:hover {
	background: rgb(255 255 255 / 30%);
}

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

.pd-videobox-inner {
	width: min(420px, 92vw);
	aspect-ratio: 9 / 16;
	max-height: 86vh;
	overflow: hidden;
	border-radius: 26px;
	background: #000;
	box-shadow: 0 30px 70px rgb(0 0 0 / 35%);
}

.pd-videobox-inner--embed {
	width: min(900px, 92vw);
	aspect-ratio: 16 / 9;
}

.pd-videobox-inner video,
.pd-videobox-inner iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
	.pd-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		grid-template-areas:
			"media"
			"info"
			"details";
		row-gap: 0;
	}

	/* Stacked, as the reference spaces them: 26px under the gallery, 22px above the tabs. */
	.kawaii-product-page div.pd-product.product div.pd-media {
		margin-bottom: 26px;
	}

	.pd-details {
		padding-top: 22px;
	}

	.kawaii-product-page div.pd-product.product div.summary > :last-child {
		margin-bottom: 0;
	}
}

@media (max-width: 900px) {
	/* Stretched: at flex-start the picture shrinks to its content, which
	   is the slider's whole track (grouped products overflowed 3× wide). */
	.pd-gallery {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.pd-thumbs {
		flex-direction: row;
		max-width: 100%;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
	}
}

@media (max-width: 650px) {
	.kawaii-product-page .pd-product {
		margin-bottom: 40px;
	}

	.kawaii-product-page div.pd-product.product .pd-qty-row {
		flex-wrap: wrap;
		margin-bottom: 12px;
	}

	.kawaii-product-page .pd-addcart {
		order: 1;
		flex: 1 1 100%;
	}

	.kawaii-product-page div.pd-product.product .pd-info table.variations tbody {
		flex-direction: column;
		gap: 14px;
	}

	.pd-watch-card {
		width: 80px;
	}

	.pd-details {
		padding-top: 20px;
	}

	.kawaii-product-page div.pd-product.product .pd-details .woocommerce-tabs ul.tabs {
		gap: 20px;
		margin-bottom: 15px;
	}

	/* The swiper's dot row is the only space above the delivery line. */
	.kawaii-product-page div.pd-product.product div.summary > .pd-offers {
		margin-bottom: 0;
	}

	.pd-offer-viewport {
		max-width: 330px;
		margin: 0 auto;
	}

	.pd-offer-card {
		min-height: auto;
		box-shadow: none;
	}

	.pd-offer-card::before,
	.pd-offer-card::after {
		left: 64px;
	}

	.pd-offer-stub {
		width: 64px;
		font-size: 18px;
	}

	.pd-offer-panel {
		padding: 18px 16px 14px;
	}

	.pd-offer-value {
		font-size: 20px;
	}

	.pd-spec-list li {
		flex-direction: column;
		gap: 2px;
	}

	.pd-spec-list li > :last-child {
		text-align: left;
	}

	.pd-lightbox,
	.pd-videobox {
		padding: 20px 10px;
	}

	/* The arrows no longer fit beside the image: they float over it. */
	.pd-lightbox-arrow {
		position: absolute;
		top: 50%;
		z-index: 2;
		width: 34px;
		height: 34px;
		font-size: 12px;
		background: rgb(28 20 26 / 35%);
		transform: translateY(-50%);
	}

	.pd-lightbox-arrow.prev {
		left: 6px;
	}

	.pd-lightbox-arrow.next {
		right: 6px;
	}

	.pd-lightbox-inner {
		width: min(560px, 88vw);
	}
}

@media (max-width: 380px) {
	.pd-offer-viewport {
		max-width: 290px;
	}
}

/* iOS zooms the page when a field under 16px gets focus. */
@media (hover: none) and (pointer: coarse) {
	.kawaii-product-page div.pd-product.product .pd-qty-row .quantity .qty,
	.kawaii-product-page div.pd-product.product .pd-info table.variations select,
	.kawaii-product-page div.pd-product.product .pd-grouped__qty .qty,
	.kawaii-product-page .pd-sort select,
	.kawaii-product-page .pd-reviewform-input,
	.kawaii-product-page .pd-reviewform-textarea {
		font-size: 16px;
	}
}

/* ---------- Sticky add-to-cart bar ---------- */

.pd-sticky-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 500;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 7%;
	background: var(--wp--custom--color--sticky-bar);
	box-shadow: 0 7px 29px rgb(100 100 111 / 20%);
	visibility: hidden;
	opacity: 0;
	transform: translateY(100%);
	transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.32, 1), opacity 0.3s ease, visibility 0s linear 0.45s;
}

.pd-sticky-bar.is-visible {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
	.pd-sticky-bar {
		transition: none;
	}
}

.pd-sticky-thumb {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--pd-pink-soft);
}

.pd-sticky-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pd-sticky-info {
	flex: 1;
	min-width: 0;
}

.pd-sticky-title {
	margin: 0 0 3px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.pd-sticky-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pd-sticky-tag {
	font-size: 11px;
	font-weight: 700;
	color: var(--pd-muted);
}

.pd-sticky-variant {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border: 1px solid var(--pd-line);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	color: var(--pd-ink);
	cursor: pointer;
}

.pd-sticky-variant .kawaii-icon {
	font-size: 8px;
	color: var(--pd-muted);
}

.pd-sticky-price {
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 900;
	white-space: nowrap;
}

.pd-sticky-price .pd-now {
	font-size: 15px;
}

/* The bar has room for the price only. */
.pd-sticky-price .pd-was,
.pd-sticky-price .pd-off {
	display: none;
}

.kawaii-product-page .pd-sticky-addcart {
	flex-shrink: 0;
	min-height: 40px;
	padding: 11px 18px;
	font-size: 11px;
}

@media (max-width: 650px) {
	.pd-sticky-bar {
		gap: 10px;
		padding: 8px 4%;
	}

	.pd-sticky-thumb {
		width: 46px;
		height: 46px;
	}

	.pd-sticky-title {
		font-size: 12px;
	}

	.pd-sticky-tag,
	.kawaii-product-page .pd-sticky-addcart span {
		display: none;
	}

	.kawaii-product-page .pd-sticky-addcart {
		width: 44px;
		height: 44px;
		padding: 0;
	}
}

/* ---------- Offer details dialog ---------- */

.pd-offerbox-modal {
	width: min(380px, calc(100% - 40px));
	max-width: none;
	padding: 0;
	border: 0;
	border-radius: 22px;
	background: var(--wp--preset--color--white);
	box-shadow: var(--pd-shadow);
	color: var(--pd-ink);
}

.pd-offerbox-modal::backdrop {
	background: rgb(28 20 26 / 55%);
}

.pd-offerbox-modal-card {
	padding: 34px 30px 26px;
	text-align: center;
}

.pd-offerbox-modal-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0 auto 18px;
	border-radius: 12px;
	background: var(--pd-ink);
	font-size: 18px;
	color: var(--wp--preset--color--white);
}

.pd-offerbox-modal-card h3 {
	margin: 0 0 10px;
	font-size: 15px;
	color: var(--pd-muted);
}

.pd-offerbox-modal-value {
	margin-bottom: 12px;
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -0.5px;
	color: var(--pd-pink);
}

.pd-offerbox-modal-details {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.6;
}

.pd-offerbox-modal-details:empty {
	display: none;
}

.pd-offerbox-modal-terms {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7;
	color: var(--pd-muted);
}

.pd-offerbox-modal-terms li:empty {
	display: none;
}

.pd-offerbox-modal-code {
	margin-bottom: 20px;
}

.pd-offerbox-modal-code-label {
	display: block;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: var(--pd-muted);
}

.pd-offerbox-modal-copy {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1.5px dashed var(--pd-pink);
	border-radius: 12px;
	background: var(--wp--custom--color--tint);
	font: inherit;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 1px;
	color: var(--pd-pink);
	cursor: pointer;
}

.pd-offerbox-modal-copied {
	position: absolute;
	top: 100%;
	left: 50%;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	white-space: nowrap;
	color: var(--wp--custom--color--success);
	transform: translateX(-50%);
}

.pd-offerbox-modal-divider {
	display: block;
	height: 1px;
	margin: 0 0 16px;
	background: var(--pd-line);
}

.pd-offerbox-modal-close {
	width: 100%;
	padding: 6px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 900;
	color: var(--pd-ink);
	cursor: pointer;
}

.pd-offerbox-modal-close:hover {
	color: var(--pd-pink);
}

/* ---------- Reviews ---------- */

.pd-reviews {
	max-width: 900px;
	margin: 70px auto 0;
	scroll-margin-top: 110px;
}

.pd-reviews > h2 {
	margin: 0 0 28px;
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: -1px;
	text-align: center;
}

.pd-reviews-notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--wp--custom--color--success-border);
	border-radius: 14px;
	background: var(--wp--custom--color--success-background);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	color: var(--wp--custom--color--success);
}

.pd-reviews-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px;
	margin-bottom: 26px;
	padding: 28px 30px;
	border: 1px solid var(--pd-line);
	border-radius: 22px;
}

.pd-reviews-summary--empty {
	flex-direction: column;
	gap: 16px;
	text-align: center;
}

.pd-reviews-empty,
.pd-reviews-verified-only {
	max-width: 420px;
	margin: 0;
	font-size: 14px;
	color: var(--pd-muted);
}

.pd-reviews-avg {
	flex-shrink: 0;
	text-align: center;
}

.pd-reviews-avg-num {
	font-size: 40px;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -1.5px;
}

.pd-reviews-avg .pd-stars {
	font-size: 14px;
}

.pd-reviews-avg > span:last-child {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 700;
	color: var(--pd-muted);
}

.pd-reviews-bars {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 7px;
	min-width: 220px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pd-rbar-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 800;
	color: var(--pd-muted);
}

.pd-rbar-row .kawaii-icon {
	font-size: 10px;
	color: var(--pd-star);
}

.pd-rbar {
	flex: 1;
	height: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--pd-line);
}

.pd-rbar-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--pd-pink);
}

.pd-rbar-count {
	width: 18px;
	text-align: right;
}

.kawaii-product-page .pd-write-review {
	flex-shrink: 0;
	padding: 14px 22px;
}

.pd-reviews-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--pd-muted);
}

.pd-sort {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pd-sort select {
	padding: 7px 10px;
	border: 1px solid var(--pd-line);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	color: var(--pd-ink);
}

.pd-reviews-results {
	transition: opacity 0.2s ease;
}

.pd-reviews-results.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

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

.pd-review {
	padding: 18px 0;
	border-bottom: 1px solid var(--pd-line);
}

.pd-review:last-child {
	border-bottom: 0;
}

.pd-review-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.pd-review-avatar {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--pd-pink-soft);
	font-size: 13px;
	color: var(--pd-pink);
}

.pd-review-author {
	font-size: 13px;
}

.pd-review-verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 8px;
	font-size: 11px;
	font-weight: 700;
	color: var(--wp--custom--color--success);
}

.pd-review-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	color: var(--pd-muted);
}

.pd-review-meta .pd-stars {
	font-size: 12px;
}

.pd-review-title {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 900;
	color: var(--pd-ink);
}

.pd-review-text p {
	margin: 0 0 0.5em;
	font-size: 13px;
	line-height: 1.6;
	color: var(--pd-muted);
}

.pd-review-media {
	margin-top: 10px;
}

.pd-review-media img {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 12px;
	object-fit: cover;
}

.pd-review-media video {
	max-width: 100%;
	border-radius: 12px;
}

.pd-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 26px;
}

.pd-page-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	border: 1px solid var(--pd-line);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	font-size: 12px;
	font-weight: 800;
	color: var(--pd-muted);
	text-decoration: none;
}

a.pd-page-btn:hover {
	border-color: var(--pd-pink-line);
	color: var(--pd-pink);
}

.pd-page-btn.active {
	border-color: var(--pd-pink);
	background: var(--pd-pink);
	color: var(--wp--preset--color--white);
}

/* ---------- Write a review dialog ---------- */

.pd-reviewform-modal {
	width: min(520px, calc(100% - 40px));
	max-width: none;
	max-height: calc(100% - 40px);
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: var(--wp--preset--color--white);
	box-shadow: var(--pd-shadow);
	color: var(--pd-ink);
}

.pd-reviewform-modal::backdrop {
	background: rgb(28 20 26 / 55%);
}

.pd-reviewform-card {
	--pd-star-solid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z'/%3E%3C/svg%3E");
	--pd-star-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z'/%3E%3C/svg%3E");
	--pd-rf-pad: 32px;
	position: relative;
	padding: 0 var(--pd-rf-pad);
}

/* The title and close button stay at the top of the dialog as it scrolls. */
.pd-reviewform-head {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 calc(-1 * var(--pd-rf-pad)) 22px;
	padding: 24px var(--pd-rf-pad) 18px;
	border-bottom: 1px solid var(--pd-line);
	background: var(--wp--preset--color--white);
}

.pd-reviewform-x {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--pd-line);
	border-radius: 50%;
	background: var(--pd-surface);
	font-size: 14px;
	color: var(--pd-muted);
	cursor: pointer;
}

.pd-reviewform-x:hover {
	background: var(--pd-pink-soft);
	color: var(--pd-pink);
}

.pd-reviewform-card .comment-respond {
	margin: 0;
}

/* With the ids, over WooCommerce's ".woocommerce #reviews h3" margin and its
 * 700 weight, so the title keeps the global heading weight. */
#review_form #reply-title {
	margin: 0;
	font-weight: var(--kawaii-heading-weight, 900);
	font-size: 18px;
	letter-spacing: -0.4px;
	text-align: left;
}

.pd-reviewform-card .comment-reply-title small {
	display: block;
	font-size: 12px;
}

/* Over WooCommerce's ".woocommerce #review_form #respond p" 10px. */
.kawaii-product-page #review_form #respond form > p,
.kawaii-product-page #review_form #respond form > div {
	margin-top: 0;
	margin-bottom: 18px;
}

.kawaii-product-page #review_form #respond form > :last-child {
	margin-bottom: 0;
}

.pd-reviewform-label {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 900;
	text-align: left;
	color: var(--pd-ink);
}

.pd-reviewform-label .required {
	color: var(--pd-pink);
}

.pd-reviewform-input,
.pd-reviewform-textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--pd-line);
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	font: inherit;
	font-size: 13px;
	color: var(--pd-ink);
	resize: vertical;
}

.pd-reviewform-input:focus,
.pd-reviewform-textarea:focus {
	border-color: var(--pd-pink-line);
	outline: 2px solid var(--pd-pink-soft);
}

/* WooCommerce's script turns the rating select into five star links. */
.pd-reviewform-rating select {
	display: block;
}

/* A flex row, so the line height doesn't pad it out. */
.kawaii-product-page #review_form #respond p.stars {
	display: flex;
	margin: 0 0 0 -2px;
}

.pd-reviewform-card p.stars span {
	display: flex;
	gap: 8px;
}

.pd-reviewform-card p.stars a {
	position: relative;
	display: block;
	width: 32px;
	height: 32px;
	overflow: hidden;
	font-size: 0;
	text-indent: -999px;
}

.pd-reviewform-card p.stars a::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	/* WooCommerce sizes it in em; the link's font size is 0 to hide its words. */
	width: 28px;
	height: 28px;
	background: var(--pd-star);
	-webkit-mask: var(--pd-star-outline) center / contain no-repeat;
	mask: var(--pd-star-outline) center / contain no-repeat;
}

/* Filled up to the hovered star, or to the chosen one. */
.pd-reviewform-card p.stars:hover a::before,
.pd-reviewform-card p.stars.selected a::before {
	-webkit-mask-image: var(--pd-star-solid);
	mask-image: var(--pd-star-solid);
}

.pd-reviewform-card p.stars a:hover ~ a::before,
.pd-reviewform-card p.stars.selected a.active ~ a::before {
	-webkit-mask-image: var(--pd-star-outline);
	mask-image: var(--pd-star-outline);
}

.pd-reviewform-card p.stars:hover a.active ~ a:hover::before {
	-webkit-mask-image: var(--pd-star-solid);
	mask-image: var(--pd-star-solid);
}

.pd-reviewform-card p.stars a:focus-visible {
	outline: 2px solid var(--pd-pink);
	outline-offset: 2px;
}

.pd-reviewform-file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.pd-reviewform-upload {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 84px;
	min-height: 84px;
	margin: 0 0 8px;
	padding: 6px;
	border: 1.5px dashed var(--pd-line);
	border-radius: 14px;
	background: var(--pd-surface);
	font-size: 18px;
	color: var(--pd-muted);
	cursor: pointer;
	text-align: center;
}

.pd-reviewform-upload span {
	font-size: 9px;
	font-weight: 800;
	word-break: break-word;
}

.pd-reviewform-upload:hover,
.pd-reviewform-file:focus-visible + .pd-reviewform-hint,
.comment-form-media:focus-within .pd-reviewform-upload {
	border-color: var(--pd-pink-line);
	color: var(--pd-pink);
}

.pd-reviewform-hint {
	display: block;
	font-size: 11px;
	line-height: 1.5;
	text-align: left;
	color: var(--pd-muted);
}

.pd-reviewform-hint.is-error {
	font-weight: 700;
	color: var(--wp--custom--color--error);
}

.pd-reviewform-terms {
	font-size: 11px;
	line-height: 1.6;
	text-align: left;
	color: var(--pd-muted);
}

.pd-reviewform-terms a {
	color: var(--pd-pink);
	text-decoration: underline;
}

.pd-reviewform-card .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 24px;
	font-size: 11px;
	color: var(--pd-muted);
	transition: color 0.2s ease;
}

.pd-reviewform-card .comment-form-cookies-consent label {
	margin: 0;
	line-height: 1.5;
	cursor: pointer;
}

/*
 * The checkout's box (woocommerce.css, "kawaii-checkout-option"), which
 * doesn't load here: a soft rounded square that fills with the pink
 * gradient and pops a white tick when checked.
 */
.pd-reviewform-card .comment-form-cookies-consent input[type="checkbox"] {
	position: relative;
	flex: none;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 1.5px solid var(--wp--preset--color--dusk);
	border-radius: 7px;
	background-color: var(--wp--custom--color--tint);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pd-reviewform-card .comment-form-cookies-consent input[type="checkbox"]::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
	opacity: 0;
	transform: scale(0.4);
	transition: opacity 0.15s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pd-reviewform-card .comment-form-cookies-consent input[type="checkbox"]:checked {
	border-color: var(--wp--custom--color--pink-strong);
	background-color: var(--wp--custom--color--pink-strong);
	background-image: linear-gradient(135deg, var(--wp--preset--color--accent-1), var(--wp--custom--color--pink-strong));
	box-shadow: 0 3px 8px rgba(236, 86, 135, 0.3);
}

.pd-reviewform-card .comment-form-cookies-consent input[type="checkbox"]:checked::after {
	opacity: 1;
	transform: scale(1);
}

.pd-reviewform-card .comment-form-cookies-consent input[type="checkbox"]:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 4px rgba(255, 121, 167, 0.25);
}

.pd-reviewform-card .comment-form-cookies-consent input[type="checkbox"]:active {
	transform: scale(0.9);
}

@media (hover: hover) {
	.pd-reviewform-card .comment-form-cookies-consent:hover input[type="checkbox"]:not(:checked) {
		border-color: var(--wp--preset--color--accent-1);
		background-color: var(--wp--custom--color--pink-soft);
	}
}

.pd-reviewform-card .comment-form-cookies-consent:has(input:checked) {
	color: var(--pd-ink);
}

@media (prefers-reduced-motion: reduce) {
	.pd-reviewform-card .comment-form-cookies-consent input[type="checkbox"],
	.pd-reviewform-card .comment-form-cookies-consent input[type="checkbox"]::after {
		transition: none;
	}
}

/* Touch screens: a 44px row to tap, as at checkout. */
@media (max-width: 650px), (max-height: 500px) and (orientation: landscape), (pointer: coarse) {
	.pd-reviewform-card .comment-form-cookies-consent {
		min-height: 44px;
	}
}

/* Cancel and Submit stay at the bottom of the dialog as it scrolls. */
.pd-reviewform-actions {
	position: sticky;
	bottom: 0;
	z-index: 2;
	display: flex;
	gap: 12px;
	margin: 0 calc(-1 * var(--pd-rf-pad));
	padding: 16px var(--pd-rf-pad) 24px;
	border-top: 1px solid var(--pd-line);
	background: var(--wp--preset--color--white);
}

.pd-reviewform-actions .btn {
	flex: 1;
}

.kawaii-product-page .pd-reviewform-actions .btn.light {
	border-color: var(--pd-line);
}

@media (max-width: 900px) {
	.pd-reviews-summary {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.pd-reviews-bars {
		width: 100%;
	}

	.pd-reviewform-card {
		--pd-rf-pad: 20px;
	}
}

@media (max-width: 650px) {
	.pd-reviews-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
}

.pd-reviewform-label.is-missing {
	color: var(--wp--custom--color--error);
}

/* A dialog is open: the sticky bar steps aside. */
.kawaii-dialog-open .pd-sticky-bar {
	visibility: hidden;
}

/* ---------- You May Also Like ---------- */

.pd-related {
	margin-top: 60px;
}

.pd-related-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.pd-related-head h2 {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -1px;
}

.pd-related-nav {
	display: flex;
	gap: 8px;
}

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

.pd-related-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--pd-line);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--pd-ink);
	cursor: pointer;
}

.pd-related-arrow:hover {
	border-color: var(--pd-pink-line);
	color: var(--pd-pink);
}

.pd-related-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* The shop's own card grid, turned into a slider by product.js. */
.pd-related-cards .swiper {
	overflow: hidden;
}

.pd-related-cards .wc-block-product-template.swiper-wrapper {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin: 0;
	padding: 0;
	grid-template-columns: none;
}

.pd-related-cards .wc-block-product-template .swiper-slide {
	flex-shrink: 0;
	height: auto;
	margin: 0;
}

.pd-related-viewall {
	margin-top: 24px;
	text-align: center;
}

.kawaii-product-page .pd-related-viewall .btn {
	padding: 13px 30px;
}

/* "Just for You" follows, on the page's own width, spaced like the
   sections above, and the page keeps the reference's 80px above the footer. */
.kawaii-product-page {
	/* The footer's own top margin is the block gap. */
	padding-bottom: calc(80px - var(--wp--style--block-gap, 0px));
}

@media (max-width: 650px) {
	.kawaii-product-page {
		padding-bottom: calc(40px - var(--wp--style--block-gap, 0px));
	}
}

.kawaii-product-page .kawaii-product-more {
	margin-top: 60px;
}

.kawaii-product-page .kawaii-product-recs {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 5%;
	box-sizing: border-box;
}

.kawaii-product-page .kawaii-product-recs .kawaii-jfy__title {
	margin: 0 0 20px;
	font-size: 24px;
	letter-spacing: -1px;
}

/*
 * Touch: every control at least 44px to tap. The color dots keep the
 * design's size and get a larger invisible hit area, spaced so neighbours
 * don't overlap.
 */
@media (pointer: coarse) {
	.kawaii-product-page div.pd-product.product .pd-swatches:has(.pd-swatch--color) {
		gap: 16px;
		padding: 8px;
	}

	.kawaii-product-page div.pd-product.product .pd-swatch--color::after {
		content: "";
		position: absolute;
		inset: -8px;
	}

	.kawaii-product-enhanced .kawaii-product-page div.pd-product.product .pd-qty-row .kawaii-qty-btn {
		width: 44px;
	}

	.pd-page-btn,
	.pd-related-arrow,
	.pd-offer-float-arrow,
	.pd-sticky-variant {
		min-width: 44px;
		min-height: 44px;
	}

	.pd-offer-float-arrow {
		width: 44px;
		height: 44px;
	}

	/* Tabs, the review sort and "View details": 44px tall to tap. */
	.kawaii-product-page div.pd-product.product .pd-details .woocommerce-tabs ul.tabs li a {
		padding-top: 12px;
	}

	.kawaii-product-page .pd-sort select {
		min-height: 44px;
	}

	.pd-offer-view {
		min-height: 44px;
		margin: -14px 0;
	}

	/* The category chip keeps its size; a taller invisible hit area. */
	.pd-category {
		position: relative;
	}

	.pd-category::after {
		content: "";
		position: absolute;
		inset: -11px 0;
	}
}

/*
 * Phones held sideways (852×393 and the like) get the tablet band with a
 * screen under 500px high: one column would put a screen-high picture
 * before the title and price, so they keep picture and info side by side.
 */
@media (max-width: 1050px) and (max-height: 500px) and (orientation: landscape) {
	.pd-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"media info"
			"details info";
		column-gap: 24px;
	}

	.kawaii-product-page div.pd-product.product div.pd-media {
		margin-bottom: 0;
	}

	.pd-details {
		padding-top: 24px;
	}

	.pd-mainimg {
		aspect-ratio: 1;
	}
}
