/* Hemdox Ecommerce Kit — Header / Navbar (mobile-first). JUUL-blue defaults. */

.hemdox-hdr {
	--hdr-bg: #FFFFFF;
	--hdr-ink: #0B1F2A;
	--hdr-accent: #0098DA;
	--hdr-accent-2: #00C2F2;
	--hdr-border: #E4EBEF;
	--hdr-muted: #5A6B75;
	--hdr-promo-bg: #0B1F2A;
	--hdr-promo-color: #EAF3F8;
	--hdr-h: 64px;
	width: 100%;
	background: var(--hdr-bg);
	color: var(--hdr-ink);
	font-family: inherit;
}
.hemdox-hdr[data-sticky="1"] { position: sticky; top: 0; z-index: 100; }
.hemdox-hdr * { box-sizing: border-box; }

/* ---- Promo bar ---- */
.hemdox-hdr__promo {
	background: var(--hdr-promo-bg); color: var(--hdr-promo-color);
	text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
	padding: 7px 16px; line-height: 1.4;
}
.hemdox-hdr__promo a { color: var(--hdr-accent-2); text-decoration: none; font-weight: 700; }

/* ---- Main bar ---- */
.hemdox-hdr__bar { border-bottom: 1px solid var(--hdr-border); background: var(--hdr-bg); }
.hemdox-hdr__inner {
	display: flex; align-items: center; gap: 12px;
	max-width: 1240px; margin: 0 auto; padding: 0 16px;
	min-height: var(--hdr-h);
}
.hemdox-hdr__burger {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; margin-left: -8px; padding: 0;
	border: 0; background: transparent; color: var(--hdr-ink); cursor: pointer; border-radius: 10px;
	transition: background .15s ease;
}
.hemdox-hdr__burger:hover { background: rgba(0,152,218,.08); }
.hemdox-hdr__burger svg { width: 24px; height: 24px; }

.hemdox-hdr__logo {
	display: inline-flex; align-items: center; gap: 2px; flex: 1 1 auto; justify-content: center;
	font-size: 23px; font-weight: 800; letter-spacing: -.6px; color: var(--hdr-ink); text-decoration: none; white-space: nowrap;
}
.hemdox-hdr__logo .dot { color: var(--hdr-accent); }
.hemdox-hdr__logo img { max-height: 40px; width: auto; display: block; }

.hemdox-hdr__nav { display: none; } /* desktop only */
.hemdox-hdr__actions { display: flex; align-items: center; gap: 6px; }

/* ---- Icon action links (account, etc.) ---- */
.hemdox-hdr__iconlink {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border-radius: 999px; color: var(--hdr-ink); text-decoration: none; transition: background .15s ease, color .15s ease;
}
.hemdox-hdr__iconlink:hover { background: rgba(0,152,218,.08); color: var(--hdr-accent); }
.hemdox-hdr__iconlink svg { width: 23px; height: 23px; }

/* ---- Search ---- */
.hemdox-hdr__search { display: flex; align-items: center; }
.hemdox-hdr__actions .hemdox-hdr__search { display: none; }
.hemdox-hdr__searchrow { padding: 10px 16px 12px; border-top: 1px solid var(--hdr-border); } /* full-width row under the menu */
.hemdox-hdr__searchrow .hemdox-hdr__search-field { max-width: none; }
.hemdox-hdr__search-field {
	display: flex; align-items: center; background: #F2F6F9; border: 1px solid var(--hdr-border);
	border-radius: 999px; padding: 4px 4px 4px 14px; width: 100%; max-width: 320px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.hemdox-hdr__search-field:focus-within { border-color: var(--hdr-accent); box-shadow: 0 0 0 3px rgba(0,152,218,.14); background: #fff; }
.hemdox-hdr__search-field input {
	flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: 0;
	font-size: 14px; color: var(--hdr-ink); padding: 6px 4px;
}
.hemdox-hdr__search-btn {
	flex: none; width: 34px; height: 34px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--hdr-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.hemdox-hdr__search-btn svg { width: 17px; height: 17px; }

/* ---- Side-cart shortcode slot ---- */
.hemdox-hdr__sidecart { display: inline-flex; align-items: center; }
.hemdox-hdr__sidecart .xoo-wsc-sc-cont, .hemdox-hdr__sidecart .xoo-wsc-cart-trigger { margin: 0; }

/* ---- Cart ---- */
.hemdox-hdr__cart {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 999px; color: var(--hdr-ink); text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.hemdox-hdr__cart:hover { background: rgba(0,152,218,.08); color: var(--hdr-accent); }
.hemdox-hdr__cart svg { width: 23px; height: 23px; }
.hemdox-hdr__cartcount {
	position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--hdr-accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
	border-radius: 999px; border: 2px solid var(--hdr-bg);
}
.hemdox-hdr__cartcount.is-empty { display: none; }

/* ---- Menu lists (shared) ---- */
.hemdox-hdr__menu { list-style: none; margin: 0; padding: 0; }
.hemdox-hdr__menu a { text-decoration: none; color: inherit; }

/* Desktop menu items */
.hemdox-hdr__nav .hemdox-hdr__menu { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; }
.hemdox-hdr__nav .hemdox-hdr__menu > li { flex: 0 0 auto; }
.hemdox-hdr__nav .hemdox-hdr__menu > li > a {
	display: inline-flex; align-items: center; padding: 9px 11px; border-radius: 999px;
	font-size: 14.5px; font-weight: 600; color: var(--hdr-ink); line-height: 1; white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.hemdox-hdr__nav .hemdox-hdr__menu > li > a:hover,
.hemdox-hdr__nav .hemdox-hdr__menu > li.current-menu-item > a { background: rgba(0,152,218,.10); color: var(--hdr-accent); }
/* Desktop dropdown (if a menu item has children) */
.hemdox-hdr__nav .hemdox-hdr__menu li { position: relative; }
.hemdox-hdr__nav .hemdox-hdr__menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 210px; list-style: none; margin: 8px 0 0; padding: 8px;
	background: #fff; border: 1px solid var(--hdr-border); border-radius: 14px; box-shadow: 0 20px 44px -22px rgba(11,31,42,.4);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; z-index: 200;
}
.hemdox-hdr__nav .hemdox-hdr__menu li:hover > .sub-menu,
.hemdox-hdr__nav .hemdox-hdr__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.hemdox-hdr__nav .hemdox-hdr__menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--hdr-ink); }
.hemdox-hdr__nav .hemdox-hdr__menu .sub-menu a:hover { background: rgba(0,152,218,.10); color: var(--hdr-accent); }

/* ---- Off-canvas drawer ---- */
.hemdox-hdr__drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.hemdox-hdr.is-open .hemdox-hdr__drawer { visibility: visible; }
.hemdox-hdr__scrim {
	position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
	background: rgba(11,31,42,.55); opacity: 0; transition: opacity .28s ease;
}
.hemdox-hdr.is-open .hemdox-hdr__scrim { opacity: 1; }
.hemdox-hdr__panel {
	position: absolute; top: 0; left: 0; height: 100%; width: min(88vw, 360px);
	background: #fff; box-shadow: 12px 0 40px -18px rgba(11,31,42,.5);
	display: flex; flex-direction: column; gap: 14px; padding: 18px;
	transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1); overflow-y: auto;
}
.hemdox-hdr.is-open .hemdox-hdr__panel { transform: translateX(0); }
.hemdox-hdr__panelhead { display: flex; align-items: center; justify-content: space-between; }
.hemdox-hdr__panelhead span { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--hdr-muted); }
.hemdox-hdr__close {
	width: 40px; height: 40px; border: 0; background: #F2F6F9; border-radius: 999px; cursor: pointer;
	font-size: 22px; line-height: 1; color: var(--hdr-ink); display: inline-flex; align-items: center; justify-content: center;
}
.hemdox-hdr__close:hover { background: rgba(0,152,218,.12); color: var(--hdr-accent); }
.hemdox-hdr__panel .hemdox-hdr__search { display: block; }
.hemdox-hdr__panel .hemdox-hdr__search-field { max-width: none; }
/* account link in drawer */
.hemdox-hdr__drawer-acc {
	display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
	background: rgba(0,152,218,.08); color: var(--hdr-accent); font-weight: 800; font-size: 15px; text-decoration: none;
}
.hemdox-hdr__drawer-acc svg { width: 20px; height: 20px; }
/* search pinned to the bottom of the drawer */
.hemdox-hdr__drawer-search { margin-top: auto; padding-top: 10px; }
.hemdox-hdr__mnav .hemdox-hdr__menu > li { border-bottom: 1px solid var(--hdr-border); }
.hemdox-hdr__mnav .hemdox-hdr__menu > li > a { display: block; padding: 15px 6px; font-size: 16px; font-weight: 700; color: var(--hdr-ink); }
.hemdox-hdr__mnav .hemdox-hdr__menu > li > a:hover { color: var(--hdr-accent); }
.hemdox-hdr__mnav .sub-menu { list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; }
.hemdox-hdr__mnav .sub-menu a { display: block; padding: 9px 6px; font-size: 14.5px; color: var(--hdr-muted); }

/* ============================ DESKTOP ============================ */
@media (min-width: 1025px) {
	.hemdox-hdr { --hdr-h: 74px; }
	.hemdox-hdr__burger { display: none; }
	.hemdox-hdr__logo { flex: 0 0 auto; justify-content: flex-start; font-size: 25px; }
	.hemdox-hdr__nav { display: flex; flex: 1 1 auto; justify-content: center; }
	.hemdox-hdr__searchrow .hemdox-hdr__search-field { max-width: 560px; margin: 0 auto; } /* centered search under the menu */
	.hemdox-hdr__drawer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hemdox-hdr__panel, .hemdox-hdr__scrim { transition: none !important; }
}
