/* ==========================================================================
   Eyewear UX — storefront chrome (hand-built header, drawer, auth card)
   Overrides the Elementor header template for a predictable layout.
   ========================================================================== */

/* the Elementor header template is replaced by the plugin header */
body.eyewear-ux .elementor-location-header {
	display: none !important;
}

body.eyewear-ux {
	--ey-hh: 120px;
}

.ey-skip {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	z-index: 999;
	padding: 10px 16px;
	background: var(--ey-ink);
	color: #fff;
}

.ey-skip:focus {
	inset-inline-start: 12px;
	top: 12px;
}

/* ---------- shell ---------- */

.ey-header {
	position: sticky;
	top: -37px;
	z-index: 90;
	background: #fff;
}

.ey-header.is-stuck {
	box-shadow: 0 8px 26px rgba(11, 18, 32, .1);
}

.ey-header .ey-wrap {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: var(--ey-container);
	margin-inline: auto;
	padding-inline: clamp(14px, 3vw, 28px);
}

/* ---------- top bar ---------- */

.ey-topbar {
	background: var(--ey-ink);
	color: #cdd5e2;
	font-size: .76rem;
	line-height: 1;
}

.ey-topbar .ey-wrap {
	min-height: 37px;
	justify-content: space-between;
}

.ey-topbar__promo {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ey-topbar__meta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ey-topbar__meta a {
	color: #e8edf5;
	font-weight: 600;
}

.ey-topbar__meta a:hover {
	color: var(--ey-gold);
}

.ey-topbar__sep {
	width: 1px;
	height: 12px;
	background: rgba(255, 255, 255, .22);
}

/* ---------- main bar ---------- */

.ey-mainbar {
	background: #fff;
	border-bottom: 1px solid var(--ey-line);
}

.ey-mainbar .ey-wrap {
	min-height: 84px;
	gap: 16px;
}

.ey-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	max-width: 190px;
}

.ey-logo img {
	max-height: 52px;
	width: auto;
}

.ey-logo__text {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--ey-ink);
}

.ey-burger {
	display: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--ey-line);
	border-radius: 12px;
	background: var(--ey-cream);
	color: var(--ey-ink);
	cursor: pointer;
}

/* search */
.ey-search {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	max-width: 560px;
	margin-inline: auto;
	background: var(--ey-cream);
	border: 1.5px solid var(--ey-line);
	border-radius: var(--ey-radius-pill);
	padding: 4px;
	transition: border-color .2s var(--ey-ease), box-shadow .2s var(--ey-ease), background .2s var(--ey-ease);
}

.ey-search:focus-within {
	background: #fff;
	border-color: var(--ey-gold);
	box-shadow: 0 0 0 4px rgba(198, 161, 91, .14);
}

.ey-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	min-height: 40px;
	padding-inline: 16px;
	font-size: .9rem;
}

.ey-search button {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: var(--ey-ink);
	color: #fff;
	cursor: pointer;
	transition: background .2s var(--ey-ease);
}

.ey-search button:hover {
	background: var(--ey-gold-2);
}

/* actions */
.ey-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: auto;
}

.ey-act {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: var(--ey-radius-pill);
	border: 1px solid var(--ey-line);
	background: #fff;
	color: var(--ey-ink);
	font-size: .84rem;
	font-weight: 600;
	transition: background .18s var(--ey-ease), color .18s var(--ey-ease), border-color .18s var(--ey-ease);
}

.ey-act:hover {
	background: var(--ey-cream);
	color: var(--ey-ink);
	border-color: rgba(198, 161, 91, .5);
}

.ey-act--cart {
	background: var(--ey-ink);
	border-color: var(--ey-ink);
	color: #fff;
}

.ey-act--cart:hover {
	background: var(--ey-ink-2);
	color: #fff;
}

.ey-cart-count {
	display: none;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 99px;
	background: var(--ey-gold);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.ey-cart-count.is-on {
	display: inline-block;
}

/* ---------- nav ---------- */

.ey-nav {
	border-bottom: 1px solid var(--ey-line);
	background: #fff;
}

.ey-nav .ey-wrap {
	min-height: 52px;
	gap: 0;
}

.ey-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}

.ey-nav__list > li {
	position: relative;
}

.ey-nav__list > li > a {
	display: block;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: .9rem;
	font-weight: 600;
	color: var(--ey-ink-2);
	transition: background .16s var(--ey-ease), color .16s var(--ey-ease);
}

.ey-nav__list > li > a:hover {
	background: var(--ey-cream);
	color: var(--ey-gold-2);
}

.ey-nav__sub {
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + 6px);
	z-index: 20;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--ey-line);
	border-radius: 14px;
	box-shadow: var(--ey-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .18s var(--ey-ease);
}

.ey-nav__list > li.has-sub:hover .ey-nav__sub,
.ey-nav__list > li.has-sub:focus-within .ey-nav__sub {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ey-nav__sub a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: .85rem;
	color: var(--ey-text);
}

.ey-nav__sub a:hover {
	background: var(--ey-cream);
	color: var(--ey-gold-2);
}

/* ---------- drawer ---------- */

body.eyewear-ux .ey-drawer__panel {
	width: min(360px, 90vw);
}

.ey-drawer__nav {
	padding: 8px 12px 12px;
}

.ey-drawer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ey-drawer__nav > ul > li {
	border-bottom: 1px solid var(--ey-line);
}

.ey-drawer__nav > ul > li > a {
	display: block;
	padding: 13px 6px;
	font-size: .95rem;
	font-weight: 600;
	color: var(--ey-ink);
}

.ey-drawer__nav .ey-drawer__sub {
	display: grid !important;
	gap: 4px;
	padding: 0 6px 12px !important;
}

.ey-drawer__nav .ey-drawer__sub a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--ey-cream);
	font-size: .84rem;
	color: var(--ey-muted);
}

.ey-drawer__foot {
	display: grid;
	gap: 10px;
}

.ey-drawer__link {
	font-size: .85rem;
	font-weight: 600;
	color: var(--ey-ink-2);
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
	.ey-search {
		max-width: 380px;
	}

	.ey-act__label {
		display: none;
	}

	.ey-act {
		padding: 9px 10px;
	}
}

@media (max-width: 1024px) {
	body.eyewear-ux {
		--ey-hh: 104px;
	}

	.ey-header {
		top: -34px;
	}

	.ey-topbar .ey-wrap {
		min-height: 34px;
		justify-content: center;
	}

	.ey-topbar__meta {
		display: none;
	}

	.ey-topbar__promo {
		font-size: .72rem;
	}

	.ey-burger {
		display: grid;
	}

	.ey-nav {
		display: none;
	}

	.ey-mainbar .ey-wrap {
		min-height: 66px;
		gap: 10px;
	}

	.ey-logo {
		max-width: 130px;
	}

	.ey-logo img {
		max-height: 42px;
	}

	.ey-search {
		order: 5;
		flex: 1 1 100%;
		max-width: none;
		margin: 0 0 10px;
	}

	.ey-mainbar .ey-wrap {
		flex-wrap: wrap;
		padding-block: 8px 0;
	}

	.ey-actions {
		margin-inline-start: auto;
	}
}

@media (max-width: 480px) {
	.ey-topbar__promo span + span {
		display: none;
	}

	.ey-act {
		padding: 8px 9px;
	}
}

/* ---------- auth (login / register) ---------- */

.ey-account-wrap {
	max-width: 1100px;
	margin-inline: auto;
	padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 24px);
}

body.ey-is-account .page-content > h1,
body.ey-is-account .entry-title {
	display: none;
}

.ey-auth {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
	align-items: stretch;
	gap: 0;
	background: #fff;
	border: 1px solid var(--ey-line);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--ey-shadow);
}

.ey-auth__aside {
	position: relative;
	padding: clamp(24px, 3vw, 40px);
	background: radial-gradient(120% 120% at 100% 0%, #1d2739 0%, var(--ey-ink) 60%);
	color: #e9edf5;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
}

.ey-auth__aside::after {
	content: "";
	position: absolute;
	inset-inline-end: -70px;
	bottom: -70px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(198, 161, 91, .38) 0%, rgba(198, 161, 91, 0) 70%);
}

.ey-auth__kicker {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .5px;
	color: var(--ey-gold);
}

.ey-auth__title {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	font-weight: 700;
	line-height: 1.6;
	color: #fff;
}

.ey-auth__text {
	margin: 0;
	font-size: .88rem;
	line-height: 2;
	color: #b7c1d1;
}

.ey-auth__list {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.ey-auth__list li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .84rem;
	color: #d6dde8;
}

.ey-auth__list svg {
	color: var(--ey-gold);
	flex: 0 0 auto;
}

.ey-auth__card {
	padding: clamp(22px, 3vw, 38px);
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ey-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 5px;
	background: var(--ey-cream);
	border-radius: 14px;
}

.ey-auth__tab {
	min-height: 44px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--ey-muted);
	font-family: inherit;
	font-size: .92rem;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s var(--ey-ease), color .2s var(--ey-ease), box-shadow .2s var(--ey-ease);
}

.ey-auth__tab.is-active {
	background: #fff;
	color: var(--ey-ink);
	box-shadow: 0 2px 10px rgba(11, 18, 32, .08);
}

.ey-auth__pane {
	display: none;
}

.ey-auth__pane.is-active {
	display: block;
	animation: ey-fade .25s var(--ey-ease);
}

@keyframes ey-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.ey-auth__card form {
	margin: 0;
}

.ey-field {
	display: grid;
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
}

.ey-field label {
	font-size: .84rem;
	font-weight: 600;
	color: var(--ey-ink-2);
}

.ey-field .req {
	color: var(--ey-gold-2);
}

.ey-field input {
	width: 100%;
	min-height: 48px;
	border: 1.5px solid var(--ey-line);
	border-radius: var(--ey-radius-sm);
	padding: 12px 14px;
	font-size: .92rem;
	background: #fff;
}

.ey-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .84rem;
	color: var(--ey-muted);
	cursor: pointer;
}

.ey-checkbox input {
	width: 18px;
	height: 18px;
	accent-color: var(--ey-gold-2);
}

.ey-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.ey-auth__link {
	font-size: .82rem;
	font-weight: 600;
	color: var(--ey-gold-2);
}

.ey-auth__note {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--ey-cream);
	font-size: .82rem;
	color: var(--ey-muted);
}

.ey-auth__switch {
	margin: 16px 0 0;
	font-size: .84rem;
	color: var(--ey-muted);
	text-align: center;
}

.ey-auth__switch-btn {
	border: 0;
	background: none;
	padding: 0;
	color: var(--ey-gold-2);
	font-family: inherit;
	font-size: .84rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
}

.ey-auth__terms {
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--ey-line);
	font-size: .76rem;
	color: var(--ey-muted);
	text-align: center;
}

.ey-auth__terms a {
	color: var(--ey-gold-2);
	font-weight: 600;
}

.ey-btn--block {
	width: 100%;
}

.ey-btn--sm {
	min-height: 40px;
	padding: 8px 16px;
	font-size: .84rem;
}

@media (max-width: 900px) {
	.ey-auth {
		grid-template-columns: 1fr;
	}

	.ey-auth__aside {
		padding: 22px;
		gap: 8px;
	}

	.ey-auth__list {
		display: none;
	}
}


/* tighter header on phones */
@media (max-width: 1024px) {
	.ey-topbar .ey-wrap {
		min-height: 30px;
	}

	.ey-topbar__promo {
		font-size: .7rem;
	}

	.ey-mainbar .ey-wrap {
		min-height: 58px;
		padding-block: 6px 0;
		gap: 8px;
	}

	.ey-burger {
		width: 38px;
		height: 38px;
	}

	.ey-logo img {
		max-height: 36px;
	}

	.ey-search {
		margin-bottom: 8px;
	}

	.ey-search input[type="search"] {
		min-height: 36px;
		font-size: .85rem;
	}

	.ey-search button {
		width: 34px;
		height: 34px;
	}

	.ey-act {
		padding: 7px 8px;
	}

	.ey-header {
		top: -30px;
	}
}


/* when the plugin header is switched off, hand the layout back to Elementor */
body.ey-header-off .elementor-location-header {
	display: block !important;
}

/* the header may now come from the Elementor template via [eyewear_header] */
