@charset "utf-8";

/* 이달의 이벤트(프로모션) 목록 / 상세 — 퍼블리싱 */

/* ===== 공통 ===== */
.promotion-wrap .inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.promotion-wrap { padding: 80px 0 140px; }

.promotion-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 20px;
	border-bottom: 1px solid #222;
}
.promotion-head .count { font-size: 1.6rem; font-weight: 700; color: #222; letter-spacing: -0.02em; }
.promotion-head .count em { font-style: normal; }
.promotion-head .desc { font-size: 1.4rem; color: #999; }

/* ===== 목록 ===== */
.promotion-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 30px;
	margin-top: 40px;
}
.promotion-item { position: relative; }

.promotion-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #e8e8e4;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.promotion-card:hover,
.promotion-card:focus-visible {
	border-color: #d8cfbb;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
	transform: translateY(-4px);
}
.promotion-card:focus-visible { outline: 2px solid #94733a; outline-offset: 2px; }

.promotion-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #f2f1ee;
	overflow: hidden;
}
.promotion-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.promotion-card:hover .promotion-thumb img { transform: scale(1.04); }

.promotion-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px 28px;
}
.promotion-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.promotion-period { font-size: 1.3rem; color: #8a7a5c; letter-spacing: -0.01em; }
.promotion-period.is-always { color: #94733a; font-weight: 500; }
.promotion-num { font-size: 1.3rem; color: #c3c3bd; font-variant-numeric: tabular-nums; }

.promotion-title {
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.45;
	color: #222;
	letter-spacing: -0.02em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ===== 상세 ===== */
.promotion-view-head {
	padding-bottom: 28px;
	border-bottom: 1px solid #222;
	text-align: center;
}
.promotion-view-head .tit {
	font-size: 2.6rem;
	font-weight: 700;
	color: #222;
	letter-spacing: -0.03em;
	line-height: 1.4;
}
.promotion-view-head .period {
	margin-top: 12px;
	font-size: 1.4rem;
	color: #8a7a5c;
}
.promotion-view-head .period.is-always { color: #94733a; font-weight: 500; }

.promotion-view-body {
	padding: 50px 0 60px;
	text-align: center;
	border-bottom: 1px solid #e8e8e4;
}
.promotion-view-body img {
	max-width: 100%;
	height: auto;
	vertical-align: top;
}

/* 이전글 / 다음글 */
.promotion-nav { border-bottom: 1px solid #e8e8e4; }
.promotion-nav-item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 10px;
	border-top: 1px solid #f0efec;
	transition: background-color .2s ease;
}
.promotion-nav-item:first-child { border-top: 0; }
.promotion-nav-item:hover { background: #faf9f6; }
.promotion-nav-item .label {
	flex: 0 0 auto;
	width: 70px;
	font-size: 1.3rem;
	color: #999;
	letter-spacing: -0.01em;
}
.promotion-nav-item .subject {
	font-size: 1.5rem;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.promotion-nav-item.is-none .subject { color: #bbb; }

.promotion-btn-area { margin-top: 40px; text-align: center; }
.promotion-btn-area .btn-list {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	height: 54px;
	padding: 0 30px;
	border: 1px solid #222;
	border-radius: 999px;
	font-size: 1.5rem;
	color: #222;
	transition: background-color .2s ease, color .2s ease;
}
.promotion-btn-area .btn-list:hover { background: #222; color: #fff; }

/* ===== 반응형 ===== */
@media (max-width: 1200px) {
	.promotion-list { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 768px) {
	.promotion-wrap { padding: 50px 0 90px; }
	.promotion-wrap .inner { padding: 0 16px; }
	.promotion-list { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
	.promotion-body { padding: 18px 18px 22px; }
	.promotion-title { font-size: 1.6rem; }
	.promotion-head .desc { display: none; }

	.promotion-view-head .tit { font-size: 2rem; }
	.promotion-view-body { padding: 30px 0 36px; }
	.promotion-nav-item { gap: 12px; padding: 16px 4px; }
	.promotion-nav-item .label { width: 54px; font-size: 1.2rem; }
	.promotion-nav-item .subject { font-size: 1.4rem; }
}

/* ===== 종료된 이벤트 ===== */
.promotion-card.is-disabled { cursor: default; }
.promotion-card.is-disabled:hover { border-color: #e8e8e4; box-shadow: none; transform: none; }
.promotion-item.is-end .promotion-thumb img { filter: grayscale(100%); opacity: .55; }
.promotion-item.is-end .promotion-card:hover .promotion-thumb img { transform: none; }
.promotion-item.is-end .promotion-title,
.promotion-item.is-end .promotion-period { color: #999; }

.promotion-state {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 54px;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(34, 34, 34, .78);
	font-size: 1.2rem;
	font-weight: 500;
	color: #fff;
	letter-spacing: -0.01em;
}

.promotion-view-head .period .is-end-text { color: #999; }

/* ===== 목록 없음 ===== */
.promotion-item.is-empty { grid-column: 1 / -1; }
.promotion-empty {
	padding: 80px 0;
	text-align: center;
	font-size: 1.5rem;
	color: #999;
}
