/**
 * Site header — Bois Pétrifié
 * Layout desktop + drawer mobile, palette noir/blanc, Cormorant + Inter Tight.
 */

/* === Layout général === */
.bp-site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: #FFFFFF;
	border-bottom: 1px solid #EAEAEA;
}

.bp-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 18px 40px;
}

/* === Logo === */
.bp-site-header__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: #0A0A0A;
	flex-shrink: 0;
}

.bp-site-header__logo-text {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 26px;
	font-weight: 500;
	letter-spacing: 0.5px;
	line-height: 1;
	color: #0A0A0A;
}

/* === Navigation desktop === */
.bp-site-header__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.bp-nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 36px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bp-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bp-nav li a {
	display: inline-block;
	padding: 6px 0;
	font-family: 'Inter Tight', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #0A0A0A;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.bp-nav li a:hover,
.bp-nav li.current-menu-item a {
	opacity: 0.55;
}

/* === Actions (user + cart + burger) === */
.bp-site-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.bp-site-header__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0A0A0A;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.bp-site-header__action:hover {
	opacity: 0.55;
}

.bp-site-header__cart {
	position: relative;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid #E5E5E5;
	background: #FFFFFF;
	font-family: 'Inter Tight', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: #0A0A0A;
	white-space: nowrap;
}

.bp-site-header__cart-total {
	font-family: 'Inter Tight', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #0A0A0A;
}

.bp-site-header__cart-total .amount,
.bp-site-header__cart-total .woocommerce-Price-amount {
	color: inherit;
}

.bp-site-header__cart-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: #C0392B;
	color: #FFFFFF;
	font-family: 'Inter Tight', sans-serif;
	font-size: 10px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	border-radius: 50%;
	box-sizing: border-box;
}

.bp-site-header__cart-badge.is-empty {
	display: none;
}

/* === Burger === */
.bp-site-header__burger {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	-webkit-appearance: none;
}

.bp-site-header__burger-bar {
	display: block;
	width: 22px;
	height: 1.5px;
	background: #0A0A0A;
	border-radius: 1px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.bp-site-header__burger[aria-expanded="true"] .bp-site-header__burger-bar:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.bp-site-header__burger[aria-expanded="true"] .bp-site-header__burger-bar:nth-child(2) {
	opacity: 0;
}

.bp-site-header__burger[aria-expanded="true"] .bp-site-header__burger-bar:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* === Drawer mobile === */
.bp-mobile-drawer-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(10, 10, 10, 0.35);
	z-index: 9997;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.bp-mobile-drawer-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.bp-mobile-drawer {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(86vw, 360px);
	background: #FFFFFF;
	z-index: 9998;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
	visibility: hidden;
	pointer-events: none;
}

.bp-mobile-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}

.bp-mobile-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #F0EDE5;
}

.bp-mobile-drawer__title {
	font-family: 'Inter Tight', sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #6B6B6B;
}

.bp-mobile-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	border: none;
	color: #0A0A0A;
	cursor: pointer;
	-webkit-appearance: none;
}

.bp-mobile-drawer__nav {
	flex: 1 1 auto;
	padding: 8px 0;
}

.bp-mobile-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bp-mobile-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid #F0EDE5;
}

.bp-mobile-nav li:last-child {
	border-bottom: none;
}

.bp-mobile-nav li a {
	display: block;
	padding: 18px 24px;
	font-family: 'Inter Tight', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #0A0A0A;
	text-decoration: none;
	transition: background 0.2s ease, padding-left 0.2s ease;
}

.bp-mobile-nav li a:hover,
.bp-mobile-nav li.current-menu-item a {
	background: #FAFAF7;
	padding-left: 30px;
}

.bp-mobile-drawer__cart {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 16px 24px 24px;
	padding: 14px 20px;
	background: #0A0A0A;
	color: #FFFFFF;
	text-decoration: none;
	font-family: 'Inter Tight', sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: background 0.2s ease;
}

.bp-mobile-drawer__cart:hover {
	background: #3A3A3A;
}

.bp-mobile-drawer__cart-price {
	letter-spacing: 0.05em;
	text-transform: none;
}

.bp-mobile-drawer__cart-price .amount,
.bp-mobile-drawer__cart-price .woocommerce-Price-amount {
	color: inherit;
}

/* Lock du scroll quand le drawer est ouvert */
body.bp-drawer-open {
	overflow: hidden;
}

/* === Breakpoints === */

/* Tablette + mobile : nav desktop cachée, burger visible, drawer activé */
@media (max-width: 1024px) {
	.bp-site-header__inner {
		padding: 14px 24px;
		gap: 12px;
	}

	.bp-site-header__nav {
		display: none;
	}

	.bp-site-header__cart {
		display: none;
	}

	.bp-site-header__burger {
		display: inline-flex;
	}

	.bp-mobile-drawer-overlay,
	.bp-mobile-drawer {
		display: block;
	}

	.bp-mobile-drawer {
		display: flex;
	}

	.bp-site-header__logo-text {
		font-size: 22px;
	}
}

@media (max-width: 600px) {
	.bp-site-header__inner {
		padding: 12px 18px;
	}

	.bp-site-header__actions {
		gap: 10px;
	}
}
