/* =====================================================================
   Eyetech ELV — custom header styles
   Brand palette taken from the company's existing POS system so the
   website and the internal tools feel like the same product.
   ===================================================================== */

:root {
	--eyetech-navy:        #0f172a;
	--eyetech-navy-light:  #1e293b;
	--eyetech-blue:        #0ea5e9;
	--eyetech-blue-dark:   #0284c7;
	--eyetech-text:        #f8fafc;
	--eyetech-text-muted:  #94a3b8;
	--eyetech-border:      #334155;
	--eyetech-header-height: 76px;
	/* Astra's own default "Container Width" (Customize → Layout → Container)
	   is 1200px. If you've changed that setting, change this to match —
	   otherwise the header's edges won't line up with the page content
	   Elementor builds underneath it. */
	--eyetech-container-width: 1200px;
	--eyetech-admin-bar-height: 32px;
	--eyetech-admin-bar-height-mobile: 46px;
}

.eyetech-header * {
	box-sizing: border-box;
}

.eyetech-container {
	max-width: var(--eyetech-container-width);
	margin: 0 auto;
	padding: 0 20px;
}

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

.eyetech-topbar {
	background: var(--eyetech-navy);
	color: var(--eyetech-text-muted);
	font-size: 13px;
}

.eyetech-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 38px;
}

.eyetech-topbar__contact {
	display: flex;
	align-items: center;
	gap: 20px;
	overflow: hidden;
}

.eyetech-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--eyetech-text-muted);
	text-decoration: none;
	white-space: nowrap;
}

a.eyetech-topbar__item:hover {
	color: var(--eyetech-blue);
}

.eyetech-topbar__right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.eyetech-social {
	display: flex;
	align-items: center;
	gap: 10px;
}

.eyetech-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: var(--eyetech-text-muted);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.eyetech-social__link:hover {
	color: var(--eyetech-text);
	background: rgba(14, 165, 233, 0.15);
}

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

.eyetech-mainbar {
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	/* Normal flow by default — sits right below the info bar. Verified live
	   on the real site that CSS `position: sticky` here silently never
	   sticks: Astra's parent theme sets `overflow: hidden auto` on <body>,
	   which makes <body> (not the page's real scrolling viewport) the
	   scroll container sticky positions against — and since <body> itself
	   never actually scrolls (the page scrolls via <html>), the header just
	   scrolled away with the rest of the page. So this is JS-driven instead
	   (header.js adds/removes `eyetech-header-fixed` on <body> once the
	   info bar has scrolled out of view) — the standard workaround for this
	   exact Astra behaviour. */
	position: relative;
	z-index: 400;
	transition: box-shadow 0.2s ease;
}

body.eyetech-header-fixed .eyetech-mainbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
}

/* WordPress's admin toolbar is position:fixed at the top of the viewport
   for logged-in users (32px tall on desktop, 46px below 782px). Once the
   main bar switches to `fixed`, it needs to sit below that bar instead of
   under it. */
body.admin-bar.eyetech-header-fixed .eyetech-mainbar {
	top: var(--eyetech-admin-bar-height);
}

@media screen and (max-width: 782px) {
	body.admin-bar.eyetech-header-fixed .eyetech-mainbar {
		top: var(--eyetech-admin-bar-height-mobile);
	}
}

/* Placeholder that takes over the main bar's normal-flow height the moment
   it switches to `fixed` (and leaves the flow), so the content below it
   doesn't jump upward. Height is set inline by header.js. */
.eyetech-mainbar-spacer {
	display: none;
}

body.eyetech-header-fixed .eyetech-mainbar-spacer {
	display: block;
}

.eyetech-mainbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--eyetech-header-height);
}

body.eyetech-scrolled .eyetech-mainbar {
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.eyetech-mainbar__left {
	/* Desktop: invisible wrapper — the menu button (hidden here anyway)
	   and the logo behave as ordinary individual flex items of
	   .eyetech-mainbar__inner, exactly as before this wrapper existed.
	   Regrouped below 900px — see Responsive section. */
	display: contents;
}

.eyetech-logo {
	flex-shrink: 0;
}

.eyetech-logo img {
	display: block;
	/* Verified live: a dynamic Astra rule (`header .custom-logo-link img`)
	   forces a fixed width (e.g. 80px) that doesn't match this image's
	   real aspect ratio, and the browser's default `object-fit: fill`
	   then stretches it to fill that box — that's the "stretched logo"
	   bug. `!important` on width/height guarantees this theme's sizing
	   wins no matter what value Astra's Customizer generates for that
	   rule, and object-fit: contain is a second safety net in case
	   something else still forces an exact box. */
	width: auto !important;
	height: auto !important;
	max-height: 52px;
	max-width: 200px;
	object-fit: contain;
}

.eyetech-logo-text {
	font-size: 22px;
	font-weight: 700;
	color: var(--eyetech-navy);
	text-decoration: none;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.eyetech-nav {
	flex: 1;
	min-width: 0; /* allow this flex item to actually shrink instead of forcing the logo/actions to */
	display: flex;
	justify-content: center;
}

.eyetech-nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eyetech-nav__list a {
	color: var(--eyetech-navy);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	padding: 8px 0;
	position: relative;
}

.eyetech-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--eyetech-blue);
	transform: scaleX(0);
	transition: transform 0.15s ease;
}

.eyetech-nav__list a:hover::after,
.eyetech-nav__list li.current-menu-item > a::after {
	transform: scaleX(1);
}

.eyetech-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	min-width: 220px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.eyetech-nav__list li {
	position: relative;
}

.eyetech-nav__list li:hover > ul,
.eyetech-nav__list li.eyetech-submenu-open > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.eyetech-nav__list ul a {
	display: block;
	padding: 8px 18px;
	font-weight: 500;
}

.eyetech-mainbar__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.eyetech-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: var(--eyetech-navy);
	cursor: pointer;
	text-decoration: none;
}

/* The search icon-button is a mobile/tablet-only affordance now — on
   desktop the always-visible search bar (.eyetech-searchbar--desktop)
   replaces it, so showing both looked like two duplicate search icons
   sitting next to each other. Re-shown below 900px in the Responsive
   section, where the bar is hidden and this becomes the only way in. */
.eyetech-search-toggle {
	display: none;
}

.eyetech-icon-btn:hover {
	background: #f1f5f9;
}

.eyetech-cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--eyetech-blue);
	color: #fff;
	font-size: 10px;
	line-height: 16px;
	text-align: center;
	font-weight: 700;
}

/* ------------------------------ Buttons ----------------------------- */

.eyetech-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.eyetech-btn--quote {
	background: var(--eyetech-blue);
	color: #ffffff;
}

.eyetech-btn--quote:hover {
	background: var(--eyetech-blue-dark);
	color: #ffffff;
}

.eyetech-btn--block {
	display: flex;
	width: 100%;
	margin: 16px 0;
	padding: 12px 18px;
	font-size: 15px;
}

/* ------------------------------ Search form --------------------------
   Shared by the always-visible desktop bar (.eyetech-searchbar--desktop)
   and the mobile slide-down panel (.eyetech-search-panel) — same markup
   (see eyetech_search_form() in functions.php), same look, so fixing the
   button size or icon fixes both places at once. */

.eyetech-searchform {
	display: flex;
	align-items: center;
	width: 100%;
}

.eyetech-searchform__input {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 0 14px;
	border: 1px solid #cbd5e1;
	border-right: none;
	border-radius: 999px 0 0 999px;
	background: #f8fafc;
	font-size: 13px;
	color: var(--eyetech-navy);
}

.eyetech-searchform__input:focus {
	outline: none;
	border-color: var(--eyetech-blue);
	background: #ffffff;
}

.eyetech-searchform__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 0 999px 999px 0;
	background: var(--eyetech-blue);
	color: #ffffff;
	cursor: pointer;
}

.eyetech-searchform__submit .eyetech-icon {
	background-color: #ffffff;
}

.eyetech-searchform__submit:hover {
	background: var(--eyetech-blue-dark);
}

/* Desktop bar: fixed, compact width sitting inline in the main row. */
.eyetech-searchbar--desktop {
	display: flex;
	align-items: center;
	flex: none;
	width: 220px;
}

@media (max-width: 1100px) {
	.eyetech-searchbar--desktop {
		width: 170px;
	}
}

/* Mobile/tablet panel: the form fills the full-width dropdown instead. */
.eyetech-search-panel {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.2s ease;
}

.eyetech-search-panel.is-open {
	max-height: 100px;
}

.eyetech-search-panel .eyetech-container {
	padding-top: 14px;
	padding-bottom: 14px;
}

/* ------------------------------ Mobile drawer ------------------------ */

.eyetech-mobile-toggle {
	display: none;
}

.eyetech-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 300px;
	max-width: 85vw;
	background: #ffffff;
	/* Above WordPress's admin bar (z-index 99999) so the drawer isn't
	   partly covered by it for logged-in users — same underlying issue
	   as the sticky header, fixed the simpler way here since the drawer
	   is a full-height overlay anyway. */
	z-index: 100001;
	padding: 24px 20px;
	box-shadow: -12px 0 32px rgba(15, 23, 42, 0.2);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
}

.eyetech-mobile-drawer.is-open {
	transform: translateX(0);
}

.eyetech-mobile-drawer__list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.eyetech-mobile-drawer__list li {
	border-bottom: 1px solid #e2e8f0;
}

.eyetech-mobile-drawer__list a {
	display: block;
	padding: 14px 4px;
	color: var(--eyetech-navy);
	text-decoration: none;
	font-weight: 600;
}

.eyetech-mobile-drawer__list ul {
	list-style: none;
	margin: 0 0 8px 12px;
	padding: 0;
}

.eyetech-mobile-drawer__phone {
	display: block;
	text-align: center;
	color: var(--eyetech-navy);
	font-weight: 700;
	text-decoration: none;
	padding-top: 8px;
}

.eyetech-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	z-index: 100000; /* just under the drawer itself, still above the admin bar */
	opacity: 0;
	transition: opacity 0.2s ease;
}

.eyetech-drawer-backdrop.is-open {
	opacity: 1;
}

/* ------------------------------ Icons (inline SVG via mask, no icon font) */

.eyetech-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	/* Verified live: inside a <button> (search/menu toggles), Chrome's
	   flex layout was collapsing this empty span to 0 width regardless of
	   the explicit width above — the icon (search magnifier, hamburger)
	   silently disappeared, leaving just a blank circular button. The
	   <a>-based cart icon wasn't affected, which is what made it look
	   inconsistent rather than uniformly broken. `flex: none` pins this
	   to its specified size so it can't be shrunk by a flex parent. */
	flex: none;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.eyetech-icon--phone     { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.5.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.5.1.4 0 .8-.2 1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.5.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.5.1.4 0 .8-.2 1z'/%3E%3C/svg%3E"); }
.eyetech-icon--email     { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H4c-.6 0-1-.4-1-1V5c0-.6.4-1 1-1zm0 2v.4l8 5.6 8-5.6V6H4zm16 2.4-7.4 5.2a1 1 0 0 1-1.2 0L4 8.4V18h16V8.4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H4c-.6 0-1-.4-1-1V5c0-.6.4-1 1-1zm0 2v.4l8 5.6 8-5.6V6H4zm16 2.4-7.4 5.2a1 1 0 0 1-1.2 0L4 8.4V18h16V8.4z'/%3E%3C/svg%3E"); }
.eyetech-icon--pin       { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c-4.4 0-8 3.6-8 8 0 5.6 7 11.5 7.3 11.8.2.1.4.2.7.2s.5-.1.7-.2C13 21.5 20 15.6 20 10c0-4.4-3.6-8-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c-4.4 0-8 3.6-8 8 0 5.6 7 11.5 7.3 11.8.2.1.4.2.7.2s.5-.1.7-.2C13 21.5 20 15.6 20 10c0-4.4-3.6-8-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E"); }
.eyetech-icon--search    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2a8 8 0 1 0 4.9 14.3l5.4 5.4 1.4-1.4-5.4-5.4A8 8 0 0 0 10 2zm0 2a6 6 0 1 1 0 12 6 6 0 0 1 0-12z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2a8 8 0 1 0 4.9 14.3l5.4 5.4 1.4-1.4-5.4-5.4A8 8 0 0 0 10 2zm0 2a6 6 0 1 1 0 12 6 6 0 0 1 0-12z'/%3E%3C/svg%3E"); }
.eyetech-icon--cart      { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h-2a1 1 0 0 0 0 2h1.2l2.1 9.5A2 2 0 0 0 10.2 17H18a1 1 0 0 0 0-2h-7.8l-.4-2H18a2 2 0 0 0 1.9-1.4l1.6-5A1 1 0 0 0 20.6 5H6.6l-.2-1A1 1 0 0 0 7 4zM9 20a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm8 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h-2a1 1 0 0 0 0 2h1.2l2.1 9.5A2 2 0 0 0 10.2 17H18a1 1 0 0 0 0-2h-7.8l-.4-2H18a2 2 0 0 0 1.9-1.4l1.6-5A1 1 0 0 0 20.6 5H6.6l-.2-1A1 1 0 0 0 7 4zM9 20a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm8 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z'/%3E%3C/svg%3E"); }
.eyetech-icon--menu      { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z'/%3E%3C/svg%3E"); }
.eyetech-icon--facebook  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 21v-7.5H16l.4-3H13.5V8.4c0-.9.2-1.4 1.5-1.4H16V4.3C15.7 4.3 14.6 4 13.4 4c-2.5 0-4.2 1.5-4.2 4.3V10.5H6.8v3h2.4V21h4.3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 21v-7.5H16l.4-3H13.5V8.4c0-.9.2-1.4 1.5-1.4H16V4.3C15.7 4.3 14.6 4 13.4 4c-2.5 0-4.2 1.5-4.2 4.3V10.5H6.8v3h2.4V21h4.3z'/%3E%3C/svg%3E"); }
.eyetech-icon--instagram { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c2.7 0 3 0 4.1.06 1.1.05 1.8.22 2.5.47.7.27 1.2.6 1.8 1.16.5.5.9 1.1 1.1 1.8.3.7.4 1.4.5 2.5V16c-.1 1.1-.2 1.8-.5 2.5a4.9 4.9 0 0 1-2.9 2.9c-.7.3-1.4.4-2.5.5H8c-1.1-.1-1.8-.2-2.5-.5a4.9 4.9 0 0 1-2.9-2.9c-.3-.7-.4-1.4-.5-2.5V8c.1-1.1.2-1.8.5-2.5.2-.7.6-1.3 1.1-1.8a4.6 4.6 0 0 1 1.8-1.16c.7-.25 1.4-.42 2.5-.47C9 2 9.3 2 12 2zm0 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm5.2-2.9a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c2.7 0 3 0 4.1.06 1.1.05 1.8.22 2.5.47.7.27 1.2.6 1.8 1.16.5.5.9 1.1 1.1 1.8.3.7.4 1.4.5 2.5V16c-.1 1.1-.2 1.8-.5 2.5a4.9 4.9 0 0 1-2.9 2.9c-.7.3-1.4.4-2.5.5H8c-1.1-.1-1.8-.2-2.5-.5a4.9 4.9 0 0 1-2.9-2.9c-.3-.7-.4-1.4-.5-2.5V8c.1-1.1.2-1.8.5-2.5.2-.7.6-1.3 1.1-1.8a4.6 4.6 0 0 1 1.8-1.16c.7-.25 1.4-.42 2.5-.47C9 2 9.3 2 12 2zm0 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm5.2-2.9a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4z'/%3E%3C/svg%3E"); }
.eyetech-icon--linkedin  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.98 3.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM3 9h4v12H3zm7 0h3.8v1.7h.05c.53-1 1.83-2.05 3.77-2.05 4.03 0 4.78 2.65 4.78 6.1V21h-4v-5.4c0-1.3 0-3-1.82-3s-2.1 1.4-2.1 2.9V21h-4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.98 3.5a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM3 9h4v12H3zm7 0h3.8v1.7h.05c.53-1 1.83-2.05 3.77-2.05 4.03 0 4.78 2.65 4.78 6.1V21h-4v-5.4c0-1.3 0-3-1.82-3s-2.1 1.4-2.1 2.9V21h-4z'/%3E%3C/svg%3E"); }
.eyetech-icon--youtube   { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.6 7.2s-.2-1.5-.8-2.1c-.8-.8-1.7-.8-2.1-.9C15.9 4 12 4 12 4h0s-3.9 0-6.7.2c-.4 0-1.3.1-2.1.9-.6.6-.8 2.1-.8 2.1S2.2 9 2.2 10.7v1.6c0 1.8.2 3.5.2 3.5s.2 1.5.8 2.1c.8.8 1.9.8 2.4.9 1.7.2 6.4.2 6.4.2s3.9 0 6.7-.2c.4 0 1.3-.1 2.1-.9.6-.6.8-2.1.8-2.1s.2-1.7.2-3.5v-1.6c0-1.7-.2-3.5-.2-3.5zM10 14.6V8.9l5.2 2.9-5.2 2.8z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.6 7.2s-.2-1.5-.8-2.1c-.8-.8-1.7-.8-2.1-.9C15.9 4 12 4 12 4h0s-3.9 0-6.7.2c-.4 0-1.3.1-2.1.9-.6.6-.8 2.1-.8 2.1S2.2 9 2.2 10.7v1.6c0 1.8.2 3.5.2 3.5s.2 1.5.8 2.1c.8.8 1.9.8 2.4.9 1.7.2 6.4.2 6.4.2s3.9 0 6.7-.2c.4 0 1.3-.1 2.1-.9.6-.6.8-2.1.8-2.1s.2-1.7.2-3.5v-1.6c0-1.7-.2-3.5-.2-3.5zM10 14.6V8.9l5.2 2.9-5.2 2.8z'/%3E%3C/svg%3E"); }
.eyetech-icon--whatsapp  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.5 15.2L2 22l4.9-1.5A10 10 0 1 0 12 2zm0 18a8 8 0 0 1-4.1-1.1l-.3-.2-2.9.9.9-2.8-.2-.3A8 8 0 1 1 12 20zm4.4-6c-.2-.1-1.4-.7-1.6-.8-.2-.1-.4-.1-.5.1s-.6.8-.7.9c-.1.1-.3.2-.5.1-.2-.1-1-.4-2-1.2-.7-.6-1.2-1.4-1.4-1.6-.1-.2 0-.4.1-.5l.4-.4c.1-.1.2-.3.2-.4.1-.1 0-.3 0-.4l-.7-1.6c-.2-.4-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 1.9s.8 2.2 1 2.3c.1.2 1.6 2.5 3.9 3.4.5.2 1 .4 1.3.5.5.2 1 .1 1.4.1.4-.1 1.4-.6 1.6-1.1.2-.5.2-1 .1-1.1 0-.1-.2-.2-.4-.3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.5 15.2L2 22l4.9-1.5A10 10 0 1 0 12 2zm0 18a8 8 0 0 1-4.1-1.1l-.3-.2-2.9.9.9-2.8-.2-.3A8 8 0 1 1 12 20zm4.4-6c-.2-.1-1.4-.7-1.6-.8-.2-.1-.4-.1-.5.1s-.6.8-.7.9c-.1.1-.3.2-.5.1-.2-.1-1-.4-2-1.2-.7-.6-1.2-1.4-1.4-1.6-.1-.2 0-.4.1-.5l.4-.4c.1-.1.2-.3.2-.4.1-.1 0-.3 0-.4l-.7-1.6c-.2-.4-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 1.9s.8 2.2 1 2.3c.1.2 1.6 2.5 3.9 3.4.5.2 1 .4 1.3.5.5.2 1 .1 1.4.1.4-.1 1.4-.6 1.6-1.1.2-.5.2-1 .1-1.1 0-.1-.2-.2-.4-.3z'/%3E%3C/svg%3E"); }

/* ------------------------------ Responsive --------------------------- */

@media (max-width: 900px) {
	.eyetech-topbar__item--address,
	.eyetech-topbar__item--email {
		display: none;
	}

	.eyetech-nav {
		display: none;
	}

	.eyetech-topbar__right .eyetech-btn--quote {
		display: none;
	}

	.eyetech-mobile-toggle {
		display: inline-flex;
	}

	/* Below 900px there's no room for a 220px inline search bar next to
	   the logo and hamburger, so swap back to the icon that opens the
	   slide-down panel — the behaviour the site already had. */
	.eyetech-searchbar--desktop {
		display: none;
	}

	.eyetech-search-toggle {
		display: inline-flex;
	}

	/* Required order: menu icon + logo on the left, search + cart on the
	   right. .eyetech-mainbar__left stops being an invisible wrapper and
	   becomes a real flex group so it acts as a single unit on the left;
	   .eyetech-mainbar__actions (search + cart) is the only other visible
	   item left in .eyetech-mainbar__inner (nav and the desktop search bar
	   are both hidden above), so space-between pushes it to the right. */
	.eyetech-mainbar__inner {
		justify-content: space-between;
	}

	.eyetech-mainbar__left {
		display: flex;
		align-items: center;
		gap: 12px;
	}
}

/* Below 900px the topbar is down to just the phone number + (maybe)
   social icons — still enough to overflow a narrow phone and force a
   horizontal scrollbar, which reads as "broken" fast. Keep it to just
   the phone number, and let it truncate cleanly rather than overflow. */
@media (max-width: 560px) {
	.eyetech-topbar__right {
		display: none;
	}

	.eyetech-topbar__inner {
		justify-content: flex-start;
	}

	.eyetech-topbar__contact {
		min-width: 0;
	}

	.eyetech-topbar__item {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

@media (max-width: 480px) {
	.eyetech-topbar__contact {
		gap: 12px;
	}

	.eyetech-logo img {
		max-height: 40px;
		max-width: 140px;
	}

	.eyetech-logo-text {
		font-size: 18px;
	}
}


/* =========================================================
   Mobile & tablet refinements
   ========================================================= */

/* Mobile drawer: close button */
.eyetech-mobile-drawer { padding-top: 60px; }
.eyetech-drawer-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #0B1B33;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.eyetech-drawer-close:hover,
.eyetech-drawer-close:focus-visible { background: rgba( 11, 27, 51, .07 ); }

/* Roomier tap targets in the drawer */
@media ( max-width: 600px ) {
	.eyetech-mobile-drawer__list .menu-link { padding-top: 14px; padding-bottom: 14px; }
}

/* Show the address on large phones and tablets, the email a little wider */
@media ( min-width: 600px ) { .eyetech-topbar__item--address { display: flex; } }
@media ( min-width: 820px ) { .eyetech-topbar__item--email { display: flex; } }
