/* DataScan v2 — custom CSS design system (no theme.json dependency) */

:root {
	--ds-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ds-font-display: "Plus Jakarta Sans", var(--ds-font);

	--ds-navy: #1d3267;
	--ds-primary: #115b8a;
	--ds-accent: #f36735;
	--ds-hero: #082f47;
	--ds-text: #334155;
	--ds-muted: #64748b;
	--ds-border: #e2e8f0;
	--ds-surface: #f4f7fb;
	--ds-white: #ffffff;

	--ds-radius: 10px;
	--ds-radius-sm: 6px;
	--ds-shadow: 0 4px 24px rgba(8, 47, 71, 0.08);
	--ds-container: min(1200px, calc(100% - 2rem));
	--ds-header-h: 72px;
	--ds-section-y: clamp(3rem, 6vw, 5rem);

	--ds-space-xs: 0.5rem;
	--ds-space-sm: 0.75rem;
	--ds-space-md: 1rem;
	--ds-space-lg: 1.5rem;
	--ds-space-xl: 2rem;
	--ds-space-2xl: 3rem;

	--wp--preset--color--navy: var(--ds-navy);
	--wp--preset--color--primary: var(--ds-primary);
	--wp--preset--color--accent: var(--ds-accent);
	--wp--preset--color--text: var(--ds-text);
	--wp--preset--color--border: var(--ds-border);
	--wp--preset--color--surface: var(--ds-surface);
	--wp--preset--color--white: var(--ds-white);
	--wp--preset--spacing--lg: var(--ds-space-lg);
	--wp--preset--spacing--xl: var(--ds-space-xl);
	--wp--preset--spacing--2-xl: var(--ds-space-2xl);
	--wp--preset--spacing--3-xl: 4rem;
}

/* Legacy block color classes without theme.json */
.has-accent-background-color,
.has-accent-background-color .wp-block-button__link {
	background-color: var(--ds-accent) !important;
	color: #fff !important;
}

.has-primary-background-color {
	background-color: var(--ds-primary) !important;
	color: #fff !important;
}

.has-white-background-color {
	background-color: var(--ds-white) !important;
}

.has-white-color {
	color: #fff !important;
}

.has-sm-font-size { font-size: 0.875rem; }
.has-md-font-size { font-size: 1rem; }
.has-xs-font-size { font-size: 0.75rem; }
.has-3-xl-font-size { font-size: clamp(1.85rem, 3.5vw, 2.35rem); }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	font-family: var(--ds-font);
	color: var(--ds-text);
	line-height: 1.6;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

svg {
	max-width: 100%;
}

.wc-block-mini-cart__icon,
.wp-block-social-links svg,
.ds-header svg,
.ds-footer svg {
	width: 1.25rem;
	height: 1.25rem;
	max-width: 24px;
	max-height: 24px;
	flex-shrink: 0;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.wp-site-blocks {
	overflow-x: hidden;
}

.ds-container {
	width: var(--ds-container);
	margin-inline: auto;
}

/* ── Top bar ─────────────────────────────────────────────── */
.ds-topbar {
	background: var(--ds-hero);
	color: #fff;
	font-size: 0.8125rem;
	padding-block: 0.55rem;
}

.ds-topbar a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
}

.ds-topbar a:hover {
	color: var(--ds-accent);
}

.ds-topbar-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.75rem 1rem;
}

.ds-topbar-contact {
	justify-self: start;
	margin: 0;
}

.ds-topbar-trust {
	justify-self: center;
	text-align: center;
	margin: 0;
	opacity: 0.9;
}

.ds-topbar-account {
	justify-self: end;
	margin: 0;
}

.ds-topbar-account a {
	font-weight: 600;
}

/* ── Header ──────────────────────────────────────────────── */
.ds-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--ds-border);
	box-shadow: 0 1px 0 rgba(8, 47, 71, 0.04);
	transition: box-shadow 0.2s ease;
	padding-block: 0.85rem;
	overflow: visible;
}

.ds-header.is-scrolled {
	box-shadow: 0 8px 24px rgba(8, 47, 71, 0.08);
}

.ds-header-inner {
	display: grid !important;
	grid-template-columns: minmax(130px, 170px) minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem 1.25rem;
}

.ds-nav-wrap {
	position: relative;
	justify-self: center;
	width: 100%;
	max-width: 760px;
	min-width: 0;
	overflow: visible;
}

.ds-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius-sm);
	background: #fff;
	cursor: pointer;
}

.ds-nav-toggle-bar {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ds-navy);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ds-static-nav {
	width: 100%;
}

.ds-nav-list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ds-nav-item {
	position: relative;
	margin: 0;
}

.ds-nav-link,
.ds-nav-sublink {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	text-decoration: none;
}

.ds-nav-link {
	padding: 0.5rem 0.7rem;
	border-radius: var(--ds-radius-sm);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ds-navy);
	white-space: nowrap;
}

.ds-nav-chevron {
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	opacity: 0.55;
	transition: transform 0.2s ease;
}

.ds-nav-item.has-children:hover > .ds-nav-link .ds-nav-chevron,
.ds-nav-item.has-children:focus-within > .ds-nav-link .ds-nav-chevron,
.ds-nav-item.is-expanded > .ds-nav-link .ds-nav-chevron {
	transform: rotate(225deg) translateY(1px);
	opacity: 0.85;
}

.ds-nav-subitem.has-children > .ds-nav-sublink .ds-nav-chevron {
	transform: rotate(-45deg) translateX(-1px);
}

.ds-nav-subitem.has-children:hover > .ds-nav-sublink .ds-nav-chevron,
.ds-nav-subitem.has-children:focus-within > .ds-nav-sublink .ds-nav-chevron,
.ds-nav-subitem.is-expanded > .ds-nav-sublink .ds-nav-chevron {
	transform: rotate(45deg) translateX(1px);
}

.ds-nav-link:hover,
.ds-nav-item:focus-within > .ds-nav-link,
.ds-nav-item.is-expanded > .ds-nav-link {
	color: var(--ds-accent);
	background: rgba(243, 103, 53, 0.08);
}

.ds-nav-submenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 210;
	min-width: 240px;
	overflow: visible;
	margin: 0;
	padding: 0.45rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius);
	box-shadow: var(--ds-shadow-lg);
}

/* Only scroll leaf-level lists (no nested flyouts) so long category/brand lists don't grow unbounded */
.ds-nav-submenu:not(:has(.has-children)) {
	max-height: min(70vh, 420px);
	overflow-y: auto;
}

/* Invisible hover bridge — prevents submenu closing while moving the pointer down */
.ds-nav-submenu::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 12px;
}

.ds-nav-submenu--nested {
	top: -0.45rem;
	left: calc(100% - 4px);
	min-width: 220px;
}

.ds-nav-submenu--nested::before {
	top: 0;
	left: -12px;
	width: 12px;
	height: 100%;
	right: auto;
}

.ds-nav-item.has-children:hover > .ds-nav-submenu,
.ds-nav-item.has-children:focus-within > .ds-nav-submenu,
.ds-nav-item.is-open > .ds-nav-submenu {
	display: block;
}

.ds-nav-subitem.has-children:hover > .ds-nav-submenu,
.ds-nav-subitem.has-children:focus-within > .ds-nav-submenu,
.ds-nav-subitem.is-open > .ds-nav-submenu {
	display: block;
}

.ds-nav-subitem {
	position: relative;
	margin: 0;
}

.ds-nav-sublink {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.55rem 0.85rem;
	border-radius: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ds-text);
}

.ds-nav-sublink:hover,
.ds-nav-subitem:focus-within > .ds-nav-sublink,
.ds-nav-subitem.is-expanded > .ds-nav-sublink {
	background: var(--ds-surface);
	color: var(--ds-primary);
}

.ds-nav-mobile-search {
	display: none;
}

.ds-header-brand .custom-logo,
.ds-header-brand .custom-logo-link img {
	display: block;
	max-height: 46px;
	width: auto;
}

.ds-header-actions,
.ds-header-commerce {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.ds-header-commerce {
	gap: 0.65rem;
}

.ds-header-search-form {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	flex: 1 1 auto;
}

.ds-search-suggest-wrap {
	position: relative;
	min-width: 0;
	flex: 1 1 auto;
}

.ds-search-suggest-wrap--header {
	width: min(280px, 32vw);
}

.ds-search-suggest {
	position: absolute;
	top: calc(100% + 0.4rem);
	left: 0;
	right: 0;
	z-index: 400;
	max-height: min(24rem, 70vh);
	overflow: auto;
	border: 1px solid var(--ds-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 14px 40px rgba(8, 47, 71, 0.14);
}

.ds-search-suggest__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0.85rem;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid #eef2f6;
	transition: background 0.15s ease;
}

.ds-search-suggest__item:last-of-type {
	border-bottom: 0;
}

.ds-search-suggest__item:hover,
.ds-search-suggest__item.is-active {
	background: #f4f8fb;
}

.ds-search-suggest__thumb {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: contain;
	background: #f8fafc;
	border: 1px solid #eef2f6;
}

.ds-search-suggest__thumb--empty {
	display: block;
}

.ds-search-suggest__copy {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.ds-search-suggest__brand {
	color: #64748b;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ds-search-suggest__title {
	color: var(--ds-navy);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ds-search-suggest__price {
	color: var(--ds-primary);
	font-size: 0.75rem;
	font-weight: 700;
}

.ds-search-suggest__all {
	display: block;
	padding: 0.75rem 0.85rem;
	border-top: 1px solid #eef2f6;
	background: #f8fafc;
	color: var(--ds-primary);
	font-size: 0.8125rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.ds-search-suggest__all:hover {
	background: #eef6fb;
}

.ds-search-suggest__empty,
.ds-search-suggest__loading {
	padding: 0.85rem;
	color: #64748b;
	font-size: 0.8125rem;
	text-align: center;
}

.ds-header-search-form input[type="search"] {
	width: 100%;
	min-width: 0;
	padding: 0.55rem 2.5rem 0.55rem 0.85rem;
	border: 1px solid var(--ds-border);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 0.875rem;
	color: var(--ds-navy);
}

.ds-header-search-form input[type="search"]:focus {
	outline: 2px solid rgba(17, 91, 138, 0.25);
	border-color: var(--ds-primary);
}

.ds-header-search-submit {
	position: absolute;
	right: 0.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ds-primary);
	color: #fff;
	cursor: pointer;
}

.ds-header-icons {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

.ds-header-icon,
.ds-header-account-toggle {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.1rem;
	min-width: 44px;
	min-height: 44px;
	padding: 0.35rem 0.45rem;
	border: 0;
	border-radius: var(--ds-radius-sm);
	background: transparent;
	color: var(--ds-navy);
	text-decoration: none;
	cursor: pointer;
}

.ds-header-icon:hover,
.ds-header-account-toggle:hover,
.ds-header-account.is-open .ds-header-account-toggle {
	background: rgba(17, 91, 138, 0.08);
	color: var(--ds-primary);
}

.ds-header-icon-label {
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ds-header-badge {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ds-accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}

.ds-header-badge.is-empty {
	display: none;
}

.ds-header-account {
	position: relative;
}

.ds-header-account-menu {
	position: absolute;
	top: calc(100% + 0.35rem);
	right: 0;
	z-index: 220;
	min-width: 190px;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius);
	box-shadow: var(--ds-shadow-lg);
}

.ds-header-account-menu[hidden] {
	display: none !important;
}

.ds-header-account-menu a {
	display: block;
	padding: 0.65rem 1rem;
	color: var(--ds-navy);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.ds-header-account-menu a:hover {
	background: rgba(243, 103, 53, 0.08);
	color: var(--ds-accent);
}

.ds-header-cart-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ds-header-cart-wrap .wc-block-mini-cart__button {
	min-width: 44px;
	min-height: 44px;
	padding: 0.35rem 0.45rem;
	border-radius: var(--ds-radius-sm);
}

.ds-header-cart-wrap .wc-block-mini-cart__badge:not(:empty) {
	background: var(--ds-accent) !important;
}

.ds-header-quote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.55rem 1rem;
	margin-left: 0.25rem;
	border-radius: var(--ds-radius-sm);
	background: var(--ds-accent);
	color: #fff !important;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}

.ds-header-quote:hover {
	background: #e05528;
}

.ds-wishlist-page {
	padding-block: 2rem;
}

.ds-wishlist-page h1 {
	margin-top: 0;
}

.ds-wishlist-count {
	color: #64748b;
}

.ds-wishlist-empty {
	padding-block: 2rem;
}

.ds-header-actions .wp-block-search__button,
.wc-block-mini-cart__button {
	min-width: 40px;
	min-height: 40px;
	border-radius: 999px;
}

.ds-header-actions .wp-block-search__button {
	background: var(--ds-primary);
	border: 0;
	color: #fff;
}

.ds-header-cta .wp-block-button__link,
.ds-btn-accent .wp-block-button__link {
	background: var(--ds-accent) !important;
	color: #fff !important;
	border: 0;
	border-radius: var(--ds-radius-sm);
	padding: 0.55rem 1.1rem !important;
	font-size: 0.875rem !important;
	font-weight: 700;
	min-height: 40px !important;
	white-space: nowrap;
}

.ds-header-cta .wp-block-button__link:hover,
.ds-btn-accent .wp-block-button__link:hover {
	background: #e05528 !important;
}

/* ── Hero ────────────────────────────────────────────────── */
.ds-banner-hero,
.ds-hero {
	background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%) !important;
}

.ds-hero-title {
	max-width: 14ch;
	line-height: 1.06;
	margin-bottom: 0.75rem;
}

.ds-hero-lead {
	max-width: 42ch;
	color: var(--wp--preset--color--text);
}

.ds-hero-kicker {
	margin-bottom: 0.85rem;
}

.ds-hero-visual {
	box-shadow: var(--ds-shadow);
	border: 1px solid var(--wp--preset--color--border);
	overflow: hidden;
}

.ds-hero-visual .wp-block-cover__image-background {
	object-fit: cover;
}

.ds-hero-actions .wp-block-button__link {
	min-width: 148px;
}

/* Partner banner */
.ds-banner-partners {
	background: #f8fafc !important;
}

.ds-partner-logo--square img {
	max-height: 28px !important;
}

/* Stats banner */
.ds-banner-stats {
	background: linear-gradient(135deg, #082f47 0%, #1d3267 55%, #115b8a 100%) !important;
}

/* CTA banner */
.ds-banner-cta {
	text-align: center;
}

.ds-banner-cta-actions .wp-block-button__link {
	min-width: 170px;
}

.ds-banner-cta .is-style-outline .wp-block-button__link {
	border-color: #fff !important;
	color: #fff !important;
}

.ds-banner-cta .is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
}

.ds-hero-columns {
	align-items: center;
}

.ds-hero .wp-block-buttons {
	flex-wrap: wrap;
}

/* Section headings */
.ds-section-head {
	margin-bottom: 2rem;
	align-items: center;
}

.ds-section-head h2 {
	margin: 0;
}

.ds-section-link {
	margin: 0;
}

.ds-section-link a {
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--primary);
}

.ds-section-link a:hover {
	color: var(--wp--preset--color--accent);
}

/* Partner logos */
.ds-partner-logos {
	gap: clamp(1rem, 3vw, 2.5rem);
}

.ds-partner-logo {
	margin: 0;
	opacity: 0.65;
	filter: grayscale(100%);
	transition: opacity 0.2s ease, filter 0.2s ease;
}

.ds-partner-logo:hover {
	opacity: 1;
	filter: grayscale(0%);
}

.ds-partner-logo img {
	display: block;
	max-height: 36px;
	width: auto;
	object-fit: contain;
}

/* Header CTA — see header section */

/* Mobile navigation */
@media (max-width: 1024px) {
	.ds-header {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.ds-header-inner {
		display: grid !important;
		grid-template-columns: 1fr auto auto;
		grid-template-areas: "brand nav commerce";
		align-items: center;
		gap: 0.5rem 0.75rem;
	}

	.ds-header-brand {
		grid-area: brand;
		min-width: 0;
	}

	.ds-nav-wrap {
		grid-area: nav;
		justify-self: end;
		width: auto;
		max-width: none;
		margin-top: 0;
		padding-top: 0;
		border-top: none;
		display: flex;
		align-items: center;
	}

	.ds-header-commerce,
	.ds-header-actions {
		grid-area: commerce;
	}

	.ds-header-search-form,
	.ds-header-icon-label,
	.ds-header-quote {
		display: none;
	}

	.ds-nav-toggle {
		display: inline-flex;
	}

	.ds-nav-overlay {
		background: rgba(8, 47, 71, 0.45);
		z-index: 998;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, visibility 0.25s ease;
		width: 0;
		height: 0;
		overflow: hidden;
	}

	.ds-nav-overlay.is-visible {
		position: fixed;
		inset: 0;
		width: auto;
		height: auto;
		opacity: 1;
		visibility: visible;
	}

	.ds-primary-nav:not(.is-open) {
		visibility: hidden !important;
		pointer-events: none !important;
	}

	.ds-primary-nav.is-open {
		visibility: visible !important;
		pointer-events: auto !important;
	}

	.ds-primary-nav {
		display: none !important;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 0;
		background: #fff;
		overflow: hidden;
		transform: translate3d(100%, 0, 0);
		transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 1000;
	}

	.ds-primary-nav.is-open {
		display: flex !important;
		flex-direction: column;
		transform: translate3d(0, 0, 0);
		min-height: 100dvh;
		min-height: 100vh;
	}

	.ds-mobile-nav-header {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		flex-shrink: 0;
		padding: 0.85rem 1rem;
		border-bottom: 1px solid var(--ds-border);
		background: #fff;
		position: sticky;
		top: 0;
		z-index: 2;
	}

	.ds-mobile-nav-shell {
		display: flex;
		flex-direction: column;
		flex: 1;
		min-height: 0;
		width: 100%;
	}

	.ds-mobile-nav-title {
		flex: 1;
		font-size: 1.05rem;
		font-weight: 700;
		color: var(--ds-navy);
		text-align: center;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.ds-mobile-nav-back,
	.ds-mobile-nav-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid var(--ds-border);
		border-radius: var(--ds-radius-sm);
		background: #fff;
		color: var(--ds-navy);
		cursor: pointer;
		flex-shrink: 0;
		-webkit-tap-highlight-color: transparent;
	}

	.ds-mobile-nav-icon {
		display: block;
		font-size: 1.75rem;
		line-height: 1;
		font-weight: 400;
		color: var(--ds-navy);
		pointer-events: none;
	}

	.ds-mobile-nav-icon--close {
		font-size: 2rem;
		font-weight: 300;
		margin-top: -2px;
	}

	.ds-mobile-nav-back[hidden] {
		display: none;
	}

	.ds-mobile-nav-back:not([hidden]) + .ds-mobile-nav-title {
		text-align: left;
	}

	.ds-mobile-nav-body {
		display: flex;
		flex-direction: column;
		flex: 1;
		min-height: 0;
	}

	.ds-nav-mobile-search {
		display: flex;
		gap: 0.5rem;
		flex-shrink: 0;
		padding: 0.85rem 1rem;
		border-bottom: 1px solid var(--ds-border);
		background: var(--ds-surface, #f8faff);
	}

	.ds-search-suggest-wrap--mobile {
		position: relative;
		flex: 0 0 auto;
		flex-grow: 0;
		border-bottom: 1px solid var(--ds-border);
		background: var(--ds-surface, #f8faff);
	}

	.ds-search-suggest-wrap--mobile .ds-nav-mobile-search {
		border-bottom: 0;
	}

	.ds-search-suggest-wrap--mobile .ds-search-suggest {
		position: static;
		max-height: 14rem;
		margin: 0 1rem 0.85rem;
		box-shadow: none;
		border-radius: 10px;
	}

	.ds-nav-mobile-search input[type="search"] {
		flex: 1;
		min-width: 0;
		padding: 0.7rem 0.85rem;
		border: 1px solid var(--ds-border);
		border-radius: var(--ds-radius-sm);
		font: inherit;
		background: #fff;
	}

	.ds-nav-mobile-search button {
		padding: 0.7rem 1rem;
		border: 0;
		border-radius: var(--ds-radius-sm);
		background: var(--ds-primary);
		color: #fff;
		font-weight: 700;
		cursor: pointer;
		white-space: nowrap;
	}

	.ds-mobile-nav-scroll {
		flex: 1;
		min-height: 0;
		overflow-y: auto;
		overflow-x: hidden;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.ds-mobile-nav-panels {
		position: relative;
	}

	.ds-mobile-nav-panel {
		display: none;
	}

	.ds-mobile-nav-panel.is-active {
		display: block;
	}

	.ds-mobile-nav-view-all {
		display: block;
		padding: 0.75rem 1.1rem;
		font-size: 0.875rem;
		font-weight: 700;
		color: var(--ds-primary);
		text-decoration: none;
		border-bottom: 1px solid rgba(13, 27, 75, 0.06);
		background: rgba(17, 91, 138, 0.04);
	}

	.ds-nav-list,
	.ds-mobile-nav-panel-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		list-style: none;
		margin: 0;
		padding: 0.5rem 0;
	}

	.ds-nav-item,
	.ds-mobile-nav-panel-item {
		margin: 0;
		border-bottom: 1px solid rgba(13, 27, 75, 0.06);
	}

	.ds-nav-link,
	.ds-nav-sublink,
	.ds-mobile-nav-panel-btn,
	.ds-mobile-nav-panel-link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 1rem 1.1rem;
		font-size: 1rem;
		font-weight: 600;
		color: var(--ds-navy);
		text-decoration: none;
		background: transparent;
		border: 0;
		text-align: left;
		cursor: pointer;
		font-family: inherit;
		line-height: 1.35;
	}

	.ds-nav-link:active,
	.ds-nav-sublink:active,
	.ds-mobile-nav-panel-btn:active,
	.ds-mobile-nav-panel-link:active {
		background: rgba(17, 91, 138, 0.06);
	}

	.ds-nav-link .ds-nav-chevron,
	.ds-nav-sublink .ds-nav-chevron,
	.ds-mobile-nav-panel-btn .ds-nav-chevron {
		transform: rotate(-45deg);
		flex-shrink: 0;
		margin-left: 0.75rem;
	}

	/* Hide nested lists — drill-down panels instead */
	.ds-nav-submenu {
		display: none !important;
	}

	.ds-nav-item.has-children:hover > .ds-nav-submenu,
	.ds-nav-subitem.has-children:hover > .ds-nav-submenu,
	.ds-nav-item.is-expanded > .ds-nav-submenu,
	.ds-nav-subitem.is-expanded > .ds-nav-submenu {
		display: none !important;
	}

	.ds-topbar-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.ds-topbar-contact,
	.ds-topbar-account {
		justify-self: center;
	}

	/* Hamburger → X when open */
	body.ds-nav-open .ds-nav-toggle .ds-nav-toggle-bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	body.ds-nav-open .ds-nav-toggle .ds-nav-toggle-bar:nth-child(2) {
		opacity: 0;
	}

	body.ds-nav-open .ds-nav-toggle .ds-nav-toggle-bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

@media (min-width: 1025px) {
	.ds-header,
	.ds-header-inner,
	.ds-nav-wrap,
	.ds-primary-nav,
	.ds-nav-list,
	.ds-nav-item {
		overflow: visible;
	}

	.ds-nav-overlay,
	.ds-nav-toggle,
	.ds-nav-mobile-search,
	.ds-mobile-nav-header {
		display: none !important;
	}

	.ds-mobile-nav-shell,
	.ds-mobile-nav-body,
	.ds-mobile-nav-scroll,
	.ds-mobile-nav-panels,
	.ds-mobile-nav-panel--root {
		display: contents;
	}

	.ds-primary-nav {
		display: block !important;
		position: static !important;
		visibility: visible !important;
		pointer-events: auto !important;
		transform: none !important;
		inset: auto !important;
		width: 100%;
		min-height: 0;
		background: transparent;
		overflow: visible;
		z-index: auto;
	}

	.ds-nav-list {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
	}

	.ds-nav-link {
		display: inline-flex;
		width: auto;
		padding: 0.5rem 0.65rem;
		font-size: 0.875rem;
	}

	.ds-nav-submenu {
		display: none;
		position: absolute;
	}

	.ds-nav-item.has-children:hover > .ds-nav-submenu,
	.ds-nav-item.has-children:focus-within > .ds-nav-submenu,
	.ds-nav-item.is-open > .ds-nav-submenu,
	.ds-nav-subitem.has-children:hover > .ds-nav-submenu,
	.ds-nav-subitem.has-children:focus-within > .ds-nav-submenu,
	.ds-nav-subitem.is-open > .ds-nav-submenu {
		display: block !important;
	}

	.ds-nav-sublink {
		display: flex;
		width: 100%;
		padding: 0.55rem 0.85rem;
		font-size: 0.875rem;
	}

	.ds-nav-submenu--nested {
		left: calc(100% - 4px);
		right: auto;
	}
}

@media (min-width: 1200px) {
	.ds-nav-link {
		padding: 0.5rem 0.75rem;
		font-size: 0.9rem;
	}
}

/* Stats bar */
.ds-stats-bar .wp-block-column {
	text-align: center;
}

.ds-home-products .ds-product-card {
	height: 100%;
}

body.ds-home-page-active [data-home-products] .ds-home-products .ds-product-card {
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

body.ds-home-page-active [data-home-products] .ds-home-products .ds-product-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(8, 47, 71, 0.1);
}

/* ── Sections ────────────────────────────────────────────── */
.alignfull:not(.ds-topbar):not(.ds-header):not(.ds-footer):not(.ds-contact-page-main):not(.ds-contact-hero-wrap):not(.ds-contact-main):not(.ds-contact-trust-wrap):not(.ds-blog-hero):not(.ds-blank-landing) {
	padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.ds-trust-bar .wp-block-column {
	text-align: center;
}

.ds-card-grid .wp-block-column,
.ds-industry-grid .wp-block-column {
	min-width: 0;
}

/* Cards */
.ds-card,
.ds-industry-card,
.ds-blog-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}

.ds-card a,
.ds-industry-card a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: none;
}

.ds-card a:hover,
.ds-industry-card a:hover {
	color: var(--wp--preset--color--accent);
}

.ds-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ds-radius);
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	box-shadow: var(--ds-shadow);
}

.ds-card h3 {
	margin-top: 0;
}

.ds-card:hover,
.ds-industry-card:hover,
.ds-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 40px rgba(17, 91, 138, 0.12);
}

/* ── Sections ────────────────────────────────────────────── */

.ds-industry-card {
	background: #fff;
	border-radius: var(--ds-radius);
	padding: 1.1rem 0.85rem;
	text-align: center;
	border: 1px solid var(--wp--preset--color--border);
}

.ds-industry-card h4 {
	margin: 0 0 0.35rem;
	font-size: 1rem;
}

/* Blog */
.ds-blog-hero {
	padding-block: clamp(3rem, 6vw, 4.5rem);
	background: linear-gradient(135deg, #082f47 0%, #115b8a 50%, #1d3267 100%);
	color: #fff;
}

.ds-blog-hero h1,
.ds-blog-hero p,
.ds-blog-hero .wp-block-query-title,
.ds-blog-hero .ds-hero-kicker {
	color: #fff;
}

.ds-blog-main {
	background: var(--wp--preset--color--surface);
}

.ds-blog-section {
	margin-top: 0;
}

.ds-blog-grid .wp-block-post-template,
.ds-blog-archive .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.ds-card-grid,
.ds-industry-grid,
.ds-stats-bar {
	display: grid !important;
	width: 100%;
}

.ds-card-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.ds-card-grid > .wp-block-column,
.ds-industry-grid > .wp-block-column,
.ds-stats-bar > .wp-block-column {
	width: 100% !important;
	flex-basis: auto !important;
	min-width: 0;
}

.ds-industry-grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1rem;
}

.ds-stats-bar {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

.ds-blog-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: var(--ds-shadow);
}

.ds-blog-category {
	margin-bottom: 0.35rem;
}

.ds-blog-category a {
	text-decoration: none;
	font-weight: 700;
}

.ds-blog-date {
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.ds-blog-card .wp-block-post-featured-image {
	margin: 0;
}

.ds-blog-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 16 / 9;
}

.ds-blog-card .wp-block-post-title {
	margin-top: 0;
}

.ds-blog-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--navy);
	line-height: 1.35;
}

.ds-blog-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

.ds-blog-card .wp-block-post-excerpt__more-link {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.ds-single-post .ds-entry-content {
	font-size: clamp(1rem, 1.2vw, 1.0625rem);
	line-height: 1.75;
}

.ds-single-post .ds-entry-content h2,
.ds-single-post .ds-entry-content h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.ds-single-post .ds-entry-content p,
.ds-single-post .ds-entry-content ul,
.ds-single-post .ds-entry-content ol {
	margin-bottom: 1.25rem;
}

.ds-single-post .ds-entry-content img {
	border-radius: 12px;
}

.ds-single-post .wp-block-post-featured-image img {
	width: 100%;
	object-fit: cover;
}

/* Footer */
.ds-footer {
	background: linear-gradient(180deg, #082f47 0%, #061f30 100%) !important;
	color: #fff;
	overflow: visible;
}

.ds-footer-grid {
	display: grid !important;
	grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
	align-items: start;
	width: 100%;
}

.ds-footer-grid > .wp-block-column {
	flex-basis: auto !important;
	width: 100% !important;
	min-width: 0;
}

.ds-footer-logo .custom-logo,
.ds-footer-logo img {
	filter: brightness(0) invert(1);
	max-height: 44px;
	width: auto;
}

.ds-footer-heading {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.78rem !important;
	margin-bottom: 0.85rem;
	opacity: 0.95;
}

.ds-footer-about,
.ds-footer-contact {
	color: rgba(255, 255, 255, 0.92) !important;
	opacity: 1 !important;
	line-height: 1.65;
}

.ds-footer a {
	color: rgba(255, 255, 255, 0.95) !important;
	opacity: 1;
	text-decoration: none;
}

.ds-footer a:hover {
	color: var(--wp--preset--color--accent);
	opacity: 1;
}

.ds-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ds-footer-links li {
	margin-bottom: 0.5rem;
}

.ds-footer-social .wp-block-social-link {
	width: 38px;
	height: 38px;
}

.ds-footer-social .wp-block-social-link-anchor {
	opacity: 1;
}

.ds-footer-social .wp-block-social-link-anchor svg {
	width: 20px !important;
	height: 20px !important;
}

.ds-footer-social .wp-block-social-link-anchor:hover {
	opacity: 1;
	color: var(--wp--preset--color--accent) !important;
}

.ds-footer-cta .wp-block-button__link {
	font-size: 0.875rem !important;
	padding: 0.75rem 1.15rem !important;
}

.ds-footer-cta {
	overflow: visible;
	margin-top: 0.25rem;
}

.ds-footer-bottom {
	gap: 0.75rem 1.5rem;
}

.ds-footer-copy,
.ds-footer-legal {
	margin: 0;
	color: rgba(255, 255, 255, 0.82) !important;
	opacity: 1 !important;
}

.ds-footer .wp-block-button__link {
	width: 100%;
	text-align: center;
}

/* Steps */
.ds-steps .wp-block-column {
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	padding-left: 1.25rem;
}

.ds-steps .wp-block-column:first-child {
	border-left: 0;
	padding-left: 0;
}

/* Buttons touch targets */
.wp-block-button__link,
.wp-element-button {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Pagination */
.wp-block-query-pagination {
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border);
	text-decoration: none;
	min-width: 44px;
	text-align: center;
}

.wp-block-query-pagination .current {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-color: var(--wp--preset--color--primary);
}

/* Product grids — homepage featured products only (non-carousel pages) */
body:not(.ds-home-page-active) .ds-home-products {
	width: 100%;
	max-width: 100%;
}

body:not(.ds-home-page-active) .ds-home-products .wc-block-product-template,
body:not(.ds-home-page-active) .ds-home-products ul.wc-block-product-template,
body:not(.ds-home-page-active) ul.wc-block-product-template.is-flex-container,
body:not(.ds-home-page-active) .wc-block-product-template.is-flex-container {
	display: grid !important;
	flex-direction: unset !important;
	flex-wrap: unset !important;
	width: 100% !important;
	max-width: 100% !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: clamp(1rem, 2vw, 1.5rem) !important;
}

body:not(.ds-home-page-active) .ds-home-products .wc-block-product-template > li,
body:not(.ds-home-page-active) ul.wc-block-product-template.is-flex-container > li {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: none !important;
	margin: 0 !important;
}

.ds-blog-grid .wp-block-post-template,
.ds-blog-archive .wp-block-post-template,
.wp-block-post-template.is-flex-container.columns-3 {
	display: grid !important;
	flex-direction: unset !important;
	flex-wrap: unset !important;
	width: 100% !important;
	max-width: 100% !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: clamp(1rem, 2vw, 1.5rem) !important;
}

.ds-blog-grid .wp-block-post-template > li,
.ds-blog-archive .wp-block-post-template > li,
.wp-block-post-template.is-flex-container > li {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: none !important;
	margin: 0 !important;
}

.ds-home-products .ds-product-card,
.ds-blog-card {
	width: 100%;
	min-width: 0;
}

.wc-block-product-template,
ul.wc-block-product-template {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wc-block-product-template > li,
.wc-block-product-template > .wp-block-post {
	list-style: none;
	margin: 0;
	min-width: 0;
}

/* Page content */
.ds-entry-content,
.ds-product-description {
	word-break: break-word;
}

/* ── Tablet (782–1024) ───────────────────────────────────── */
@media (max-width: 1024px) {
	.ds-primary-nav {
		max-width: none;
	}

	.ds-primary-nav .wp-block-navigation-item__content {
		padding: 0.45rem 0.5rem;
		font-size: 0.875rem;
	}

	.ds-footer-grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}

	.ds-footer-brand-col {
		grid-column: 1 / -1;
	}

	.wc-block-product-template,
	ul.wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ds-industry-grid {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.85rem;
	}

	.ds-industry-grid > .wp-block-column {
		flex-basis: auto !important;
		width: auto !important;
	}

	.ds-card-grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.ds-card-grid > .wp-block-column {
		flex-basis: auto !important;
	}
}

/* ── Mobile landscape / small tablet (≤781) ─────────────── */
@media (max-width: 781px) {
	.ds-topbar-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.ds-topbar-contact,
	.ds-topbar-trust,
	.ds-topbar-account {
		justify-self: center;
	}

	.ds-topbar-trust {
		display: none;
	}

	.ds-hero-columns {
		flex-direction: column;
	}

	.ds-hero-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.ds-hero h1 {
		font-size: clamp(1.85rem, 7vw, 2.5rem) !important;
		max-width: none;
	}

	.ds-stats-bar {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.ds-stats-bar > .wp-block-column {
		flex-basis: auto !important;
	}

	.ds-home-products .wc-block-product-template,
	.ds-home-products ul.wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.ds-industry-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wc-block-product-template,
	ul.wc-block-product-template,
	.ds-blog-grid .wp-block-post-template,
	.ds-blog-archive .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.ds-steps .wp-block-column {
		border-left: 0;
		padding-left: 0;
		margin-bottom: 1.25rem;
	}

	.ds-footer .wp-block-columns,
	.ds-footer-grid {
		display: grid !important;
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.ds-footer .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ── Mobile (≤480) ──────────────────────────────────────── */
@media (max-width: 480px) {
	.ds-topbar-contact {
		font-size: 0.78rem !important;
	}

	.ds-header-brand .custom-logo,
	.ds-header-brand .custom-logo-link img {
		max-height: 40px;
	}

	.ds-hero .wp-block-buttons .wp-block-button {
		width: 100%;
	}

	.ds-hero .wp-block-button__link {
		width: 100%;
	}

	.ds-trust-bar {
		grid-template-columns: 1fr;
	}

	.ds-stats-bar {
		grid-template-columns: 1fr !important;
	}

	.ds-home-products .wc-block-product-template,
	.ds-home-products ul.wc-block-product-template {
		grid-template-columns: 1fr !important;
	}

	.ds-card-grid,
	.ds-industry-grid,
	.wc-block-product-template,
	ul.wc-block-product-template,
	.ds-blog-grid .wp-block-post-template,
	.ds-blog-archive .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}

	.ds-single-post .wp-block-columns {
		flex-direction: column;
	}
}

.ds-nav-open {
	overflow: hidden;
}

html.ds-nav-open,
body.ds-nav-open {
	overflow: hidden;
	touch-action: none;
}

/* Page hero (inner pages) */
.ds-page-hero,
.ds-blog-hero {
	background: linear-gradient(135deg, #0a3d5c 0%, #115b8a 45%, #1d3267 100%);
}

.ds-page-hero h1,
.ds-page-hero p,
.ds-page-hero .wp-block-button__link {
	color: #fff;
}

/* Native contact form */
.ds-contact-form-wrap {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ds-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.ds-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.ds-contact-form label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.ds-contact-form input,
.ds-contact-form select,
.ds-contact-form textarea {
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	font: inherit;
	background: #fff;
}

.ds-form-full {
	display: block;
	margin-bottom: 1rem;
}

.ds-form-submit {
	background: var(--wp--preset--color--accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 1.75rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
}

.ds-form-submit:hover {
	background: var(--wp--preset--color--primary);
}

.ds-form-notice {
	padding: 0.85rem 1rem;
	border-radius: 10px;
	margin-bottom: 1rem;
}

.ds-form-notice--success {
	background: #ecfdf5;
	color: #065f46;
}

.ds-form-notice--error {
	background: #fef2f2;
	color: #991b1b;
}

@media (max-width: 781px) {
	.ds-form-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Critical layout fixes (product/blog grid collapse) ──── */
.ds-home-products.wp-block-woocommerce-product-collection,
.ds-blog-section .wp-block-query,
.ds-blog-main .wp-block-query {
	width: 100% !important;
	max-width: 100% !important;
}

ul.wc-block-product-template.is-flex-container.columns-4,
.ds-home-products ul.wc-block-product-template,
.ds-home-products .wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

ul.wp-block-post-template.is-flex-container.columns-3,
.ds-blog-grid ul.wp-block-post-template,
.ds-blog-archive ul.wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

[class*="wp-container-core-post-template"],
[class*="wp-container-core-product-template"] {
	display: grid !important;
}

ul.is-flex-container > li {
	width: 100% !important;
	max-width: none !important;
}

/* Brand landing pages */
.ds-brand-page,
.ds-brand-page-active .ds-brand-content {
	padding: 0 !important;
	max-width: none !important;
}

.ds-brand-page .ds-brand-content > .alignfull {
	width: 100%;
}

.ds-brand-hero {
	background: linear-gradient(135deg, #1a0505 0%, #5c1010 38%, #0a3d5c 100%);
	color: #fff;
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.ds-brand-hero--honeywell {
	background: linear-gradient(135deg, #120808 0%, #7a1515 42%, #0a3d5c 100%);
}

.ds-brand-hero-inner {
	max-width: var(--ds-container, 1200px);
	margin-inline: auto;
	padding-inline: var(--ds-space-lg, 1.5rem);
}

.ds-brand-breadcrumb {
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.82);
}

.ds-brand-breadcrumb a {
	color: #fff;
	text-decoration: none;
}

.ds-brand-breadcrumb a:hover {
	text-decoration: underline;
}

.ds-brand-kicker {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffb4a8;
}

.ds-brand-hero-title {
	margin: 0 0 1rem;
	color: #fff;
	font-family: var(--ds-font-display, inherit);
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	line-height: 1.15;
	max-width: 18ch;
}

.ds-brand-hero-lead {
	margin: 0 0 1.5rem;
	max-width: 52ch;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.05rem;
	line-height: 1.65;
}

.ds-brand-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.ds-btn-ghost-light .wp-block-button__link {
	border: 2px solid rgba(255, 255, 255, 0.85) !important;
	color: #fff !important;
	background: transparent !important;
}

.ds-btn-ghost-light .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12) !important;
}

.ds-brand-logo-card {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 16px;
	padding: 1.75rem 1.5rem;
	text-align: center;
	backdrop-filter: blur(6px);
}

.ds-brand-logo {
	margin: 0 auto 1rem;
}

.ds-brand-logo img {
	max-height: 56px;
	width: auto;
	filter: brightness(0) invert(1);
}

.ds-brand-logo-caption {
	margin: 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.82);
}

.ds-brand-stats {
	padding-block: clamp(2rem, 4vw, 3rem);
}

.ds-brand-stats-grid {
	gap: 1.25rem !important;
}

.ds-brand-stats-grid h3 {
	margin: 0 0 0.5rem;
	color: var(--ds-navy, #0a3d5c);
	font-size: 1.05rem;
}

.ds-brand-stats-grid p {
	margin: 0;
	color: #475569;
	line-height: 1.6;
}

.ds-brand-section {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.ds-brand-section-lead {
	max-width: 42rem;
	margin-inline: auto 1.5rem;
	color: #64748b;
}

.ds-brand-products {
	padding-block: clamp(2rem, 4vw, 3rem);
	background: #f8fafc;
}

.ds-brand-products .ds-container {
	max-width: var(--ds-container, 1200px);
	margin-inline: auto;
	padding-inline: var(--ds-space-lg, 1.5rem);
}

.ds-brand-products-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.ds-brand-products-head h2 {
	margin: 0;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	color: var(--ds-navy, #0a3d5c);
}

.ds-brand-products-head a {
	font-weight: 600;
	color: var(--ds-primary, #115b8a);
	text-decoration: none;
}

.ds-brand-products-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1.25rem !important;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ds-brand-products-grid .ds-product-card {
	background: #fff;
	border: 1px solid #dbe3ec;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(8, 47, 71, 0.06);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ds-brand-product-image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 1rem;
	background: linear-gradient(145deg, #f8fafc 0%, #eef3f8 100%);
	border-bottom: 1px solid #e8eef4;
}

.ds-brand-product-image img {
	max-height: 140px;
	width: auto;
	object-fit: contain;
}

.ds-brand-product-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.35rem;
	padding: 1rem;
}

.ds-brand-product-title {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.ds-brand-product-title a {
	color: #0f172a;
	text-decoration: none;
	font-weight: 700;
}

.ds-brand-product-title a:hover {
	color: var(--ds-accent, #f36735);
}

.ds-brand-product-price {
	color: var(--ds-primary, #115b8a);
	font-weight: 800;
	font-size: 1rem;
}

.ds-brand-product-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.75rem;
}

.ds-brand-product-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 0.5rem;
	border-radius: 8px;
	background: linear-gradient(135deg, #f36735 0%, #e85528 100%);
	color: #fff !important;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none !important;
	text-align: center;
}

.ds-brand-support-columns {
	gap: 2rem !important;
}

.ds-brand-support-list {
	margin-top: 1rem;
	line-height: 1.7;
}

.ds-brand-support-box {
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	border: 1px solid #dbe3ec;
	border-radius: 16px;
	padding: 1.75rem;
	box-shadow: 0 12px 32px rgba(8, 47, 71, 0.08);
}

.ds-brand-support-box h3 {
	margin-top: 0;
	color: var(--ds-navy, #0a3d5c);
}

.ds-brand-cta .wp-block-button__link {
	min-height: 44px;
}

@media (max-width: 1024px) {
	.ds-brand-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.ds-brand-hero-columns {
		flex-direction: column;
	}

	.ds-brand-hero-media {
		margin-top: 1.5rem;
	}
}

@media (max-width: 640px) {
	.ds-brand-products-grid {
		grid-template-columns: 1fr !important;
	}

	.ds-brand-product-actions {
		grid-template-columns: 1fr;
	}

	.ds-brand-stats-grid,
	.ds-brand-support-columns {
		flex-direction: column;
	}
}

/* Industry landing pages (education, etc.) */
.ds-industry-page .ds-industry-content,
.ds-industry-page .ds-brand-content {
	max-width: none;
	padding: 0;
}

.ds-industry-hero--education {
	background: linear-gradient(135deg, #0c4a6e 0%, #115b8a 42%, #1e3a5f 100%);
}

.ds-industry-hero--education .ds-brand-kicker {
	color: #7dd3fc;
}

.ds-industry-hero-card {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	padding: 1.75rem 1.5rem;
	text-align: center;
	backdrop-filter: blur(6px);
}

.ds-industry-hero-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 0.75rem;
	color: rgba(255, 255, 255, 0.92);
}

.ds-industry-challenges .ds-card {
	min-height: 100%;
}

.ds-industry-trust {
	padding-block: clamp(1.5rem, 3vw, 2rem);
	background: #fff;
	border-block: 1px solid var(--ds-border, #e2e8f0);
}

.ds-industry-trust-grid {
	gap: 1rem !important;
}

.ds-industry-trust-item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0;
	padding: 0.85rem 1rem;
	background: var(--ds-surface, #f4f7fb);
	border: 1px solid var(--ds-border, #e2e8f0);
	border-radius: 10px;
	text-align: center;
}

.ds-industry-trust-item strong {
	color: var(--ds-navy, #1d3267);
	font-size: 0.875rem;
}

.ds-industry-trust-item span {
	color: var(--ds-muted, #64748b);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.ds-industry-page .ds-brand-section .ds-container,
.ds-industry-page .ds-brand-stats .ds-container {
	max-width: var(--ds-container, min(1200px, calc(100% - 2rem)));
	margin-inline: auto;
	padding-inline: var(--ds-space-lg, 1.5rem);
}

.ds-industry-page .ds-brand-section-lead {
	max-width: 42rem;
	margin-inline: auto;
	color: var(--ds-muted, #64748b);
}

@media (max-width: 781px) {
	.ds-industry-trust-grid {
		flex-direction: column;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
