.menu > .shell > .menu__search,
.menu > .shell > .menu__search-count,
.menu > .shell > .menu__tabs,
.menu > .shell > #menuMore,
#menuTabsUX {
	display: none !important;
}

.rayhon-catalog {
	--rc-accent: #ff7812;
	--rc-accent-soft: rgba(255, 120, 18, .12);
	--rc-ink: #f6eee2;
	--rc-muted: rgba(246, 238, 226, .64);
	--rc-border: rgba(246, 238, 226, .14);
	--rc-panel: #12110f;
	position: relative;
	margin: 44px 0 36px;
	color: var(--rc-ink);
}

.rayhon-catalog *,
.rayhon-catalog *::before,
.rayhon-catalog *::after {
	box-sizing: border-box;
}

.rayhon-catalog button,
.rayhon-catalog input,
.rayhon-catalog select {
	font: inherit;
}

.rayhon-catalog__section-label {
	margin: 0 0 14px;
	color: var(--rc-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.rayhon-catalog__categories {
	display: grid;
	/* One row whatever the number of categories (4 meat + sauces). */
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 14px;
}

.rayhon-category {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	column-gap: 12px;
	align-items: center;
	min-width: 0;
	min-height: 100px;
	padding: 11px 15px 11px 10px;
	overflow: hidden;
	color: var(--rc-ink);
	text-align: left;
	background: rgba(10, 9, 8, .54);
	border: 1px solid var(--rc-border);
	border-radius: 18px;
	cursor: pointer;
	transition: border-color .24s ease, background-color .24s ease, transform .24s ease;
}

.rayhon-category::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .025));
}

.rayhon-category:hover {
	border-color: rgba(246, 238, 226, .28);
	background-color: rgba(246, 238, 226, .035);
}

.rayhon-category[aria-pressed='true'] {
	border-color: rgba(255, 120, 18, .92);
	background: linear-gradient(105deg, rgba(255, 120, 18, .13), rgba(80, 39, 12, .12) 58%, rgba(10, 9, 8, .68));
}

.rayhon-category__media {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
}

.rayhon-category__media::after {
	content: '';
	position: absolute;
	inset: 55% 8% 5%;
	background: radial-gradient(ellipse, rgba(0, 0, 0, .48), transparent 70%);
	filter: blur(5px);
}

.rayhon-category__media img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	filter: saturate(.92) contrast(1.04);
	mix-blend-mode: normal;
}

.rayhon-category__name {
	position: relative;
	z-index: 1;
	display: block;
	min-width: 0;
	font-size: clamp(14px, 1.1vw, 18px);
	font-weight: 600;
	line-height: 1.28;
}

.rayhon-category__meta {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-left: 10px;
	color: var(--rc-muted);
	font-size: 15px;
}

.rayhon-category__arrow {
	width: 10px;
	height: 10px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.rayhon-catalog__subcategories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.rayhon-subcategory {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 17px;
	min-height: 48px;
	padding: 10px 20px;
	color: var(--rc-ink);
	white-space: nowrap;
	background: transparent;
	border: 1px solid var(--rc-border);
	border-radius: 999px;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.rayhon-subcategory span:last-child {
	color: var(--rc-muted);
	font-size: 13px;
}

.rayhon-subcategory:hover {
	border-color: rgba(246, 238, 226, .3);
}

.rayhon-subcategory[aria-pressed='true'] {
	color: #160d07;
	background: var(--rc-accent);
	border-color: var(--rc-accent);
}

.rayhon-subcategory[aria-pressed='true'] span:last-child {
	color: rgba(22, 13, 7, .74);
}

.rayhon-catalog__toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
	gap: 24px;
	align-items: center;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--rc-border);
}

.rayhon-catalog__filters {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.rayhon-catalog__filter-label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex: 0 0 auto;
	margin-right: 4px;
	color: var(--rc-muted);
	font-size: 13px;
	white-space: nowrap;
}

.rayhon-catalog__filter-label svg,
.rayhon-search svg,
.rayhon-mobile-filter-button svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rayhon-filter {
	position: relative;
	flex: 0 1 190px;
}

.rayhon-filter__trigger,
.rayhon-sort-wrap select,
.rayhon-mobile-filter-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 52px;
	padding: 11px 16px;
	color: var(--rc-ink);
	background: rgba(10, 9, 8, .5);
	border: 1px solid var(--rc-border);
	border-radius: 15px;
}

.rayhon-filter__trigger {
	cursor: pointer;
}

.rayhon-filter__trigger:hover,
.rayhon-filter__trigger[aria-expanded='true'],
.rayhon-sort-wrap select:hover,
.rayhon-mobile-filter-button:hover {
	border-color: rgba(246, 238, 226, .3);
}

.rayhon-filter__chevron {
	width: 8px;
	height: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s ease;
}

.rayhon-filter__trigger[aria-expanded='true'] .rayhon-filter__chevron {
	transform: translateY(2px) rotate(225deg);
}

.rayhon-filter__panel {
	position: absolute;
	z-index: 35;
	top: calc(100% + 8px);
	left: 0;
	width: max(100%, 248px);
	padding: 14px;
	background: #171512;
	border: 1px solid rgba(246, 238, 226, .18);
	border-radius: 15px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
	opacity: 0;
	transform: translateY(-5px);
	visibility: hidden;
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.rayhon-filter__panel.is-open {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.rayhon-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 6px 4px;
	color: rgba(246, 238, 226, .82);
	cursor: pointer;
}

.rayhon-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--rc-accent);
}

.rayhon-price-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.rayhon-price-fields label {
	display: grid;
	gap: 6px;
	color: var(--rc-muted);
	font-size: 12px;
}

.rayhon-price-fields input,
.rayhon-drawer input[type='number'] {
	width: 100%;
	min-height: 42px;
	padding: 9px 11px;
	color: var(--rc-ink);
	background: #0d0c0a;
	border: 1px solid var(--rc-border);
	border-radius: 10px;
}

.rayhon-sort-wrap {
	position: relative;
	flex: 0 1 205px;
}

.rayhon-sort-wrap::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 17px;
	width: 8px;
	height: 8px;
	pointer-events: none;
	border-right: 1.5px solid var(--rc-ink);
	border-bottom: 1.5px solid var(--rc-ink);
	transform: translateY(-70%) rotate(45deg);
}

.rayhon-sort-wrap select {
	padding-right: 38px;
	appearance: none;
	cursor: pointer;
}

.rayhon-sort-wrap option {
	color: var(--rc-ink);
	background: #171512;
}

.rayhon-search {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	height: 58px;
	color: var(--rc-muted);
	background: linear-gradient(180deg, rgba(246, 238, 226, .045), rgba(246, 238, 226, .015));
	border: 1px solid var(--rc-border);
	border-radius: 17px;
}

.rayhon-search svg {
	flex: 0 0 auto;
	margin-left: 18px;
}

.rayhon-search input {
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 0 48px 0 13px;
	color: var(--rc-ink);
	background: transparent;
	border: 0;
	outline: 0;
}

.rayhon-search:focus-within {
	border-color: var(--rc-accent);
	box-shadow: 0 0 0 2px rgba(255, 120, 18, .22);
}

.rayhon-search input:focus,
.rayhon-search input:focus-visible {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
}

.rayhon-search input::placeholder {
	color: rgba(246, 238, 226, .47);
}

.rayhon-search__clear {
	position: absolute;
	top: 50%;
	right: 10px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: var(--rc-muted);
	background: transparent;
	border: 0;
	border-radius: 50%;
	transform: translateY(-50%);
	cursor: pointer;
}

.rayhon-catalog__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 42px;
	margin-top: 14px;
}

.rayhon-catalog__result-count {
	margin: 0;
	color: var(--rc-muted);
	font-size: 13px;
}

.rayhon-reset {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	color: var(--rc-muted);
	background: transparent;
	border: 0;
	cursor: pointer;
}

.rayhon-reset:hover {
	color: var(--rc-ink);
}

.rayhon-reset[disabled] {
	opacity: .42;
	cursor: default;
}

.rayhon-empty {
	display: grid;
	place-items: center;
	min-height: 330px;
	margin-top: 4px;
	padding: 48px 24px;
	text-align: center;
	border: 1px solid var(--rc-border);
	border-radius: 18px;
}

.rayhon-empty h3 {
	margin: 0 0 10px;
	font-size: clamp(22px, 3vw, 34px);
}

.rayhon-empty p {
	max-width: 420px;
	margin: 0 0 22px;
	color: var(--rc-muted);
	line-height: 1.6;
}

.rayhon-empty button,
.rayhon-drawer__apply {
	min-height: 48px;
	padding: 11px 20px;
	color: #160d07;
	font-weight: 700;
	background: var(--rc-accent);
	border: 1px solid var(--rc-accent);
	border-radius: 13px;
	cursor: pointer;
}

.menu__grid .pcard.rayhon-filter-enter {
	animation: rayhon-card-in .2s ease both;
}

@keyframes rayhon-card-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.rayhon-mobile-actions,
.rayhon-drawer,
.rayhon-drawer-overlay {
	display: none;
}

.rayhon-drawer,
.rayhon-drawer-overlay {
	pointer-events: none;
}

.rayhon-catalog button:focus-visible,
.rayhon-catalog input:focus-visible,
.rayhon-catalog select:focus-visible,
.rayhon-drawer button:focus-visible,
.rayhon-drawer input:focus-visible {
	outline: 2px solid var(--rc-accent);
	outline-offset: 3px;
}

/* Five tiles in one row leave ~240px each: photo and count on top, the name gets the full
   width below, so "напівфабрикати" never runs into the count. */
@media (min-width: 1181px) {
	.rayhon-category {
		grid-template-columns: 56px minmax(0, 1fr);
		grid-template-areas: "media meta" "name name";
		row-gap: 10px;
		align-items: center;
		min-height: 132px;
		padding: 14px 16px 16px;
	}

	.rayhon-category__media {
		grid-area: media;
		width: 56px;
		height: 56px;
	}

	.rayhon-category__meta {
		grid-area: meta;
		justify-self: end;
		margin-left: 0;
	}

	.rayhon-category__name {
		grid-area: name;
		align-self: start;
		font-size: 16px;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 1180px) {
	.rayhon-catalog__categories {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rayhon-catalog__categories > .rayhon-category:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.rayhon-category__name {
		font-size: 18px;
	}

	.rayhon-catalog__toolbar {
		grid-template-columns: 1fr;
	}

	.rayhon-catalog__filters {
		flex-wrap: wrap;
	}

	.rayhon-search {
		width: min(100%, 520px);
	}
}

@media (max-width: 700px) {
	.rayhon-catalog {
		margin: 32px 0 28px;
	}

	.rayhon-catalog__categories,
	.rayhon-catalog__subcategories {
		display: flex;
		flex-wrap: nowrap;
		max-width: calc(100vw - 24px);
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.rayhon-catalog__categories::-webkit-scrollbar,
	.rayhon-catalog__subcategories::-webkit-scrollbar {
		display: none;
	}

	.rayhon-category {
		grid-template-columns: 60px minmax(120px, 1fr) auto;
		column-gap: 11px;
		flex: 0 0 min(78vw, 286px);
		min-height: 88px;
		padding: 8px 13px 8px 9px;
		scroll-snap-align: start;
	}

	.rayhon-category__media {
		width: 60px;
		height: 60px;
	}

	.rayhon-category__name {
		font-size: 16px;
	}

	.rayhon-subcategory {
		flex: 0 0 auto;
		min-height: 44px;
		padding: 8px 17px;
		scroll-snap-align: start;
	}

	.rayhon-catalog__toolbar {
		gap: 12px;
		margin-top: 24px;
		padding-top: 20px;
	}

	.rayhon-catalog__filters {
		display: none;
	}

	.rayhon-search {
		grid-row: 1;
		width: 100%;
		height: 54px;
	}

	.rayhon-mobile-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
		gap: 10px;
		grid-row: 2;
	}

	.rayhon-mobile-filter-button,
	.rayhon-mobile-actions .rayhon-sort-wrap select {
		min-height: 48px;
		font-size: 13px;
	}

	.rayhon-mobile-filter-button {
		justify-content: center;
		cursor: pointer;
	}

	.rayhon-mobile-actions .rayhon-sort-wrap {
		min-width: 0;
	}

	.rayhon-catalog__meta-row {
		align-items: flex-start;
		min-height: 36px;
		margin-top: 8px;
	}

	.rayhon-reset {
		font-size: 13px;
	}

	.rayhon-drawer-overlay {
		position: fixed;
		z-index: 9998;
		inset: 0;
		display: block;
		background: rgba(0, 0, 0, .64);
		opacity: 0;
		visibility: hidden;
		transition: opacity .2s ease, visibility .2s;
	}

	.rayhon-drawer-overlay.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.rayhon-drawer {
		position: fixed;
		z-index: 9999;
		right: 0;
		bottom: 0;
		left: 0;
		display: block;
		max-height: min(88vh, 720px);
		padding: 20px max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
		overflow-y: auto;
		color: var(--rc-ink);
		background: #14120f;
		border: 1px solid rgba(246, 238, 226, .17);
		border-bottom: 0;
		border-radius: 22px 22px 0 0;
		box-shadow: 0 -24px 70px rgba(0, 0, 0, .5);
		transform: translateY(104%);
		visibility: hidden;
		transition: transform .24s ease, visibility .24s;
	}

	.rayhon-drawer.is-open {
		transform: translateY(0);
		visibility: visible;
		pointer-events: auto;
	}

	.rayhon-drawer__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 18px;
		padding-bottom: 14px;
		border-bottom: 1px solid var(--rc-border);
	}

	.rayhon-drawer__head h3 {
		margin: 0;
		font-size: 22px;
	}

	.rayhon-drawer__close {
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		padding: 0;
		color: var(--rc-ink);
		font-size: 26px;
		line-height: 1;
		background: transparent;
		border: 1px solid var(--rc-border);
		border-radius: 50%;
		cursor: pointer;
	}

	.rayhon-drawer fieldset {
		margin: 20px 0 0;
		padding: 0;
		border: 0;
	}

	.rayhon-drawer legend {
		margin-bottom: 10px;
		font-weight: 700;
	}

	.rayhon-drawer__meats {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2px 16px;
	}

	.rayhon-drawer__footer {
		display: grid;
		grid-template-columns: 1fr 1.4fr;
		gap: 10px;
		margin-top: 24px;
	}

	.rayhon-drawer__reset {
		min-height: 48px;
		color: var(--rc-ink);
		background: transparent;
		border: 1px solid var(--rc-border);
		border-radius: 13px;
		cursor: pointer;
	}

	body.rayhon-filters-open {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rayhon-catalog *,
	.rayhon-catalog *::before,
	.rayhon-catalog *::after,
	.rayhon-drawer,
	.rayhon-drawer-overlay {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* Flat categories without meat (sauces): no subcategory row, no meat filter. */
.rayhon-catalog.is-no-meat [data-filter="meat"],
.rayhon-catalog.is-no-meat .rayhon-drawer fieldset:first-of-type,
.rayhon-catalog__subcategories[hidden] {
	display: none !important;
}
