/**
 * RosaFood fejléc — La'Rosa elrendezés: logo | kategória menü | kapcsolat + kosár.
 */

.rf-header-larosa .header-container {
	background: #fff;
}

.rf-header-larosa .header-main {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: stretch;
	gap: 0;
	padding: 0;
	min-height: 5.5rem;
}

.rf-header-main__left {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.5rem 1rem 0.5rem var(--rf-gutter, 1.25rem);
	flex-shrink: 0;
}

.rf-header-main__center {
	display: flex;
	align-items: stretch;
	min-width: 0;
	border-left: 1px solid #ece8e0;
	border-right: 1px solid #ece8e0;
	position: relative;
	overflow: visible;
}

.rf-header-main__right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem var(--rf-gutter, 1.25rem) 0.5rem 1rem;
	flex-shrink: 0;
}

.rf-header-actions {
	display: flex;
	align-items: center;
}

.rf-header-account-mobile {
	display: flex;
	align-items: center;
}

@media (min-width: 1024px) {
	.rf-header-account-mobile {
		display: none;
	}
}

@media (max-width: 1023px) {
	.rf-header-actions .site-header-account,
	.rf-header-actions .site-header-cart {
		display: none;
	}
}

/* Nincs WP oldal menü */
.rf-header-larosa .main-navigation {
	display: none !important;
}

/* Jobb oldali kapcsolat (La'Rosa) */
.rf-header-contact-side {
	display: none;
}

@media (min-width: 1200px) {
	.rf-header-contact-side {
		display: block;
		padding-right: 0.75rem;
		border-right: 1px solid #ece8e0;
		margin-right: 0.25rem;
	}

	.rf-header-contact-side__inner {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 0.2rem;
		text-align: right;
	}

	.rf-header-contact-side .rf-header-contact__item {
		font-size: 0.625rem;
		font-weight: 600;
		color: #3a3a3a;
		text-decoration: none;
		line-height: 1.35;
	}

	.rf-header-contact-side .rf-header-contact__item--hours {
		color: #6b6560;
		font-weight: 500;
	}

	.rf-header-contact-side .rf-header-contact__label {
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		margin-right: 0.25rem;
	}

	.rf-header-contact-side .rf-header-contact__text--phone {
		font-family: "Barlow Condensed", sans-serif;
		font-size: 1.125rem;
		font-weight: 800;
		color: #1a1a1a;
		letter-spacing: 0.02em;
	}

	.rf-header-contact-side .rf-header-contact__icon {
		display: none;
	}

	a.rf-header-contact-side .rf-header-contact__item--phone:hover .rf-header-contact__text--phone {
		color: var(--primary, #c33130);
	}
}

/* Mobil panel kapcsolat */
.rf-header-contact__box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 1rem;
	background: #faf8f4;
	border: 1px solid #e8e4dc;
	border-radius: 10px;
	margin: 1rem 1.25rem;
}

.rf-header-contact__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #3a3a3a;
	text-decoration: none;
}

.rf-header-contact__icon {
	display: flex;
	flex-shrink: 0;
	color: var(--primary, #c33130);
}

/* Kategória menü — középen, La'Rosa sáv */
.rf-header-cat-nav--inline {
	flex: 1;
	min-width: 0;
	background: #fff;
	border-top: none;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: visible;
}

.rf-header-cat-nav__list--app {
	display: none;
}

.rf-header-cat-nav__scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	height: 100%;
}

/* Web / PC: fejléc kategóriák egy sorban, görgetés nélkül */
body:not(.rf-pwa-app) .rf-header-cat-nav__scroll {
	overflow: hidden;
}

body:not(.rf-pwa-app) .rf-header-cat-nav__list--compact {
	flex-wrap: nowrap;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

body:not(.rf-pwa-app) .rf-header-cat-nav__list--compact .rf-header-cat-nav__item {
	flex: 1 1 0;
	min-width: 0;
}

body:not(.rf-pwa-app) .rf-header-cat-nav__list--compact .rf-header-cat-nav__item a {
	min-width: 0;
	max-width: none;
	padding: 0.5rem 0.2rem 0.45rem;
}

body:not(.rf-pwa-app) .rf-header-cat-nav__list--compact .rf-header-cat-nav__label {
	font-size: 0.625rem;
	letter-spacing: 0.05em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

body:not(.rf-pwa-app) .rf-header-cat-nav__list--compact .rf-header-cat-nav__desc {
	display: block;
	margin-top: 0.1rem;
	font-size: 0.5rem;
	font-weight: 500;
	line-height: 1.2;
	color: #7a756c;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body:not(.rf-pwa-app) .rf-header-cat-nav__list--compact .rf-header-cat-nav__item--featured .rf-header-cat-nav__desc {
	color: inherit;
	opacity: 0.85;
}

body:not(.rf-pwa-app) .rf-header-cat-nav__list--compact .rf-header-cat-nav__item--more {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: stretch;
	align-self: stretch;
}

body:not(.rf-pwa-app) .rf-header-cat-nav__list--compact .rf-header-cat-nav__item--more .rf-header-cat-nav__more-toggle {
	min-width: 0;
	max-width: none;
	height: 100%;
	padding: 0.5rem 0.2rem 0.45rem;
	border-right: none;
}

body:not(.rf-pwa-app) .rf-header-cat-nav__list--compact .rf-header-cat-nav__item--more .rf-header-cat-nav__desc {
	display: block;
}

body:not(.rf-pwa-app) .rf-header-cat-nav__list--compact .rf-header-cat-nav__icon {
	width: 2.25rem;
	height: 2.25rem;
}

.rf-header-cat-nav__list {
	display: flex;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: max-content;
	height: 100%;
}

.rf-header-cat-nav__item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 5.5rem;
	max-width: 6.75rem;
	height: 100%;
	padding: 0.5rem 0.4rem;
	text-align: center;
	text-decoration: none;
	color: #1a1a1a;
	border-right: 1px solid #ece8e0;
	transition: background 0.2s ease, color 0.2s ease;
}

.rf-header-cat-nav__item:last-child a {
	border-right: none;
}

.rf-header-cat-nav__item a:hover,
.rf-header-cat-nav__item.is-active a {
	background: #faf8f4;
	color: var(--primary, #c33130);
}

.rf-header-cat-nav__item.is-active a {
	box-shadow: inset 0 0 0 1px dashed rgba(0, 0, 0, 0.12);
}

.rf-header-cat-nav__item--featured a,
.rf-header-cat-nav__item--featured a:hover {
	color: #d71920;
}

.rf-header-cat-nav__icon {
	display: flex;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.2rem;
	color: inherit;
}

.rf-header-cat-nav__icon .rf-cat-icon,
.rf-header-cat-nav__icon .rf-cat-icon--flat,
.rf-header-cat-nav__icon .rf-cat-icon--png {
	width: 100%;
	height: 100%;
}

.rf-cat-icon--png {
	display: block;
	object-fit: contain;
	object-position: center;
}

.rf-header-cat-nav__label {
	font-family: "Barlow Condensed", sans-serif;
	font-size: 0.625rem;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rf-header-cat-nav__desc {
	margin-top: 0.1rem;
	font-size: 0.5rem;
	font-weight: 500;
	line-height: 1.2;
	color: #7a756c;
	max-width: 6rem;
}

.rf-header-cat-nav__item--featured .rf-header-cat-nav__desc {
	color: inherit;
	opacity: 0.85;
}

.rf-header-cat-nav__item--more .rf-header-cat-nav__icon--more {
	width: 2.25rem;
	height: 2.25rem;
	padding: 0.15rem;
	border: 1px solid #ddd8ce;
	border-radius: 50%;
}

.rf-header-cat-nav__item--more {
	display: flex;
	align-items: stretch;
	align-self: stretch;
}

.rf-header-cat-nav__more-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-width: 5.5rem;
	max-width: 6.75rem;
	padding: 0.5rem 0.4rem;
	border: 0;
	border-right: 1px solid #ece8e0;
	border-radius: 0;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	font: inherit;
	color: #1a1a1a;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
	line-height: inherit;
	transition: background 0.2s ease, color 0.2s ease;
}

.rf-header-cat-nav__more-toggle:hover,
.rf-header-cat-nav__more-toggle[aria-expanded="true"] {
	background: #faf8f4 !important;
	background-color: #faf8f4 !important;
	color: var(--primary, #c33130);
}

.rf-header-cat-nav__item--more:last-child .rf-header-cat-nav__more-toggle {
	border-right: none;
}

.rf-header-cat-nav__more-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 120;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	box-sizing: border-box;
	border-top: 1px solid #eee9e0;
	background: #fff;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
	max-height: min(42vh, 17.5rem);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.rf-header-cat-nav__more-inner {
	padding: 0.65rem var(--rf-gutter, 1.25rem) 0.85rem;
}

.rf-header-cat-nav__more-panel[hidden] {
	display: none !important;
}

.rf-header-cat-nav__list--more {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
	gap: 0.45rem;
	min-width: 0 !important;
	width: 100%;
	max-width: 100%;
	height: auto;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rf-header-cat-nav__list--more .rf-header-cat-nav__item {
	flex: none;
	min-width: 0;
}

.rf-header-cat-nav__list--more .rf-header-cat-nav__item a {
	min-width: 0;
	max-width: none;
	height: auto;
	padding: 0.5rem 0.35rem 0.55rem;
	border: 1px solid #ece8e0;
	border-radius: 10px;
	background: #faf8f4;
}

.rf-header-cat-nav__list--more .rf-header-cat-nav__item a:hover,
.rf-header-cat-nav__list--more .rf-header-cat-nav__item.is-active a {
	background: rgba(195, 49, 48, 0.06);
	border-color: rgba(195, 49, 48, 0.28);
	box-shadow: none;
}

.rf-header-cat-nav__list--more .rf-header-cat-nav__label {
	font-size: 0.5625rem;
	line-height: 1.15;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.rf-header-cat-nav__list--more .rf-header-cat-nav__desc {
	display: none;
}

body.rf-cat-more-open {
	overflow-x: hidden;
}

.rf-mobile-cat-nav__section-title {
	margin: 1rem 1.25rem 0.35rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.75;
}

/* Sticky */
.site-header.is-sticky.rf-header-larosa {
	background: #fff;
}

/* Mobil kategória panel */
.rf-mobile-cat-nav .menu-scroll-mobile {
	padding-top: 0;
}

.rf-mobile-cat-nav .mobile-nav-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #eee;
}

.rf-mobile-cat-nav .mobile-nav-title {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rf-mobile-cat-nav__list-wrap {
	display: flex;
	flex-direction: column;
	padding: 0.5rem 0;
	max-height: 60vh;
	overflow-y: auto;
}

.rf-mobile-cat-nav__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1.25rem;
	text-decoration: none;
	color: #212121;
	font-weight: 600;
	font-size: 0.9375rem;
}

.rf-mobile-cat-nav__link--featured {
	color: #d71920;
}

.rf-mobile-cat-nav__icon {
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
}

.rf-mobile-cat-nav__icon .rf-cat-icon,
.rf-mobile-cat-nav__icon .rf-cat-icon--png {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 1199px) {
	.rf-header-main__center {
		display: none;
	}

	.rf-header-larosa .header-main {
		grid-template-columns: 1fr auto;
		min-height: 4rem;
	}
}

@media (max-width: 767px) {
	.rf-header-larosa .header-main {
		min-height: 3.75rem;
	}
}

@media (min-width: 1200px) {
	.rf-header-larosa .menu-mobile-nav-button {
		display: none !important;
	}
}

@media (max-width: 1199px) {
	.rf-header-larosa .menu-mobile-nav-button {
		display: flex !important;
	}
}
