/*
Theme Name: Diartech
Theme URI: http://diartech.local
Author: Diartech
Description: Custom block theme for Diartech, an online shop for cameras, lenses and accessories. Built for Full Site Editing and WooCommerce.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.6.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diartech
Tags: full-site-editing, block-patterns, e-commerce, custom-colors, wide-blocks
*/

/*
 * Design tokens and block styles live in theme.json.
 * This file only holds what theme.json cannot express.
 */

/* ==========================================================================
   Site header (parts/header.html → patterns/header.php)
   Brand blue bar with the white logo, a slim search, icon actions, the
   language dropdown and the account button; then the category bar.
   Sizes come from settings.custom.header in theme.json.
   ========================================================================== */

/* Sticky (template parts cannot be made sticky via theme.json). Sits below the admin bar. */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	box-shadow: 0 1px 0 rgba(11, 33, 50, 0.08), 0 6px 20px rgba(11, 33, 50, 0.08);
}

@media (max-width: 600px) {
	/* The admin bar scrolls away on small screens. */
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header .diartech-header > *,
.site-header .diartech-header__main > *,
.site-header .diartech-header__brand > *,
.site-header .diartech-header__actions > * {
	margin-block: 0;
}

.site-header :focus-visible {
	outline-color: var(--wp--preset--color--base);
}

.site-header .diartech-header__inner {
	box-sizing: content-box;
	max-width: var(--wp--custom--header--container);
	margin-inline: auto;
	padding: var(--wp--custom--header--padding-y) var(--wp--custom--header--padding-x);
}

/* Row 1: logo | search | actions */
.site-header .diartech-header__main {
	display: flex;
	align-items: center;
	gap: var(--wp--custom--header--gap);
}

.site-header .diartech-header__brand {
	flex: none;
	display: flex;
	align-items: center;
}

.site-header .diartech-header__logo img {
	display: block;
	height: auto;
}

/* An uploaded Site Logo replaces the text wordmark automatically. */
.site-header .wp-block-site-logo + .diartech-wordmark {
	display: none;
}

.site-header .diartech-wordmark {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--custom--header--logo-size);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.site-header .diartech-wordmark a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

/* Search: slim white field with the icon inside, no button (Enter submits). */
.site-header .diartech-header__search {
	flex: 1 1 var(--wp--custom--header--search-width);
	max-width: var(--wp--custom--header--search-width);
	min-width: 0;
	margin-inline: auto;
}

.site-header .diartech-header__search .wp-block-search__inside-wrapper {
	position: relative;
	height: var(--wp--custom--header--search-height);
	min-height: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--base);
	box-sizing: border-box;
	transition: box-shadow var(--wp--custom--transition);
}

.site-header .diartech-header__search .wp-block-search__inside-wrapper:focus-within {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.site-header .diartech-header__search-icon {
	position: absolute;
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
	color: var(--wp--preset--color--muted);
	pointer-events: none;
}

.site-header .diartech-header__search .wp-block-search__input {
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0 14px 0 38px;
	border: 0;
	border-radius: var(--wp--custom--radius--sm);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 400;
}

.site-header .diartech-header__search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

/* The field's own ring is drawn on the wrapper above. */
.site-header .diartech-header__search .wp-block-search__input:focus-visible {
	outline: 0;
}

/* Actions: wishlist, cart, language, account */
.site-header .diartech-header__actions {
	flex: none;
	display: flex;
	align-items: center;
	gap: var(--wp--custom--header--actions-gap);
}

.site-header .diartech-header__icon-link,
.site-header .diartech-header__cart .wc-block-mini-cart__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wp--custom--header--tap-size);
	height: var(--wp--custom--header--tap-size);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--sm);
	background: transparent;
	color: var(--wp--preset--color--base);
	cursor: pointer;
	transition: background-color var(--wp--custom--transition);
}

.site-header .diartech-header__icon-link:hover,
.site-header .diartech-header__cart .wc-block-mini-cart__button:hover {
	background: rgba(255, 255, 255, 0.14);
	color: var(--wp--preset--color--base);
}

.site-header .diartech-header__icon-link svg,
.site-header .diartech-header__cart .wc-block-mini-cart__icon {
	display: block;
	width: var(--wp--custom--header--icon-size);
	height: var(--wp--custom--header--icon-size);
	margin: 0;
}

.site-header .diartech-header__cart .wc-block-mini-cart__quantity-badge {
	position: relative;
	display: flex;
}

/* Count badge; colours set with !important because the cart script sets inline colours. */
.site-header .diartech-header__cart .wc-block-mini-cart__badge {
	position: absolute;
	top: -6px;
	right: -8px;
	left: auto;
	box-sizing: border-box;
	min-width: var(--wp--custom--header--badge-size);
	height: var(--wp--custom--header--badge-size);
	margin: 0;
	padding: 0 5px;
	border: 2px solid var(--wp--preset--color--header);
	border-radius: var(--wp--custom--radius--full);
	background: var(--wp--preset--color--sale) !important;
	color: var(--wp--preset--color--base) !important;
	font-size: 10px;
	font-weight: 700;
	line-height: calc(var(--wp--custom--header--badge-size) - 4px);
	text-align: center;
	transform: none;
}

.site-header .diartech-header__cart .wc-block-mini-cart__badge[hidden] {
	display: none;
}

/* Account: white button with navy text, the last item in the bar. */
.site-header .diartech-header__account .wc-block-customer-account__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 38px;
	margin-left: 6px;
	padding: 0 16px;
	box-sizing: border-box;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--dark);
	font-size: var(--wp--custom--header--ui-size);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--wp--custom--transition);
}

.site-header .diartech-header__account .wc-block-customer-account__link:hover {
	background: var(--wp--preset--color--brand-muted);
	color: var(--wp--preset--color--dark);
}

.site-header .diartech-header__account-icon {
	flex: none;
}

/* Language dropdown (functions.php → diartech_language_switcher). */
.site-header .diartech-lang {
	position: relative;
	margin-left: 4px;
}

.site-header .diartech-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: var(--wp--custom--header--tap-size);
	padding: 0 10px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--custom--header--ui-size);
	font-weight: 600;
	line-height: 1;
	list-style: none;
	cursor: pointer;
	user-select: none;
	transition: background-color var(--wp--custom--transition);
}

.site-header .diartech-lang__toggle::-webkit-details-marker {
	display: none;
}

.site-header .diartech-lang__toggle:hover,
.site-header .diartech-lang[open] .diartech-lang__toggle {
	background: rgba(255, 255, 255, 0.14);
}

.site-header .diartech-lang__flag {
	flex: none;
	display: block;
	width: 20px;
	height: 15px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(11, 33, 50, 0.15);
	object-fit: cover;
}

.site-header .diartech-lang__code {
	display: none;
}

.site-header .diartech-lang__chevron {
	flex: none;
	opacity: 0.85;
	transition: transform var(--wp--custom--transition);
}

.site-header .diartech-lang[open] .diartech-lang__chevron {
	transform: rotate(180deg);
}

.site-header .diartech-lang__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 10;
	min-width: 168px;
	margin: 0;
	padding: 6px;
	list-style: none;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.site-header .diartech-lang__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--contrast);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}

.site-header .diartech-lang__item:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.site-header .diartech-lang__item.is-active {
	font-weight: 600;
}

.site-header .diartech-lang__item span {
	flex: 1;
}

.site-header .diartech-lang__check {
	flex: none;
	color: var(--wp--preset--color--accent-strong);
}

.site-header .diartech-lang__menu :focus-visible {
	outline-color: var(--wp--preset--color--accent-strong);
	outline-offset: -2px;
}

/* Row 2: category bar, a shade darker than the main bar. */
.site-header .diartech-header__categories {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	background: var(--wp--preset--color--header-soft);
}

.site-header .diartech-header__categories .diartech-header__inner {
	padding-block: 0;
}

.site-header .diartech-header__nav,
.site-header .diartech-header__nav .wp-block-navigation__container {
	flex-wrap: nowrap;
	gap: var(--wp--custom--header--nav-gap);
}

.site-header .diartech-header__nav .wp-block-navigation__container {
	margin-left: -12px;
}

.site-header .diartech-header__nav .wp-block-navigation-item__content {
	display: block;
	padding: 10px 12px;
	color: rgba(255, 255, 255, 0.92);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: inset 0 -2px 0 transparent;
	transition: background-color var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.site-header .diartech-header__nav .wp-block-navigation-item__content:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--base);
}

.site-header .diartech-header__nav .current-menu-item > .wp-block-navigation-item__content,
.site-header .diartech-header__nav [aria-current="page"] {
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--base);
	color: var(--wp--preset--color--base);
	font-weight: 600;
}

/* Tablet: the search shrinks before anything wraps. */
@media (max-width: 1080px) {
	.site-header .diartech-lang__name {
		display: none;
	}

	.site-header .diartech-lang__code {
		display: inline;
	}
}

/* Mobile: logo + icons on one row, search below, category bar scrolls sideways. */
@media (max-width: 781px) {
	.site-header .diartech-header__inner {
		padding-inline: 16px;
	}

	.site-header .diartech-header__main {
		flex-wrap: wrap;
		gap: 10px 12px;
	}

	.site-header .diartech-header__brand {
		flex: 1 1 auto;
	}

	.site-header .diartech-header__logo img {
		width: 124px;
	}

	.site-header .diartech-header__actions {
		order: 2;
		gap: 0;
	}

	.site-header .diartech-lang {
		margin-left: 2px;
	}

	.site-header .diartech-lang__toggle {
		gap: 5px;
		padding: 0 7px;
		border-color: transparent;
	}

	.site-header .diartech-lang__code {
		display: none;
	}

	.site-header .diartech-header__search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
		margin-inline: 0;
	}

	.site-header .diartech-header__account .wc-block-customer-account__link {
		justify-content: center;
		width: 38px;
		margin-left: 4px;
		padding: 0;
	}

	/* Visually hidden; the link keeps aria-label "Log in". */
	.site-header .diartech-header__account .label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.site-header .diartech-header__categories .diartech-header__inner {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.site-header .diartech-header__categories .diartech-header__inner::-webkit-scrollbar {
		display: none;
	}

	.site-header .diartech-header__nav {
		width: max-content;
	}
}

/* Visible keyboard focus everywhere. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* The sky blue focus ring would vanish on the sky blue accent band. */
.is-style-section-accent :focus-visible {
	outline-color: var(--wp--preset--color--dark);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Full-width sections sit flush against the header and footer. */
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* FAQ: theme.json cannot style the <summary> element. */
.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.wp-block-details[open] summary {
	margin-block-end: var(--wp--preset--spacing--20);
}

/* Live product search (assets/js/live-search.js). */
.diartech-live-search .wp-block-search__inside-wrapper {
	position: relative;
	max-width: 100%;
	background: var(--wp--preset--color--base);
}

.diartech-live-search .wp-block-search__input {
	min-height: 3rem;
	font-size: var(--wp--preset--font-size--medium);
}

.diartech-live-search__results {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	right: 0;
	z-index: 50;
	max-height: min(70vh, 32rem);
	overflow-y: auto;
	margin: 0;
	padding: var(--wp--preset--spacing--20);
	list-style: none;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.diartech-live-search__results a {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	padding: 0.5rem 0.75rem;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.diartech-live-search__item[aria-selected="true"] a,
.diartech-live-search__results a:hover {
	background: var(--wp--preset--color--surface);
}

.diartech-live-search__image {
	flex: none;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface);
}

.diartech-live-search__text {
	display: flex;
	flex-direction: column;
}

.diartech-live-search__price {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.diartech-live-search__empty {
	padding: 0.5rem 0.75rem;
	color: var(--wp--preset--color--muted);
}

.diartech-live-search__results a.diartech-live-search__all {
	margin-top: 0.25rem;
	border-top: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	color: var(--wp--preset--color--accent-strong);
	font-weight: 600;
}

/* Newsletter form (no form block in core). */
.diartech-newsletter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}

.diartech-newsletter input[type="email"] {
	flex: 1 1 14rem;
	min-height: 3rem;
	padding: 0 1rem;
	border: 1px solid var(--wp--preset--color--dark);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.diartech-newsletter button {
	flex: 0 0 auto;
	cursor: pointer;
}

/* ==========================================================================
   Buttons: navy with white text everywhere (theme.json); white with navy
   text on navy sections; navy on the sky blue band and the brand blue footer.
   ========================================================================== */

/* ==========================================================================
   Typography: one body font (Inter) for all text, form controls and product
   names; Space Grotesk only for page and section headings.
   ========================================================================== */
input,
select,
textarea,
button {
	font-family: inherit;
}

.wc-block-product .wp-block-post-title,
.wc-block-product .wp-block-post-title a,
.wp-block-woocommerce-product-template .wp-block-post-title,
.wp-block-woocommerce-product-template .wp-block-post-title a {
	font-family: var(--wp--preset--font-family--body);
	letter-spacing: normal;
}

/* ==========================================================================
   Landing page motion (assets/js/landing-motion.js). Everything is visible
   without JavaScript and for visitors who prefer reduced motion.
   ========================================================================== */
@keyframes diartech-rise {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes diartech-float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-12px);
	}
}

@keyframes diartech-glow {
	0%, 100% {
		opacity: 0.55;
		transform: scale(1);
	}
	50% {
		opacity: 0.9;
		transform: scale(1.06);
	}
}

@media (prefers-reduced-motion: no-preference) {
	/* Hero: text lines rise in one after another, the camera drifts gently. */
	.diartech-hero .wp-block-column:first-child > * {
		animation: diartech-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.diartech-hero .wp-block-column:first-child > :nth-child(2) { animation-delay: 0.12s; }
	.diartech-hero .wp-block-column:first-child > :nth-child(3) { animation-delay: 0.24s; }
	.diartech-hero .wp-block-column:first-child > :nth-child(4) { animation-delay: 0.36s; }

	.diartech-hero .wp-block-column:last-child {
		position: relative;
		animation: diartech-rise 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.diartech-hero .wp-block-column:last-child::before {
		content: "";
		position: absolute;
		inset: 10% 12%;
		z-index: 0;
		border-radius: 50%;
		background: radial-gradient(circle, rgba(62, 142, 193, 0.35), transparent 65%);
		filter: blur(20px);
		animation: diartech-glow 6s ease-in-out infinite;
		pointer-events: none;
	}

	.diartech-hero .wp-block-image {
		position: relative;
		z-index: 1;
		animation: diartech-float 6s 1.2s ease-in-out infinite;
	}

	/* Sections below the hero fade up as they scroll into view. */
	.diartech-motion .diartech-reveal {
		opacity: 0;
		transform: translateY(32px);
		transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
		transition-delay: var(--diartech-reveal-delay, 0s);
	}

	.diartech-motion .diartech-reveal.is-revealed {
		opacity: 1;
		transform: none;
	}

	/* Cards lift on hover. */
	.home .is-style-card,
	.home .wc-block-product {
		transition: transform var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
	}

	.home .is-style-card:hover,
	.home .wc-block-product:hover {
		transform: translateY(-6px);
		box-shadow: var(--wp--preset--shadow--lifted);
	}

	.home .is-style-card .wp-block-image img,
	.home .wc-block-product .wc-block-components-product-image img {
		transition: transform 0.5s ease;
	}

	.home .is-style-card:hover .wp-block-image img,
	.home .wc-block-product:hover .wc-block-components-product-image img {
		transform: scale(1.04);
	}

	.wp-element-button {
		transition: background-color var(--wp--custom--transition), color var(--wp--custom--transition), transform var(--wp--custom--transition);
	}

	.wp-element-button:hover {
		transform: translateY(-2px);
	}
}

/* ==========================================================================
   Shop banner (archive-product, taxonomy-product_cat, product-search-results):
   navy to brand blue gradient card with breadcrumbs, title, description and
   category chips ([diartech_category_chips] in functions.php).
   ========================================================================== */
.diartech-archive-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3rem);
	border-radius: 16px;
	background:
		radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.16), transparent 38%),
		linear-gradient(115deg, var(--wp--preset--color--dark) 0%, #15405F 55%, var(--wp--preset--color--header) 100%);
	color: var(--wp--preset--color--base);
}

/* Circuit hexagon from the logo, drawn faintly on the right. */
.diartech-archive-hero::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -40px;
	width: 300px;
	height: 300px;
	transform: translateY(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M50 6 88 28v44L50 94 12 72V28z'/%3E%3Cpath d='M26 64V36l34-20M38 46l22-13M38 72l18-10M56 78l10-6 3-14 9-5'/%3E%3Ccircle cx='26' cy='68' r='4'/%3E%3Ccircle cx='38' cy='42' r='4'/%3E%3Ccircle cx='64' cy='30' r='4'/%3E%3Ccircle cx='34' cy='74' r='4'/%3E%3Ccircle cx='52' cy='80' r='4'/%3E%3Ccircle cx='82' cy='51' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.12;
	pointer-events: none;
}

.diartech-archive-hero > * {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin-block: 0;
}

.diartech-archive-hero > * + * {
	margin-block-start: 0.75rem;
}

.diartech-archive-hero .wp-block-query-title {
	color: var(--wp--preset--color--base);
	margin-block-start: 0.5rem;
}

.diartech-archive-hero .wp-block-term-description,
.diartech-archive-hero .wp-block-term-description p {
	margin-block: 0;
	color: rgba(255, 255, 255, 0.8);
}

.diartech-archive-hero .diartech-chips {
	margin-block-start: 1.5rem;
}

/* Breadcrumbs with chevrons (diartech_breadcrumb_defaults). */
.wc-block-breadcrumbs .woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.diartech-crumb-sep {
	flex: none;
	opacity: 0.6;
}

.diartech-archive-hero .woocommerce-breadcrumb {
	color: rgba(255, 255, 255, 0.72);
	font-weight: 500;
}

.diartech-archive-hero .woocommerce-breadcrumb a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.diartech-archive-hero .woocommerce-breadcrumb a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.diartech-archive-hero :focus-visible {
	outline-color: var(--wp--preset--color--base);
}

/* Category chips */
.diartech-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.diartech-chip {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 16px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--wp--custom--radius--full);
	color: var(--wp--preset--color--base);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--wp--custom--transition), border-color var(--wp--custom--transition);
}

.diartech-chip:hover {
	border-color: rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--base);
}

.diartech-chip.is-active {
	border-color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--dark);
	font-weight: 600;
}

/* ==========================================================================
   Catalog toolbar: result count and sorting dropdown.
   ========================================================================== */
.diartech-catalog-toolbar {
	align-items: center;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.diartech-catalog-toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.diartech-catalog-toolbar .woocommerce-ordering {
	margin: 0;
}

.woocommerce-ordering select.orderby {
	appearance: none;
	height: 40px;
	min-width: 220px;
	padding: 0 40px 0 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--base) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2132' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
	box-shadow: 0 1px 2px rgba(11, 33, 50, 0.05);
	color: var(--wp--preset--color--contrast);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color var(--wp--custom--transition);
}

.woocommerce-ordering select.orderby:hover {
	border-color: var(--wp--preset--color--muted);
}

.woocommerce-ordering select.orderby:focus-visible {
	border-color: var(--wp--preset--color--accent-strong);
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
}

/* Full-width add-to-cart buttons in product cards. */
.wc-block-product .wc-block-components-product-button,
.wc-block-product .wc-block-components-product-button .wp-block-button__link {
	width: 100%;
}

.wc-block-product .wc-block-components-product-button .wp-block-button__link {
	justify-content: center;
	padding-block: 0.75rem;
	font-size: 15px;
}

/* ==========================================================================
   Footer (patterns/footer.php): brand blue like the header.
   ========================================================================== */
.diartech-footer .wp-block-navigation a {
	text-decoration: none;
}

.diartech-footer .wp-block-navigation a:hover {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.diartech-footer p a {
	text-decoration: none;
}

.diartech-footer p a:hover {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}

.diartech-footer .wp-block-separator {
	border-color: rgba(255, 255, 255, 0.25);
	opacity: 1;
}

.diartech-footer :focus-visible {
	outline-color: var(--wp--preset--color--base);
}

@media (max-width: 600px) {
	.diartech-archive-hero::after {
		right: -90px;
		opacity: 0.08;
	}

	.diartech-catalog-toolbar .woocommerce-ordering,
	.woocommerce-ordering select.orderby {
		width: 100%;
		min-width: 0;
	}
}

/* ==========================================================================
   Page banners: the shop banner style (.diartech-archive-hero) is shared by
   pages, account, cart, checkout and order confirmation. Full-width heroes
   (home, contact) use the same gradient via .diartech-hero-gradient.
   ========================================================================== */
.diartech-archive-hero .wp-block-post-title,
.diartech-archive-hero .wc-block-order-confirmation-status,
.diartech-archive-hero .wc-block-order-confirmation-status * {
	color: var(--wp--preset--color--base);
}

.diartech-archive-hero .wc-block-order-confirmation-status p {
	margin-block: 0.5rem 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: var(--wp--preset--font-size--medium);
}

.diartech-hero-gradient {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.14), transparent 40%),
		linear-gradient(115deg, var(--wp--preset--color--dark) 0%, #15405F 58%, var(--wp--preset--color--header) 100%) !important;
}

.diartech-hero-gradient > * {
	position: relative;
	z-index: 1;
}

/* Same circuit hexagon as the shop banner, larger. The home hero has its camera instead. */
.diartech-hero-gradient:not(.diartech-hero)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: max(-60px, calc(50% - 720px));
	width: min(460px, 60vw);
	aspect-ratio: 1;
	transform: translateY(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M50 6 88 28v44L50 94 12 72V28z'/%3E%3Cpath d='M26 64V36l34-20M38 46l22-13M38 72l18-10M56 78l10-6 3-14 9-5'/%3E%3Ccircle cx='26' cy='68' r='4'/%3E%3Ccircle cx='38' cy='42' r='4'/%3E%3Ccircle cx='64' cy='30' r='4'/%3E%3Ccircle cx='34' cy='74' r='4'/%3E%3Ccircle cx='52' cy='80' r='4'/%3E%3Ccircle cx='82' cy='51' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.1;
	pointer-events: none;
}

/* Eyebrow, intro text and secondary button read as white-on-gradient. */
.diartech-hero-gradient .has-accent-color {
	color: var(--wp--preset--color--brand-muted) !important;
}

.diartech-hero-gradient .has-muted-light-color {
	color: rgba(255, 255, 255, 0.82) !important;
}

.diartech-hero-gradient .wp-block-button__link.has-dark-soft-background-color {
	border-color: rgba(255, 255, 255, 0.45) !important;
	background-color: rgba(255, 255, 255, 0.08) !important;
}

.diartech-hero-gradient .wp-block-button__link.has-dark-soft-background-color:hover {
	background-color: rgba(255, 255, 255, 0.18) !important;
}

/* Checkout progress ([diartech_checkout_steps]). */
.diartech-steps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 0;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.diartech-steps__item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
	font-weight: 500;
}

.diartech-steps__item + .diartech-steps__item::before {
	content: "";
	width: clamp(20px, 5vw, 56px);
	height: 2px;
	margin-inline: 14px 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.25);
}

.diartech-steps__item.is-done + .diartech-steps__item::before {
	background: var(--wp--preset--color--base);
}

.diartech-steps__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	box-sizing: border-box;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
}

.diartech-steps__item.is-current,
.diartech-steps__item.is-done {
	color: var(--wp--preset--color--base);
}

.diartech-steps__item.is-current .diartech-steps__mark {
	border-color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--dark);
}

.diartech-steps__item.is-done .diartech-steps__mark {
	border-color: var(--wp--preset--color--header);
	background: var(--wp--preset--color--header);
	color: var(--wp--preset--color--base);
}

.diartech-steps__item a {
	color: inherit;
	text-decoration: none;
}

.diartech-steps__item a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Breadcrumbs outside a banner (product page). */
.wc-block-breadcrumbs:not(.diartech-archive-hero *) .woocommerce-breadcrumb {
	color: var(--wp--preset--color--muted);
}

.wc-block-breadcrumbs:not(.diartech-archive-hero *) .woocommerce-breadcrumb a {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	text-decoration: none;
}

.wc-block-breadcrumbs:not(.diartech-archive-hero *) .woocommerce-breadcrumb a:hover {
	color: var(--wp--preset--color--accent-strong);
}

/* The header mini-cart is hidden on the cart and checkout pages; drop its gap too. */
.site-header .diartech-header__cart[aria-hidden="true"] {
	display: none;
}

/* ==========================================================================
   Forms: one input look for classic (account) and block (cart, checkout) forms.
   ========================================================================== */
:root {
	--diartech-input-border: #D3CABC;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.wp-site-blocks .wc-block-components-form .wc-block-components-text-input input[type],
.wp-site-blocks .wc-block-components-text-input input[type],
.wp-site-blocks .wc-blocks-components-select .wc-blocks-components-select__select,
.wp-site-blocks .wc-block-components-textarea {
	border: 1px solid var(--diartech-input-border);
	border-radius: var(--wp--custom--radius--sm);
	background-color: #FFFFFF;
	color: var(--wp--preset--color--contrast);
	transition: border-color var(--wp--custom--transition), box-shadow var(--wp--custom--transition);
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
	min-height: 48px;
	padding: 0 14px;
	box-sizing: border-box;
	font-size: var(--wp--preset--font-size--medium);
}

.woocommerce form .form-row textarea {
	padding: 12px 14px;
}

.woocommerce form .form-row .input-text:hover,
.wp-site-blocks .wc-block-components-text-input input[type]:hover,
.wp-site-blocks .wc-blocks-components-select .wc-blocks-components-select__select:hover {
	border-color: var(--wp--preset--color--muted);
}

.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus,
.wp-site-blocks .wc-block-components-form .wc-block-components-text-input input[type]:focus,
.wp-site-blocks .wc-block-components-text-input input[type]:focus,
.wp-site-blocks .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wp-site-blocks .wc-block-components-textarea:focus {
	border-color: var(--wp--preset--color--accent-strong);
	box-shadow: 0 0 0 3px rgba(75, 163, 219, 0.25);
	outline: 0;
}

.woocommerce form .form-row label {
	margin-bottom: 6px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.woocommerce form .form-row .required {
	color: var(--wp--preset--color--sale);
	text-decoration: none;
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--wp--preset--color--dark);
}

/* Quantity steppers (product page, cart). */
.wc-block-components-quantity-selector,
.wp-block-woocommerce-add-to-cart-with-options .quantity {
	border-color: var(--diartech-input-border) !important;
	border-radius: var(--wp--custom--radius--sm) !important;
	overflow: hidden;
}

.wc-block-components-quantity-selector::after {
	border-color: var(--diartech-input-border) !important;
	border-radius: var(--wp--custom--radius--sm) !important;
}

.wc-block-components-notice-banner {
	border-radius: var(--wp--custom--radius--md) !important;
}

/* ==========================================================================
   My account (classic WooCommerce markup).
   ========================================================================== */
.woocommerce .col2-set {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: var(--wp--preset--spacing--50);
}

.woocommerce .col2-set::before,
.woocommerce .col2-set::after {
	display: none;
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
	float: none;
	width: auto;
	max-width: none;
}

.woocommerce .col2-set > div > h2,
.woocommerce-account .woocommerce > h2 {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation {
	margin: 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	background: #FFFFFF;
	box-shadow: var(--wp--preset--shadow--card);
}

.woocommerce form.login .form-row:last-of-type,
.woocommerce form.register .form-row:last-of-type {
	margin-bottom: 0;
}

.woocommerce form.login .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 0 16px;
	vertical-align: middle;
	font-weight: 500;
}

.woocommerce form.login .lost_password {
	margin: 1rem 0 0;
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce form.login .lost_password a,
.woocommerce-privacy-policy-text a {
	color: var(--wp--preset--color--accent-strong);
	font-weight: 500;
}

.woocommerce-privacy-policy-text p {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

/* Logged in: menu card on the left, content card on the right. Placed
   explicitly, because WooCommerce prints an (often empty) notices wrapper first. */
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
	align-items: start;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	max-width: none;
}

.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > * {
	grid-column: 1 / -1;
	margin: 0;
	max-width: none;
}

.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation {
	grid-column: 1;
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 130px);
}

.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
	grid-column: 2;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.woocommerce-MyAccount-navigation {
	padding: 8px;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 11px 14px;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation li a:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--base);
	font-weight: 600;
}

.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--wp--preset--color--border);
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--wp--preset--color--sale);
}

.woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.woocommerce-MyAccount-content a:not(.button):not(.wp-element-button) {
	color: var(--wp--preset--color--accent-strong);
}

.woocommerce-MyAccount-content {
	font-size: var(--wp--preset--font-size--medium);
}

.woocommerce-MyAccount-content > p:first-child {
	color: var(--wp--preset--color--muted);
}

/* Account content headings stay modest; the page title is in the banner. */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.woocommerce-MyAccount-content legend {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
}

/* Addresses: two cards side by side, title and Add/Edit link on one row. */
.woocommerce-MyAccount-content .woocommerce-Addresses {
	margin-top: 1.25rem;
	gap: var(--wp--preset--spacing--40);
}

.woocommerce-MyAccount-content .woocommerce-Address {
	padding: 1.25rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
}

.woocommerce-MyAccount-content .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 0.75rem;
}

.woocommerce-MyAccount-content .woocommerce-Address-title::before,
.woocommerce-MyAccount-content .woocommerce-Address-title::after {
	display: none;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h2 {
	float: none;
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit {
	float: none;
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--diartech-input-border);
	border-radius: var(--wp--custom--radius--sm);
	background: #FFFFFF;
	color: var(--wp--preset--color--contrast) !important;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover {
	border-color: var(--wp--preset--color--dark);
}

.woocommerce-MyAccount-content address {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	line-height: 1.7;
}

/* Edit forms (address, account details): two fields per row where WooCommerce allows. */
.woocommerce-MyAccount-content form .form-row-first,
.woocommerce-MyAccount-content form .form-row-last {
	width: calc(50% - 8px);
}

.woocommerce-MyAccount-content fieldset {
	margin: 1.5rem 0 0;
	padding: 1.25rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
}

/* Empty states ("No order has been made yet", "No downloads available"). */
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 1rem 1.25rem;
	border: 1px dashed var(--diartech-input-border);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-MyAccount-content .woocommerce-message::before {
	display: none;
}

.woocommerce-MyAccount-content .woocommerce-info .button,
.woocommerce-MyAccount-content .woocommerce-message .button {
	order: 2;
	float: none;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .button {
	padding: 0.5rem 0.9rem;
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 781px) {
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
		grid-column: 1;
		position: static;
	}

	/* The menu becomes a row of chips that scrolls sideways. */
	.woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.woocommerce-MyAccount-navigation li a {
		white-space: nowrap;
	}

	.woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0;
		padding: 0;
		border: 0;
	}

	.woocommerce-MyAccount-content form .form-row-first,
	.woocommerce-MyAccount-content form .form-row-last {
		width: 100%;
	}
}

/* Tables: orders, addresses, product specifications. */
.woocommerce table.shop_table,
.wp-block-woocommerce-product-specifications table {
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--wp--custom--radius--md);
	background: #FFFFFF;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.wp-block-woocommerce-product-specifications th,
.wp-block-woocommerce-product-specifications td {
	padding: 14px 16px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	text-align: left;
	vertical-align: middle;
}

.woocommerce table.shop_table tr:first-child > *,
.wp-block-woocommerce-product-specifications tr:first-child > * {
	border-top: 0;
}

.woocommerce table.shop_table thead th {
	background: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.wp-block-woocommerce-product-specifications th {
	width: 45%;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.wp-block-woocommerce-product-specifications td {
	font-weight: 500;
}

/* ==========================================================================
   Cart and checkout blocks.
   ========================================================================== */
.wc-block-cart-items .wc-block-components-product-name,
.wc-block-components-order-summary .wc-block-components-product-name {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	text-decoration: none;
}

.wc-block-cart-items .wc-block-components-product-name:hover {
	color: var(--wp--preset--color--accent-strong);
}

.wc-block-cart-items th,
.wc-block-cart .wc-block-cart__totals-title {
	color: var(--wp--preset--color--muted) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
}

.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img {
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface);
}

.wc-block-components-sale-badge {
	border: 0 !important;
	border-radius: var(--wp--custom--radius--full) !important;
	background: #FDECEE !important;
	color: var(--wp--preset--color--sale) !important;
	font-weight: 700;
}

/* Totals and order summary sit in white cards. */
.wp-block-woocommerce-cart-totals-block,
.wp-block-woocommerce-checkout-order-summary-block {
	padding: 1.25rem 1.5rem !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--wp--custom--radius--md) !important;
	background: #FFFFFF;
	box-shadow: var(--wp--preset--shadow--card);
}

/* The summary's rows bring their own side padding. */
.wp-block-woocommerce-checkout-order-summary-block {
	padding: 0.5rem 0.5rem !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.wc-block-components-order-summary-item__quantity {
	border-color: #FFFFFF !important;
	background: var(--wp--preset--color--dark) !important;
	color: var(--wp--preset--color--base) !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
	min-height: 54px;
	border-radius: var(--wp--custom--radius--sm) !important;
	font-size: var(--wp--preset--font-size--medium);
}

/* Checkout section headings and the selected shipping/payment option. */
.wc-block-components-checkout-step__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large) !important;
	font-weight: 700 !important;
}

.wc-block-components-radio-control--highlight-checked::after {
	border-color: var(--diartech-input-border) !important;
	border-radius: var(--wp--custom--radius--sm) !important;
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	border-radius: var(--wp--custom--radius--sm);
	background: #F2F8FC;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--header) !important;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
	border-color: var(--wp--preset--color--dark) !important;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
	background: var(--wp--preset--color--dark) !important;
}

/* Legacy product grids (empty cart "New in store"). */
.wc-block-grid__product-title,
.wc-block-grid__product-link {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--medium) !important;
	font-weight: 600;
	text-decoration: none;
}

.wc-block-grid__product-image img {
	border-radius: var(--wp--custom--radius--md);
}

.wc-block-grid__product-onsale {
	border: 0 !important;
	border-radius: var(--wp--custom--radius--full) !important;
	background: var(--wp--preset--color--sale) !important;
	color: var(--wp--preset--color--base) !important;
	font-weight: 700;
}

.wc-block-grid__product-price {
	font-size: var(--wp--preset--font-size--large) !important;
	font-weight: 600;
}

/* Product page: category links read as labels, not underlined links. */
.single-product .wp-block-post-terms a {
	text-decoration: none;
}

.single-product .wp-block-post-terms a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-woocommerce-product-specifications :is(th, td) > :is(p, span) {
	margin: 0;
}

/* Contact and other cards: links without underline until hover. */
.is-style-card p a {
	text-decoration: none;
}

.is-style-card p a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 404 search sits on the gradient: white field, white button. */
.diartech-404-search .wp-block-search__input {
	min-height: 48px;
	border: 0;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--base);
}

.diartech-404-search .wp-block-search__inside-wrapper {
	gap: 8px;
	border: 0;
}

/* My account menu: tight list, icons per endpoint, no underline on the active item. */
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li + li {
	margin-top: 2px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--diartech-account-icon) center / contain no-repeat;
	mask: var(--diartech-account-icon) center / contain no-repeat;
	opacity: 0.85;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 6px;
	padding-top: 6px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--wp--preset--color--sale);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: #FDECEE;
}

.woocommerce-MyAccount-navigation-link--dashboard {
	--diartech-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--orders {
	--diartech-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--downloads {
	--diartech-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--edit-address {
	--diartech-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--payment-methods {
	--diartech-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--edit-account {
	--diartech-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c.8-3.7 3.8-6 7.5-6s6.7 2.3 7.5 6'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--customer-logout {
	--diartech-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E");
}

/* Address cards: title and button share one centred row. */
.woocommerce-MyAccount-content .woocommerce-Address-title > * {
	margin: 0 !important;
	padding: 0;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h2 {
	flex: 1 1 auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation > * {
	margin: 0;
}

.woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce-MyAccount-content .woocommerce-Address-title h2 {
	padding: 0 !important;
	text-indent: 0;
	float: none;
	width: auto;
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit {
	padding-block: 0 !important;
	line-height: 1 !important;
}

/* WooCommerce clearfix pseudo-elements would take a flex gap. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title::after {
	display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
	display: inline-flex !important;
	align-items: center;
}
