/**
 * Product hero — Gutenberg composition (no Bootstrap grid).
 * Visual reference: classic .page-hero / .price-bubble / .meta-box.
 */

/* Global tokens — page color + heading scales. */
:root {
	--pagecolor: #121a30;
	/* Generic H1 (utility / in-page). */
	--toboo-h1-font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem);
	--toboo-h1-line-height: 1;
	/* Product / shop hero display titles. */
	--toboo-display-title-font-size: clamp(1.75rem, 1rem + 3.6vw, 3rem);
	--toboo-display-title-line-height: 1;
	/* Soft white for titles / lead on dark heroes. */
	--toboo-heading-color: rgba(255, 255, 255, 0.82);
	--toboo-lead-color: rgba(255, 255, 255, 0.72);
}

h1 {
	font-size: var(--toboo-h1-font-size);
	font-weight: 700;
	line-height: var(--toboo-h1-line-height);
}

/* Small intro H1 only (homepage) — solid white. */
.toboo-shop-intro h1,
.toboo-shop-intro .wp-block-heading {
	color: #fff;
}

/* Product / shop display titles (h1 or h2) — large scale. */
.toboo-product-hero__title-group .wp-block-post-title,
.toboo-product-hero__title {
	font-size: var(--toboo-display-title-font-size);
	font-weight: 700;
	line-height: var(--toboo-display-title-line-height);
	color: #fff;
}

.toboo-shop-hero__title {
	font-size: var(--toboo-display-title-font-size);
	font-weight: 700;
	line-height: var(--toboo-display-title-line-height);
	color: var(--tw-secondary, #1e1e21);
}

.toboo-product-hero .lead,
.toboo-product-hero .sub-headline,
.toboo-shop-intro .lead,
.toboo-shop-intro .sub-headline,
.toboo-shop-intro .is-style-tw-lead,
.toboo-shop-intro [class*="is-style-tw-lead"],
.toboo-shop-intro .tw-lead {
	color: var(--toboo-lead-color);
}

.toboo-shop-hero .lead,
.toboo-shop-hero .sub-headline {
	color: rgba(30, 30, 33, 0.62);
}

.toboo-product-hero {
	position: relative;
	background: linear-gradient(
		to bottom,
		var(--toboo-body-bg, #121a30) 0%,
		var(--toboo-body-bg, #121a30) 82%,
		transparent 100%
	);
	background-repeat: no-repeat;
	background-size: 100%;
	background-position: top center;
	color: #fff;
	padding-top: 180px;
	padding-bottom: clamp(2rem, 4vw, 3.5rem);
	/* Keep sticky media working; clip only horizontal bleed from hero media. */
	overflow-x: clip;
	overflow-y: visible;
}

@media (min-width: 992px) {
	.toboo-product-hero {
		/* Cap viewport-based top padding on tall screens (no max-padding-top in CSS). */
		padding-top: min(32vh, 20rem);
	}
}

.toboo-product-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	width: 100%;
	height: 60vh;
	z-index: 20;
	pointer-events: none;
	background: linear-gradient(
		235deg,
		rgba(232, 85, 204, 1) 0%,
		rgba(255, 248, 160, 1) 42%,
		rgba(41, 133, 181, 1) 100%
	);
	mix-blend-mode: multiply;
}

.toboo-product-hero::after {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	width: 100%;
	height: 60vh;
	z-index: 21;
	pointer-events: none;
	background: linear-gradient(
		0deg,
		var(--pagecolor, #141624) 0%,
		rgba(0, 0, 0, 0.15) 50%,
		var(--pagecolor, #141624) 100%
	);
}

/* Header image from twtheme/meta */
.toboo-product-hero__bg,
.toboo-product-hero > .wp-block-twtheme-meta.toboo-product-hero__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 60vh;
	z-index: 10;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none;
}

.toboo-product-hero__bg img,
.toboo-product-hero__bg .tw-meta__value img {
	display: block;
	width: 100%;
	height: 60vh;
	object-fit: cover;
	opacity: 0.5;
	filter: contrast(0.5);
}

.toboo-product-hero__container,
.toboo-product-hero__inner-root > :not(.toboo-product-hero__bg) {
	position: relative;
	z-index: 30;
}

.toboo-product-hero__container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--toboo-edge-x, 4%);
	padding-right: var(--toboo-edge-x, 4%);
	width: 100%;
	box-sizing: border-box;
}

/* Row width + generous column gap (also set via blockGap / --tw-cols-gutter-*). */
.toboo-product-hero__row {
	width: 100%;
	--tw-cols-gutter-gap-col: 6rem;
	column-gap: 6rem;
}

.toboo-product-hero__media-sticky {
	width: 100%;
}

.toboo-product-hero__media,
.toboo-product-hero__media.product-image {
	position: relative;
	width: 100%;
}

/*
 * Media column stretches; JS (single_image_docker) lerps the dock
 * toward viewport-center with a slight lag, then clamps to column ends.
 */
@media (min-width: 782px) {
	.toboo-product-hero__row.wp-block-columns,
	.toboo-product-hero__row {
		align-items: stretch !important;
	}

	.toboo-product-hero__media-col {
		align-self: stretch !important;
	}

	.toboo-product-hero__media-sticky {
		position: relative;
		top: auto;
		width: 100%;
		box-sizing: border-box;
		will-change: transform;
	}

	.toboo-product-hero__media-sticky .toboo-product-hero__media.product-image,
	.toboo-product-hero__media.product-image {
		position: relative;
		top: auto;
		width: 100%;
	}
}

@media (min-width: 782px) and (prefers-reduced-motion: reduce) {
	.toboo-product-hero__media-sticky {
		position: sticky;
		top: calc(50dvh - 12rem);
		will-change: auto;
		transform: none !important;
	}
}

/* Cover artwork (featured image) — natural aspect ratio, fully visible. */
.toboo-product-hero__cover {
	margin: 0 !important;
	position: relative;
	overflow: hidden;
	border-radius: var(--tw-radius-card, 2.5rem);
	corner-shape: squircle;
	background: rgba(255, 255, 255, 0.06);
}

.toboo-product-hero__cover img,
.toboo-product-hero__cover .tw-meta__value img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: inherit;
}

/* PDP: white semi-transparent borders on hero cover, gallery thumbs, addons. */
body.single-product {
	--toboo-cover-border: rgba(255, 255, 255, 0.28);
}

body.single-product .toboo-product-hero__cover {
	background: rgba(255, 255, 255, 0.08);
	border-width: 4px;
}

body.single-product .toboo-product-gallery__thumb.wp-block-image,
body.single-product .slider-main.slider-product-gallery .toboo-product-gallery__thumb {
	background: rgba(255, 255, 255, 0.06);
}

body.single-product .toboo-product-gallery__thumb img,
body.single-product .toboo-product-gallery__thumb img.product-thumbnail,
body.single-product .slider-main.slider-product-gallery .toboo-product-gallery__thumb img {
	border: none;
}

/* Bubble group: slight overhang past media right/bottom; sale offset is
 * relative to bubble size so the pair stays locked at every breakpoint. */
.toboo-product-hero,
.toboo-shop-hero,
.toboo-product-card {
	--toboo-bubble-right: -5%;
	--toboo-bubble-bottom: -4%;
	/* Relative to price bubble: higher (y↑) and further right (x↓ / negative). */
	--toboo-sale-x: -0.06;
	--toboo-sale-y: 0.85;
}

.toboo-product-hero .sale-badge,
.toboo-shop-hero .sale-badge,
.toboo-product-card .sale-badge {
	top: auto;
	left: auto;
	right: calc(var(--toboo-bubble-right) + var(--toboo-bubble-w) * var(--toboo-sale-x));
	bottom: calc(var(--toboo-bubble-bottom) + var(--toboo-bubble-h) * var(--toboo-sale-y));
	z-index: 5;
	display: inline-flex;
	align-items: flex-start;
	width: auto;
	overflow: visible;
}

.toboo-product-hero .sale-badge .reduces,
.toboo-shop-hero .sale-badge .reduces,
.toboo-product-card .sale-badge .reduces {
	--width: var(--toboo-sale-reduces-w, clamp(50px, 5.5vw + 0.9rem, 60px));
	--height: calc(var(--width) * 0.9375);
	font-size: var(--toboo-sale-fs-reduces, calc(1.35rem * var(--width) / 60px));
	width: var(--width);
	height: var(--height);
	min-width: 0;
	padding-inline: 0;
	box-sizing: border-box;
	flex: 0 0 auto;
	position: relative;
	z-index: 1;
	overflow: visible;
}

.toboo-product-hero .sale-badge .suffix,
.toboo-shop-hero .sale-badge .suffix,
.toboo-product-card .sale-badge .suffix {
	--width: var(--toboo-sale-suffix-w, clamp(24px, 3vw + 0.45rem, 30px));
	--height: calc(var(--width) * 0.925);
	font-size: var(--toboo-sale-fs-suffix, calc(0.88rem * var(--width) / 30px));
	width: var(--width);
	height: var(--height);
	position: relative;
	top: calc(var(--width) * 0.2);
	left: auto;
	right: auto;
	flex: 0 0 auto;
	margin-left: calc(var(--width) * -0.35);
	z-index: 2;
	overflow: visible;
}

/* Palette Rot (#e01e4a), not Danger (#ff3c17). */
.toboo-product-hero .sale-badge .reduces::after,
.toboo-product-hero .sale-badge .suffix::after,
.toboo-shop-hero .sale-badge .reduces::after,
.toboo-shop-hero .sale-badge .suffix::after,
.toboo-product-card .sale-badge .reduces::after,
.toboo-product-card .sale-badge .suffix::after {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 41.67 38.73'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23e01e4a;stroke-width:0px;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='m-492.51,3.96c-3.11-2.86-7.81-5.12-14.7-5.12s-11.59,2.27-14.7,5.12c-3.61,3.28-6.13,8.32-6.13,14.28s2.52,10.92,6.13,14.2c3.11,2.86,7.81,5.12,14.7,5.12s11.59-2.27,14.7-5.12c3.61-3.28,6.13-8.32,6.13-14.2s-2.52-11-6.13-14.28Zm-14.7,24.53c-5.96,0-10.25-4.7-10.25-10.25s4.37-10.33,10.25-10.33,10.25,4.62,10.25,10.33-4.28,10.25-10.25,10.25ZM35.53,5.12c-3.11-2.86-7.81-5.12-14.7-5.12S9.24,2.27,6.13,5.12C2.52,8.4,0,13.44,0,19.4s2.52,10.92,6.13,14.2c3.11,2.86,7.81,5.12,14.7,5.12s11.59-2.27,14.7-5.12c3.61-3.28,6.13-8.32,6.13-14.2s-2.52-11-6.13-14.28Z'/%3E%3C/svg%3E");
}

.toboo-product-hero .sale-badge .reduces,
.toboo-product-hero .sale-badge .suffix,
.toboo-shop-hero .sale-badge .reduces,
.toboo-shop-hero .sale-badge .suffix,
.toboo-product-card .sale-badge .reduces,
.toboo-product-card .sale-badge .suffix {
	color: #fff;
	font-weight: 700;
}

/* Soft shadow toward top-left (follows bubble shape). */
.toboo-product-hero .price-bubble::after,
.toboo-shop-hero .price-bubble::after,
.toboo-product-card .price-bubble::after {
	filter: drop-shadow(-5px -6px 7px rgba(0, 0, 0, 0.28));
}

.toboo-product-hero .price-bubble,
.toboo-shop-hero .price-bubble,
.toboo-product-card .price-bubble {
	/* Shared bubble chrome — size/type from :root (--toboo-bubble-*). */
	--width: var(--toboo-bubble-w);
	--height: var(--toboo-bubble-h);
	font-size: var(--toboo-bubble-fs-price);
	position: absolute;
	right: var(--toboo-bubble-right);
	bottom: var(--toboo-bubble-bottom);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	letter-spacing: 0;
	color: #1e1e21;
	filter: drop-shadow(-5px -6px 7px rgba(0, 0, 0, 0.28));
}

.toboo-product-hero .price-bubble > div,
.toboo-shop-hero .price-bubble > div,
.toboo-product-card .price-bubble > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
}

.toboo-product-hero .price-bubble .price,
.toboo-product-hero .price-bubble .legal-price-info,
.toboo-product-hero .price-bubble .wc-gzd-additional-info,
.toboo-shop-hero .price-bubble .price,
.toboo-shop-hero .price-bubble .legal-price-info,
.toboo-shop-hero .price-bubble .wc-gzd-additional-info,
.toboo-product-card .price-bubble .price {
	margin: 0;
	text-align: center;
}

/* UVP / strikethrough + sale price on one line. */
.toboo-product-hero .price-bubble .price,
.toboo-shop-hero .price-bubble .price,
.toboo-product-card .price-bubble .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	/* Tight between UVP label + amount; sale price gets margin below. */
	column-gap: 0.08em;
	row-gap: 0.2em;
	line-height: 1;
	margin-bottom: 0.2em;
}

.toboo-product-hero .price-bubble .price > .wc-gzd-sale-price-label,
.toboo-product-hero .price-bubble .price > del,
.toboo-product-hero .price-bubble .price > del .woocommerce-Price-amount,
.toboo-product-hero .price-bubble .price > del .woocommerce-Price-amount bdi,
.toboo-product-hero .price-bubble .price > ins,
.toboo-product-hero .price-bubble .price > .woocommerce-Price-amount,
.toboo-product-hero .price-bubble .price > .woocommerce-Price-amount bdi,
.toboo-product-hero .price-bubble .price > ins .woocommerce-Price-amount,
.toboo-product-hero .price-bubble .price > ins .woocommerce-Price-amount bdi,
.toboo-shop-hero .price-bubble .price > .wc-gzd-sale-price-label,
.toboo-shop-hero .price-bubble .price > del,
.toboo-shop-hero .price-bubble .price > del .woocommerce-Price-amount,
.toboo-shop-hero .price-bubble .price > del .woocommerce-Price-amount bdi,
.toboo-shop-hero .price-bubble .price > ins,
.toboo-shop-hero .price-bubble .price > .woocommerce-Price-amount,
.toboo-shop-hero .price-bubble .price > .woocommerce-Price-amount bdi,
.toboo-shop-hero .price-bubble .price > ins .woocommerce-Price-amount,
.toboo-shop-hero .price-bubble .price > ins .woocommerce-Price-amount bdi,
.toboo-product-card .price-bubble .price > .wc-gzd-sale-price-label,
.toboo-product-card .price-bubble .price > del,
.toboo-product-card .price-bubble .price > del .woocommerce-Price-amount,
.toboo-product-card .price-bubble .price > del .woocommerce-Price-amount bdi,
.toboo-product-card .price-bubble .price > ins,
.toboo-product-card .price-bubble .price > .woocommerce-Price-amount,
.toboo-product-card .price-bubble .price > .woocommerce-Price-amount bdi,
.toboo-product-card .price-bubble .price > ins .woocommerce-Price-amount,
.toboo-product-card .price-bubble .price > ins .woocommerce-Price-amount bdi {
	text-box-trim: trim-both;
	text-box-edge: cap alphabetic;
}

.toboo-product-hero .price-bubble .price > .wc-gzd-sale-price-label,
.toboo-product-hero .price-bubble .price > del,
.toboo-product-hero .price-bubble .price > del .woocommerce-Price-amount,
.toboo-product-hero .price-bubble .price > del .woocommerce-Price-amount bdi,
.toboo-shop-hero .price-bubble .price > .wc-gzd-sale-price-label,
.toboo-shop-hero .price-bubble .price > del,
.toboo-shop-hero .price-bubble .price > del .woocommerce-Price-amount,
.toboo-shop-hero .price-bubble .price > del .woocommerce-Price-amount bdi,
.toboo-product-card .price-bubble .price > .wc-gzd-sale-price-label,
.toboo-product-card .price-bubble .price > del,
.toboo-product-card .price-bubble .price > del .woocommerce-Price-amount,
.toboo-product-card .price-bubble .price > del .woocommerce-Price-amount bdi {
	font-size: var(--toboo-bubble-fs-uvp);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0;
	/* Muted via color (not opacity) — nested opacity would stack on the amount. */
	opacity: 1;
	color: rgba(30, 30, 33, 0.75);
}

.toboo-product-hero .price-bubble .price > .wc-gzd-sale-price-label,
.toboo-shop-hero .price-bubble .price > .wc-gzd-sale-price-label,
.toboo-product-card .price-bubble .price > .wc-gzd-sale-price-label {
	margin-inline-end: 0;
	padding-inline-end: 0;
}

.toboo-product-hero .price-bubble .price > ins,
.toboo-shop-hero .price-bubble .price > ins,
.toboo-product-card .price-bubble .price > ins {
	text-decoration: none;
	margin-inline-start: 0.1em;
}

.toboo-product-hero .price-bubble .price > .woocommerce-Price-amount,
.toboo-product-hero .price-bubble .price > .woocommerce-Price-amount bdi,
.toboo-product-hero .price-bubble .price > ins .woocommerce-Price-amount,
.toboo-product-hero .price-bubble .price > ins .woocommerce-Price-amount bdi,
.toboo-shop-hero .price-bubble .price > .woocommerce-Price-amount,
.toboo-shop-hero .price-bubble .price > .woocommerce-Price-amount bdi,
.toboo-shop-hero .price-bubble .price > ins .woocommerce-Price-amount,
.toboo-shop-hero .price-bubble .price > ins .woocommerce-Price-amount bdi,
.toboo-product-card .price-bubble .price > .woocommerce-Price-amount,
.toboo-product-card .price-bubble .price > .woocommerce-Price-amount bdi,
.toboo-product-card .price-bubble .price > ins .woocommerce-Price-amount,
.toboo-product-card .price-bubble .price > ins .woocommerce-Price-amount bdi {
	display: inline;
	text-align: center;
	font-size: var(--toboo-bubble-fs-price);
	font-weight: 700;
	color: #1e1e21;
	letter-spacing: -0.03em;
}

.toboo-product-hero .price-bubble .legal-price-info .wc-gzd-additional-info,
.toboo-product-hero .price-bubble .wc-gzd-additional-info > .tax-info,
.toboo-product-hero .price-bubble .wc-gzd-additional-info > .shipping-costs-info,
.toboo-shop-hero .price-bubble .legal-price-info .wc-gzd-additional-info,
.toboo-shop-hero .price-bubble .wc-gzd-additional-info > .tax-info,
.toboo-shop-hero .price-bubble .wc-gzd-additional-info > .shipping-costs-info {
	display: block;
	line-height: 1.15;
	text-align: center;
}

.toboo-product-hero .price-bubble .legal-price-info a,
.toboo-product-hero .price-bubble .wc-gzd-additional-info a,
.toboo-shop-hero .price-bubble .legal-price-info a,
.toboo-shop-hero .price-bubble .wc-gzd-additional-info a {
	display: inline;
	text-align: center;
}

/*
 * Core flow adds margin-block-start before the meta row.
 * Spacing title → meta comes only from title-group margin-bottom (1.5rem).
 */
.toboo-product-hero__content-col > .toboo-product-hero__title-group + .toboo-product-hero__meta,
.toboo-product-hero__content-col.is-layout-flow > .toboo-product-hero__title-group + .toboo-product-hero__meta {
	margin-block-start: 0 !important;
}

/* Title + lead subline (subline is injected inside the H1). */
.toboo-product-hero__title-group .wp-block-post-title,
.toboo-product-hero__title {
	margin: 0;
	color: #fff;
	/* size / weight / line-height: --toboo-display-title-* above */
}

.toboo-product-hero__title .lead,
.toboo-product-hero__title .toboo-product-hero__subline,
.toboo-product-hero__title .sub-headline {
	display: block;
	margin-top: 0.35rem;
	color: var(--toboo-lead-color);
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1.35;
}

/* Meta row: one bold inline line (icon + value pairs). */
.toboo-product-hero__meta.wp-block-group,
.toboo-product-hero__meta {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 1.35rem;
	font-size: 1.1rem;
	font-weight: 500;
	color: #fff;
}

.toboo-product-hero__meta > .wp-block-group,
.toboo-product-hero__meta .meta {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 0.4rem;
	width: auto !important;
	margin: 0 !important;
}

.toboo-product-hero__meta .icon-svg,
.toboo-product-hero__meta .meta-icon,
.toboo-product-hero__meta .twtheme-block-icon,
.toboo-product-hero__meta .wp-block-twtheme-icon {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	height: 1.15em;
	width: auto;
	line-height: 0;
	color: #fff;
	margin: 0 !important;
}

.toboo-product-hero__meta .icon-svg svg,
.toboo-product-hero__meta .twtheme-block-icon svg,
.toboo-product-hero__meta .wp-block-twtheme-icon svg {
	display: block;
	height: 1.15em;
	width: auto;
	max-height: 24px;
}

.toboo-product-hero__meta .meta-icon--bgg {
	height: 1.35em;
	max-height: 28px;
	width: auto;
}

.toboo-product-hero__meta .flag {
	display: inline-block;
	vertical-align: middle;
	height: 16px;
	width: auto;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.toboo-product-hero__meta-value,
.toboo-product-hero__meta-value .tw-meta__value,
.toboo-product-hero__meta .tw-meta__value {
	color: inherit;
	font-weight: 500;
	white-space: nowrap;
}

/* Beat twtheme meta-block.css (.875rem) so hero meta inherits row size. */
.toboo-product-hero__meta .wp-block-twtheme-meta.tw-meta-block:not(:is(h1, h2, h3, h4, p)),
.toboo-product-hero__meta .wp-block-twtheme-meta.tw-meta-block:not(:is(h1, h2, h3, h4, p)) .tw-meta__value {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-decoration: none;
	text-transform: none;
	color: inherit;
}

/* Summary / delivery / ATC sit in content column */
.toboo-product-hero__summary,
.toboo-product-hero__content-col .wp-block-woocommerce-product-summary,
.toboo-product-hero__content-col .toboo-product-hero__summary {
	color: #fff;
}

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

.toboo-product-hero__atc {
	margin-top: 1rem;
}

.toboo-product-hero__content-col {
	container-type: inline-size;
	container-name: product-hero-content;
}

/* ATC form + button — migrated off Bootstrap .btn / .btn-lg / utilities. */
.toboo-product-atc-form.cart,
.toboo-product-hero .toboo-product-atc-form {
	margin-top: 1rem;
}

.toboo-product-atc-form > .toboo-hint {
	margin-bottom: 0.75rem;
}

.toboo-product-addon__low-stock {
	margin: 0;
}

/* Selection frame: main product + addons + summary + ATC */
.toboo-product-selection {
	--tw-selection-radius: var(--tw-radius, 0.75rem);
	--tw-selection-radius-sm: var(--tw-radius-sm, 0.25rem);
	--tw-selection-radius-lg: var(--tw-radius-lg, 0.5rem);
	--tw-selection-radius-pill: var(--tw-radius-pill, 50rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-sizing: border-box;
}

.toboo-product-selection__headline {
	margin: 0;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.3;
}

.toboo-product-selection__items {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.toboo-product-selection__items .toboo-product-addon {
	margin: 0;
}

.toboo-product-selection__item.is-locked {
	cursor: default;
}

.toboo-product-selection--solo .toboo-product-selection__item.is-locked,
.toboo-product-selection__item.is-locked:not(:has(.toboo-product-addon__toggle)) {
	gap: 0;
	padding-left: 0.65rem;
}

.toboo-product-selection--solo .toboo-product-selection__item.is-locked .toboo-product-addon__body,
.toboo-product-selection__item.is-locked:not(:has(.toboo-product-addon__toggle)) .toboo-product-addon__body {
	margin: 0;
}

.toboo-product-selection--solo .toboo-product-selection__item.is-locked .toboo-product-addon__media,
.toboo-product-selection__item.is-locked:not(:has(.toboo-product-addon__toggle)) .toboo-product-addon__media {
	margin-left: 0;
}

.toboo-product-selection__summary {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.25rem;
	padding: 0;
	margin: 0;
	border: 0;
	color: #fff;
	box-sizing: border-box;
	text-align: right;
}

.toboo-product-selection__summary-total + .toboo-product-selection__legal {
	margin-top: 0.35rem;
}

.toboo-product-selection__summary-list {
	display: none;
}

.toboo-product-selection__summary-total-line {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 0.5rem;
	white-space: nowrap;
}

.toboo-product-selection__summary-total-label,
.toboo-product-selection__summary-total-value {
	font-weight: 500;
}

.toboo-product-selection__summary-total-value {
	flex: 0 0 auto;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.toboo-product-selection__summary-savings {
	font-size: 0.9em;
	font-weight: 400;
	color: var(--wp--preset--color--hell, #b5d91f);
}

.toboo-product-selection__summary-savings-label {
	font-weight: 400;
}

.toboo-product-selection__summary-savings-value {
	font-weight: 500;
}

.toboo-product-selection__summary-savings[hidden] {
	display: none !important;
}

.toboo-product-selection__summary-savings-value {
	font-variant-numeric: tabular-nums;
}

.toboo-product-hero .price,
.toboo-product-hero .woocommerce-Price-amount,
.toboo-product-addon__price {
	font-variant-numeric: tabular-nums;
}

.toboo-product-selection__summary-total {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 0.15rem;
	padding-top: 0;
	margin-top: 0;
	font-size: 1.05rem;
	font-weight: 500;
	text-align: right;
}

.toboo-product-selection__legal {
	font-size: 0.75rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.7);
	text-align: right;
}

.toboo-product-hero__content-col .toboo-product-selection__legal .legal-price-info,
.toboo-product-hero__content-col .toboo-product-selection__legal .wc-gzd-additional-info,
.toboo-product-selection__legal .legal-price-info,
.toboo-product-selection__legal .wc-gzd-additional-info {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	text-align: right;
}

.toboo-product-hero__content-col .toboo-product-selection__legal a,
.toboo-product-selection__legal a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: underline;
}

/* Unified Lieferzeit (product, cart, preview, addons). */
.toboo-delivery-time,
.toboo-product-addon__delivery,
.toboo-product-addon__delivery.wc-gzd-additional-info,
.toboo-product-addon__delivery.delivery-time-info,
.toboo-delivery-time--warning,
.toboo-product-addon__delivery--warning,
.toboo-product-hero__content-col .toboo-delivery-time,
.toboo-product-hero__content-col .toboo-product-addon__delivery,
.toboo-product-hero__content-col .toboo-product-addon__delivery.wc-gzd-additional-info {
	display: block;
	margin: 0;
	padding: 0;
	font-size: var(--toboo-hint-size, 0.875rem);
	font-weight: var(--toboo-hint-weight, 400);
	line-height: var(--toboo-hint-line, 1.35);
}

.toboo-delivery-time__icon,
.toboo-product-addon__delivery-icon,
.toboo-delivery-time .icon-svg,
.toboo-product-addon__delivery .icon-svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	width: 1em;
	height: 1em;
	margin-right: 0.35rem;
	line-height: 0;
	color: inherit;
}

.toboo-delivery-time__icon svg,
.toboo-product-addon__delivery-icon svg,
.toboo-delivery-time .icon-svg svg,
.toboo-product-addon__delivery .icon-svg svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.toboo-delivery-time .delivery-time-data,
.toboo-product-addon__delivery .delivery-time-data {
	display: inline;
	vertical-align: middle;
}

.toboo-product-atc,
.add-to-cart.toboo-product-atc {
	position: relative;
	text-align: left;
}

/*
 * Cart + PayPal: separate siblings. Layout stack only (no fused chrome).
 * PayPal sits flush under the cart button, centered and narrower.
 */
.toboo-product-buy {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	width: max-content;
	max-width: 100%;
}

.toboo-product-buy > .toboo-product-atc {
	position: relative;
	z-index: 1;
	width: auto;
	max-width: 100%;
}

/* Cast cart button shadow onto the PayPal strip below. */
.toboo-product-buy > .toboo-product-atc .toboo-product-atc__button {
	box-shadow: 0 10px 16px rgba(0, 0, 0, 0.28);
}

.toboo-product-buy > .ppc-button-wrapper {
	display: block;
	box-sizing: border-box;
	position: relative;
	z-index: 0;
	width: 78%;
	min-width: 9.5rem;
	max-width: 100%;
	margin: 0;
	padding: 0;
	line-height: 0;
	/* Same squircle language as cart, fuller bottom corners. */
	--toboo-paypal-radius: 1.35rem;
	border-radius: 0 0 var(--toboo-paypal-radius) var(--toboo-paypal-radius);
	corner-shape: squircle;
	overflow: hidden;
	background: #ffc439;
	transform: scale(1);
	transform-origin: center top;
	transition: transform 0.18s ease;
}

.toboo-product-buy > .ppc-button-wrapper:hover,
.toboo-product-buy > .ppc-button-wrapper:focus-within {
	transform: scale(1.08);
}

.toboo-product-buy > .ppc-button-wrapper > div,
.toboo-product-buy > .ppc-button-wrapper #ppc-button-ppcp-gateway {
	width: 100% !important;
	max-width: 100%;
	min-height: 40px;
}

.toboo-product-buy > .ppc-button-wrapper iframe {
	max-width: 100% !important;
}

/* Under items: cart/PayPal left, sum/price right (side-by-side from ~28rem). */
.toboo-product-selection .toboo-product-atc,
.toboo-product-selection .toboo-product-buy {
	text-align: left;
}

/* Extra space above sum (stacked); side-by-side row gets the same via grid rules. */
.toboo-product-selection > .toboo-product-selection__summary {
	margin-top: 1rem;
}

@container product-hero-content (min-width: 28rem) {
	.toboo-product-selection:has(> .toboo-product-selection__summary):has(> .toboo-product-buy),
	.toboo-product-selection:has(> .toboo-product-selection__summary):has(> .toboo-product-atc) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			'headline headline'
			'items items'
			'atc summary';
		align-items: start;
		column-gap: 1.25rem;
		row-gap: 1rem;
	}

	.toboo-product-selection__headline {
		grid-area: headline;
	}

	.toboo-product-selection__items {
		grid-area: items;
	}

	.toboo-product-selection > .toboo-product-buy,
	.toboo-product-selection > .toboo-product-atc {
		grid-area: atc;
		justify-self: start;
		align-self: start;
		text-align: left;
		margin-top: 1rem;
	}

	.toboo-product-selection > .toboo-product-selection__summary {
		grid-area: summary;
		width: auto;
		justify-self: end;
		align-self: start;
		align-items: flex-end;
		text-align: right;
		margin-top: 1rem;
	}
}

.toboo-product-atc__button.add-to-cart-button,
.toboo-product-atc__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 1rem;
	border: 1px solid transparent;
	border-radius: var(--tw-radius-card, 2.5rem);
	corner-shape: squircle;
	background-color: var(--wp--preset--color--hell, #b5d91f);
	color: var(--wp--preset--color--dunkel, #0d1101);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	appearance: none;
	transform: scale(1);
	transform-origin: center center;
	transition: background-color 0.15s ease, transform 0.18s ease;
}

.toboo-product-atc__button:hover,
.toboo-product-atc__button:focus-visible {
	background-color: color-mix(in srgb, var(--wp--preset--color--hell, #b5d91f) 88%, white);
	border-color: transparent;
	color: var(--wp--preset--color--dunkel, #0d1101);
	outline: none;
	transform: scale(1.08);
}

.toboo-product-atc__button:active {
	background-color: color-mix(in srgb, var(--wp--preset--color--hell, #b5d91f) 88%, white);
	border-color: transparent;
	color: var(--wp--preset--color--dunkel, #0d1101);
	outline: none;
	transform: scale(1.03);
}

.toboo-product-atc__button:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	pointer-events: none;
}

form.cart .add-to-cart-button .button-text.toboo-product-atc__label,
.toboo-product-atc__label.button-text {
	padding-left: 0;
	font-weight: 500;
	text-align: left;
}

.toboo-product-atc__icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin: 0;
	line-height: 0;
	color: var(--wp--preset--color--dunkel, #0d1101);
	transition: transform 0.15s ease;
	transform-origin: center bottom;
	overflow: visible;
}

.toboo-product-atc__button:hover .toboo-product-atc__icon-wrap,
.toboo-product-atc__button:focus-visible .toboo-product-atc__icon-wrap {
	transform: scale(1.22);
}

.toboo-product-atc__button,
.toboo-product-atc {
	overflow: visible;
}

.toboo-product-atc__icon,
.toboo-product-atc__icon-wrap > .icon-svg {
	position: relative;
	display: inline-flex;
	width: 1.55em;
	height: 1.75em;
	color: inherit;
	overflow: visible;
}

.toboo-product-atc__icon svg,
.toboo-product-atc__icon-wrap svg {
	display: block;
	width: 1.55em;
	height: 1.75em;
	fill: currentColor;
	overflow: visible;
}

.toboo-product-atc__button svg.animate,
.toboo-product-atc__button .toboo-product-atc__icon.animate,
.toboo-product-atc__button .toboo-product-atc__icon-wrap.animate,
.toboo-product-atc__button .icon-svg.animate {
	animation-name: box_loader;
	animation-duration: 1.5s;
	animation-iteration-count: infinite;
}

.toboo-product-atc__button:hover .toboo-product-atc__icon-wrap.animate,
.toboo-product-atc__button:focus-visible .toboo-product-atc__icon-wrap.animate {
	transform: none;
}

/*
 * Quantity must be positioned on .add-to-cart, NOT form.cart.
 * Classic form.cart .quantity { height: 100% } otherwise covers the addon and steals clicks.
 */
.toboo-product-hero__atc form.cart,
.toboo-product-hero form.cart {
	position: relative;
}

.toboo-product-hero__atc form.cart > .quantity,
.toboo-product-hero form.cart > .quantity {
	/* Safety: never let a stray qty sit on the form root over addons. */
	position: static;
	height: auto;
	transform: none;
}

.toboo-product-hero__atc .add-to-cart,
.toboo-product-hero .add-to-cart {
	position: relative;
}

.toboo-product-hero__atc .add-to-cart .quantity,
.toboo-product-hero .add-to-cart .quantity {
	position: absolute;
	left: 0.35rem;
	top: 50%;
	transform: translateY(-50%);
	height: auto !important;
	margin: 0;
	display: flex;
	align-items: center;
	z-index: 2;
}

.toboo-product-hero__atc .add-to-cart .quantity input.qty,
.toboo-product-hero .add-to-cart .quantity input.qty {
	width: 2.75rem;
	height: 2.5rem !important;
	max-height: 2.5rem;
	padding: 0;
	font-size: 1rem;
	line-height: 1;
	color: #fff;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--tw-selection-radius-sm, var(--tw-radius-sm, 0.25rem));
	background: var(--pagecolor, #141624);
}

/* Addon card — shared chrome for PDP, shop stream, cart. */
.toboo-product-addon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: stretch;
	gap: 0.75rem;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	box-sizing: border-box;
	border: 0;
	border-radius: var(--tw-radius-card, 2.5rem);
	corner-shape: squircle;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	pointer-events: auto;
	transition: background-color 0.2s ease;
	list-style: none;
}

.toboo-product-addon.addon-wrapper {
	cursor: pointer;
}

.toboo-product-addon:hover:not(.out-of-stock):not(.checked),
.toboo-product-addon.addon-wrapper:hover:not(.out-of-stock):not(.checked) {
	background: rgba(255, 255, 255, 0.1);
}

.toboo-product-addon.addon-wrapper:hover:not(.out-of-stock):not(.checked) .toboo-product-addon__toggle {
	background: rgba(255, 255, 255, 0.12);
}

.toboo-product-addon.addon-wrapper.out-of-stock {
	cursor: default;
	opacity: 0.85;
}

/* Match cart sold-out media: mute the thumbnail. */
.toboo-product-addon__media.is-sold-out .toboo-product-addon__image {
	opacity: 0.55;
	filter: grayscale(0.35);
}

/* Keep layout column; hide checkbox visuals completely. */
.toboo-product-addon.addon-wrapper.out-of-stock .add-addon,
.toboo-product-addon.addon-wrapper.out-of-stock .toboo-product-addon__toggle {
	visibility: hidden;
	background: transparent !important;
	pointer-events: none;
}

.toboo-product-addon__toggle,
.toboo-product-addon.addon-wrapper .add-addon,
.toboo-product-addon__toggle.add-addon {
	position: relative;
	left: auto;
	top: auto;
	bottom: auto;
	margin: 0;
	height: auto;
	flex: 0 0 2.75rem;
	width: 2.75rem;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--tw-radius-card, 2.5rem);
	corner-shape: squircle;
	background: rgba(255, 255, 255, 0.05);
	font-size: 1.35rem;
}

.toboo-product-addon__toggle .icon-svg,
.toboo-product-addon__toggle .not-added,
.toboo-product-addon__toggle .added {
	display: inline-flex;
	line-height: 0;
}

.toboo-product-addon__toggle .icon-svg svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: #fff;
	color: #fff;
}

.toboo-product-addon__toggle .icon-svg svg * {
	fill: currentColor;
}

.toboo-product-addon:not(.checked) .added {
	display: none;
}

/* Fallback accent by kind when no term color is set inline. */
.toboo-product-selection__item--kind-spiel {
	--toboo-selection-accent: var(--wp--preset--color--hell, #b5d91f);
}

.toboo-product-selection__item--kind-addon {
	--toboo-selection-accent: var(--wp--preset--color--hellblau, #1ec4d6);
}

.toboo-product-addon.addon-wrapper.checked,
.toboo-product-addon.addon-wrapper.checked:hover:not(.out-of-stock) {
	border: 0;
	background: color-mix(
		in srgb,
		var(--toboo-selection-accent, var(--wp--preset--color--hell, #b5d91f)) 14%,
		transparent
	);
}

.addon-wrapper.checked .add-addon,
.toboo-product-addon.addon-wrapper.checked .add-addon,
.toboo-product-addon.addon-wrapper.checked .toboo-product-addon__toggle,
.toboo-product-addon.addon-wrapper.checked:hover:not(.out-of-stock) .add-addon,
.toboo-product-addon.addon-wrapper.checked:hover:not(.out-of-stock) .toboo-product-addon__toggle {
	background: var(--toboo-selection-accent, var(--wp--preset--color--hell, #b5d91f));
}

.toboo-product-addon.addon-wrapper.checked .toboo-product-addon__toggle .icon-svg svg,
.toboo-product-addon.addon-wrapper.checked .toboo-product-addon__toggle .icon-svg svg * {
	fill: var(--wp--preset--color--dunkel, #0d1101);
	color: var(--wp--preset--color--dunkel, #0d1101);
}

.toboo-product-addon.checked .not-added {
	display: none;
}

.toboo-product-addon__soldout {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.3rem 0.55rem;
	border-radius: var(--tw-selection-radius-pill, var(--tw-radius-pill, 50rem));
	transform: translate(-50%, -50%) rotate(-14deg);
	line-height: 1;
	color: #fff;
	background: var(--wp--preset--color--rot, #e01e4a);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
	pointer-events: none;
}

.toboo-product-addon__body {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

a.toboo-product-addon__body:hover,
a.toboo-product-addon__body:focus-visible {
	color: inherit;
	text-decoration: none;
}

.toboo-product-addon__media {
	position: relative;
	flex: 0 0 3.5rem;
	width: 3.5rem;
}

.toboo-product-addon__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--tw-radius-card, 2.5rem);
	box-sizing: border-box;
}

.toboo-product-addon__content {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

.toboo-product-addon__main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	min-width: 0;
	flex: 1 1 auto;
}

.toboo-product-addon__title {
	display: block;
	min-width: 0;
	line-height: 1.2;
	font-weight: 600;
}

.toboo-product-addon__badge {
	display: inline-block;
	padding: 0.35rem 0.55rem;
	border-radius: var(--tw-selection-radius-pill, var(--tw-radius-pill, 50rem));
	background: var(--toboo-selection-accent, var(--wp--preset--color--hell, #b5d91f));
	color: var(--wp--preset--color--dunkel, #0d1101);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
	text-box-trim: trim-both;
	text-box-edge: cap alphabetic;
}

/* Kind classes are semantic only — color comes from --toboo-selection-accent
 * (term meta inline, or parent --kind-* fallback). */

.toboo-product-addon__link,
.toboo-product-addon__name {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.toboo-product-addon__link:hover {
	text-decoration: underline;
}

.toboo-product-addon__name {
	cursor: inherit;
}

.toboo-product-addon__ext {
	display: inline-flex;
	vertical-align: -0.1em;
	margin-left: 0.15rem;
}

.toboo-product-addon__ext svg {
	width: 0.8em;
	height: 0.8em;
}

.toboo-product-addon__price,
.toboo-product-addon__price.price > .woocommerce-Price-amount bdi,
.toboo-product-addon__price.price > ins,
.toboo-product-addon__price.price > ins .woocommerce-Price-amount bdi {
	font-weight: 500;
}

.toboo-product-addon__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	column-gap: 0.25rem;
	row-gap: 0.05rem;
	margin: 0;
	margin-left: auto;
	flex: 0 0 auto;
	font-size: 0.95rem;
	text-align: right;
	white-space: normal;
}

/* Strikethrough / UVP above the current price. */
.toboo-product-addon__price .wc-gzd-sale-price-label,
.toboo-product-addon__price del {
	font-size: 0.8em;
	line-height: 1.15;
	opacity: 0.65;
}

.toboo-product-addon__price ins {
	flex: 0 0 100%;
	text-decoration: none;
	text-align: right;
	line-height: 1.2;
}

/* Gallery inside `.toboo-product-shell` (above the description card). */
.toboo-product-shell .toboo-product-gallery,
.toboo-product-gallery {
	position: relative;
	z-index: 30;
	background: transparent;
	color: #fff;
	padding-top: clamp(1rem, 2.5vw, 2rem);
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
	overflow-x: clip;
}

.toboo-product-gallery__inner {
	/* Slightly narrower than hero content; slide size from Splide perPage. */
	--toboo-gallery-max: 960px;
	/* Keep in sync with splide_padding_left/right (product-gallery-slider.php). */
	--toboo-gallery-arrow-pad: 2.5rem;
	width: min(var(--toboo-gallery-max), calc(100% - 2rem));
	max-width: var(--toboo-gallery-max);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

/* Show slides during Dynamic-Content fade (Splide defaults to visibility:hidden). */
.twtheme-dynamic-content-height-shell--fade .slider-main.slider-product-gallery.splide:not(.is-initialized),
.toboo-product-gallery .twtheme-dynamic-content-height-shell--fade .splide:not(.is-initialized) {
	visibility: visible;
}

.toboo-product-gallery__lazy.dynamic-content-placeholder {
	width: 100%;
	min-height: 9.5rem;
	position: relative;
}

.toboo-product-gallery__lazy.dynamic-content-placeholder > .loading,
.toboo-product-gallery__lazy.dynamic-content-placeholder > .loading .loading__center {
	opacity: 1;
}

.twtheme-dynamic-content-height-shell--fade {
	opacity: 0;
	transition: opacity var(--tw-dc-fade-duration, 400ms) ease;
}

.twtheme-dynamic-content-height-shell--fade.twtheme-dynamic-content-height-shell--faded-in {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.twtheme-dynamic-content-height-shell--fade {
		opacity: 1;
		transition: none;
	}
}

.slider-main.slider-product-gallery {
	position: relative;
	box-sizing: border-box;
	/* Floor for lazy height-shell measurement before Splide mounts. */
	min-height: 9.5rem;
}

/*
 * Pre-init slide widths so aspect-ratio thumbs get a real width (and thus height)
 * while .splide is still visibility:hidden — otherwise the dynamic-content
 * height-shell measures 0 and clips the gallery after inject.
 * Keep in sync with splide_per_page / gap / padding / breakpoints (5 / 3 / 2).
 * Desktop: 5 slides, 4×14px gap, 2×2.5rem Splide padding.
 */
.slider-main.slider-product-gallery:not(.is-initialized) .splide__slide {
	flex: 0 0 calc((100% - 5rem - 3.5rem) / 5);
	width: calc((100% - 5rem - 3.5rem) / 5);
	max-width: calc((100% - 5rem - 3.5rem) / 5);
}

@media (max-width: 782px) {
	.slider-main.slider-product-gallery:not(.is-initialized) .splide__slide {
		flex-basis: calc((100% - 5rem - 1.75rem) / 3);
		width: calc((100% - 5rem - 1.75rem) / 3);
		max-width: calc((100% - 5rem - 1.75rem) / 3);
	}
}

@media (max-width: 480px) {
	.slider-main.slider-product-gallery:not(.is-initialized) .splide__slide {
		flex-basis: calc((100% - 5rem - 0.875rem) / 2);
		width: calc((100% - 5rem - 0.875rem) / 2);
		max-width: calc((100% - 5rem - 0.875rem) / 2);
	}
}

.slider-main.slider-product-gallery .splide__arrows {
	position: static;
}

.slider-main.slider-product-gallery .splide__arrow.toboo-product-gallery__arrow,
.slider-main.slider-product-gallery .toboo-product-gallery__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--tw-radius-pill, 50rem);
	background: transparent;
	background-image: none;
	color: #fff;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	opacity: 0.85;
	appearance: none;
}

.slider-main.slider-product-gallery .toboo-product-gallery__arrow svg {
	display: block;
	width: 1.15em;
	height: 1.15em;
	fill: currentColor;
}

/*
 * Splide flips .splide__arrow--prev svg with scaleX(-1) for its default
 * right-pointing chevron. Our prev SVG already points left — undo the flip.
 */
.slider-main.slider-product-gallery .splide__arrow--prev.toboo-product-gallery__arrow svg,
.slider-main.slider-product-gallery .toboo-product-gallery__arrow.splide__arrow--prev svg {
	transform: none;
}

/* Splide injects default arrow SVGs into custom buttons — hide extras. */
.slider-main.slider-product-gallery .toboo-product-gallery__arrow > svg:not(:first-child),
.slider-main.slider-product-gallery .toboo-product-gallery__arrow > i {
	display: none;
}

/* Sit in Splide track padding (see splide_padding_*), not over the first/last slide. */
.slider-main.slider-product-gallery .splide__arrow--prev.toboo-product-gallery__arrow,
.slider-main.slider-product-gallery .toboo-product-gallery__arrow.splide__arrow--prev {
	left: 0;
	right: auto;
}

.slider-main.slider-product-gallery .splide__arrow--next.toboo-product-gallery__arrow,
.slider-main.slider-product-gallery .toboo-product-gallery__arrow.splide__arrow--next {
	right: 0;
	left: auto;
}

.slider-main.slider-product-gallery .toboo-product-gallery__arrow:hover,
.slider-main.slider-product-gallery .toboo-product-gallery__arrow:focus-visible {
	opacity: 1;
	outline: none;
}

/*
 * After base arrow styles so display:none wins over display:inline-flex.
 * — no overflow: hide both arrows + center slides
 * — at ends: hide the disabled direction (omitEnd keeps next disabled when done)
 */
.slider-main.slider-product-gallery.splide:not(.is-overflow) .splide__arrows,
.slider-main.slider-product-gallery.splide:not(.is-overflow)
	.splide__arrow.toboo-product-gallery__arrow,
.slider-main.slider-product-gallery.splide:not(.is-overflow)
	.toboo-product-gallery__arrow {
	display: none;
}

.slider-main.slider-product-gallery.splide:not(.is-overflow) .splide__list {
	justify-content: center;
}

.slider-main.slider-product-gallery
	.splide__arrow.toboo-product-gallery__arrow:disabled,
.slider-main.slider-product-gallery
	.toboo-product-gallery__arrow:disabled,
.slider-main.slider-product-gallery
	.splide__arrow.toboo-product-gallery__arrow.is-disabled,
.slider-main.slider-product-gallery
	.toboo-product-gallery__arrow.is-disabled {
	display: none;
	pointer-events: none;
}

.slider-main.slider-product-gallery .splide__slide {
	min-width: 0;
	/* Clip scaled thumb wrapper to the slide cell (keep radius). */
	overflow: hidden;
	border-radius: var(--tw-radius-card, 2.5rem);
}

/* Gallery thumbs — Gutenberg image styles (aspect-ratio / object-fit / radius). */
.toboo-product-gallery__thumb.wp-block-image,
.slider-main.slider-product-gallery .toboo-product-gallery__thumb {
	aspect-ratio: 1;
	width: 100%;
	height: auto;
	margin: 0;
	display: block;
	overflow: hidden;
	border-radius: var(--tw-radius-card, 2.5rem);
	box-sizing: border-box;
	transform: scale(1);
	transform-origin: center center;
	transition: transform 0.18s ease;
}

.toboo-product-gallery__thumb img,
.slider-main.slider-product-gallery .toboo-product-gallery__thumb img {
	aspect-ratio: 1;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: 50% 50%;
	border-radius: inherit;
	display: block;
	transform: none;
}

.toboo-product-gallery__thumb:hover,
.toboo-product-gallery__thumb:focus-visible,
.slider-main.slider-product-gallery .toboo-product-gallery__thumb:hover,
.slider-main.slider-product-gallery .toboo-product-gallery__thumb:focus-visible {
	transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
	.toboo-product-gallery__thumb.wp-block-image,
	.slider-main.slider-product-gallery .toboo-product-gallery__thumb {
		transition: none;
	}

	.toboo-product-gallery__thumb:hover,
	.toboo-product-gallery__thumb:focus-visible,
	.slider-main.slider-product-gallery .toboo-product-gallery__thumb:hover,
	.slider-main.slider-product-gallery .toboo-product-gallery__thumb:focus-visible {
		transform: none;
	}
}

@supports (corner-shape: squircle) {
	.toboo-product-gallery__thumb.wp-block-image,
	.slider-main.slider-product-gallery .toboo-product-gallery__thumb,
	.toboo-product-gallery__thumb img,
	.slider-main.slider-product-gallery .toboo-product-gallery__thumb img {
		corner-shape: squircle;
	}
}

body.single-product .toboo-product-hero {
	position: relative;
	z-index: 1;
}

.toboo-product-shell {
	position: relative;
	z-index: 2;
	background: transparent;
	padding: 0 0 clamp(4rem, 8vw, 7rem);
	overflow: visible;
}

.toboo-product-shell > * {
	position: relative;
	z-index: 1;
}

/* Product description — white content card + brand O rim (like default pages). */
.toboo-product-description {
	--toboo-description-fg: var(--tw-secondary, #1e1e21);
	position: relative;
	z-index: 2;
	background: transparent;
	color: var(--toboo-description-fg);
	padding: clamp(2rem, 5vw, 3.5rem) 0 0;
	overflow: visible;
}

/* Card stage — room for satellite O’s (same language as .toboo-page-shell__card-wrap). */
.toboo-product-description__card-wrap.toboo-page-shell__card-wrap,
.toboo-product-description__card-wrap {
	--toboo-o-pad-y: clamp(2.25rem, 5.5vw, 4rem);
	--toboo-o-pad-x: var(--toboo-description-card-pad-x, clamp(2.5rem, 6.5vw, 4.5rem));
	position: relative;
	width: min(100%, calc(var(--toboo-description-card-width, 48rem) + 2 * var(--toboo-o-pad-x)));
	margin: 0 auto;
	padding: var(--toboo-o-pad-y) var(--toboo-o-pad-x);
	box-sizing: border-box;
}

@media (max-width: 575.98px) {
	.toboo-product-description__card-wrap {
		--toboo-o-pad-y: 1.85rem;
		--toboo-o-pad-x: 1.85rem;
		overflow-x: clip;
	}

	.toboo-product-description__card-wrap .toboo-page-shell__o {
		--toboo-o-base: clamp(2.35rem, 7.5vw, 3.75rem);
	}
}

/* Reuse default-page O rim chrome on the PDP content card. */
.toboo-product-description__card-wrap .toboo-page-shell__os {
	position: absolute;
	top: var(--toboo-o-pad-y);
	right: var(--toboo-o-pad-x);
	bottom: var(--toboo-o-pad-y);
	left: var(--toboo-o-pad-x);
	z-index: 1;
	pointer-events: none;
	overflow: visible;
}

.toboo-product-description__card-wrap .toboo-page-shell__o {
	--toboo-o-base: clamp(3.5rem, 10vw, 6rem);
	--toboo-o-push-x: 0px;
	--toboo-o-push-y: 0px;
	position: absolute;
	display: block;
	width: calc(var(--toboo-o-base) * var(--toboo-o-size, 1));
	line-height: 0;
	transform:
		translate(
			calc(-50% + var(--toboo-o-nudge-x, 0px) + var(--toboo-o-push-x)),
			calc(-50% + var(--toboo-o-nudge-y, 0px) + var(--toboo-o-push-y))
		)
		rotate(var(--toboo-o-rot, 0deg));
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.toboo-product-description__card-wrap .toboo-page-shell__o {
		transition: none;
		will-change: auto;
	}
}

@keyframes toboo-page-o-pop {
	0% {
		opacity: 0;
		transform: scale(0.55);
	}
	55% {
		opacity: 1;
		transform: scale(1.12);
	}
	78% {
		opacity: 1;
		transform: scale(0.97);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.toboo-product-description__card-wrap .toboo-page-shell__o-pop {
	display: block;
	width: 100%;
	line-height: 0;
	transform-origin: center center;
	opacity: 0;
	transform: scale(0.55);
}

.toboo-product-description__card-wrap .toboo-page-shell__o.is-in .toboo-page-shell__o-pop {
	animation: toboo-page-o-pop 0.75s cubic-bezier(0.33, 1, 0.68, 1) both;
	animation-delay: var(--toboo-o-reveal-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
	.toboo-product-description__card-wrap .toboo-page-shell__o-pop {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

.toboo-product-description__card-wrap .toboo-page-shell__o svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.toboo-product-description__card-wrap .toboo-page-shell__o path {
	fill: var(--toboo-o-fill, var(--wp--preset--color--o-lila, #7a3cff));
}

.toboo-product-description__card.toboo-panel {
	position: relative;
	z-index: 2;
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: var(--tw-radius-card, 2.5rem);
	corner-shape: squircle;
	background: #fff;
	color: var(--tw-secondary, #1e1e21);
	overflow: hidden;
	box-sizing: border-box;
}

.toboo-product-description__card .toboo-panel__inner,
.toboo-product-description__inner {
	padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
	background: #fff;
	color: var(--tw-secondary, #1e1e21);
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
}

.toboo-product-description__content,
.toboo-product-description__content p,
.toboo-product-description__content h3,
.toboo-product-description__content h4 {
	color: inherit;
}

/* Shared H2 style for description + FAQ. */
.toboo-product-description h2,
.toboo-product-description .toboo-product-description__title,
.toboo-product-description .toboo-product-faq__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.95rem);
	font-weight: 600;
	line-height: 1.25;
	color: inherit;
}

/* Inline prose links — see inline-links.css */

.toboo-product-description__meta {
	min-width: 0;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	margin-bottom: 0;
}

/* Same visual language as FAQ accordion items. */
.toboo-product-description .toboo-product-meta {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.45rem;
	color: var(--toboo-description-fg, var(--tw-secondary, #1e1e21));
}

.toboo-product-description .toboo-product-meta__group {
	margin: 0;
	flex: 1 1 10rem;
	min-width: 0;
	padding: 0.85rem 1rem;
	border: 0;
	border-radius: var(--tw-radius-card, 2.5rem);
	corner-shape: squircle;
	background: var(--tw-light, #e9edf0);
	box-sizing: border-box;
}

.toboo-product-description .toboo-product-meta__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
}

.toboo-product-description .toboo-product-meta__list {
	margin: 0;
	padding: 0;
	list-style: none;
	color: inherit;
	font-size: 0.9rem;
	line-height: 1.45;
	opacity: 0.88;
}

.toboo-product-meta__list li {
	margin: 0;
}

.toboo-product-meta__list li.toboo-product-meta__locale {
	white-space: nowrap;
}

/* FAQ lives inside the white description card. */
.toboo-product-description .toboo-product-faq {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding: 0;
	background: transparent;
	color: inherit;
}

/* Panel open/close: same grid 0fr→1fr animation as twtheme `_accordion.scss`. */
.toboo-product-faq .wp-block-accordion {
	--tw-accordion-panel-duration: 0.3s;
	--tw-accordion-panel-easing: cubic-bezier(0.4, 0, 0.2, 1);
	--tw-accordion-icon-duration: 0.25s;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.toboo-product-faq .wp-block-accordion-item {
	display: grid;
	grid-template-rows: auto 0fr;
	gap: 0 !important;
	row-gap: 0 !important;
	margin: 0;
	border: 0;
	border-radius: var(--tw-radius-card, 2.5rem);
	corner-shape: squircle;
	background: var(--tw-light, #e9edf0);
	overflow: hidden;
	color: var(--toboo-description-fg, var(--tw-secondary, #1e1e21));
}

@media (prefers-reduced-motion: no-preference) {
	.toboo-product-faq .wp-block-accordion-item {
		transition: grid-template-rows var(--tw-accordion-panel-duration)
			var(--tw-accordion-panel-easing);
	}
}

.toboo-product-faq .wp-block-accordion-item.is-open {
	grid-template-rows: auto 1fr;
}

.toboo-product-faq .wp-block-accordion-heading {
	margin: 0;
}

.toboo-product-faq .wp-block-accordion-heading__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.toboo-product-faq .wp-block-accordion-heading__toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	font-size: 1rem;
	line-height: 1;
	opacity: 0.85;
	color: inherit;
}

.toboo-product-faq .wp-block-accordion-heading__toggle-icon.tw-accordion-toggle-icon--chevron,
.toboo-product-faq .wp-block-accordion-heading__toggle-icon.tw-accordion-toggle-icon--custom {
	width: auto;
	height: auto;
}

.toboo-product-faq .wp-block-accordion-heading__toggle-icon .icon-svg,
.toboo-product-faq .wp-block-accordion-heading__toggle-icon .tw-accordion-toggle-icon-svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	line-height: 0;
	color: inherit;
}

.toboo-product-faq .wp-block-accordion-heading__toggle-icon .icon-svg svg,
.toboo-product-faq .wp-block-accordion-heading__toggle-icon .tw-accordion-toggle-icon-svg svg {
	display: block;
	width: auto;
	height: 0.95rem;
}

@media (prefers-reduced-motion: no-preference) {
	.toboo-product-faq .wp-block-accordion-heading__toggle-icon {
		transition: transform var(--tw-accordion-icon-duration) ease-in-out;
	}
}

.toboo-product-faq
	.wp-block-accordion-item.is-open
	> .wp-block-accordion-heading
	.wp-block-accordion-heading__toggle-icon {
	transform: rotate(180deg);
}

.toboo-product-faq .wp-block-accordion-panel,
.toboo-product-faq .wp-block-accordion-panel p,
.toboo-product-faq .wp-block-accordion-panel__inner {
	margin: 0;
	color: inherit;
}

.toboo-product-faq .wp-block-accordion-panel {
	padding: 0;
	overflow: hidden;
	min-height: 0;
}

/* Core sets display:none on [inert] — keep block so the grid row can animate. */
.toboo-product-faq .wp-block-accordion-panel[inert],
.toboo-product-faq .wp-block-accordion-panel[aria-hidden='true'] {
	display: block;
	margin-block: 0;
}

.toboo-product-faq .wp-block-accordion-panel__inner {
	padding: 0 0.9rem 0.8rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.toboo-product-faq
	.wp-block-accordion-panel:not(:has(.wp-block-accordion-panel__inner))
	> *:first-child {
	margin-top: 0;
	padding-top: 0.1rem;
}

.toboo-product-faq
	.wp-block-accordion-panel:not(:has(.wp-block-accordion-panel__inner))
	> *:last-child {
	margin-bottom: 0;
	padding-bottom: 0.8rem;
}

.toboo-product-faq
	.wp-block-accordion-panel:not(:has(.wp-block-accordion-panel__inner))
	> * {
	padding-left: 0.9rem;
	padding-right: 0.9rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.toboo-product-faq .wp-block-accordion-panel p:last-child {
	margin-bottom: 0;
}

.toboo-product-meta__flag {
	display: inline-block;
	vertical-align: middle;
	height: 14px;
	width: auto;
	margin-right: 0.35rem;
}

svg.toboo-product-meta__flag {
	display: inline-block;
	vertical-align: middle;
	height: 14px;
	width: auto;
	margin-right: 0.35rem;
}
