.header {
	background-color: #333;
	color: #fff;
	font-size: 3rem;
	padding: 6.7rem 6.1rem 2.4rem 6.1rem;
	min-height: 30rem;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.header .header-top {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
.header .header-top .left-arrow-img {
	width: 5.8rem;
}
.header-top-right {
	display: flex;
	gap: 6.4rem;
}
.header .header-top .header-top-right button {
	height: 4.6rem;
}
.doc-img {
	width: 3.6rem;
}
.pan-img {
	width: 7.1rem;
	margin-top: 2.7rem;
}
.header .header-top .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;
}
.header-bottom {
	display: flex;
	justify-content: right;
	position: relative;
	gap: 4.7rem;
}

.header-bottom button {
	background-color: hsla(0, 0%, 100%, 0.8);
	width: 8.5rem;
	height: 8.5rem;
	border-radius: 5rem;
}
.header-bottom button {
	place-items: center;
	padding-top: 1.7rem;
	padding-bottom: 1.6rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.header-bottom button.lang {
	position: absolute;
	top: 0;
	right: 26.4rem;
	transition: 0.3s;
	overflow: hidden;
	gap: 6.3rem;
}
.header-bottom button.lang img {
	width: 5.2rem;
	height: 5.2rem;
}
.header-bottom button img.foodtruck-img {
	width: 5.7rem;
	height: 5.3rem;
}
.header-bottom button img.notice-img {
	width: 4.4rem;
	height: 5rem;
}
.header-bottom button.lang.active {
	height: 43rem;
	background-color: lab(84.2% 3.68 85.22 / 0.8);
}
.header-bottom button.lang a.lang-jp {
	order: 4;
}
.header-bottom button.lang a.lang-kr {
	order: 5;
}
.header-bottom button.lang a.lang-en {
	order: 6;
}
.header-bottom button.lang a.lang-zh {
	order: 7;
}
.header-bottom button.lang a.active {
	order: 1;
}

div.store-name {
	padding: 3.6rem 6.1rem;
	font-size: 5rem;
	font-weight: 700;
}
.category {
	display: flex;
	padding-left: 6.1rem;
	padding-bottom: 2.5rem;
	border-bottom: 0.2rem solid #f0f2f4;
}
.category .search-btn {
	margin-right: 3.6rem;
	width: 10.8rem;
	height: 10.8rem;
	align-self: center;
	justify-items: center;
	background: #f5f7f9;
	border-radius: 50%;
}
img.rg-img {
	width: 4.4rem;
	height: 4.6rem;
}
.category-list {
	overflow-x: auto;
	padding-top: 1.2rem;
	padding-bottom: 1.2rem;
	width: 96.5rem;
}
.category-list ul {
	display: flex;
	gap: 2rem;
}
.category-list ul li {
	padding: 2.2rem 2.7rem;
	font-weight: 400;
	font-size: 4.4rem;
	color: #848484;
	white-space: nowrap;
	cursor: pointer;
	line-height: 1;
}
.category-list ul li.active {
	background-color: #ffcd09;
	border-radius: 4.25rem;
	color: #000000;
	font-weight: 700;
}

.food-wrapper {
	display: flex;
	flex-direction: column;
	gap: 3.2rem;
	background-color: #f0f2f4;
}
.food-list {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	background-color: #e5e9ed;
}
.food-list h1 {
	background-color: #ffffff;
	height: 15.3rem;
	font-size: 5rem;
	font-weight: 700;
	padding: 0rem 6.1rem;
	place-content: center;
}
.food-list .food-item {
	background-color: #ffffff;
	padding: 5.9rem 6.1rem 5.6rem 6.1rem;
	font-size: 4.6rem;
	min-height: 37.5rem;
}
.food-list .food-item .food-item-top {
	justify-content: space-between;
	display: flex;
	/* gap: 7.9rem; */
}
.food-list .food-item h2 {
	letter-spacing: -0.025em;
	font-size: 4.6rem;
	line-height: 1;
	margin-bottom: 4rem;
	max-width: 68.6rem;
	white-space: nowrap; /* 줄바꿈 금지 (무조건 한 줄) */
	overflow: hidden; /* 넘치는 부분 숨김 */
	text-overflow: ellipsis; /* 넘치는 부분을 ... 으로 처리 */
}
.food-list .food-item .price {
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1;
	margin-bottom: 2.9rem;
}
.food-list .food-item .desc {
	width: 61rem;
	font-size: 4.4rem;
	letter-spacing: -0.025em;
	color: #848484;
	margin-bottom: 4.1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2; /* ⭐️ 이 숫자를 바꾸면 원하는 줄 수만큼 보입니다 */
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: 13.2rem;
}

.food-list .food-item button.like-btn {
	display: flex;
	font-size: 4rem;
	color: #848484;
	font-weight: 700;
	letter-spacing: -0.025em;
	background-color: #f6f6f4;
	padding-left: 1.5rem;
	height: 8.1rem;
	border-radius: 4.05rem;
	align-items: center;
	width: 20.5rem;
}
.food-list .food-item button.like-btn img {
	width: 6.6rem;
	height: 6rem;
	margin-right: 1rem;
}
span.like-num {
	line-height: 1;
	margin-top: -0.8rem;
}
.food-list .food-item .img-box img {
	width: 33.3rem;
	height: 33.3rem;
	object-fit: contain;
}

/* 1. 오버레이 전체 컨테이너 */
.search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999; /* 제일 위에 뜨도록 */
	display: none; /* 기본적으로 숨김 */
}

/* 활성화 클래스가 붙으면 보임 */
.search-overlay.active {
	display: block;
}

/* 2. 검은색 반투명 배경 */
.dimmed-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* 검정 50% */
}

/* 3. 상단 흰색 영역 (헤더 + 검색창) */
.search-top-area {
	position: relative; /* 배경보다 위에 있어야 함 */
	background-color: #fff;
	width: 100%;
	padding-bottom: 2rem; /* 검색창 아래 여백 */
	height: 35rem;
	padding: 6.7rem 6.1rem 2.6rem 6.1rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* --- 내부 요소 디테일 --- */

/* 헤더 배치 (Flex) */
.overlay-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 6rem; /* 헤더 높이 */
	padding: 0 2rem;
}

.page-title {
	font-size: 1.8rem;
	font-weight: 700;
}

.header-icons {
	display: flex;
	gap: 6.4rem;
}

/* 장바구니 뱃지 (빨간 동그라미) */
.btn-icon.cart {
	position: relative;
}
button.btn-icon .btn-icon.cart img {
	width: 7.1rem;
	margin-top: 2.7rem;
}
.overlay-header button.btn-back {
	display: flex;
	gap: 3.4rem;
}
.overlay-header button.btn-back img {
	width: 5.8rem;
	height: 4.6rem;
}
.overlay-header button.btn-back .page-title {
	font-size: 5rem;
	line-height: 1;
	margin-top: -0.4rem;
}
.overlay-header .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;
	left: 0;
	top: 0;
}
/* 검색창 영역 */
.search-input-wrap {
	display: flex;
	align-items: center;
	gap: 2.6rem;
}

/* 회색 입력 박스 */
.input-box {
	flex: 1;
	background-color: #f2f4f6;
	border-radius: 5.4rem;
	display: flex;
	align-items: center;
	padding: 0rem 3.2rem;
	height: 10.8rem;
	gap: 2.8rem;
}
span.search-icon {
	height: 100%;
	align-content: center;
	/* cursor: pointer; */
}
.input-box input {
	width: 100%;

	font-size: 4.4rem;
	background: transparent; /* 배경 투명하게 */
}

.btn-cancel {
	font-size: 4.4rem;
	color: #848484;
	white-space: nowrap; /* 줄바꿈 방지 */
}
/*  */
/*  */
/*  */
/*  */
/* 1. 오버레이 컨테이너 (위치 및 애니메이션 담당) */
.cart-overlay {
	/* position: fixed; */
	position: sticky;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 8000; /* 적절히 높은 순서 */

	/* [핵심 애니메이션] */
	transform: translateY(100%); /* 기본 상태: 화면 높이만큼 아래로 숨김 */
	transition: transform 0.3s ease-in-out; /* 0.3초 동안 부드럽게 움직임 */

	/* 상단 그림자 (이미지처럼 부드럽게) */
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);

	/* 상단 둥근 모서리 */
	border-radius: 6rem 6rem 0 0;
	overflow: hidden; /* 자식이 둥근 모서리 삐져나가지 않게 */
	max-height: 220px;
}

/* active 클래스가 붙으면 제자리로 올라옴 */
.cart-overlay.active {
	transform: translateY(0);
}

/* 2. 노란색 버튼 바 디자인 */
.cart-bar-btn {
	width: 100%;
	display: flex;
	/* align-items: center; */
	justify-content: center;
	background-color: #ffd233; /* 디자인 시안 노란색 */
	padding: 1.5rem 2rem; /* 높이감 설정 */
	gap: 0.8rem; /* 아이템 간격 */
	border: none;
	cursor: pointer;

	/* 텍스트 기본 스타일 */
	font-size: 5rem;
	color: #333;
	font-weight: 700;
	height: 29.7rem;
}
.cart-bar-btn .cart-bar-btn-box {
	display: flex;
	margin-top: 6.1rem;
	height: 7.8rem;
	align-items: center;
}
/* --- 내부 요소 디테일 --- */

.cart-icon {
	width: 7.4rem; /* 아이콘 크기 조절 */
	height: 6.2rem;
}

.cart-price {
	font-size: 6rem; /* 가격은 조금 더 크게 */
	margin-left: 3rem;
	font-weight: 900;
	margin-right: 2.5rem;
}

.cart-badge {
	background-color: #ff598d; /* 핑크색 */
	color: #fff;
	font-size: 5rem;
	font-weight: 700;
	min-width: 7.8rem; /* 동그라미 크기 */
	height: 7.8rem;
	display: flex;
	/* align-items: center; */
	line-height: 1;
	justify-content: center;
	border-radius: 50%; /* 완전한 원 */
	padding: 0 0.5rem; /* 숫자가 세 자리 될 경우 대비 */
	padding-top: 0.9rem;
}
span.cart-text {
	font-weight: 350;
}
/*  */
/*  */
/*  */
/*  */
/*  */
/*  */

/* 검색 결과 영역 스타일 */
.search-result-area {
	position: relative;

	width: 100%;
	height: calc(
		100% - 13rem
	); /* 전체 높이에서 상단 헤더 높이(약 13rem)만큼 뺌 */
	overflow-y: auto; /* 내용이 넘치면 스크롤 생김 */
	padding: 0;
	display: none; /* 검색어가 없을 땐 숨김 */
}

/* 검색바에 글자가 있어서 결과창이 보일 때 */
.search-result-area.show {
	display: block;
}

/* 검색 결과가 없을 때 안내 문구 */
.no-result-msg {
	text-align: center;
	color: #999;
	font-size: 5.6rem;
	margin-top: 5rem;
}
/* 1. 음식 아이템 박스 전체 */
.food-list .food-item,
.search-result-area .food-item {
	background-color: #ffffff;
	padding: 5.9rem 6.1rem 5.6rem 6.1rem;
	font-size: 4.6rem;
	min-height: 37.5rem;
	border-bottom: 0.2rem solid #f0f2f4; /* 검색결과 구분선 추가 */
}

/* 2. 상단 영역 (텍스트 + 이미지) */
.food-list .food-item .food-item-top,
.search-result-area .food-item .food-item-top {
	justify-content: space-between;
	display: flex;
}

/* 3. 음식 제목 (h2) */
.food-list .food-item h2,
.search-result-area .food-item h2 {
	letter-spacing: -0.025em;
	font-size: 4.6rem;
	line-height: 1;
	margin-bottom: 4rem;
	max-width: 68.6rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #000; /* 텍스트 색상 명시 (a태그일 경우 대비) */
}

/* 4. 가격 */
.food-list .food-item .price,
.search-result-area .food-item .price {
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1;
	margin-bottom: 2.9rem;
	color: #000;
}

/* 5. 설명글 (Desc) */
.food-list .food-item .desc,
.search-result-area .food-item .desc {
	width: 61rem;
	font-size: 4.4rem;
	letter-spacing: -0.025em;
	color: #848484;
	margin-bottom: 4.1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: 13.2rem;
}

/* 6. 좋아요 버튼 */
.food-list .food-item button.like-btn,
.search-result-area .food-item button.like-btn {
	display: flex;
	font-size: 4rem;
	color: #848484;
	font-weight: 700;
	letter-spacing: -0.025em;
	background-color: #f6f6f4;
	padding-left: 1.5rem;
	height: 8.1rem;
	border-radius: 4.05rem;
	align-items: center;
	width: 20.5rem;
}

/* 7. 좋아요 버튼 아이콘 */
.food-list .food-item button.like-btn img,
.search-result-area .food-item button.like-btn img {
	width: 6.6rem;
	height: 6rem;
	margin-right: 1rem;
}

/* 8. 좋아요 숫자 보정 */
.food-list .food-item .like-num,
.search-result-area .food-item .like-num {
	line-height: 1;
	margin-top: -0.8rem;
}

/* 9. 음식 이미지 */
.food-list .food-item .img-box img,
.search-result-area .food-item .img-box img {
	width: 33.3rem;
	height: 33.3rem;
	object-fit: contain;
}
