/* --- 전체 레이아웃 설정 (PC 대응) --- */
body {
	background-color: #f2f4f6; /* PC 배경색 */
	display: flex;
	justify-content: center;
	min-height: 100vh;
}

.detail-wrap {
	width: 100%;
	max-width: 1170px; /* 가로폭 제한 */
	margin: 0 auto; /* 중앙 정렬 */
	background-color: #fff;
	padding-bottom: 20rem; /* 하단 버튼에 가려지지 않게 여백 */
	position: relative;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

/* --- 1. 히어로 이미지 영역 --- */
.hero-area {
	position: relative;
	width: 100%;
	height: 75rem;
	overflow: hidden;
}

.img-container {
	width: 100%;
	height: 100%;
}

.food-bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* 상단 네비게이션 (이미지 위 겹침) */
.top-nav {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding: 6.7rem 6.1rem;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	z-index: 10;
}

.top-nav button {
	background: none;
	border: none;
	padding: 0;
}

.top-nav .btn-back img {
	width: 5.8rem;
}

/* ▼▼▼ [요청하신 스타일 코드 적용] ▼▼▼ */
.header-top-right {
	display: flex;
	gap: 6.4rem;
	position: relative;
}

.header-top-right button {
	height: 4.6rem;
	background: none;
	border: none;
	position: relative;
}

.header-top-right .badge {
	position: absolute;
	background-color: #ff0000;
	color: #fff;
	text-align: center;
	border-radius: 14.5rem;
	width: 4.1rem;
	height: 2.9rem;
	font-size: 2.4rem;
	font-weight: 500;
	line-height: 1;
	align-items: center;
}

.doc-img {
	width: 3.6rem;
}
.pan-img {
	width: 7.1rem;
	margin-top: 2.7rem;
}
/* ▲▲▲ [적용 완료] ▲▲▲ */

/* --- 2. 상세 내용 본문 --- */
.detail-content {
	background-color: #fff;
	position: relative;
}

.title-section {
	padding: 6.1rem;
}

.best-badge {
	display: inline-block;
	background-color: #ffecec;
	color: #ff598d;
	font-size: 3rem;
	font-weight: 700;
	padding: 1rem 2.5rem;
	border-radius: 3rem;
	margin-bottom: 2.5rem;
}

.menu-title {
	font-size: 5rem;
	font-weight: 700;
	margin-bottom: 2rem;
	line-height: 1.2;
}

/* 3줄 이상 말줄임표 처리 */
.menu-desc {
	font-size: 4.4rem;
	color: #848484;
	line-height: 1.4;

	display: -webkit-box;
	-webkit-line-clamp: 3; /* 3줄 제한 */
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.divider {
	border: none;
	border-top: 2rem solid #f0f2f4;
	margin: 0;
}

/* 가격 & 수량 섹션 */
.price-quantity-section {
	padding: 5rem 6.1rem;
	display: flex;
	flex-direction: column;
	gap: 5rem;
}

.row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
.row.center-align {
	align-items: center;
}

.row .label {
	font-size: 4.6rem;
	font-weight: 700;
	color: #333;
}

.row .value.price {
	font-size: 4.6rem;
	font-weight: 700;
	margin-right: 1.9rem;
}

/* 수량 조절 버튼 */
.qty-control {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #ffd233;
	width: 30rem;
	height: 9.6rem;
	border-radius: 4.8rem;
	padding: 0 3.5rem;
}

.qty-btn {
	background: none;
	border: none;
	width: 8rem;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 6rem;
	font-weight: 300;
	cursor: pointer;
	padding-bottom: 1rem;
}
.qty-btn.delete img {
	width: 4rem;
	height: auto;
	padding-top: 1rem;
}
.qty-btn.plus {
	padding-bottom: 0;
}
.qty-btn.plus img {
	width: 3.5rem;
}

.qty-num {
	font-size: 4.6rem;
	font-weight: 700;
}

/* 옵션 섹션 */
.option-group {
	background-color: #fff;
}

.option-header {
	background-color: #f0f2f4;
	padding: 4rem 6.1rem;
	font-size: 4.4rem;
	font-weight: 700;
	color: #333;
}

.option-list {
	list-style: none;
}

.option-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5rem 6.1rem;
	border-bottom: 0.2rem solid #f0f2f4;
	cursor: pointer;
}

.option-item .left {
	display: flex;
	align-items: center;
	gap: 3rem;
}

.option-item input[type="radio"] {
	display: none;
}

.radio-custom {
	width: 5rem;
	height: 5rem;
	border: 0.4rem solid #ddd;
	border-radius: 50%;
	position: relative;
	box-sizing: border-box;
}

.option-item input[type="radio"]:checked + .radio-custom {
	border-color: #333;
	background-color: #333;
}
.option-item input[type="radio"]:checked + .radio-custom::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 2rem;
	height: 2rem;
	background-color: #fff;
	border-radius: 50%;
}

.opt-name {
	font-size: 4.6rem;
	color: #333;
}

.opt-price {
	font-size: 4.6rem;
	font-weight: 700;
}

/* --- 3. 하단 고정 버튼 바 --- */
.fixed-bottom-bar {
	position: sticky;
	bottom: 0;

	/* 중앙 정렬 및 가로폭 제한 */
	width: 100%;
	max-width: 1170px;
	left: 0;
	right: 0;
	margin: 0 auto;

	z-index: 9000;
}

.order-btn {
	width: 100%;
	height: 18rem;
	background-color: #ffd233;
	border: none;
	border-radius: 6rem 6rem 0 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	padding-bottom: 3rem;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.order-btn .total-price {
	font-size: 5.5rem;
	font-weight: 900;
}

.order-btn .btn-text {
	font-size: 4.6rem;
	font-weight: 400;
}
/* iPhone 계열(세로) 대략 타겟 */
@media only screen and (min-device-width: 375px) and (max-device-width: 430px) and (-webkit-min-device-pixel-ratio: 2) {
	/* iOS 비중이 매우 높은 구간용 스타일 */
	.order-button {
		padding-bottom: calc(2rem + env(safe-area-inset-bottom));
	}
}

/* 노치 있는 iPhone (safe-area 있는 브라우저) */
@supports (padding: max(env(safe-area-inset-top), 0px)) {
	/* 거의 iOS Safari / iOS WebView */
	.order-button {
		padding-bottom: calc(2rem + env(safe-area-inset-bottom));
	}
}
