/* ==========================================================================
   Smart Jhuri - Header (desktop)
   Rows: topbar (dark) -> main bar (white) -> nav bar (blue, sticky)
   ========================================================================== */

.sj-header {
	position: static;
	z-index: 900;
	background: var(--sj-white);
	font-family: var(--sj-font-head);

	/* How far the header pulls itself up when pinned: the height of every row
	   above the one that should stay visible. Declared on the header (not
	   :root) so the breakpoint rules further down can override it in normal
	   cascade order. */
	--sj-stick-offset: calc(var(--sj-topbar-h) + var(--sj-main-h));
}

/* No nav row means the main bar is the one that pins. */
.sj-header--no-nav { --sj-stick-offset: var(--sj-topbar-h); }

@media (min-width: 768px) {
	.sj-header--sticky-lg {
		position: sticky;
		top: calc(-1 * var(--sj-stick-offset));
	}
	/* 768-782px: the admin bar is still the tall 46px touch variant. */
	.admin-bar .sj-header--sticky-lg { top: calc(46px - var(--sj-stick-offset)); }
}

@media (min-width: 783px) {
	/* Above 782px the admin bar shrinks to 32px. */
	.admin-bar .sj-header--sticky-lg { top: calc(32px - var(--sj-stick-offset)); }
}

@media (max-width: 767px) {
	.sj-header--sticky-sm {
		position: sticky;
		top: calc(-1 * var(--sj-stick-offset));
	}
	/* 601-767px: the admin bar is fixed and 46px tall, so leave room for it. */
	.admin-bar .sj-header--sticky-sm { top: calc(46px - var(--sj-stick-offset)); }
}

@media (max-width: 600px) {
	/* At 600px and below WordPress switches #wpadminbar to position:absolute,
	   so it scrolls away with the page. Reserving 46px for it would leave a
	   permanent gap above the pinned header. */
	.admin-bar .sj-header--sticky-sm { top: calc(-1 * var(--sj-stick-offset)); }
}

.sj-header-overlay {
	position: fixed;
	inset: 0;
	z-index: 850;
	background: rgba(15, 23, 42, .35);
	opacity: 0;
	transition: opacity var(--sj-ease);
}
.sj-header-overlay.is-visible { opacity: 1; }

/* --------------------------------------------------------------- Top bar -- */

.sj-topbar {
	height: var(--sj-topbar-h);
	background: var(--sj-topbar-bg);
	color: var(--sj-topbar-text);
	font-size: 13px;
}

.sj-topbar__inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.sj-topbar__note {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.sj-topbar__note .sj-icon { color: var(--sj-green); }

.sj-topbar__spacer { flex: 1; }

.sj-topbar__right {
	display: flex;
	align-items: center;
	gap: 24px;
}

.sj-topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: inherit;
	font-weight: 600;
}
.sj-topbar__phone .sj-icon { color: var(--sj-orange); }
.sj-topbar__phone:hover { color: var(--sj-orange); }

.sj-topbar__menu {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sj-topbar__menu a { color: inherit; opacity: .8; }
.sj-topbar__menu a:hover { color: inherit; opacity: 1; }

/* ------------------------------------------------------------- Main bar --- */

.sj-headmain {
	height: var(--sj-main-h);
	background: var(--sj-white);
	border-bottom: 1px solid var(--sj-line);
}

.sj-headmain__inner {
	height: 100%;
	display: grid;
	grid-template-columns: auto minmax(320px, 1fr) auto;
	align-items: center;
	gap: 40px;
}

.sj-headmain__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.sj-logo { display: inline-flex; align-items: center; min-width: 0; }

/* Shown when no Customizer logo is set. */
.sj-logo__text {
	font-family: var(--sj-font-head);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.015em;
	color: var(--sj-blue);
	white-space: nowrap;
}
.sj-logo__img {
	display: block;
	max-height: var(--sj-logo-h);
	width: auto;
	object-fit: contain;
}

.sj-headmain__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* --------------------------------------------------------------- Search --- */

.sj-search {
	position: relative;
	display: flex;
	align-items: stretch;
	height: 48px;
	background: #fff;
	border: 2px solid var(--sj-blue);
	border-radius: var(--sj-radius);
}

.sj-search__cat {
	position: relative;
	display: flex;
	align-items: center;
	border-right: 1px solid var(--sj-line);
}

.sj-search__select {
	appearance: none;
	-webkit-appearance: none;
	height: 100%;
	max-width: 190px;
	padding: 0 34px 0 16px;
	border: 0;
	background: transparent;
	font-family: var(--sj-font-head);
	font-size: 13.5px;
	font-weight: 500;
	color: var(--sj-ink);
	cursor: pointer;
	border-radius: 8px 0 0 8px;
	text-overflow: ellipsis;
}

.sj-search__caret {
	position: absolute;
	right: 12px;
	pointer-events: none;
	color: var(--sj-muted);
}

.sj-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 0 16px;
	font-family: var(--sj-font-body);
	font-size: 14.5px;
	color: var(--sj-ink);
	background: transparent;
}
.sj-search__input::placeholder { color: var(--sj-muted); }
.sj-search__input:focus { outline: none; }

.sj-search__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 24px;
	margin: -1px -1px -1px 0;
	border: 0;
	border-radius: 0 7px 7px 0;
	background: var(--sj-orange);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--sj-ease);
}
.sj-search__btn:hover { background: var(--sj-orange-600); }

/* Live suggestions */
.sj-search__results {
	position: absolute;
	top: calc(100% + 10px);
	left: -2px;
	right: -2px;
	z-index: 20;
	max-height: 420px;
	overflow-y: auto;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--sj-line);
	border-radius: var(--sj-radius);
	box-shadow: var(--sj-shadow-lg);
}
.sj-search__results[hidden] { display: none; }

.sj-search__result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: var(--sj-radius-sm);
	color: var(--sj-ink);
}
.sj-search__result:hover,
.sj-search__result:focus { background: var(--sj-blue-50); }

.sj-search__result img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	background: var(--sj-soft);
	flex: none;
}

.sj-search__result-title {
	font-family: var(--sj-font-body);
	font-size: 14px;
	line-height: 1.35;
}
.sj-search__result-price {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--sj-orange);
}

.sj-search__msg {
	padding: 14px 12px;
	font-family: var(--sj-font-body);
	font-size: 14px;
	color: var(--sj-muted);
}

.sj-search__all {
	display: block;
	margin-top: 4px;
	padding: 11px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sj-blue);
	background: var(--sj-blue-50);
	border-radius: var(--sj-radius-sm);
}

/* -------------------------------------------------- Account / cart actions */

.sj-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 12px;
	border-radius: var(--sj-radius-sm);
	color: var(--sj-ink);
	transition: background var(--sj-ease);
}
.sj-action:hover { background: var(--sj-soft); color: var(--sj-ink); }

.sj-action__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
}

.sj-action__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sj-blue-50);
	color: var(--sj-blue);
}

.sj-action__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	text-align: left;
}
.sj-action__label {
	font-size: 11.5px;
	font-weight: 500;
	color: var(--sj-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
}
.sj-action__value {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sj-ink);
	white-space: nowrap;
}

.sj-action__caret {
	color: var(--sj-muted);
	transition: transform var(--sj-ease);
}
.sj-account.is-open .sj-action__caret { transform: rotate(180deg); }

/* Cart badge */
.sj-cart .sj-action__icon { background: var(--sj-orange-50); color: var(--sj-orange); }

.sj-cart__count {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--sj-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	border: 2px solid #fff;
}
.sj-cart__count[data-count="0"] { background: var(--sj-muted); }

.sj-cart__total { color: var(--sj-orange); }

/* ------------------------------------------------------------- Dropdowns -- */

.sj-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 30;
	min-width: 260px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--sj-line);
	border-radius: var(--sj-radius);
	box-shadow: var(--sj-shadow-lg);
}
.sj-dropdown[hidden] { display: none; }

.sj-account__cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.sj-account__cta .sj-btn { width: 100%; }

.sj-account__hint {
	margin: 10px 0 12px;
	font-family: var(--sj-font-body);
	font-size: 12.5px;
	color: var(--sj-muted);
	line-height: 1.45;
}

.sj-dropdown__list {
	margin: 0;
	padding: 8px 0 0;
	list-style: none;
	border-top: 1px solid var(--sj-line);
}
.sj-account__menu .sj-dropdown__list:first-child { border-top: 0; padding-top: 0; }

.sj-dropdown__list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: var(--sj-radius-sm);
	color: var(--sj-body);
	font-size: 13.5px;
	font-weight: 500;
}
.sj-dropdown__list a:hover { background: var(--sj-blue-50); color: var(--sj-blue); }
.sj-dropdown__list .sj-icon { color: var(--sj-muted); }
.sj-dropdown__list a:hover .sj-icon { color: var(--sj-blue); }

.sj-dropdown__sep {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--sj-line);
}

/* --------------------------------------------------------------- Nav bar -- */

.sj-nav {
	height: var(--sj-nav-h);
	background: var(--sj-nav-bg);
	box-shadow: var(--sj-shadow-sm);
}

.sj-nav__inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 20px;
}

/* All Categories mega menu */
.sj-cats { position: relative; height: 100%; flex: none; }

.sj-cats__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	min-width: 250px;
	padding: 0 18px;
	border: 0;
	background: var(--sj-cats-bg);
	color: #fff;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: filter var(--sj-ease);
}
.sj-cats__toggle:hover { filter: brightness(.93); }
.sj-cats__caret { margin-left: auto; transition: transform var(--sj-ease); }
.sj-cats.is-open .sj-cats__caret { transform: rotate(180deg); }

.sj-cats__panel {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 40;
	width: 300px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--sj-line);
	border-top: 0;
	border-radius: 0 0 var(--sj-radius) var(--sj-radius);
	box-shadow: var(--sj-shadow-lg);
}
.sj-cats__panel[hidden] { display: none; }

.sj-cats__empty {
	margin: 0;
	padding: 14px;
	font-family: var(--sj-font-body);
	font-size: 13.5px;
	color: var(--sj-muted);
}

.sj-cats__list { margin: 0; padding: 0; list-style: none; }
.sj-cats__item { position: relative; }

.sj-cats__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: var(--sj-radius-sm);
	color: var(--sj-body);
	font-size: 14px;
	font-weight: 500;
}
.sj-cats__item:hover > .sj-cats__link { background: var(--sj-blue-50); color: var(--sj-blue); }

.sj-cats__thumb {
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: 6px;
	flex: none;
}
.sj-cats__name { flex: 1; }
.sj-cats__arrow { color: var(--sj-muted); }
.sj-cats__item:hover .sj-cats__arrow { color: var(--sj-blue); }

/* Sub-category flyout */
.sj-cats__flyout {
	position: absolute;
	top: -8px;
	left: 100%;
	z-index: 45;
	width: 460px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--sj-line);
	border-radius: var(--sj-radius);
	box-shadow: var(--sj-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateX(-6px);
	transition: opacity var(--sj-ease), transform var(--sj-ease), visibility var(--sj-ease);
}
.sj-cats__item--parent:hover > .sj-cats__flyout,
.sj-cats__item--parent:focus-within > .sj-cats__flyout {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.sj-cats__flyout-title {
	display: block;
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--sj-muted);
}

.sj-cats__sublist {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 24px;
}
.sj-cats__sublist a {
	display: block;
	padding: 6px 0;
	font-family: var(--sj-font-body);
	font-size: 14px;
	color: var(--sj-body);
	break-inside: avoid;
}
.sj-cats__sublist a:hover { color: var(--sj-blue); }

.sj-cats__flyout-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sj-orange);
}

/* Primary menu */
/* grow 1 so it fills the bar when there is room, shrink 0 so the pinned
   compact search can never squeeze the menu into overlapping it. Clipping the
   overflow instead is not an option here: the dropdowns are absolutely
   positioned inside this element and would be cut off. */
.sj-nav__primary { flex: 1 0 auto; min-width: 0; height: 100%; }

.sj-nav__menu {
	display: flex;
	align-items: center;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sj-nav__item { position: relative; height: 100%; }

.sj-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 15px;
	color: var(--sj-nav-text);
	opacity: .92;
	font-size: 14.5px;
	font-weight: 500;
	white-space: nowrap;
	transition: color var(--sj-ease), background var(--sj-ease);
}
.sj-nav__item--depth-0 > .sj-nav__link:hover,
.sj-nav__item--depth-0.current-menu-item > .sj-nav__link,
.sj-nav__item--depth-0.current-menu-ancestor > .sj-nav__link {
	color: var(--sj-nav-text);
	opacity: 1;
	background: rgba(255, 255, 255, .14);
}

.sj-nav__caret { transition: transform var(--sj-ease); }
.sj-nav__item--depth-0:hover > .sj-nav__link .sj-nav__caret { transform: rotate(180deg); }

/* Nav submenus */
.sj-nav__submenu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 40;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--sj-line);
	border-radius: 0 0 var(--sj-radius) var(--sj-radius);
	box-shadow: var(--sj-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--sj-ease), transform var(--sj-ease), visibility var(--sj-ease);
}
.sj-nav__item:hover > .sj-nav__submenu,
.sj-nav__item:focus-within > .sj-nav__submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sj-nav__submenu .sj-nav__item { height: auto; }

.sj-nav__submenu .sj-nav__link {
	opacity: 1;
	display: flex;
	justify-content: space-between;
	width: 100%;
	height: auto;
	padding: 9px 12px;
	border-radius: var(--sj-radius-sm);
	color: var(--sj-body);
	font-family: var(--sj-font-body);
	font-size: 14px;
	white-space: normal;
}
.sj-nav__submenu .sj-nav__link:hover { background: var(--sj-blue-50); color: var(--sj-blue); }
.sj-nav__submenu .sj-nav__caret { transform: rotate(-90deg); }

/* Third level opens to the side */
.sj-nav__submenu .sj-nav__submenu {
	top: -8px;
	left: 100%;
	border-radius: var(--sj-radius);
	transform: translateX(6px);
}
.sj-nav__submenu .sj-nav__item:hover > .sj-nav__submenu { transform: translateX(0); }

/* Nav right side */
.sj-nav__end {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
	/* Shrinkable, so the pinned search gives up width to the menu rather than
	   sliding underneath it. min-width:0 lets it shrink past the input's
	   intrinsic size. */
	flex: 0 1 auto;
	min-width: 0;
}

.sj-nav__promo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	color: var(--sj-nav-text);
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	transition: background var(--sj-ease);
}
.sj-nav__promo:hover { background: rgba(255, 255, 255, .24); color: var(--sj-nav-text); }

.sj-nav__promo-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sj-green);
	box-shadow: 0 0 0 0 rgba(101, 196, 102, .7);
	animation: sj-pulse 2s infinite;
}

@keyframes sj-pulse {
	70%  { box-shadow: 0 0 0 8px rgba(101, 196, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(101, 196, 102, 0); }
}

/* --------------------------------------------------- Sticky / compact mode */

.sj-nav__compact {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	width: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	transition: width var(--sj-ease), opacity var(--sj-ease), visibility var(--sj-ease);
}

.sj-header.is-stuck .sj-nav__compact {
	width: 330px;
	max-width: 100%;
	opacity: 1;
	visibility: visible;
	overflow: visible;
}

.sj-header.is-stuck .sj-nav__promo { display: none; }

.sj-search--compact {
	height: 36px;
	/* A preferred width, not a fixed one — it shrinks when the menu needs the
	   room and the cart keeps its size. */
	width: 260px;
	min-width: 0;
	border-width: 0;
	background: rgba(255, 255, 255, .16);
	border-radius: 999px;
}
.sj-search--compact .sj-search__input {
	color: #fff;
	font-size: 13.5px;
	padding-left: 16px;
	min-width: 0;
}
.sj-search--compact .sj-search__input::placeholder { color: rgba(255, 255, 255, .75); }
.sj-search--compact .sj-search__btn {
	margin: 0;
	padding: 0 16px 0 12px;
	background: transparent;
	border-radius: 999px;
	color: #fff;
}
.sj-search--compact .sj-search__btn:hover { background: rgba(255, 255, 255, .18); }
.sj-search--compact .sj-search__btn-text { display: none; }
.sj-search--compact .sj-search__results {
	left: 0;
	right: 0;
	top: calc(100% + 12px);
}

.sj-cart--compact {
	height: 40px;
	padding: 0 6px;
}
.sj-cart--compact:hover { background: rgba(255, 255, 255, .16); }
.sj-cart--compact .sj-action__icon {
	width: 34px;
	height: 34px;
	background: transparent;
	color: #fff;
}
.sj-cart--compact .sj-cart__count { border-color: var(--sj-nav-bg); }

/* Shadow lift once the bar is pinned */
.sj-header.is-stuck .sj-nav { box-shadow: 0 6px 18px rgba(15, 23, 42, .18); }


/* ==========================================================================
   Burger + off-canvas drawer (tablet and mobile)
   ========================================================================== */

.sj-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--sj-line);
	border-radius: var(--sj-radius-sm);
	background: #fff;
	color: var(--sj-ink);
	cursor: pointer;
	flex: none;
	transition: background var(--sj-ease), border-color var(--sj-ease);
}
.sj-burger:hover { background: var(--sj-blue-50); border-color: var(--sj-blue); }

/* With the nav bar switched off there is no menu on desktop, so the drawer
   has to stay reachable at every width. */
.sj-header--no-nav .sj-burger { display: inline-flex; }

.sj-burger__bars {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 20px;
}
.sj-burger__bars span {
	display: block;
	height: 2px;
	width: 100%;
	border-radius: 2px;
	background: currentColor;
}
.sj-burger__bars span:nth-child(2) { width: 70%; }

.sj-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
}
.sj-drawer[hidden] { display: none; }

.sj-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .45);
	opacity: 0;
	transition: opacity 240ms cubic-bezier(.4, 0, .2, 1);
}
.sj-drawer.is-open .sj-drawer__backdrop { opacity: 1; }

.sj-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: min(340px, 86vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: var(--sj-shadow-lg);
	transform: translateX(-100%);
	transition: transform 240ms cubic-bezier(.4, 0, .2, 1);
}
.sj-drawer.is-open .sj-drawer__panel { transform: translateX(0); }

.sj-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--sj-line);
	flex: none;
}
.sj-drawer__head .sj-logo__img { max-height: 38px; }
.sj-drawer__head .sj-logo__text { font-size: 19px; }

.sj-drawer__close {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sj-soft);
	color: var(--sj-ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	flex: none;
}
.sj-drawer__close:hover { background: var(--sj-blue-50); color: var(--sj-blue); }

.sj-drawer__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 16px;
}

.sj-drawer__account { margin-bottom: 20px; }

.sj-drawer__greeting {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-family: var(--sj-font-head);
	font-size: 14px;
	font-weight: 600;
	color: var(--sj-ink);
}
.sj-drawer__greeting .sj-icon { color: var(--sj-blue); }

.sj-drawer__cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.sj-drawer__cta .sj-btn { width: 100%; }

.sj-drawer__section {
	padding-top: 16px;
	margin-top: 16px;
	border-top: 1px solid var(--sj-line);
}
.sj-drawer__account + .sj-drawer__section { margin-top: 0; }

.sj-drawer__title {
	margin: 0 0 6px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--sj-muted);
}

/* Accordion menus inside the drawer -------------------------------------- */

.sj-drawer__menu {
	display: block;
	height: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sj-drawer .sj-nav__item {
	position: static;
	height: auto;
	border-bottom: 1px solid var(--sj-soft);
}
.sj-drawer .sj-nav__item:last-child { border-bottom: 0; }

.sj-drawer .sj-nav__row {
	display: flex;
	align-items: center;
	gap: 4px;
}

.sj-drawer .sj-nav__link {
	display: flex;
	flex: 1;
	align-items: center;
	height: auto;
	padding: 11px 2px;
	background: none;
	color: var(--sj-body);
	font-family: var(--sj-font-body);
	font-size: 15px;
	font-weight: 500;
	white-space: normal;
}
.sj-drawer .sj-nav__link:hover,
.sj-drawer .sj-nav__item--depth-0 > .sj-nav__link:hover {
	background: none;
	color: var(--sj-blue);
}

/*
 * The current-item rule up in the desktop nav paints the link with
 * --sj-nav-text — white, which is right on the blue bar and invisible on the
 * drawer's white panel. The drawer reuses the same .sj-nav__* classes, so it
 * inherited that white and the active row read as a blank gap. Restate it in
 * the drawer's own colours; the extra class outweighs the depth-0 rule.
 *
 * The .sj-nav__row variants cover items that have children, where the link is
 * wrapped alongside the accordion toggle rather than being a direct child.
 */
.sj-drawer .sj-nav__item.current-menu-item > .sj-nav__link,
.sj-drawer .sj-nav__item.current-menu-ancestor > .sj-nav__link,
.sj-drawer .sj-nav__item.current-menu-item > .sj-nav__row > .sj-nav__link,
.sj-drawer .sj-nav__item.current-menu-ancestor > .sj-nav__row > .sj-nav__link {
	background: none;
	color: var(--sj-blue);
	font-weight: 600;
}
.sj-drawer .sj-nav__caret { display: none; }

.sj-acc__toggle {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--sj-radius-sm);
	background: none;
	color: var(--sj-muted);
	cursor: pointer;
	flex: none;
}
.sj-acc__toggle:hover { background: var(--sj-soft); color: var(--sj-blue); }
.sj-acc__caret { transition: transform var(--sj-ease); }
.sj-drawer .sj-nav__item.is-open > .sj-nav__row .sj-acc__caret { transform: rotate(180deg); }

.sj-drawer .sj-nav__submenu {
	position: static;
	display: none;
	visibility: visible;
	opacity: 1;
	transform: none;
	min-width: 0;
	margin: 0;
	padding: 0 0 8px 14px;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.sj-drawer .sj-nav__item.is-open > .sj-nav__submenu { display: block; }
.sj-drawer .sj-nav__submenu .sj-nav__link { font-size: 14px; padding: 8px 2px; color: var(--sj-muted); }
.sj-drawer .sj-nav__submenu .sj-nav__link:hover { color: var(--sj-blue); }
.sj-drawer .sj-nav__submenu .sj-nav__item { border-bottom: 0; }

.sj-drawer__foot { padding-bottom: 8px; }

.sj-drawer__hotline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-family: var(--sj-font-head);
	font-size: 14px;
	font-weight: 600;
	color: var(--sj-ink);
}
.sj-drawer__hotline .sj-icon { color: var(--sj-orange); }

.sj-drawer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}
.sj-drawer__links a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	color: var(--sj-body);
	font-family: var(--sj-font-body);
	font-size: 14px;
}
.sj-drawer__links a:hover { color: var(--sj-blue); }
.sj-drawer__links .sj-icon { color: var(--sj-muted); }

/* Locks the page behind the drawer. */
body.sj-drawer-open { overflow: hidden; }

/* ==========================================================================
   Breakpoints
   Note: --sj-logo-h, --sj-topbar-h-base and the top bar colours are printed
   as an inline :root block AFTER this file, so they cannot be overridden in a
   media query here. Anything breakpoint-dependent is expressed on the element
   instead (e.g. max-height: min(var(--sj-logo-h), 40px)).
   ========================================================================== */

/* ---- Small desktop / large tablet: tighten, keep the full layout -------- */
@media (max-width: 1199px) {
	.sj-headmain__inner { gap: 22px; }
	.sj-search__select { max-width: 140px; }
	.sj-search__btn { padding: 0 18px; }
	.sj-nav__promo { display: none; }
	.sj-cats__toggle { min-width: 208px; font-size: 14px; }
	.sj-nav__link { padding: 0 11px; font-size: 14px; }
	.sj-action { padding: 0 8px; }
	.sj-action__value { font-size: 13px; }
	.sj-header.is-stuck .sj-nav__compact { width: 296px; }
	.sj-search--compact { width: 226px; }
}

/* ---- Tablet: nav bar folds into the drawer ----------------------------- */
@media (max-width: 1023px) {
	:root { --sj-main-h: 76px; }

	/* The nav bar is gone, so the main row is the one that pins. */
	.sj-header { --sj-stick-offset: var(--sj-topbar-h); }

	.sj-burger { display: inline-flex; }
	.sj-nav { display: none; }
	.sj-topbar__note { display: none; }

	.sj-headmain__inner {
		grid-template-columns: auto minmax(180px, 1fr) auto;
		gap: 16px;
	}

	.sj-logo__img { max-height: min(var(--sj-logo-h), 44px); }
	.sj-logo__text { font-size: 20px; }

	/* Icon-only actions from here down. */
	.sj-action__text,
	.sj-account .sj-action__caret { display: none; }
	.sj-action { height: 46px; padding: 0 6px; gap: 0; }

	.sj-search { height: 46px; }
	.sj-search__btn-text { display: none; }
	.sj-search__btn { padding: 0 16px; }
	.sj-search__select { max-width: 128px; }
}

/* ---- Mobile: search drops to its own row ------------------------------- */
@media (max-width: 767px) {
	/* --sj-gutter for this breakpoint lives in base.css, with the tokens. */
	:root { --sj-topbar-h: 0px; }

	/* Both rows stay pinned: on a phone, search and cart must remain reachable. */
	.sj-header { --sj-stick-offset: 0px; }

	.sj-topbar { display: none; }

	.sj-headmain { height: auto; }
	.sj-headmain__inner {
		height: auto;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"brand   actions"
			"search  search";
		gap: 10px 12px;
		padding-block: 10px;
	}
	.sj-headmain__brand { grid-area: brand; }
	.sj-headmain__search { grid-area: search; }
	.sj-headmain__actions { grid-area: actions; }

	.sj-burger { width: 40px; height: 40px; }
	.sj-logo__img { max-height: var(--sj-logo-h-mobile); }
	.sj-logo__text { font-size: 18px; }

	.sj-search { height: 42px; border-width: 1.5px; }
	.sj-search__cat { display: none; }
	.sj-search__input { padding: 0 12px; font-size: 14px; }
	.sj-search__btn { padding: 0 14px; }
	.sj-search__results { max-height: 62vh; }

	.sj-action { height: 42px; padding: 0 3px; }
	.sj-action__icon { width: 38px; height: 38px; }
	.sj-cart__count { min-width: 18px; height: 18px; font-size: 10px; }

	.sj-header.is-stuck { box-shadow: 0 4px 16px rgba(15, 23, 42, .14); }
}

/* ---- Small phones ------------------------------------------------------ */
@media (max-width: 400px) {
	.sj-headmain__brand { gap: 8px; }
	.sj-logo__img { max-height: min(var(--sj-logo-h-mobile), 34px); }
	.sj-logo__text { font-size: 16px; }
	.sj-burger { width: 38px; height: 38px; }
	.sj-action__icon { width: 34px; height: 34px; }
	.sj-search__input::placeholder { font-size: 13px; }
}

/* Keyboard and pointer users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
	.sj-drawer__panel,
	.sj-drawer__backdrop,
	.sj-nav__compact,
	.sj-nav__submenu,
	.sj-cats__flyout { transition: none; }
	.sj-nav__promo-dot { animation: none; }
}


/* ==========================================================================
   Drawer tabs (two menus: categories / regular navigation)
   ========================================================================== */

.sj-drawer__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 4px;
	margin-bottom: 14px;
	background: var(--sj-soft);
	border-radius: var(--sj-radius);
}

.sj-drawer__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	padding: 0 10px;
	border: 0;
	border-radius: var(--sj-radius-sm);
	background: transparent;
	color: var(--sj-muted);
	font-family: var(--sj-font-head);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--sj-ease), color var(--sj-ease);
}
.sj-drawer__tab:hover { color: var(--sj-blue); }

.sj-drawer__tab.is-active {
	background: #fff;
	color: var(--sj-blue);
	box-shadow: var(--sj-shadow-sm);
}

.sj-drawer__tabpanel[hidden] { display: none; }
