/*
 * 구매 편의 UI (2026-08-17)
 *  · 모바일 하단 고정 구매바
 *  · "같이 담아보세요" 추천 카드
 *  · 담기 알림(toast)
 *
 * 기존 디자인 시스템(주황 #F4791F, 크림 #FFF6EE, 먹색 #15100E)을 그대로 쓴다.
 * 흔들리거나 번쩍이는 효과, 강제 urgency 는 넣지 않는다.
 */

/* ── 모바일 하단 고정 구매바 ───────────────────────────────────────── */
.im-buybar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9000; /* 모바일 sticky 헤더(9999)보다 아래, 퀵버튼(999)보다 위 */
	box-sizing: border-box;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-top: 1px solid #e7e0d9;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.im-buybar-inner {
	display: flex;
	align-items: center;
	gap: 8px;
}

.im-buybar-sum {
	flex: 0 0 auto;
	min-width: 96px;
	line-height: 1.25;
}

.im-buybar-qty {
	display: block;
	font-size: 12px;
	color: #8d8579;
	letter-spacing: -0.2px;
}

.im-buybar-price {
	display: block;
	font-size: 17px;
	font-weight: 800;
	color: #15100e;
	letter-spacing: -0.3px;
}

.im-buybar-price em {
	font-style: normal;
	font-size: 13px;
	font-weight: 700;
	margin-left: 1px;
}

.im-buybar-btn {
	flex: 1 1 0;
	min-width: 0;
	height: 48px;
	border: 0;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.3px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-sizing: border-box;
}

.im-buybar-cart {
	background: #fff;
	border: 1px solid #F4791F;
	color: #F4791F;
}

.im-buybar-buy {
	background: #F4791F;
	color: #fff;
}

/* 화면이 좁을 때만 띄운다. PC 화면은 지금과 완전히 같다. */
@media all and (max-width: 900px) {
	.im-buybar.is-on {
		display: block;
	}
	/* 구매바가 마지막 내용을 가리지 않게 아래 여백을 준다.
	   높이는 JS 가 실제로 재서 넣는다(값을 미리 박아 두면 CLS 가 생긴다). */
	body.im-buybar-on .quick_top_btn {
		bottom: 84px !important;
	}
	body.im-buybar-on #sideQuick {
		bottom: 92px;
	}
}

/* ── 같이 담아보세요 ───────────────────────────────────────────────── */
.im-reco {
	margin: 40px 0 10px;
}

.im-reco-tit {
	font-size: 18px;
	font-weight: 800;
	color: #15100e;
	letter-spacing: -0.4px;
	margin-bottom: 14px;
}

.im-reco-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.im-reco-card {
	border: 1px solid #ece5de;
	border-radius: 8px;
	padding: 12px;
	background: #fff;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.im-reco-link {
	text-decoration: none;
	color: inherit;
	display: block;
	min-width: 0;
}

.im-reco-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f7f4f1;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 10px;
}

.im-reco-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.im-reco-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.4;
	color: #2f2824;
	min-height: 2.8em;
}

.im-reco-price {
	display: block;
	margin-top: 6px;
	font-size: 16px;
	font-weight: 800;
	color: #15100e;
}

.im-reco-price em {
	font-style: normal;
	font-size: 13px;
	font-weight: 700;
	margin-left: 1px;
}

.im-reco-add {
	margin-top: 10px;
	height: 40px;
	border: 1px solid #F4791F;
	border-radius: 6px;
	background: #FFF6EE;
	color: #F4791F;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-sizing: border-box;
}

.im-reco-add[disabled] {
	opacity: 0.55;
	cursor: default;
}

.im-reco-add.is-done {
	background: #F4791F;
	color: #fff;
}

@media all and (max-width: 900px) {
	.im-reco-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.im-reco-tit {
		font-size: 16px;
	}
}

/* ── 담기 알림 ─────────────────────────────────────────────────────── */
.im-toast {
	position: fixed;
	left: 50%;
	bottom: 96px;
	transform: translateX(-50%);
	z-index: 10050; /* 모바일 sticky 헤더(9999)보다 위 */
	max-width: 90vw;
	padding: 12px 18px;
	border-radius: 8px;
	background: rgba(21, 16, 14, 0.92);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.2px;
	opacity: 0;
	transition: opacity 0.18s ease;
	pointer-events: none;
}

.im-toast.is-on {
	opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   2026-08-19 : 구매바·추천상품 글자 확대(최대치). 파일 맨 끝이라 위 규칙을 덮는다.
   ══════════════════════════════════════════════════════════════════════════ */
.im-buybar-qty     { font-size: 15px; }
.im-buybar-price   { font-size: 21px; }
.im-buybar-price em { font-size: 16px; }
.im-buybar-btn     { font-size: 19px; }

.im-reco-tit       { font-size: 23px; }
.im-reco-name      { font-size: 17px; }
.im-reco-price     { font-size: 20px; }
.im-reco-price em  { font-size: 15px; }
.im-reco-add       { font-size: 16px; }
.im-toast          { font-size: 17px; }

@media all and (max-width: 900px) {
  .im-reco-tit  { font-size: 20px; }
  .im-reco-name { font-size: 16px; }
}
