/**
 * Header + hero pixel-perfect overrides (mockup v4).
 */

:root {
	--bfnme-layout-width: 80%;
	--bfnme-gutter: clamp(12px, 2vw, 32px);
}

/* Full site: centered column at 80% viewport width */
.bfnme-v4-site #page {
	width: var(--bfnme-layout-width);
	max-width: none;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	background: #fff;
	border-radius: 0 0 clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px);
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(47, 42, 38, 0.08);
}

body.bfnme-v4-site {
	background: #f0f0f0;
}

.bfnme-v4-site .page-wrap {
	max-width: none;
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--bfnme-gutter);
	box-sizing: border-box;
}

.bfnme-v4-site footer {
	padding-left: var(--bfnme-gutter);
	padding-right: var(--bfnme-gutter);
	border-radius: 0 0 clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px);
}

.bfnme-v4-site .foot-inner {
	max-width: none;
	width: 100%;
	margin: 0 auto;
}

/* ── NAVBAR ── */
.navbar {
	height: 56px;
	padding: 0;
	border-bottom: 1px solid #ebebeb;
	box-shadow: none;
}

.navbar-inner {
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--bfnme-gutter, clamp(12px, 2vw, 32px));
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	font-size: 16px;
	font-weight: 800;
	gap: 8px;
	color: #2f2a26;
	letter-spacing: -0.01em;
}

.logo-pin {
	width: 28px;
	height: 28px;
	background: var(--orange);
	border-radius: 50%;
}

.logo-pin svg {
	width: 16px;
	height: 16px;
}

.bfnme-v4-site .navbar .nav-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;
	gap: 0;
}

.bfnme-v4-site .navbar .nav-links li {
	margin: 0;
	padding: 0;
}

.nav-links a {
	font-size: 13px;
	font-weight: 500;
	color: #4a4a4a;
	padding: 0 11px;
	height: 56px;
	border-bottom: 3px solid transparent;
}

.nav-links a:hover {
	color: var(--orange);
}

.nav-links a.active {
	color: var(--orange);
	font-weight: 700;
	border-bottom-color: var(--orange);
}

.bfnme-v4-site .nav-dropdown-trigger {
	height: 56px;
	border-bottom-width: 3px;
	font-size: 13px;
}

.bfnme-v4-site .nav-dropdown-panel {
	top: calc(100% + 8px);
}

.bfnme-v4-site .header-categories-inner {
	max-width: 1280px;
}

/* ── HERO SHELL ── */
.hero-shell {
	position: relative;
	background: #fef9f3;
	padding-bottom: 34px;
}

.bfnme-v4-site .hero {
	display: block;
	position: relative;
	min-height: clamp(360px, 34vw, 420px);
	background: #fef9f3;
	overflow: hidden;
}

.bfnme-v4-site .navbar-inner {
	max-width: none;
}

.bfnme-v4-site .hero-left {
	position: relative;
	z-index: 2;
	width: 48%;
	max-width: 620px;
	padding: 52px calc(var(--bfnme-gutter, 40px) * 0.85) 44px var(--bfnme-gutter, 40px);
	background: transparent;
}

.bfnme-v4-site .hero-right {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 42%;
	z-index: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #fef9f3;
	background-image: var(--bfnme-hero-image);
	background-size: cover;
	background-position: right bottom;
	background-repeat: no-repeat;
}

.bfnme-v4-site .hero-right::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		#fef9f3 0%,
		rgba(254, 249, 243, 0.5) 8%,
		rgba(254, 249, 243, 0.16) 16%,
		transparent 24%
	);
}

.bfnme-v4-site .hero-right img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	margin: 0;
	padding: 0;
	object-fit: cover;
	object-position: 58% 100%;
	display: block;
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0%,
		rgba(0, 0, 0, 0.45) 7%,
		rgba(0, 0, 0, 0.88) 14%,
		#000 20%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0%,
		rgba(0, 0, 0, 0.45) 7%,
		rgba(0, 0, 0, 0.88) 14%,
		#000 20%
	);
}

/* ── HERO TITLE (serif) ── */
.hero-title {
	display: flex;
	flex-direction: column;
	gap: 0;
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-size: clamp(34px, 4.2vw, 48px);
	font-weight: 800;
	line-height: 1.08;
	color: #2f2a26;
	letter-spacing: -0.02em;
	margin-bottom: 28px;
}

.hero-line {
	display: block;
}

.hero-line-accent {
	color: var(--orange);
	display: flex;
	align-items: center;
	gap: 12px;
}

.hero-title .line-accent {
	display: none;
}

.hero-title .sun-svg {
	width: clamp(30px, 3.5vw, 40px);
	height: clamp(30px, 3.5vw, 40px);
}

/* ── SEARCH LOCATION LABEL ── */
.search-location {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding: 8px 12px;
	border-radius: 10px;
	background: linear-gradient(90deg, #fff8ef 0%, #fff 100%);
	border: 1px solid #efe4d6;
	font-size: 13px;
	font-weight: 600;
	color: #5c534c;
	line-height: 1.35;
}

.search-location[hidden] {
	display: none !important;
}

.search-location__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--orange, #e8961a);
}

.search-location__text {
	flex: 1;
	min-width: 0;
}

/* ── SEARCH TABS ── */
.s-tab {
	padding: 10px 18px;
	font-size: 12.5px;
	background: #f0ebe3;
	border-color: #d9d0c4;
}

.s-tab.active {
	background: #fdf5e6;
	color: #2f2a26;
	border-top: 3px solid #a67c2a;
	border-bottom: 1px solid #fff;
	margin-bottom: -1px;
}

.search-bar {
	border-radius: 0 10px 10px 10px;
	border-color: #d4d4d4;
	box-shadow: 0 3px 12px rgba(47, 42, 38, 0.08);
	min-height: 50px;
}

.search-input-wrap input {
	font-size: 14px;
	padding: 14px 0;
}

.btn-use-location {
	padding: 0 20px;
	min-height: 50px;
	font-size: 13px;
	border-radius: 0 9px 9px 0;
}

/* ── CATEGORY BAR OVERLAP ── */
.hero-shell .cat-bar {
	margin-top: -26px;
	padding: 0 var(--bfnme-gutter, clamp(16px, 3vw, 40px));
	background: transparent;
	border: none;
	position: relative;
	z-index: 20;
}

.hero-shell .cat-row {
	max-width: none;
	width: 100%;
	margin: 0;
	gap: 10px;
	justify-content: center;
	padding: 0;
}

.hero-shell .cat-item {
	background: #fff;
	border: 1px solid #ece8e2;
	border-radius: 12px;
	padding: 10px 12px 8px;
	box-shadow: 0 2px 10px rgba(47, 42, 38, 0.07);
	min-width: 78px;
}

.hero-shell .cat-item:hover {
	background: #fff;
	border-color: #f0dcc0;
	box-shadow: 0 4px 16px rgba(47, 42, 38, 0.1);
}

.hero-shell .cat-img {
	width: 48px;
	height: 48px;
	border: 2px solid #f3e8d8;
}

.hero-shell .cat-label {
	font-size: 11.5px;
	font-weight: 600;
}

.mobile-menu {
	top: 56px;
}

@media (max-width: 700px) {
	.bfnme-v4-site #page {
		width: 94%;
	}

	.navbar-inner {
		padding: 0 16px;
	}

	.bfnme-v4-site .hero {
		display: flex;
		flex-direction: column-reverse;
		min-height: auto;
	}

	.bfnme-v4-site .hero-left {
		width: 100%;
		max-width: none;
		padding: 24px 20px 32px;
	}

	.bfnme-v4-site .hero-right {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		width: 100%;
		height: 220px;
		min-height: 220px;
		background-image: var(--bfnme-hero-image);
		background-size: cover;
		background-position: center bottom;
	}

	.bfnme-v4-site .hero-right::before {
		background: linear-gradient(
			90deg,
			#fef9f3 0%,
			rgba(254, 249, 243, 0.35) 10%,
			transparent 18%
		);
	}

	.bfnme-v4-site .hero-right img {
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-position: center bottom;
		-webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 8%, #000 16%);
		mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 8%, #000 16%);
	}

	.hero-title {
		font-size: 30px;
		margin-bottom: 20px;
	}

	.hero-shell {
		padding-bottom: 20px;
	}

	.hero-shell .cat-bar {
		margin-top: -18px;
	}

	.hero-shell .cat-row {
		justify-content: flex-start;
		padding: 0 8px;
	}

	.hero-shell .cat-item {
		min-width: 68px;
		padding: 8px 10px 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-title {
		opacity: 1;
		transform: none;
	}
}
