/* LatValley Header component styles — staging */
.site-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: var(--lv-z-header, 300);
	padding-top: env(safe-area-inset-top);
	border-bottom: 1px solid transparent;
	background: transparent;
	color: var(--lv-surface, #FFFFFF);
	transition: background-color var(--lv-transition-base, 0.3s ease), border-color var(--lv-transition-base, 0.3s ease), box-shadow var(--lv-transition-base, 0.3s ease), color var(--lv-transition-base, 0.3s ease);
}

.site-header--solid {
	border-bottom-color: var(--lv-border, #E4E0D8);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: var(--lv-shadow-sm, 0 2px 8px rgba(30, 45, 15, 0.06));
	color: var(--lv-green-deep, #2E3A1A);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.site-header__sentinel {
	position: absolute;
	top: 80px;
	left: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.site-header__bar {
	display: flex;
	width: min(calc(100% - 32px), 1440px);
	min-height: 78px;
	align-items: center;
	margin: 0 auto;
	gap: var(--lv-space-7, 30px);
}

.header__logo-wrap {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	width: 140px;
	height: 70px;
}

.header__logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity var(--lv-transition-base, 0.3s ease);
}

.header__logo--dark {
	display: none;
}

.header__logo-fallback,
.drawer-nav__logo-fallback {
	display: none;
	color: inherit;
	font-family: var(--lv-font-heading, 'Playfair Display', serif);
	font-size: 16px;
	letter-spacing: 0.08em;
	line-height: 1.15;
	text-transform: uppercase;
}

.site-header.has-logo-fallback .header__logo {
	display: none !important;
}

.site-header.has-logo-fallback .header__logo-fallback {
	display: block;
}

.site-header--solid .header__logo--light {
	display: none;
}

.site-header--solid .header__logo--dark {
	display: block;
}

.header__nav {
	display: block;
	flex: 1 1 auto;
}

.nav__list,
.nav__sublist,
.drawer__list,
.drawer__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(14px, 2vw, 32px);
}

.nav__item {
	position: relative;
}

.nav__link,
.mega-menu a {
	color: inherit;
	font-family: var(--lv-font-heading, 'Playfair Display', serif);
	text-decoration: none;
}

.nav__link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible,
.site-header--solid .nav__link:hover,
.site-header--solid .nav__link:focus-visible {
	color: var(--lv-gold-light, #E0BB5A);
}

.site-header--solid .nav__link {
	color: var(--lv-green-deep, #2E3A1A);
}

.nav__chevron {
	font-size: 12px;
	transition: transform 180ms ease;
}

.nav__item.is-open .nav__chevron {
	transform: rotate(180deg);
}

.mega-menu {
	position: absolute;
	top: calc(100% + 1px);
	left: 50%;
	display: grid;
	grid-template-columns: repeat(2, minmax(180px, 1fr));
	gap: var(--lv-space-8, 40px);
	width: min(560px, 90vw);
	padding: var(--lv-space-6, 24px);
	border: 1px solid var(--lv-border, #E4E0D8);
	background: var(--lv-surface, #FFFFFF);
	box-shadow: var(--lv-shadow-md, 0 4px 24px rgba(30, 45, 15, 0.1));
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.nav__item--has-mega:hover .mega-menu,
.nav__item--has-mega:focus-within .mega-menu,
.nav__item--has-mega.is-open .mega-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.mega-menu__title {
	margin: 0 0 var(--lv-space-3, 12px);
	color: var(--lv-gold-dark, #A07828);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mega-menu__list {
	display: grid;
	gap: 8px;
}

.mega-menu__list a {
	display: block;
	padding: 4px 0;
	color: var(--lv-body, #3D3028);
	font-family: var(--lv-font-body, Roboto, sans-serif);
	font-size: 14px;
}

.mega-menu__list a:hover,
.mega-menu__list a:focus-visible {
	color: var(--lv-green-mid, #4E7A22);
}

.header__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
}

.header__hotline {
	display: none;
	align-items: center;
	gap: 6px;
	margin-right: 2px;
}

.hotline__icon { flex: 0 0 auto; }

.hotline__number {
	color: inherit;
	font-family: var(--lv-font-body, Roboto, sans-serif);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.hotline__number:hover,
.hotline__number:focus-visible { color: var(--lv-gold-core, #C9A030); }

.wishlist-icon-btn,
.phone-btn,
.burger-btn {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid currentColor;
	border-radius: var(--lv-radius-sm, 4px);
	background: transparent;
	color: inherit;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.wishlist-icon-btn {
	position: relative;
	width: 42px;
}

.wishlist-icon-btn svg {
	width: 20px;
	height: 20px;
	fill: transparent;
	stroke: currentColor;
	stroke-width: 1.7;
}

.wishlist-icon-btn:hover,
.wishlist-icon-btn:focus-visible,
.phone-btn:hover,
.phone-btn:focus-visible,
.burger-btn:hover,
.burger-btn:focus-visible {
	background: var(--lv-gold-light, #E0BB5A);
	color: var(--lv-green-deep, #2E3A1A);
}

.wishlist-icon-btn__count {
	position: absolute;
	top: -7px;
	right: -7px;
	display: grid;
	min-width: 18px;
	height: 18px;
	align-items: center;
	padding: 0 4px;
	border-radius: 10px;
	background: var(--lv-gold-core, #C9A030);
	color: var(--lv-green-deep, #2E3A1A);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.phone-btn {
	gap: 8px;
	padding: 0 14px;
	font-family: var(--lv-font-body, Roboto, sans-serif);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.burger-btn {
	display: none;
	width: 42px;
	border: 0;
}

.burger-btn__line {
	display: block;
	width: 20px;
	height: 2px;
	margin: 3px 0;
	background: currentColor;
	transition: transform 180ms ease, opacity 180ms ease;
}

.drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--lv-z-overlay, 400);
	background: rgba(30, 45, 15, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 180ms ease, visibility 180ms ease;
}

.drawer-nav {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: var(--lv-z-modal, 500);
	display: flex;
	width: min(88vw, 380px);
	flex-direction: column;
	padding: calc(18px + env(safe-area-inset-top)) 22px 22px;
	background: var(--lv-surface, #FFFFFF);
	box-shadow: var(--lv-shadow-lg, 0 8px 40px rgba(30, 45, 15, 0.16));
	transform: translateX(100%);
	transition: transform 220ms ease;
}

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

.drawer-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.drawer-nav__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--lv-border, #E4E0D8);
}

.drawer-nav__logo {
	width: 110px;
	height: 56px;
	object-fit: contain;
}

.drawer-nav.has-logo-fallback .drawer-nav__logo {
	display: none;
}

.drawer-nav.has-logo-fallback .drawer-nav__logo-fallback {
	display: block;
	max-width: 150px;
}

.drawer-nav__close {
	width: 42px;
	height: 42px;
	border: 1px solid var(--lv-border, #E4E0D8);
	background: transparent;
	color: var(--lv-green-deep, #2E3A1A);
	font-size: 24px;
	line-height: 1;
}

.drawer-nav__body {
	overflow-y: auto;
	padding: 20px 0;
}

.drawer__item {
	border-bottom: 1px solid var(--lv-border, #E4E0D8);
}

.drawer__link,
.drawer__toggle {
	display: flex;
	width: 100%;
	min-height: 48px;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border: 0;
	background: transparent;
	color: var(--lv-green-deep, #2E3A1A);
	font-family: var(--lv-font-heading, 'Playfair Display', serif);
	font-size: 18px;
	text-align: left;
	text-decoration: none;
}

.drawer__sub {
	display: none;
	padding: 0 0 10px 16px;
}

.drawer__item.is-expanded .drawer__sub {
	display: grid;
	gap: 4px;
}

.drawer__sub a {
	padding: 6px 0;
	color: var(--lv-body, #3D3028);
	font-family: var(--lv-font-body, Roboto, sans-serif);
	font-size: 15px;
	text-decoration: none;
}

.drawer-nav__footer {
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--lv-border, #E4E0D8);
	color: var(--lv-muted, #8A8078);
	font-size: 13px;
}

.drawer__hotline {
	align-items: center;
	display: flex;
	gap: 4px;
	font-size: 15px;
	font-weight: 600;
}

.drawer__hotline a { color: inherit; text-decoration: none; }

@media (min-width: 1200px) {
	.header__hotline { display: flex; }
}

@media (max-width: 1023px) {
	.site-header__bar {
		min-height: 68px;
	}

	.header__logo-wrap {
		width: 108px;
		height: 58px;
	}

	.header__nav,
	.phone-btn {
		display: none;
	}

	.burger-btn {
		display: inline-flex;
		flex-direction: column;
	}
}

@media (max-width: 543px) {
	.site-header__bar {
		width: calc(100% - 24px);
		gap: 12px;
	}

	.header__logo-wrap {
		width: 92px;
		height: 54px;
	}
}