/* --------------------------------------------------------------------------
   Header — top bar, main header (transparent on home / solid elsewhere),
   language switcher, mobile drawer. Cart drawer lives in cart-drawer.css.
   -------------------------------------------------------------------------- */

body {
	overflow-x: clip;
}

.woocommerce-privacy-policy-text,
.added_to_cart,
.grecaptcha-badge {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.ap-topbar {
	position: relative;
	z-index: 101;
	height: var(--ap-topbar-h);
	background: var(--ap-black);
	color: var(--ap-white);
}

.ap-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 100%;
	padding: 0 var(--ap-gutter);
}

.ap-topbar__icon {
	width: 20px;
	height: 20px;
}

.ap-topbar__text {
	overflow: hidden;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.5;
	white-space: nowrap;
	text-overflow: ellipsis;
	transition: opacity 0.5s ease;
}

.ap-topbar__text strong {
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Main header
   -------------------------------------------------------------------------- */
#masthead.site-header {
	position: relative;
	z-index: 100;
	width: 100%;
	color: var(--ap-black);
	background: var(--ap-white);
}

#masthead.site-header--transparent {
	position: absolute;
	top: var(--ap-topbar-h);
	left: 0;
	right: 0;
	color: var(--ap-white);
	background: transparent;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	max-width: calc(var(--ap-container) + 2 * var(--ap-gutter));
	height: var(--header-height);
	margin: 0 auto;
	padding: 0 var(--ap-gutter);
}

.site-branding {
	display: flex;
	align-items: center;
	color: inherit;
	line-height: 0;
}

.site-logo {
	width: 261px;
	height: auto;
}

/* Pink "Air" on light backgrounds; the hero header keeps the logo all white. */
.site-header--solid .ap-logo-accent,
.mobile-menu-header .ap-logo-accent {
	color: var(--ap-pink);
}

.header-nav-actions {
	display: flex;
	align-items: center;
	gap: 40px;
}

.actions-divider {
	display: block;
	width: 1px;
	height: 40px;
	background: currentColor;
	opacity: 0.5;
}

.site-header--solid .actions-divider {
	opacity: 0.3;
}

/* --- Primary navigation ------------------------------------------------ */
.main-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation > ul {
	display: flex;
	align-items: center;
	gap: 40px;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: inherit;
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
	color: var(--ap-pink);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
	font-weight: 600;
}

.main-navigation .nav-chevron {
	width: 10px;
	height: 10px;
	transition: transform 0.2s ease;
}

.main-navigation li:hover > a .nav-chevron,
.main-navigation li:focus-within > a .nav-chevron {
	transform: rotate(45deg);
}

.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: -20px;
	z-index: 10;
	min-width: 220px;
	padding: 15px 0;
	border-radius: var(--ap-radius);
	background: var(--ap-white);
	box-shadow: 0 10px 30px rgba(11, 3, 5, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(18px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Hover bridge so the dropdown does not close in the gap below the link. */
.main-navigation .menu-item-has-children::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 30px;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(10px);
}

.main-navigation .sub-menu a {
	display: flex;
	padding: 8px 20px;
	color: var(--ap-black);
	font-size: 15px;
}

.main-navigation .sub-menu a:hover {
	color: var(--ap-pink);
}

/* --- Icons --------------------------------------------------------------- */
.header-actions {
	display: flex;
	align-items: center;
	gap: 40px;
}

.header-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}

.header-icon:hover {
	color: var(--ap-pink);
}

.header-icon .ap-icon {
	width: 30px;
	height: 30px;
}

.cart-count {
	position: absolute;
	top: -4px;
	right: -6px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: var(--ap-radius-pill);
	background: var(--ap-pink);
	color: var(--ap-white);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 10px;
	line-height: 1;
}

.cart-count.is-empty {
	display: none;
}

/* --- Burger -------------------------------------------------------------- */
.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.menu-toggle__bars {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 25px;
}

.menu-toggle__bars span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

/* --------------------------------------------------------------------------
   Language switcher (<details>)
   -------------------------------------------------------------------------- */
.ap-lang {
	position: relative;
	color: inherit;
}

.ap-lang__current {
	display: flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	list-style: none;
}

.ap-lang__current::-webkit-details-marker {
	display: none;
}

.ap-lang__flag {
	width: 20px;
	height: 20px;
	border-radius: 50%;
}

.ap-lang__label {
	font-family: var(--font-body);
	font-size: 10px;
	line-height: 1.2;
	white-space: nowrap;
}

.ap-lang__chevron {
	width: 7px;
	height: 4px;
	margin-left: 15px;
	transform: rotate(180deg);
	transition: transform 0.2s ease;
}

.ap-lang[open] .ap-lang__chevron {
	transform: none;
}

.ap-lang__list {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 20;
	min-width: 150px;
	margin: 0;
	padding: 10px 0;
	border-radius: 15px;
	background: var(--ap-white);
	box-shadow: 0 10px 30px rgba(11, 3, 5, 0.12);
	list-style: none;
}

.ap-lang__link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	color: var(--ap-black);
}

.ap-lang__link:hover {
	color: var(--ap-pink);
}

.ap-lang__link .ap-lang__label {
	font-size: 12px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1439px) {
	.site-header__inner,
	.header-nav-actions,
	.header-actions,
	.main-navigation > ul {
		gap: 28px;
	}

	.site-logo {
		width: 220px;
	}
}

@media (max-width: 1199px) {
	.main-navigation,
	.actions-divider--desktop,
	.header-lang-switch,
	.header-icon--account {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.header-actions {
		gap: 30px;
	}
}

@media (max-width: 767px) {
	.ap-topbar__text {
		font-size: 13px;
	}

	.ap-topbar__icon {
		width: 16px;
		height: 16px;
	}

	.site-logo {
		width: 190px;
	}

	.header-actions {
		gap: 25px;
	}

	.header-icon .ap-icon {
		width: 26px;
		height: 26px;
	}
}

@media (max-width: 374px) {
	.site-logo {
		width: 150px;
	}

	.header-actions {
		gap: 18px;
	}
}

/* --------------------------------------------------------------------------
   Mobile menu drawer
   -------------------------------------------------------------------------- */
.mobile-menu-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	visibility: hidden;
	pointer-events: none;
}

.mobile-menu-drawer.active {
	visibility: visible;
	pointer-events: auto;
}

.mobile-menu-overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 3, 5, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mobile-menu-drawer.active .mobile-menu-overlay {
	opacity: 1;
}

.mobile-menu-content {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	background: var(--ap-white);
	transform: translateX(100%);
	transition: transform 0.3s ease;
}

.mobile-menu-drawer.active .mobile-menu-content {
	transform: translateX(0);
}

.mobile-menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	height: var(--header-height);
	padding: 0 var(--ap-gutter);
	border-bottom: 1px solid var(--ap-border-light);
	color: var(--ap-black);
}

.mobile-menu-header .site-logo {
	width: 170px;
}

.mobile-menu-close,
.cart-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ap-black);
	cursor: pointer;
}

.ap-close {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
}

.ap-close::before,
.ap-close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: rotate(45deg);
}

.ap-close::after {
	transform: rotate(-45deg);
}

.mobile-menu-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow-y: auto;
	padding: 10px var(--ap-gutter) 30px;
}

.mobile-navigation-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-navigation-list li {
	border-bottom: 1px solid var(--ap-border-light);
}

.mobile-navigation-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 0;
	color: var(--ap-black);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 18px;
	line-height: 1.3;
}

.mobile-navigation-list .current-menu-item > a {
	color: var(--ap-pink);
}

.mobile-navigation-list .nav-chevron {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.mobile-navigation-list li.open > a .nav-chevron {
	transform: rotate(45deg);
}

.mobile-navigation-list .sub-menu {
	display: none;
	padding: 0 0 10px 15px;
}

.mobile-navigation-list li.open > .sub-menu {
	display: block;
}

.mobile-navigation-list .sub-menu li {
	border-bottom: 0;
}

.mobile-navigation-list .sub-menu a {
	padding: 8px 0;
	color: var(--ap-text);
	font-weight: 400;
	font-size: 16px;
}

/* "Soon" product categories: visible but not clickable */
.menu-item-soon > a {
	cursor: default;
	pointer-events: none;
	opacity: 0.6;
}

.menu-soon {
	margin-left: 0.25em;
	font-size: 0.85em;
}

.mobile-menu-actions {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 25px 0;
}

.mobile-action-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--ap-black);
	font-family: var(--font-heading);
	font-size: 16px;
}

.mobile-action-item .ap-icon {
	width: 24px;
	height: 24px;
}

.mobile-action-item:hover {
	color: var(--ap-pink);
}

.mobile-menu-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--ap-border-light);
	color: var(--ap-black);
}

.ap-lang--drawer .ap-lang__list {
	top: auto;
	bottom: calc(100% + 12px);
	left: 0;
	right: auto;
}

/* --------------------------------------------------------------------------
   Social icons (drawer + footer)
   -------------------------------------------------------------------------- */
.ap-socials {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ap-socials__link {
	display: inline-flex;
	color: var(--ap-pink);
}

.ap-socials__link:hover {
	color: var(--ap-black);
}

.ap-socials .ap-icon {
	width: 20px;
	height: 20px;
}

/* About us: the header continues the soft pink background of the first section */
.page-template-about-page-php #masthead.site-header {
	background: var(--ap-bg-soft);
}
