/* Light premium header matching the catalog-first direction. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	padding: 0;
	background: #48060a;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid rgba(238, 204, 145, 0.34);
	box-shadow: 0 12px 30px rgba(31, 4, 5, 0.24);
	font-family: var(--psdv-heading-font);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 78px;
	padding: 0 30px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-width: 230px;
	max-width: 340px;
	color: #f3eadf;
	text-decoration: none;
}

.site-brand__logo {
	display: block;
	width: min(100%, 310px);
	height: auto;
	aspect-ratio: 1259 / 652;
	max-height: 68px;
	object-fit: contain;
	object-position: left center;
}

.site-brand .custom-logo,
.site-brand .custom-logo-link img {
	display: block;
	width: auto;
	max-width: 74px;
	height: 68px;
	max-height: 68px;
	object-fit: contain;
}

.site-brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	max-width: 74px;
	max-height: 68px;
	overflow: hidden;
}

.site-brand__text {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.site-brand__title {
	color: #f3eadf;
	font-family: var(--psdv-heading-font);
	font-size: 32px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
}

.site-brand__tagline {
	color: #f3eadf;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
}

.site-nav {
	flex: 1;
}

.site-menu-toggle {
	display: none;
}

.site-header__mobile-search {
	display: none;
}

.site-header__mobile-cart {
	display: none;
}

.site-mobile-menu-panel {
	display: contents;
}

.site-nav__menu,
.footer-nav__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 38px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__menu li {
	position: relative;
}

.site-nav__menu .menu-item-has-children {
	position: relative;
	display: flex;
	align-items: center;
	padding-right: 30px;
}

.site-nav__menu > .menu-item-has-children::before {
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 0;
	display: block;
	width: 24px;
	height: 24px;
	border: 1px solid rgba(200, 155, 91, 0.42);
	border-radius: 6px;
	background:
		linear-gradient(45deg, transparent 45%, currentColor 46%, currentColor 54%, transparent 55%) 8px 8px / 6px 6px no-repeat,
		linear-gradient(135deg, transparent 45%, currentColor 46%, currentColor 54%, transparent 55%) 12px 8px / 6px 6px no-repeat,
		linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(24, 2, 4, 0.18);
	color: #f2d7ab;
	content: '';
	pointer-events: none;
	transform: translateY(-50%);
}

.site-nav__menu > .menu-item-has-children:has(> .psdv-submenu-toggle)::before {
	display: none;
}

.site-nav__menu > .menu-item-has-children::after {
	position: absolute;
	top: 100%;
	left: 50%;
	display: block;
	width: 260px;
	height: 22px;
	content: '';
	transform: translateX(-50%);
}

.site-nav a,
.footer-nav a {
	background-image: linear-gradient(90deg, rgba(200, 155, 91, 0), rgba(200, 155, 91, 0.9), rgba(200, 155, 91, 0));
	background-position: 50% 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	color: #f3eadf;
	font-family: var(--psdv-heading-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-size 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.footer-nav a:hover {
	background-size: 100% 1px;
	color: var(--psdv-gold);
}

.site-nav__menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	z-index: 40;
	display: grid;
	gap: 2px;
	min-width: 230px;
	margin: 0;
	padding: 10px;
	list-style: none;
	border: 1px solid rgba(200, 155, 91, 0.32);
	border-radius: 8px;
	background: rgba(66, 5, 8, 0.98);
	box-shadow: 0 18px 38px rgba(31, 4, 5, 0.28);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 8px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-nav__menu .sub-menu .sub-menu {
	top: -10px;
	left: calc(100% + 10px);
	transform: translate(8px, 0);
}

.site-nav__menu .sub-menu .menu-item-has-children::after {
	top: 0;
	left: 100%;
	width: 12px;
	height: 100%;
	transform: none;
}

.site-nav__menu .sub-menu.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.site-nav__menu .sub-menu .sub-menu.is-open {
	transform: translate(0, 0);
}

.site-nav__menu .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 10px;
	border-radius: 6px;
	background-image: linear-gradient(90deg, rgba(200, 155, 91, 0), rgba(200, 155, 91, 0.9), rgba(200, 155, 91, 0));
	background-repeat: no-repeat;
	background-size: 0 1px;
	font-family: var(--psdv-heading-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	background-position: 50% calc(100% - 5px);
	transition: background-size 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#psdv-submenu-1 a {
	font-size: 14px;
}

.site-nav__menu .sub-menu a:hover,
.site-nav__menu .sub-menu a:focus-visible {
	background-size: calc(100% - 20px) 1px;
	background-color: rgba(255, 255, 255, 0.1);
	color: #ffe7b7;
}

.psdv-submenu-toggle {
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 1;
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(200, 155, 91, 0.42);
	border-radius: 6px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(24, 2, 4, 0.18);
	color: #f2d7ab;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
	transform: translateY(-50%);
	appearance: none;
}

.psdv-submenu-toggle span {
	display: block;
	width: 7px;
	height: 7px;
	border-right: 1.75px solid currentColor;
	border-bottom: 1.75px solid currentColor;
	transform: translateY(-1px) rotate(45deg);
	transition: transform 0.18s ease;
}

.psdv-submenu-toggle:hover,
.psdv-submenu-toggle:focus-visible {
	border-color: rgba(232, 197, 134, 0.78);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(24, 2, 4, 0.24);
	outline: none;
}

.psdv-submenu-toggle[aria-expanded="true"] span {
	transform: translateY(1px) rotate(225deg);
}

.site-header__actions {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(84px, 96px);
	align-items: stretch;
	gap: 2px;
	justify-content: end;
}

.site-header__actions .header-icon-link {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 64px;
	padding: 8px 10px;
	gap: 6px;
	color: #f3eadf;
	font-family: var(--psdv-heading-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}

.header-icon {
	display: block;
	width: 27px;
	height: 27px;
	color: #f3eadf;
}

.site-header__actions .header-icon-link:hover {
	background: transparent;
	color: var(--psdv-gold);
	transform: translateY(-1px);
}

.site-header__actions .header-icon-link:hover .header-icon {
	color: var(--psdv-gold);
}

.header-cta,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 52px;
	padding: 12px 22px;
	overflow: hidden;
	border: 1px solid rgba(226, 184, 109, 0.62);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-cta,
.button-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	border-color: var(--psdv-button-border);
	background: var(--psdv-button-bg);
	box-shadow: var(--psdv-button-shadow);
	color: var(--psdv-button-color);
}

.header-cta:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	border-color: var(--psdv-button-border-hover);
	background: var(--psdv-button-bg-hover);
	box-shadow: var(--psdv-button-shadow-hover);
	color: #ffffff;
	transform: translateY(-2px);
}

.button-secondary {
	border-color: transparent;
	background: #efe5d8;
	color: #48060a;
	box-shadow: none;
}

.button-secondary:hover {
	background: #e2d2bf;
}

.site-header__actions .cart-link {
	gap: 2px;
}

.site-header__actions .psdv-cart-count,
.site-header__actions .psdv-favorite-count {
	position: absolute;
	top: 2px;
	right: 12px;
	display: inline-grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	border-radius: 999px;
	background: #c89b5b;
	color: #1e1b18;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
}
