/**
 * aisourcemart — header styles (top bar, main bar, category strip,
 * ticker, mobile bar, drawer, bottom nav).
 * Loaded from functions.php (see aisourcemart_enqueue_header_assets).
 */

:root {
	/* surfaces */
	--tj-cream: #fffbf6;
	--tj-white: #ffffff;

	/* warm dark gradient (light warm grey → near black) */
	--tj-grad-1: #5d564f;
	--tj-grad-2: #35312d;
	--tj-grad-3: #121110;
	--tj-grad-4: #070707;

	/* text */
	--tj-ink: #221d1a;
	--tj-topbar-text: #221d1a;
	--tj-topbar-emi: var(--tj-tan-dark);
	--tj-nav-link: #cdc7bf;
	--tj-muted: #8f8a84;

	/* accents — Customizer > Theme Colors > Primary Color theke ashe */
	--tj-tan: var(--aisourcemart-primary, #ff5a00);
	--tj-tan-hover: var(--aisourcemart-primary-light, #c79a67);
	--tj-gold-line: var(--tj-tan);
	--tj-offer-fill: color-mix(in srgb, var(--tj-tan) 18%, transparent);
	--tj-badge: var(--tj-tan);
	--tj-soft: color-mix(in srgb, var(--tj-tan) 9%, #ffffff);   /* halka tint (menu hover) */
	--tj-soft-line: color-mix(in srgb, var(--tj-tan) 30%, #ffffff);
	--tj-tan-dark: var(--aisourcemart-primary-dark, #e04f00);
	--tj-green: var(--tj-tan);

	/* geometry */
	--tj-radius-sm: 8px;
	--tj-radius: 10px;
	--tj-radius-btn: 12px;
	--tj-radius-pill: 999px;
	--tj-bar-h: 50px;

	/* LOGO SIZE — change these two numbers to resize the logo */
	--tj-logo-h: 46px;
	--tj-logo-h-mobile: 32px;

	/* LOGO BACKGROUND — white pill so dark/navy logo parts stay visible.
	   For no pill use: transparent */
	--tj-logo-bg: #ffffff;

	/* LOGO COLOR — none = original colors
	   (for an all-white logo use: brightness(0) invert(1)) */
	--tj-logo-filter: none;

	/* initial paint only — JS corrects it on load / resize / content change */
	--tj-header-height: 210px;
}

body {
	background-color: var(--tj-cream) !important;
	margin: 0;
	padding-top: var(--tj-header-height);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===== ADMIN BAR OFFSETS ===== */
body.admin-bar { --tj-header-height: 242px; }
body.admin-bar .tj-sticky-header { top: 32px !important; }
@media screen and (max-width: 782px) {
	body.admin-bar { --tj-header-height: 256px; }
	body.admin-bar .tj-sticky-header { top: 46px !important; }
}

/* ===== STICKY WRAPPER ===== */
.tj-sticky-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9990;
	background: var(--tj-cream);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.tj-container {
	max-width: 1250px;
	margin: 0 auto;
	padding: 0 15px;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

/* =========================================================
   1. TOP BAR
   ========================================================= */
.tj-topbar {
	background: var(--tj-white);
	color: var(--tj-topbar-text);
	font-size: 13px;
	padding: 9px 0;
	border-bottom: 1px solid #f4f1ec;
}
.tj-topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}
.tj-topbar-left { display: flex; align-items: center; gap: 26px; }
.tj-topbar-left a {
	color: var(--tj-topbar-text);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	transition: color 0.2s;
}
.tj-topbar-left a:hover { color: #000000; }
.tj-topbar-left a.tj-emi-link { color: var(--tj-topbar-emi); font-weight: 600; background: var(--tj-soft); padding: 3px 12px; border-radius: 999px; }
.tj-topbar-left a.tj-emi-link:hover { color: var(--tj-tan); }

.tj-topbar-right { display: flex; align-items: center; gap: 24px; }
.tj-topbar-right a {
	color: var(--tj-topbar-text);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	transition: color 0.2s;
}
.tj-topbar-right a:hover { color: #000000; }
.tj-topbar-right svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--tj-tan); }

/* =========================================================
   2 + 3. DARK BLOCK — main bar + category strip
   ========================================================= */
.tj-header {
	background:
		radial-gradient(700px 180px at 88% -10%, color-mix(in srgb, var(--tj-tan) 16%, transparent), transparent 70%),
		linear-gradient(
		180deg,
		var(--tj-grad-1) 0%,
		var(--tj-grad-2) 30%,
		var(--tj-grad-3) 70%,
		var(--tj-grad-4) 100%
	);
	position: relative;
	z-index: 101;
	padding-bottom: 13px;
}

/* thin orange accent line at the bottom of the dark block */
.tj-header::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, var(--tj-tan) 50%, transparent 100%);
	opacity: 0.85;
	pointer-events: none;
}

.tj-header-inner {
	display: flex !important;
	align-items: center !important;
	gap: 0 !important;
	height: 92px;
	flex-wrap: nowrap !important;
}

/* ---- Logo (BIGGER, original colors) ---- */
.tj-branding { flex-shrink: 0; line-height: 0; margin-right: 40px; }
.tj-branding img,
.tj-branding img.custom-logo {
	height: var(--tj-logo-h) !important;
	max-height: var(--tj-logo-h) !important;
	width: auto !important;
	max-width: none !important;
	display: block;
	filter: var(--tj-logo-filter);
}
.tj-branding .custom-logo-link {
	display: block;
	line-height: 0;
	background: var(--tj-logo-bg);
	padding: 8px 16px;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tj-branding .custom-logo-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.tj-logo-text {
	font-size: 36px;
	font-weight: 700;
	color: var(--tj-white);
	text-decoration: none;
	letter-spacing: -0.8px;
	line-height: 1;
	white-space: nowrap;
}

/* ---- Text links ---- */
.tj-header-links {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-shrink: 0;
	margin-left: 20px;
}
.tj-header-links a {
	color: var(--tj-nav-link);
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 500;
	white-space: nowrap;
	letter-spacing: 0.1px;
	transition: color 0.2s;
}
.tj-header-links a:hover { color: var(--tj-white); }
.tj-header-links { gap: 6px; }
.tj-header-links a:not(.tj-offer-link) {
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 10px;
	transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s;
}
.tj-header-links a:not(.tj-offer-link):hover {
	background: var(--tj-soft);
	border-color: var(--tj-soft-line);
	color: var(--tj-tan);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--tj-tan) 14%, transparent);
}
.tj-header-links a:not(.tj-offer-link):active { transform: scale(0.97); }
.tj-header-links a.tj-offer-link {
	color: #ffffff;
	background: var(--tj-offer-fill);
	border: 1px solid var(--tj-gold-line);
	padding: 7px 21px;
	border-radius: var(--tj-radius-sm);
	font-weight: 500;
	line-height: 1.35;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tj-header-links a.tj-offer-link { animation: tj-offer-glow 2.6s ease-in-out infinite; }
@keyframes tj-offer-glow {
	0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tj-tan) 0%, transparent); }
	50%      { box-shadow: 0 0 14px 2px color-mix(in srgb, var(--tj-tan) 35%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
	.tj-header-links a.tj-offer-link { animation: none; }
}
.tj-header-links a.tj-offer-link:hover {
	background: var(--tj-gold-line);
	border-color: var(--tj-gold-line);
	color: #ffffff;
}

/* ---- Search ---- */
.tj-search {
	flex: 1 1 auto;
	min-width: 120px; /* search shrinks first, icons never get pushed */
	max-width: 550px;
	position: relative;
	margin-right: auto;
}
.tj-search form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
}
.tj-search input[type="search"],
.tj-search input[type="text"] {
	flex: 1 1 auto;
	width: 100%;
	height: 42px;
	padding: 0 54px 0 44px;
	border: none;
	border-radius: 10px;
	background: var(--tj-white);
	outline: none;
	font-size: 13.5px;
	font-family: inherit;
	color: var(--tj-ink);
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	line-height: 42px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
	transition: box-shadow 0.2s;
}
.tj-search input[type="search"]::placeholder,
.tj-search input[type="text"]::placeholder { color: var(--tj-muted); opacity: 1; }
.tj-search input[type="search"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tj-tan) 35%, transparent); }
.tj-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px !important;
	height: 16px !important;
	color: #6e6a66;
	pointer-events: none;
}
.tj-search button {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: var(--tj-tan);
	color: #ffffff;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}
.tj-search button:hover { background: var(--tj-tan-dark); }
.tj-search button:active { transform: translateY(-50%) scale(0.94); }
.tj-search button svg { width: 16px; height: 16px; }

/* ---- Icon buttons (Profile · Track · Cart) — FIXED, never shrink / wrap ---- */
.tj-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 9px;
	flex: 0 0 auto;
	min-width: 144px; /* 3 × 42px + 2 × 9px gap */
	margin-left: 20px;
}
.tj-actions .tj-action-btn { flex: 0 0 auto; }
.tj-action-btn {
	width: 42px;
	height: 42px;
	border-radius: var(--tj-radius-btn);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1d1916;
	text-decoration: none;
	background: var(--tj-white);
	border: none;
	cursor: pointer;
	transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
	position: relative;
	padding: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}
.tj-action-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	background: var(--tj-soft);
	color: var(--tj-tan);
}
.tj-action-btn:active { transform: translateY(0); }
.tj-action-btn svg { width: 19px; height: 19px; }

/* Cart badge */
.tj-cart-badge {
	position: absolute;
	top: -7px;
	right: -7px;
	background: var(--tj-badge);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	box-sizing: border-box;
	line-height: 1;
	box-shadow: 0 0 0 2px rgba(20, 18, 16, 0.65), 0 3px 8px color-mix(in srgb, var(--tj-tan) 45%, transparent);
}

/* Mobile hamburger — hidden on desktop */
.tj-mobile-toggle { display: none; }

/* ---- Category strip (FULL WIDTH — reference style) ---- */
.tj-navbar {
	display: flex;
	align-items: center;
	width: 100%;
	position: relative;
	z-index: 5;
}

.tj-nav {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	overflow: visible; /* must NOT clip absolute dropdowns */
	position: relative;
	background: var(--tj-white);
	border-radius: 16px;
	height: var(--tj-bar-h);
	display: flex;
	align-items: center;
	padding: 0 6px;
	box-sizing: border-box;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.tj-nav ul.tj-menu,
.tj-nav #primary-menu {
	display: flex !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
	flex-wrap: nowrap !important;
	justify-content: space-between !important; /* spread across the full width */
	align-items: center !important;
	width: 100% !important;
	height: auto !important;
	float: none !important;
}

/* Items that do not fit inside the white box are hidden by the
   "fit" script (bottom of this file) — they never spill outside. */
.tj-nav ul.tj-menu > li.tj-ov-hidden,
.tj-nav #primary-menu > li.tj-ov-hidden { display: none !important; }

.tj-nav ul li {
	position: relative;
	flex-shrink: 0;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: auto !important;
	float: none !important;
}
.tj-nav ul li a {
	text-decoration: none;
	color: var(--tj-ink);
	font-weight: 600 !important;
	font-size: 13px !important;
	padding: 8px 11px;
	margin: 0 !important;
	display: flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	border-radius: 7px;
	background: transparent;
	line-height: 1.35 !important;
	letter-spacing: 0;
	text-transform: none;
	min-height: 0;
	transition: background 0.18s, color 0.18s;
}
.tj-nav ul li ul.sub-menu li a { color: #333333; }
.tj-nav ul li a:hover,
.tj-nav ul li.tj-open > a {
	color: var(--tj-tan) !important;
	background: var(--tj-soft) !important;
}

/* current page indicator */
.tj-nav ul.tj-menu > li.current-menu-item > a,
.tj-nav ul.tj-menu > li.current-menu-ancestor > a,
.tj-nav ul.tj-menu > li.current-menu-parent > a {
	color: #ffffff !important;
	background: var(--tj-tan) !important;
	box-shadow: 0 4px 12px color-mix(in srgb, var(--tj-tan) 35%, transparent);
}

/* small breathing space between the header and the page content */
main.site-main { padding-top: 14px; }

/* ===== REFERENCE STYLE MENU STRIP =====
   equal spread · centered text · vertical dividers · chevron */
.tj-nav ul.tj-menu > li,
.tj-nav #primary-menu > li { flex: 1 1 auto !important; }

.tj-nav ul.tj-menu > li > a,
.tj-nav #primary-menu > li > a {
	justify-content: center;
	margin: 0 2px !important;
	padding: 10px 12px;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	border-radius: 11px;
}

/* vertical divider between top-level items */
.tj-nav ul.tj-menu > li + li::before,
.tj-nav #primary-menu > li + li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 20px;
	background: #d6d1ca;
	pointer-events: none;
	display: none; /* pill style — no dividers */
}

/* used by the fit script — measure items at natural width */
.tj-nav ul.tj-menu.tj-measuring > li,
.tj-nav #primary-menu.tj-measuring > li { flex: 0 0 auto !important; }

/* Caret */
.tj-nav ul li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	border-right: 1.7px solid currentColor;
	border-bottom: 1.7px solid currentColor;
	transform: rotate(45deg);
	margin-left: 1px;
	position: relative;
	top: -2px;
	opacity: 0.6;
	transition: transform 0.2s, top 0.2s;
}
.tj-nav ul li.tj-open > a::after { transform: rotate(-135deg); top: 1px; }

/* =========================================================
   DROPDOWN — CLOSED BY DEFAULT
   Base rule (0,2,3) — no !important, so every open rule
   below (0,4,3 + !important) always beats it.
   ========================================================= */
.tj-nav ul li > ul.sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	width: 240px;
	background: #ffffff;
	border: 1px solid #efeae3;
	border-top: 3px solid var(--tj-tan);
	border-radius: 14px;
	box-shadow: 0 22px 44px rgba(24, 20, 16, 0.2);
	z-index: 99999;
	padding: 10px;
	box-sizing: border-box;
	margin: 0;
	list-style: none !important;
	flex-direction: column;
	gap: 0;
	display: none;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.16s ease, visibility 0.16s ease;
}

/* Hover bridge — invisible strip over the gap so the pointer
   never leaves the li while moving down to the panel */
.tj-nav ul li > ul.sub-menu::before {
	content: '';
	position: absolute;
	top: -14px;
	left: 0;
	right: 0;
	height: 14px;
}

/* small notch pointing at the parent item */
.tj-nav ul li > ul.sub-menu::after {
	content: '';
	position: absolute;
	top: -12px;
	left: 26px;
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-bottom: 9px solid var(--tj-tan);
	pointer-events: none;
}
.tj-nav ul li > ul.sub-menu.tj-flip::after { left: auto; right: 26px; }

/* drop-in animation when a panel opens */
@keyframes tj-drop {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
.tj-nav ul.tj-menu li:hover > ul.sub-menu,
.tj-nav ul.tj-menu li.tj-open > ul.sub-menu { animation: tj-drop 0.18s ease; }

/* Depth-3+ panels stay hidden (menu depth = 2) */
.tj-nav ul li ul.sub-menu ul.sub-menu { display: none !important; }

/* Theme-forced classes — closed unless the engine opens it */
.tj-nav ul li.focus > ul.sub-menu,
.tj-nav ul li.toggled > ul.sub-menu,
.tj-nav ul li.current-menu-item > ul.sub-menu,
.tj-nav ul li.current-menu-parent > ul.sub-menu,
.tj-nav ul li.current-menu-ancestor > ul.sub-menu {
	display: none;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

/* ===== OPEN STATE — ALWAYS WINS ===== */
@media (hover: hover) and (pointer: fine) {
	.tj-nav ul.tj-menu li:hover > ul.sub-menu {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}
	.tj-nav ul.tj-menu li:hover > a::after { transform: rotate(-135deg); top: 1px; }
	.tj-nav ul.tj-menu li:hover > a,
	.tj-nav ul.tj-menu li.tj-open > a {
		color: var(--tj-tan) !important;
		background: var(--tj-soft) !important;
	}
}
/* click / keyboard */
.tj-nav ul.tj-menu li.tj-open > ul.sub-menu {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}
/* accessibility — open on keyboard focus */
.tj-nav ul.tj-menu li:focus-within > ul.sub-menu {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

/* Right-edge flip (so the last dropdown never overflows) */
.tj-nav ul li > ul.sub-menu.tj-flip { left: auto; right: 0; }

.tj-nav ul li ul.sub-menu li { width: 100%; }
.tj-nav ul li ul.sub-menu li a {
	padding: 9px 12px;
	font-size: 13.5px;
	color: #333333;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	border-radius: 9px;
	white-space: normal;
	background: transparent;
	transition: background 0.16s, color 0.16s, padding-left 0.16s;
}
.tj-nav ul li ul.sub-menu li a::after { display: none !important; }
/* soft tint + slide on hover inside the white card */
.tj-nav ul li ul.sub-menu li a:hover {
	background: var(--tj-soft) !important;
	color: var(--tj-tan) !important;
	padding-left: 16px;
}
/* Right chevron for nested items */
.tj-nav ul li ul.sub-menu li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	border-right: 1.7px solid currentColor;
	border-top: 1.7px solid currentColor;
	transform: rotate(45deg);
	margin-left: auto;
	opacity: 0.5;
}

/* Long child lists → 2 columns, still a compact card */
.tj-nav ul li > ul.sub-menu.tj-wide { width: 380px !important; padding: 8px; }
.tj-nav ul li > ul.sub-menu.tj-wide li { break-inside: avoid; margin: 0 !important; }
/* tighter rows inside the 2-column card */
.tj-nav ul li > ul.sub-menu.tj-wide li a { padding: 7px 12px; font-size: 13px; line-height: 1.35 !important; }
@media (hover: hover) and (pointer: fine) {
	.tj-nav ul.tj-menu li:hover > ul.sub-menu.tj-wide {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		column-count: 2;
		column-gap: 4px;
	}
}
.tj-nav ul.tj-menu li.tj-open > ul.sub-menu.tj-wide {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	column-count: 2;
	column-gap: 4px;
}

/* =========================================================
   4. PROMO TICKER (cream, marquee)
   ========================================================= */
.tj-ticker {
	background: var(--tj-cream);
	border-top: 1px solid #efe7dc;
	overflow: hidden;
	position: relative;
}
.tj-ticker-inner {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 9px 0;
	white-space: nowrap;
	width: max-content;
	animation: tj-marquee 40s linear infinite;
	will-change: transform;
}
.tj-ticker:hover .tj-ticker-inner { animation-play-state: paused; }
.tj-ticker-item,
.tj-ticker-inner > span {
	font-size: 13px;
	color: #211d19;
	font-weight: 600;
	padding: 0 30px;
	border-right: 1px solid #e4dbcf;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.tj-ticker-inner > span:last-child { border-right: none; }
.tj-ticker-item .tj-tick-ico { font-size: 13px; line-height: 1; font-style: normal; }
@keyframes tj-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.tj-ticker-inner { animation: none; overflow-x: auto; }
}

/* =========================================================
   MOBILE BAR — hidden on desktop
   ========================================================= */
.tj-mob-bar { display: none; }

/* =========================================================
   MOBILE DRAWER / OVERLAY / BOTTOM NAV
   (fixed elements — live outside the sticky wrapper)
   ========================================================= */
.tj-overlay {
	position: fixed;
	inset: 0;
	background: rgba(12, 9, 6, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 99996;
}
body.tj-drawer-open { overflow: hidden; }
body.tj-drawer-open .tj-overlay { opacity: 1; visibility: visible; }

.tj-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(320px, 86vw);
	background: #fffdf9;
	z-index: 99997;
	transform: translateX(105%);
	transition: transform 0.28s ease;
	display: flex;
	flex-direction: column;
	box-shadow: -18px 0 44px rgba(0, 0, 0, 0.28);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
body.tj-drawer-open .tj-drawer { transform: translateX(0); }

.tj-drawer-head {
	background: linear-gradient(180deg, #3a3027, #171310);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	flex-shrink: 0;
	border-bottom: 3px solid var(--tj-tan);
}
.tj-drawer-title { font-weight: 700; font-size: 16px; letter-spacing: 0.2px; }
.tj-drawer-close {
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.tj-drawer-close svg { width: 17px; height: 17px; }

.tj-drawer-body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.tj-drawer-toplinks { border-bottom: 1px solid #f0e9df; padding: 4px 0; }
.tj-drawer-toplinks a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	color: #2a2520;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}
.tj-drawer-toplinks a svg { width: 15px; height: 15px; color: var(--tj-tan); flex-shrink: 0; }
.tj-drawer-toplinks a:active { background: #f7f1e8; }

.tj-drawer-nav { padding: 4px 0 10px; }
.tj-drawer-nav ul,
.tj-drawer-nav .tj-dmenu,
.tj-drawer-nav .tj-dmenu ul.sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tj-dmenu > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 16px;
	color: #221d18;
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 600;
	border-bottom: 1px solid #f3ede4;
}
.tj-dmenu > li.menu-item-has-children > a::after {
	content: '';
	width: 6px;
	height: 6px;
	border-right: 1.8px solid currentColor;
	border-bottom: 1.8px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s;
	opacity: 0.55;
	flex-shrink: 0;
}
.tj-dmenu > li.tj-open > a::after { transform: rotate(-135deg); }
.tj-dmenu ul.sub-menu { display: none; background: #faf5ee; padding: 4px 0; }
.tj-dmenu li.tj-open > ul.sub-menu { display: block; }
.tj-dmenu ul.sub-menu a {
	display: block;
	padding: 9px 16px 9px 30px;
	color: #4a443d;
	text-decoration: none;
	font-size: 13.5px;
	border-bottom: 1px solid #f3ede4;
}

.tj-drawer-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 16px 18px;
	border-top: 1px solid #f0e9df;
}
.tj-drawer-quick a {
	font-size: 12.5px;
	font-weight: 600;
	color: #2a2520;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #e8e0d4;
	border-radius: 999px;
	padding: 8px 14px;
}
.tj-drawer-quick a:active { background: var(--tj-soft); }
.tj-drawer-quick a.tj-q-offer { color: #ffffff; background: var(--tj-tan); border-color: var(--tj-tan); }

.tj-bottomnav {
	position: fixed;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	z-index: 9995;
	display: none;
	align-items: center;
	gap: 2px;
	background: #241b15;
	border-radius: 999px;
	padding: 8px 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.tj-bn-item {
	width: 46px;
	height: 40px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	text-decoration: none;
	position: relative;
}
.tj-bn-item svg { width: 20px; height: 20px; }
.tj-bn-item.tj-bn-active { background: var(--tj-tan); color: #ffffff; box-shadow: 0 4px 12px color-mix(in srgb, var(--tj-tan) 40%, transparent); }
.tj-bn-badge {
	position: absolute;
	top: -4px;
	right: 2px;
	background: var(--tj-badge);
	color: #ffffff;
	font-size: 9px;
	font-weight: 700;
	min-width: 15px;
	height: 15px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
	box-sizing: border-box;
	box-shadow: 0 0 0 2px #241b15;
}

/* =========================================================
   FOCUS VISIBILITY
   ========================================================= */
.tj-sticky-header a:focus-visible,
.tj-sticky-header button:focus-visible,
.tj-sticky-header input:focus-visible,
.tj-drawer a:focus-visible,
.tj-bottomnav a:focus-visible {
	outline: 2px solid var(--tj-tan);
	outline-offset: 2px;
	border-radius: 6px;
}

/* =========================================================
   RESPONSIVE — desktop / tablet
   ========================================================= */
@media (max-width: 1240px) {
	.tj-header-links { gap: 4px; }
	.tj-search { max-width: 360px; }
	.tj-branding { margin-right: 28px; }
}

@media (max-width: 1100px) {
	.tj-header-links { display: none; }
}

@media (max-width: 992px) {
	.tj-header-inner {
		flex-wrap: wrap !important;
		height: auto;
		padding: 12px 0;
		gap: 10px !important;
	}
	.tj-branding { margin-right: 0; }
	.tj-branding img,
	.tj-branding img.custom-logo {
		height: 38px !important;
		max-height: 38px !important;
	}
	.tj-logo-text { font-size: 30px; }

	.tj-search {
		order: 3;
		flex: 1 1 100%;
		max-width: 100%;
		margin: 2px 0 0;
	}
	.tj-actions { margin-left: auto; gap: 8px; min-width: 0; }
	.tj-mobile-toggle { display: flex; }

	.tj-navbar { flex-wrap: wrap; gap: 8px; }

	/* Collapsible menu — nothing is clipped, panels go in-flow */
	.tj-nav {
		display: none;
		flex: 1 1 100%;
		height: auto;
		max-height: 62vh;
		overflow-y: auto;
		padding: 8px;
		-webkit-overflow-scrolling: touch;
	}
	.tj-nav.tj-nav-open { display: block; }
	/* collapsed mobile/tablet menu shows every item */
	.tj-nav ul.tj-menu > li.tj-ov-hidden,
	.tj-nav #primary-menu > li.tj-ov-hidden { display: block !important; }
	.tj-nav ul.tj-menu,
	.tj-nav #primary-menu {
		flex-direction: column !important;
		align-items: stretch !important;
		flex-wrap: nowrap !important;
		justify-content: flex-start !important;
	}
	/* reference strip is desktop-only: no dividers, natural widths, left aligned */
	.tj-nav ul.tj-menu > li + li::before,
	.tj-nav #primary-menu > li + li::before { display: none; }
	.tj-nav ul.tj-menu > li,
	.tj-nav #primary-menu > li { flex: 0 0 auto !important; }
	.tj-nav ul.tj-menu > li > a,
	.tj-nav #primary-menu > li > a {
		justify-content: flex-start;
		margin: 0 !important;
	}
	.tj-nav ul li { width: 100%; }
	.tj-nav ul li > ul.sub-menu,
	.tj-nav ul li > ul.sub-menu.tj-wide {
		position: static !important;
		left: auto !important;
		right: auto !important;
		width: 100% !important;
		max-width: 100%;
		column-count: 1 !important;
		border: none;
		border-radius: 0 0 8px 8px;
		box-shadow: none;
		background: #faf7f2;
	}
	.tj-nav ul.tj-menu li.tj-flip > ul.sub-menu { left: auto !important; right: auto !important; }
	.tj-nav ul li > ul.sub-menu::after { display: none; }
	.tj-nav ul li > ul.sub-menu { border-top: none; }
	.tj-nav ul.tj-menu li.tj-open > ul.sub-menu,
	.tj-nav ul.tj-menu li.tj-open > ul.sub-menu.tj-wide {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}
	/* no hover-open on touch screens */
	.tj-nav ul.tj-menu li:focus-within > ul.sub-menu { display: none; }
	.tj-nav ul.tj-menu li.tj-open:focus-within > ul.sub-menu { display: block !important; }
}

@media (max-width: 640px) {
	.tj-topbar { font-size: 12px; padding: 7px 0; }
	.tj-topbar-left { gap: 16px; }
	.tj-topbar-right { gap: 14px; }
	.tj-topbar-right a span.tj-lbl { display: none; }
	.tj-topbar-right svg { width: 15px; height: 15px; }
	.tj-action-btn { width: 38px; height: 38px; border-radius: 11px; }
	.tj-action-btn svg { width: 18px; height: 18px; }
	.tj-ticker-item, .tj-ticker-inner > span { font-size: 12px; padding: 0 18px; }
}

/* =========================================================
   MOBILE MODE — ≤768px
   ========================================================= */
@media (max-width: 768px) {

	/* hide the desktop header pieces */
	.tj-topbar,
	.tj-ticker,
	.tj-header-inner,
	.tj-navbar { display: none !important; }

	.tj-header {
		padding-bottom: 4px;
		background: linear-gradient(180deg, #4a4139 0%, #2c231b 32%, #171310 72%, #0b0908 100%);
	}

	/* ---- Row 1: logo + cart ---- */
	.tj-mob-bar { display: block; }
	.tj-mob-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 12px 14px 2px;
	}
	.tj-mob-logo {
		flex-shrink: 0;
		line-height: 0;
		text-decoration: none;
	}
	.tj-mob-logo img,
	.tj-mob-logo img.custom-logo {
		height: var(--tj-logo-h-mobile) !important;
		max-height: var(--tj-logo-h-mobile) !important;
		width: auto !important;
		max-width: none !important;
		display: block;
		filter: var(--tj-logo-filter);
	}
	.tj-mob-logo .custom-logo-link {
		display: block;
		line-height: 0;
		background: var(--tj-logo-bg);
		padding: 6px 11px;
		border-radius: 11px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	}
	.tj-mob-logo-text {
		font-size: 29px;
		font-weight: 700;
		color: #ffffff;
		letter-spacing: -0.6px;
		line-height: 1;
		text-decoration: none;
		white-space: nowrap;
		display: block;
	}

	.tj-mob-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
	.tj-mob-btn {
		width: 38px;
		height: 38px;
		border-radius: 12px;
		background: var(--tj-white);
		color: #241b15;
		display: flex;
		align-items: center;
		justify-content: center;
		text-decoration: none;
		border: none;
		cursor: pointer;
		padding: 0;
		position: relative;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
		transition: transform 0.15s ease;
	}
	.tj-mob-btn:active { transform: scale(0.94); }
	.tj-mob-btn svg { width: 18px; height: 18px; }
	.tj-mob-btn .tj-cart-badge {
		top: -6px;
		right: -6px;
		box-shadow: 0 0 0 2px rgba(20, 18, 16, 0.8);
	}

	/* ---- Row 2: search pill + menu button (single drawer toggle) ---- */
	.tj-mob-searchrow {
		display: flex;
		align-items: center;
		gap: 9px;
		padding: 12px 14px 10px;
	}
	.tj-mob-searchrow .tj-search {
		order: 0;
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
		margin: 0;
	}
	.tj-filter-btn {
		flex-shrink: 0;
		width: 44px;
		height: 42px;
		border-radius: 12px;
		background: var(--tj-white);
		color: #241b15;
		display: flex;
		align-items: center;
		justify-content: center;
		border: none;
		cursor: pointer;
		padding: 0;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
		transition: transform 0.15s ease;
	}
	.tj-filter-btn:active { transform: scale(0.94); }
	.tj-filter-btn svg { width: 17px; height: 17px; }

	/* ---- Floating bottom nav ---- */
	.tj-bottomnav { display: flex; }
	body { padding-bottom: 86px; }

}

/* =========================================================
   WHITE THEME — white header + white page background
   (this block comes last so it overrides the dark styles above;
    delete it to go back to the dark header)
   ========================================================= */
:root {
	--tj-page-bg: #ffffff;
	--tj-logo-h: 54px;
	--tj-logo-h-mobile: 38px;
	--tj-logo-bg: transparent;
	--tj-line: #ebe4d9;      /* hairline borders */
	--tj-field: #f7f4ef;     /* search + icon button fill */
	--tj-strip: #f3efe8;     /* category strip fill */
	--tj-header-text: #4a443d;
}
body { background-color: var(--tj-page-bg) !important; }

/* header surface */
.tj-header,
.tj-sticky-header { background: #ffffff; }
.tj-header { border-bottom: 1px solid var(--tj-line); }
.tj-sticky-header { box-shadow: 0 8px 24px rgba(34, 29, 26, 0.08); }

/* top bar sits slightly tinted so it separates from the white header */
.tj-topbar { background: #faf6f0; border-bottom: 1px solid var(--tj-line); }

/* logo — no pill needed on white */
.tj-branding .custom-logo-link,
.tj-mob-logo .custom-logo-link {
	background: transparent;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}
.tj-branding .custom-logo-link:hover { transform: none; box-shadow: none; }
.tj-branding .custom-logo-link:hover img { transform: scale(1.03); }
.tj-branding img { transition: transform 0.2s ease; }
.tj-logo-text,
.tj-mob-logo-text { color: var(--tj-ink); }

/* text links */
.tj-header-links a { color: var(--tj-header-text); }
.tj-header-links a:hover { color: var(--tj-tan); }
.tj-header-links a.tj-offer-link {
	color: var(--tj-tan);
	background: var(--tj-soft);
	border-color: var(--tj-tan);
	font-weight: 600;
}

/* search */
.tj-search input[type="search"],
.tj-search input[type="text"] {
	background: var(--tj-field);
	border: 1px solid var(--tj-line);
	box-shadow: none;
}
.tj-search input[type="search"]:focus {
	background: #ffffff;
	border-color: var(--tj-tan);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tj-tan) 16%, transparent);
}

/* icon buttons */
.tj-action-btn,
.tj-mob-btn,
.tj-filter-btn {
	background: var(--tj-field);
	border: 1px solid var(--tj-line);
	color: var(--tj-ink);
	box-shadow: none;
}
.tj-action-btn:hover { background: var(--tj-soft); border-color: var(--tj-soft-line); box-shadow: 0 6px 14px color-mix(in srgb, var(--tj-tan) 14%, transparent); }
.tj-cart-badge,
.tj-mob-btn .tj-cart-badge { box-shadow: 0 0 0 2px #ffffff, 0 3px 8px color-mix(in srgb, var(--tj-tan) 40%, transparent); }

/* category strip */
.tj-nav {
	background: var(--tj-strip);
	border: 1px solid var(--tj-line);
	box-shadow: none;
}

/* orange accent line stays at the bottom edge */
.tj-header::after { opacity: 1; }

/* mobile drawer header — white, matches the theme */
.tj-drawer-head { background: #ffffff; color: var(--tj-ink); }
.tj-drawer-close { background: var(--tj-field); color: var(--tj-ink); border: 1px solid var(--tj-line); }