@charset "UTF-8";

/* =========================================================
   Sub Contents - ARCHDERMA
   서브 컨텐츠 페이지 전용 CSS (pages/contents/** 하위 페이지)
   - header_sub.php 에서 로드되므로 모든 서브 페이지에 적용된다.
   - 공통 변수(--primary, --radius 등)는 common_layout.css 의 :root 사용
   - 스크롤 리빌([data-reveal])도 common_layout.css 에 정의되어 있음
   - 메인 페이지 전용 스타일은 main.css 에 작성한다.
   ========================================================= */

/* ===== 공통 서브 페이지 레이아웃 ===== */
.sub-section { 
    padding-top: clamp(3rem, 7vw, 7rem); 
    padding-bottom: clamp(3rem, 7vw, 7rem); 
}


/* =========================================================
   BRAND 섹션 전용 3뎁스 메뉴 (depth_nav.php) — contents/brand 에서만 사용
   ========================================================= */
.brand-depth { background: #fff; border-bottom: 1px solid var(--line); }
.brand-depth__list { display: flex; }
.brand-depth__item { flex: 1 1 0; }
.brand-depth__item + .brand-depth__item { border-left: 1px solid var(--line); }
.brand-depth__item a {
    display: block; text-align: center;
    padding: clamp(1rem, 2.2vw, 1.7rem) 0.5rem;
    font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 800;
    letter-spacing: -0.01em; color: #b8bcc2;
    transition: color .2s;
}
.brand-depth__item.is-active a { color: var(--ink); }
.brand-depth__item a:hover { color: var(--ink); }
/* 캡쳐처럼 양 끝 항목은 컨테이너 바깥쪽으로 정렬 */
.brand-depth__item a { text-align: center; }

@media (max-width: 575.98px) {
    .brand-depth__item a { font-size: 1rem; padding: 0.9rem 0.4rem; }
}


/* =========================================================
   BRAND > ARCH STORY (story.php)
   ========================================================= */

/* ── 가로 스크롤 (세로 스크롤 → 옆으로 전개) ──
   .is-hscroll 은 JS(데스크톱)에서만 부여 → 모바일/모션최소화/JS미작동 시 세로로 쌓임 */
.hscroll { position: relative; }
.hscroll__viewport { position: relative; overflow: hidden; }
.hscroll.is-hscroll .hscroll__viewport {
    position: sticky; top: 0; height: 100vh;
}
.hscroll__track { display: flex; flex-direction: column; }
.hscroll.is-hscroll .hscroll__track {
    flex-direction: row; height: 100vh; will-change: transform;
}
.hscroll__panel { position: relative; }
.hscroll.is-hscroll .hscroll__panel {
    flex: 0 0 100vw; width: 100vw; height: 100vh;
    display: flex; align-items: center;
}
.panel__inner {
    width: 100%; max-width: var(--container);
    margin: 0 auto; padding: 3rem 20px;
}

/* 패널 내부 텍스트 등장 (활성 패널만) */
.is-hscroll .panel-anim > * {
    opacity: 0; transform: translateY(34px);
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
}
.is-hscroll .hscroll__panel.is-active .panel-anim > * { opacity: 1; transform: none; }
.is-hscroll .panel-anim > *:nth-child(1) { transition-delay: .10s; }
.is-hscroll .panel-anim > *:nth-child(2) { transition-delay: .22s; }
.is-hscroll .panel-anim > *:nth-child(3) { transition-delay: .34s; }
.is-hscroll .panel-anim > *:nth-child(4) { transition-delay: .46s; }

/* 진행 표시 바 */
.hscroll__progress { display: none; }
.hscroll.is-hscroll .hscroll__progress {
    display: block; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--line); z-index: 5;
}
.hscroll__progress span {
    display: block; height: 100%; background: var(--primary);
    transform: scaleX(0); transform-origin: left center;
}

/* 패널: 좌우 분할 (가로 모드에서만 나란히, 그 외에는 세로로 쌓임) */
.is-hscroll .panel--split .panel__inner {
    display: flex; align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.is-hscroll .panel--split .panel__text { flex: 1 1 40%; }
.is-hscroll .panel--split .panel__figure { flex: 1 1 60%; min-width: 0; }
.is-hscroll .panel--reverse .panel__inner { flex-direction: row-reverse; }

/* 가로 모드: 콘텐츠가 100vh 를 넘지 않도록 제한 */
.is-hscroll .panel__figure img { aspect-ratio: auto; height: 66vh; }
.is-hscroll .story-card__thumb { aspect-ratio: auto; height: 34vh; }

/* ── 분할 패널 비주얼 톤 (밝은 페이퍼 배경 + 좌측 대형 타이포 + 우측 정사각 이미지) ── */
.panel--split {
    background: linear-gradient(160deg, #f8f8f8 0%, #ececec 55%, #f3f3f3 100%);
    color: var(--ink);
}
.panel--split .story-feature__title {
    font-size: clamp(1.9rem, 3.4vw, 3.1rem);
    font-weight: 300;            /* 캡쳐처럼 가는 굵기 */
    line-height: 1.25; letter-spacing: -0.01em;
    color: #1a1a1a; margin-bottom: 1.5rem;
}
.panel--split .story-feature__desc {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 2; color: #555;
}
/* 이미지는 라운드/그림자 없이 납작한 정사각 (배경에 자연스럽게 얹히도록) */
.panel--split .story-figure { border-radius: 0; box-shadow: none; background: transparent; }
.is-hscroll .panel--split .panel__text { flex: 1 1 46%; }
.is-hscroll .panel--split .panel__figure { flex: 0 0 34%; }
.is-hscroll .panel--split .panel__figure img {
    aspect-ratio: 1 / 1;         /* 정사각 */
    height: auto; max-height: 74vh; width: 100%;
}
.panel--split .story-figure:hover img { transform: none; }  /* 정적인 톤 유지 */

/* 배경 이미지형 분할 패널 (--panel-bg 로 이미지 지정, 좌측 텍스트만 노출) */
.panel--bg { position: relative; background: #f3f3f3; overflow: hidden; }
.panel--bg::before {  /* 배경 이미지 레이어 */
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: var(--panel-bg) center center / cover no-repeat;
}
.panel--bg::after {   /* 좌→우 밝은 스크림 (텍스트 가독성) */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg,
        rgba(243, 243, 243, .96) 0%,
        rgba(243, 243, 243, .75) 40%,
        rgba(243, 243, 243, .15) 70%,
        rgba(243, 243, 243, 0) 100%);
}
.panel--bg .panel__inner { position: relative; z-index: 2; }

/* 다크 배경형 (어두운 이미지 위 흰 텍스트) */
.panel--bg-dark { background: #1a1a1a; color: #fff; }
.panel--bg-dark::after {
    background: linear-gradient(90deg,
        rgba(28, 32, 38, .60) 0%,
        rgba(28, 32, 38, .38) 42%,
        rgba(28, 32, 38, .12) 72%,
        rgba(28, 32, 38, 0) 100%);
}
.panel--bg-dark .story-feature__title { color: #fff; font-weight: 300; }
.panel--bg-dark .story-feature__desc { color: rgba(255, 255, 255, .85); }
/* 배경 등장: 패널 활성 시 페이드 + 은은한 줌인 (JS 활성 하에서만 숨김)
   진입은 keyframe(첫 페인트 전에도 항상 재생), 이탈은 기존 transition */
.hscroll--ready .panel--bg::before {
    opacity: 0; transform: scale(1.08);
    transition: opacity 1.4s ease, transform 2.2s ease;
}
.hscroll--ready .panel--bg.is-active::before {
    opacity: 1; transform: scale(1);
    animation: kjPanelBgIn 2.2s ease both;
}
@keyframes kjPanelBgIn {
    0%   { opacity: 0; transform: scale(1.08); }
    64%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hscroll--ready .panel--bg::before { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

/* 패널: 인트로 (다크 히어로 — 중앙 대형 타이포 + 우측 제품 비주얼) */
.panel--intro {
    text-align: center; overflow: hidden;
    background: #000; color: #fff;
}
.panel--intro::before {  /* 배경 이미지 (풀블리드) */
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: url('/public/images/contents/story_01.png') center center / cover no-repeat;
}
/* 배경 등장: 진입(패널 활성) 시 서서히 페이드 + 은은한 줌인.
   숨김은 JS가 붙이는 .hscroll--ready 하에서만 → JS 미작동 시 배경 항상 노출 */
.hscroll--ready .panel--intro::before {
    opacity: 0; transform: scale(1.08);
    transition: opacity 1.6s ease, transform 2.6s ease;
}
.hscroll--ready .panel--intro.is-active::before {
    opacity: 1; transform: scale(1);
    animation: kjPanelIntroIn 2.6s ease both;
}
@keyframes kjPanelIntroIn {
    0%   { opacity: 0; transform: scale(1.08); }
    62%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hscroll--ready .panel--intro::before {
        opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
    }
}
.panel--intro::after {   /* 텍스트 가독성 확보용 오버레이 */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, .78) 0%,
        rgba(0, 0, 0, .55) 50%,
        rgba(0, 0, 0, .2) 100%);
}
.panel--intro .panel__inner { position: relative; z-index: 2; text-align: center; }

/* 캡쳐처럼 가는 굵기의 대형 타이포 */
.panel--intro .story-intro__title {
    font-size: clamp(2.6rem, 6.4vw, 4rem);
    font-weight: 300; letter-spacing: -0.01em; line-height: 1.14;
    color: #fff; margin-bottom: 1.1rem;
}
.panel--intro .story-intro__lead {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 500; letter-spacing: 0.02em;
    color: rgba(255, 255, 255, .82);
}

.panel__scroll-hint {
    margin-top: 2.6rem; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.3em; color: var(--secondary);
}
.panel--intro .panel__scroll-hint { color: rgba(255, 255, 255, .6); }

/* 세로(모바일) 모드에서도 히어로 높이 확보 */
.hscroll:not(.is-hscroll) .panel--intro {
    min-height: 70vh; display: flex; align-items: center;
}
.panel__scroll-hint span {
    display: inline-block; margin-left: 0.4rem;
    animation: scrollHint 1.4s ease-in-out infinite;
}
@keyframes scrollHint {
    0%, 100% { transform: translateX(0); opacity: .5; }
    50%      { transform: translateX(6px); opacity: 1; }
}

/* 패널: 카드 그리드 */
.story-cards__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
}

/* 패널: CTA */

/* ── 1. 인트로 (대형 타이포) ── */
.story-intro {
    padding: clamp(3.5rem, 9vw, 9rem) 0 clamp(2.5rem, 6vw, 6rem);
    text-align: center;
}
.story-intro__eyebrow {
    font-size: 0.9rem; font-weight: 700; letter-spacing: 0.3em;
    color: var(--primary); margin-bottom: 1.4rem;
}
.story-intro__title {
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    font-weight: 800; line-height: 1.25; letter-spacing: -0.01em;
    color: var(--ink); margin-bottom: 1.4rem;
}
.story-intro__lead {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: var(--secondary); line-height: 1.8;
}

/* ── 2·3. 텍스트 + 이미지 교차 섹션 ── */
.story-feature { padding: clamp(2.5rem, 6vw, 6rem) 0; }
.story-origin {
    padding: clamp(2.5rem, 6vw, 6rem) 0;
    background: var(--paper);
}
.story-feature__eyebrow {
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.24em;
    color: var(--primary); margin-bottom: 1rem;
}
.story-feature__title {
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    font-weight: 800; line-height: 1.4; color: var(--ink);
    margin-bottom: 1.4rem;
}
.story-feature__desc {
    font-size: 0.98rem; color: #5a6472; line-height: 1.9;
}
.story-figure {
    margin: 0; overflow: hidden; border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.story-figure img {
    width: 100%; height: 100%; display: block;
    aspect-ratio: 4 / 3; object-fit: cover;
    transition: transform .6s ease;
}
.story-figure:hover img { transform: scale(1.04); }

/* 인증/특징 뱃지 */
.story-badges {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 1.6rem; padding: 0; list-style: none;
}
.story-badges li {
    background: var(--primary-soft); color: var(--primary);
    font-size: 0.8rem; font-weight: 600;
    padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
}

/* ── 4. 3분할 카드 ── */
.story-cards { padding: clamp(3rem, 7vw, 7rem) 0; }
.story-cards__title {
    text-align: center; font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800; color: var(--ink); margin-bottom: 2.6rem;
}
.story-card__thumb {
    aspect-ratio: 3 / 4; overflow: hidden;
    border-radius: var(--radius); margin-bottom: 1.2rem;
    background: var(--paper);
}
.story-card__thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .6s ease;
}
.story-card:hover .story-card__thumb img { transform: scale(1.05); }
.story-card__title {
    font-size: 1rem; font-weight: 800; letter-spacing: 0.14em;
    color: var(--primary); margin-bottom: 0.6rem;
}
.story-card__desc { font-size: 0.92rem; color: #5a6472; line-height: 1.8; }

/* ── CTA 패널 (밝은 배경 + 좌측 메시지) ── */
.panel--cta {
    position: relative; overflow: hidden;
    background: #f3f3f3; color: var(--ink); text-align: left;
}
.panel--cta::before {  /* 배경 이미지 */
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: var(--panel-bg) center center / cover no-repeat;
}
.panel--cta::after {   /* 좌→우 밝은 스크림 (텍스트 가독성) */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg,
        rgba(243, 243, 243, .96) 0%,
        rgba(243, 243, 243, .15) 40%,
        rgba(243, 243, 243, 0) 70%,
        rgba(243, 243, 243, 0) 100%);
}
.panel--cta .panel__inner { position: relative; z-index: 2; text-align: left; }
.story-cta__desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600; color: var(--ink); line-height: 1.7;
    margin-bottom: 1.6rem;
}
.story-cta__from {
    position: relative;
    font-size: 0.85rem; letter-spacing: 0.08em;
    color: var(--primary);
    padding-top: 1.4rem;
}
.story-cta__from::before {          /* 위 얇은 구분선 */
    content: ""; position: absolute; top: 0; left: 0;
    width: 120px; height: 1px;
    background: rgba(0, 0, 0, .2);
}
/* 배경 등장: 패널 활성 시 페이드 + 은은한 줌인 */
.hscroll--ready .panel--cta::before {
    opacity: 0; transform: scale(1.08);
    transition: opacity 1.4s ease, transform 2.2s ease;
}
.hscroll--ready .panel--cta.is-active::before {
    opacity: 1; transform: scale(1);
    animation: kjPanelBgIn 2.2s ease both;
}
@media (prefers-reduced-motion: reduce) {
    .hscroll--ready .panel--cta::before { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

/* ── 6. 풀와이드 이미지 + 메시지 ── */
.story-wide {
    position: relative; overflow: hidden;
    min-height: clamp(320px, 42vw, 560px);
    display: flex; align-items: center;
    background: var(--ink);
}
.story-wide::before {  /* 배경 이미지 레이어 (단독 등장) */
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: url('https://images.unsplash.com/photo-1556228720-195a672e8a03?auto=format&fit=crop&w=1900&q=80')
                center center / cover no-repeat;
}
.story-wide::after {  /* 가독성 확보용 오버레이 */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(12, 24, 40, .25) 0%, rgba(12, 24, 40, .6) 100%);
}
.story-wide > .container-xxl { position: relative; z-index: 2; }
.story-wide__text {
    color: #fff; text-align: center;
    font-size: clamp(1.2rem, 2.6vw, 2rem);
    font-weight: 700; line-height: 1.6;
}
/* JS 활성 시에만 숨김 → 스크롤 진입하면 페이드 + 은은한 줌인 */
.reveal-ready .story-wide::before {
    opacity: 0; transform: scale(1.08);
    transition: opacity 1.2s ease, transform 1.8s ease;
}
.reveal-ready .story-wide.is-inview::before {
    opacity: 1; transform: scale(1);
    animation: kjWideBgIn 1.8s ease both;
}
@keyframes kjWideBgIn {
    0%   { opacity: 0; transform: scale(1.08); }
    67%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal-ready .story-wide::before { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

/* ── 반응형 ──
   992px 미만에서는 가로 스크롤이 해제되어 패널이 세로로 쌓인다(JS에서 is-hscroll 미부여). */
@media (max-width: 991.98px) {
    .story-figure img { aspect-ratio: 16 / 10; }
    /* 세로로 쌓일 때 패널 간 여백 */
    .hscroll__panel { padding: clamp(2rem, 6vw, 4rem) 0; }
    .hscroll__panel + .hscroll__panel { border-top: 1px solid var(--line); }
    .panel--split .panel__text { margin-bottom: 2rem; }
    .story-cards__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .story-card__thumb { aspect-ratio: 16 / 10; }
    .story-cards__grid { grid-template-columns: 1fr; }
    /* 모바일에선 강제 줄바꿈 해제 → 화면 폭에 맞춰 흐르도록 */
    .story-intro__title br,
    .story-feature__title br { display: none; }
    .panel__scroll-hint { display: none; }  /* 세로 모드에선 가로 스크롤 힌트 불필요 */
}


/* =========================================================
   BRAND > CHANNEL (channel.php) — 비주얼 이미지 + 공식 채널 리스트
   ========================================================= */
/* 상단 풀와이드 비주얼 */
.channel-visual { overflow: hidden; margin: 0; }
.channel-visual__img {
    width: 100%; height: auto; display: block;
    transition: transform 1.8s ease;
}
.reveal-ready .channel-visual__img { transform: scale(1.06); }
.reveal-ready .channel-visual.is-inview .channel-visual__img {
    transform: scale(1);
    animation: kjImgSettleIn 1.8s ease both;
}
@keyframes kjImgSettleIn {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
}

/* 히어로 비주얼 위 오버레이 텍스트 */
.channel-visual--hero { position: relative; }
.channel-hero__caption {
    position: absolute; top: 50%; left: clamp(50%, 55%, 70%);
    transform: translateY(-50%); z-index: 2;
    max-width: min(42%, 520px); text-align: left;
}
.channel-hero__eyebrow {
    font-size: clamp(0.7rem, 1vw, 0.85rem); font-weight: 700;
    letter-spacing: 0.28em; color: var(--primary);
    margin: 0 0 clamp(0.8rem, 1.5vw, 1.3rem);
}
.channel-hero__title {
    font-size: clamp(1.2rem, 5vw, 4.2rem); font-weight: 800;
    line-height: 1.05; letter-spacing: 0.1rem; color: var(--ink);
    margin: 0 0 clamp(1rem, 2vw, 1.6rem);
}
.channel-hero__desc {
    font-size: clamp(0.9rem, 1.3vw, 1.15rem); font-weight: 500;
    line-height: 1.6; color: #4a5563; margin: 0;
}

@media (max-width: 767.98px) {
    
    .channel-hero__title br { display: none; }
    .channel-hero__desc br { display: none; }
}

/* 아치채널 안내 */
.channel-info { padding-top: clamp(2.5rem, 6vw, 5rem); }
.channel-info__title {
    font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800;
    letter-spacing: -0.01em; color: var(--ink);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* 채널 리스트 */
.channel-list { list-style: none; margin: 0; padding: 0; }
.channel-list__item { border-top: 1px solid #e5e8ec; }
.channel-list__item:last-child { border-bottom: 1px solid #e5e8ec; }
.channel-list__link {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr auto;
    align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.4rem, 2.6vw, 2rem) 0.4rem;
    text-decoration: none; color: var(--ink);
    transition: background-color 0.25s ease, padding-left 0.25s ease;
}
.channel-list__link:hover {
    background-color: #f5f7f9;
    padding-left: 1.2rem; padding-right: 1.2rem;
}
.channel-list__label {
    font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 600;
    color: #4a5563;
}
.channel-list__value {
    font-size: clamp(1.1rem, 1.7vw, 1.5rem); font-weight: 700;
    letter-spacing: -0.01em; color: var(--ink);
}
.channel-list__icon {
    display: inline-flex; color: #9aa4b0;
    transition: color 0.25s ease, transform 0.25s ease;
}
.channel-list__link:hover .channel-list__icon {
    color: var(--primary); transform: translateX(3px) rotate(-8deg);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-ready .channel-visual__img { transform: none; transition: none; animation: none !important; }
    .channel-list__icon,
    .channel-list__link { transition: none; }
}
@media (max-width: 767.98px) {
    .channel-list__link {
        grid-template-columns: 1fr auto;
        grid-template-areas: "label icon" "value value";
        gap: 0.5rem 1rem; align-items: start;
    }
    .channel-list__label { grid-area: label; }
    .channel-list__value { grid-area: value; }
    .channel-list__icon  { grid-area: icon; align-self: center; }
    .channel-list__link:hover { padding-left: 0.4rem; padding-right: 0.4rem; }
}


/* =========================================================
   SHOP > list.php — 탭 필터(3뎁스) + 상품 그리드 + 페이징
   - .product-card / .star / .review-nav(페이저) 컴포넌트는 main.css 전용이라
     서브 페이지에서도 동일하게 보이도록 .shop 스코프로 정의한다.
   - .a_link, .container-xxl 는 all.css(template/common)로 전 페이지에서 로드됨.
   - 필터/페이징 동작은 sub.js 의 initFilterGrid 담당.
   ========================================================= */
.shop .section { padding: 0 0 5rem; }

/* 상단 인트로 배너 (풀와이드 이미지 + 좌측 오버레이 텍스트) */
.list_top { position: relative; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.list_top__visual { margin: 0; overflow: hidden; }
.list_top__img {
    width: 100%; height: auto; display: block;
    transition: transform 1.8s ease;
}
.reveal-ready .list_top__img { transform: scale(1.06); }
.reveal-ready .list_top__visual.is-inview .list_top__img {
    transform: scale(1);
    animation: kjImgSettleIn 1.8s ease both;
}

/* 이미지 위 텍스트 오버레이 (세로 중앙 · 왼쪽 정렬) */
.list_top__overlay {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}
.list_top__intro { position: relative; z-index: 1; text-align: left; max-width: 640px; }
.list_top__eyebrow {
    font-size: clamp(0.75rem, 1vw, 0.9rem); font-weight: 700;
    letter-spacing: 0.28em; color: var(--primary);
    margin: 0 0 clamp(0.9rem, 1.6vw, 1.3rem);
}
.list_top__title {
    font-size: clamp(1.2rem, 3.2vw, 2.7rem); font-weight: 800;
    line-height: 1.22; letter-spacing: -0.01em; color: var(--ink);
    margin: 0;
}
@media (prefers-reduced-motion: reduce) {
    .reveal-ready .list_top__img { transform: none; transition: none; animation: none !important; }
}
@media (max-width: 767.98px) {
    /* 좁은 화면: 오버레이가 이미지를 벗어나지 않도록 스크림을 전체로 확장 */
    .list_top__overlay::before {
        background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 55%,
            rgba(255, 255, 255, 0.35) 100%);
    }
}
@media (max-width: 450px) {
    .list_top__img,
    .reveal-ready .list_top__img,
    .reveal-ready .list_top__visual.is-inview .list_top__img {
        transform: scale(2);
        transform-origin: 45% 0%;
        animation: none;   /* 강제 확대 유지 — 등장 애니메이션과 충돌 방지 */
    }
    .list_top__visual{ min-height: 200px;}
}
/* =========================================================
   탭 메뉴 (재사용 공통) — 가운데 정렬 언더라인 탭
   SHOP(BEST/NEW/단계별), EVENT(진행중/종료) 등에서 공용으로 사용.
   ========================================================= */
.tab-menu { border-bottom: 1px solid #e5e8ec; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.tab-menu__list {
    display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem);
    list-style: none; margin: 0; padding: 0;
}
.tab-menu__btn {
    display: inline-block;
    position: relative; background: none; border: 0; cursor: pointer;
    padding: 0 0.2rem 1rem;
    font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 700; letter-spacing: 0.02em;
    color: #b0b6bc; text-decoration: none; transition: color 0.2s ease;
}
.tab-menu__btn::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: var(--primary); transform: scaleX(0); transform-origin: center;
    transition: transform 0.3s cubic-bezier(.7, 0, .2, 1);
}
.tab-menu__btn:hover { color: var(--ink); }
.tab-menu__btn.is-active { color: var(--ink); }
.tab-menu__btn.is-active::after { transform: scaleX(1); }

/* 필터 그리드 공통: 현재 탭·페이지에 없는 셀 숨김 (initFilterGrid 가 토글) */
[data-filter-grid] > .is-hidden { display: none !important; }

/* 상품 그리드 (4열, 페이지 단위로 셀 교체) */
.shop .product-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: clamp(2rem, 3vw, 2.8rem) 1.5rem;
}

.shop .product-card { transition: transform .2s ease; position: relative; }
.shop .product-card:hover { transform: translateY(-4px); }
.shop .product-card__thumb {
    position: relative; aspect-ratio: 1/1; background: #f2f3f4; border-radius: var(--radius);
    margin-bottom: 1rem; overflow: hidden;
}
.shop .product-card__img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .3s ease;
}
.shop .product-card:hover .product-card__img { transform: scale(1.04); }
.shop .product-card__sale {
    position: absolute; top: 10px; left: 10px;
    background: #fff; border: 1px solid #eee; color: var(--primary);
    font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill);
}
.shop .product-card__name { font-size: 1rem; font-weight: 600; color: #222; }
.shop .product-card__desc { font-size: 0.85rem; color: var(--secondary); margin-top: 0.2rem; }
.shop .product-card__price { margin-top: 0.8rem; display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.shop .product-card__price strong { font-size: 1.15rem; color: #111; }
.shop .product-card__price del { font-size: 0.85rem; color: #b0b6bc; }
.shop .product-card__rate-off { color: #e6005c; font-weight: 800; font-size: 1rem; }
.shop .product-card__review { margin-top: 0.4rem; font-size: 0.82rem; color: var(--secondary); }
.shop .star { color: #ffb400; }

/* 페이징 (재사용 공통, 이전/다음 + 현재/전체 페이지). 페이지 2개 이상일 때만 노출 */
.review-nav { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.review-nav[hidden] { display: none; }   /* flex 가 [hidden] 을 덮어쓰지 않도록 */
/* button 외에 a/span 으로 출력해도 동일하게 보이도록 inline-flex 로 통일 */
.review-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d5dbe1; background: #fff;
    font-size: 1.3rem; line-height: 1; color: #555; cursor: pointer; text-decoration: none;
    transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
.review-arrow:hover:not(:disabled):not([aria-disabled="true"]) { border-color: var(--primary); color: var(--primary); }
.review-arrow:disabled,
.review-arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; pointer-events: none; }
.review-count { font-size: 0.9rem; color: #555; }

/* 반응형: 데스크톱 4열 → 태블릿 3열 → 모바일 2열 (12개는 3·4·6줄로 딱 맞음) */
@media (max-width: 991.98px) {
    .shop .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
    .shop .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .shop .section { padding: 0 0 3rem; }
    .shop .product-grid { gap: 1.8rem 1rem; }
}


/* =========================================================
   EVENT > event.php — 탭 필터(진행중/종료) + 갤러리 리스트
   - 탭(.tab-menu) · 페이저(.review-nav) 는 공통 컴포넌트 재사용.
   - 필터/페이징 동작은 sub.js 의 initFilterGrid 담당.
   ========================================================= */
.event .section { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 7vw, 6rem); }

/* 갤러리 그리드 (3열) */
.event-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.8rem, 3vw, 2.6rem) clamp(1.2rem, 2vw, 1.8rem);
}

.event-card { display: block; text-decoration: none; color: inherit; }
.event-card__thumb {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    background: #f2f3f4; border-radius: var(--radius);
}
.event-card__img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .5s ease;
}
.event-card:hover .event-card__img { transform: scale(1.05); }

/* 상태 배지 */
.event-badge {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    padding: 4px 12px; border-radius: var(--radius-pill);
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; color: #fff;
}
.event-badge--ongoing { background: var(--primary); }
.event-badge--ended { background: #9aa4b0; }

.event-card__body { padding: 1.1rem 0.2rem 0; }
.event-card__title {
    font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 700;
    line-height: 1.45; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-card__period { margin-top: 0.5rem; font-size: 0.85rem; color: var(--secondary); }

/* 종료 이벤트: 썸네일 위에 블러 오버레이 + 안내 문구 */
.event-cell[data-cat="ended"] .event-card__thumb::after {
        content: "이벤트가 종료되었습니다.";
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: clamp(0.95rem, 1.6vw, 1.3rem);
    font-weight: 600;
    letter-spacing: -0.04rem;
}
.event-cell[data-cat="ended"] .event-card__title { color: #6a747f; }

/* 반응형: 데스크톱 3열 → 태블릿 2열 → 모바일 1열 */
@media (max-width: 991.98px) {
    .event-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .event-grid { grid-template-columns: 1fr; }
    .event-card__thumb { aspect-ratio: 16 / 9; }
}

/* ── 이벤트 상세 (view.php) ── */
.event-view { max-width: 1200px; }
.event-view__head { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.event-view__head .event-badge {
    position: static; display: inline-block; margin-bottom: 1rem;
}
.event-view__title {
    font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 800;
    line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin: 0;
}
.event-view__period { margin-top: 0.9rem; font-size: 0.95rem; color: var(--secondary); }

.event-view__visual {
    position: relative; overflow: hidden; border-radius: var(--radius);
    background: #f2f3f4; margin: 0 0 clamp(1.8rem, 4vw, 2.8rem);
}
.event-view__img { width: 100%; height: auto; display: block; }
/* 종료 이벤트: 상세 이미지에도 블러 오버레이 + 문구 */
.event-view__visual.is-ended::after {
    content: "이벤트가 종료되었습니다.";
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 1rem;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: #fff; font-size: clamp(1.1rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.04em;
}

.event-view__body {
    padding: clamp(1.5rem, 3vw, 2.2rem) 0; border-top: 1px solid #e5e8ec;
}
.event-view__desc {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem); line-height: 1.9; color: #46505c; margin: 0;
}
.event-view__actions { margin-top: clamp(1.5rem, 3vw, 2.5rem); text-align: center; }

/* 존재하지 않는 이벤트 */
.event-empty { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.event-empty__title { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; color: var(--ink); margin-bottom: 1.6rem; }

/* 버튼 (재사용 공통) */
.btn-line, .btn-fill {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 2rem; border: 1px solid transparent; border-radius: var(--radius-pill);
    font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
/* 라인형 (취소/목록으로 등) */
.btn-line { border-color: #cfd6dd; color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--primary); color: var(--primary); background: #f5f7f9; }
/* 채움형 (등록 등 주요 액션) */
.btn-fill { background: var(--primary); color: #fff; }
.btn-fill:hover { background: #003567; color: #fff; }

/* 목록 하단 등록 버튼 정렬 (오른쪽) */
.event-toolbar { display: flex; justify-content: flex-end; margin-top: clamp(2rem, 4vw, 3rem); }


/* ── 이벤트 등록 폼 (write.php) — 공통 form-box ── */
.form-box { max-width: 1200px; margin: clamp(1.5rem, 4vw, 2.5rem) auto 0; }
.form-row {
    display: grid; grid-template-columns: 160px 1fr; gap: 1rem 1.5rem;
    align-items: start; padding: clamp(1rem, 2vw, 1.4rem) 0;
    border-top: 1px solid #eceff2;
}
.form-row:first-of-type { border-top: 0; }
.form-label { padding-top: 0.7rem; font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.form-label .req { color: var(--error, #e02020); }
.form-field { min-width: 0; }
.form-field--period { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.form-tilde { color: var(--secondary); }

.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.7rem 0.9rem;
    border: 1px solid #d5dbe1; border-radius: var(--radius, 6px);
    font-size: 0.95rem; color: var(--ink); background: #fff;
    font-family: inherit; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field--period .form-input { width: auto; flex: 1 1 0; min-width: 140px; }
/* select 는 글자 아랫부분(받침)이 잘리지 않도록 세로 여유를 약간 더 준다 */
.form-select { padding-top: 0.8rem; padding-bottom: 0.8rem; height: auto; line-height: 1.4; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 65, 130, 0.12);
}
.form-textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
.form-file { width: 100%; font-size: 0.9rem; color: var(--secondary); }
.form-help { margin-top: 0.5rem; font-size: 0.82rem; color: var(--secondary); }

.form-actions {
    display: flex; justify-content: center; gap: 0.8rem;
    margin-top: clamp(1.8rem, 4vw, 2.6rem);
}
.form-actions .btn-line, .form-actions .btn-fill { min-width: 120px; }

@media (max-width: 575.98px) {
    .form-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .form-label { padding-top: 0; }
}


/* ===== COMMUNITY =====
   COMMUNITY(게시판) 전용 스타일은 board.css 로 분리 (community_nav.php 에서 로드) */
