/* Header — ported from project-1 header.module.css */

.cb-header-shell {
	position: relative;
	width: 100%;
	max-width: 100%;
}

.cb-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	background: rgba(250, 243, 236, 0.78);
	backdrop-filter: saturate(160%) blur(20px);
	-webkit-backdrop-filter: saturate(160%) blur(20px);
	box-shadow: none;
	transition:
		background 0.4s ease,
		backdrop-filter 0.4s ease,
		box-shadow 0.4s ease,
		padding 0.4s ease;
	padding: var(--space-4) 0;
}

body.admin-bar .cb-header {
	top: 32px;
}

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

.cb-header.is-scrolled {
	background: rgba(250, 243, 236, 0.78);
	backdrop-filter: saturate(160%) blur(20px);
	-webkit-backdrop-filter: saturate(160%) blur(20px);
	box-shadow: 0 8px 28px rgba(184, 92, 122, 0.08);
	padding: var(--space-3) 0;
}

.cb-header__inner {
	width: 100%;
	max-width: var(--container-max);
	min-width: 0;
	margin-inline: auto;
	padding-inline: var(--space-6);
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--space-6);
}

.cb-header__inner > * {
	min-width: 0;
}

.cb-header__brand {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	text-decoration: none;
	color: inherit;
}

.cb-header__brand-mark {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--gradient-warm);
	display: grid;
	place-items: center;
	box-shadow: var(--shadow-md);
	flex-shrink: 0;
}

.cb-header__brand-logo {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.cb-header__dish {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--gradient-soft);
	box-shadow: inset 0 -3px 6px rgba(173, 130, 110, 0.35);
}

.cb-header__dish-hi {
	position: absolute;
	top: 9px;
	inset-inline-end: 12px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-bg-elevated);
	opacity: 0.9;
}

.cb-header__brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	font-style: normal;
}

.cb-header__brand-text strong {
	font-family: var(--family-display);
	font-size: var(--text-lg);
	color: var(--color-text);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.cb-header__brand-text em {
	font-size: var(--text-xs);
	color: var(--color-primary);
	font-style: normal;
	margin-top: 2px;
}

.cb-header__nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
	overflow: hidden;
}

.cb-header__nav-link {
	position: relative;
	padding: 0.55rem 1rem;
	border-radius: var(--radius-pill);
	color: var(--color-text);
	font-weight: 500;
	font-size: var(--text-base);
	text-decoration: none;
	transition:
		color 0.3s ease,
		background 0.3s ease;
}

.cb-header__nav-link:hover {
	color: var(--color-primary);
	background: rgba(184, 92, 122, 0.06);
}

.cb-header__nav-link.is-active {
	color: var(--color-primary);
	background: rgba(184, 92, 122, 0.1);
}

.cb-header__actions {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	flex-shrink: 0;
}

.cb-header__icon-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text);
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
	transition:
		background 0.3s ease,
		color 0.3s ease,
		transform 0.3s ease;
	position: relative;
	font-family: inherit;
	line-height: 0;
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
}

.cb-header__icon-btn:hover {
	background: var(--color-beige);
	color: var(--color-primary);
}

.cb-header__icon-btn--search .cb-icon {
	transform: translateY(-2px);
}

.cb-header__icon-btn .cb-header__badge {
	position: absolute;
	top: 2px;
	inset-inline-start: 2px;
	min-width: 18px;
	height: 18px;
	padding-inline: 4px;
	border-radius: var(--radius-pill);
	background: var(--color-primary);
	color: var(--color-cream);
	font-size: 10px;
	font-weight: 700;
	display: grid;
	place-items: center;
	line-height: 1;
	box-sizing: border-box;
	pointer-events: none;
}

.cb-header__account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.55rem 1rem;
	border-radius: var(--radius-pill);
	background: var(--gradient-rose);
	color: var(--color-text-inverse);
	font-weight: 600;
	font-size: var(--text-sm);
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: var(--shadow-sm);
	transition:
		background 0.3s ease,
		color 0.3s ease,
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.cb-header__account .cb-icon {
	color: inherit;
}

.cb-header__account:hover {
	transform: translateY(-1px);
	background: var(--color-primary-dark);
	color: var(--color-text-inverse);
	box-shadow: var(--shadow-md);
}

.cb-header__menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--color-text);
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
}

.cb-header__menu-toggle .cb-header__icon-close[hidden] {
	display: none;
}

.cb-header.is-menu-open .cb-header__menu-toggle .cb-header__icon-menu {
	display: none;
}

.cb-header.is-menu-open .cb-header__menu-toggle .cb-header__icon-close {
	display: block;
}

/* Fixed header — offset main content below the chrome */
body.cb-has-site-header .cb-main {
	padding-top: calc(var(--cb-site-chrome-top) + var(--cb-main-top-gap));
}

/*
 * Full-bleed hero pages: keep the header offset (content must clear the fixed
 * header) but drop the extra breathing gap so the hero sits flush under the
 * header instead of leaving dead space above it.
 */
body.cb-page-has-hero {
	--cb-main-top-gap: 0px;
}

body.cb-learn-body .cb-main,
.elementor-editor-active .cb-main,
.elementor-preview .cb-main {
	padding-top: 0;
}

/* Editor/preview: keep header in document flow so footer + header widgets layout correctly */

@media (max-width: 1200px) {
	.cb-header__nav-link {
		padding-inline: 0.65rem;
		font-size: var(--text-sm);
	}
}

@media (max-width: 1100px) {
	.cb-header__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-3);
	}

	.cb-header__nav {
		display: none;
	}

	.cb-header__actions--desktop {
		display: none;
	}

	.cb-header__menu-toggle {
		display: inline-flex;
		flex-shrink: 0;
	}
}

@media (max-width: 767px) {
	.cb-header__inner {
		padding-inline: var(--cb-mobile-gutter);
	}
}

@media (max-width: 560px) {
	.cb-header__inner {
		gap: var(--space-2);
	}

	.cb-header__brand-text em {
		display: none;
	}
}

/* Elementor: header/footer widgets inside page canvas */
.elementor-widget-cb_site_header .elementor-widget-container,
.elementor-widget-cb_site_footer .elementor-widget-container {
	overflow: visible;
}

/* Editor/preview: keep header in document flow so footer + header widgets layout correctly */
.cb-header-shell--elementor-canvas .cb-header {
	position: relative;
	inset: auto;
	z-index: 1;
}

.elementor-editor-active .cb-header-shell--elementor-canvas .cb-header__cart-drawer,
.elementor-editor-active .cb-header-shell--elementor-canvas .cb-header__mobile-drawer,
.elementor-preview .cb-header-shell--elementor-canvas .cb-header__cart-drawer,
.elementor-preview .cb-header-shell--elementor-canvas .cb-header__mobile-drawer {
	position: fixed;
}

/* Footer styles: assets/css/components/footer.css */
