.booth-catalog-photo {
	flex:none;
	width:104px;
	aspect-ratio:4/3;
	border-radius:14px;
	background:linear-gradient(145deg,#fff5ec,#ffe2cc);
}

.booth-catalog-photo .photo-placeholder {
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
	gap:3px;
	font-size:12px;
}

.booth-catalog-photo .photo-placeholder svg {
	width:30px;
	height:30px;
	color:var(--home-ink);
	stroke-width:1.6;
}

.booth-catalog-photo.is-sold-out img {
	filter:grayscale(1);
	opacity:.5;
}

.booth-catalog-photo .thumb-label {
	position:absolute;
	inset:0;
	display:grid;
	place-items:center;
	border-radius:inherit;
	background:rgb(26 21 18 / 55%);
	color:#fff;
	font-size:14px;
	font-weight:700;
}

/* 메뉴 수량과 옵션 선택은 담기 버튼 옆에서 확인한다. */
.home-surface .catalog-add,
.catalog-stepper button,
.catalog-options [data-options-close] {
	display:inline-grid;
	place-items:center;
	width:44px;
	height:44px;
	padding:0;
	border:0;
	border-radius:50%;
	font-size:23px;
	font-weight:700;
	line-height:1;
	text-decoration:none;
}
.home-surface .catalog-add,
.catalog-options .catalog-submit {
	background:var(--home-accent);
	color:#fff;
}
.home-surface .catalog-add:is(:hover,:focus-visible),
.catalog-options .catalog-submit:is(:hover,:focus-visible) {
	background:#b83b09;
}
/* 카드와 옵션 시트에서 같은 크기의 수량 조절기를 사용한다. */
.catalog-stepper {
	display:inline-flex;
	align-items:center;
	gap:2px;
	height:40px;
	padding:2px;
	border:1px solid var(--color-border);
	border-radius:999px;
	background:#fff;
	box-sizing:border-box;
}
.catalog-stepper button {
	width:34px;
	height:34px;
	background:#f7f4f1;
	color:var(--color-text);
	font:700 20px/1 system-ui,sans-serif;
}
.catalog-stepper button[data-quantity-step="1"],
.catalog-stepper form:last-child button {
	background:var(--home-accent);
	color:#fff;
}
.catalog-stepper button:hover {
	filter:brightness(.93);
}
.catalog-stepper > :is(input,span) {
	width:26px;
	padding:0;
	border:0;
	text-align:center;
	font-family:inherit;
	font-size:16px;
	font-weight:900;
	font-variant-numeric:tabular-nums;
	appearance:textfield;
}
.catalog-stepper input::-webkit-inner-spin-button {
	appearance:none;
}
.catalog-options {
	width:min(100%,560px);
	max-width:100%;
	max-height:88svh;
	overflow:hidden;
	margin:auto auto 0;
	padding:0;
	border:0;
	border-radius:22px 22px 0 0;
	background:white;
	color:var(--color-text);
}
.catalog-options[open],.catalog-options form {
	display:flex;
	flex-direction:column;
	min-height:0;
}
.catalog-options::backdrop {
	background:rgb(0 0 0 / 45%);
}
html:has(.catalog-options:modal) {
	overflow:hidden;
}
.catalog-option-body {
	overflow-y:auto;
	overscroll-behavior:contain;
	padding:0 18px 8px;
}
.catalog-options header,.catalog-option-footer {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	flex:none;
}
.catalog-options h2,.catalog-options p {
	margin:0;
}
.catalog-option-summary {
	display:flex;
	align-items:center;
	gap:14px;
	padding:4px 0 14px;
}
.catalog-option-summary .booth-catalog-photo {
	width:96px;
}
.catalog-option-summary p,.option-choice .price {
	color:var(--color-muted);
	font-size:14px;
}
.catalog-option-summary strong {
	display:block;
	margin-top:2px;
	color:var(--home-ink);
	font-size:18px;
	font-weight:900;
}
.catalog-options .option-group {
	min-width:0;
	margin:0;
	padding:0 0 6px;
	border:0;
}
.option-group legend {
	box-sizing:border-box;
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:6px;
	width:100%;
	padding:14px 0 6px;
	border-top:1px solid var(--color-border);
	font-size:16px;
	font-weight:900;
}
.option-group legend small {
	margin-left:auto;
	font-size:13px;
	font-weight:400;
	color:var(--color-muted);
}
.option-badge {
	padding:0 7px;
	border-radius:6px;
	background:#f7f4f1;
	color:var(--color-muted);
	font-size:12px;
	line-height:20px;
	font-weight:700;
}
.option-badge.is-required {
	background:var(--home-soft);
	color:var(--home-ink);
}
.option-choice {
	display:flex;
	align-items:center;
	gap:10px;
	min-height:46px;
	font-size:15px;
	cursor:pointer;
}
.option-choice input {
	display:grid;
	place-items:center;
	flex:none;
	appearance:none;
	width:22px;
	height:22px;
	padding:0;
	margin:0;
	border:1.5px solid var(--color-border);
	border-radius:6px;
	background:white;
}
.option-group[data-max="1"] .option-choice input {
	border-radius:50%;
}
.option-choice input:checked {
	border-color:var(--home-accent);
	background:var(--home-accent);
}
.option-choice input:checked::after {
	content:"";
	width:8px;
	height:4px;
	border:solid white;
	border-width:0 0 2px 2px;
	transform:translateY(-1px) rotate(-45deg);
}
.option-choice input:checked + span {
	font-weight:700;
}
.option-choice:has(input:focus-visible) {
	outline:2px solid var(--home-ink);
	outline-offset:-2px;
}
.option-choice .price {
	margin-left:auto;
	white-space:nowrap;
}
.catalog-option-footer {
	flex-wrap:wrap;
	padding:12px 18px calc(14px + env(safe-area-inset-bottom,0px));
	border-top:1px solid var(--color-border);
	background:#fff;
}
.catalog-option-footer label {
	margin-right:auto;
	font-size:15px;
	font-weight:700;
}
.catalog-options .catalog-submit {
	width:100%;
	min-height:56px;
	border:0;
	border-radius:14px;
	font-size:19px;
	font-weight:900;
}

/* 스크립트가 없어도 링크 대상을 선택하면 현재 화면에서 같은 서버 폼을 쓸 수 있다. */
.catalog-options[open]:not(:modal):not(:target) {
	display:none;
}
.catalog-options[open]:target:not(:modal) {
	position:fixed;
	inset:auto 0 0;
	z-index:20;
	box-shadow:0 -4px 32px #0003;
}
.catalog-options [data-options-close] {
	color:inherit;
	background:transparent;
	font:400 28px/1 system-ui,sans-serif;
}
.catalog-options [data-options-close]:hover {
	background:var(--home-soft);
}

.catalog-options .catalog-stepper [hidden] {
	display:none;
}

/* 옵션 목록을 스크롤해도 메뉴명과 닫기 버튼은 시트 상단에 유지한다. */
.catalog-options > header {
	padding:12px 8px 8px 18px;
	background:inherit;
}
.catalog-options > header h2 {
	min-width:0;
	font-size:19px;
	font-weight:900;
	overflow-wrap:anywhere;
}
.catalog-options [data-options-close] {
	flex:none;
}

/* 실제 사진을 선택하면 확대하고, 로드 실패 시 대체 표시만 남긴다. */
.catalog-photo-open {
	position:absolute;
	inset:0;
	z-index:1;
	cursor:zoom-in;
}
.catalog-photo-open:focus-visible {
	outline-offset:-4px;
}
.booth-catalog-photo img[hidden] ~ .catalog-photo-open {
	display:none;
}

/* 확대 배율과 글꼴에 관계없이 수량과 닫기 아이콘의 획을 일정하게 유지한다. */
.catalog-stepper .customer-icon {
	width:16px;
	height:16px;
	stroke-width:2.6;
}
.catalog-add .customer-icon,.catalog-options [data-options-close] .customer-icon {
	width:22px;
	height:22px;
	stroke-width:2.3;
}
