/* 부스별 메뉴는 메인의 폭·색·공통 헤더를 이어받고 부스 전환 바만 고정한다. */
html:has(.booth-catalog) {
	scroll-padding-top:calc(var(--catalog-nav-height, 64px) + 6px);
	scroll-padding-bottom:calc(var(--cart-dock-height, 0px) + 6px);
}

.booth-catalog-hero {
	background:linear-gradient(120deg,#fff 0%,#fff1e6 45%,#ffe0c9 100%);
}

.booth-catalog-hero .home-wrap {
	padding-block:18px;
}

.booth-catalog-pickup {
	display:flex;
	align-items:center;
	gap:5px;
	margin:0 0 8px;
	color:var(--home-ink);
	font-size:14px;
	font-weight:700;
}

.booth-catalog-pickup svg {
	width:16px;
	height:16px;
}

.booth-catalog-hero h1 {
	display:flex;
	align-items:center;
	gap:8px;
	margin:0;
	font-size:28px;
	font-weight:900;
	line-height:1.2;
	letter-spacing:-.02em;
	overflow-wrap:anywhere;
}

.booth-catalog-hero .home-booth-number {
	min-width:36px;
	min-height:36px;
	border-radius:10px;
	font-size:17px;
	letter-spacing:0;
}

.booth-catalog-status {
	display:inline-flex;
	align-items:center;
	gap:5px;
	margin-top:10px;
	padding:5px 10px;
	border-radius:99px;
	background:#f7f4f1;
	color:var(--color-muted);
	font-size:13px;
	font-weight:700;
}

.booth-catalog-status::before {
	content:"";
	width:7px;
	height:7px;
	border-radius:50%;
	background:currentColor;
}

.booth-catalog-status.is-open {
	background:#ebf8ef;
	color:#21744f;
}

.booth-catalog-next {
	margin:6px 0 0;
	color:var(--color-muted);
	font-size:14px;
}

.booth-catalog-nav {
	position:sticky;
	top:0;
	z-index:10;
	border-bottom:1px solid var(--color-border);
	background:#fff;
}

.booth-catalog-nav .home-wrap {
	container:booth-nav / inline-size;
	display:flex;
	align-items:center;
	gap:6px;
	padding-block:10px;
}

.booth-catalog-nav button {
	display:grid;
	place-items:center;
	flex:none;
	width:40px;
	height:40px;
	padding:0;
	border:1px solid var(--color-border);
	border-radius:50%;
	background:#fff;
}

.booth-catalog-nav button svg {
	width:18px;
	height:18px;
}

.booth-catalog-nav button:hover {
	border-color:var(--home-accent);
	color:var(--home-ink);
}

.booth-catalog-chips {
	--visible-booths:1;
	--booth-gap:8px;
	display:flex;
	flex:1;
	gap:var(--booth-gap);
	overflow-x:auto;
	scrollbar-width:none;
	scroll-snap-type:x mandatory;
	padding-block:3px;
}

.booth-catalog-chips a {
	display:inline-flex;
	flex:0 0 calc((100% + var(--booth-gap)) / var(--visible-booths) - var(--booth-gap));
	justify-content:center;
	align-items:center;
	gap:5px;
	min-height:40px;
	padding:0 5px;
	border:1px solid var(--color-border);
	border-radius:99px;
	color:inherit;
	font-size:14px;
	font-weight:500;
	text-decoration:none;
	scroll-snap-align:start;
}

.booth-catalog-chips a:focus-visible {
	outline-offset:-3px;
}

.booth-catalog-chips b {
	color:var(--home-ink);
}

.booth-catalog-chips a:hover {
	background:var(--home-soft);
}

.booth-catalog-chips [aria-current] {
	border-color:var(--home-accent);
	background:var(--home-accent);
	font-weight:700;
}

.booth-catalog-chips [aria-current]:hover {
	background:var(--home-ink);
}

.booth-catalog-chips [aria-current],
.booth-catalog-chips [aria-current] b {
	color:#fff;
}

.booth-catalog-chips.is-dragging {
	cursor:grabbing;
	user-select:none;
	scroll-snap-type:none;
}

.booth-catalog-chips.is-dragging a {
	cursor:inherit;
}

.booth-catalog-items {
	display:grid;
	gap:10px;
	margin:0;
	padding:0;
	list-style:none;
}

.booth-catalog-item {
	position:relative;
	display:flex;
	align-items:flex-start;
	gap:14px;
	padding:12px;
	border:1px solid var(--color-border);
	border-radius:18px;
	background:#fff;
}

.booth-catalog-info {
	flex:1;
	align-self:stretch;
	display:flex;
	flex-direction:column;
	overflow-wrap:anywhere;
}

.booth-catalog-info h3 {
	margin:0;
	font-size:17px;
	line-height:1.3;
	font-weight:900;
}

.booth-catalog-info p {
	margin:2px 0 0;
	font-size:14px;
	color:var(--color-muted);
	line-height:1.4;
}

.booth-catalog-tags {
	display:flex;
	flex-wrap:wrap;
	gap:4px;
	margin-top:6px;
}

.booth-catalog-tags span {
	padding:0 7px;
	border-radius:6px;
	background:#f7f4f1;
	color:var(--color-muted);
	font-size:12px;
	line-height:20px;
}

.booth-catalog-row {
	display:flex;
	align-items:center;
	justify-content:space-between;
	flex-wrap:wrap;
	gap:8px;
	margin-top:auto;
	padding-top:6px;
}

.booth-catalog-row > strong {
	color:var(--home-ink);
	font-size:19px;
	font-weight:900;
}

.booth-catalog-row > :not(strong) {
	position:relative;
}

@container (max-width:320px) {
	.booth-catalog-photo {
		width:72px;
	}

	.booth-catalog-item {
		gap:8px;
	}
}

@container (max-width:240px) {
	.booth-catalog-item {
		flex-direction:column;
	}
}

.catalog-add {
	position:relative;
}
.catalog-add b {
	position:absolute;
	top:-4px;
	right:-4px;
	padding:0 6px;
	border-radius:12px;
	background:var(--color-text);
	font-size:12px;
	line-height:20px;
}
.catalog-unavailable {
	color:var(--color-muted);
	font-size:14px;
	font-weight:700;
}

.booth-catalog-description {
	margin:6px 0 0;
	color:var(--color-muted);
	font-size:15px;
	overflow-wrap:anywhere;
}

/* 업체 전환 바의 실측 폭에 맞춰 양 끝에 온전한 칩만 놓는다. */
@container booth-nav (min-width:280px) {
	.booth-catalog-chips {
		--visible-booths:2;
	}
}

@container booth-nav (min-width:392px) {
	.booth-catalog-chips {
		--visible-booths:3;
	}
}

@container booth-nav (min-width:492px) {
	.booth-catalog-chips {
		--visible-booths:4;
	}
}

.booth-catalog-chips b {
	flex:none;
}

.booth-catalog-chips a span {
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}

/* 저장 오류는 해당 메뉴 안에서 읽으며 사진과 가격의 폭을 유지한다. */
.booth-catalog-item:has([data-cart-error]) {
	flex-wrap:wrap;
}
.booth-catalog [data-cart-error] {
	flex-basis:100%;
	margin:0;
}
