/* =========================================
   1. 기본 레이아웃 (PC 대응 1170px)
   ========================================= */
body {
	background-color: #f2f4f6; /* PC 배경색 */
	display: flex;
	justify-content: center;
	min-height: 100vh;
	margin: 0;
}

.cart-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);
	min-height: 100vh;
}

/* =========================================
   2. 헤더 영역
   ========================================= */
.cart-header {
	background-color: #fff;
	height: 18rem;
	display: flex;
	align-items: center;
	padding: 0 6.1rem;
	gap: 4rem;
	border-bottom: 0.2rem solid #e0e3e6;
}

.cart-header .btn-back {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.cart-header .btn-back img {
	width: 5.8rem;
	height: auto;
}

.cart-header h1 {
	font-size: 5rem;
	font-weight: 700;
	color: #000;
}
.cart-list-area {
	border-top: 3.2rem solid #f0f2f4;
}
/* =========================================
   3. 장바구니 리스트
   ========================================= */
.cart-section-title {
	background-color: #fff;
	padding: 5.3rem 6.1rem 5.3rem 6.1rem;
	font-size: 5rem;
	font-weight: 700;
	color: #000;
	border-bottom: 0.2rem solid #e5e9ed;
}

.cart-item {
	background-color: #fff;
	padding: 4.8rem 6.1rem;
	padding-bottom: 5.1rem;
	display: flex;
	justify-content: space-between;
	border-bottom: 0.2rem solid #f0f2f4;
}

/* 왼쪽 텍스트 영역 */
.item-left {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.item-title {
	font-size: 4.6rem;
	font-weight: 700;
	margin-bottom: 2rem;
	color: #000;
}

.item-price {
	font-size: 4.6rem;
	font-weight: 700;
	margin-bottom: 2rem;
	color: #000;
}

.item-opt {
	font-size: 4rem;
	color: #848484;
	line-height: 1.4;
	margin-bottom: 4rem;
	word-break: keep-all;
}

/* 오른쪽 이미지 영역 */
.item-right img {
	width: 18rem;
	height: 18rem;
	object-fit: cover;
	/* border-radius: 2rem; */
	background-color: #f6f6f6;
}

/* =========================================
   4. 수량 조절 버튼 (장바구니용 소형)
   ========================================= */
.qty-control-sm {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #ffd233; /* 노란색 */
	width: 28rem;
	height: 9rem;
	border-radius: 4.5rem;
	padding: 0 1rem;
	margin-top: auto; /* 내용이 짧아도 바닥에 붙도록 */
}

.qty-btn {
	background: none;
	border: none;
	width: 8rem;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	/* 폰트 설정 */
	font-size: 5rem;
	font-weight: 300;
	color: #000;
	/* padding-bottom: 0.8rem; */
}

/* 숫자 */
.qty-num {
	font-size: 4.6rem;
	font-weight: 700;
}

/* 아이콘 교체 로직 (이미지 vs 텍스트) */
.qty-btn img.icon-del {
	width: 3.6rem;
	height: auto;
	display: none; /* 기본 숨김 */
	margin-top: 0.8rem;
}

.qty-btn .icon-minus {
	display: block; /* 기본 보임 */
}
.qty-btn.plus img,
.qty-btn .icon-minus img {
	width: 3.5rem;
}
/* delete 클래스가 있으면 -> 휴지통 보이고, 마이너스 숨김 */
.qty-btn.delete img.icon-del {
	display: block;
}
.qty-btn.delete .icon-minus {
	display: none;
}

/* =========================================
   5. 메뉴 추가 버튼 영역
   ========================================= */
.add-menu-section {
	background-color: #f0f2f4;
	padding: 4rem 0;
	text-align: center;
}

.btn-add-menu {
	background: none;
	border: none;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;

	font-size: 4.6rem;
	font-weight: 700;
	color: #333;
	cursor: pointer;
}

.plus-icon {
	background-color: #ffd233;
	width: 7.5rem;
	height: 7.5rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 5rem;
	line-height: 1;
	font-weight: 300;
}
.plus-icon img {
	width: 4.4rem;
	height: 4.4rem;
}
/* =========================================
   6. 하단 고정 바 (Footer)
   ========================================= */
.fixed-bottom-bar {
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 1170px; /* 가로폭 제한 */
	margin: 0 auto; /* 중앙 정렬 */
	z-index: 9000;
	height: 29.7rem;
	max-height: 200px;
}

/* 장바구니 페이지 전용 하단 스타일 (.cart-footer) */
.cart-footer .order-btn {
	gap: 2rem; /* 간격 조금 더 넓게 */
}

.total-price {
	font-size: 6rem;
	font-weight: 900;
	color: #333333;
	margin-right: 0.5rem;
}

.btn-text {
	font-size: 6rem;
	font-weight: 400;
	color: #333333;
}

/* 핑크색 뱃지 */
.total-count-badge {
	background-color: #ff598d;
	color: #fff;
	font-size: 5rem;
	font-weight: 700;
	min-width: 6.5rem;
	width: 7.8rem;
	height: 7.8rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.order-btn {
	width: 100%;
	height: 100%;
	background-color: #ffd233;
	border: none;
	border-radius: 6rem 6rem 0 0;
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 2rem;
	padding-bottom: 3rem;
	cursor: pointer;
	box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.15);
	padding-top: 6.1rem;
}
/* =========================================
   7. 주문 확인 모달 (Popup)
   ========================================= */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6); /* 검정 불투명도 60% */
	z-index: 9999;
	display: none; /* 평소엔 숨김 */

	/* 내용물 배치 */
	align-items: flex-start; /* 상단 여백(18rem)을 주기 위해 start 정렬 */
	justify-content: center;
	overflow-y: auto; /* 화면 작을 때 스크롤 */
}

.modal-overlay.active {
	display: flex; /* 활성화 시 보임 */
}

.modal-content-wrap {
	width: 100%;
	max-width: 1170px; /* PC 대응 */
	padding-top: 18rem; /* 상단 18rem */
	padding-left: 3.2rem; /* 좌우 Margin 3.2rem (wrap에 패딩으로 처리) */
	padding-right: 3.2rem;
	display: flex;
	flex-direction: column;
}

/* 1. 흰색 카드 */
.modal-card {
	background-color: #ffffff;
	border-radius: 3rem;
	/* 내부 여백: 상단 10.7 / 좌우 6.3 / 하단 7.5 */
	padding: 10.7rem 6.3rem 7.5rem 6.3rem;
	text-align: center;
	margin-bottom: 7.5rem; /* 취소 버튼과의 간격 */
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-title {
	font-size: 6rem; /* 적절한 크기 설정 (이미지 비율 고려) */
	font-weight: 700;
	color: #000;
	margin-bottom: 6rem;
	line-height: 1.2;
}

.modal-img-box img {
	max-width: 100%;
	width: 55.3rem;
	height: auto;
	margin: 0 auto;
	margin-bottom: 13rem; /* 이미지와 버튼 사이 간격 */
}

/* 2. 모달 내부 노란색 버튼 */
.modal-confirm-btn {
	width: 100%;
	height: 15.3rem; /* 높이는 하단바 버튼과 비슷하게 설정 */
	background-color: #ffcb00; /* 요청하신 ffcb00 */
	border-radius: 3rem;
	border: none;
	cursor: pointer;

	display: flex;
	align-items: center;
	justify-content: center;
	/* box-shadow 제거 (이미지상 플랫함) */
}

.modal-price {
	color: #333333;
	font-size: 6rem;
	font-weight: 900;
}

.modal-badge {
	background-color: #ff598d;
	color: #ffffff;
	width: 7.8rem;
	height: 7.8rem;
	border-radius: 50%;

	font-size: 5rem;
	font-weight: 700;

	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;

	/* 좌로 2.5rem, 우로 2rem */
	margin-left: 2.5rem;
	margin-right: 2rem;
}

.modal-text {
	color: #333333;
	font-size: 6rem;
	font-weight: 350; /* 얇은 폰트 */
}

/* 3. 하단 취소 버튼 (검은색 알약) */
.modal-cancel-btn {
	background-color: #1a1a1a; /* 진한 검정 */
	color: #fff;
	font-size: 4.8rem;
	font-weight: 700;
	padding: 3rem 0;
	border-radius: 5rem;
	border: none;
	width: 51rem;
	height: 15.3rem;
	cursor: pointer;
	margin: 0 auto;
}
/* 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));
	}
}
