/*! SD Store 0.1.0 | Silent Diving | Spilt Media
 * Search autosuggest, search results page and header cart icon.
 * Every rule is scoped to .sd-store-*, .sd-search* or .sd-cart-icon* so nothing reaches the theme.
 *
 * Colours and fonts come from what the live site renders (11/18): the Elementor kit globals are still
 * Elementor's defaults (#6EC1E4 / Roboto, not loaded), so binding to --e-global-* would paint the UI light blue.
 * Navy #0B3046 = header band, #12364D = section headings, #0B2636 = text on yellow, Oswald = page titles,
 * Titillium Web = headings, system stack = body. Yellow #F3D500 (the live site yellow) is the accent: focus halo, badge, match highlight.
 */

.sd-search,
.sd-search-ac,
.sd-cart-icon,
.sd-store-backdrop {
	--sd-store-ink: #0b2636;
	--sd-store-navy: #0b3046;
	--sd-store-heading: #12364d;
	--sd-store-text: #26343e;
	--sd-store-muted: #52616c;
	--sd-store-line: #dde6eb;
	--sd-store-line-strong: #c3d1d9;
	--sd-store-control: #7d919e;
	--sd-store-well: #f3f6f8;
	--sd-store-tint: #eef6fa;
	--sd-store-accent: #f3d500;
	--sd-store-mark: #fff0a8;
	--sd-store-ok: #17663a;
	--sd-store-warn: #8a3b12;
	--sd-store-radius: 8px;
	--sd-store-shadow: 0 18px 42px rgba(7, 28, 40, 0.2), 0 2px 8px rgba(7, 28, 40, 0.08);
	--sd-store-font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
	--sd-store-font-head: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--sd-store-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--sd-store-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Visually hidden, still read by screen readers. */
.sd-store-sr,
.sd-search .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* =====================================================================================================
   Autosuggest panel
   ===================================================================================================== */

.sd-store-ac-host {
	position: relative;
}

.sd-search-ac {
	position: absolute;
	top: 0;
	left: 0;
	/* Above the sticky header (99), the mobile quickbar (99998) and the Ally accessibility button
	 * (2147483645), which otherwise sits on the "See all" row on phones. ShopWP's cart (2147483647) stays on top. */
	z-index: 2147483646;
	box-sizing: border-box;
	width: 420px;
	max-height: 70vh;
	padding: 6px 0 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	contain: layout paint style; /* rows re-render on every keystroke; keep that layout inside the panel */
	background: #fff;
	border: 1px solid var(--sd-store-line-strong);
	border-radius: var(--sd-store-radius);
	box-shadow: var(--sd-store-shadow);
	color: var(--sd-store-text);
	font-family: var(--sd-store-font-body);
	font-size: 15px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.4;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	white-space: normal;
	animation: sd-store-pop 0.14s var(--sd-store-ease);
}

.sd-search-ac[hidden] {
	display: none;
}

.sd-search-ac *,
.sd-search-ac *::before,
.sd-search-ac *::after {
	box-sizing: border-box;
}

.sd-search-ac.is-phone {
	border-width: 1px 0;
	border-radius: 0 0 var(--sd-store-radius) var(--sd-store-radius);
	box-shadow: 0 16px 32px rgba(7, 28, 40, 0.22);
}

@keyframes sd-store-pop {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

.sd-search-ac__note {
	margin: 0;
	padding: 8px 16px 6px;
	color: var(--sd-store-muted);
	font-size: 14px;
}

.sd-search-ac__note strong {
	color: var(--sd-store-ink);
	font-weight: 700;
}

.sd-search-ac__list {
	margin: 0;
	padding: 0;
}

.sd-search-ac__group + .sd-search-ac__group {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid var(--sd-store-line);
}

.sd-search-ac__heading {
	margin: 0;
	padding: 10px 16px 4px;
	color: var(--sd-store-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

/* Options are links (so middle-click and long-press work); the input keeps focus via aria-activedescendant. */
.sd-search-ac .sd-search-ac__option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	margin: 0;
	padding: 8px 16px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--sd-store-text);
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.sd-search-ac .sd-search-ac__option:hover,
.sd-search-ac .sd-search-ac__option.is-active {
	background: var(--sd-store-tint);
	color: var(--sd-store-ink);
}

/* Keyboard position: tint plus a navy bar (12:1 against the tint) so the state never relies on colour alone. */
.sd-search-ac .sd-search-ac__option.is-active {
	box-shadow: inset 3px 0 0 var(--sd-store-navy);
}

.sd-search-ac .sd-search-ac__option:focus {
	outline: none;
}

.sd-search-ac mark {
	padding: 0 1px;
	border-radius: 2px;
	background: var(--sd-store-mark);
	color: inherit;
	font-style: normal;
	font-weight: inherit;
}

/* Product rows */
.sd-search-ac__product {
	min-height: 64px;
}

.sd-search-ac__thumb {
	display: flex;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border: 1px solid var(--sd-store-line);
	border-radius: 6px;
	background: #fff; /* white well, not the grey + multiply blend of the cards: blending repaints on every keystroke */
	color: #8a9aa5;
}

.sd-search-ac__thumb img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: none;
	padding: 2px;
	object-fit: contain;
}

.sd-search-ac__noimg {
	width: 22px;
	height: 22px;
}

.sd-search-ac__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sd-search-ac__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--sd-store-heading);
	font-family: var(--sd-store-font-head);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow-wrap: anywhere;
}

.sd-search-ac__meta {
	overflow: hidden;
	color: var(--sd-store-muted);
	font-size: 14px;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sd-search-ac__aside {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	padding-left: 4px;
	text-align: right;
}

.sd-search-ac__price {
	color: var(--sd-store-ink);
	font-family: var(--sd-store-font-head);
	font-size: 16px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	white-space: nowrap;
}

.sd-search-ac__tag {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 4px;
	background: #f6ede8;
	color: var(--sd-store-warn);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

/* Category, page and help rows */
.sd-search-ac__icon {
	display: flex;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: var(--sd-store-well);
	color: var(--sd-store-navy);
}

.sd-search-ac__icon::before {
	width: 18px;
	height: 18px;
	content: "";
}

.sd-search-ac__label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--sd-store-heading);
	font-size: 15px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sd-search-ac__label--wrap {
	white-space: normal;
}

.sd-search-ac__kind {
	flex: 0 0 auto;
	color: var(--sd-store-muted);
	font-size: 13px;
}

.sd-search-ac__chev {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	color: var(--sd-store-muted);
}

/* Mask icons: one span (or ::before) per icon, drawn in currentColor. Each modifier sets --sd-store-i. */
.sd-search-ac__icon::before,
.sd-search-ac__chev,
.sd-search-ac__arrow,
.sd-search-ac__noimg {
	display: block;
	background-color: currentColor;
	-webkit-mask: var(--sd-store-i) center / contain no-repeat;
	mask: var(--sd-store-i) center / contain no-repeat;
}

.sd-search-ac__icon--grid { --sd-store-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.sd-search-ac__icon--doc { --sd-store-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.sd-search-ac__icon--phone { --sd-store-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16.4v2.8a1.9 1.9 0 0 1-2 1.9A18.6 18.6 0 0 1 2.9 5a1.9 1.9 0 0 1 1.9-2h2.8a1.9 1.9 0 0 1 1.9 1.6c.1.9.4 1.8.7 2.6a1.9 1.9 0 0 1-.4 2l-1.2 1.2a15 15 0 0 0 5.9 5.9l1.2-1.2a1.9 1.9 0 0 1 2-.4c.8.3 1.7.6 2.6.7a1.9 1.9 0 0 1 1.6 2z'/%3E%3C/svg%3E"); }
.sd-search-ac__icon--mail { --sd-store-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5 12 13l8.5-6.5'/%3E%3C/svg%3E"); }
.sd-search-ac__arrow { --sd-store-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.sd-search-ac__chev { --sd-store-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.sd-search-ac__noimg { --sd-store-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E"); }

@media (forced-colors: active) {
	.sd-search-ac__icon::before,
	.sd-search-ac__chev,
	.sd-search-ac__arrow,
	.sd-search-ac__noimg {
		background-color: CanvasText;
		forced-color-adjust: none;
	}
}

/* "See all" row */
.sd-search-ac .sd-search-ac__all {
	position: sticky; /* "See all" stays in view when the panel scrolls */
	bottom: 0;
	z-index: 1;
	justify-content: space-between;
	min-height: 48px;
	margin-top: 6px;
	border-top: 1px solid var(--sd-store-line);
	background: #fff;
	color: var(--sd-store-navy);
	font-weight: 600;
}

.sd-search-ac .sd-search-ac__all:hover,
.sd-search-ac .sd-search-ac__all.is-active {
	background: var(--sd-store-tint);
}

.sd-search-ac__list > .sd-search-ac__group:last-child {
	padding-bottom: 8px;
}

.sd-search-ac .sd-search-ac__all strong {
	font-weight: 700;
}

.sd-search-ac__arrow {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
}

.sd-search-ac .sd-search-ac__list > .sd-search-ac__all:first-child {
	margin-top: 0;
	border-top: 0;
}

/* Popular searches and "did you mean" chips */
.sd-search-ac__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 6px 16px 12px;
}

.sd-search-ac .sd-search-ac__chip {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--sd-store-line-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--sd-store-heading);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.sd-search-ac .sd-search-ac__chip:hover,
.sd-search-ac .sd-search-ac__chip.is-active {
	border-color: var(--sd-store-navy);
	background: var(--sd-store-tint);
	box-shadow: none;
}

.sd-search-ac .sd-search-ac__chip.is-active {
	box-shadow: 0 0 0 1px var(--sd-store-navy);
}

.sd-search-ac__cats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 0 0 4px;
}

.sd-search-ac__cats .sd-search-ac__option {
	min-height: 44px;
	padding: 6px 16px;
}

.sd-search-ac__empty {
	margin: 0;
	padding: 12px 16px 4px;
	color: var(--sd-store-text);
	font-size: 15px;
}

.sd-search-ac__empty strong {
	color: var(--sd-store-ink);
}

.sd-search-ac__loading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 14px 16px;
	color: var(--sd-store-muted);
	font-size: 15px;
}

.sd-search-ac__spinner {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 2px solid var(--sd-store-line-strong);
	border-top-color: var(--sd-store-navy);
	border-radius: 50%;
	animation: sd-store-spin 0.8s linear infinite;
}

@keyframes sd-store-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 767.98px) {
	.sd-search-ac {
		font-size: 16px;
	}

	.sd-search-ac .sd-search-ac__option {
		min-height: 48px;
		padding: 8px 20px;
	}

	.sd-search-ac__product {
		min-height: 64px;
	}

	.sd-search-ac__heading,
	.sd-search-ac__note,
	.sd-search-ac__empty,
	.sd-search-ac__loading {
		padding-left: 20px;
		padding-right: 20px;
	}

	.sd-search-ac__chips {
		padding: 6px 20px 12px;
	}

	.sd-search-ac .sd-search-ac__chip {
		min-height: 44px;
		padding: 8px 16px;
	}

	.sd-search-ac__cats .sd-search-ac__option {
		min-height: 48px;
		padding: 6px 12px 6px 20px;
	}

	.sd-search-ac__label {
		white-space: normal;
	}
}

/* =====================================================================================================
   Search results page
   ===================================================================================================== */

.sd-search {
	box-sizing: border-box;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 18px 96px;
	color: var(--sd-store-text);
	font-family: var(--sd-store-font-body);
	font-size: 16px;
	line-height: 1.5;
}

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

.sd-search a {
	color: var(--sd-store-navy);
}

.sd-search h1.sd-search__title,
.sd-search > h1 {
	margin: 0 0 20px;
	color: var(--sd-store-navy);
	font-family: var(--sd-store-font-display);
	font-size: 38px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

/* The page's own search box (printed by templates/search.php) */
.sd-search .sd-search__form {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 640px;
	min-height: 52px;
	margin: 0;
	border: 1px solid var(--sd-store-control);
	border-radius: var(--sd-store-radius);
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.sd-search .sd-search__form:focus-within {
	border-color: var(--sd-store-navy);
	box-shadow: 0 0 0 1px var(--sd-store-navy), 0 0 0 4px var(--sd-store-accent);
}

.sd-search input.sd-search__input,
.sd-search .sd-search__form input[type="search"] {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: var(--sd-store-radius) 0 0 var(--sd-store-radius);
	background: transparent;
	box-shadow: none;
	color: var(--sd-store-ink);
	font-family: inherit;
	font-size: 16px; /* 16px stops iOS zooming on focus */
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
}

.sd-search input.sd-search__input:focus,
.sd-search input.sd-search__input:focus-visible {
	outline: none; /* the form draws the focus ring (:focus-within above) */
	box-shadow: none;
}

.sd-search input.sd-search__input::placeholder {
	color: #5b6872;
	opacity: 1;
}

.sd-search button.sd-search__submit,
.sd-search .sd-search__form [type="submit"] {
	flex: 0 0 auto;
	min-width: 104px;
	margin: 3px;
	padding: 0 22px;
	border: 0;
	border-radius: 6px;
	background: var(--sd-store-navy);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
}

.sd-search button.sd-search__submit:hover,
.sd-search button.sd-search__submit:focus {
	background: var(--sd-store-ink);
	color: #fff;
}

.sd-search button.sd-search__submit:focus-visible {
	outline: 2px solid var(--sd-store-accent);
	outline-offset: 1px;
	box-shadow: none;
}

/* App */
.sd-search [data-sd-search-app] {
	margin-top: 28px;
}

.sd-search__notes {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 20px;
}

.sd-search .sd-search__note {
	margin: 0;
	color: var(--sd-store-muted);
	font-size: 15px;
}

.sd-search__note strong {
	color: var(--sd-store-ink);
	font-weight: 700;
}

.sd-search__layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	grid-template-areas:
		"rail toolbar"
		"rail results";
	grid-template-rows: auto 1fr;
	column-gap: 36px;
	align-items: start;
}

.sd-search__toolbar {
	grid-area: toolbar;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	min-height: 56px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--sd-store-line);
}

.sd-search .sd-search__count {
	margin: 0;
	color: var(--sd-store-text);
	font-size: 16px;
}

.sd-search__count strong {
	color: var(--sd-store-ink);
	font-weight: 700;
}

.sd-search__tools {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sd-search .sd-search__sort {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--sd-store-muted);
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
}

.sd-search select.sd-search__select {
	display: block;
	width: auto;
	min-width: 190px;
	height: 44px;
	margin: 0;
	padding: 0 40px 0 14px;
	border: 1px solid var(--sd-store-control);
	border-radius: 6px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b3046' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--sd-store-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.sd-search select.sd-search__select:hover {
	border-color: var(--sd-store-navy);
}

/* Shared focus ring: navy outline (contrast) with a yellow halo (brand). */
.sd-search select.sd-search__select:focus-visible,
.sd-search .sd-search__btn:focus-visible,
.sd-search .sd-search__chip:focus-visible,
.sd-search .sd-search__cat:focus-visible,
.sd-search .sd-search__facet-more:focus-visible,
.sd-search .sd-search__help a:focus-visible,
.sd-search .sd-search__fallback-list a:focus-visible,
.sd-search .sd-search__dym a:focus-visible {
	outline: 2px solid var(--sd-store-navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--sd-store-accent);
}

/* Buttons. Two classes deep so Hello Elementor's [type=button]:hover pink never wins. */
.sd-search .sd-search__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid var(--sd-store-navy);
	border-radius: 6px;
	background: #fff;
	color: var(--sd-store-navy);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.sd-search .sd-search__btn:hover,
.sd-search .sd-search__btn:focus {
	border-color: var(--sd-store-navy);
	background: var(--sd-store-tint);
	color: var(--sd-store-navy);
}

.sd-search .sd-search__btn--primary,
.sd-search .sd-search__btn--primary:focus {
	background: var(--sd-store-navy);
	color: #fff;
}

.sd-search .sd-search__btn--primary:hover {
	border-color: var(--sd-store-ink);
	background: var(--sd-store-ink);
	color: #fff;
}

.sd-search .sd-search__btn--quiet,
.sd-search .sd-search__btn--quiet:focus {
	border-color: transparent;
	background: transparent;
	color: var(--sd-store-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sd-search .sd-search__btn--quiet:hover {
	border-color: transparent;
	background: var(--sd-store-tint);
	color: var(--sd-store-ink);
}

.sd-search .sd-search__btn svg {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
}

.sd-search .sd-search__btn.sd-search__filter-btn {
	display: none;
}

.sd-search .sd-search__badge[hidden] {
	display: none;
}

.sd-search__count-of {
	color: var(--sd-store-muted);
}

.sd-search .sd-search__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: var(--sd-store-accent);
	color: #111;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

/* Filter rail */
.sd-search__rail {
	grid-area: rail;
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 4px;
}

.sd-search__sheet-head,
.sd-search__sheet-foot {
	display: none;
}

.sd-search .sd-search__rail-title {
	margin: 0 0 8px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--sd-store-line);
	color: var(--sd-store-heading);
	font-family: var(--sd-store-font-head);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	min-height: 56px;
	display: flex;
	align-items: center;
}

.sd-search .sd-search__facet {
	min-width: 0;
	margin: 0;
	padding: 16px 0;
	border: 0;
	border-bottom: 1px solid var(--sd-store-line);
}

.sd-search .sd-search__facet:last-child {
	border-bottom: 0;
}

.sd-search .sd-search__facet legend {
	float: left;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	color: var(--sd-store-heading);
	font-family: var(--sd-store-font-head);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.sd-search .sd-search__facet legend + * {
	clear: both;
}

.sd-search__options {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-search .sd-search__option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	margin: 0;
	padding: 6px 8px;
	border-radius: 6px;
	color: var(--sd-store-text);
	font-size: 15px;
	line-height: 1.3;
	vertical-align: baseline;
	cursor: pointer;
	transition: background-color 0.12s;
}

.sd-search .sd-search__option:hover {
	background: var(--sd-store-tint);
}

.sd-search .sd-search__option.is-checked {
	background: var(--sd-store-tint);
	color: var(--sd-store-ink);
	font-weight: 700;
}

.sd-search .sd-search__option.is-disabled {
	color: #6f7d87;
	cursor: default;
}

.sd-search .sd-search__option.is-disabled:hover {
	background: transparent;
}

.sd-search .sd-search__option input {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--sd-store-navy);
	cursor: inherit;
}

.sd-search .sd-search__option input:focus-visible {
	outline: 2px solid var(--sd-store-navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--sd-store-accent);
}

.sd-search__option-label {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.sd-search__option-n {
	flex: 0 0 auto;
	min-width: 28px;
	padding: 1px 7px;
	border-radius: 10px;
	background: var(--sd-store-well);
	color: var(--sd-store-muted);
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.sd-search__option.is-checked .sd-search__option-n {
	background: #fff;
	color: var(--sd-store-ink);
}

.sd-search .sd-search__facet-more {
	margin: 6px 0 0 8px;
	padding: 6px 0;
	min-height: 36px;
	border: 0;
	background: none;
	color: var(--sd-store-navy);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.sd-search .sd-search__facet-more:hover,
.sd-search .sd-search__facet-more:focus {
	background: none;
	color: var(--sd-store-ink);
}

.sd-search__options .is-extra {
	display: none;
}

.sd-search__options.is-expanded .is-extra {
	display: flex;
}

/* Results column */
.sd-search__results {
	grid-area: results;
	min-width: 0;
}

.sd-search__active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
}

.sd-search__active[hidden] {
	display: none;
}

.sd-search .sd-search__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	margin: 0;
	padding: 6px 14px;
	border: 1px solid var(--sd-store-line-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--sd-store-heading);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.sd-search .sd-search__chip:hover,
.sd-search .sd-search__chip:focus {
	border-color: var(--sd-store-navy);
	background: var(--sd-store-tint);
	color: var(--sd-store-ink);
}

.sd-search .sd-search__chip svg {
	width: 14px;
	height: 14px;
}

.sd-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Product grid */
.sd-search__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 20px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.sd-search__item {
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.sd-search-card {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 12px;
	border: 1px solid var(--sd-store-line);
	border-radius: var(--sd-store-radius);
	background: #fff;
	transition: border-color 0.15s;
}

.sd-search-card:hover {
	border-color: var(--sd-store-control);
}

.sd-search-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: var(--sd-store-well);
}

.sd-search-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	padding: 8%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform 0.25s var(--sd-store-ease);
}

.sd-search-card:hover .sd-search-card__media img {
	transform: scale(1.03);
}

.sd-search-card.is-oos .sd-search-card__media img {
	opacity: 0.55;
}

.sd-search-card__noimg,
.sd-search-ac__noimg {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #7a8a95;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.sd-search-card__noimg svg {
	width: 32px;
	height: 32px;
}

.sd-search-card__flag {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 8px;
	border-radius: 4px;
	background: #fff;
	color: var(--sd-store-warn);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	box-shadow: 0 0 0 1px #ead9cf;
}

.sd-search-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding-top: 14px;
}

.sd-search .sd-search-card__title {
	display: block;
	min-height: 2.6em;
	margin: 0;
	color: var(--sd-store-heading);
	font-family: var(--sd-store-font-head);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	/* No clamp: two lines made sibling products read the same ("Rebreather Mouthpiece (DSV) wit..."), and the
	 * longest stored titles still needed a fifth line in four columns. Cards in a row share the tallest height. */
	overflow-wrap: anywhere;
}

.sd-search a.sd-search-card__link {
	color: inherit;
	text-decoration: none;
}

/* Whole card is the link's hit area; one tab stop per card. */
.sd-search a.sd-search-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--sd-store-radius);
}

.sd-search-card:hover .sd-search-card__link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sd-search a.sd-search-card__link:focus {
	outline: none;
	box-shadow: none;
}

.sd-search a.sd-search-card__link:focus-visible::after {
	outline: 2px solid var(--sd-store-navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--sd-store-accent);
}

.sd-search .sd-search-card__sku,
.sd-search .sd-search-card__type {
	margin: 0;
	overflow: hidden;
	color: var(--sd-store-muted);
	font-size: 14px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Part numbers wrap, never cut off: "Part no. TRAVELWIN…" hid the number shoppers compare against. */
.sd-search .sd-search-card__sku {
	overflow: visible;
	overflow-wrap: anywhere;
	text-overflow: clip;
	white-space: normal;
	font-variant-numeric: tabular-nums;
}

.sd-search-card__sku b {
	color: var(--sd-store-text);
	font-weight: 600;
}

.sd-search .sd-search-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	margin: auto 0 0;
	padding-top: 10px;
	color: var(--sd-store-ink);
	font-family: var(--sd-store-font-head);
	font-size: 19px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.25;
}

.sd-search-card__price s {
	color: var(--sd-store-muted);
	font-size: 15px;
	font-weight: 600;
}

.sd-search .sd-search-card__stock {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--sd-store-ok);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.sd-search-card__stock::before {
	content: "";
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.sd-search .sd-search-card__stock.is-out {
	color: var(--sd-store-warn);
}

.sd-search-card__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin-top: 12px;
	padding: 0 12px;
	border: 1px solid var(--sd-store-navy);
	border-radius: 6px;
	color: var(--sd-store-navy);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color 0.15s, color 0.15s;
}

.sd-search-card:hover .sd-search-card__cta {
	background: var(--sd-store-navy);
	color: #fff;
}

/* Show more */
.sd-search__more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 40px 0 0;
	text-align: center;
}

.sd-search__more[hidden] {
	display: none;
}

.sd-search .sd-search__progress-text {
	margin: 0;
	color: var(--sd-store-muted);
	font-size: 15px;
}

.sd-search__progress {
	width: 220px;
	max-width: 100%;
	height: 4px;
	overflow: hidden;
	border-radius: 2px;
	background: var(--sd-store-line);
}

.sd-search__progress span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: var(--sd-store-navy);
}

.sd-search .sd-search__more .sd-search__btn {
	min-width: 220px;
	min-height: 48px;
	margin-top: 4px;
}

/* Section headings inside the app */
.sd-search .sd-search__h2 {
	margin: 0 0 16px;
	color: var(--sd-store-heading);
	font-family: var(--sd-store-font-head);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.25;
}

.sd-search .sd-search__h3 {
	margin: 0 0 14px;
	color: var(--sd-store-heading);
	font-family: var(--sd-store-font-head);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}

/* Guides & manuals */
.sd-search__guides {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--sd-store-line);
}

.sd-search__guide-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-search__guide {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--sd-store-line);
	border-radius: var(--sd-store-radius);
	background: #fff;
	transition: border-color 0.15s;
}

.sd-search__guide:hover {
	border-color: var(--sd-store-control);
}

.sd-search .sd-search__guide-kind {
	margin: 0;
	color: var(--sd-store-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.sd-search .sd-search__guide-title {
	margin: 0;
	color: var(--sd-store-heading);
	font-family: var(--sd-store-font-head);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}

.sd-search .sd-search__guide-desc {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--sd-store-muted);
	font-size: 15px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.sd-search .sd-search__guide:hover .sd-search-card__link {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Zero results and the browse state */
.sd-search__empty {
	display: grid;
	gap: 40px;
	max-width: 1144px;
}

.sd-search .sd-search__empty-lead {
	max-width: 640px;
	margin: 0;
	color: var(--sd-store-text);
	font-size: 17px;
	line-height: 1.55;
}

.sd-search__empty-lead strong {
	color: var(--sd-store-ink);
}

.sd-search__dym {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 16px 0 0;
	font-size: 16px;
}

.sd-search__dym-label {
	color: var(--sd-store-muted);
	font-weight: 600;
}

.sd-search__help {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px 24px;
	padding: 24px 28px;
	border: 1px solid #cfe1ea;
	border-radius: var(--sd-store-radius);
	background: var(--sd-store-tint);
}

.sd-search__help-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--sd-store-navy);
	color: var(--sd-store-accent);
}

.sd-search__help-icon svg {
	width: 26px;
	height: 26px;
}

.sd-search .sd-search__help-title {
	margin: 0 0 4px;
}

.sd-search .sd-search__help-text {
	margin: 0;
	color: var(--sd-store-text);
	font-size: 16px;
}

.sd-search__help-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sd-search__cats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-search .sd-search__cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 100%;
	min-height: 56px;
	padding: 10px 16px;
	border: 1px solid var(--sd-store-line);
	border-radius: var(--sd-store-radius);
	background: #fff;
	color: var(--sd-store-heading);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color 0.15s, background-color 0.15s;
}

.sd-search .sd-search__cat:hover {
	border-color: var(--sd-store-navy);
	background: var(--sd-store-tint);
	color: var(--sd-store-ink);
}

.sd-search__cat svg {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	color: var(--sd-store-muted);
}

/* Filtered to nothing */
.sd-search__filtered-empty {
	margin: 32px 0 0;
	padding: 32px 24px;
	border: 1px dashed var(--sd-store-line-strong);
	border-radius: var(--sd-store-radius);
	text-align: center;
}

.sd-search .sd-search__filtered-empty p {
	margin: 0 0 16px;
	color: var(--sd-store-text);
}

/* Server list shown when the index cannot load */
.sd-search .sd-search__fallback-list {
	display: grid;
	gap: 0;
	max-width: 760px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--sd-store-line);
}

.sd-search .sd-search__fallback-list li {
	margin: 0;
	border-bottom: 1px solid var(--sd-store-line);
}

.sd-search .sd-search__fallback-list a {
	display: block;
	padding: 12px 4px;
	color: var(--sd-store-heading);
	font-weight: 600;
	text-decoration: none;
}

.sd-search .sd-search__fallback-list a:hover {
	text-decoration: underline;
}

/* Loading skeleton */
.sd-search__skel {
	display: block;
	border-radius: 6px;
	background: linear-gradient(90deg, #eef2f4 0%, #f6f8f9 40%, #eef2f4 80%);
	background-size: 300% 100%;
	animation: sd-store-shimmer 1.4s ease-in-out infinite;
}

.sd-search__skel-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--sd-store-line);
	border-radius: var(--sd-store-radius);
}

.sd-search__skel--img {
	aspect-ratio: 1 / 1;
}

.sd-search__skel--line {
	height: 14px;
}

.sd-search__skel--short {
	width: 55%;
}

.sd-search__skel--btn {
	height: 42px;
	margin-top: 6px;
}

.sd-search__skel--bar {
	width: 160px;
	height: 18px;
}

@keyframes sd-store-shimmer {
	from { background-position: 100% 0; }
	to { background-position: 0 0; }
}

/* Large desktop: 4 columns. Small desktop: 3. */
@media (min-width: 1025px) and (max-width: 1199.98px) {
	.sd-search__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Tablet: no rail; filters fold into a bar under the toolbar */
@media (max-width: 1024.98px) {
	.sd-search {
		padding: 32px 24px 64px;
	}

	.sd-search__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"toolbar"
			"rail"
			"results";
		grid-template-rows: auto;
	}

	.sd-search .sd-search__btn.sd-search__filter-btn {
		display: inline-flex;
	}

	.sd-search__rail {
		position: static;
		display: none;
		max-height: none;
		overflow: visible;
		padding: 0;
	}

	.sd-search__rail.is-open {
		display: block;
		margin-top: 16px;
		padding: 4px 20px;
		border: 1px solid var(--sd-store-line);
		border-radius: var(--sd-store-radius);
		background: #fbfdfe;
	}

	.sd-search .sd-search__rail-title {
		display: none;
	}

	.sd-search__rail .sd-search__sheet-body {
		display: grid;
		grid-template-columns: minmax(180px, 1fr) 3fr;
		gap: 0 32px;
	}

	.sd-search .sd-search__rail .sd-search__facet {
		border-bottom: 0;
	}

	.sd-search__rail [data-sd-types] {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2px 12px;
	}

	.sd-search__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px 16px;
	}

	.sd-search__cats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Phone */
@media (max-width: 767.98px) {
	.sd-search {
		padding: 24px 20px 48px;
	}

	.sd-search h1.sd-search__title,
	.sd-search > h1 {
		margin-bottom: 16px;
		font-size: 28px;
	}

	.sd-search .sd-search__form {
		min-height: 54px; /* keeps the inset Search button at a 46px tap target */
	}

	.sd-search button.sd-search__submit,
	.sd-search .sd-search__form [type="submit"] {
		min-width: 0;
		padding: 0 16px;
	}

	.sd-search [data-sd-search-app] {
		margin-top: 20px;
	}

	.sd-search__toolbar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		min-height: 0;
		padding-bottom: 16px;
	}

	.sd-search .sd-search__count {
		grid-column: 1 / -1;
		order: -1;
	}

	.sd-search__tools {
		display: contents;
	}

	.sd-search .sd-search__filter-btn,
	.sd-search .sd-search__sort {
		width: 100%;
	}

	.sd-search .sd-search__sort-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.sd-search select.sd-search__select {
		width: 100%;
		min-width: 0;
		height: 48px;
		font-size: 16px; /* iOS zooms the page on focus below 16px */
	}

	.sd-search .sd-search__filter-btn {
		min-height: 48px;
	}

	.sd-search .sd-search__chip {
		min-height: 44px;
	}

	/* Bottom sheet */
	.sd-search__rail.is-open {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 2147483646; /* over the Ally button (2147483645), which covered "Clear all" */
		display: flex;
		flex-direction: column;
		max-height: 86vh;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 16px 16px 0 0;
		background: #fff;
		box-shadow: 0 -12px 36px rgba(7, 28, 40, 0.28);
		animation: sd-store-sheet 0.22s var(--sd-store-ease);
	}

	.sd-search__rail.is-open .sd-search__sheet-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 60px;
		padding: 6px 8px 6px 20px;
		border-bottom: 1px solid var(--sd-store-line);
	}

	.sd-search__rail .sd-search__sheet-body {
		display: block;
		flex: 1 1 auto;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 0 20px;
	}

	.sd-search .sd-search__rail .sd-search__facet {
		border-bottom: 1px solid var(--sd-store-line);
	}

	.sd-search .sd-search__rail .sd-search__facet:last-child {
		border-bottom: 0;
	}

	.sd-search__rail .sd-search__options {
		display: flex;
	}

	.sd-search .sd-search__option {
		min-height: 48px;
	}

	.sd-search__rail.is-open .sd-search__sheet-foot {
		display: grid;
		grid-template-columns: 1fr 1.6fr;
		gap: 12px;
		padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--sd-store-line);
		background: #fff;
	}

	.sd-search .sd-search__sheet-title {
		margin: 0;
		color: var(--sd-store-heading);
		font-family: var(--sd-store-font-head);
		font-size: 20px;
		font-weight: 600;
		line-height: 1.3;
	}

	.sd-search .sd-search__sheet-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 8px;
		background: transparent;
		color: var(--sd-store-navy);
		cursor: pointer;
	}

	.sd-search .sd-search__sheet-close:hover,
	.sd-search .sd-search__sheet-close:focus {
		background: var(--sd-store-tint);
		color: var(--sd-store-navy);
	}

	.sd-search .sd-search__sheet-close:focus-visible {
		outline: 2px solid var(--sd-store-navy);
		outline-offset: 0;
		box-shadow: 0 0 0 4px var(--sd-store-accent);
	}

	.sd-search .sd-search__sheet-close svg {
		width: 22px;
		height: 22px;
	}

	.sd-search .sd-search__sheet-foot .sd-search__btn {
		width: 100%;
		min-height: 48px;
	}

	/* Two compact cards per row */
	.sd-search__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
		margin-top: 20px;
	}

	.sd-search-card {
		padding: 8px;
	}

	.sd-search-card__body {
		padding: 10px 2px 2px;
	}

	.sd-search .sd-search-card__title {
		font-size: 16px;
	}

	.sd-search .sd-search-card__type {
		display: none;
	}

	.sd-search .sd-search-card__price {
		font-size: 17px;
	}

	.sd-search-card__price s {
		font-size: 14px;
	}

	.sd-search-card__cta {
		min-height: 44px;
		margin-top: 10px;
	}

	.sd-search-card__flag {
		top: 6px;
		left: 6px;
	}

	.sd-search__guides {
		margin-top: 48px;
		padding-top: 28px;
	}

	.sd-search__guide-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.sd-search .sd-search__h2 {
		font-size: 22px;
	}

	.sd-search__empty {
		gap: 32px;
	}

	.sd-search__help {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 20px;
	}

	.sd-search__help-icon {
		width: 44px;
		height: 44px;
	}

	.sd-search__help-actions .sd-search__btn {
		flex: 1 1 100%;
		min-height: 48px;
	}

	.sd-search__cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.sd-search .sd-search__cat {
		min-height: 56px;
		padding: 10px 12px;
	}

	.sd-search__more .sd-search__btn {
		width: 100%;
	}
}

/* Small phones: one horizontal card per row */
@media (max-width: 379.98px) {
	.sd-search__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.sd-search-card {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 0 14px;
		align-items: start;
		padding: 10px;
	}

	.sd-search-card__body {
		padding: 0;
	}

	.sd-search .sd-search-card__title {
		min-height: 0;
	}

	.sd-search .sd-search-card__price {
		margin-top: 4px;
		padding-top: 4px;
	}

	.sd-search-card__cta {
		min-height: 44px;
		margin-top: 10px;
	}
}

@keyframes sd-store-sheet {
	from { transform: translateY(100%); }
	to { transform: none; }
}

.sd-store-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2147483645; /* same layer as the Ally button and later in the DOM, so it dims it; the sheet sits above */
	background: rgba(7, 28, 40, 0.5);
	animation: sd-store-fade 0.2s ease-out;
}

@keyframes sd-store-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

html.sd-store-scroll-lock,
html.sd-store-scroll-lock body {
	overflow: hidden;
}

/* =====================================================================================================
   Header cart icon (Elementor widget, [sd_cart_icon] and the mobile bars)
   ===================================================================================================== */

button.sd-cart-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--sd-store-navy);
	font-family: var(--sd-store-font-body);
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.15s;
}

button.sd-cart-icon:hover,
button.sd-cart-icon:focus {
	background: var(--sd-store-tint);
	color: inherit;
}

button.sd-cart-icon:focus:not(:focus-visible) {
	background: transparent;
	outline: none;
	box-shadow: none;
}

button.sd-cart-icon:focus-visible {
	outline: 2px solid var(--sd-store-navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--sd-store-accent);
}

.sd-cart-icon svg {
	display: block;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	pointer-events: none;
}

.sd-cart-icon__count {
	position: absolute;
	top: -2px;
	right: -4px; /* the corner of the 44px button, clear of the 26px glyph */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 18px;
	height: 18px;
	margin: 0;
	padding: 0 4px;
	border: 1.5px solid #fff;
	border-radius: 9px;
	background-color: var(--sd-store-accent);
	color: #111;
	font-family: var(--sd-store-font-body);
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
	line-height: 1;
	text-transform: none;
	pointer-events: none;
}

.sd-cart-icon__count[hidden] {
	display: none;
}

.sd-cart-icon__count.is-bump {
	animation: sd-store-bump 0.32s var(--sd-store-ease);
}

@keyframes sd-store-bump {
	0% { transform: scale(1); }
	40% { transform: scale(1.3); }
	100% { transform: scale(1); }
}

/* Desktop header 453: [search f9980e3][cart c4a7e11] on one line in column 05f5646.
 * :has() keeps every public page unchanged: the widget prints nothing while the store layer is off.
 * Specificity (0,5,0)+ beats sd-header-polish.css (0,4,0) without !important. */
@media (min-width: 1025px) {
	.elementor-453 .elementor-element.elementor-element-05f5646 > .elementor-widget-wrap:has(> .elementor-widget-sd-cart-icon) {
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-end;
		gap: 12px;
	}

	.elementor-453 .elementor-element.elementor-element-05f5646 > .elementor-widget-wrap:has(> .elementor-widget-sd-cart-icon) > .elementor-element-f9980e3 {
		flex: 0 1 auto;
		min-width: 0;
		margin-block: 0; /* Elementor's widget spacing (20px on a non-last widget) would push the box up */
	}

	.elementor-453 .elementor-element.elementor-element-05f5646 > .elementor-widget-wrap > .elementor-widget-sd-cart-icon {
		flex: 0 0 auto;
		align-self: center;
		width: auto;
		margin: 0;
	}

	.elementor-453 .elementor-widget-sd-cart-icon .elementor-widget-container {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}
}

/* Elementor gives every widget but the last a bottom margin (kit widget spacing, 20px). With the cart widget after
 * the search, the search box picked it up and the header grew 20px at 1024 and below, where the cart is hidden. */
.elementor-453 .elementor-element.elementor-element-05f5646 > .elementor-widget-wrap > .elementor-element.elementor-widget {
	margin-bottom: 0;
	margin-block-end: 0;
}

/* 1024px and below the cart lives in #sd-mobile-header-actions (added by sd-cart-icon.js): no duplicate. */
@media (max-width: 1024px) {
	.elementor-453 .elementor-element.elementor-widget-sd-cart-icon {
		display: none;
	}
}

/* Inside the mobile header row (Call | Cart | Shop Products) */
@media (max-width: 1024px) {
	.sd-mobile-header-actions.sd-store-has-cart {
		grid-template-columns: 0.92fr 1.36fr 52px;
	}

	.sd-mobile-quickbar.sd-store-has-cart {
		grid-template-columns: 0.86fr 1.22fr 46px 0.92fr;
		padding-left: 12px;
		padding-right: 12px;
	}

	.sd-mobile-header-actions button.sd-cart-icon,
	.sd-mobile-quickbar button.sd-cart-icon {
		width: 100%;
		min-width: 0;
		border-radius: 6px;
	}

	.sd-mobile-header-actions button.sd-cart-icon {
		height: auto;
		min-height: 40px;
		border: 1px solid var(--sd-store-line-strong);
		background: #fff;
		color: var(--sd-store-navy);
	}

	.sd-mobile-header-actions button.sd-cart-icon:hover {
		border-color: var(--sd-store-navy);
		background: var(--sd-store-tint);
	}

	.sd-mobile-header-actions .sd-cart-icon svg {
		width: 24px;
		height: 24px;
	}

	/* The quickbar's own rule (button { border: 0 }) is one class deep; these are two. */
	.sd-mobile-quickbar button.sd-cart-icon {
		height: 38px;
		min-height: 38px;
		padding: 0;
		border: 1px solid rgba(255, 255, 255, 0.28);
		background: transparent;
		color: #fff;
	}

	.sd-mobile-quickbar button.sd-cart-icon:hover,
	.sd-mobile-quickbar button.sd-cart-icon:focus {
		background: rgba(255, 255, 255, 0.1);
		color: #fff;
	}

	.sd-mobile-quickbar button.sd-cart-icon:focus-visible {
		outline: 2px solid var(--sd-store-accent);
		outline-offset: 1px;
		box-shadow: none;
	}

	.sd-mobile-quickbar .sd-cart-icon svg {
		width: 22px;
		height: 22px;
	}

	.sd-mobile-quickbar .sd-cart-icon__count {
		top: -6px;
		right: -6px;
		border-color: #0b2636;
	}

	.sd-mobile-header-actions .sd-cart-icon__count {
		top: -7px;
		right: -7px;
	}
}

/* 10: 16px in the header search on phones, so iOS doesn't zoom the page on focus (the widget sets 14px). */
@media (max-width: 767px) {
	.elementor-453 .elementor-element.elementor-element-f9980e3 input.e-search-input,
	.elementor-453 .elementor-element.elementor-element-f9980e3 input.e-search-input::placeholder {
		font-size: 16px;
	}
}

@media (max-width: 374px) {
	.sd-mobile-header-actions.sd-store-has-cart {
		grid-template-columns: 1fr 1.18fr 48px;
	}

	.sd-mobile-quickbar.sd-store-has-cart {
		grid-template-columns: 0.86fr 1.22fr 42px 0.92fr;
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* ShopWP drawer: "Your cart is empty" ships as #ddd on white (1.36:1); this grey is 6.4:1. */
#swp-cart.swp-cart-is-empty .swp-cart-contents .swp-cart-title-text {
	color: #52616c;
}

/* =====================================================================================================
   Reduced motion
   ===================================================================================================== */

@media (prefers-reduced-motion: reduce) {
	.sd-search-ac,
	.sd-search__rail.is-open,
	.sd-store-backdrop,
	.sd-cart-icon__count.is-bump {
		animation: none;
	}

	.sd-search__skel,
	.sd-search-ac__spinner {
		animation-duration: 0s;
		animation-iteration-count: 1;
	}

	.sd-search-card,
	.sd-search-card__media img,
	.sd-search-card__cta,
	.sd-search .sd-search__btn,
	.sd-search .sd-search__form,
	button.sd-cart-icon {
		transition: none;
	}

	.sd-search-card:hover .sd-search-card__media img {
		transform: none;
	}
}
