/* =============================================================
   DT Header — Frontend styles (multi-layout)
   ============================================================= */

#dth-wrap {
	position: relative;
	z-index: 100000;
	font-family: var(--dth-font-family, inherit);
	background: var(--dth-bg);
}
#dth-wrap[data-sticky="1"] { position: sticky; top: 0; }
body.admin-bar #dth-wrap[data-sticky="1"] { top: 32px; }
@media (max-width: 782px) { body.admin-bar #dth-wrap[data-sticky="1"] { top: 46px; } }
#dth-wrap.dth-hidden { transform: translateY(-100%); transition: transform .25s ease; }
#dth-wrap { transition: transform .25s ease, box-shadow .25s ease; }
#dth-wrap.dth-scrolled {
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	background: var(--dth-bg, #fff);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* Drawer logo — strictly scoped, never visible outside drawer */
.dth-drawer .dth-logo {
	display: none;
	position: relative !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
}
.dth-drawer[aria-hidden="false"] .dth-logo {
	display: inline-flex;
}

/* DTH-004 — Shrink on scroll */
#dth-header,
.dth-logo img,
.dth-nav .dth-menu > li > a {
	transition: min-height .25s ease, max-height .25s ease,
		font-size .25s ease, padding .25s ease;
}
#dth-wrap.dth-scrolled .dth-row--top {
	min-height: 54px;
}
#dth-wrap.dth-scrolled .dth-row--top .dth-row__inner {
	min-height: 54px;
}
#dth-wrap.dth-scrolled .dth-logo img {
	max-height: var(--dth-logo-h-stk);
}
#dth-wrap.dth-scrolled .dth-row--nav {
	min-height: 40px;
}
#dth-wrap.dth-scrolled .dth-nav .dth-menu > li > a {
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 12px;
}

.dth-container {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: 32px;
}
@media (max-width: 700px) { .dth-container { padding-inline: 16px; } }

/* ─── Announcement bar ───────────────────────────────────── */
#dth-announcement {
	display: block;
	position: relative;
	z-index: 100000;
	background: var(--dth-ann-bg);
	color: var(--dth-ann-fg);
	font-size: 12px;
	letter-spacing: 0.06em;
	font-weight: 500;
	text-transform: uppercase;
}
#dth-announcement .dth-container {
	padding-block: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 40px;
}
#dth-announcement a, #dth-announcement span { color: inherit; text-decoration: none; }
#dth-announcement a:hover { text-decoration: underline; }
.dth-ann-close {
	position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	background: transparent; border: 0; color: inherit; font-size: 22px; line-height: 1;
	cursor: pointer; padding: 4px 8px; opacity: .7; transition: opacity .15s;
}
.dth-ann-close:hover { opacity: 1; }
#dth-announcement.dth-dismissed { display: none; }

/* ─── Header ─────────────────────────────────────────────── */
#dth-header {
	background: var(--dth-bg);
	border-bottom: 1px solid var(--dth-border);
}
.dth-row {
	min-height: var(--dth-h);
	display: flex;
	align-items: center;
	gap: 16px;
}
.dth-row--3col {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
}
.dth-row--logo-left {
	grid-template-columns: auto 1fr auto;
	display: grid;
}
.dth-row--mall {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 24px;
	align-items: center;
}
.dth-row__spacer { flex: 1; }

/* Two-row logo-center layout (DTH-LAYOUT-1) */
.dth-row--top {
	min-height: 70px;
	border-bottom: 1px solid color-mix(in srgb, var(--dth-accent) 15%, transparent);
}
.dth-row--top .dth-row__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 70px;
	padding: 0;
}
.dth-row--top .dth-mobile-toggle {
	position: absolute;
	left: 0;
	z-index: 2;
}
.dth-row--top .dth-logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	max-width: 200px;
	pointer-events: auto;
	z-index: 1;
}
.dth-row--top .dth-logo img {
	max-width: 100%;
	height: auto;
}
.dth-row--top .dth-utils {
	margin-left: auto;
	position: relative;
	z-index: 2;
}
.dth-row--nav {
	min-height: 48px;
	background: var(--dth-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}
.dth-row--nav .dth-container {
	display: flex;
	justify-content: center;
}
.dth-nav--center {
	justify-content: center;
	width: 100%;
}
.dth-nav--center .dth-menu {
	justify-content: center;
}

.dth-mobile-toggle { display: none; }

/* ─── Logo ───────────────────────────────────────────────── */
.dth-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.dth-logo img {
	display: block;
	width: auto;
	max-height: var(--dth-logo-h);
	height: auto;
}
.dth-logo__text {
	font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'URW Gothic L', 'Avant Garde', sans-serif;
	font-weight: 600;
	font-size: 22px;
	letter-spacing: 0.04em;
	color: var(--dth-accent);
}
.dth-layout-logo-center .dth-logo,
.dth-layout-with-subheader .dth-logo { justify-self: center; }

/* ─── Primary nav ────────────────────────────────────────── */
.dth-nav { display: flex; align-items: center; }
.dth-nav--left { justify-self: start; }
.dth-menu,
.dth-menu li,
.dth-menu ul,
.dth-mega,
.dth-mega li,
.sub-menu,
.sub-menu li,
.dth-mobile-menu,
.dth-mobile-menu li { list-style: none; margin: 0; padding: 0; }
.dth-menu li::marker,
.dth-mega li::marker,
.sub-menu li::marker,
.dth-mobile-menu li::marker { content: ''; display: none; }
.dth-menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.dth-menu > li { position: static; }
.dth-menu > li:not(.dth-has-flyout) { position: relative; }
.dth-menu > li > a { white-space: nowrap; }
@media (max-width: 1280px) {
	.dth-menu > li > a {
		padding: 28px 8px;
		font-size: var(--dth-nav-font-size, 12px);
	}
}
@media (max-width: 1100px) {
	.dth-menu > li > a {
		padding: 24px 6px;
		font-size: 11px;
	}
}
.dth-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 28px 12px;
	font-size: var(--dth-nav-font-size, 13px);
	font-weight: var(--dth-nav-font-weight, 500);
	letter-spacing: var(--dth-nav-letter-spacing, 0.04em);
	color: var(--dth-nav-color, var(--dth-fg));
	text-decoration: none;
	white-space: nowrap;
	transition: color .15s;
	position: relative;
}
.dth-menu > li > a::after {
	content: '';
	position: absolute;
	left: 12px; right: 12px; bottom: 22px;
	height: 1.5px;
	background: var(--dth-accent);
	transform: scaleX(0);
	transition: transform .2s ease;
}
.dth-menu > li:hover > a,
.dth-menu > li.current-menu-item > a,
.dth-menu > li.current-menu-parent > a { color: var(--dth-accent); }
.dth-menu > li:hover > a::after,
.dth-menu > li.current-menu-item > a::after { transform: scaleX(1); }

/* Hide title text wrapper styles default */
.dth-menu .dth-menu-img { display: none; }

/* ─── Flyout mega menu ───────────────────────────────── */

/* Caret on top-level items with children */
.dth-menu > li.dth-has-flyout > a { gap: 6px; }
.dth-caret { flex-shrink: 0; transition: transform .2s ease; }
.dth-has-flyout:hover > a .dth-caret,
.dth-has-flyout.is-open > a .dth-caret { transform: rotate(180deg); }

/* Flyout panel — full viewport width, pinned below header */
.dth-flyout {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	width: 100vw !important;
	top: calc(var(--dth-flyout-top, 120px) - 1px);
	background: var(--dth-flyout-bg, #fff);
	box-shadow: 0 16px 40px rgba(0,0,0,.10);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	z-index: 99998;
	max-height: calc(100vh - var(--dth-flyout-top, 120px));
	overflow-y: auto;
}
/* DTH-2.11 — Invisible hover bridge: extends flyout hit-area
   upward so mouse can move from nav to flyout without losing hover */
.dth-flyout::before {
	content: '';
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 12px;
	background: transparent;
	pointer-events: auto;
}
.dth-row--nav {
	position: relative;
	z-index: 99997;
}
.dth-has-flyout.is-open > .dth-flyout {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition-delay: 0s;
}

/* Two-column layout inside flyout */
.dth-flyout__inner {
	display: grid;
	grid-template-columns: 220px 1fr;
	grid-template-rows: auto auto;
	gap: 0;
	padding: 20px 32px 24px;
	min-height: 320px;
	max-width: 1440px;
	margin-inline: auto;
}
.dth-flyout__groups {
	max-height: calc(70vh - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
}
.dth-flyout__panel-wrap {
	max-height: calc(70vh - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
}
.dth-flyout__groups::-webkit-scrollbar,
.dth-flyout__panel-wrap::-webkit-scrollbar {
	width: 6px;
}
.dth-flyout__groups::-webkit-scrollbar-thumb,
.dth-flyout__panel-wrap::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--dth-accent) 25%, transparent);
	border-radius: 3px;
}

/* Left column — group list */
.dth-flyout__groups {
	list-style: none;
	margin: 0;
	padding: 0 16px 0 0;
	border-right: 1px solid var(--dth-border);
}
.dth-flyout__group > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	font-size: var(--dth-group-font-size, 14px);
	font-weight: 500;
	color: var(--dth-group-color, var(--dth-fg));
	text-decoration: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s, color .15s;
	white-space: nowrap;
}
.dth-flyout__group > a:hover,
.dth-flyout__group.is-active > a {
	background: color-mix(in srgb, var(--dth-accent) 8%, transparent);
	color: var(--dth-accent);
}
.dth-group-img {
	width: 28px;
	height: 28px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}
.dth-caret-right {
	margin-left: auto;
	opacity: .4;
	flex-shrink: 0;
}
.dth-flyout__group.is-active .dth-caret-right { opacity: .9; }

/* Right panel — card grid */
.dth-flyout__panel-wrap {
	padding-left: 24px;
}
.dth-flyout__panel {
	display: none;
}
.dth-flyout__panel.is-active {
	display: block;
}
.dth-flyout__cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.dth-flyout__card a {
	display: flex;
	flex-direction: column;
	gap: 0;
	text-decoration: none;
	color: var(--dth-fg);
	background: #fff;
	border-radius: var(--dth-card-radius, 10px);
	overflow: hidden;
	box-shadow: var(--dth-card-shadow, 0 1px 3px rgba(0,0,0,0.04));
	border: 1px solid color-mix(in srgb, var(--dth-border) 60%, transparent);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.dth-flyout__card a:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
	border-color: color-mix(in srgb, var(--dth-accent) 30%, transparent);
}
.dth-flyout__card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--dth-border);
	display: block;
}
.dth-flyout__card-title {
	font-size: var(--dth-card-title-size, 13px);
	font-weight: 600;
	line-height: 1.35;
	color: var(--dth-card-color, var(--dth-fg));
	padding: 10px 12px 4px;
}
.dth-flyout__card-short {
	font-size: 12px;
	color: var(--dth-fg-muted);
	padding: 0 12px 12px;
	line-height: 1.4;
}
.dth-flyout__card a {
	min-height: 0;
}
/* Text-only cards (no image) — render as simple link, no card */
.dth-flyout__card a:has(.dth-flyout__card--text) {
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--dth-border) 60%, transparent);
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	border-radius: 8px;
	min-height: 80px;
	align-items: center;
	justify-content: center;
}
.dth-flyout__card a:has(.dth-flyout__card--text):hover {
	transform: translateY(-2px);
	background: #fff;
	box-shadow: 0 6px 16px rgba(0,0,0,0.06);
	border-color: color-mix(in srgb, var(--dth-accent) 30%, transparent);
}
.dth-flyout__card--text {
	font-weight: 500;
	font-size: var(--dth-card-title-size, 13px);
	padding: 16px 12px;
	text-align: center;
	color: var(--dth-fg);
}

/* Responsive grid — 4 / 3 / 2 columns */
@media (max-width: 1280px) {
	.dth-flyout__cards { grid-template-columns: repeat(3, 1fr); }
	.dth-flyout__inner { grid-template-columns: 200px 1fr; }
}
@media (max-width: 900px) {
	.dth-flyout__cards { grid-template-columns: repeat(2, 1fr); }
	.dth-flyout__inner { grid-template-columns: 180px 1fr; }
}

/* ─── Plain dropdown for items without flyout (no children) ─ */
.dth-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--dth-bg);
	border: 1px solid var(--dth-border);
	border-top: 2px solid var(--dth-accent);
	border-radius: 0 0 6px 6px;
	box-shadow: 0 12px 32px rgba(0,0,0,.08);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	z-index: 9000;
	min-width: 200px;
	list-style: none;
	margin: 0;
}
.dth-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}
.dth-menu .sub-menu li > a {
	display: block;
	padding: 8px 18px;
	font-size: 13px;
	color: var(--dth-fg);
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.dth-menu .sub-menu li > a:hover {
	background: var(--dth-accent-soft);
	color: var(--dth-accent);
}

/* ─── Subheader row (with_subheader + mall layouts) ──────── */
#dth-subheader {
	background: var(--dth-bg);
	border-top: 1px solid var(--dth-border);
}
.dth-subnav {
	display: flex;
	justify-content: center;
	min-height: 50px;
}
.dth-subnav .dth-menu > li > a {
	padding: 14px 16px;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.dth-subnav .dth-menu > li > a::after {
	bottom: 8px;
}

/* ─── Inline search bar (mall layout) ────────────────────── */
.dth-search-inline {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--dth-accent-soft);
	border: 1px solid var(--dth-border);
	border-radius: 6px;
	padding: 0 14px;
	height: 44px;
	flex: 1;
	max-width: 720px;
	margin-inline: auto;
	position: relative;
}
.dth-search-inline svg { color: var(--dth-fg-muted); flex-shrink: 0; }
.dth-search-inline input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 14px;
	color: var(--dth-fg);
	min-width: 0;
}
.dth-search-inline__results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0; right: 0;
	background: var(--dth-bg);
	border: 1px solid var(--dth-border);
	border-radius: 6px;
	box-shadow: 0 12px 32px rgba(0,0,0,.08);
	padding: 16px;
	max-height: 480px;
	overflow-y: auto;
	z-index: 100;
}

/* ─── Utils ─────────────────────────────────────────────── */
.dth-utils {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}
.dth-icon-btn {
	width: 42px; height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: var(--dth-fg);
	cursor: pointer;
	text-decoration: none;
	position: relative;
	transition: background .15s, color .15s;
}
.dth-icon-btn:hover { background: var(--dth-accent-soft); color: var(--dth-accent); }
.dth-cart-link { position: relative; }
.dth-cart-count {
	position: absolute;
	top: 6px; right: 4px;
	min-width: 18px; height: 18px;
	padding: 0 5px;
	background: var(--dth-accent);
	color: #FFF;
	border-radius: 999px;
	font-size: 10px; font-weight: 700; line-height: 18px;
	text-align: center;
}
.dth-cart-count[data-empty="1"] { display: none; }

/* ─── Drawers ───────────────────────────────────────────── */
.dth-drawer {
	position: fixed; inset: 0; z-index: 99999; pointer-events: none;
}
.dth-drawer[aria-hidden="false"] { pointer-events: auto; }
.dth-drawer__backdrop {
	position: absolute; inset: 0;
	background: rgba(0,0,0,.45);
	opacity: 0; transition: opacity .2s ease;
}
.dth-drawer[aria-hidden="false"] .dth-drawer__backdrop { opacity: 1; }
.dth-drawer__panel--side {
	position: absolute; top: 0; bottom: 0; left: 0;
	width: 92vw; max-width: 380px;
	background: var(--dth-mobile-bg, #fff);
	transform: translateX(-100%);
	transition: transform .28s cubic-bezier(.2,.7,.2,1);
	display: flex; flex-direction: column;
}
.dth-drawer[aria-hidden="false"] .dth-drawer__panel--side { transform: translateX(0); }
.dth-drawer__panel--top {
	position: absolute; top: 0; left: 0; right: 0;
	background: var(--dth-bg);
	transform: translateY(-100%);
	transition: transform .28s cubic-bezier(.2,.7,.2,1);
	max-height: 90vh;
	display: flex; flex-direction: column;
}
.dth-drawer[aria-hidden="false"] .dth-drawer__panel--top { transform: translateY(0); }
.dth-drawer__head {
	display: grid;
	grid-template-columns: 48px 1fr 48px;
	align-items: center;
	padding: 8px 12px;
	border-bottom: 1px solid var(--dth-border);
	min-height: 64px;
}
.dth-drawer__head .dth-drawer-close-left {
	grid-column: 1;
	justify-self: start;
}
.dth-drawer__head .dth-logo {
	grid-column: 2;
	justify-self: center;
}
.dth-drawer__body { flex: 1; overflow-y: auto; }

/* ─── Mobile menu: layered styling ─────────────────── */
.dth-mobile-menu,
.dth-mobile-menu ul { list-style:none; margin:0; padding:0; }

/* DEPTH 0 — top level (solid accent background) */
.dth-mobile-menu > li {
	border-bottom: 1px solid color-mix(in srgb, var(--dth-accent) 12%, transparent);
}
.dth-mobile-menu > li > a {
	display: block;
	padding: 16px 20px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--dth-mobile-top-color, #1a1a1a);
	text-decoration: none;
	text-transform: uppercase;
	background: var(--dth-mobile-d0-bg, #fff);
}
.dth-mobile-menu > li.menu-item-has-children {
	display: grid;
	grid-template-columns: 1fr 48px;
	align-items: stretch;
	background: #fff;
}
.dth-mobile-menu > li.is-open > a {
	background: color-mix(in srgb, var(--dth-accent) 8%, #fff);
	color: var(--dth-accent);
}
.dth-mobile-menu > li:not(.menu-item-has-children) > a {
	padding-right: 20px;
}

/* Toggle buttons */
.dth-sub-toggle {
	background: transparent;
	border: none;
	border-left: 1px solid color-mix(in srgb, var(--dth-accent) 10%, transparent);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	width: 100%;
	height: 100%;
	color: var(--dth-accent);
	transition: background .15s;
}
.dth-sub-toggle:hover { background: color-mix(in srgb, var(--dth-accent) 8%, transparent); }
.dth-sub-toggle svg { transition: transform .22s ease; }
.dth-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* DEPTH 1 — sub-menu container (cream tint background) */
.dth-mobile-menu > li > .sub-menu {
	display: none;
	grid-column: 1 / -1;
	background: var(--dth-mobile-d1-bg, #fdfaf6);
	border-top: 1px solid color-mix(in srgb, var(--dth-accent) 10%, transparent);
	padding: 8px 0;
}
.dth-mobile-menu > li.is-open > .sub-menu { display: block; }

/* DEPTH 1 items — group headings */
.dth-mobile-menu .sub-menu > li {
	border-bottom: 1px solid color-mix(in srgb, var(--dth-accent) 8%, transparent);
}
.dth-mobile-menu .sub-menu > li:last-child { border-bottom: none; }
.dth-mobile-menu .sub-menu > li.menu-item-has-children {
	display: grid;
	grid-template-columns: 1fr 44px;
	align-items: stretch;
}
.dth-mobile-menu .sub-menu > li > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px 12px 28px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dth-mobile-sub-color, #2a2a2a);
	text-decoration: none;
	letter-spacing: 0.02em;
}
.dth-mobile-menu .sub-menu > li > a img {
	width: 28px;
	height: 28px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}
.dth-mobile-menu .sub-menu > li.is-open > a {
	color: var(--dth-accent);
}
.dth-mobile-menu .sub-menu > li:not(.menu-item-has-children) > a {
	padding-right: 28px;
}

/* DEPTH 2 — image cards with shadows (2 per row) */
.dth-mobile-menu .sub-menu > li > .sub-menu {
	display: none;
	grid-column: 1 / -1;
	background: #fff;
	padding: 14px 16px;
	gap: 10px;
}
.dth-mobile-menu .sub-menu > li.is-open > .sub-menu {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.dth-mobile-menu .sub-menu .sub-menu > li {
	border: none;
}
.dth-mobile-menu .sub-menu .sub-menu > li > a {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	font-size: 11px;
	font-weight: 500;
	color: var(--dth-fg);
	text-decoration: none;
	background: var(--dth-mobile-d2-bg, #fff);
	border: 1px solid color-mix(in srgb, var(--dth-accent) 12%, transparent);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
	transition: transform .2s ease, box-shadow .2s ease;
}
.dth-mobile-menu .sub-menu .sub-menu > li > a:active {
	transform: scale(0.98);
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.dth-mobile-menu .sub-menu .sub-menu > li > a img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	height: auto;
	border-radius: 0;
}
.dth-mobile-menu .sub-menu .sub-menu > li > a span {
	display: block;
	padding: 6px 8px 8px;
	line-height: 1.3;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #2a2a2a;
}

/* ─── Search drawer ──────────────────────────────────────── */
.dth-search-form {
	max-width: 760px; margin: 0 auto;
	padding: 20px 32px;
	display: flex; align-items: center; gap: 12px;
	border-bottom: 1px solid var(--dth-border);
	width: 100%;
}
.dth-search-form__icon { color: var(--dth-fg-muted); flex-shrink: 0; }
.dth-search-form__input {
	flex: 1; height: 44px;
	border: 0; outline: 0;
	background: transparent;
	font-size: 18px;
	font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'URW Gothic L', 'Avant Garde', sans-serif;
	color: var(--dth-fg);
	min-width: 0;
}
.dth-search-form__input::placeholder { color: var(--dth-fg-muted); font-style: italic; }

.dth-search-results {
	max-width: 760px; margin: 0 auto;
	padding: 24px 32px; width: 100%;
	overflow-y: auto;
}
.dth-search-results__hint-label {
	margin: 0 0 10px 0;
	font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--dth-fg-muted);
}
.dth-search-results__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dth-search-chip {
	display: inline-flex; align-items: center;
	padding: 6px 12px;
	border: 1px solid var(--dth-border);
	border-radius: 999px;
	font-size: 13px; color: var(--dth-fg); text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}
.dth-search-chip:hover { background: var(--dth-accent); border-color: var(--dth-accent); color: #FFF; }

.dth-results__group { margin-bottom: 24px; }
.dth-results__title {
	margin: 0 0 8px 0;
	font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--dth-fg-muted);
}
.dth-results__chips,
.dth-search-results__chips {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px;
}
.dth-results__list,
.dth-search-results__list {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}
.dth-results__list--compact {
	grid-template-columns: 1fr;
	gap: 4px;
}
.dth-results__row {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
	border-radius: 8px;
	text-decoration: none;
	color: var(--dth-fg);
	background: transparent;
	transition: transform .2s ease;
}
.dth-results__row:hover {
	transform: translateY(-2px);
	background: transparent;
}
.dth-results__row img {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
	background: var(--dth-border);
}
.dth-results__row-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
	padding: 0 4px;
}
.dth-results__row-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--dth-fg);
}
.dth-results__row-price {
	font-size: 13px;
	color: var(--dth-accent);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}
.dth-results__row--text {
	flex-direction: row;
	padding: 8px 0;
}
.dth-results__row--text:hover {
	transform: none;
	color: var(--dth-accent);
}
.dth-results__list--compact { gap: 0; }
.dth-results__empty { padding: 20px; color: var(--dth-fg-muted); text-align: center; }
.dth-results__viewall {
	display: block; margin-top: 16px;
	padding: 14px;
	background: var(--dth-fg); color: var(--dth-bg);
	text-align: center; text-decoration: none;
	border-radius: 6px;
	font-size: 13px; font-weight: 500;
	transition: background .15s;
}
.dth-results__viewall:hover { background: var(--dth-accent); }
.dth-text-muted { color: var(--dth-fg-muted); font-size: 12px; }
body.dth-locked {
	/* Lock applied to <html> via JS to preserve sticky context.
	   Body class is kept for state-dependent styles like dth-search-active. */
}

/* ─── Responsive tiers (DTH-008) ──────────────────────────── */

/* Desktop only: hamburger hidden — mobile rules at end of file override */
@media (min-width: 1025px) {
	.dth-mobile-toggle {
		visibility: hidden !important;
		display: inline-flex !important;
		pointer-events: none !important;
		width: 40px !important;
		height: 40px !important;
	}
}

/* Large desktop ≤1280px — narrower mega-menu grid */
@media (max-width: 1280px) {
	.dth-container { max-width: 1200px; }
	.dth-menu > li > .dth-mega.dth-mega--cards,
	.dth-menu > li > .dth-mega:has(.has-dth-image) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		min-width: 600px;
	}
}


@media (max-width: 768px) {
	.dth-icon-btn { width: 38px; height: 38px; }
	.dth-icon-btn svg { width: 20px; height: 20px; }
	.dth-cart-count { top: 4px; right: 2px; min-width: 16px; height: 16px; font-size: 9px; line-height: 16px; }
	.dth-row--top { min-height: 56px; }
	.dth-row--top .dth-row__inner { min-height: 56px; }
	.dth-row--top .dth-logo img { max-height: 36px; }
}
@media (max-width: 480px) {
	.dth-icon-btn { width: 34px; height: 34px; }
	.dth-utils { gap: 2px; }
	.dth-container { padding-inline: 14px; }
}

/* Tablet ≤768px — tighter container, smaller announcement, smaller logo */
@media (max-width: 768px) {
	.dth-container { padding-inline: 16px; }
	#dth-announcement { font-size: 11px; }
	#dth-announcement .dth-container { padding-block: 8px; min-height: 32px; }
	.dth-logo img { max-height: calc(var(--dth-logo-h-stk) - 8px) !important; }
}

/* Mobile ≤480px — compact icons + container */
@media (max-width: 480px) {
	.dth-container { padding-inline: 12px; }
	.dth-icon-btn { width: 36px; height: 36px; }
	.dth-icon-btn svg { width: 20px; height: 20px; }
}

.dth-search-bar-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--dth-border);
}
.dth-search-form__input {
	width: 100%;
	border: none;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 16px;
	color: var(--dth-fg);
}
.dth-search-form__input::placeholder { color: var(--dth-fg-muted); }
.dth-search-section-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dth-fg-muted);
	margin: 24px 0 12px;
}
.dth-search-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}
.dth-search-chip {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid var(--dth-border);
	border-radius: 999px;
	font-size: 13px;
	color: var(--dth-fg);
	text-decoration: none;
	transition: border-color .15s, color .15s, background .15s;
}
.dth-search-chip:hover {
	border-color: var(--dth-accent);
	color: var(--dth-accent);
	background: color-mix(in srgb, var(--dth-accent) 5%, transparent);
}
.dth-search-featured-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}
.dth-search-featured-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	color: var(--dth-fg);
	transition: transform .2s ease;
}
.dth-search-featured-card:hover { transform: translateY(-2px); }
.dth-search-featured-card img {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 6px;
	background: var(--dth-border);
}
.dth-search-featured-title {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}
.dth-search-featured-price {
	font-size: 12px;
	color: var(--dth-accent);
}
@media (max-width: 768px) {
	.dth-search-featured-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
	.dth-search-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
.dth-result-price-wrap {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	flex-wrap: nowrap;
	white-space: nowrap;
}
.dth-result-unit {
	font-size: 11px;
	color: var(--dth-fg-muted);
	font-weight: 400;
}

/* ─── Search results — Tilecloud-inspired layout ─── */
#dth-search-results-wrap {
	display: block;
	padding: 24px 0;
}
#dth-search-results-wrap[hidden] { display: none; }

/* Left column — categories/tags as text suggestions */
.dth-results__terms {
	margin: 0;
}
.dth-results__terms .dth-results__title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dth-fg);
	margin: 0 0 12px;
}
.dth-results__term-chips {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.dth-search-chip--term {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 6px 0;
	background: transparent;
	border: none;
	border-radius: 0;
	font-size: 13px;
	color: var(--dth-fg);
	text-decoration: none;
	transition: color .15s;
}
.dth-search-chip--term:hover {
	color: var(--dth-accent);
	background: transparent;
}
.dth-chip-type {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dth-fg-muted);
	opacity: 1;
	flex-shrink: 0;
	min-width: 60px;
}
.dth-chip-count {
	font-size: 11px;
	color: var(--dth-fg-muted);
	margin-left: auto;
}

/* Right column — products grid */
#dth-search-results {
	display: block;
}
.dth-results__group { margin: 0; }
.dth-results__group .dth-results__title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dth-fg);
	margin: 0 0 12px;
}
.dth-results__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}
.dth-results__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0;
	text-decoration: none;
	color: var(--dth-fg);
	border-bottom: none;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.dth-results__row:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.dth-results__row img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	background: var(--dth-border);
}
.dth-results__row-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	padding: 4px 4px 0;
}
.dth-results__row-price {
	font-size: 13px;
	color: var(--dth-accent);
	font-weight: 600;
	padding: 0 4px 4px;
}
.dth-results__viewall {
	display: block;
	margin-top: 16px;
	font-size: 13px;
	color: var(--dth-accent);
	text-decoration: underline;
	text-align: right;
}
.dth-results__empty {
	font-size: 14px;
	color: var(--dth-fg-muted);
	padding: 16px 0;
}

@media (max-width: 768px) {
	#dth-search-results-wrap {
		gap: 24px;
	}
	.dth-results__list {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 10px;
	}
}

.dth-flyout__featured {
	grid-column: 1 / -1;
	grid-row: 2;
	padding: 16px 32px 24px;
	border-top: 1px solid var(--dth-border);
	margin-top: 16px;
}
.dth-flyout__featured-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dth-fg-muted);
	margin: 0 0 14px;
}
.dth-flyout__card-price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	flex-wrap: nowrap;
	padding: 0 12px 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--dth-accent);
}
.dth-flyout__card-unit {
	font-size: 11px;
	color: var(--dth-fg-muted);
	font-weight: 400;
}

@media (max-width: 1024px) {
	.dth-row--top .dth-row__inner {
		display: grid !important;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 8px;
		padding-inline: 12px;
	}
	.dth-row--top .dth-mobile-toggle {
		position: static !important;
		grid-column: 1;
		justify-self: start;
		display: inline-flex !important;
	}
	.dth-row--top .dth-logo {
		position: static !important;
		transform: none !important;
		grid-column: 2;
		justify-self: center;
		max-width: 60vw;
	}
	.dth-row--top .dth-logo img {
		max-height: var(--dth-logo-h-mob, 30px);
		width: auto;
	}
	.dth-row--top .dth-utils {
		grid-column: 3;
		justify-self: end;
		gap: 0;
		flex-shrink: 0;
	}
	.dth-row--top .dth-utils .dth-icon-btn {
		width: 40px;
		height: 40px;
	}
	.dth-row--top .dth-utils .dth-icon-btn svg {
		width: 20px;
		height: 20px;
	}
	.dth-cart-count {
		top: 4px;
		right: 4px;
	}
}

@media (max-width: 480px) {
	.dth-row--top .dth-row__inner {
		padding-inline: 10px;
	}
	.dth-row--top .dth-utils .dth-icon-btn {
		width: 36px;
		height: 36px;
	}
}

/* Category cards inline with products */
.dth-results__cat-cards {
	margin-bottom: 28px;
}
.dth-results__cat-cards .dth-results__title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dth-fg-muted);
	margin: 0 0 12px;
}
.dth-results__cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}
.dth-cat-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--dth-fg);
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--dth-border) 70%, transparent);
	border-radius: var(--dth-card-radius, 10px);
	overflow: hidden;
	box-shadow: var(--dth-card-shadow, 0 1px 3px rgba(0,0,0,0.06));
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dth-cat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
	border-color: color-mix(in srgb, var(--dth-accent) 30%, transparent);
}
.dth-cat-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}
.dth-cat-card-title {
	font-size: 13px;
	font-weight: 600;
	padding: 8px 10px 2px;
	color: #2a2a2a;
}
.dth-cat-card-count {
	font-size: 11px;
	color: var(--dth-fg-muted);
	padding: 0 10px 8px;
}

/* DTH-2.11 — Mobile hamburger guarantee */
@media (max-width: 1024px) {
	body #dth-wrap .dth-mobile-toggle,
	body #dth-wrap .dth-row--top .dth-mobile-toggle {
		display: inline-flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: 40px !important;
		height: 40px !important;
		align-items: center !important;
		justify-content: center !important;
		position: static !important;
	}
}

/* DTH-2.11 — Mobile sticky guarantee */
@media (max-width: 1024px) {
	body #dth-wrap[data-sticky="1"] {
		position: sticky !important;
		top: 0 !important;
		z-index: 100000 !important;
	}
	html { overflow-x: clip; }
	body, body #ajax-content-wrap, body #boxed, body .container-wrap {
		overflow: visible !important;
		overflow-x: clip;
	}
}

/* DTH-2.13 — Hide ALL desktop nav variants on mobile */
@media (max-width: 1024px) {
	body #dth-wrap .dth-row--nav,
	body #dth-wrap .dth-nav,
	body #dth-wrap .dth-nav--center,
	body #dth-wrap #dth-subheader,
	body #dth-wrap .dth-subnav,
	body #dth-wrap .dth-row--subheader {
		display: none !important;
	}
}


/* DTH-2.15 — with-subheader 3-col mobile layout (rewrite) */
@media (max-width: 1024px) {
	body #dth-wrap .dth-row--3col {
		display: grid !important;
		grid-template-columns: auto 1fr auto !important;
		align-items: center !important;
		gap: 8px !important;
		padding-inline: 12px !important;
		min-height: 56px !important;
	}
	body #dth-wrap .dth-row--3col .dth-mobile-toggle {
		grid-column: 1 !important;
		justify-self: start !important;
		display: inline-flex !important;
		width: 40px !important;
		height: 40px !important;
		padding: 0 !important;
	}
	body #dth-wrap .dth-row--3col .dth-logo {
		grid-column: 2 !important;
		justify-self: center !important;
		max-width: calc(100vw - 200px) !important;
		position: static !important;
		transform: none !important;
		overflow: hidden !important;
	}
	body #dth-wrap .dth-row--3col .dth-logo img,
	body #dth-wrap .dth-row--3col .dth-logo svg {
		max-height: var(--dth-logo-h-mob, 30px) !important;
		max-width: 100% !important;
		width: auto !important;
		height: auto !important;
		object-fit: contain !important;
	}
	body #dth-wrap .dth-row--3col .dth-logo__text {
		font-size: 16px !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
	}
	body #dth-wrap .dth-row--3col .dth-utils {
		grid-column: 3 !important;
		justify-self: end !important;
		gap: 0 !important;
		flex-shrink: 0 !important;
		display: flex !important;
	}
	body #dth-wrap .dth-row--3col .dth-utils .dth-icon-btn {
		width: 40px !important;
		height: 40px !important;
	}
	body #dth-wrap .dth-row--3col .dth-row__spacer {
		display: none !important;
	}
}

/* DTH-2.20 — Search results left column (Tilecloud style) */
.dth-results__left {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.dth-results__title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dth-fg);
	margin: 0 0 12px;
}
.dth-results__suggest-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.dth-results__suggest-link {
	display: block;
	padding: 4px 0;
	font-size: 14px;
	color: var(--dth-fg);
	text-decoration: none;
	transition: color .15s;
}
.dth-results__suggest-link:hover {
	color: var(--dth-accent);
}
@media (max-width: 768px) {
	#dth-search-results-wrap {
		gap: 20px !important;
	}
	.dth-results__left {
		order: 2;
	}
}

/* DTH-2.21 — Kill list bullets in search panels */
body #dth-search-results-wrap ul,
body #dth-search-results-wrap li,
body #dth-search-results ul,
body #dth-search-results li,
body .dth-results__left ul,
body .dth-results__left li,
body .dth-results__suggest-list,
body .dth-results__suggest-list li {
	list-style: none !important;
	list-style-type: none !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
}
body #dth-search-results-wrap li::marker,
body #dth-search-results li::marker,
body .dth-results__suggest-list li::marker {
	content: none !important;
	display: none !important;
}

/* DTH-2.21 — Price components stay nowrap */
.dth-results__row-price ins,
.dth-results__row-price del,
.dth-results__row-price .woocommerce-Price-amount,
.dth-result-price-wrap {
	white-space: nowrap !important;
}
.dth-result-price-wrap {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	flex-wrap: nowrap;
}
.dth-result-unit {
	font-size: 11px;
	color: var(--dth-fg-muted);
	font-weight: 400;
	margin-left: 2px;
}

/* DTH-2.21 — Tag chips row in search results */
.dth-results__tag-chips-row {
	margin-bottom: 24px;
}
.dth-results__chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.dth-results__chip-list .dth-search-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	background: color-mix(in srgb, var(--dth-accent) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--dth-accent) 20%, transparent);
	border-radius: 999px;
	font-size: 12px;
	color: var(--dth-accent);
	text-decoration: none;
	transition: background .15s, border-color .15s;
}
.dth-results__chip-list .dth-search-chip:hover {
	background: color-mix(in srgb, var(--dth-accent) 14%, transparent);
	border-color: var(--dth-accent);
}

/* DTH-22.bar — Tilecloud-style search bar */
.dth-search-bar {
	width: 100%;
	background: var(--dth-flyout-bg, #ffffff);
	border-bottom: 1px solid var(--dth-border, rgba(0,0,0,0.1));
	padding: 16px 0;
}

.dth-search-bar__inner {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 48px;
	display: flex;
	align-items: center;
	gap: 16px;
}

@media (max-width: 1000px) {
	.dth-search-bar__inner { padding: 0 32px; }
}

@media (max-width: 700px) {
	.dth-search-bar__inner { padding: 0 20px; }
	.dth-search-bar { padding: 12px 0; }
}

.dth-search-bar__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	color: var(--dth-fg, #1a1a1a);
	opacity: 0.6;
}

.dth-search-bar__input {
	flex: 1 1 auto;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 18px;
	color: var(--dth-fg, #1a1a1a);
	padding: 4px 0 !important;
	line-height: 1.4;
	width: 100%;
}

.dth-search-bar__input::placeholder {
	color: var(--dth-fg, #1a1a1a);
	opacity: 0.5;
}

.dth-search-bar__input::-webkit-search-decoration,
.dth-search-bar__input::-webkit-search-cancel-button,
.dth-search-bar__input::-webkit-search-results-button,
.dth-search-bar__input::-webkit-search-results-decoration {
	-webkit-appearance: none;
}

.dth-search-bar__close {
	flex: 0 0 auto;
	background: transparent;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--dth-fg, #1a1a1a);
	opacity: 0.7;
	transition: opacity 0.2s;
}

.dth-search-bar__close:hover {
	opacity: 1;
}

/* DTH-2.23 — search drawer drops below header (like flyout) */
#dth-search-drawer {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	top: 0;   /* JS overrides — no !important so element.style.top works */
	width: 100% !important;
	max-height: 70vh; /* JS may further constrain based on viewport */
	z-index: 99998 !important;
	background: var(--dth-flyout-bg, #ffffff);
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
	transform: translateY(-20px);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

#dth-search-drawer.is-open {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

/* DTH-2.23.1 — backdrop scoped below header */
.dth-search-backdrop {
	position: fixed;
	top: 0; /* JS overrides with header height */
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.3);
	z-index: 99997;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
}

.dth-search-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

/* DTH-2.24.1 — Section A/B + product list view + view-all top-right */

.dth-search-default-grid {
	display: grid;
	grid-template-columns: 280px 1fr;  /* left = fixed nav width, right = products */
	gap: 48px;
	padding: 24px 0 40px;
}

.dth-search-section { margin-bottom: 28px; }
.dth-search-section:last-child { margin-bottom: 0; }

.dth-search-section-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.dth-search-section-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 10px 8px;
	border: 1px solid var(--dth-border, rgba(0,0,0,0.1));
	border-radius: 8px;
	background: var(--dth-flyout-bg, #fff);
	text-decoration: none;
	color: var(--dth-fg, #1a1a1a);
	transition: border-color .15s ease, transform .15s ease;
	text-align: center;
}
.dth-search-section-card:hover {
	border-color: var(--dth-accent, #633e3a);
	transform: translateY(-1px);
}
.dth-search-section-card.no-image {
	justify-content: center;
	text-align: center;
}
.dth-search-section-card__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	background-color: var(--dth-border, rgba(0,0,0,0.06));
	border-radius: 6px;
}
.dth-search-section-card__label {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
	text-align: center;
}

.dth-search-default-right .dth-search-section-label,
.dth-search-products-list-wrap .dth-search-section-label {
	margin-top: 0;
}

.dth-search-products-list,
.dth-search-results-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	align-items: stretch;
}

.dth-search-product-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0;
	border: 1px solid var(--dth-border, rgba(0,0,0,0.1));
	border-radius: 8px;
	background: var(--dth-flyout-bg, #fff);
	text-decoration: none;
	color: var(--dth-fg, #1a1a1a);
	overflow: hidden;
	transition: border-color .15s ease;
}
.dth-search-product-row:hover {
	border-color: var(--dth-accent, #633e3a);
}
.dth-search-product-row__img {
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 1 / 1;
	background-size: cover;
	background-position: center;
	background-color: var(--dth-border, rgba(0,0,0,0.06));
	border-radius: 0;
}
.dth-search-product-row__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: 10px 12px 12px;
	min-width: 0;
	gap: 0;
}
.dth-search-product-row__title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	flex: 1 1 auto;  /* pushes price to bottom */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 6px;
}
.dth-search-product-row__price {
	flex: 0 0 auto;  /* stays at bottom regardless of title length */
	font-size: 12px;
	color: var(--dth-accent, #633e3a);
	font-weight: 600;
	line-height: 1.4;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 6px;
	white-space: normal;
}

.dth-search-bar__viewall {
	display: none;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	margin-right: 16px;
	background: var(--dth-flyout-bg, #fff);
	border: 1px solid var(--dth-border, rgba(0,0,0,0.1));
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dth-fg, #1a1a1a);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .15s ease;
}
.dth-search-bar__viewall:hover {
	border-color: var(--dth-accent, #633e3a);
	color: var(--dth-accent, #633e3a);
}
.dth-search-bar__viewall.is-visible {
	display: inline-flex;
}

.dth-search-tabs {
	display: none;
}

@media (max-width: 900px) {
	.dth-search-default-grid {
		display: block;
		gap: 0;
		padding: 16px 0 24px;
	}
	.dth-search-default-left,
	.dth-search-default-right {
		display: block;
	}

	.dth-search-tabs {
		display: flex;
		gap: 4px;
		border-bottom: 1px solid var(--dth-border, rgba(0,0,0,0.1));
		margin-bottom: 16px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.dth-search-tab {
		flex: 0 0 auto;
		padding: 12px 16px;
		background: transparent;
		border: 0;
		border-bottom: 2px solid transparent;
		font-size: 13px;
		font-weight: 600;
		color: var(--dth-fg-muted, rgba(0,0,0,0.6));
		cursor: pointer;
		white-space: nowrap;
		transition: color .15s ease, border-color .15s ease;
	}
	.dth-search-tab.is-active {
		color: var(--dth-fg, #1a1a1a);
		border-bottom-color: var(--dth-accent, #633e3a);
	}
	.dth-search-tab:hover { color: var(--dth-fg, #1a1a1a); }

	.dth-search-default-grid[data-active-tab="products"] .dth-search-default-left,
	.dth-search-default-grid[data-active-tab="a"] .dth-search-default-right,
	.dth-search-default-grid[data-active-tab="a"] .dth-search-section--b,
	.dth-search-default-grid[data-active-tab="b"] .dth-search-default-right,
	.dth-search-default-grid[data-active-tab="b"] .dth-search-section--a {
		display: none;
	}

	.dth-search-section-grid {
		grid-template-columns: 1fr;
	}
	.dth-search-products-list,
	.dth-search-results-list {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.dth-search-bar__viewall,
	.dth-search-bar__viewall.is-visible {
		display: none !important;
	}
	.dth-search-mobile-viewall {
		display: none;
		padding: 12px 16px;
		margin: 0 0 16px;
		background: var(--dth-accent, #633e3a);
		color: #fff;
		text-align: center;
		border-radius: 8px;
		font-size: 13px;
		font-weight: 600;
		text-decoration: none;
	}
	.dth-search-mobile-viewall.is-visible {
		display: block;
	}
}

/* DTH-2.24.2 — Hide mobile view-all on desktop */
@media (min-width: 901px) {
	.dth-search-mobile-viewall,
	.dth-search-mobile-viewall.is-visible {
		display: none !important;
	}
}

/* DTH-2.24.2 — Product row price + UoM visibility */
.dth-search-product-row__price {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--dth-accent, #633e3a);
	word-break: break-word;
}
.dth-search-product-row__price .dth-result-price-wrap {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
}
.dth-search-product-row__price .dth-result-unit {
	font-size: 11px;
	font-weight: 500;
	opacity: 0.85;
	white-space: nowrap;
}
.dth-search-product-row__price del,
.dth-search-product-row__price del .amount,
.dth-search-product-row__price del .woocommerce-Price-amount {
	color: rgba(0, 0, 0, 0.5) !important;
	text-decoration: line-through !important;
	font-weight: 400 !important;
	font-size: 12px !important;
	margin-right: 4px;
}
.dth-search-product-row__price ins,
.dth-search-product-row__price ins .amount {
	text-decoration: none !important;
	color: #b91d00 !important;
	font-weight: 700 !important;
}
.dth-search-product-row__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.dth-search-product-row__title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: break-word;
	word-break: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* DTH-2.24.3 — make existing WC UoM span visible in search results */
.dth-search-product-row__price .uomp,
.dth-search-product-row__price .uom,
.dth-search-product-row__price span[class*="uom"] {
	display: inline-block !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	color: #cdab8c !important;
	margin-left: 2px !important;
	white-space: nowrap !important;
}
.dth-search-product-row__price {
	overflow: visible !important;
	text-overflow: clip !important;
	white-space: normal !important;
}
.dth-search-products-list .uomp,
.dth-search-products-list .uom,
.dth-search-products-list span[class*="uom"] {
	display: inline-block !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	color: #cdab8c !important;
	margin-left: 2px !important;
	white-space: nowrap !important;
}

/* DTH-2.24.4 — explicit UoM suffix styling */
.dth-search-product-row__price .dth-uom-suffix,
.dth-search-products-list .dth-uom-suffix {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	color: #cdab8c;
	margin-left: 2px;
	white-space: nowrap;
}

/* DTH-2.24.7 — Mobile drawer above header */
@media (max-width: 999px) {
	#dth-mobile-drawer {
		z-index: 100001 !important;
	}
	#dth-mobile-drawer .dth-drawer__backdrop {
		z-index: 1;
	}
	#dth-mobile-drawer .dth-drawer__panel--side {
		z-index: 2;
	}
}

/* DTH-2.25.2 — UoM color matches actual theme price markup */

/* Default: UoM matches regular price color */
.dth-search-product-row__price .uomp,
.dth-search-products-list .uomp {
	color: var(--dth-accent, #633e3a) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	white-space: nowrap !important;
}

/* UoM red when after .reg span (theme's actual sale price markup) */
.dth-search-product-row__price .reg ~ .uomp {
	color: #b91d00 !important;
	font-weight: 600 !important;
}

/* Strikethrough price UoM — muted */
.dth-search-product-row__price del .uomp {
	color: rgba(0,0,0,0.35) !important;
	font-weight: 400 !important;
}

/* General sibling — handles screen-reader-text spans between ins and uomp */
.dth-search-product-row__price ins ~ .uomp {
	color: #b91d00 !important;
	font-weight: 600 !important;
}

/* Sale price numbers red — theme .reg span + standard <ins> */
.dth-search-product-row__price .reg .woocommerce-Price-amount,
.dth-search-product-row__price ins,
.dth-search-product-row__price ins .woocommerce-Price-amount {
	color: #b91d00 !important;
	text-decoration: none !important;
}

/* Strikethrough old price muted */
.dth-search-product-row__price del,
.dth-search-product-row__price del .woocommerce-Price-amount {
	color: rgba(0,0,0,0.38) !important;
	font-size: 11px !important;
	font-weight: 400 !important;
}

/* DTH-2.24.9 — Mobile view-all visibility guarantee */

/* Desktop: hide mobile view-all always */
@media (min-width: 901px) {
	#dth-search-mobile-viewall,
	#dth-search-mobile-viewall.is-visible {
		display: none !important;
	}
}

/* Mobile: show when JS adds is-visible */
@media (max-width: 900px) {
	#dth-search-mobile-viewall {
		display: none;
		width: calc(100% - 32px);
		margin: 8px 16px 0;
		padding: 12px 16px;
		background: var(--dth-accent, #633e3a);
		color: #fff !important;
		text-align: center;
		border-radius: 8px;
		font-size: 13px;
		font-weight: 600;
		text-decoration: none !important;
	}
	#dth-search-mobile-viewall.is-visible {
		display: block;
	}

	/* Container padding — content breathing room */
	#dth-search-results-wrap.dth-container,
	#dth-search-default.dth-container {
		padding-left: 16px;
		padding-right: 16px;
	}

	/* Search bar inner padding on mobile */
	.dth-search-bar__inner {
		padding: 0 16px !important;
	}

	/* Ensure product grid has spacing from edges */
	.dth-search-products-list,
	.dth-search-results-list {
		gap: 8px;
	}

	/* Single column on very small phones */
	@media (max-width: 380px) {
		.dth-search-products-list,
		.dth-search-results-list {
			grid-template-columns: 1fr;
		}
	}
}

/* DTH-2.24.9 — Announcement bar mobile: app-like light appearance */
@media (max-width: 999px) {
	#dth-announcement {
		background: #f2ece0 !important;  /* brand beige — matches site */
		color: var(--dth-accent, #633e3a) !important;
	}
	#dth-announcement a,
	#dth-announcement span {
		color: var(--dth-accent, #633e3a) !important;
	}
}

/* DTH-2.24.9 — Mobile section heading spacing */
@media (max-width: 900px) {
	.dth-results__title {
		font-size: 10px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--dth-fg, #1a1a1a);
		opacity: 0.5;
		margin: 16px 0 10px;
		padding: 0;
	}

	/* Reduce section spacing on mobile */
	.dth-search-section { margin-bottom: 16px; }
}

/* DTH-2.24.11 — Mobile: price + UoM always on one line */
@media (max-width: 900px) {
	.dth-search-product-row__price {
		font-size: 11px !important;
		flex-wrap: nowrap !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		gap: 2px !important;
		align-items: baseline !important;
	}

	.dth-search-product-row__price .woocommerce-Price-amount,
	.dth-search-product-row__price bdi {
		font-size: 11px !important;
		white-space: nowrap !important;
	}

	.dth-search-product-row__price .uomp,
	.dth-search-product-row__price .dth-uom-suffix {
		font-size: 10px !important;
		white-space: nowrap !important;
		flex-shrink: 0 !important;
	}

	.dth-search-product-row__price del {
		font-size: 10px !important;
		white-space: nowrap !important;
	}

	/* Title: tighter on mobile to give price room */
	.dth-search-product-row__title {
		font-size: 12px !important;
		-webkit-line-clamp: 2 !important;
		margin-bottom: 4px !important;
	}
}

/* DTH-2.25.6 — Search On Sale badge */
.dth-search-product-row__img-wrap {
	position: relative;
	width: 100%;
	flex-shrink: 0;
}
.dth-search-product-row__img-wrap .dth-search-product-row__img {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: block;
}
.dth-search-sale-badge {
	position: absolute;
	top: 6px;
	left: 6px;
	background: #c90000;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 3px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	pointer-events: none;
	z-index: 2;
}

@media (max-width: 767px) {
	.dth-search-section-grid {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.dth-search-section-card__img {
		aspect-ratio: 1 / 1;
	}
	.dth-search-section-card__label {
		font-size: 11px;
	}
}
