/**
 * Armeria 3S — header, mega menu, off-canvas menu, cart drawer, live search.
 * Tokens: --a3s-* from base.css (bridged to Elementor globals). Extras carry fallbacks.
 * Desktop ≥ 992 px; mobile header below. Motion: fast ease-out, drawers ≤ 300 ms,
 * nothing moves with prefers-reduced-motion.
 */

/* ---------- Local tokens ---------- */
body {
	--a3s-hf-wide: var(--a3s-container-wide, 1620px);
	--a3s-hf-dark2: var(--a3s-color-dark-2, #3a3536);
	--a3s-hf-hover: var(--a3s-color-link-hover, #b84a0e);
	--a3s-hf-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--a3s-hf-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
	--a3s-hf-overlay: rgba(35, 31, 32, 0.45);
	--a3s-hf-ring: 0 0 0 3px rgba(233, 94, 27, 0.35);
}

/* ---------- Shared bits ---------- */
.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	padding: 12px 16px;
	background: var(--a3s-color-bg);
	color: var(--a3s-color-text);
	font-weight: 600;
	box-shadow: var(--a3s-hf-ring);
}

.a3s-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.a3s-iconbtn:focus-visible,
.a3s-hicon:focus-visible,
.a3s-search__submit:focus-visible {
	outline: 2px solid var(--a3s-color-primary);
	outline-offset: 2px;
}

/* ---------- Header shell + sticky ---------- */
.a3s-header {
	position: relative;
	z-index: 1000;
	background: var(--a3s-color-bg);
	box-shadow: var(--a3s-shadow, 0 4px 4px rgba(0, 0, 0, 0.25));
}

/*
 * Sticky: the whole header is sticky with a negative top equal to the height above the part
 * that must stay visible (desktop: menu bar; mobile: logo + search rows). header.js measures it
 * into --a3s-stick; the fallbacks are the reference heights.
 */
.a3s-sticky-header .a3s-header {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--a3s-stick, -178px));
}

/* ---------- Top bar ---------- */
.a3s-topbar {
	background: var(--a3s-color-secondary);
	color: #fff;
	font-size: 0.875rem;
	line-height: 1.6;
}

.a3s-topbar__inner {
	display: grid;
	grid-template-columns: 1fr minmax(0, 1.4fr) 1fr;
	align-items: center;
	gap: 16px;
	max-width: var(--a3s-hf-wide);
	min-height: 52px;
	margin-inline: auto;
	padding: 4px 50px;
}

.a3s-topbar a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.a3s-topbar a:focus-visible,
.a3s-nav a:focus-visible,
.a3s-nav button:focus-visible {
	outline: 2px solid var(--a3s-color-accent);
	outline-offset: -2px;
}

.a3s-topbar__text {
	text-align: center;
	font-weight: 500;
}

.a3s-topbar__text p {
	margin: 0;
}

.a3s-topbar__links,
.a3s-topbar__menu,
.a3s-social--topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.a3s-topbar__links {
	justify-content: flex-end;
}

.a3s-social--topbar {
	gap: 4px;
}

.a3s-social--topbar a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
}

.a3s-social--topbar svg {
	width: 20px;
	height: 20px;
}

.a3s-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.a3s-lang ul {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.a3s-lang a {
	display: inline-block;
	padding: 2px 6px;
	color: inherit;
	text-decoration: none;
}

.a3s-lang abbr {
	text-decoration: none;
}

.a3s-lang a[aria-current] {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (hover: hover) {
	.a3s-topbar a:hover {
		color: var(--a3s-color-accent);
	}
}

/* ---------- Masthead (desktop) ---------- */
.a3s-masthead__inner {
	display: grid;
	grid-template-columns: 1fr minmax(240px, 520px) 1fr;
	grid-template-areas: "logo search actions";
	align-items: center;
	gap: 24px;
	max-width: var(--a3s-hf-wide);
	margin-inline: auto;
	padding: 18px 12px;
}

.a3s-masthead__burger {
	display: none;
	grid-area: burger;
}

.a3s-masthead__logo {
	grid-area: logo;
	justify-self: start;
	line-height: 0;
}

.a3s-masthead__logo img {
	display: block;
	width: auto;
	max-width: 266px;
	height: 88px;
	object-fit: contain;
}

.a3s-masthead .a3s-search {
	grid-area: search;
}

.a3s-hactions {
	grid-area: actions;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 20px;
}

.a3s-hicon {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--a3s-color-text);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.a3s-hicon__icon {
	position: relative;
	display: inline-flex;
}

.a3s-hicon__icon > svg {
	width: 24px;
	height: 24px;
}

.a3s-cart-count,
.a3s-hicon__count {
	position: absolute;
	top: -7px;
	right: -9px;
	min-width: 17px;
	padding: 0 4px;
	border-radius: 30px;
	background: var(--a3s-color-primary);
	color: var(--a3s-color-primary-contrast);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 17px;
	text-align: center;
}

.a3s-cart-count[data-count="0"],
.a3s-hicon__count[hidden] {
	display: none;
}

.a3s-cart-total {
	margin-left: 4px;
	color: var(--a3s-color-muted);
	font-variant-numeric: tabular-nums;
}

.a3s-cart-total::before {
	content: "· ";
}

.a3s-hicon:has(.a3s-cart-count[data-count="0"]) .a3s-cart-total {
	display: none;
}

@media (hover: hover) {
	.a3s-hicon:hover {
		color: var(--a3s-hf-hover);
	}
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	.a3s-hicon__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Plugin icons (wishlist, compare…): icon + count only; with them, labels give way below 1400 px. */
.a3s-hactions .a3s-hicon[data-a3s-hicon] .a3s-hicon__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
	.a3s-hactions:has(.a3s-hicon[data-a3s-hicon]) .a3s-hicon__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Top bar centre slot: desktop / mobile variants (only printed when a plugin fills the slot). */
@media (max-width: 991.98px) {
	.a3s-topbar__text--desktop {
		display: none;
	}
}

@media (min-width: 992px) {
	.a3s-topbar__text--mobile {
		display: none;
	}
}

/* ---------- Search + live results ---------- */
.a3s-search {
	position: relative;
	width: 100%;
}

.a3s-search__form {
	position: relative;
	margin: 0;
}

.a3s-search__input {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 56px 0 16px;
	border: 1px solid transparent;
	border-radius: var(--a3s-radius-lg, 4px);
	background: var(--a3s-color-surface);
	color: var(--a3s-color-text);
	font: inherit;
	font-size: 1rem;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.a3s-search__input::placeholder {
	color: var(--a3s-color-muted);
	opacity: 1;
}

.a3s-search__input::-webkit-search-cancel-button {
	display: none;
}

.a3s-search__input:focus {
	border-color: var(--a3s-color-primary);
	outline: 0;
	box-shadow: var(--a3s-hf-ring);
}

.a3s-search__submit {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--a3s-color-text);
	cursor: pointer;
}

.a3s-search__results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 30;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	border: 1px solid var(--a3s-color-border);
	background: var(--a3s-color-bg);
	box-shadow: 0 11px 10px rgba(0, 0, 0, 0.18);
	text-align: left;
}

.a3s-search__results[hidden],
.a3s-search__msg[hidden] {
	display: none;
}

.a3s-search__list {
	margin: 0;
	padding: 4px 0;
	list-style: none;
}

.a3s-search__list:empty {
	display: none;
}

.a3s-search__opt a {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	color: var(--a3s-color-text);
	text-decoration: none;
}

.a3s-search__opt img,
.a3s-search__noimg {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
	background: var(--a3s-color-surface);
}

.a3s-search__name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.875rem;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.a3s-search__price {
	color: var(--a3s-color-price, #b84a0e);
	font-size: 0.875rem;
	font-weight: 600;
	text-align: right;
	white-space: nowrap;
}

.a3s-search__price del {
	display: block;
	color: var(--a3s-color-muted);
	font-size: 0.75rem;
	font-weight: 500;
}

.a3s-search__price ins {
	text-decoration: none;
}

.a3s-search__opt--all a {
	display: block;
	margin-top: 4px;
	padding: 12px;
	border-top: 1px solid var(--a3s-color-border);
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

.a3s-search__opt[aria-selected="true"] a {
	background: var(--a3s-color-surface);
	box-shadow: inset 3px 0 0 var(--a3s-color-primary);
}

@media (hover: hover) {
	.a3s-search__opt a:hover {
		background: var(--a3s-color-surface);
	}
}

.a3s-search__msg {
	margin: 0;
	padding: 14px 16px;
	color: var(--a3s-color-muted);
	font-size: 0.875rem;
}

.a3s-search.is-loading .a3s-search__submit {
	opacity: 0.5;
}

/* ---------- Menu bar + mega menu (desktop) ---------- */
.a3s-nav {
	background: var(--a3s-hf-dark2);
	color: #fff;
}

.a3s-nav__inner {
	position: relative;
	display: flex;
	align-items: stretch;
	max-width: 1296px;
	margin-inline: auto;
}

.a3s-nav .a3s-menu {
	display: flex;
	flex: 1;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.a3s-nav .a3s-menu > li {
	display: flex;
	align-items: stretch;
}

.a3s-nav .a3s-menu > .a3s-has-dropdown {
	position: relative;
}

.a3s-nav .a3s-menu > li > a {
	display: flex;
	align-items: center;
	min-height: 45px;
	padding: 0 20px;
	color: inherit;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.a3s-nav .a3s-menu > li.is-open > a,
.a3s-nav .a3s-menu > .current-menu-item > a,
.a3s-nav .a3s-menu > .current-menu-ancestor > a {
	background: var(--a3s-color-primary);
	color: var(--a3s-color-primary-contrast);
}

@media (hover: hover) {
	.a3s-nav .a3s-menu > li:hover > a {
		background: var(--a3s-color-primary);
		color: var(--a3s-color-primary-contrast);
	}
}

/* Desktop toggle: hidden until focused by keyboard (mouse = hover, touch = first tap). */
.a3s-nav .a3s-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.a3s-nav .a3s-nav__toggle svg {
	width: 16px;
	height: 16px;
	transition: transform 0.15s ease;
}

.a3s-nav .a3s-nav__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.a3s-nav .a3s-nav__toggle:not(:focus-visible) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* Panels: 300 ms fade (reference parity); close is delayed by header.js (intent), not by CSS. */
.a3s-nav .a3s-sub {
	position: absolute;
	top: 100%;
	z-index: 20;
	visibility: hidden;
	opacity: 0;
	background: var(--a3s-color-surface);
	color: var(--a3s-color-text);
	box-shadow: 0 12px 16px rgba(0, 0, 0, 0.12);
	transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

.a3s-nav .a3s-menu > li.is-open > .a3s-sub,
.a3s-nav:not(.is-ready) .a3s-menu > li:is(:hover, :focus-within) > .a3s-sub {
	visibility: visible;
	opacity: 1;
	transition-delay: 0s;
}

.a3s-nav .a3s-sub a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

@media (hover: hover) {
	.a3s-nav .a3s-sub a:hover {
		color: var(--a3s-hf-hover);
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

.a3s-nav .a3s-sub a:focus-visible {
	outline: 2px solid var(--a3s-color-primary);
	outline-offset: 1px;
}

:where(.a3s-nav .a3s-sub) ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Simple dropdown */
.a3s-nav .a3s-dropdown {
	left: 0;
	min-width: 240px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
}

.a3s-nav .a3s-dropdown a {
	display: block;
	padding: 7px 20px;
	font-size: 0.875rem;
	line-height: 1.4;
}

/* Mega panel */
.a3s-nav .a3s-mega {
	left: 0;
	right: 0;
	max-height: calc(100vh - 140px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.a3s-nav .a3s-mega__inner {
	display: flex;
	align-items: stretch;
}

.a3s-nav .a3s-mega__featured {
	flex: 0 0 220px;
	padding: 20px 22px;
	background: var(--a3s-hf-dark2);
	color: #fff;
}

.a3s-nav .a3s-mega__featured > li + li {
	margin-top: 14px;
}

.a3s-nav .a3s-mega__featured > li > a {
	font-weight: 600;
	text-transform: uppercase;
}

.a3s-nav .a3s-mega__featured .a3s-sub-links a {
	font-size: 0.875rem;
	opacity: 0.9;
}

@media (hover: hover) {
	.a3s-nav .a3s-mega__featured a:hover {
		color: var(--a3s-color-accent);
	}
}

.a3s-nav .a3s-mega__groups {
	flex: 1;
	padding: 20px 22px 24px;
	columns: 5 180px;
	column-gap: 24px;
}

.a3s-nav .a3s-mega__group {
	break-inside: avoid;
	padding-bottom: 16px;
}

.a3s-nav .a3s-mega__groups > li > a {
	display: block;
	margin-bottom: 4px;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
}

.a3s-nav .a3s-sub-links a {
	display: block;
	padding: 2px 0;
	font-size: 0.875rem;
	line-height: 1.6;
}

.a3s-nav .a3s-sub-links--d2 {
	padding-left: 12px;
}

/* Cart shortcut in the stuck bar */
.a3s-nav__cart {
	display: none;
	align-items: center;
	padding: 0 12px;
	color: inherit;
}

.a3s-nav__cart .a3s-hicon__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.a3s-header.is-stuck .a3s-nav__cart {
	display: inline-flex;
}

@media (hover: hover) {
	.a3s-nav__cart:hover {
		color: var(--a3s-color-primary);
	}
}

@media (max-width: 1299.98px) {
	.a3s-nav .a3s-menu > li > a {
		padding: 0 12px;
		font-size: 0.875rem;
	}
}

/* ---------- Mobile header (< 992 px) ---------- */
/* Phones: one-row top bar like the reference (icon-only links; language switcher lives in the drawer). */
@media (max-width: 575.98px) {
	.a3s-topbar__link {
		padding: 4px; /* 24 px target (WCAG 2.5.8). */
	}

	.a3s-topbar__link span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.a3s-topbar .a3s-lang {
		display: none;
	}
}

@media (max-width: 991.98px) {
	.a3s-header {
		box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12);
	}

	.a3s-sticky-header .a3s-header {
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--a3s-stick, -46px));
	}

	.a3s-topbar__inner {
		grid-template-columns: 1fr auto;
		min-height: 46px;
		padding: 4px 12px;
		font-size: 12px; /* Not rem: the 14 px phone root would give 10.5 px. */
	}

	.a3s-topbar__social {
		display: none;
	}

	.a3s-topbar__text {
		min-width: 0;
		overflow: hidden;
		text-align: left;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.a3s-topbar__text p {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.a3s-topbar__menu {
		display: none;
	}

	.a3s-masthead {
		border-bottom: 1px solid var(--a3s-color-border);
	}

	.a3s-masthead__inner {
		grid-template-columns: 1fr auto 1fr;
		grid-template-areas:
			"burger logo actions"
			"search search search";
		gap: 6px 8px;
		padding: 6px 12px 10px;
	}

	.a3s-masthead__burger {
		display: inline-flex;
		justify-self: start;
		margin-left: -10px;
	}

	.a3s-masthead__logo {
		justify-self: center;
	}

	.a3s-masthead__logo img {
		max-width: 190px;
		height: 52px;
	}

	.a3s-hactions {
		gap: 4px;
		margin-right: -6px;
	}

	.a3s-hicon {
		justify-content: center;
		min-width: 44px;
	}

	.a3s-hicon__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.a3s-search__input {
		height: 40px;
	}

	.a3s-nav {
		display: none;
	}
}

/* WordPress makes the admin bar scroll away on small phones. */
@media (max-width: 600px) {
	.a3s-sticky-header.admin-bar .a3s-header {
		top: var(--a3s-stick, -46px);
	}
}

/* Phone landscape: a sticky logo + search row would cover about a third of the screen. */
@media (max-width: 991.98px) and (max-height: 500px) {
	.a3s-sticky-header .a3s-header,
	.a3s-sticky-header.admin-bar .a3s-header {
		position: relative;
		top: auto;
	}
}

/* Touch: 44 px targets; negative margins keep the visual rhythm. */
@media (pointer: coarse) {
	.a3s-topbar__link {
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		margin-block: -11px;
	}
}

@media (max-width: 359.98px) {
	.a3s-masthead__logo img {
		max-width: 145px;
		height: 44px;
	}
}

/* ---------- Drawers (<dialog>): off-canvas menu + cart ---------- */
html:has(.a3s-drawer[open]) {
	overflow: hidden;
}

.a3s-drawer {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(300px, 88vw);
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: var(--a3s-color-bg);
	color: var(--a3s-color-text);
	box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.3);
	transform: translateX(-100%);
	transition:
		transform 0.2s var(--a3s-hf-ease-drawer),
		overlay 0.2s allow-discrete,
		display 0.2s allow-discrete;
}

.a3s-drawer[open] {
	display: flex;
	flex-direction: column;
	transform: none;
	transition-duration: 0.3s;
}

@starting-style {
	.a3s-drawer[open] {
		transform: translateX(-100%);
	}
}

.a3s-drawer--cart {
	inset: 0 0 0 auto;
	width: min(340px, 92vw);
	transform: translateX(100%);
}

@starting-style {
	.a3s-drawer--cart[open] {
		transform: translateX(100%);
	}
}

.a3s-drawer::backdrop {
	background: rgba(35, 31, 32, 0);
	transition:
		background-color 0.2s ease,
		overlay 0.2s allow-discrete,
		display 0.2s allow-discrete;
}

.a3s-drawer[open]::backdrop {
	background: var(--a3s-hf-overlay);
}

@starting-style {
	.a3s-drawer[open]::backdrop {
		background: rgba(35, 31, 32, 0);
	}
}

.a3s-drawer__head {
	display: flex;
	flex: none;
	align-items: center;
	gap: 4px;
	min-height: 64px;
	padding: 0 8px 0 16px;
	background: var(--a3s-color-surface);
}

.a3s-drawer__title,
.a3s-oc__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.a3s-oc__title {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
}

.a3s-oc__back {
	margin-left: -12px;
}

.a3s-oc__back[hidden] {
	display: none;
}

/* ---------- Off-canvas menu + drill-down ---------- */
.a3s-oc__nav {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.a3s-oc__nav .a3s-menu {
	height: 100%;
	margin: 0;
	padding: 12px 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

:where(.a3s-oc__nav) ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.a3s-oc__nav .a3s-menu > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.a3s-oc__nav a {
	color: var(--a3s-color-text);
	text-decoration: none;
}

.a3s-oc__nav a:focus-visible,
.a3s-oc__nav button:focus-visible {
	outline: 2px solid var(--a3s-color-primary);
	outline-offset: -2px;
}

.a3s-oc__nav .a3s-menu > li > a {
	flex: 1;
	padding: 15px 16px;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.a3s-oc__nav .a3s-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	min-height: 46px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.a3s-oc__nav .a3s-nav__toggle svg {
	width: 18px;
	height: 18px;
	transform: rotate(-90deg);
}

/* Level 2 = panel sliding over level 1 (header.js adds .is-ready). */
.a3s-oc__nav.is-ready .a3s-sub {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px 0 24px;
	background: var(--a3s-color-bg);
	visibility: hidden;
	transform: translateX(100%);
	transition:
		transform 0.22s var(--a3s-hf-ease),
		visibility 0s linear 0.22s;
}

.a3s-oc__nav.is-ready li.is-open > .a3s-sub {
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

/* Without JS the sub menus are listed under their parent. */
.a3s-oc__nav:not(.is-ready) .a3s-nav__toggle {
	display: none;
}

.a3s-oc__nav:not(.is-ready) .a3s-sub {
	flex-basis: 100%;
	padding-bottom: 8px;
}

.a3s-oc__nav .a3s-mega__groups > li > a,
.a3s-oc__nav .a3s-mega__featured > li > a,
.a3s-oc__nav .a3s-dropdown > li > a {
	display: block;
	padding: 10px 16px 4px;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.5;
}

.a3s-oc__nav .a3s-dropdown > li > a {
	font-weight: 400;
}

.a3s-oc__nav .a3s-sub-links a {
	display: block;
	padding: 5px 16px;
	font-size: 0.875rem;
	line-height: 1.5;
}

.a3s-oc__nav .a3s-sub-links--d2 a {
	padding-left: 28px;
}

.a3s-oc__nav .a3s-mega__featured {
	padding-bottom: 8px;
	border-bottom: 1px solid var(--a3s-color-border);
}

/* Touch: 44 px targets for the drill-down links. */
@media (pointer: coarse) {
	.a3s-oc__nav .a3s-mega__groups > li > a,
	.a3s-oc__nav .a3s-mega__featured > li > a,
	.a3s-oc__nav .a3s-dropdown > li > a,
	.a3s-oc__nav .a3s-sub-links a {
		display: flex;
		align-items: center;
		min-height: 44px;
	}
}

.a3s-oc__foot {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 4px 16px;
	background: var(--a3s-color-surface);
	font-size: 0.875rem;
}

.a3s-oc__account {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-left: auto;
	color: var(--a3s-color-text);
	text-decoration: none;
}

/* ---------- Cart drawer + mini cart ---------- */
.a3s-drawer--cart .a3s-drawer__head {
	background: var(--a3s-color-bg);
	border-bottom: 1px solid var(--a3s-color-border);
}

.a3s-drawer__body {
	flex: 1;
	min-height: 0;
}

.a3s-drawer--cart .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.a3s-drawer--cart ul.woocommerce-mini-cart {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 0 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

.a3s-drawer--cart .woocommerce-mini-cart .woocommerce-mini-cart-item {
	position: relative;
	min-height: 107px;
	padding: 16px 32px 16px 91px;
	border-bottom: 1px solid var(--a3s-color-border);
	font-size: 0.875rem;
	line-height: 1.35;
}

.a3s-drawer--cart .woocommerce-mini-cart .woocommerce-mini-cart-item > a:not(.remove) {
	display: block;
	color: var(--a3s-color-text);
	font-size: 1rem;
	text-decoration: none;
	text-transform: uppercase;
}

.a3s-drawer--cart .woocommerce-mini-cart .woocommerce-mini-cart-item img {
	position: absolute;
	top: 16px;
	left: 0;
	width: 75px;
	height: 75px;
	margin: 0;
	object-fit: contain;
	background: var(--a3s-color-surface);
}

.a3s-drawer--cart .woocommerce-mini-cart .woocommerce-mini-cart-item .remove {
	position: absolute;
	top: 12px;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--a3s-color-muted);
	font-size: 1.5rem;
	line-height: 1;
	text-decoration: none;
}

@media (hover: hover) {
	.a3s-drawer--cart .woocommerce-mini-cart .woocommerce-mini-cart-item .remove:hover {
		color: var(--a3s-color-error);
	}
}

.a3s-drawer--cart .variation {
	margin: 4px 0;
	color: var(--a3s-color-muted);
	font-size: 0.8rem;
	text-transform: uppercase;
}

.a3s-drawer--cart .variation dt,
.a3s-drawer--cart .variation dd,
.a3s-drawer--cart .variation p {
	display: inline;
	margin: 0;
}

.a3s-drawer--cart .variation dd::after {
	content: "\A";
	white-space: pre;
}

.a3s-drawer--cart .woocommerce-mini-cart .woocommerce-mini-cart-item .quantity {
	display: block;
	margin-top: 6px;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}

.a3s-drawer--cart .woocommerce-mini-cart__total {
	display: flex;
	flex: none;
	justify-content: space-between;
	gap: 12px;
	margin: 0 16px;
	padding: 16px 0;
	border-top: 2px solid var(--a3s-color-border);
	font-size: 1rem;
}

.a3s-drawer--cart .woocommerce-mini-cart__buttons {
	display: flex;
	flex: none;
	flex-direction: column-reverse;
	gap: 8px;
	margin: 0;
	padding: 0 16px 16px;
}

.a3s-drawer--cart .woocommerce-mini-cart__buttons .button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 8px 20px;
	border: 1px solid var(--a3s-color-secondary);
	border-radius: var(--a3s-radius, 0);
	background: var(--a3s-color-bg);
	color: var(--a3s-color-secondary);
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease-out;
}

.a3s-drawer--cart .woocommerce-mini-cart__buttons .checkout {
	min-height: 56px;
	border-color: var(--a3s-color-primary);
	background: var(--a3s-color-primary);
	color: var(--a3s-color-primary-contrast);
}

.a3s-drawer--cart .woocommerce-mini-cart__buttons .button:active {
	transform: scale(0.98);
}

@media (hover: hover) {
	.a3s-drawer--cart .woocommerce-mini-cart__buttons .button:hover {
		border-color: var(--a3s-color-secondary);
		background: var(--a3s-color-secondary);
		color: #fff;
	}
}

.a3s-drawer--cart .woocommerce-mini-cart__empty-message {
	margin: 0;
	padding: 32px 16px;
	color: var(--a3s-color-muted);
	text-align: center;
}

.a3s-drawer--cart .blockUI.blockOverlay {
	background: rgba(255, 255, 255, 0.6) !important;
}

/* ---------- Reduced motion: no movement, keep quick fades ---------- */
@media (prefers-reduced-motion: reduce) {
	.a3s-drawer,
	.a3s-drawer--cart,
	.a3s-oc__nav.is-ready .a3s-sub {
		transform: none;
		transition: none;
	}

	@starting-style {
		.a3s-drawer[open],
		.a3s-drawer--cart[open] {
			transform: none;
		}
	}

	.a3s-nav .a3s-sub {
		transition-duration: 0s;
	}
}

/* ==========================================================================
   Centered header (Customizer › Header style = Centered). Classic rules above stay untouched;
   everything here is scoped to the centered parts. Desktop: top bar 40 px, main row 120 px
   (categories + search | logo | icons). Below 992: 30 px strip, icons | logo | icons, burger + search.
   ========================================================================== */
.a3s-topbar--centered .a3s-topbar__inner {
	min-height: 40px;
	padding: 0 24px;
}

.a3s-topbar--centered .a3s-topbar__links {
	gap: 4px 24px;
}

.a3s-masthead--centered .a3s-masthead__inner {
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "left logo right";
	gap: 24px;
	height: 120px;
	padding: 0 24px;
	transition: padding-top 0.2s var(--a3s-hf-ease);
}

.a3s-mc__left {
	grid-area: left;
	display: flex;
	align-items: center;
	gap: 24px;
	min-width: 0;
}

.a3s-mc__cats {
	flex: none; /* never shrink under the label: the search field gives way instead */
	gap: 12px;
	padding-right: 4px;
	color: var(--a3s-color-text);
	font: inherit;
	font-size: 1rem;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.a3s-mc__cats svg {
	width: 28px;
	height: 28px;
	flex: none;
}

@media (hover: hover) {
	.a3s-mc__cats:hover {
		color: var(--a3s-hf-hover);
	}
}

.a3s-masthead--centered .a3s-search {
	flex: 1 1 auto;
	min-width: 0;
}

/* Menu bar shares the masthead container so all three rows keep one left edge. */
.a3s-header--centered .a3s-nav__inner {
	max-width: var(--a3s-hf-wide);
	padding-inline: 24px;
}

/* Small desktops: keep the "All categories" label (when shown), tighten gaps and the logo so the search keeps ~190 px. */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.a3s-masthead--centered .a3s-masthead__inner,
	.a3s-mc__left {
		gap: 16px;
	}

	.a3s-masthead--centered .a3s-masthead__logo img {
		max-width: 180px;
	}

	.a3s-mc__right {
		gap: 8px;
	}
}

.a3s-masthead--centered .a3s-masthead__logo {
	justify-self: center;
}

.a3s-masthead--centered .a3s-masthead__logo img {
	max-width: 220px;
	height: 64px;
	transition: height 0.2s var(--a3s-hf-ease);
}

.a3s-mc__right {
	grid-area: right;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 16px;
}

.a3s-hgroup {
	display: flex;
	align-items: center;
	gap: 16px;
}

.a3s-hgroup:not(:has(> *)) {
	display: none;
}

.a3s-masthead--centered .a3s-hicon {
	justify-content: center;
	min-width: 44px;
}

.a3s-masthead--centered .a3s-hicon__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Underline search (desktop); phones keep the filled field. */
@media (min-width: 992px) {
	/* "All categories" off (default): the left column is the search alone, mirroring the icons on the right. */
	.a3s-masthead--no-cats .a3s-mc__cats {
		display: none;
	}

	.a3s-search--underline {
		max-width: 260px;
	}

	.a3s-search--underline .a3s-search__input {
		height: 40px;
		padding: 0 40px 0 2px;
		border: 0;
		border-bottom: 1px solid var(--a3s-color-text);
		border-radius: 0;
		background: transparent;
	}

	.a3s-search--underline .a3s-search__input:focus {
		border-bottom-color: var(--a3s-color-primary);
		box-shadow: 0 1px 0 var(--a3s-color-primary);
	}

	.a3s-search--underline .a3s-search__submit {
		width: 40px;
	}

	.a3s-search--underline .a3s-search__results {
		right: auto;
		width: min(420px, calc(100vw - 48px));
	}

	/* No menu bar: the row sticks showing its bottom 72 px (header.js reads --a3s-mc-cut). */
	.a3s-masthead--compact {
		--a3s-mc-cut: 48px;
	}

	.a3s-header.is-stuck .a3s-masthead--compact .a3s-masthead__inner {
		padding-top: 48px;
	}

	.a3s-header.is-stuck .a3s-masthead--compact .a3s-masthead__logo img {
		height: 44px;
	}
}

@media (max-width: 991.98px) {
	.a3s-topbar--centered .a3s-topbar__inner {
		grid-template-columns: minmax(0, 1fr);
		min-height: 30px;
		padding: 0 12px;
	}

	.a3s-topbar--centered .a3s-topbar__links {
		display: none;
	}

	.a3s-topbar--centered .a3s-topbar__text {
		text-align: center;
	}

	.a3s-masthead--centered .a3s-masthead__inner {
		grid-template-rows: 56px 44px;
		grid-template-areas:
			"start logo end"
			"row2 row2 row2";
		gap: 0 8px;
		height: auto;
		padding: 0 12px 8px;
	}

	.a3s-mc__left {
		grid-area: row2;
		gap: 4px;
	}

	.a3s-mc__cats {
		margin-left: -10px;
		padding-right: 0;
	}

	.a3s-mc__cats-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.a3s-mc__right {
		display: contents;
	}

	.a3s-hgroup {
		gap: 0;
	}

	.a3s-hgroup--start {
		grid-area: start;
		justify-self: start;
		margin-left: -10px;
	}

	.a3s-hgroup--end {
		grid-area: end;
		justify-self: end;
		margin-right: -10px;
	}

	.a3s-masthead--centered .a3s-masthead__logo img {
		max-width: 150px;
		height: 40px;
	}
}

@media (max-width: 389.98px) {
	.a3s-masthead--centered .a3s-masthead__logo img {
		max-width: 120px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.a3s-masthead--centered .a3s-masthead__inner,
	.a3s-masthead--centered .a3s-masthead__logo img {
		transition: none;
	}
}

/* ==========================================================================
   1.4.0 — off-canvas: logo, optional button, extra links (all header styles)
   ========================================================================== */
.a3s-oc__logo {
	flex: none;
	min-width: 0;
	line-height: 0;
}

.a3s-oc__logo .a3s-logo {
	display: block;
}

.a3s-oc__logo .a3s-logo__img {
	display: block;
	width: auto;
	max-width: 150px;
	height: 40px;
	object-fit: contain;
}

.a3s-drawer__head:has(.a3s-oc__back:not([hidden])) .a3s-oc__logo {
	display: none;
}

.a3s-oc__cta {
	flex: none;
	padding: 12px 16px;
	border-top: 1px solid var(--a3s-color-border);
}

.a3s-oc__cta .a3s-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
}

.a3s-oc__foot {
	flex-wrap: wrap;
}

.a3s-oc__link--narrow {
	display: none;
	margin-left: 0;
}

@media (max-width: 479.98px) {
	.a3s-oc__link--narrow {
		display: inline-flex;
	}
}
