/**
 * JU Fashion header — ported from ju-fashion-exact inline styles.
 */

.header-wrapper {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: linear-gradient(180deg, #ffffff 0%, #fafafa 58%, #f2f2f2 100%);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.035);
}

.ju-fashion-header .site-header {
	background: linear-gradient(180deg, #ffffff 0%, #fafafa 58%, #f3f3f3 100%);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.ju-fashion-header .header-layout {
	position: relative;
	min-height: 74px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Logo giữa */
.ju-fashion-header .header-item--logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	margin: 0;
}

.ju-fashion-header .header-item--logo:first-of-type {
	visibility: hidden;
	pointer-events: none;
}

.ju-fashion-header .header__heading-link {
	text-decoration: none;
	color: #111;
	font-family: Cormorant, "Cormorant Garamond", Georgia, serif !important;
	font-size: 24px;
	font-weight: 400;
	letter-spacing: 5px;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	display: inline-block;
	transform: translateY(-1px);
	transition: all 0.25s ease;
}

.ju-fashion-header .header__heading-link:hover {
	opacity: 0.88;
}

.ju-fashion-header .header__logo-image {
	display: block;
	width: auto;
	max-width: 260px;
	max-height: 58px;
	object-fit: contain;
}

/* Menu trái */
.ju-fashion-header .header-item--left.header-item--navigation {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex: 1 1 0;
	min-width: 0;
	z-index: 3;
}

/* Giỏ hàng phải */
.ju-fashion-header .header-item--icons {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1 1 0;
	min-width: 0;
	z-index: 3;
	gap: 14px;
	margin-left: auto;
}

.ju-fashion-header .header-item--icons .site-nav,
.ju-fashion-header .header-item--navigation .site-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.ju-fashion-header .site-nav__link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none;
	color: #111;
	background: none;
	border: 0;
	cursor: pointer;
}

.ju-fashion-header .header-item--icons .site-nav__link,
.ju-fashion-header .header-item--navigation .site-nav__link {
	width: 22px;
	height: 22px;
	padding: 0;
	margin: 0;
}

.ju-fashion-header .header-item--icons svg,
.ju-fashion-header .header-item--navigation svg {
	width: 18px !important;
	height: 18px !important;
	stroke-width: 1.6;
}

/* Cart bubble */
.ju-fashion-header .cart-link {
	position: relative;
	display: inline-flex;
}

.ju-fashion-header .cart-link__bubble {
	display: inline-block;
	top: -6px;
	right: -8px;
	min-width: 16px;
	height: 16px;
	line-height: 16px;
	font-size: 10px;
	background: #e53935;
	color: #fff;
	border-radius: 50%;
	position: absolute;
	text-align: center;
}

.ju-fashion-header .cart-link__bubble--visible {
	display: inline-block;
}

/* Offset admin bar */
body.admin-bar .ju-fashion-header .header-wrapper {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .ju-fashion-header .header-wrapper {
		top: 46px;
	}
}

@media (max-width: 768px) {
	.ju-fashion-header .header-layout {
		min-height: 62px;
	}

	.ju-fashion-header .header__heading-link {
		font-size: 18px;
		letter-spacing: 3px;
	}

	.ju-fashion-header .header__logo-image {
		max-width: 180px;
		max-height: 48px;
	}

	.ju-fashion-header .header-item--left.header-item--navigation {
		flex: 0 0 auto;
	}

	.ju-fashion-header .header-item--icons {
		flex: 0 0 auto;
		gap: 8px;
	}

	.ju-fashion-header .header-item--icons .site-nav__link,
	.ju-fashion-header .header-item--navigation .site-nav__link {
		width: 20px;
		height: 20px;
	}

	.ju-fashion-header .header-item--icons svg,
	.ju-fashion-header .header-item--navigation svg {
		width: 17px !important;
		height: 17px !important;
	}
}

/* Checkout: ẩn icon giỏ WooCommerce. */
body.woocommerce-checkout .wp-block-woocommerce-cart-link,
body:has(.wc-block-checkout) .wp-block-woocommerce-cart-link,
body.woocommerce-checkout .wc-block-cart-link,
body:has(.wc-block-checkout) .wc-block-cart-link {
	display: none !important;
}

/* Checkout: căn giữa logo trong header block group. */
body.woocommerce-checkout .wp-block-group.is-content-justification-space-between.is-layout-flex,
body:has(.wc-block-checkout) .wp-block-group.is-content-justification-space-between.is-layout-flex,
body.woocommerce-checkout header .wp-block-group.is-layout-flex,
body:has(.wc-block-checkout) header .wp-block-group.is-layout-flex {
	justify-content: center !important;
}

