@charset "utf-8";
/* ==========================================================================
   [2단계] getha-promo.css — 슬립퍼식 프로모션 게시글 공통 스타일
   --------------------------------------------------------------------------
   파일 위치 : mplshop_GNB_back/css/getha-promo.css  (신규 파일)
   로드 위치 : mplshop_GNB_back/board/skin/event/view.html
              97행 promotion.css <link> 바로 아래 (4단계에서 안내)
   적용 범위 : .getha-promo 안쪽만. 기존 이벤트 글(.promotion)에는 영향 없음
   --------------------------------------------------------------------------
   기존 스킨 충돌 대응 (9/30 전수 확인)
   · board.css        .board_view_content .seem_cont { text-align:center; margin-top:50px; margin-bottom:10% }
   · mplshop_board.css .board_view_content img { width:max-content; max-width:100% !important }
   · promotion.css    div a { display:block }   ← 이벤트 게시판 전체에 로드됨
   · reset.css        p, h2, td … { margin:0; padding:0 } / a { color:#032d23 }
   ========================================================================== */

/* ---------- 0. 토큰 (전역 :root 오염 방지 → .getha-promo 범위) ---------- */
.getha-promo {
    /* 서체 : Pretendard (프로모션 글 전용, JS가 CDN v1.3.9 로드) */
    --gp-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

    --gp-green: #0d4633;
    --gp-green-deep: #0a3526;
    --gp-green-soft: #e7eeea;
    --gp-cream: #f5f2eb;
    --gp-beige: #efe9dd;
    --gp-white: #ffffff;
    --gp-gold: #eddaa5;
    --gp-sale: #d2462b;
    --gp-ink: #1a1a1a;
    --gp-ink-2: #555555;
    --gp-ink-3: #8a8a8a;
    --gp-line: #e4e1da;

    --gp-col: 640px;              /* 가운데 컬럼 폭 (슬립퍼 동일) */
    --gp-pad: 20px;               /* 섹션 좌우 여백 (모바일) */
    --gp-sec-y: 56px;             /* 섹션 상하 여백 (모바일) */
    --gp-radius: 12px;
    --gp-ease: cubic-bezier(.22, .61, .36, 1);
    --gp-nav-top: 0px;            /* JS가 고정 헤더 높이만큼 덮어씀 */
    --gp-vw: 100vw;               /* JS가 스크롤바 제외 폭으로 덮어씀 */

    position: relative;
    text-align: left;
    line-height: 1.5;
    color: var(--gp-ink);
    font-family: var(--gp-font);
    letter-spacing: -.02em;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}
.getha-promo *,
.getha-promo *::before,
.getha-promo *::after { box-sizing: border-box; }

/* ---------- 1. 게시판 기본 여백 초기화 ---------- */
/* :has 지원 브라우저 */
.board_view_content .seem_cont:has(.getha-promo) { margin: 0; text-align: left; }
/* 미지원 브라우저 폴백 — JS가 seem_cont에 .is-getha-promo 부여 */
.board_view_content .seem_cont.is-getha-promo { margin: 0; text-align: left; }

/* ---------- 2. 데이터 표 숨김 (설정표·상품표) ---------- */
.getha-promo .getha-promo__config,
.getha-promo .getha-promo__goods { display: none !important; }

/* ---------- 3. 공통 요소 리셋 ---------- */
.board_view_content .getha-promo img {
    display: block;
    width: 100%;
    max-width: 100% !important;
    height: auto;
}
.getha-promo a { color: inherit; text-decoration: none; }
.getha-promo p,
.getha-promo h2 { margin: 0; padding: 0; }
.getha-promo small { font-size: .5em; }

/* ---------- 4. 레이아웃 : 풀블리드 바깥 + 640px 컬럼 ---------- */
.getha-promo__outer {
    position: relative;
    width: var(--gp-vw);
    margin-left: calc(50% - var(--gp-vw) / 2);
    background-color: var(--gp-cream);           /* JS가 현재 섹션 색으로 교체 */
    transition: background-color .6s var(--gp-ease);
}
.getha-promo__wrap {
    position: relative;
    width: 100%;
    max-width: var(--gp-col);
    margin: 0 auto;
    background: var(--gp-white);
}

/* ---------- 5. 섹션 탭 (스티키) ---------- */
.getha-promo__nav {
    position: sticky;
    top: var(--gp-nav-top);
    z-index: 20;
    display: flex;
    overflow-x: auto;
    background: var(--gp-green-deep);
    scrollbar-width: none;
}
.getha-promo__nav::-webkit-scrollbar { display: none; }
.getha-promo__nav .getha-promo__nav-link {
    display: block;                                /* promotion.css div a 대응 명시 */
    flex: 1 0 auto;
    padding: 14px 14px 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .6);
    text-align: center;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .25s, border-color .25s;
}
.getha-promo__nav .getha-promo__nav-link.is-active {
    color: var(--gp-white);
    border-bottom-color: var(--gp-gold);
}

/* ---------- 6. 섹션 공통 ---------- */
.getha-promo__sec {
    position: relative;
    padding: var(--gp-sec-y) var(--gp-pad);
    text-align: center;
    scroll-margin-top: calc(var(--gp-nav-top) + 48px);
}
.getha-promo__sec--hero        { padding: 0; background: var(--gp-green-deep); }
/* 히어로(이미지+카운트다운)만 640px 컬럼 밖으로 → 화면 전체 폭 (2026-09-30) */
.getha-promo .getha-promo__sec--hero {
    width: var(--gp-vw);
    margin-left: calc(50% - var(--gp-vw) / 2);
}
.getha-promo__sec--benefit     { background: var(--gp-cream); }
/* 이미지 섹션 (i am natural / 스페셜 기프트) : 여백 없이 이미지만 */
.getha-promo__sec--img         { padding: 0; font-size: 0; line-height: 0; }
.getha-promo__sec--natural     { background: var(--gp-white); }
.getha-promo__sec--stats       { background: var(--gp-green-deep); }
.getha-promo__sec--gift        { background: var(--gp-green); }
.getha-promo__sec--mattress    { background: var(--gp-white); }
.getha-promo__sec--set         { background: var(--gp-beige); }
.getha-promo__sec--pillow      { background: var(--gp-white); }
.getha-promo__sec--installment { background: var(--gp-green-deep); color: var(--gp-white); }
.getha-promo__sec--showroom    { background: var(--gp-cream); }

.getha-promo__eyebrow {
    margin-bottom: 12px;
    font-family: var(--gp-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .24em;
    color: var(--gp-green);
}
.getha-promo__sec--installment .getha-promo__eyebrow { color: var(--gp-gold); }

.getha-promo .getha-promo__title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -.03em;
    color: inherit;
}
.getha-promo__title strong { font-weight: 700; }

/* ---------- 7. 히어로 ---------- */
.getha-promo__hero { position: relative; background: var(--gp-green-deep); }
.getha-promo__hero picture { display: block; }
/* 원본 비율 그대로 (PC 1903×661 / 모바일 560×710) — 잘림 없음 */
.board_view_content .getha-promo .getha-promo__hero-img { width: 100%; height: auto; }

.getha-promo__timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px var(--gp-pad);
    background: var(--gp-green-deep);
    color: var(--gp-white);
}
.getha-promo__timer-label { font-size: 13px; color: rgba(255, 255, 255, .72); }
.getha-promo__timer-num {
    font-family: var(--gp-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--gp-gold);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}
.getha-promo__timer.is-ended .getha-promo__timer-num { color: rgba(255, 255, 255, .6); }

/* ---------- 8. 혜택 (환승 혜택 01~04) ---------- */
.getha-promo .getha-promo__lead {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gp-ink-2);
}
.getha-promo__perks {
    display: grid;
    gap: 10px;
    margin-top: 32px;
    text-align: left;
}
.getha-promo__perk {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    background: var(--gp-white);
    border-radius: var(--gp-radius);
}
.getha-promo .getha-promo__perk-no {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 14px;
    font-size: 11px;
    line-height: 1.2;
    color: var(--gp-ink-3);
    border-right: 1px solid var(--gp-line);
}
.getha-promo__perk-no span {
    margin-top: 2px;
    font-family: var(--gp-font);
    font-size: 20px;
    font-weight: 800;
    color: var(--gp-green);
}
.getha-promo .getha-promo__perk-pre { margin-bottom: 2px; font-size: 12px; color: var(--gp-ink-3); }
.getha-promo .getha-promo__perk-main {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--gp-ink);
}
.getha-promo__perk-main strong {
    font-family: var(--gp-font);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--gp-green);
    vertical-align: -2px;
}
.getha-promo .getha-promo__perk-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gp-white);
    background: var(--gp-green);
    border-radius: 999px;
    transition: background .25s;
}

/* ---------- 10. 상품 섹션 헤더 ---------- */
.getha-promo__head { margin-bottom: 28px; }
.getha-promo__off {
    margin-top: 14px;
    font-family: var(--gp-font);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: var(--gp-sale);
}
.getha-promo__off small { margin-left: 4px; font-size: 18px; font-weight: 700; }

/* ---------- 11. 상품 카드 (JS 생성) ---------- */
.getha-promo__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
    text-align: left;
}
.getha-promo__grid .getha-promo__card { display: block; color: var(--gp-ink); }

.getha-promo__card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f3f2ef;
    border-radius: 4px;                            /* 12px → 4px : 이미지 모서리 문구 잘림 방지 */
}
.board_view_content .getha-promo .getha-promo__card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--gp-ease), opacity .4s;
}
.getha-promo__card-thumb img[data-src] { opacity: 0; }  /* 지연 로딩 전 */

.getha-promo__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 3px 8px;
    font-family: var(--gp-font);
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: .06em;
    color: var(--gp-white);
    background: var(--gp-ink);
    border-radius: 4px;
}
.getha-promo__badge--new  { background: var(--gp-green); }
.getha-promo__badge--best { background: var(--gp-sale); }

.getha-promo__card-body { display: block; padding: 12px 2px 0; }
.getha-promo__card-name { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
.getha-promo__card-sub  { display: block; margin-top: 2px; font-size: 12px; color: var(--gp-ink-3); }
.getha-promo__card-origin {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gp-ink-3);
    text-decoration: line-through;
}
.getha-promo__card-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.getha-promo__card-rate  {
    font-family: var(--gp-font);
    font-size: 17px;
    font-weight: 800;
    color: var(--gp-sale);
}
.getha-promo__card-won {
    font-family: var(--gp-font);
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.getha-promo__card-won small { margin-left: 1px; font-size: 12px; font-weight: 500; }

/* 가격 검증 모드 (?check=1) — 실제 판매가와 다른 카드 */
.getha-promo__card.is-mismatch .getha-promo__card-thumb { outline: 3px solid var(--gp-sale); outline-offset: -3px; }
.getha-promo__card-alert {
    display: block;
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--gp-white);
    background: var(--gp-sale);
    border-radius: 4px;
}
.getha-promo__check-bar {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--gp-white);
    background: var(--gp-ink);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

/* 베개 접기 (8개 초과) */
.getha-promo__grid.is-folded .getha-promo__card:nth-child(n + 9) { display: none; }
.getha-promo .getha-promo__more {
    display: none;
    width: 100%;
    margin-top: 28px;
    padding: 15px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--gp-ink);
    border: 1px solid var(--gp-ink);
    border-radius: 999px;
    transition: background .25s, color .25s;
}
.getha-promo .getha-promo__more.is-visible { display: block; }

/* ---------- 12. 오가닉 커버 배너 ---------- */
.getha-promo .getha-promo__banner {
    display: block;
    margin-top: 36px;
    padding: 22px 20px;
    color: var(--gp-white);
    text-align: left;
    background: var(--gp-green);
    border-radius: var(--gp-radius);
}
.getha-promo__banner-tag { display: block; font-size: 12px; color: var(--gp-gold); }
.getha-promo__banner-tit { display: block; margin-top: 4px; font-size: 18px; font-weight: 700; }
.getha-promo__banner-sub { display: block; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .72); }

/* ---------- 13. 무이자 ---------- */
.getha-promo__card-list {
    margin-top: 28px;
    padding: 4px 20px;
    text-align: left;
    background: rgba(255, 255, 255, .06);
    border-radius: var(--gp-radius);
}
.getha-promo__card-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.getha-promo__card-row:first-child { border-top: 0; }
.getha-promo__card-row strong { color: var(--gp-gold); }
.getha-promo__note { margin-top: 14px; font-size: 11px; color: rgba(255, 255, 255, .55); }

/* ---------- 14. 쇼룸 ---------- */
.getha-promo__links { display: grid; gap: 10px; margin-top: 28px; }
.getha-promo .getha-promo__link {
    display: block;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--gp-ink);
    background: var(--gp-white);
    border: 1px solid var(--gp-line);
    border-radius: 999px;
    transition: background .25s, color .25s, border-color .25s;
}
.getha-promo .getha-promo__link--primary {
    color: var(--gp-white);
    background: var(--gp-green);
    border-color: var(--gp-green);
}

/* ---------- 15. 등장 애니메이션 (JS가 .is-anim 부여 시에만 동작) ---------- */
.getha-promo.is-anim .getha-promo__reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--gp-ease), transform .8s var(--gp-ease);
}
.getha-promo.is-anim .getha-promo__reveal.is-in { opacity: 1; transform: none; }

/* ---------- 16. 호버 (마우스 기기만) ---------- */
@media (hover: hover) and (pointer: fine) {
    .getha-promo__card:hover .getha-promo__card-thumb img { transform: scale(1.04); }
    .getha-promo .getha-promo__more:hover { color: var(--gp-white); background: var(--gp-ink); }
    .getha-promo .getha-promo__perk-btn:hover { background: var(--gp-green-deep); }
    .getha-promo .getha-promo__link:hover { border-color: var(--gp-green); }
    .getha-promo .getha-promo__link--primary:hover { background: var(--gp-green-deep); }
    .getha-promo__nav .getha-promo__nav-link:hover { color: var(--gp-white); }
}

/* ---------- 17. 반응형 ---------- */
/* Tablet 768 ~ : 컬럼 고정, 좌우 여백 배경색 노출 */
@media (min-width: 768px) {
    .getha-promo {
        --gp-pad: 32px;
        --gp-sec-y: 72px;
    }
    .getha-promo__wrap { box-shadow: 0 0 40px rgba(0, 0, 0, .06); }
    .getha-promo .getha-promo__title { font-size: 28px; }
    .getha-promo__perk { padding: 26px 28px; }
    .getha-promo__perk-main strong { font-size: 34px; }
    .getha-promo__off { font-size: 56px; }
    .getha-promo__grid { gap: 36px 16px; }
    .getha-promo__timer-num { font-size: 20px; }
}
/* PC 1200 ~ : 컬럼 폭 유지 (슬립퍼 방식), 여백만 확대 */
@media (min-width: 1200px) {
    .getha-promo__outer { padding: 0; }
}
/* 소형 모바일 ~ 360 */
@media (max-width: 360px) {
    .getha-promo { --gp-pad: 16px; }
    .getha-promo .getha-promo__title { font-size: 21px; }
    .getha-promo__perk { grid-template-columns: 48px 1fr; padding: 18px 16px; }
    .getha-promo .getha-promo__perk-main { font-size: 15px; }
    .getha-promo__perk-main strong { font-size: 26px; }
    .getha-promo__card-won,
    .getha-promo__card-rate { font-size: 15px; }
}

/* ---------- 18. 모션 최소화 설정 존중 ---------- */
@media (prefers-reduced-motion: reduce) {
    .getha-promo *,
    .getha-promo *::before,
    .getha-promo *::after { transition: none !important; animation: none !important; }
    .getha-promo.is-anim .getha-promo__reveal { opacity: 1; transform: none; }
}
