/* =====================================================================
   JustPrint header & menu polish (loaded after style.css in head.php)
   - kills the ugly focus rectangle on clicked menu links
   - aligns the currency switcher inside the header bar
   - modernises the desktop header (flex, hover states, soft shadow)
   Desktop rules are scoped to >=992px; the mobile drawer is styled at the end of this file.
   ===================================================================== */

/* ---------- focus: no box for mouse clicks, subtle ring for keyboard ---------- */
.header .main-menu a:focus { outline: none; }
.header .main-menu a:focus-visible { outline: 2px solid #4db6ac; outline-offset: 2px; border-radius: 8px; }
.header .btn_menu:focus { outline: none; }
.header .btn_menu:focus-visible { outline: 2px solid #4db6ac; outline-offset: 2px; }

/* ---------- currency switcher (desktop: sits at the right end, centred) ---------- */
.jp-currency-form select {
	height: 36px;
	padding: 0 28px 0 12px;
	border: 1px solid #dfe6e9;
	border-radius: 8px;
	background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2378909c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
	color: #37474f;
	font: 600 13px/1 Roboto, Arial, sans-serif;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	transition: border-color .18s, box-shadow .18s;
}
.jp-currency-form select:hover { border-color: #b2dfdb; }
.jp-currency-form select:focus {
	outline: none;
	border-color: #4db6ac;
	box-shadow: 0 0 0 3px rgba(77, 182, 172, .18);
}

/* ---------- desktop header: flex layout, hover states, soft shadow ---------- */
@media (min-width: 992px) {

	/* kill any stray spacing between the page top and the header bar */
	body { margin-top: 0 !important; padding-top: 0 !important; }
	/* style.css floats the header (it used to be position:fixed). Once it is position:relative a float
	   squeezes every overflow:hidden block that follows it (page heroes) into a zero-width sliver. */
	.header { margin: 0 !important; padding: 0 !important; float: none !important; width: 100% !important; clear: both; }

	.header {
		background: #fff;
		position: relative;
		z-index: 99;
		box-shadow: 0 1px 0 rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .05);
	}

	.header > .container {
		display: flex !important;
		align-items: center;
		position: relative;
		min-height: 64px;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.header .logo { flex: 0 0 auto; display: flex; align-items: center; margin: 0 !important; padding: 0 !important; }
	.header .logo img { max-height: 46px; width: auto; }

	.header .menu {
		flex: 1 1 auto;
		display: flex !important;
		align-items: center;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
	}

	.header .menu .main-menu {
		display: flex !important;
		align-items: center;
		flex-wrap: wrap;
		gap: 2px 4px;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
		float: none !important;
	}

	.header .menu .main-menu > li {
		float: none !important;
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}

	.header .menu .main-menu > li > a {
		display: block;
		padding: 10px 13px;
		margin: 0;
		font: 600 13px/1.2 Roboto, Arial, sans-serif;
		letter-spacing: .045em;
		text-transform: uppercase;
		color: #455a64;
		background: none;
		border: 0;
		border-radius: 8px;
		transition: color .18s ease, background-color .18s ease;
	}

	.header .menu .main-menu > li > a:hover {
		color: #26a69a;
		background: #f1f8f7;
	}

	/* currency li pushed to the far right, vertically centred */
	.header .menu .main-menu > li.jp-currency-li {
		margin-left: auto !important;
		display: flex !important;
		align-items: center;
		padding-left: 10px !important;
	}

	.header .menu .main-menu > li.jp-currency-li .jp-currency-form { display: block; }

	/* the mobile hamburger button never shows on desktop */
	.header .menu .btn_menu { display: none; }
}

/* ---------- small screens: switcher fills its row (full mobile styling at the end of this file) ---------- */
@media (max-width: 991px) {
	.jp-currency-form select { height: 38px; width: 100%; }
}

/* ---------- Design Studio call-to-action pill (desktop) ---------- */
@media (min-width: 992px) {
	.header .menu .main-menu > li > a.jp-design-cta {
		background: #26a69a;
		color: #fff !important;
		padding: 10px 18px;
		border-radius: 999px;
		box-shadow: 0 2px 6px rgba(38, 166, 154, .35);
	}
	.header .menu .main-menu > li > a.jp-design-cta:hover {
		background: #219187;
		color: #fff;
	}

	/* ---------- cart icon ---------- */
	.header .menu .main-menu > li.jp-cart-li > a {
		padding: 10px 12px;
		font-size: 16px;
		color: #455a64;
		border-radius: 8px;
	}
	.header .menu .main-menu > li.jp-cart-li > a:hover { color: #26a69a; background: #f1f8f7; }

	/* ---------- My Account dropdown ---------- */
	.header .menu .main-menu > li.jp-account-li { position: relative; }
	.header .menu .main-menu > li.jp-account-li > a.jp-account-toggle {
		display: flex;
		align-items: center;
		gap: 6px;
	}
	.header .menu .main-menu > li.jp-account-li > a.jp-account-toggle .jp-account-name {
		display: inline-block;
		max-width: 130px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		vertical-align: bottom;
	}
	.header .menu .main-menu > li.jp-account-li > a.jp-account-toggle .fa-angle-down {
		font-size: 14px;
		opacity: .7;
		transition: transform .18s ease;
	}
	.header .menu .main-menu > li.jp-account-li:hover .fa-angle-down { transform: rotate(180deg); }

	.header .menu .main-menu > li.jp-account-li > ul.jp-account-menu {
		display: none;
		position: absolute;
		top: 100%;
		right: 0;
		z-index: 120;
		min-width: 190px;
		margin: 6px 0 0 0 !important;
		padding: 6px !important;
		list-style: none !important;
		background: #fff;
		border: 1px solid #e8eef1;
		border-radius: 10px;
		box-shadow: 0 12px 30px rgba(16, 24, 40, .14);
	}
	/* invisible bridge so the menu stays open while moving the pointer to it */
	.header .menu .main-menu > li.jp-account-li > ul.jp-account-menu::before {
		content: "";
		position: absolute;
		top: -8px;
		left: 0;
		right: 0;
		height: 8px;
	}
	.header .menu .main-menu > li.jp-account-li > ul.jp-account-menu > li {
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}
	.header .menu .main-menu > li.jp-account-li > ul.jp-account-menu > li > a {
		display: block;
		padding: 9px 12px;
		border-radius: 7px;
		font: 500 13px/1.2 Roboto, Arial, sans-serif;
		letter-spacing: 0;
		text-transform: none;
		color: #37474f;
	}
	.header .menu .main-menu > li.jp-account-li > ul.jp-account-menu > li > a:hover {
		background: #f1f8f7;
		color: #26a69a;
	}
	.header .menu .main-menu > li.jp-account-li > ul.jp-account-menu > li.jp-menu-sep {
		height: 1px;
		background: #edf2f4;
		margin: 6px 4px !important;
	}
	.header .menu .main-menu > li.jp-account-li > ul.jp-account-menu > li > a.jp-signout { color: #c62828; }
	.header .menu .main-menu > li.jp-account-li > ul.jp-account-menu > li > a.jp-signout:hover {
		background: #fdf1f1;
		color: #b71c1c;
	}
	.header .menu .main-menu > li.jp-account-li:hover > ul.jp-account-menu,
	.header .menu .main-menu > li.jp-account-li:focus-within > ul.jp-account-menu { display: block; }
}


/* =====================================================================
   MOBILE MENU (<=991px): modern slide-in drawer matching the desktop look
   ===================================================================== */
@media (max-width: 991px) {

	/* hamburger button */
	.header .btn_menu {
		display: flex !important;
		align-items: center;
		justify-content: center;
		float: none;
		width: 44px;
		height: 44px;
		margin: 13px 0;
		border: 1px solid #e4e9f0;
		border-radius: 12px;
		background: #fff;
		color: #37474f;
		transition: background-color .18s, color .18s, border-color .18s;
	}
	.header .btn_menu i { font-size: 22px; line-height: 1; }
	.header .btn_menu:hover, .header .btn_menu:active { background: #f1f8f7; color: #26a69a; border-color: #b2dfdb; }

	/* dim backdrop */
	.overlay_menu.show_overlay {
		background: rgba(16, 24, 40, .55);
		-webkit-backdrop-filter: blur(2px);
		backdrop-filter: blur(2px);
	}
	html.jp-nav-open, html.jp-nav-open body { overflow: hidden; }

	/* the drawer */
	.header .menu_mobile {
		display: flex;
		flex-direction: column;
		width: 320px;
		max-width: 88vw;
		left: 0;
		-webkit-transform: translateX(-105%);
		transform: translateX(-105%);
		visibility: hidden;
		border-radius: 0 20px 20px 0;
		box-shadow: 0 0 40px rgba(16, 24, 40, .28);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		transition: transform .3s ease, visibility 0s linear .3s;
	}
	.header .menu_mobile.open_menu {
		-webkit-transform: none;
		transform: none;
		visibility: visible;
		transition: transform .3s ease, visibility 0s;
	}

	/* top bar: logo + close */
	.header .menu_mobile .logo_mobile {
		position: sticky;
		top: 0;
		z-index: 2;
		float: none;
		width: auto;
		flex: 0 0 auto;
		margin: 0;
		padding: 14px 70px 14px 22px;
		background: #fff;
		border-bottom: 1px solid #edf2f4;
	}
	.header .menu_mobile .logo_mobile img { max-height: 40px; width: auto; }
	.header .menu_mobile .close_menu {
		position: absolute;
		top: 12px;
		right: 14px;
		z-index: 3;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border-radius: 50%;
		background: #f3f6f8;
		transition: background-color .18s;
	}
	.header .menu_mobile .close_menu:hover, .header .menu_mobile .close_menu:active { background: #e3eaee; }
	.header .menu_mobile .close_menu svg { width: 18px; height: 18px; }

	/* list */
	.header .menu_mobile .main-menu {
		float: none;
		width: auto;
		display: block !important;
		margin: 0;
		padding: 8px 12px 28px;
		list-style: none;
	}
	.header .menu_mobile .main-menu > li {
		float: none;
		width: auto;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	.header .menu_mobile .main-menu > li.jp-m-label {
		padding: 16px 12px 6px;
		font: 700 11px/1 Roboto, Arial, sans-serif;
		letter-spacing: .1em;
		text-transform: uppercase;
		color: #90a4ae;
	}

	/* links: icon chip + text */
	.header .menu_mobile .main-menu > li > a:not(.jp-m-btn) {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 7px 12px;
		margin: 1px 0;
		border-radius: 12px;
		font: 500 16px/1.25 Roboto, Arial, sans-serif;
		color: #37474f;
		transition: background-color .18s, color .18s;
	}
	.header .menu_mobile .main-menu > li > a:not(.jp-m-btn) i {
		flex: 0 0 34px;
		width: 34px;
		height: 34px;
		border-radius: 10px;
		background: #f1f8f7;
		color: #26a69a;
		font-size: 15px;
		line-height: 34px;
		text-align: center;
	}
	.header .menu_mobile .main-menu > li > a:not(.jp-m-btn):hover,
	.header .menu_mobile .main-menu > li > a:not(.jp-m-btn):active { background: #f1f8f7; color: #1f8f85; }
	.header .menu_mobile .main-menu > li > a.is-active { background: #e6f4f2; color: #1f8f85; font-weight: 600; }
	.header .menu_mobile .main-menu > li > a.is-active i { background: #26a69a; color: #fff; }
	.header .menu_mobile .main-menu a:focus { outline: none; }
	.header .menu_mobile .main-menu a:focus-visible { outline: 2px solid #4db6ac; outline-offset: 2px; }

	/* Design Studio: call-to-action pill */
	.header .menu_mobile .main-menu > li.jp-m-cta-li { padding: 8px 0; }
	.header .menu_mobile .main-menu > li > a.jp-m-cta {
		background: #26a69a;
		color: #fff !important;
		font-weight: 600;
		box-shadow: 0 6px 14px rgba(38, 166, 154, .32);
	}
	.header .menu_mobile .main-menu > li > a.jp-m-cta i { background: rgba(255, 255, 255, .2); color: #fff; }
	.header .menu_mobile .main-menu > li > a.jp-m-cta:hover,
	.header .menu_mobile .main-menu > li > a.jp-m-cta:active { background: #219187; color: #fff !important; }

	/* signed-out: two buttons side by side */
	.header .menu_mobile .main-menu > li.jp-m-auth { display: flex; gap: 10px; padding: 6px 0 4px; }
	.header .menu_mobile .main-menu a.jp-m-btn {
		flex: 1 1 0;
		display: block;
		padding: 12px 8px;
		border: 1.5px solid #26a69a;
		border-radius: 12px;
		background: #fff;
		color: #26a69a;
		font: 600 14.5px/1.2 Roboto, Arial, sans-serif;
		text-align: center;
		transition: background-color .18s, color .18s;
	}
	.header .menu_mobile .main-menu a.jp-m-btn:hover { background: #f1f8f7; }
	.header .menu_mobile .main-menu a.jp-m-btn.fill { background: #26a69a; color: #fff; box-shadow: 0 4px 10px rgba(38, 166, 154, .28); }
	.header .menu_mobile .main-menu a.jp-m-btn.fill:hover { background: #219187; }

	/* signed-in: user card */
	.header .menu_mobile .main-menu > li.jp-m-user {
		display: flex;
		align-items: center;
		gap: 12px;
		margin: 2px 0 6px;
		padding: 12px;
		border-radius: 14px;
		background: #f6faf9;
		border: 1px solid #e3f1ee;
	}
	.header .menu_mobile .jp-m-avatar {
		flex: 0 0 42px;
		width: 42px;
		height: 42px;
		border-radius: 50%;
		background: #26a69a;
		color: #fff;
		font: 700 18px/42px Roboto, Arial, sans-serif;
		text-align: center;
	}
	.header .menu_mobile .jp-m-who { min-width: 0; display: block; }
	.header .menu_mobile .jp-m-who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15px/1.3 Roboto, Arial, sans-serif; color: #263238; }
	.header .menu_mobile .jp-m-who small { display: block; font-size: 12px; color: #78909c; }

	.header .menu_mobile .main-menu > li > a.jp-m-signout { color: #c62828; margin-top: 6px; }
	.header .menu_mobile .main-menu > li > a.jp-m-signout i { background: #fdf1f1; color: #c62828; }
	.header .menu_mobile .main-menu > li > a.jp-m-signout:hover,
	.header .menu_mobile .main-menu > li > a.jp-m-signout:active { background: #fdf1f1; color: #b71c1c; }

	/* currency switcher at the bottom */
	.header .menu_mobile .main-menu > li.jp-m-currency { display: block; padding: 14px 0 0; margin-top: 12px; border-top: 1px solid #edf2f4; }
	.header .menu_mobile .main-menu > li.jp-m-currency::before {
		content: "Currency";
		display: block;
		padding: 0 12px 8px;
		font: 700 11px/1 Roboto, Arial, sans-serif;
		letter-spacing: .1em;
		text-transform: uppercase;
		color: #90a4ae;
	}
	.header .menu_mobile .jp-m-currency .jp-currency-form { display: block; }
	.header .menu_mobile .jp-m-currency .jp-currency-form select { height: 46px; width: 100%; border-radius: 12px; font-size: 15px; padding-left: 14px; }
}

/* =====================================================================
   Desktop header fit (Nov 2026): logo + 7 links + currency + cart + "My Account (name)"
   no longer fit Bootstrap's fixed 1170px container, so the last items wrapped to a
   second line. Let the header bar use the screen width, tighten spacing on mid-size
   screens and drop the name next to "My Account" where there is no room for it.
   ===================================================================== */
@media (min-width: 992px) {
	.header > .container {
		width: auto !important;
		max-width: 1400px;
		padding-left: 20px;
		padding-right: 20px;
	}
	.header .menu .main-menu > li > a { white-space: nowrap; }
}

@media (min-width: 992px) and (max-width: 1399px) {
	.header .menu .main-menu { gap: 2px 0; }
	.header .menu .main-menu > li > a { padding: 10px 9px; font-size: 12.5px; letter-spacing: .02em; }
	.header .menu .main-menu > li > a.jp-design-cta { padding: 10px 15px; }
	.header .logo img { max-height: 42px; }
	.header .menu .main-menu > li.jp-account-li > a.jp-account-toggle .jp-account-name { max-width: 90px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
	.header .menu .main-menu > li > a { padding: 10px 7px; font-size: 12px; letter-spacing: 0; }
	.header .menu .main-menu > li.jp-account-li > a.jp-account-toggle .jp-account-name { display: none; }
}
