/* =========================================================
   Oravio Commerce system
   WooCommerce owns product/catalog behavior; the theme owns presentation.
   ========================================================= */

:root {
	--oravio-commerce-card-shadow:
		0 1px 2px rgba(20, 24, 40, 0.025),
		0 10px 34px rgba(20, 24, 40, 0.045);
	--oravio-commerce-card-shadow-hover:
		0 1px 3px rgba(20, 24, 40, 0.03),
		0 15px 40px rgba(20, 24, 40, 0.075);
	--oravio-commerce-panel-shadow:
		0 2px 5px rgba(20, 24, 40, 0.025),
		0 22px 68px rgba(20, 24, 40, 0.075);
	--oravio-commerce-media-bg:
		color-mix(in srgb, var(--wp--preset--color--surface) 78%, var(--wp--preset--color--background));
	--oravio-commerce-glow: color-mix(in srgb, var(--wp--preset--color--primary) 11%, transparent);
}

/* =========================================================
   Catalog / product archives
   ========================================================= */

.oravio-shop-archive {
	padding-top: 0;
}

.oravio-shop-archive__hero {
	position: relative;
	isolation: isolate;
	margin-bottom: clamp(1.6rem, 4vw, 2.5rem);
	padding-top: clamp(3rem, 7vw, 5.75rem);
	padding-bottom: clamp(2.75rem, 7vw, 5.25rem);
	overflow: hidden;
	background:
		radial-gradient(circle at 13% 5%, var(--oravio-commerce-glow), transparent 28rem),
		linear-gradient(180deg, var(--wp--preset--color--surface), transparent 92%);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.oravio-shop-archive__hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: max(-8rem, -8vw);
	bottom: -12rem;
	width: 26rem;
	height: 26rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 6%, transparent);
	filter: blur(1px);
	pointer-events: none;
}

.oravio-shop-archive__header {
	margin-bottom: 0;
}

.oravio-shop-archive__header .woocommerce-breadcrumb,
.oravio-shop-archive__header .wc-block-breadcrumbs {
	margin-bottom: 0.8rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
}

.oravio-shop-archive__header .wp-block-query-title {
	max-width: 15ch;
	margin-top: 0;
	margin-bottom: 0.65rem;
	letter-spacing: -0.038em;
	text-wrap: balance;
}

.oravio-shop-archive__header .wp-block-term-description {
	max-width: 58rem;
	margin-top: 0;
	color: var(--wp--preset--color--muted);
	font-size: clamp(1rem, 2vw, 1.15rem);
}

.oravio-shop-toolbar {
	gap: 0.85rem 1.5rem;
	margin-bottom: clamp(1.25rem, 3vw, 1.8rem);
	padding: 0.8rem 0.9rem 0.8rem 1.05rem;
	background:
		linear-gradient(
			to bottom,
			color-mix(in srgb, var(--wp--preset--color--surface) 88%, transparent),
			color-mix(in srgb, var(--wp--preset--color--surface) 72%, transparent)
		);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	box-shadow: 0 8px 28px rgba(20, 24, 40, 0.025);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.oravio-shop-toolbar p,
.oravio-shop-toolbar form {
	margin-top: 0;
	margin-bottom: 0;
}

.oravio-shop-toolbar .woocommerce-result-count,
.oravio-shop-toolbar .wc-block-product-results-count {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
}

.oravio-shop-toolbar select {
	min-height: 2.6rem;
	padding: 0.35rem 2.35rem 0.35rem 0.85rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--sm);
	cursor: pointer;
}



/* =========================================================
   Category-aware catalog
   ========================================================= */

.oravio-catalog-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.25rem, 4vw, 2.5rem);
	align-items: center;
}

.oravio-catalog-hero.has-image {
	grid-template-columns: minmax(0, 1.08fr) minmax(16rem, 0.92fr);
}

.oravio-catalog-hero__copy {
	min-width: 0;
}

.oravio-catalog-hero__title {
	max-width: 15ch;
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--3-xl);
	line-height: 1.03;
	letter-spacing: -0.038em;
	text-wrap: balance;
}

.oravio-catalog-hero__description {
	max-width: 56rem;
	margin-top: 0.85rem;
	color: var(--wp--preset--color--muted);
	font-size: clamp(1rem, 2vw, 1.15rem);
	line-height: 1.65;
}

.oravio-catalog-hero__description > :first-child {
	margin-top: 0;
}

.oravio-catalog-hero__description > :last-child {
	margin-bottom: 0;
}

.oravio-catalog-hero__media {
	position: relative;
	min-width: 0;
	overflow: hidden;
	background: var(--oravio-commerce-media-bg);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.35rem;
	box-shadow: var(--oravio-commerce-card-shadow);
}

.oravio-catalog-hero__image {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.oravio-category-browser {
	margin-top: clamp(1rem, 3vw, 1.75rem);
	margin-bottom: clamp(1.5rem, 4vw, 2.6rem);
}

.oravio-category-browser__heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.9rem;
}

.oravio-category-browser__heading h2 {
	margin: 0;
	font-size: clamp(1.15rem, 2.4vw, 1.5rem);
	letter-spacing: -0.018em;
}

.oravio-category-browser__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.75rem, 2vw, 1rem);
}

.oravio-category-card {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	min-width: 0;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.15rem;
	box-shadow: 0 10px 28px rgba(20, 24, 40, 0.035);
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition:
		border-color 170ms ease,
		box-shadow 170ms ease,
		background-color 170ms ease;
}

.oravio-category-card:hover,
.oravio-category-card:focus-visible {
	border-color: color-mix(
		in srgb,
		var(--wp--preset--color--primary) 20%,
		var(--wp--preset--color--border)
	);
	box-shadow: 0 14px 34px rgba(20, 24, 40, 0.06);
}

.oravio-category-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background:
		radial-gradient(
			circle at 18% 22%,
			color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent),
			transparent 36%
		),
		linear-gradient(
			145deg,
			var(--wp--preset--color--soft),
			color-mix(in srgb, var(--wp--preset--color--surface) 84%, var(--wp--preset--color--background))
		);
}

.oravio-category-card__placeholder::after {
	content: "";
	position: absolute;
	right: -12%;
	bottom: -42%;
	width: 72%;
	aspect-ratio: 1;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 16%, transparent);
	border-radius: 999px;
}

.oravio-category-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.001);
	transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}

/*
 * Stronger category media motion lives in motion.css. Keeping it there makes
 * hover-capability and reduced-motion behavior part of one interaction system.
 */

.oravio-category-card__body {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 0.9rem 0.9rem;
	overflow: hidden;
	transition: color 240ms ease;
}

.oravio-category-card__body::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--brand);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 320ms cubic-bezier(.22,.68,.24,1);
}

@media (hover: hover) and (pointer: fine) {
	.oravio-category-card:hover .oravio-category-card__body::before,
	.oravio-category-card:focus-visible .oravio-category-card__body::before {
		transform: scaleX(1);
	}

	.oravio-category-card:hover .oravio-category-card__body,
	.oravio-category-card:focus-visible .oravio-category-card__body {
		color: #fff;
	}
}

.oravio-category-card__title {
	min-width: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1rem, 2vw, 1.15rem);
	font-weight: 650;
	line-height: 1.2;
	color: inherit;
	transition: color 240ms ease;
}

.oravio-category-card__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.55rem;
	height: 1rem;
	color: var(--wp--preset--color--primary);
	transition:
		color 240ms ease,
		transform 220ms cubic-bezier(.22,.68,.24,1);
}

.oravio-category-card__arrow svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
	.oravio-category-card:hover .oravio-category-card__arrow,
	.oravio-category-card:focus-visible .oravio-category-card__arrow {
		color: #fff;
		transform: translateX(4px);
	}
}


/* Category showcase mode for mixed-catalog homepages. */
.oravio-category-browser--showcase {
	margin-top: 0;
	margin-bottom: 0;
}

.oravio-category-browser--showcase .oravio-category-browser__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: clamp(0.9rem, 2.2vw, 1.3rem);
}

.oravio-category-browser--showcase .oravio-category-card {
	border-radius: 1.3rem;
}

.oravio-category-browser--showcase .oravio-category-card__media {
	aspect-ratio: 4 / 3;
}

.oravio-category-browser--showcase .oravio-category-card__body {
	align-items: flex-start;
	padding: 1rem 1.05rem 1.1rem;
}

.oravio-category-card__copy {
	display: grid;
	gap: 0.3rem;
	min-width: 0;
}

.oravio-category-browser--showcase .oravio-category-card__title {
	font-size: clamp(1.1rem, 2.4vw, 1.35rem);
}

.oravio-category-card__description {
	display: block;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 400;
	line-height: 1.5;
	transition: color 240ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.oravio-category-card:hover .oravio-category-card__description,
	.oravio-category-card:focus-visible .oravio-category-card__description {
		color: rgba(255, 255, 255, 0.78);
	}
}

.oravio-category-browser--showcase .oravio-category-card__arrow {
	margin-top: 0.15rem;
	font-size: 1.2rem;
}

/* =========================================================
   Plugin-neutral product context
   ========================================================= */

.oravio-product-context {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.28rem 0.45rem;
	min-height: 0;
}

.oravio-product-context__item {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.oravio-product-context__item + .oravio-product-context__item::before {
	content: "·";
	margin-right: 0.15rem;
	color: color-mix(in srgb, var(--wp--preset--color--muted) 55%, transparent);
}

.oravio-product-grid .oravio-product-context--card,
.oravio-product__related .oravio-product-context--card,
.wp-block-woocommerce-product-template > .wc-block-product > .oravio-product-context--card {
	margin: 0.08rem 0.48rem 0.8rem;
	padding: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
}

.oravio-product__summary .oravio-product-context--single {
	width: fit-content;
	margin: 0.85rem 0 1rem;
	padding: 0.55rem 0.75rem;
	background: var(--wp--preset--color--soft);
	border: 1px solid color-mix(
		in srgb,
		var(--wp--preset--color--primary) 14%,
		var(--wp--preset--color--border)
	);
	border-radius: 999px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
}

/* =========================================================
   Shared product-card system
   Used by Shop, homepage Product Collections and related products.
   ========================================================= */

.oravio-product-grid .wc-block-product-template,
.oravio-product__related .wc-block-product-template,
.wp-block-woocommerce-product-template {
	gap: clamp(1rem, 2.1vw, 1.45rem);
}

.oravio-product-grid .wc-block-product-template {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.oravio-product-grid .wc-block-product,
.oravio-product__related .wc-block-product,
.wp-block-woocommerce-product-template > .wc-block-product {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0.58rem 0.58rem 0.7rem;
	overflow: hidden;
	background:
		linear-gradient(
			145deg,
			color-mix(in srgb, var(--wp--preset--color--surface) 100%, transparent),
			color-mix(in srgb, var(--wp--preset--color--surface) 93%, var(--wp--preset--color--background))
		);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.3rem;
	box-shadow: var(--oravio-commerce-card-shadow);
	transition:
		box-shadow 180ms ease,
		border-color 180ms ease,
		background-color 180ms ease;
}

.oravio-product-grid .wc-block-product:hover,
.oravio-product-grid .wc-block-product:focus-within,
.oravio-product__related .wc-block-product:hover,
.oravio-product__related .wc-block-product:focus-within,
.wp-block-woocommerce-product-template > .wc-block-product:hover,
.wp-block-woocommerce-product-template > .wc-block-product:focus-within {
	border-color: color-mix(
		in srgb,
		var(--wp--preset--color--primary) 18%,
		var(--wp--preset--color--border)
	);
	box-shadow: var(--oravio-commerce-card-shadow-hover);
}

.oravio-product-grid .wc-block-components-product-image,
.oravio-product__related .wc-block-components-product-image,
.wp-block-woocommerce-product-template .wc-block-components-product-image,
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-image {
	position: relative;
	margin-bottom: 0.25rem;
	overflow: hidden;
	background: var(--oravio-commerce-media-bg);
	border-radius: 0.98rem;
}

.oravio-product-grid .wc-block-components-product-image img,
.oravio-product__related .wc-block-components-product-image img,
.wp-block-woocommerce-product-template .wc-block-components-product-image img,
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: inherit;
	transform: scale(1.001);
	transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}

.oravio-product-grid .wc-block-product:hover .wc-block-components-product-image img,
.oravio-product-grid .wc-block-product:focus-within .wc-block-components-product-image img,
.oravio-product__related .wc-block-product:hover .wc-block-components-product-image img,
.oravio-product__related .wc-block-product:focus-within .wc-block-components-product-image img {
	transform: scale(1.018);
}

.oravio-product-grid .wp-block-post-title,
.oravio-product__related .wp-block-post-title,
.wp-block-woocommerce-product-template > .wc-block-product > .wp-block-post-title {
	margin: 0.76rem 0.48rem 0.18rem;
	font-weight: 720;
	line-height: 1.2;
	letter-spacing: -0.018em;
}

.oravio-product-grid .wp-block-post-title a,
.oravio-product__related .wp-block-post-title a,
.wp-block-woocommerce-product-template .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
	transition: color 160ms ease;
}

.oravio-product-grid .wp-block-post-title a:hover,
.oravio-product-grid .wp-block-post-title a:focus-visible,
.oravio-product__related .wp-block-post-title a:hover,
.oravio-product__related .wp-block-post-title a:focus-visible {
	color: var(--wp--preset--color--primary);
}

.oravio-product-grid .wc-block-components-product-price,
.oravio-product__related .wc-block-components-product-price,
.wp-block-woocommerce-product-template > .wc-block-product > .wc-block-components-product-price {
	margin: 0 0.48rem 0.46rem;
	color: color-mix(
		in srgb,
		var(--wp--preset--color--text) 82%,
		var(--wp--preset--color--muted)
	);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 680;
	letter-spacing: -0.006em;
}

.oravio-product-grid .wc-block-components-product-price del,
.oravio-product__related .wc-block-components-product-price del {
	margin-right: 0.35rem;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
	opacity: 0.72;
}

.oravio-product-grid .wc-block-components-product-price ins,
.oravio-product__related .wc-block-components-product-price ins {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.oravio-product-grid .oravio-access-resource-summary,
.oravio-product__related .oravio-access-resource-summary {
	margin: 0.08rem 0.48rem 0.8rem;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
}

.oravio-product-grid .wp-block-button,
.oravio-product-grid .wc-block-components-product-button,
.oravio-product__related .wp-block-button,
.oravio-product__related .wc-block-components-product-button,
.wp-block-woocommerce-product-template > .wc-block-product > .wp-block-button,
.wp-block-woocommerce-product-template > .wc-block-product > .wc-block-components-product-button {
	display: block;
	align-self: stretch;
	width: calc(100% - 0.96rem);
	margin: auto 0.48rem 0.02rem;
}

.oravio-product-grid .wp-element-button,
.oravio-product__related .wp-element-button,
.wp-block-woocommerce-product-template .wc-block-components-product-button__button,
.wp-block-woocommerce-product-template .wp-element-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.82rem;
	padding: 0.66rem 0.95rem;
	border: 1px solid var(--wp--preset--color--brand);
	border-radius: 0.78rem;
	background-color: var(--wp--preset--color--surface);
	background-image: linear-gradient(
		var(--wp--preset--color--brand),
		var(--wp--preset--color--brand)
	);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0 100%;
	color: var(--wp--preset--color--brand);
	box-shadow: none;
	text-align: center;
	font-weight: 720;
	transition:
		background-size 310ms cubic-bezier(.22,.68,.24,1),
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.oravio-product-grid .wp-element-button:hover,
	.oravio-product-grid .wp-element-button:focus-visible,
	.oravio-product__related .wp-element-button:hover,
	.oravio-product__related .wp-element-button:focus-visible,
	.wp-block-woocommerce-product-template .wc-block-components-product-button__button:hover,
	.wp-block-woocommerce-product-template .wc-block-components-product-button__button:focus-visible,
	.wp-block-woocommerce-product-template .wp-element-button:hover,
	.wp-block-woocommerce-product-template .wp-element-button:focus-visible {
		background-size: 100% 100%;
		border-color: var(--wp--preset--color--brand);
		color: #fff;
		box-shadow: 0 7px 18px color-mix(
			in srgb,
			var(--wp--preset--color--brand) 18%,
			transparent
		);
	}
}

.oravio-product-grid .wp-element-button:disabled,
.oravio-product-grid .wp-element-button[aria-disabled="true"],
.wp-block-woocommerce-product-template .wp-element-button:disabled,
.wp-block-woocommerce-product-template .wp-element-button[aria-disabled="true"] {
	background-image: none;
	background-color: var(--wp--preset--color--soft);
	border-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
	transform: none;
	box-shadow: none;
	opacity: 0.72;
	cursor: not-allowed;
}

.oravio-product-grid .wc-block-components-product-sale-badge,
.oravio-product__related .wc-block-components-product-sale-badge,
.wp-block-woocommerce-product-template .wc-block-components-product-sale-badge {
	margin: 0.65rem;
	padding: 0.34rem 0.56rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 780;
	letter-spacing: 0.02em;
	box-shadow: 0 6px 16px rgba(20, 24, 40, 0.12);
}

/* Pagination as compact controls rather than raw text links. */
.oravio-product-grid .wp-block-query-pagination {
	gap: 0.45rem;
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.oravio-product-grid .wp-block-query-pagination a,
.oravio-product-grid .wp-block-query-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.55rem;
	min-height: 2.55rem;
	padding: 0.42rem 0.7rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.oravio-product-grid .wp-block-query-pagination .current {
	background: var(--wp--preset--color--text);
	border-color: var(--wp--preset--color--text);
	color: var(--wp--preset--color--surface);
}

.oravio-empty-state {
	margin-top: 1rem;
	padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
	background:
		radial-gradient(circle at 50% 0%, var(--oravio-commerce-glow), transparent 22rem),
		var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.3rem;
	box-shadow: var(--oravio-commerce-card-shadow);
}

/* =========================================================
   Single product
   ========================================================= */

.oravio-product {
	padding-top: clamp(1.5rem, 4vw, 3rem);
}

.oravio-product__breadcrumbs {
	margin-bottom: clamp(1rem, 3vw, 1.5rem);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
}


.oravio-product__breadcrumbs :where(a, span) {
	overflow-wrap: anywhere;
}

.oravio-product__hero {
	gap: clamp(1.8rem, 5vw, 4.75rem);
	align-items: flex-start;
	margin-bottom: clamp(3.25rem, 7vw, 6rem);
}

.oravio-product__media,
.oravio-product__summary {
	min-width: 0;
}

.oravio-product__media {
	padding: clamp(0.45rem, 1vw, 0.7rem);
	background:
		linear-gradient(
			145deg,
			var(--wp--preset--color--surface),
			color-mix(in srgb, var(--wp--preset--color--surface) 88%, var(--wp--preset--color--background))
		);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.45rem;
	box-shadow: var(--oravio-commerce-panel-shadow);
}

/* Current block gallery + legacy gallery fallback. */
.oravio-product__media :where(
	.wp-block-woocommerce-product-image-gallery,
	.wc-block-product-gallery,
	.woocommerce-product-gallery
) {
	margin: 0;
}

.oravio-product__media :where(
	.wc-block-product-gallery-large-image,
	.wc-block-product-gallery-large-image__inner-blocks,
	.woocommerce-product-gallery__wrapper
) {
	width: 100%;
	overflow: hidden;
	border-radius: 1rem;
}

/*
 * Product photography should remain faithful to the source asset. The media
 * stage owns the predictable ratio; the image itself keeps its intrinsic size
 * until it needs to shrink. This avoids enlarging a small client image (or the
 * WooCommerce placeholder) into a soft, stretched hero while still centering
 * portrait, landscape and square photography. Clients can override
 * --oravio-product-media-aspect when a different catalog ratio is intentional.
 */
.oravio-product__media {
	--oravio-product-media-aspect: 1 / 1;
}

.oravio-product__media :where(
	.wc-block-product-gallery-large-image,
	.wc-block-product-gallery-large-image__inner-blocks,
	.woocommerce-product-gallery__image,
	.woocommerce-product-gallery__image--placeholder
) {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: var(--oravio-product-media-aspect);
	overflow: hidden;
	background: color-mix(
		in srgb,
		var(--wp--preset--color--soft) 72%,
		var(--wp--preset--color--surface)
	);
	border-radius: 0.95rem;
}

.oravio-product__media .woocommerce-product-gallery__image > a {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

/* WooCommerce's current Product Gallery large-image block renders the actual
 * Product Image block as a nested child. Center that child across the full
 * stage as well; otherwise a small intrinsic image can remain pinned to the
 * inline start even though the outer gallery stage is centered. */
.oravio-product__media .wc-block-product-gallery-large-image__inner-blocks > :where(
	.wp-block-woocommerce-product-image,
	.wc-block-components-product-image
) {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-width: 0;
	margin: 0;
}

.oravio-product__media .wc-block-product-gallery-large-image__inner-blocks :where(
	.wp-block-woocommerce-product-image,
	.wc-block-components-product-image
) > :where(a, div, figure) {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-width: 0;
	margin-inline: auto;
}

.oravio-product__media :where(
	.wc-block-product-gallery-large-image img,
	.wc-block-product-gallery-large-image__inner-blocks img,
	.woocommerce-product-gallery__image img,
	.woocommerce-product-gallery__image--placeholder img
) {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	height: auto;
	margin: auto !important;
	aspect-ratio: auto;
	object-fit: contain;
	object-position: center;
	border-radius: 0.95rem;
}

.oravio-product__media img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 0.95rem;
}

.oravio-product__media :where(
	.wc-block-product-gallery-thumbnails,
	.flex-control-thumbs
) {
	gap: 0.55rem;
	margin-top: 0.6rem;
}

.oravio-product__media :where(
	.wc-block-product-gallery-thumbnails img,
	.flex-control-thumbs img
) {
	border: 1px solid transparent;
	border-radius: 0.7rem;
	opacity: 0.72;
	transition: opacity 140ms ease, border-color 140ms ease;
}

.oravio-product__media :where(
	.wc-block-product-gallery-thumbnails img:hover,
	.flex-control-thumbs img:hover,
	.flex-control-thumbs .flex-active
) {
	border-color: var(--wp--preset--color--primary);
	opacity: 1;
}

.oravio-product__media :where(
	.wc-block-product-gallery-thumbnails button:focus-visible,
	.wc-block-product-gallery-thumbnails a:focus-visible,
	.flex-control-thumbs img:focus-visible
) {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}

.oravio-product__summary {
	position: sticky;
	top: calc(var(--oravio-header-height, 76px) + 1.25rem);
	padding: clamp(1.3rem, 3vw, 2.15rem);
	background:
		radial-gradient(circle at 100% 0%, var(--oravio-commerce-glow), transparent 18rem),
		var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.45rem;
	box-shadow: var(--oravio-commerce-panel-shadow);
}

body.oravio-header-static .oravio-product__summary {
	top: 1.25rem;
}

.oravio-product__summary .wp-block-post-title {
	margin-top: 0;
	margin-bottom: 0.65rem;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.08;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.oravio-product__summary .wc-block-components-product-rating {
	margin-bottom: 0.7rem;
	color: var(--wp--preset--color--muted);
}

.oravio-product__summary .wc-block-components-product-price,
.oravio-product__summary .price {
	margin-top: 0.25rem;
	margin-bottom: 0.9rem;
	color: var(--wp--preset--color--text);
	font-size: clamp(1.35rem, 3vw, 1.8rem);
	font-weight: 780;
}

.oravio-product__summary .wc-block-components-product-price del,
.oravio-product__summary .price del {
	margin-right: 0.4rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.78em;
	font-weight: 500;
	opacity: 0.7;
}

.oravio-product__summary .wc-block-components-product-price ins,
.oravio-product__summary .price ins {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.oravio-product__summary .wp-block-post-excerpt {
	margin-top: 0.5rem;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--muted);
	font-size: 1.02rem;
	line-height: 1.65;
}

.oravio-product__summary .oravio-access-resource-summary {
	margin-top: 0.85rem;
	margin-bottom: 1rem;
	background:
		color-mix(in srgb, var(--wp--preset--color--primary) 7%, var(--wp--preset--color--soft));
}

.oravio-product__summary .wp-block-separator {
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
	border-color: var(--wp--preset--color--border);
}

.oravio-product__buy {
	margin: 0;
}

.oravio-product__summary form.cart,
.oravio-product__summary form.variations_form {
	display: grid;
	gap: 0.8rem;
	margin-bottom: 0;
}

.oravio-product__summary .quantity {
	display: flex;
	align-items: center;
}

.oravio-product__summary .quantity .qty,
.oravio-product__summary input.qty {
	width: 5.25rem;
	min-height: 3rem;
	padding: 0.45rem 0.65rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.8rem;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	text-align: center;
}

.oravio-product__summary :where(.quantity .qty, input.qty):focus-visible,
.oravio-product__summary table.variations select:focus-visible {
	outline: none;
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--brand) 14%, transparent);
}

.oravio-product__summary table.variations {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0 0.55rem;
}

.oravio-product__summary table.variations th,
.oravio-product__summary table.variations td {
	padding: 0;
	text-align: left;
	vertical-align: middle;
}

.oravio-product__summary table.variations th {
	width: 28%;
	padding-right: 0.75rem;
	font-size: var(--wp--preset--font-size--sm);
}

.oravio-product__summary table.variations select {
	width: 100%;
	min-height: 2.8rem;
	padding: 0.45rem 2rem 0.45rem 0.7rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
}

.oravio-product__summary .reset_variations {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
}

.oravio-product__summary .single_variation_wrap {
	display: grid;
	gap: 0.7rem;
}

.oravio-product__summary .woocommerce-variation.single_variation:not(:empty) {
	display: grid;
	gap: 0.45rem;
	padding: 0.8rem 0.9rem;
	background: color-mix(
		in srgb,
		var(--wp--preset--color--soft) 68%,
		var(--wp--preset--color--surface)
	);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.85rem;
}

.oravio-product__summary .woocommerce-variation-description > :first-child {
	margin-top: 0;
}

.oravio-product__summary .woocommerce-variation-description > :last-child {
	margin-bottom: 0;
}

.oravio-product__summary .woocommerce-variation-price .price {
	margin: 0;
	font-size: 1.15rem;
}

.oravio-product__summary .stock.in-stock {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin: 0.15rem 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 650;
}

.oravio-product__summary form.cart .button,
.oravio-product__summary .single_add_to_cart_button {
	width: 100%;
	min-height: 3.15rem;
	padding-inline: 1.35rem;
	border-radius: 0.85rem;
	justify-content: center;
	font-weight: 760;
}

.oravio-product__summary :where(
	.single_add_to_cart_button:disabled,
	.single_add_to_cart_button.disabled,
	.single_add_to_cart_button.wc-variation-selection-needed
) {
	cursor: not-allowed;
	opacity: 0.52;
	box-shadow: none;
	transform: none;
}

.oravio-product__meta {
	gap: 0.45rem 1rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.5;
}

.oravio-product__meta a {
	color: inherit;
}

.oravio-product__details-shell {
	padding: 0;
}

/*
 * The current Single Product template uses the theme-owned Product Sections
 * block below. Keep this native Product Details treatment as a compatibility
 * fallback for customized templates that still insert WooCommerce's block.
 */
.oravio-product__details {
	margin: 0;
	padding: clamp(1.3rem, 3vw, 2.1rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.4rem;
	box-shadow: var(--oravio-commerce-card-shadow);
}

/* Product Details block / legacy Woo tab fallback. */
.oravio-product__details-shell :where(
	.wc-block-product-details__tab-list,
	.woocommerce-tabs ul.tabs
) {
	gap: 0.4rem;
	margin-bottom: 1.4rem;
	padding: 0;
	border: 0;
}

.oravio-product__details-shell :where(
	.wc-block-product-details__tab,
	.woocommerce-tabs ul.tabs li
) {
	border: 0;
	background: transparent;
}

.oravio-product__details-shell :where(
	.wc-block-product-details__tab a,
	.woocommerce-tabs ul.tabs li a
) {
	display: inline-flex;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.oravio-product__details-shell :where(
	.wc-block-product-details__tab[aria-selected="true"] a,
	.woocommerce-tabs ul.tabs li.active a
) {
	background: var(--wp--preset--color--text);
	border-color: var(--wp--preset--color--text);
	color: var(--wp--preset--color--surface);
}


/* =========================================================
   Editorial product information
   ========================================================= */

.oravio-product-sections {
	margin: 0;
}

.oravio-product-sections__intro {
	display: grid;
	grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 4vw, 3.75rem);
	align-items: end;
	padding-bottom: clamp(1.35rem, 3vw, 2rem);
}

.oravio-product-sections__eyebrow {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 720;
	letter-spacing: 0.09em;
	line-height: 1.35;
	text-transform: uppercase;
}

.oravio-product-sections__intro h2 {
	max-width: 16ch;
	margin: 0;
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.oravio-product-sections__list {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.oravio-product-section {
	display: grid;
	grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 4vw, 3.75rem);
	padding: clamp(1.75rem, 4vw, 3.25rem) 0;
	border-top: 1px solid var(--wp--preset--color--border);
}

.oravio-product-section__heading {
	display: grid;
	grid-template-columns: 2.3rem minmax(0, 1fr);
	gap: 0.75rem;
	align-items: baseline;
	align-self: start;
}

.oravio-product-section__index {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	font-variant-numeric: tabular-nums;
	font-weight: 720;
	letter-spacing: 0.06em;
}

.oravio-product-section__heading h3 {
	margin: 0;
	font-size: clamp(1.08rem, 2vw, 1.35rem);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.oravio-product-section__content {
	min-width: 0;
	max-width: 54rem;
	color: var(--wp--preset--color--text);
	font-size: 1rem;
	line-height: 1.72;
}

.oravio-product-section__content > :first-child,
.oravio-product-section__content > :first-child > :first-child {
	margin-top: 0;
}

.oravio-product-section__content > :last-child,
.oravio-product-section__content > :last-child > :last-child {
	margin-bottom: 0;
}

.oravio-product-section__content :where(h2, h3, h4) {
	letter-spacing: -0.02em;
}

.oravio-product-section__content a:not(.button) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

/* WooCommerce additional-information output, kept extension-compatible. */
.oravio-product-section__content :where(
	.woocommerce-product-attributes,
	table.shop_attributes
) {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}

.oravio-product-section__content :where(
	.woocommerce-product-attributes th,
	.woocommerce-product-attributes td,
	table.shop_attributes th,
	table.shop_attributes td
) {
	padding: 0.85rem 0;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: transparent;
	text-align: left;
	vertical-align: top;
}

.oravio-product-section__content :where(
	.woocommerce-product-attributes tr:last-child th,
	.woocommerce-product-attributes tr:last-child td,
	table.shop_attributes tr:last-child th,
	table.shop_attributes tr:last-child td
) {
	border-bottom: 0;
}

.oravio-product-section__content :where(
	.woocommerce-product-attributes th,
	table.shop_attributes th
) {
	width: min(34%, 14rem);
	padding-right: 1.5rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 650;
}

.oravio-product-section__content :where(
	.woocommerce-product-attributes td p,
	table.shop_attributes td p
) {
	margin: 0;
	padding: 0;
}

/* Reviews become part of the editorial information stack rather than a tab. */
.oravio-product-section__content #reviews,
.oravio-product-section__content .woocommerce-Reviews {
	margin: 0;
}

.oravio-product-section__content :where(
	#comments,
	#review_form_wrapper
) {
	margin: 0;
}

.oravio-product-section__content #review_form_wrapper {
	margin-top: clamp(1.5rem, 4vw, 2.5rem);
	padding: clamp(1rem, 3vw, 1.5rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
}

.oravio-product-section__content :where(
	.commentlist,
	.woocommerce-Reviews .commentlist
) {
	list-style: none;
	margin: 0;
	padding: 0;
}

.oravio-product-section__content .commentlist > li {
	margin: 0;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.oravio-product-section__content .commentlist > li:first-child {
	padding-top: 0;
}

.oravio-product-section__content .commentlist > li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.oravio-product-section__content .comment_container {
	display: grid;
	grid-template-columns: 2.8rem minmax(0, 1fr);
	gap: 0.85rem;
}

.oravio-product-section__content .comment_container .avatar {
	width: 2.8rem;
	height: 2.8rem;
	margin: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50%;
	object-fit: cover;
}

.oravio-product-section__content .comment-text {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.oravio-product-section__content .comment-text .meta {
	margin: 0 0 0.45rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
}

.oravio-product-section__content .star-rating,
.oravio-product-section__content .stars {
	color: var(--wp--preset--color--primary);
}

.oravio-product-section__content .comment-form {
	display: grid;
	gap: 0.9rem;
}

.oravio-product-section__content .comment-form > p {
	margin: 0;
}

.oravio-product-section__content .comment-form :where(input[type="text"], input[type="email"], textarea) {
	width: 100%;
}

.oravio-product-section__content .comment-form .submit {
	min-height: 2.8rem;
	padding: 0.65rem 1rem;
	border: 0;
	border-radius: 0.8rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	font: inherit;
	font-weight: 720;
	cursor: pointer;
}

.oravio-product-section__content .comment-form .submit:hover {
	background: var(--wp--preset--color--primary-dark);
}

.oravio-product__related {
	margin-top: clamp(3.5rem, 8vw, 7rem);
}

.oravio-product__related :where(h2, .wp-block-heading):first-child {
	max-width: 20ch;
	margin-bottom: 1.4rem;
	letter-spacing: -0.025em;
}

/* =========================================================
   Woo forms / account
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	min-width: 0;
}

/* Woo still outputs notices + navigation + content as siblings. Explicitly
   place the account children so Woo's notices wrapper cannot consume the first
   grid column and swap the navigation/content positions. */
@media (min-width: 900px) {
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: grid;
		grid-template-columns: minmax(12.5rem, 15.5rem) minmax(0, 1fr);
		align-items: start;
		column-gap: clamp(1.5rem, 4vw, 3.25rem);
		row-gap: 1rem;
	}

	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)
		> :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) {
		grid-column: 1 / -1;
	}

	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)
		> .woocommerce-notices-wrapper:empty {
		display: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		grid-column: 1;
		position: sticky;
		top: clamp(5.5rem, 9vw, 7.5rem);
		margin: 0;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		grid-column: 2;
		margin-top: 0;
	}
}

.woocommerce-account .woocommerce-MyAccount-content {
	clear: both;
	margin-top: 1.5rem;
	padding: clamp(1.1rem, 3vw, 2rem);
	background:
		linear-gradient(
			145deg,
			color-mix(in srgb, var(--wp--preset--color--surface) 96%, var(--wp--preset--color--background)),
			var(--wp--preset--color--surface)
		);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.35rem;
	box-shadow:
		0 1px 2px rgba(20, 24, 40, 0.025),
		0 18px 54px rgba(20, 24, 40, 0.045);
}

.woocommerce-account .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content > :last-child {
	margin-bottom: 0;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce select,
.wc-block-components-text-input input,
.wc-block-components-combobox-control input {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	background: var(--wp--preset--color--surface);
}

.woocommerce-MyAccount-navigation {
	margin-bottom: 1.5rem;
}

.woocommerce-MyAccount-navigation ul {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation > ul > li {
	display: block;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
	font-size: inherit;
	line-height: inherit;
}

.woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 2.7rem;
	padding: 0.58rem 0.8rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.8rem;
	background: color-mix(in srgb, var(--wp--preset--color--surface) 72%, transparent);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 650;
	line-height: 1.25;
	text-decoration: none;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease,
		box-shadow 160ms ease;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation a:focus-visible {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 5%, var(--wp--preset--color--surface));
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 16%, var(--wp--preset--color--border));
	color: var(--wp--preset--color--text);
}

.woocommerce-MyAccount-navigation .is-active a {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 9%, var(--wp--preset--color--surface));
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 22%, var(--wp--preset--color--border));
	box-shadow: inset 3px 0 0 var(--wp--preset--color--primary);
	color: var(--wp--preset--color--text);
}

/* Long account menus become one native select on small screens. JavaScript
   only hides the Woo list after the replacement control exists, preserving a
   fully usable no-JS fallback. */
.oravio-account-mobile-nav {
	display: none;
}

@media (max-width: 899px) {
	.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: clamp(1.25rem, 5vw, 1.8rem);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation.has-oravio-account-select > ul {
		display: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation.has-oravio-account-select .oravio-account-mobile-nav {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 0.45rem;
	}

	.oravio-account-mobile-nav__field {
		display: grid;
		gap: 0.35rem;
		min-width: 0;
	}

	.oravio-account-mobile-nav__label {
		color: var(--wp--preset--color--muted);
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.woocommerce-account .oravio-account-mobile-nav__select {
		width: 100%;
		min-height: 3rem;
		padding: 0.68rem 2.4rem 0.68rem 0.85rem;
		border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 22%, var(--wp--preset--color--border));
		border-radius: 0.9rem;
		background-color: var(--wp--preset--color--surface);
		color: var(--wp--preset--color--text);
		font: inherit;
		font-weight: 650;
	}

	.oravio-account-mobile-nav__logout {
		display: inline-flex;
		align-items: center;
		justify-content: flex-end;
		justify-self: end;
		min-height: auto;
		width: auto !important;
		margin-top: 0.1rem;
		padding: 0.2rem 0.15rem !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		color: var(--wp--preset--color--muted) !important;
		font-size: var(--wp--preset--font-size--sm);
		font-weight: 600;
		line-height: 1.4;
		text-decoration: underline;
		text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
		text-underline-offset: 0.18em;
		white-space: nowrap;
	}

	.oravio-account-mobile-nav__logout:hover,
	.oravio-account-mobile-nav__logout:focus-visible {
		color: var(--wp--preset--color--text) !important;
		text-decoration-color: currentColor;
	}
}


/* My Account Overview cards are activity/state, not a second navigation menu.
   Core WooCommerce and feature plugins register cards through the theme's
   dashboard-card filter while this layer owns the visual language. */
.oravio-account-activity {
	margin-top: clamp(1.8rem, 5vw, 3rem);
	padding-top: clamp(1.4rem, 4vw, 2.1rem);
	border-top: 1px solid var(--wp--preset--color--border);
}

.oravio-account-activity__heading {
	margin-bottom: 1rem;
}

.oravio-account-activity__eyebrow {
	margin: 0 0 0.3rem;
	color: var(--wp--preset--color--primary);
	font-size: 0.72rem;
	font-weight: 760;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.oravio-account-activity__heading h2 {
	margin: 0;
	font-size: clamp(1.55rem, 3vw, 2.2rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.oravio-account-activity__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.oravio-account-activity-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 11rem;
	padding: clamp(1rem, 2.5vw, 1.35rem);
	overflow: hidden;
	background:
		linear-gradient(
			145deg,
			var(--wp--preset--color--surface),
			color-mix(in srgb, var(--wp--preset--color--surface) 94%, var(--wp--preset--color--background))
		);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.05rem;
	box-shadow: 0 10px 30px rgba(20, 24, 40, 0.035);
	transition:
		border-color 160ms ease,
		box-shadow 160ms ease,
		transform 160ms ease;
}

.oravio-account-activity-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: var(--wp--preset--color--primary);
	opacity: 0.9;
}

.oravio-account-activity-card:hover,
.oravio-account-activity-card:focus-within {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 18%, var(--wp--preset--color--border));
	box-shadow: 0 14px 38px rgba(20, 24, 40, 0.055);
	transform: translateY(-1px);
}

.oravio-account-activity-card__topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.7rem;
}

.oravio-account-activity-card__eyebrow {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-size: 0.7rem;
	font-weight: 760;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.oravio-account-activity-card__status {
	flex: 0 0 auto;
	padding: 0.24rem 0.5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 8%, var(--wp--preset--color--background));
	color: var(--wp--preset--color--muted);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.2;
}

.oravio-account-activity-card__title {
	margin: 0;
	font-size: clamp(1.15rem, 2.3vw, 1.45rem);
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.oravio-account-activity-card__meta,
.oravio-account-activity-card__description {
	margin: 0.55rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.55;
}

.oravio-account-activity-card__meta {
	color: var(--wp--preset--color--text);
	font-weight: 600;
}

.oravio-account-activity-card__action {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 1rem;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-decoration: none;
}

.oravio-account-activity-card__action:hover,
.oravio-account-activity-card__action:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

@media (max-width: 680px) {
	.oravio-account-activity__grid {
		grid-template-columns: 1fr;
	}

	.oravio-account-activity-card {
		min-height: 0;
	}
}

@media (min-width: 900px) {
	.woocommerce-MyAccount-navigation ul {
		gap: 0.25rem;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation > ul > li {
		width: 100%;
	}

	.woocommerce-MyAccount-navigation a {
		border-color: transparent;
		background: transparent;
	}

	.woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 0.65rem !important;
		padding-top: 0.65rem !important;
		border-top: 1px solid var(--wp--preset--color--border) !important;
	}
}

.woocommerce-MyAccount-content table,
.woocommerce-table {
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
}

.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
	display: none;
}

.woocommerce-account .woocommerce-Address {
	float: none;
	width: auto;
	padding: 1rem;
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
}

.woocommerce-account .woocommerce-Address-title h2 {
	font-size: var(--wp--preset--font-size--lg);
}

.woocommerce-account .woocommerce-Address-title .edit {
	font-size: var(--wp--preset--font-size--sm);
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: 1rem;
}

/* Cart / checkout block surfaces */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.woocommerce-order {
	--oravio-checkout-surface: var(--wp--preset--color--surface);
}

.wc-block-components-sidebar-layout .wc-block-components-main,
.wc-block-components-sidebar-layout .wc-block-components-sidebar {
	min-width: 0;
}

.wc-block-components-totals-wrapper,
.wc-block-components-order-summary,
.wc-block-checkout__order-notes,
.woocommerce-order-details,
.woocommerce-customer-details {
	border-radius: 1rem;
}



/* Checkout form controls.
   Woo Blocks has its own high-specificity light field rules, so keep the
   controls tied explicitly to the theme semantic surface/text tokens. */
.wp-block-woocommerce-checkout :where(
	.wc-block-components-text-input input,
	.wc-block-components-combobox-control input,
	.wc-block-components-address-form input,
	.wc-block-components-address-form select,
	.wc-block-components-textarea,
	textarea,
	select
) {
	border-color: var(--wp--preset--color--border);
	border-radius: 0.65rem;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
}

.wp-block-woocommerce-checkout :where(
	.wc-block-components-text-input label,
	.wc-block-components-combobox-control label,
	.wc-block-components-address-form label
) {
	color: var(--wp--preset--color--muted);
}

.wp-block-woocommerce-checkout :where(input, textarea)::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 0.78;
}



/* =========================================================
   Commerce / account consistency pass — 0.10.4
   ========================================================= */

/*
 * Woo Blocks builds Cart/Checkout summaries from several nested totals
 * wrappers. Their individual radii can visually collide and create "half
 * rounded" sections. Treat the summary as one panel and use separators
 * internally instead.
 */
.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block {
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.15rem;
}

.wp-block-woocommerce-cart-order-summary-block :where(
	.wc-block-components-order-summary,
	.wc-block-components-totals-wrapper,
	.wc-block-components-totals-coupon,
	.wc-block-components-totals-item
),
.wp-block-woocommerce-checkout-order-summary-block :where(
	.wc-block-components-order-summary,
	.wc-block-components-totals-wrapper,
	.wc-block-components-totals-coupon,
	.wc-block-components-totals-item
) {
	border-radius: 0 !important;
}

/* Let the outer panel own the side border; nested rows only divide sections. */
.wp-block-woocommerce-cart-order-summary-block > :where(
	.wc-block-components-totals-wrapper,
	.wc-block-components-order-summary
),
.wp-block-woocommerce-checkout-order-summary-block > :where(
	.wc-block-components-totals-wrapper,
	.wc-block-components-order-summary
) {
	border-right: 0;
	border-left: 0;
}

/*
 * Coupon sections sometimes receive their own fully rounded fieldset-like
 * treatment. Keep the accordion behavior but integrate it into the summary.
 */
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-coupon,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-coupon {
	margin-inline: 0;
	border-right: 0;
	border-left: 0;
}

/* Orders table: buttons should sit on the same visual baseline as order data. */
.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td {
	vertical-align: middle;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions {
	padding-top: 0.7rem !important;
	padding-bottom: 0.7rem !important;
	text-align: right;
	vertical-align: middle !important;
	white-space: nowrap;
	line-height: 1;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
	display: inline-grid !important;
	place-items: center;
	box-sizing: border-box;
	min-width: 9rem;
	height: 2.7rem;
	min-height: 0;
	margin: 0 !important;
	padding: 0 1rem !important;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1 !important;
	vertical-align: middle;
}

/* Address cards: Woo's legacy col-1/col-2 widths otherwise fight our grid. */
.woocommerce-account .woocommerce-Addresses {
	align-items: stretch;
	gap: clamp(1rem, 3vw, 1.5rem);
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	float: none !important;
	width: 100% !important;
	max-width: none;
	box-sizing: border-box;
	margin: 0 !important;
	padding: clamp(1rem, 2.5vw, 1.3rem);
	background:
		linear-gradient(
			145deg,
			var(--wp--preset--color--surface),
			color-mix(
				in srgb,
				var(--wp--preset--color--background) 62%,
				var(--wp--preset--color--surface)
			)
		);
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.9rem;
}

.woocommerce-account .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-Address-title::after {
	display: none;
}

.woocommerce-account .woocommerce-Address-title h2 {
	float: none;
	margin: 0;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	line-height: 1.2;
}

.woocommerce-account .woocommerce-Address-title .edit {
	float: none;
	flex: 0 0 auto;
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 620;
	text-underline-offset: 0.18em;
}

.woocommerce-account .woocommerce-Address address {
	margin: 0;
	color: var(--wp--preset--color--text);
	line-height: 1.65;
}

/* Keep order/address layouts comfortable on narrow screens. */
@media (max-width: 640px) {
	.woocommerce-account .woocommerce-orders-table__cell-order-actions {
		text-align: left;
	}

	.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
		width: 100%;
		min-width: 0;
	}

	.woocommerce-account .woocommerce-Address-title {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.35rem;
	}
}



/* =========================================================
   Cart summary refinement — 0.10.6
   ========================================================= */

/*
 * Checkout benefits from a contained order-summary card. On the full Cart
 * page that same treatment makes the totals area look like one oversized
 * rounded capsule. Keep Cart flatter and let its rows/separators provide the
 * structure instead.
 */
.wp-block-woocommerce-cart-order-summary-block {
	overflow: visible;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.wp-block-woocommerce-cart-order-summary-block :where(
	.wc-block-components-order-summary,
	.wc-block-components-totals-wrapper,
	.wc-block-components-totals-coupon,
	.wc-block-components-totals-item
) {
	border-radius: 0 !important;
}

.wp-block-woocommerce-cart-order-summary-block :where(
	.wc-block-components-totals-wrapper,
	.wc-block-components-totals-coupon
) {
	border-right: 0 !important;
	border-left: 0 !important;
}

/* The checkout button remains visually separate from the totals rows. */
.wp-block-woocommerce-cart .wc-block-cart__submit {
	margin-top: 1rem;
}



/* =========================================================
   Mini-Cart drawer theme contract — 0.10.7
   ========================================================= */

/*
 * WooCommerce's Mini-Cart can carry block-level foreground/background styles
 * from its template part. Those saved styles are not aware of Oravio's runtime
 * light/dark switch, which can leave a light drawer with light text (or the
 * inverse). The drawer is therefore an explicitly themed component.
 */
.wc-block-components-drawer__screen-overlay {
	background-color: color-mix(
		in srgb,
		var(--wp--preset--color--text) 34%,
		transparent
	);
}

.wc-block-mini-cart__drawer,
.wc-block-mini-cart__drawer .wc-block-components-drawer__content,
.wc-block-mini-cart__drawer .wc-block-mini-cart__template-part,
.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents,
.wc-block-mini-cart__drawer .wp-block-woocommerce-filled-mini-cart-contents-block,
.wc-block-mini-cart__drawer .wp-block-woocommerce-empty-mini-cart-contents-block,
.wc-block-mini-cart__drawer .wc-block-mini-cart__items,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
	background: var(--wp--preset--color--surface) !important;
	background-color: var(--wp--preset--color--surface) !important;
	color: var(--wp--preset--color--text) !important;
}

.wc-block-mini-cart__drawer {
	border-left: 1px solid var(--wp--preset--color--border);
	box-shadow:
		-1px 0 0 color-mix(
			in srgb,
			var(--wp--preset--color--surface) 55%,
			transparent
		),
		-24px 0 70px color-mix(
			in srgb,
			var(--wp--preset--color--text) 14%,
			transparent
		);
}

/* Text that Woo or a saved mini-cart template may have colored explicitly. */
.wc-block-mini-cart__drawer :where(
	.wc-block-mini-cart__title-heading,
	.wc-block-mini-cart__title-items-counter,
	.wc-block-components-product-name,
	.wc-block-components-product-price,
	.wc-block-components-product-metadata,
	.wc-block-components-product-details,
	.wc-block-components-product-details__name,
	.wc-block-components-product-details__value,
	.wc-block-formatted-money-amount,
	.wc-block-components-formatted-money-amount,
	.wc-block-components-totals-item__label,
	.wc-block-components-totals-item__value,
	.wc-block-mini-cart__footer-subtotal,
	.wc-block-mini-cart__empty-cart-wrapper,
	p,
	span
) {
	color: var(--wp--preset--color--text);
}

/* Secondary copy should remain quieter without becoming low-contrast. */
.wc-block-mini-cart__drawer :where(
	.wc-block-components-product-metadata,
	.wc-block-components-product-details,
	.wc-block-components-totals-item__description
) {
	color: var(--wp--preset--color--muted);
}

/* Product links keep the brand accent in both modes. */
.wc-block-mini-cart__drawer :where(
	a.wc-block-components-product-name,
	.wc-block-components-product-name a
) {
	color: var(--wp--preset--color--primary) !important;
	text-underline-offset: 0.16em;
}

/* Quantity stepper and remove controls use the current surface contract. */
.wc-block-mini-cart__drawer :where(
	.wc-block-components-quantity-selector,
	.wc-block-components-quantity-selector__button,
	.wc-block-components-quantity-selector__input,
	.wc-block-cart-item__remove-link,
	.wc-block-components-drawer__close
) {
	border-color: var(--wp--preset--color--border) !important;
	background: transparent !important;
	color: var(--wp--preset--color--text) !important;
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 999px;
	background: color-mix(
		in srgb,
		var(--wp--preset--color--surface) 92%,
		var(--wp--preset--color--background)
	) !important;
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close svg,
.wc-block-mini-cart__drawer .wc-block-components-drawer__close path {
	fill: currentColor !important;
}

/* Give the footer a calm boundary without introducing a separate card. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
	border-top: 1px solid var(--wp--preset--color--border);
	box-shadow:
		0 -12px 30px color-mix(
			in srgb,
			var(--wp--preset--color--text) 4%,
			transparent
		);
}

/* Primary/secondary actions should not inherit stale mini-cart template colors. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions
.wc-block-mini-cart__footer-checkout {
	border-color: var(--wp--preset--color--primary) !important;
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--surface) !important;
	box-shadow: none !important;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions
.wc-block-mini-cart__footer-cart {
	border-color: var(--wp--preset--color--border) !important;
	background: transparent !important;
	color: var(--wp--preset--color--text) !important;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border) !important;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions
.wc-block-mini-cart__footer-checkout:hover,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions
.wc-block-mini-cart__footer-checkout:focus-visible {
	background: var(--wp--preset--color--primary-dark) !important;
	border-color: var(--wp--preset--color--primary-dark) !important;
	color: var(--wp--preset--color--surface) !important;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions
.wc-block-mini-cart__footer-cart:hover,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions
.wc-block-mini-cart__footer-cart:focus-visible {
	background: color-mix(
		in srgb,
		var(--wp--preset--color--primary) 7%,
		var(--wp--preset--color--surface)
	) !important;
	color: var(--wp--preset--color--text) !important;
}

/*
 * Mini-Cart count badge.
 * Woo may emit an inline badge background from the block configuration, so
 * these values deliberately use !important. The semantic pair adapts cleanly:
 * light mode = brand badge / light text; dark mode = lighter brand / dark text.
 */
.wc-block-mini-cart__button .wc-block-mini-cart__badge {
	min-width: 1.25rem;
	height: 1.25rem;
	padding-inline: 0.28rem;
	border: 2px solid var(--wp--preset--color--surface);
	border-radius: 999px;
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--surface) !important;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 2px 8px color-mix(
		in srgb,
		var(--wp--preset--color--text) 14%,
		transparent
	);
}

.wc-block-mini-cart__button .wc-block-mini-cart__quantity-badge,
.wc-block-mini-cart__button .wc-block-mini-cart__icon {
	color: var(--wp--preset--color--text);
}

.wc-block-mini-cart__button .wc-block-mini-cart__icon :where(
	path,
	circle
) {
	fill: currentColor !important;
}

/* Dark mode gets a little more depth, but the same semantic color contract. */
html[data-oravio-theme="dark"] .wc-block-mini-cart__drawer {
	box-shadow:
		-1px 0 0 rgba(255, 255, 255, 0.04),
		-24px 0 78px rgba(0, 0, 0, 0.42);
}

html[data-oravio-theme="dark"]
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
	box-shadow:
		0 -12px 32px rgba(0, 0, 0, 0.16);
}

/* =========================================================
   Responsive commerce
   ========================================================= */





/* Coarse pointers benefit from explicit gallery control targets even when
   WooCommerce's internal icon is visually smaller. */
@media (pointer: coarse) {
	.oravio-product__media :where(
		button,
		.wc-block-product-gallery-large-image-next,
		.wc-block-product-gallery-large-image-previous,
		.wc-block-product-gallery-large-image__zoom
	) {
		min-width: 2.75rem;
		min-height: 2.75rem;
	}
}

@media (max-width: 980px) {
	.oravio-catalog-hero.has-image {
		grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.72fr);
	}

	.oravio-category-browser__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.oravio-catalog-hero.has-image {
		grid-template-columns: 1fr;
	}

	.oravio-catalog-hero__media {
		order: -1;
	}

	.oravio-catalog-hero__image {
		aspect-ratio: 16 / 10;
	}

	.oravio-category-browser__grid {
		grid-template-columns: 1fr;
	}

	.oravio-category-card {
		grid-template-columns: 6.5rem minmax(0, 1fr);
		grid-template-rows: 1fr;
	}

	.oravio-category-card__media {
		aspect-ratio: 1;
	}
}

@media (max-width: 980px) {
	.oravio-product-grid .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.oravio-product__hero {
		flex-wrap: wrap !important;
		gap: 1.5rem;
	}

	.oravio-product__hero > .wp-block-column {
		flex-basis: 100% !important;
	}

	.oravio-product__summary {
		position: static;
	}

	.oravio-product__media {
		max-width: 52rem;
	}
}

@media (max-width: 780px) {
	.oravio-shop-toolbar {
		align-items: stretch;
	}

	.oravio-shop-toolbar > * {
		width: 100%;
	}

	.oravio-shop-toolbar select {
		width: 100%;
	}

	.oravio-shop-archive__hero {
		padding-top: 2.75rem;
		padding-bottom: 2.75rem;
	}

	.oravio-product__summary {
		padding: 1.2rem;
	}

	.oravio-product__details-shell {
		padding: 0;
	}

	.oravio-product-sections__intro,
	.oravio-product-section {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.oravio-product-section__heading {
		grid-template-columns: 2rem minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.oravio-product__media :where(
		.wc-block-product-gallery-thumbnails,
		.flex-control-thumbs
	) {
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scroll-snap-type: inline proximity;
		scrollbar-width: thin;
	}

	.oravio-product__media :where(
		.wc-block-product-gallery-thumbnails > *,
		.flex-control-thumbs > *
	) {
		scroll-snap-align: start;
	}

	.oravio-product__summary table.variations th,
	.oravio-product__summary table.variations td {
		display: block;
		width: 100%;
	}

	.oravio-product__summary table.variations th {
		padding-right: 0;
		padding-bottom: 0.3rem;
	}

	.oravio-product__summary table.variations td {
		padding-bottom: 0.35rem;
	}

	.oravio-product-grid .wc-block-product-template {
		grid-template-columns: 1fr !important;
	}

	.oravio-product-grid .wc-block-product,
	.wp-block-woocommerce-product-template > .wc-block-product {
		border-radius: 1.15rem;
	}

	.oravio-product__summary .wp-block-post-title {
		font-size: clamp(1.8rem, 9vw, 2.35rem);
	}

	.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}
}


/* 0.14.5 category footer sweep accessibility fallback. */
@media (prefers-reduced-motion: reduce) {
	.oravio-category-card__body,
	.oravio-category-card__body::before,
	.oravio-category-card__title,
	.oravio-category-card__description,
	.oravio-category-card__arrow {
		transition: none !important;
	}
}


/* 0.14.6 product CTA accessibility fallback. */
@media (prefers-reduced-motion: reduce) {
	.oravio-product-grid .wp-element-button,
	.oravio-product__related .wp-element-button,
	.wp-block-woocommerce-product-template .wc-block-components-product-button__button,
	.wp-block-woocommerce-product-template .wp-element-button {
		transition: none !important;
	}
}


/* =========================================================
   Product card CTA normalization — 0.14.7
   ========================================================= */

.oravio-product-grid :where(
	.wp-block-button,
	.wp-block-woocommerce-product-button,
	.wc-block-components-product-button
),
.oravio-product__related :where(
	.wp-block-button,
	.wp-block-woocommerce-product-button,
	.wc-block-components-product-button
),
.wp-block-woocommerce-product-template > .wc-block-product :where(
	.wp-block-button,
	.wp-block-woocommerce-product-button,
	.wc-block-components-product-button
) {
	box-sizing: border-box;
	display: flex !important;
	align-items: stretch;
	justify-content: stretch;
	align-self: stretch;
	width: calc(100% - 0.96rem) !important;
	max-width: none !important;
	margin: auto 0.48rem 0.02rem !important;
	padding: 0 !important;
	text-align: center;
}

.oravio-product-grid :where(
	.wp-block-button__link,
	.wc-block-components-product-button__button
),
.oravio-product__related :where(
	.wp-block-button__link,
	.wc-block-components-product-button__button
),
.wp-block-woocommerce-product-template > .wc-block-product :where(
	.wp-block-button__link,
	.wc-block-components-product-button__button
) {
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 2.82rem;
	margin: 0 !important;
	padding: 0.66rem 0.95rem !important;
	border: 1px solid var(--wp--preset--color--brand) !important;
	border-radius: 0.78rem !important;
	background-color: var(--wp--preset--color--surface) !important;
	background-image: linear-gradient(
		var(--wp--preset--color--brand),
		var(--wp--preset--color--brand)
	) !important;
	background-repeat: no-repeat !important;
	background-position: left center !important;
	background-size: 0 100% !important;
	color: var(--wp--preset--color--brand) !important;
	box-shadow: none !important;
	text-align: center !important;
	line-height: 1.15;
	font-weight: 720;
	appearance: none;
	-webkit-appearance: none;
	transition:
		background-size 310ms cubic-bezier(.22,.68,.24,1),
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		box-shadow 180ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
	.oravio-product-grid :where(
		.wp-block-button__link,
		.wc-block-components-product-button__button
	):hover,
	.oravio-product-grid :where(
		.wp-block-button__link,
		.wc-block-components-product-button__button
	):focus-visible,
	.oravio-product__related :where(
		.wp-block-button__link,
		.wc-block-components-product-button__button
	):hover,
	.oravio-product__related :where(
		.wp-block-button__link,
		.wc-block-components-product-button__button
	):focus-visible,
	.wp-block-woocommerce-product-template > .wc-block-product :where(
		.wp-block-button__link,
		.wc-block-components-product-button__button
	):hover,
	.wp-block-woocommerce-product-template > .wc-block-product :where(
		.wp-block-button__link,
		.wc-block-components-product-button__button
	):focus-visible {
		background-color: var(--wp--preset--color--surface) !important;
		background-size: 100% 100% !important;
		border-color: var(--wp--preset--color--brand) !important;
		color: #fff !important;
		box-shadow: 0 7px 18px color-mix(
			in srgb,
			var(--wp--preset--color--brand) 18%,
			transparent
		) !important;
	}
}

.oravio-product-grid :where(
	.wp-block-button__link,
	.wc-block-components-product-button__button
):is(:disabled, [aria-disabled="true"]),
.oravio-product__related :where(
	.wp-block-button__link,
	.wc-block-components-product-button__button
):is(:disabled, [aria-disabled="true"]),
.wp-block-woocommerce-product-template > .wc-block-product :where(
	.wp-block-button__link,
	.wc-block-components-product-button__button
):is(:disabled, [aria-disabled="true"]) {
	background-color: var(--wp--preset--color--soft) !important;
	background-image: none !important;
	border-color: var(--wp--preset--color--border) !important;
	color: var(--wp--preset--color--muted) !important;
	box-shadow: none !important;
	opacity: 0.72;
}


/* =========================================================
   Mini-Cart close control — 0.14.7
   ========================================================= */

.wc-block-mini-cart__drawer {
	position: relative;
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close {
	position: absolute !important;
	inset-block-start: 1rem !important;
	inset-inline-end: 1rem !important;
	inset-block-end: auto !important;
	inset-inline-start: auto !important;
	z-index: 20;
	box-sizing: border-box !important;
	display: grid !important;
	place-items: center !important;
	width: 2.75rem !important;
	height: 2.75rem !important;
	min-width: 2.75rem !important;
	min-height: 2.75rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 999px !important;
	background: color-mix(
		in srgb,
		var(--wp--preset--color--surface) 92%,
		var(--wp--preset--color--background)
	) !important;
	color: var(--wp--preset--color--text) !important;
	line-height: 0 !important;
	transform: none !important;
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close svg {
	display: none !important;
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close::before,
.wc-block-mini-cart__drawer .wc-block-components-drawer__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.05rem;
	height: 1.5px;
	border-radius: 999px;
	background: currentColor;
	transform-origin: center;
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
	.wc-block-mini-cart__drawer .wc-block-components-drawer__close:hover,
	.wc-block-mini-cart__drawer .wc-block-components-drawer__close:focus-visible {
		background: var(--wp--preset--color--soft) !important;
		border-color: color-mix(
			in srgb,
			var(--wp--preset--color--primary) 32%,
			var(--wp--preset--color--border)
		) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oravio-product-grid :where(
		.wp-block-button__link,
		.wc-block-components-product-button__button
	),
	.oravio-product__related :where(
		.wp-block-button__link,
		.wc-block-components-product-button__button
	),
	.wp-block-woocommerce-product-template > .wc-block-product :where(
		.wp-block-button__link,
		.wc-block-components-product-button__button
	) {
		transition: none !important;
	}
}


/* =========================================================
   Shop archive chrome — 0.14.8
   ========================================================= */

/* Breadcrumb hierarchy. */
.oravio-shop-archive__header :where(
	.woocommerce-breadcrumb,
	.wc-block-breadcrumbs
),
.oravio-product__breadcrumbs :where(
	.woocommerce-breadcrumb,
	.wc-block-breadcrumbs
),
.oravio-product__breadcrumbs.woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.42rem;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 620;
	line-height: 1.4;
}

.oravio-shop-archive__header :where(
	.woocommerce-breadcrumb,
	.wc-block-breadcrumbs
) a,
.oravio-product__breadcrumbs :where(
	.woocommerce-breadcrumb,
	.wc-block-breadcrumbs
) a,
.oravio-product__breadcrumbs.woocommerce-breadcrumb a {
	color: var(--wp--preset--color--muted);
	font-weight: 560;
	text-decoration: none;
	transition: color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.oravio-shop-archive__header :where(
		.woocommerce-breadcrumb,
		.wc-block-breadcrumbs
	) a:hover,
	.oravio-shop-archive__header :where(
		.woocommerce-breadcrumb,
		.wc-block-breadcrumbs
	) a:focus-visible,
	.oravio-product__breadcrumbs :where(
		.woocommerce-breadcrumb,
		.wc-block-breadcrumbs
	) a:hover,
	.oravio-product__breadcrumbs :where(
		.woocommerce-breadcrumb,
		.wc-block-breadcrumbs
	) a:focus-visible {
		color: var(--wp--preset--color--primary);
	}
}

.oravio-breadcrumb-separator,
.wc-block-breadcrumbs__separator {
	display: inline-block;
	flex: 0 0 auto;
	width: 0.52rem;
	height: 0.78rem;
	margin-inline: 0.05rem;
	background: currentColor;
	color: color-mix(
		in srgb,
		var(--wp--preset--color--muted) 72%,
		transparent
	);
	-webkit-mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='m2 1 4 5-4 5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / contain no-repeat;
	mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='m2 1 4 5-4 5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / contain no-repeat;
	font-size: 0;
}


/* Archive toolbar: quieter result label, deliberate native select. */
.oravio-shop-toolbar {
	min-height: 4.7rem;
	padding: 0.7rem 0.8rem 0.7rem 1rem;
	border-radius: 1.05rem;
}

.oravio-shop-toolbar .woocommerce-result-count,
.oravio-shop-toolbar .wc-block-product-results-count {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 620;
	letter-spacing: 0.005em;
}

.oravio-shop-toolbar .woocommerce-result-count::before,
.oravio-shop-toolbar .wc-block-product-results-count::before {
	content: "";
	flex: 0 0 auto;
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 0.28rem color-mix(
		in srgb,
		var(--wp--preset--color--brand) 10%,
		transparent
	);
}

.oravio-shop-toolbar :where(
	.woocommerce-ordering,
	.wc-block-catalog-sorting,
	.wp-block-woocommerce-catalog-sorting
) {
	position: relative;
	margin: 0;
}

.oravio-shop-toolbar select {
	box-sizing: border-box;
	min-width: min(18rem, 42vw);
	min-height: 2.85rem;
	margin: 0;
	padding: 0.48rem 3rem 0.48rem 0.95rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.82rem;
	background-color: var(--wp--preset--color--surface);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.95rem center;
	background-size: 0.72rem auto;
	color: var(--wp--preset--color--text);
	box-shadow:
		inset 0 1px 0 color-mix(
			in srgb,
			var(--wp--preset--color--surface) 80%,
			#fff
		);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 620;
	line-height: 1.2;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition:
		border-color 160ms ease,
		box-shadow 160ms ease,
		background-color 160ms ease;
}

.oravio-shop-toolbar select:hover {
	border-color: color-mix(
		in srgb,
		var(--wp--preset--color--brand) 28%,
		var(--wp--preset--color--border)
	);
}

.oravio-shop-toolbar select:focus-visible {
	outline: none;
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px color-mix(
		in srgb,
		var(--wp--preset--color--brand) 14%,
		transparent
	);
}


/* Pagination: compact page controls rather than generic text/pills. */
.oravio-product-grid .wp-block-query-pagination {
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.oravio-product-grid .wp-block-query-pagination :where(
	a,
	.page-numbers,
	.wp-block-query-pagination-previous,
	.wp-block-query-pagination-next
) {
	box-sizing: border-box;
	display: inline-grid;
	place-items: center;
	min-width: 2.7rem;
	height: 2.7rem;
	min-height: 2.7rem;
	padding: 0.4rem 0.72rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.76rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	box-shadow: 0 3px 12px rgba(20, 24, 40, 0.025);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 680;
	line-height: 1;
	text-decoration: none;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

.oravio-product-grid .wp-block-query-pagination .current {
	background: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
	color: #fff;
	box-shadow: 0 6px 16px color-mix(
		in srgb,
		var(--wp--preset--color--brand) 18%,
		transparent
	);
}

@media (hover: hover) and (pointer: fine) {
	.oravio-product-grid .wp-block-query-pagination a:hover,
	.oravio-product-grid .wp-block-query-pagination a:focus-visible {
		background: var(--wp--preset--color--soft);
		border-color: color-mix(
			in srgb,
			var(--wp--preset--color--brand) 30%,
			var(--wp--preset--color--border)
		);
		color: var(--wp--preset--color--primary);
		box-shadow: 0 7px 18px rgba(20, 24, 40, 0.06);
	}
}

.oravio-product-grid .wp-block-query-pagination-previous,
.oravio-product-grid .wp-block-query-pagination-next {
	position: relative;
	overflow: hidden;
	width: 2.7rem;
	padding: 0;
	font-size: 0;
	text-indent: -9999px;
	white-space: nowrap;
}

.oravio-product-grid .wp-block-query-pagination-previous::after,
.oravio-product-grid .wp-block-query-pagination-next::after {
	content: "";
	width: 1.15rem;
	height: 0.72rem;
	background: currentColor;
	-webkit-mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 8h20M15 2l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / contain no-repeat;
	mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 8h20M15 2l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

.oravio-product-grid .wp-block-query-pagination-previous::after {
	transform: rotate(180deg);
}


/* =========================================================
   Legacy Woo recommendation grid — 0.14.8
   Used by Empty Cart "New in store" / older Product New blocks.
   ========================================================= */

:is(
	.wp-block-woocommerce-empty-cart-block,
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-grid {
	margin-top: clamp(1rem, 3vw, 1.75rem);
}

:is(
	.wp-block-woocommerce-empty-cart-block,
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-grid__products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2.1vw, 1.45rem);
	margin: 0 !important;
	padding: 0 !important;
}

:is(
	.wp-block-woocommerce-empty-cart-block,
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-grid__product {
	box-sizing: border-box;
	display: flex !important;
	flex-direction: column;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0.58rem 0.58rem 0.7rem !important;
	overflow: hidden;
	background:
		linear-gradient(
			145deg,
			var(--wp--preset--color--surface),
			color-mix(
				in srgb,
				var(--wp--preset--color--surface) 93%,
				var(--wp--preset--color--background)
			)
		);
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 1.3rem;
	box-shadow: var(--oravio-commerce-card-shadow);
	text-align: left !important;
	transition:
		box-shadow 180ms ease,
		border-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
	:is(
		.wp-block-woocommerce-empty-cart-block,
		.wp-block-woocommerce-cart,
		.wp-block-woocommerce-checkout
	) .wc-block-grid__product:hover,
	:is(
		.wp-block-woocommerce-empty-cart-block,
		.wp-block-woocommerce-cart,
		.wp-block-woocommerce-checkout
	) .wc-block-grid__product:focus-within {
		border-color: color-mix(
			in srgb,
			var(--wp--preset--color--primary) 18%,
			var(--wp--preset--color--border)
		) !important;
		box-shadow: var(--oravio-commerce-card-shadow-hover);
	}
}

:is(
	.wp-block-woocommerce-empty-cart-block,
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-grid__product-link {
	display: block;
	color: inherit !important;
	text-decoration: none !important;
}

:is(
	.wp-block-woocommerce-empty-cart-block,
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-grid__product-image {
	overflow: hidden;
	margin: 0 0 0.25rem !important;
	background: var(--oravio-commerce-media-bg);
	border-radius: 0.98rem;
}

:is(
	.wp-block-woocommerce-empty-cart-block,
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-grid__product-image img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	margin: 0 !important;
	object-fit: cover;
	border-radius: inherit;
	transform: scale(1.001);
	transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}

@media (hover: hover) and (pointer: fine) {
	:is(
		.wp-block-woocommerce-empty-cart-block,
		.wp-block-woocommerce-cart,
		.wp-block-woocommerce-checkout
	) .wc-block-grid__product:hover .wc-block-grid__product-image img,
	:is(
		.wp-block-woocommerce-empty-cart-block,
		.wp-block-woocommerce-cart,
		.wp-block-woocommerce-checkout
	) .wc-block-grid__product:focus-within .wc-block-grid__product-image img {
		transform: scale(1.018);
	}
}

:is(
	.wp-block-woocommerce-empty-cart-block,
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-grid__product-title {
	margin: 0.76rem 0.48rem 0.18rem !important;
	color: var(--wp--preset--color--text) !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 720;
	line-height: 1.2;
	letter-spacing: -0.018em;
	text-align: left !important;
}

:is(
	.wp-block-woocommerce-empty-cart-block,
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-grid__product-price {
	margin: 0 0.48rem 0.46rem !important;
	color: color-mix(
		in srgb,
		var(--wp--preset--color--text) 82%,
		var(--wp--preset--color--muted)
	) !important;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 680;
	letter-spacing: -0.006em;
	text-align: left !important;
}

:is(
	.wp-block-woocommerce-empty-cart-block,
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-grid__product-add-to-cart {
	display: flex;
	align-items: stretch;
	width: calc(100% - 0.96rem);
	margin: auto 0.48rem 0.02rem !important;
	padding: 0 !important;
}

:is(
	.wp-block-woocommerce-empty-cart-block,
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-grid__product-add-to-cart .wp-block-button__link {
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 2.82rem;
	margin: 0 !important;
	padding: 0.66rem 0.95rem !important;
	border: 1px solid var(--wp--preset--color--brand) !important;
	border-radius: 0.78rem !important;
	background-color: var(--wp--preset--color--surface) !important;
	background-image: linear-gradient(
		var(--wp--preset--color--brand),
		var(--wp--preset--color--brand)
	) !important;
	background-repeat: no-repeat !important;
	background-position: left center !important;
	background-size: 0 100% !important;
	color: var(--wp--preset--color--brand) !important;
	box-shadow: none !important;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 720;
	line-height: 1.15;
	text-align: center;
	text-decoration: none !important;
	transition:
		background-size 310ms cubic-bezier(.22,.68,.24,1),
		border-color 180ms ease,
		color 180ms ease,
		box-shadow 180ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
	:is(
		.wp-block-woocommerce-empty-cart-block,
		.wp-block-woocommerce-cart,
		.wp-block-woocommerce-checkout
	) .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
	:is(
		.wp-block-woocommerce-empty-cart-block,
		.wp-block-woocommerce-cart,
		.wp-block-woocommerce-checkout
	) .wc-block-grid__product-add-to-cart .wp-block-button__link:focus-visible {
		background-size: 100% 100% !important;
		border-color: var(--wp--preset--color--brand) !important;
		color: #fff !important;
		box-shadow: 0 7px 18px color-mix(
			in srgb,
			var(--wp--preset--color--brand) 18%,
			transparent
		) !important;
	}
}

/* Sale badges in the legacy grid follow the normal card badge contract. */
:is(
	.wp-block-woocommerce-empty-cart-block,
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-grid__product-onsale {
	top: 0.65rem !important;
	right: 0.65rem !important;
	left: auto !important;
	margin: 0 !important;
	padding: 0.34rem 0.56rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--wp--preset--color--text) !important;
	color: var(--wp--preset--color--surface) !important;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 780;
	line-height: 1.1;
	letter-spacing: 0.02em;
}

/* Give the Empty Cart recommendation heading a bit more editorial presence. */
.wp-block-woocommerce-empty-cart-block > h2,
.wp-block-woocommerce-empty-cart-block .wp-block-heading {
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: -0.025em;
	text-wrap: balance;
}

@media (max-width: 900px) {
	:is(
		.wp-block-woocommerce-empty-cart-block,
		.wp-block-woocommerce-cart,
		.wp-block-woocommerce-checkout
	) .wc-block-grid__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.oravio-shop-toolbar {
		align-items: stretch !important;
	}

	.oravio-shop-toolbar :where(
		.woocommerce-ordering,
		.wc-block-catalog-sorting,
		.wp-block-woocommerce-catalog-sorting
	),
	.oravio-shop-toolbar select {
		width: 100%;
		min-width: 0;
	}

	:is(
		.wp-block-woocommerce-empty-cart-block,
		.wp-block-woocommerce-cart,
		.wp-block-woocommerce-checkout
	) .wc-block-grid__products {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oravio-shop-toolbar select,
	.oravio-product-grid .wp-block-query-pagination :where(
		a,
		.page-numbers
	),
	:is(
		.wp-block-woocommerce-empty-cart-block,
		.wp-block-woocommerce-cart,
		.wp-block-woocommerce-checkout
	) .wc-block-grid__product,
	:is(
		.wp-block-woocommerce-empty-cart-block,
		.wp-block-woocommerce-cart,
		.wp-block-woocommerce-checkout
	) .wc-block-grid__product-image img,
	:is(
		.wp-block-woocommerce-empty-cart-block,
		.wp-block-woocommerce-cart,
		.wp-block-woocommerce-checkout
	) .wc-block-grid__product-add-to-cart .wp-block-button__link {
		transition: none !important;
	}
}


/* =========================================================
   Breadcrumb refinement — 0.14.9
   ========================================================= */

/*
 * Classic Woo output receives .oravio-breadcrumb-separator from PHP.
 * Woo Blocks can emit their own separator glyphs; hide those glyphs and draw
 * the same visual separator with CSS.
 */
.oravio-shop-archive__header :where(
	.woocommerce-breadcrumb,
	.wc-block-breadcrumbs
),
.oravio-product__breadcrumbs :where(
	.woocommerce-breadcrumb,
	.wc-block-breadcrumbs
),
.oravio-product__breadcrumbs.woocommerce-breadcrumb {
	gap: 0.68rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.82rem;
	font-weight: 680;
	letter-spacing: 0.025em;
}

/* Ancestors: compact editorial label rather than default blue link. */
.oravio-shop-archive__header :where(
	.woocommerce-breadcrumb,
	.wc-block-breadcrumbs
) a,
.oravio-product__breadcrumbs :where(
	.woocommerce-breadcrumb,
	.wc-block-breadcrumbs
) a,
.oravio-product__breadcrumbs.woocommerce-breadcrumb a {
	color: var(--wp--preset--color--muted);
	font-weight: 700;
	text-decoration: none;
	text-underline-offset: 0.28em;
}

/* Current destination is visually stronger without becoming a pill. */
.oravio-shop-archive__header :where(
	.woocommerce-breadcrumb,
	.wc-block-breadcrumbs
),
.oravio-product__breadcrumbs :where(
	.woocommerce-breadcrumb,
	.wc-block-breadcrumbs
),
.oravio-product__breadcrumbs.woocommerce-breadcrumb {
	color: var(--wp--preset--color--text);
}

/* Theme separator: short line + arrow head. */
.oravio-breadcrumb-separator,
.wc-block-breadcrumbs__separator {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 1.15rem;
	height: 0.68rem;
	margin: 0;
	background: none !important;
	color: color-mix(
		in srgb,
		var(--wp--preset--color--brand) 72%,
		var(--wp--preset--color--muted)
	);
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: -9999px;
	overflow: hidden;
	-webkit-mask: none !important;
	mask: none !important;
}

.oravio-breadcrumb-separator::before,
.wc-block-breadcrumbs__separator::before {
	content: "";
	position: absolute;
	left: 0.05rem;
	top: 50%;
	width: 0.78rem;
	height: 1.5px;
	border-radius: 999px;
	background: currentColor;
	transform: translateY(-50%);
}

.oravio-breadcrumb-separator::after,
.wc-block-breadcrumbs__separator::after {
	content: "";
	position: absolute;
	right: 0.06rem;
	top: 50%;
	width: 0.33rem;
	height: 0.33rem;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
	transform-origin: center;
}

/*
 * Some Woo Blocks versions render a literal separator node with text rather
 * than the standard separator class. These common variants are visually hidden
 * and replaced by the controlled pseudo-element.
 */
.wc-block-breadcrumbs :where(
	.wc-block-breadcrumbs__separator,
	.wc-block-breadcrumbs__separator-wrapper
) {
	font-size: 0 !important;
}

/* Slight Brand cue on ancestor hover/focus. */
@media (hover: hover) and (pointer: fine) {
	.oravio-shop-archive__header :where(
		.woocommerce-breadcrumb,
		.wc-block-breadcrumbs
	) a:hover,
	.oravio-shop-archive__header :where(
		.woocommerce-breadcrumb,
		.wc-block-breadcrumbs
	) a:focus-visible,
	.oravio-product__breadcrumbs :where(
		.woocommerce-breadcrumb,
		.wc-block-breadcrumbs
	) a:hover,
	.oravio-product__breadcrumbs :where(
		.woocommerce-breadcrumb,
		.wc-block-breadcrumbs
	) a:focus-visible {
		color: var(--wp--preset--color--brand);
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-decoration-color: color-mix(
			in srgb,
			var(--wp--preset--color--brand) 45%,
			transparent
		);
	}
}

@media (max-width: 600px) {
	.oravio-shop-archive__header :where(
		.woocommerce-breadcrumb,
		.wc-block-breadcrumbs
	),
	.oravio-product__breadcrumbs :where(
		.woocommerce-breadcrumb,
		.wc-block-breadcrumbs
	),
	.oravio-product__breadcrumbs.woocommerce-breadcrumb {
		gap: 0.5rem;
		font-size: 0.78rem;
	}

	.oravio-breadcrumb-separator,
	.wc-block-breadcrumbs__separator {
		width: 0.95rem;
	}
}

/* =========================================================
   Order confirmation / post-purchase — 0.20.0
   ========================================================= */

.oravio-order-confirmation {
	padding-block: clamp(2.2rem, 6vw, 5rem);
}

.oravio-order-confirmation__shell {
	display: grid;
	gap: clamp(1.35rem, 3vw, 2.2rem);
}

.oravio-order-confirmation__hero {
	position: relative;
	overflow: hidden;
	padding: clamp(1.4rem, 4vw, 2.5rem);
	background:
		linear-gradient(
			145deg,
			var(--wp--preset--color--surface),
			color-mix(in srgb, var(--wp--preset--color--surface) 90%, var(--wp--preset--color--primary))
		);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: clamp(1.1rem, 2vw, 1.5rem);
	box-shadow: 0 18px 55px rgba(20, 24, 40, 0.05);
}

.oravio-order-confirmation__hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--wp--preset--color--primary);
}

.oravio-order-confirmation__hero :where(h1, h2, h3, p):first-child {
	margin-top: 0;
}

.oravio-order-confirmation__hero :where(h1, h2, h3) {
	letter-spacing: -0.035em;
}

.oravio-order-confirmation__hero :where(ul, .wc-block-order-confirmation-summary) {
	margin-bottom: 0;
}

.oravio-order-confirmation__follow-up:empty,
.oravio-order-confirmation__follow-up > :empty {
	display: none;
}

.oravio-order-confirmation__details {
	display: grid;
	gap: 1rem;
}

.oravio-order-confirmation__details > :where(
	.wp-block-woocommerce-order-confirmation-totals-wrapper,
	.wp-block-woocommerce-order-confirmation-downloads-wrapper,
	.wp-block-woocommerce-order-confirmation-additional-fields-wrapper
),
.oravio-order-confirmation__addresses > .wp-block-column {
	min-width: 0;
	padding: clamp(1rem, 3vw, 1.5rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.05rem;
}

.oravio-order-confirmation__details :where(h2, h3) {
	margin-top: 0;
	letter-spacing: -0.025em;
}

.oravio-order-confirmation__addresses {
	gap: 1rem;
	margin-block: 0 !important;
}

.oravio-order-confirmation__addresses > .wp-block-column > :first-child {
	margin-top: 0;
}

.oravio-order-confirmation__addresses > .wp-block-column > :last-child {
	margin-bottom: 0;
}

.oravio-post-purchase {
	padding: clamp(1.25rem, 3.5vw, 1.8rem);
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.2rem;
}

.oravio-post-purchase__heading {
	margin-bottom: 1rem;
}

.oravio-post-purchase__eyebrow {
	margin: 0 0 0.3rem;
	color: var(--wp--preset--color--primary);
	font-size: 0.72rem;
	font-weight: 760;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.oravio-post-purchase__heading h2 {
	margin: 0;
	font-size: clamp(1.55rem, 3vw, 2.2rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.oravio-post-purchase__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.oravio-post-purchase-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 10.5rem;
	padding: clamp(1rem, 2.5vw, 1.3rem);
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
}

.oravio-post-purchase-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: var(--wp--preset--color--primary);
}

.oravio-post-purchase-card__topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
}

.oravio-post-purchase-card__eyebrow {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-size: 0.7rem;
	font-weight: 760;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.oravio-post-purchase-card__status {
	flex: 0 0 auto;
	padding: 0.24rem 0.5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 8%, var(--wp--preset--color--background));
	color: var(--wp--preset--color--muted);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.2;
}

.oravio-post-purchase-card__title {
	margin: 0;
	overflow-wrap: anywhere;
	font-size: clamp(1.1rem, 2.2vw, 1.4rem);
	line-height: 1.18;
	letter-spacing: -0.025em;
}

.oravio-post-purchase-card__meta,
.oravio-post-purchase-card__description {
	margin: 0.55rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.55;
}

.oravio-post-purchase-card__meta {
	color: var(--wp--preset--color--text);
	font-weight: 650;
}

.oravio-post-purchase-card__action {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 1rem;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-decoration: none;
}

.oravio-post-purchase-card__action:hover,
.oravio-post-purchase-card__action:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

@media (max-width: 680px) {
	.oravio-order-confirmation {
		padding-block: 1.25rem 2.5rem;
	}

	.oravio-order-confirmation__hero,
	.oravio-post-purchase {
		padding: 1rem;
	}

	.oravio-post-purchase__grid {
		grid-template-columns: 1fr;
	}

	.oravio-post-purchase-card {
		min-height: 0;
	}
}

/* =========================================================
   Returning-customer checkout prompt — 0.20.2
   ========================================================= */

/*
 * Checkout Blocks keeps the login action inside the Contact information step
 * heading. Give it enough visual weight to be discoverable without turning
 * account login into a mandatory checkout step.
 */
.wp-block-woocommerce-checkout-contact-information-block :where(
	.wc-block-components-checkout-step__heading-content,
	.wc-block-checkout__login-prompt
) a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.2rem;
	padding: 0.38rem 0.72rem;
	border: 1px solid color-mix(
		in srgb,
		var(--wp--preset--color--brand) 36%,
		var(--wp--preset--color--border)
	);
	border-radius: 999px;
	background: color-mix(
		in srgb,
		var(--wp--preset--color--brand) 7%,
		var(--wp--preset--color--surface)
	);
	color: var(--wp--preset--color--brand);
	font-size: 0.88em;
	font-weight: 720;
	line-height: 1;
	text-decoration: none;
	text-underline-offset: 0.15em;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease,
		box-shadow 160ms ease;
}

.wp-block-woocommerce-checkout-contact-information-block :where(
	.wc-block-components-checkout-step__heading-content,
	.wc-block-checkout__login-prompt
) a:hover,
.wp-block-woocommerce-checkout-contact-information-block :where(
	.wc-block-components-checkout-step__heading-content,
	.wc-block-checkout__login-prompt
) a:focus-visible {
	border-color: var(--wp--preset--color--brand);
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--surface);
	box-shadow: 0 0 0 3px color-mix(
		in srgb,
		var(--wp--preset--color--brand) 16%,
		transparent
	);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-woocommerce-checkout-contact-information-block :where(
		.wc-block-components-checkout-step__heading-content,
		.wc-block-checkout__login-prompt
	) a {
		transition: none;
	}
}


/* =========================================================
   Cart + Checkout interaction polish — 0.24.0
   ========================================================= */

/*
 * Keep WooCommerce Blocks in charge of cart/checkout structure and state.
 * This pass only strengthens hierarchy, mixed-product metadata, controls and
 * validation surfaces around Woo's existing DOM.
 */

/* ---------- Cart line items ---------- */
.wp-block-woocommerce-cart .wc-block-cart-items__row {
	border-bottom-color: var(--wp--preset--color--border);
}

.wp-block-woocommerce-cart .wc-block-cart-item__image img,
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img {
	display: block;
	background: var(--oravio-commerce-media-bg);
	border: 1px solid color-mix(
		in srgb,
		var(--wp--preset--color--border) 82%,
		transparent
	);
	border-radius: 0.8rem;
}

.wp-block-woocommerce-cart .wc-block-components-product-name,
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
	color: var(--wp--preset--color--text);
	font-weight: 720;
	line-height: 1.25;
	text-decoration-color: color-mix(
		in srgb,
		var(--wp--preset--color--brand) 36%,
		transparent
	);
	text-underline-offset: 0.18em;
}

.wp-block-woocommerce-cart :where(
	.wc-block-components-product-metadata,
	.wc-block-components-product-details
),
.wp-block-woocommerce-checkout :where(
	.wc-block-components-product-metadata,
	.wc-block-components-product-details
) {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
}

/* Booking dates/participants and other extension metadata stay readable as a
 * compact detail list instead of becoming one dense Woo-generated sentence. */
:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-product-details {
	display: grid;
	gap: 0.22rem;
	margin-top: 0.45rem;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-product-details li {
	margin: 0;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-product-details__name {
	color: var(--wp--preset--color--text);
	font-weight: 650;
}

.wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 620;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover,
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link:focus-visible {
	color: var(--wp--preset--color--brand);
}

/* ---------- Quantity controls ---------- */
:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-quantity-selector {
	min-height: 2.75rem;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
	border-radius: 0.75rem;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-quantity-selector input {
	color: var(--wp--preset--color--text);
	font-weight: 680;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-quantity-selector button {
	min-width: 2.5rem;
	color: var(--wp--preset--color--text);
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-quantity-selector:focus-within {
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px color-mix(
		in srgb,
		var(--wp--preset--color--brand) 14%,
		transparent
	);
}

/* ---------- Coupon + totals hierarchy ---------- */
:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-totals-coupon-link {
	color: var(--wp--preset--color--brand);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-totals-coupon__button {
	border-color: var(--wp--preset--color--brand);
	background: var(--wp--preset--color--brand);
	color: #fff !important;
	font-weight: 720;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-totals-coupon__button:hover:not(:disabled),
:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-totals-coupon__button:focus-visible:not(:disabled) {
	border-color: var(--wp--preset--color--primary-dark);
	background: var(--wp--preset--color--primary-dark);
	color: #fff !important;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-totals-coupon__button:disabled {
	border-color: var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted) !important;
	opacity: 1;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-totals-footer-item {
	padding-top: 1rem;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-totals-footer-item :where(
	.wc-block-components-totals-item__label,
	.wc-block-components-totals-item__value
) {
	color: var(--wp--preset--color--text);
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	font-weight: 780;
}

/* ---------- Checkout steps ---------- */
.wp-block-woocommerce-checkout .wc-block-components-checkout-step {
	margin-bottom: clamp(1.6rem, 3.5vw, 2.35rem);
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading {
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading :where(h2, h3) {
	margin: 0;
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: -0.018em;
	line-height: 1.2;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__description {
	color: var(--wp--preset--color--muted);
	line-height: 1.55;
}

/* Shipping and payment methods share one selectable-surface language.
 * WooCommerce renders shipping as a direct radio option and payment methods as
 * an accordion wrapper around a radio option. Keep the outer geometry the same
 * while leaving WooCommerce's interaction/state handling intact. */
.wp-block-woocommerce-checkout {
	--oravio-checkout-option-radius: 0.78rem;
	--oravio-checkout-option-padding-block: 0.88rem;
	--oravio-checkout-option-padding-inline: 1rem;
	--oravio-checkout-radio-gutter: 3rem;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__option,
.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option {
	box-sizing: border-box;
	margin-block: 0.45rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--oravio-checkout-option-radius);
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		box-shadow 160ms ease;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__option {
	padding:
		var(--oravio-checkout-option-padding-block)
		var(--oravio-checkout-option-padding-inline)
		var(--oravio-checkout-option-padding-block)
		var(--oravio-checkout-radio-gutter);
}

/* Payment accordions already provide the visible outer card. Give the nested
 * radio row the exact same inset as shipping, then align gateway descriptions
 * underneath the label rather than under the radio control. */
.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option {
	padding: 0;
	overflow: clip;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option {
	margin: 0;
	padding:
		var(--oravio-checkout-option-padding-block)
		var(--oravio-checkout-option-padding-inline)
		0.55rem
		var(--oravio-checkout-radio-gutter);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option > :not(.wc-block-components-radio-control__option) {
	box-sizing: border-box;
	margin-inline: 0;
	padding-inline:
		var(--oravio-checkout-option-padding-inline)
		var(--oravio-checkout-option-padding-inline);
	padding-bottom: var(--oravio-checkout-option-padding-block);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option > :where(
	.wc-block-components-radio-control__description,
	.wc-block-components-radio-control-accordion-content,
	.wc-block-components-radio-control-accordion-option__content
) {
	padding-left: var(--oravio-checkout-radio-gutter);
}

.wp-block-woocommerce-checkout :where(
	.wc-block-components-radio-control__option-checked,
	.wc-block-components-radio-control-accordion-option--checked,
	.wc-block-components-radio-control__option:has(input:checked),
	.wc-block-components-radio-control-accordion-option:has(input:checked)
) {
	background: color-mix(
		in srgb,
		var(--wp--preset--color--brand) 5%,
		var(--wp--preset--color--surface)
	);
	border-color: color-mix(
		in srgb,
		var(--wp--preset--color--brand) 58%,
		var(--wp--preset--color--border)
	);
	box-shadow: 0 0 0 2px color-mix(
		in srgb,
		var(--wp--preset--color--brand) 8%,
		transparent
	);
}

.wp-block-woocommerce-checkout :where(
	.wc-block-components-radio-control__option,
	.wc-block-components-radio-control-accordion-option
):focus-within {
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px color-mix(
		in srgb,
		var(--wp--preset--color--brand) 14%,
		transparent
	);
}

/* Checked/focus state belongs to the accordion wrapper, not its nested label. */
.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option > :where(
	.wc-block-components-radio-control__option,
	.wc-block-components-radio-control__option-checked,
	.wc-block-components-radio-control__option:has(input:checked),
	.wc-block-components-radio-control__option:focus-within
) {
	background: transparent;
	border: 0;
	box-shadow: none;
}

.wp-block-woocommerce-checkout :where(
	.wc-block-components-radio-control__label,
	.wc-block-components-radio-control-accordion-option__label
) {
	color: var(--wp--preset--color--text);
	font-weight: 680;
}

/* ---------- Order-summary line items ---------- */
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item {
	padding-block: 0.85rem;
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity {
	background: var(--wp--preset--color--text);
	color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--surface);
	font-weight: 760;
}

/* ---------- Notices and validation ---------- */
:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-notice-banner {
	border-radius: 0.9rem;
	box-shadow: none;
}

.wp-block-woocommerce-checkout :where(
	.wc-block-components-validation-error,
	.wc-block-components-validation-error > p
) {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 620;
	line-height: 1.45;
}

/* ---------- Commerce feedback / progressive interaction polish ---------- */
:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout,
	.wc-block-mini-cart__drawer
) :where(
	.wc-block-components-notice-banner,
	.wc-block-store-notices
) {
	scroll-margin-top: calc(var(--oravio-header-height, 76px) + 1rem);
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-notice-banner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	column-gap: 0.75rem;
	padding: 0.85rem 0.95rem !important;
	border-width: 1px !important;
	border-style: solid !important;
	background: color-mix(in srgb, var(--wp--preset--color--surface) 94%, var(--wp--preset--color--background)) !important;
	color: var(--wp--preset--color--text) !important;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-notice-banner > svg {
	margin-top: 0.08rem;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-notice-banner__content {
	min-width: 0;
	line-height: 1.5;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-notice-banner__content :where(a, button) {
	font-weight: 720;
	text-underline-offset: 0.16em;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-notice-banner.is-error {
	border-color: color-mix(in srgb, #c73a4a 38%, var(--wp--preset--color--border)) !important;
	background: color-mix(in srgb, #c73a4a 7%, var(--wp--preset--color--surface)) !important;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-notice-banner.is-success {
	border-color: color-mix(in srgb, #25875a 34%, var(--wp--preset--color--border)) !important;
	background: color-mix(in srgb, #25875a 7%, var(--wp--preset--color--surface)) !important;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) .wc-block-components-notice-banner.is-info {
	border-color: color-mix(in srgb, var(--wp--preset--color--brand) 30%, var(--wp--preset--color--border)) !important;
	background: color-mix(in srgb, var(--wp--preset--color--brand) 6%, var(--wp--preset--color--surface)) !important;
}

.wp-block-woocommerce-checkout :where(
	.has-error input,
	.has-error select,
	.has-error textarea,
	.wc-block-components-text-input.has-error input,
	.wc-block-components-combobox.is-error .components-combobox-control__input
) {
	border-color: color-mix(in srgb, #c73a4a 72%, var(--wp--preset--color--border)) !important;
	box-shadow: 0 0 0 2px color-mix(in srgb, #c73a4a 12%, transparent) !important;
}

:is(
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout
) :where(
	button[aria-busy="true"],
	button.is-loading,
	.wc-block-components-button[aria-disabled="true"]
) {
	cursor: progress;
	filter: saturate(0.82);
}

/* ---------- Primary completion actions ---------- */
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
	min-height: 3.45rem;
	border-radius: 0.9rem !important;
	font-weight: 760;
	letter-spacing: -0.006em;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:focus-visible {
	outline: 3px solid color-mix(
		in srgb,
		var(--wp--preset--color--brand) 24%,
		transparent
	);
	outline-offset: 3px;
}

/* ---------- Mobile checkout/cart rhythm ---------- */
@media (max-width: 700px) {
	.wp-block-woocommerce-checkout .wc-block-components-checkout-step {
		margin-bottom: 1.55rem;
	}

	.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 0.55rem;
	}

	.wp-block-woocommerce-cart .wc-block-cart-item__image img,
	.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img {
		border-radius: 0.65rem;
	}

	.wp-block-woocommerce-cart .wc-block-cart__submit-button,
	.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
		width: 100%;
		min-height: 3.55rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-woocommerce-checkout :where(
		.wc-block-components-radio-control__option,
		.wc-block-components-radio-control-accordion-option
	) {
		transition: none;
	}
}

/* =========================================================
   Curated Product Explorer
   Server-rendered WooCommerce products with progressive category filtering.
   Editorial rhythm with client-configurable categories, products and copy.
   ========================================================= */

.oravio-product-explorer {
	--oravio-explorer-gap: clamp(0.85rem, 2vw, 1.25rem);
	width: 100%;
}

.oravio-product-explorer__filters {
	display: none;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.oravio-product-explorer.is-enhanced .oravio-product-explorer__filters,
.editor-styles-wrapper .oravio-product-explorer__filters {
	display: flex;
}

.oravio-product-explorer__filter {
	appearance: none;
	min-height: 2.65rem;
	padding: 0.56rem 0.9rem;
	background: color-mix(in srgb, var(--wp--preset--color--surface) 94%, transparent);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--muted);
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 650;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.oravio-product-explorer__filter:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 28%, var(--wp--preset--color--border));
	color: var(--wp--preset--color--text);
}

.oravio-product-explorer__filter.is-active {
	background: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--on-brand);
}

.oravio-product-explorer__filter:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--wp--preset--color--primary) 34%, transparent);
	outline-offset: 2px;
}

.oravio-product-explorer__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-flow: dense;
	grid-auto-rows: 10.5rem;
	gap: var(--oravio-explorer-gap);
}

.oravio-product-explorer__card {
	position: relative;
	grid-column: span 4;
	grid-row: span 2;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background: var(--wp--preset--color--soft);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.25rem;
	box-shadow: var(--oravio-commerce-card-shadow);
}

.oravio-product-explorer--grid .oravio-product-explorer__card {
	grid-column: span 4;
	grid-row: span 2;
}

.oravio-product-explorer--editorial .oravio-product-explorer__card--tall {
	grid-row: span 4;
}

.oravio-product-explorer--editorial .oravio-product-explorer__card--wide {
	grid-column: span 8;
}

.oravio-product-explorer__card[hidden],
.oravio-product-explorer__card.is-hidden {
	display: none !important;
}

.oravio-product-explorer__link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	isolation: isolate;
	color: #fff;
	text-decoration: none;
}

.oravio-product-explorer__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(8, 12, 18, 0.9) 0%,
		rgba(8, 12, 18, 0.5) 42%,
		rgba(8, 12, 18, 0.08) 76%,
		rgba(8, 12, 18, 0.02) 100%
	);
	pointer-events: none;
	transition: background 220ms ease;
}

.oravio-product-explorer__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	background: var(--oravio-commerce-media-bg);
}

.oravio-product-explorer__media img,
.oravio-product-explorer__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.002);
	transition: transform 520ms cubic-bezier(.2,.8,.2,1);
}

.oravio-product-explorer__category {
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	z-index: 3;
	max-width: calc(100% - 1.8rem);
	padding: 0.36rem 0.68rem;
	overflow: hidden;
	background: rgba(10, 14, 20, 0.54);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: rgba(255, 255, 255, 0.94);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.oravio-product-explorer__content {
	position: absolute;
	inset: auto 0 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.58rem;
	padding: clamp(1rem, 2.2vw, 1.35rem);
}

.oravio-product-explorer__title {
	display: block;
	max-width: 22ch;
	color: #fff;
	font-size: clamp(1.15rem, 2vw, 1.55rem);
	font-weight: 760;
	letter-spacing: -0.025em;
	line-height: 1.12;
	text-wrap: balance;
}

.oravio-product-explorer__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.38rem 0.75rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.78rem;
	line-height: 1.35;
}

.oravio-product-explorer__meta-item {
	display: inline-flex;
	align-items: center;
}

.oravio-product-explorer__meta-item + .oravio-product-explorer__meta-item::before {
	content: "·";
	margin-right: 0.75rem;
	color: rgba(255, 255, 255, 0.48);
}

.oravio-product-explorer__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.12rem;
}

.oravio-product-explorer__price {
	color: #fff;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 720;
}

.oravio-product-explorer__price :where(del, ins) {
	color: inherit;
}

.oravio-product-explorer__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: auto;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.oravio-product-explorer__card:hover,
.oravio-product-explorer__card:focus-within {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 28%, var(--wp--preset--color--border));
	box-shadow: var(--oravio-commerce-card-shadow-hover);
}

.oravio-product-explorer__card:hover .oravio-product-explorer__media img,
.oravio-product-explorer__card:focus-within .oravio-product-explorer__media img {
	transform: scale(1.045);
}

.oravio-product-explorer__card:hover .oravio-product-explorer__link::after,
.oravio-product-explorer__card:focus-within .oravio-product-explorer__link::after {
	background: linear-gradient(
		to top,
		rgba(8, 12, 18, 0.94) 0%,
		rgba(8, 12, 18, 0.6) 48%,
		rgba(8, 12, 18, 0.14) 80%,
		rgba(8, 12, 18, 0.04) 100%
	);
}

.oravio-product-explorer__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: -4px;
	border-radius: inherit;
}

.oravio-product-explorer__empty {
	padding: 1rem 1.1rem;
	background: var(--wp--preset--color--soft);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 980px) {
	.oravio-product-explorer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
	}

	.oravio-product-explorer__card,
	.oravio-product-explorer--grid .oravio-product-explorer__card,
	.oravio-product-explorer--editorial .oravio-product-explorer__card--tall,
	.oravio-product-explorer--editorial .oravio-product-explorer__card--wide {
		grid-column: auto;
		grid-row: auto;
		min-height: 22rem;
	}
}

@media (max-width: 640px) {
	.oravio-product-explorer__filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1rem));
		padding-inline: var(--wp--style--root--padding-left, 1rem);
		padding-bottom: 0.35rem;
		scrollbar-width: thin;
	}

	.oravio-product-explorer__filter {
		flex: 0 0 auto;
	}

	.oravio-product-explorer__grid {
		grid-template-columns: 1fr;
	}

	.oravio-product-explorer__card,
	.oravio-product-explorer--grid .oravio-product-explorer__card,
	.oravio-product-explorer--editorial .oravio-product-explorer__card--tall,
	.oravio-product-explorer--editorial .oravio-product-explorer__card--wide {
		min-height: min(112vw, 30rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.oravio-product-explorer__filter,
	.oravio-product-explorer__media img,
	.oravio-product-explorer__link::after {
		transition: none;
	}

	.oravio-product-explorer__card:hover .oravio-product-explorer__media img,
	.oravio-product-explorer__card:focus-within .oravio-product-explorer__media img {
		transform: none;
	}
}
