/* WINE SPLASH — шапка сайта (header.php).
   Макет Figma (13:554), 1920×128: логотип 110×80 по центру сверху, меню по центру
   на y=87 (12px, caps, зазор 52), иконки корзины/кабинета справа на y≈82. */

.wspl-header {
	position: relative;
	background: var(--wspl-color-white);
	z-index: 100;
	line-height: normal;
}
.wspl-header__inner {
	position: relative;
	height: var(--wspl-header-height);
}

.wspl-header__logo {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 150px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wspl-header__logo svg, .wspl-header__logo img { width: 150px; height: 100px; object-fit: contain; }
.wspl-header__logo-text {
	font-family: var(--wspl-font-display);
	font-style: italic;
	font-size: 22px;
	white-space: nowrap;
}

.wspl-nav {
	position: absolute;
	top: 87px;
	left: 50%;
	transform: translateX(-50%);
}
.wspl-nav__list { display: flex; align-items: center; gap: 52px; white-space: nowrap; }
.wspl-nav__list a {
	display: block;
	position: relative;
	font-weight: var(--wspl-font-weight-light);
	font-size: 12px;
	line-height: 15px;
	text-transform: uppercase;
	letter-spacing: 0;
}
.wspl-nav__list a::after {
	content: '';
	position: absolute;
	left: 0; right: 100%;
	bottom: -4px;
	height: 1px;
	background: currentColor;
	transition: right var(--wspl-transition-base);
}
.wspl-nav__list a:hover::after,
.wspl-nav__list .current-menu-item > a::after { right: 0; }

.wspl-header__actions {
	position: absolute;
	top: 82px;
	right: var(--wspl-container-pad);
	display: flex;
	align-items: center;
	gap: 17px;
}
.wspl-header__icon { position: relative; display: inline-flex; color: var(--wspl-color-black); }
.wspl-header__icon--cart .wspl-cart-count {
	position: absolute;
	top: -10px; left: 20px;
	background: var(--wspl-color-black);
	color: var(--wspl-color-white);
	font-size: 9px;
	line-height: 1;
	width: 15px;
	height: 15px;
	border-radius: var(--wspl-radius-pill);
	display: flex;
	align-items: center;
	justify-content: center;
}
.wspl-header__icon--cart .wspl-cart-count:empty,
.wspl-header__icon--cart .wspl-cart-count[data-wspl-cart-count="0"] { display: none; }

.wspl-header__burger {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	padding: 6px;
}
.wspl-header__burger span { width: 20px; height: 1.5px; background: var(--wspl-color-black); display: block; }

.wspl-mobile-nav {
	display: none;
	position: absolute;
	top: 100%; left: 0; right: 0;
	background: var(--wspl-color-white);
	border-top: 1px solid var(--wspl-color-border);
	padding: var(--wspl-space-4) var(--wspl-container-pad-mobile);
}
.wspl-mobile-nav.is-open { display: block; }
.wspl-mobile-nav__list { display: flex; flex-direction: column; gap: var(--wspl-space-4); }
.wspl-mobile-nav__list a { text-transform: uppercase; font-size: var(--wspl-fs-small); }

@media (max-width: 1400px) {
	.wspl-header__actions { right: var(--wspl-container-pad-tablet); }
}
@media (max-width: 1024px) {
	.wspl-nav { display: none; }
	.wspl-header__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
	.wspl-header__logo { position: static; transform: none; width: 72px; height: 52px; }
	.wspl-header__logo svg, .wspl-header__logo img { width: 72px; height: 52px; }
	.wspl-header__actions { position: static; gap: var(--wspl-space-5); }
	.wspl-header__burger { display: flex; }
}
