@charset "utf-8";
/* =========================================================================
	promotion.css — PROMOTION 리스트·뷰 (피그마 03 PROMOTION / 03 PROMOTION_뷰)
	/promotion/promotion.php 전용. 제목·탭 = shop_list.css(.shop-list-head/.shop-list-tab),
	보기 화면 제목·첨부·이전다음·목록 버튼 = qna.css(.qa-view-*), 디졸브 = sub.css(subDissolve*)
========================================================================= */
.pm-tab { --dz-y: 20px; animation: subDissolveUp 0.8s 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) backwards; }

/* 목록 — 3열 카드(510 x 510, 간격 50 / 30) */
.pm-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px 30px; }
.pm-item { --dz-y: 40px; animation: subDissolveUp 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) backwards; }
.pm-item:nth-child(3n+1) { animation-delay: 0.5s; }
.pm-item:nth-child(3n+2) { animation-delay: 0.62s; }
.pm-item:nth-child(3n) { animation-delay: 0.74s; }
.pm-item > a { display: flex; flex-direction: column; gap: 20px; }
.pm-thumb { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 20px; background: #f5f5f5; }
.pm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.pm-item > a:hover .pm-thumb img, .pm-item > a:focus .pm-thumb img { transform: scale(1.04); }
.pm-txt { display: flex; flex-direction: column; gap: 5px; }
.pm-subj { overflow: hidden; font-size: 1.25rem; line-height: 34px; letter-spacing: -0.6px; color: var(--black); white-space: nowrap; text-overflow: ellipsis; transition: color 0.3s; }
.pm-item > a:hover .pm-subj, .pm-item > a:focus .pm-subj { color: var(--main); }
.pm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pm-badge { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 15px; border-radius: 15px; background: var(--main); font-size: 0.875rem; font-weight: 600; line-height: 24px; letter-spacing: -0.7px; color: #fff; white-space: nowrap; }
.pm-badge.is-soon { background: var(--black); }
.pm-badge.is-end { background: #bbb; }
.pm-date { font-size: 1rem; line-height: 28px; color: #222; opacity: 0.5; white-space: nowrap; }
.pm-empty { padding: 100px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pm-page .qa-pager { margin-top: 50px; }

/* 보기 — 대표 이미지(780) + 본문(가운데 회색 18px) */
.pm-view-cont { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 50px 0; }
.pm-view-img { width: 100%; max-width: 780px; }
.pm-view-img img { display: block; width: 100%; height: auto; border-radius: 20px; }
.pm-view-txt { width: 100%; font-size: 1.125rem; line-height: 32px; letter-spacing: -0.72px; color: var(--gray); text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.pm-view-txt img { max-width: 100%; height: auto !important; border-radius: 10px; }
.pm-view-txt p { margin: 0; }
.pm-page .qa-view-btns { margin-top: 50px; }
.pm-page.qa-view .qa-body { margin-top: 50px; }

@media (prefers-reduced-motion: reduce) {
	.pm-tab, .pm-item { animation: none; }
}
@media all and (max-width:1280px) {
	.pm-list { gap: 40px 20px; }
	.pm-subj { font-size: 1.125rem; line-height: 30px; }
}
@media all and (max-width:980px) {
	.pm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
	.pm-item:nth-child(n) { animation-delay: 0.5s; }
	.pm-item:nth-child(2n) { animation-delay: 0.62s; }
	.pm-page .qa-pager { margin-top: 40px; }
	.pm-page.qa-view .qa-body { margin-top: 40px; }
	.pm-view-cont { gap: 24px; padding: 40px 0; }
	.pm-view-txt { font-size: 1rem; line-height: 28px; }
}
@media all and (max-width:680px) {
	.pm-list { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.pm-item:nth-child(n) { animation-delay: 0.5s; }
	.pm-item > a { gap: 14px; }
	.pm-thumb, .pm-view-img img { border-radius: 14px; }
	.pm-subj { font-size: 1rem; line-height: 26px; letter-spacing: -0.48px; }
	.pm-badge { height: 26px; padding: 0 12px; font-size: 0.8125rem; letter-spacing: -0.4px; }
	.pm-date { font-size: 0.875rem; line-height: 24px; }
	.pm-empty { padding: 70px 0; }
	.pm-page .qa-pager { margin-top: 30px; }
	.pm-page.qa-view .qa-body { margin-top: 30px; }
	.pm-view-cont { gap: 20px; padding: 30px 0; }
	.pm-view-txt { font-size: 0.9375rem; line-height: 26px; letter-spacing: -0.45px; }
}

/* PROMOTION 제목 자간 0 (2026-12-02 박순영 주임) */
.pm-head .shop-list-title { letter-spacing: 0; }
