/* Manchide — 디자인 시안 source/manchide.pdf 기준
   1쪽: 가죽 사진 히어로 / 2·3쪽: 가죽 배경 위 가운데 정렬 브랜드 스토리 */
:root {
    --ink: rgba(255, 255, 255, 0.9);   /* 시안: 흰색 글씨, 불투명도 90% */
    --bg: #1c120b;
    --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    --script: 'Pinyon Script', 'Snell Roundhand', cursive;
    --edge: clamp(20px, 2.2vw, 40px);   /* 화면 가장자리 여백 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* 스크롤바 숨김 - 스크롤(휠·터치·키보드)은 그대로 동작 */
html, body, .story-scroll { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .story-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; font-weight: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.script { font-family: var(--script); font-weight: 400; line-height: 1.1; }

/* ===== 선택·드래그 금지: 메인, 브랜드 스토리, 제품 목록·상세(page-shop), 상단 메뉴, 모바일 메뉴 ===== */
.hero, .story, .page-shop, .top-nav, .mnav-panel {
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none;   /* iOS 길게 눌러 저장/복사 메뉴 막기 */
}
.hero img, .story img, .page-shop img, .top-nav img, .hero a, .story a, .page-shop a, .top-nav a, .mnav-panel a {
    -webkit-user-drag: none;
}

/* ===== 상단 메뉴 (brand story | product) ===== */
.top-nav {
    position: absolute; top: var(--edge); left: var(--edge); right: var(--edge); z-index: 5;
    display: flex; align-items: baseline; justify-content: space-between;  /* 필기체 로고와 메뉴 글자를 같은 기준선에 */
    font-size: clamp(13px, 1.15vw, 18px);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.top-nav .nav-links { margin-left: auto; display: flex; align-items: baseline; gap: 1.5em; }  /* 로고가 없어도 오른쪽 고정. 간격: 하위 메뉴 두 칸이 각 부모 왼쪽에 겹치지 않고 맞도록 */
.top-nav .sep { opacity: .8; }
.top-nav .nav-logo { position: relative; top: .22em; font-size: 1.7em; line-height: 1; }  /* 왼쪽 위 작은 로고 - 누르면 홈. 필기체가 위로 떠 보여서 메뉴 글자와 눈높이 맞춤 */
.top-nav .nav-logo:hover { text-decoration: none; opacity: .8; }
.top-nav .nav-links a:hover { opacity: .75; }
.top-nav [aria-current="page"] { opacity: 1; }

/* 하위 메뉴: story ▾ / product ▾ 에 마우스를 올리면(또는 Tab) 한 판에 두 칸이 함께 내려온다 (왼쪽 story, 오른쪽 product) */
.nav-links { position: relative; }
.nav-mega {
    position: absolute; top: 100%; right: -1.2em; z-index: 6;
    display: flex; gap: 2.4em; align-items: flex-start; text-align: left;   /* 가운데 정렬 페이지(Coming soon·안내)에서도 왼쪽 정렬 유지 */
    padding: .95em 1.4em .9em; margin-top: .45em;
    white-space: nowrap; font-size: 1em;   /* 위 메뉴(story | product)와 같은 크기 */
    background: rgba(14, 9, 5, .38); border-radius: 6px;   /* 반투명 - 뒤 화면이 흐리게 비친다 */
    -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -.9em; height: .9em; }  /* 메뉴로 내려가는 사이 틈에서 닫히지 않게 */
.nav-mega-col { display: flex; flex-direction: column; gap: .6em; }
.nav-links:has(.nav-drop:hover) .nav-mega, .nav-links:has(.nav-drop:focus-within) .nav-mega,
.nav-mega:hover, .nav-mega:focus-within { opacity: 1; visibility: visible; transform: none; }

/* ===== 1쪽: 히어로 ===== */
.hero {
    position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden;
    background: var(--bg) url('/images/hero-leather-40958a4c2526fcb1441e35b3e46f6bec.jpg') center / cover no-repeat;
    background-image: image-set(url('/images/hero-leather-a7a6c6e11bde46cde27d4d0f8ac49cc1.webp') type('image/webp'), url('/images/hero-leather-40958a4c2526fcb1441e35b3e46f6bec.jpg') type('image/jpeg'));  /* WebP 우선, 구형 브라우저는 JPG */
}
/* 이미지 위 검정 레이어 40% - 그 위에 글씨 */
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: rgba(0, 0, 0, .4);
}
.hero-brand {
    position: absolute; z-index: 2; left: var(--edge); top: 50%; transform: translateY(-58%);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.hero-brand h1 { font-size: clamp(72px, 7.8vw, 168px); line-height: 1; letter-spacing: -0.01em; }
.hero-brand p { margin-top: .05em; font-size: clamp(34px, 3.6vw, 76px); line-height: 1.1; }
.hero-tagline {
    position: absolute; z-index: 2; right: var(--edge); bottom: calc(var(--edge) * 1.1);
    text-align: right; font-size: clamp(15px, 1.35vw, 26px); line-height: 1.35;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}

/* ===== 2·3쪽: 브랜드 스토리 ===== */
/* 레이어 순서: 검정 바탕 → 가죽 이미지(화면 폭 100%) → 검정 40% → 글씨 */
.story {
    --frame: 100%;
    --bar-top: calc(var(--edge) * 2 + 32px);                       /* 상단 고정 띠: 로고·메뉴 */
    --bar-bottom: calc(clamp(24px, 2.6vw, 48px) * 2 + 20px);       /* 하단 고정 띠: 화살표 */
    position: relative; height: 100vh; height: 100svh; overflow: hidden;  /* 페이지 자체는 스크롤 없음 */
    background: #000;
}
/* 상하는 고정, 가운데 글 영역만 스크롤 */
.story-scroll {
    position: absolute; z-index: 3; left: 0; right: 0; top: var(--bar-top); bottom: var(--bar-bottom);
    overflow-y: auto; overscroll-behavior: contain;
    padding: clamp(24px, 4vw, 72px) var(--edge) clamp(40px, 5vw, 96px);
    /* 위아래 끝에서 글씨가 잘리지 않고 스르륵 사라지도록 */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.story-scroll:focus-visible { outline: none; }
.story-frame {
    position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
    width: var(--frame);
    background: url('/images/story-leather-695a5837adf75a76fa7cb9143668d684.jpg') center / cover no-repeat;
    background-image: image-set(url('/images/story-leather-379435b33d4eeb6f5c8c2e5c0b70ca84.webp') type('image/webp'), url('/images/story-leather-695a5837adf75a76fa7cb9143668d684.jpg') type('image/jpeg'));
}
.story::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: rgba(0, 0, 0, .4);
}
.story-text {
    position: relative;
    max-width: 44em; margin: 0 auto; text-align: center;
    font-size: clamp(15px, 1.42vw, 24px); line-height: 1.25;
    display: flex; flex-direction: column; gap: 1.2em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.story-text p { white-space: pre-line; }
.story-sign { margin-top: .8em; display: flex; flex-direction: column; align-items: center; }
.story-sign .sub { font-size: clamp(24px, 2.1vw, 42px); line-height: 1.15; }
.story-sign .name { margin-top: .6em; font-size: clamp(60px, 5.8vw, 116px); line-height: 1; }

/* 오른쪽 아래 엠블럼 워터마크 - 가죽에 찍힌 듯 어둡게 */
.story-mark {
    position: absolute; right: 0; bottom: -1.2%;
    width: 25%; height: auto;
    opacity: .6;  /* 엠블럼 본래 갈색 그대로, 반투명 - 40% 검정 레이어 아래 */
    pointer-events: none; user-select: none;
}

/* 페이지 넘김 화살표 */
.page-arrow {
    position: absolute; z-index: 4; bottom: clamp(24px, 2.6vw, 48px);
    display: block; width: clamp(64px, 6vw, 112px); padding: 12px 0;
}
.page-arrow svg { display: block; width: 100%; height: auto; overflow: visible; }
.page-arrow.--next { right: calc((100% - var(--frame, 100%)) / 2 + var(--edge)); }
.page-arrow.--prev { left: calc((100% - var(--frame, 100%)) / 2 + var(--edge)); }
.page-arrow:hover { opacity: .8; }

/* ===== 준비 중 / 에러 ===== */
.notice {
    position: relative; min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: safe center; gap: 1em; text-align: center; padding: var(--edge);   /* safe: 내용이 화면보다 길면 위에서부터 (가운데 정렬로 위가 잘리지 않게) */
    background: var(--bg) url('/images/story-leather-695a5837adf75a76fa7cb9143668d684.jpg') center / cover no-repeat;
    background-image: image-set(url('/images/story-leather-379435b33d4eeb6f5c8c2e5c0b70ca84.webp') type('image/webp'), url('/images/story-leather-695a5837adf75a76fa7cb9143668d684.jpg') type('image/jpeg'));
}
/* 이미지 위 검정 레이어 40% - 그 위에 글씨 */
.notice::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: rgba(0, 0, 0, .4);
}
.notice > * { position: relative; z-index: 2; }
.notice > .top-nav { position: absolute; z-index: 5; }
.notice > .script { font-size: clamp(56px, 6vw, 110px); }
.notice > p { font-size: clamp(15px, 1.35vw, 22px); }
.notice > p a { text-decoration: underline; text-underline-offset: 5px; }

/* ===== 로그인 · 가입 동의 · 마이페이지 (notice 와 같은 가죽 배경) ===== */
.notice.auth { gap: 1.4em; }
.notice > .auth-lead { font-size: clamp(15px, 1.25vw, 20px); line-height: 1.6; }
/* 카카오 로그인 버튼 - 카카오 디자인 가이드 색 (#FEE500 / 검정 85%) */
.kakao-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    width: min(320px, 82vw); height: 50px; margin-top: .4em;
    background: #FEE500; color: rgba(0, 0, 0, .85); border-radius: 12px;
    font-size: 16px; font-weight: 500; text-decoration: none !important;
    transition: filter .2s;
}
.kakao-btn:hover { filter: brightness(.96); }
.kakao-symbol { width: 18px; height: 18px; fill: #000; }
.auth-info {
    width: min(360px, 86vw); margin: .4em 0 0; padding: 0; text-align: left;
    border-top: 1px solid rgba(255, 255, 255, .35);
}
.auth-info > div { display: flex; justify-content: space-between; gap: 1.5em; padding: .85em .2em; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.auth-info dt { opacity: .75; }
.auth-info dd { margin: 0; text-align: right; word-break: break-all; }
.auth-actions { display: flex; flex-direction: column; align-items: center; gap: 1em; margin-top: .4em; }
.auth-primary {
    all: unset; box-sizing: border-box; cursor: pointer;
    width: min(320px, 82vw); height: 50px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; font-size: 16px; transition: background .2s, opacity .2s;
}
.auth-primary { background: rgba(255, 255, 255, .92); color: #111; }
.auth-primary:hover { background: #fff; }
.auth-primary:disabled { opacity: .6; cursor: progress; }
.auth-primary:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
/* 마이페이지 기본 주소 */
.auth-outline {
    all: unset; box-sizing: border-box; cursor: pointer;
    padding: .55em 1.3em; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px;
    font-size: 14px; transition: background .2s;
}
.auth-outline:hover { background: rgba(255, 255, 255, .1); }
.auth-outline[hidden] { display: none; }   /* all: unset 이 hidden 속성의 display:none 까지 지워서 다시 지정 */
.auth-outline:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.addr-form { width: min(360px, 86vw); display: flex; flex-direction: column; gap: .7em; text-align: left; }
.addr-form[hidden] { display: none; }
.addr-row { display: flex; gap: .6em; align-items: stretch; }
.addr-row input { flex: 1 1 auto; min-width: 0; }
.addr-search { flex: 0 0 auto; border-radius: 10px; }
.addr-form input {
    box-sizing: border-box; width: 100%; height: 46px; padding: 0 14px;
    background: rgba(0, 0, 0, .3); color: var(--ink);
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px;
    font-family: inherit; font-size: 15px;
}
.addr-form input[readonly] { background: rgba(0, 0, 0, .18); }
.addr-form input::placeholder { color: rgba(255, 255, 255, .5); }
.addr-form input:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.addr-actions { display: flex; flex-direction: column; align-items: center; gap: .6em; margin-top: .3em; }
.addr-actions .auth-primary { width: 100%; }
.addr-cancel { all: unset; cursor: pointer; font-size: 14px; opacity: .75; padding: 4px; }
.addr-cancel:hover { opacity: .7; }
.auth-info dd.js-addr-text { max-width: 15em; line-height: 1.45; }

/* 우편번호 검색 층 - 화면을 어둡게 덮고 가운데에 검색창 */
.postcode-layer {
    position: fixed; inset: 0; z-index: 30;
    background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center;
}
.postcode-layer[hidden] { display: none; }
.postcode-box { position: relative; width: min(500px, 94vw); height: min(560px, 76vh); }
.postcode-embed { width: 100%; height: 100%; background: #fff; border-radius: 12px; overflow: hidden; }
/* 닫기는 상자 바깥 오른쪽 위 - 상자 안에 두면 다음 검색창의 지우기(X) 버튼과 겹친다 */
.postcode-close { all: unset; cursor: pointer; position: absolute; z-index: 2; top: -40px; right: -4px; width: 34px; height: 34px; }
.postcode-close::before, .postcode-close::after {
    content: ""; position: absolute; left: 6px; right: 6px; top: 16px; height: 2px; background: #fff;
}
.postcode-close::before { transform: rotate(45deg); }
.postcode-close::after { transform: rotate(-45deg); }

/* 가입 동의 체크 */
.notice.consent { padding-top: max(calc(var(--edge) * 3), 96px); padding-bottom: calc(var(--edge) * 3); }   /* 위 로고 띠와 겹치지 않게 */
.agree-box { width: min(400px, 88vw); text-align: left; font-size: 14px; line-height: 1.5; }
.agree-all { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .5); font-size: 15px; cursor: pointer; }
.agree-all small { opacity: .7; }
.agree-list { list-style: none; margin: 0; padding: 6px 0 0; }
.agree-list > li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 4px; }
.agree-list label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.agree-list b { font-weight: 500; }
.agree-box input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: #fff; flex: 0 0 auto; }
.agree-list a, .agree-more { all: unset; cursor: pointer; font-size: 13px; opacity: .75; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.agree-list a:focus-visible, .agree-more:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.agree-list > li.agree-detail { display: block; padding: 8px 10px 12px; margin: 2px 0 6px; background: rgba(0, 0, 0, .28); border-radius: 8px; font-size: 12.5px; }
.agree-list > li.agree-detail[hidden] { display: none; }
.agree-detail table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.agree-detail th, .agree-detail td { padding: 5px 6px; border-bottom: 1px solid rgba(255, 255, 255, .2); text-align: left; vertical-align: top; font-weight: 400; }
.agree-detail th { opacity: .7; }
.agree-detail p a { opacity: 1; }
.agree-note { margin-top: 8px; font-size: 12.5px; opacity: .65; }
.auth-primary:disabled { opacity: .45; cursor: not-allowed; }

/* my page 소식 수신 스위치 */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 36px; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, .25); transition: background .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .switch-track { background: rgba(255, 255, 255, .85); }
.switch input:checked + .switch-track::after { transform: translateX(16px); background: #2a1a10; }
.switch input:focus-visible + .switch-track { outline: 1px solid var(--ink); outline-offset: 3px; }
.switch input:disabled + .switch-track { opacity: .5; }
.auth-foot a { padding: 6px 2px; }
.auth-foot a:hover { opacity: .7; }
.notice > .auth-foot { flex-wrap: wrap; padding: 0 var(--edge); }

/* 약관 문서 (/terms, /privacy) - 읽기 쉬운 어두운 문서 */
.legal { min-height: 100vh; background: #15100c; padding: calc(var(--edge) * 3.5) var(--edge) calc(var(--edge) * 3); }
.legal-doc { max-width: 760px; margin: 0 auto; font-size: 15px; line-height: 1.75; }
.legal-doc h1 { font-size: 28px; font-weight: 500; }
.legal-doc h2 { margin: 2em 0 .6em; font-size: 17px; font-weight: 500; }
.legal-doc p, .legal-doc li { opacity: .9; }
.legal-doc ul, .legal-doc ol { padding-left: 1.3em; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-doc th, .legal-doc td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .18); text-align: left; vertical-align: top; }
.legal-doc th { font-weight: 500; opacity: .75; }
.legal-meta { margin-top: .4em; font-size: 13px; opacity: .6; }
.legal-draft { margin: 1.2em 0; padding: 10px 14px; border: 1px dashed rgba(255, 200, 150, .6); border-radius: 8px; color: #ffd8b8; font-size: 14px; }

/* 마이페이지 하단: 로그아웃 · 회원 탈퇴 - 작고 흐리게 */
.notice > .auth-foot {
    position: absolute; left: 0; right: 0; bottom: calc(var(--edge) * 1.5);
    display: flex; justify-content: center; align-items: center; gap: .8em;
    font-size: 13px; opacity: .65;
}
.auth-foot button { all: unset; cursor: pointer; padding: 6px 2px; }
.auth-foot button:hover { opacity: .7; }
.auth-foot button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.notice > .auth-msg { max-width: 30em; font-size: 14px; color: #ffd3c4; }

/* =====================================================================
   product 페이지 (시안 source/manchide_2.pdf) - 흰 바탕
   ===================================================================== */
body.page-shop { --ink: #111; background: #fff; color: var(--ink); }

/* 상단 띠: 고정 + 반투명 유리. 아래 내용(슬라이드~회색 띠)이 비쳐 보이며 스크롤된다 */
.shop-header {
    --header-h: clamp(52px, 5.1vw, 98px);
    position: sticky; top: 0; z-index: 10;
    height: var(--header-h);
    display: flex; align-items: center;
}
/* 유리는 별도 층에 - header 자체에 backdrop-filter를 걸면 그 안의 모바일 메뉴(position:fixed)가 띠 안에 갇힌다 */
.shop-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    /* 맑은 유리: 흰 막(우유빛) 대신 거의 투명 + 아주 약한 흐림 */
    background: linear-gradient(to bottom, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .06) 55%, rgba(255, 255, 255, .02) 100%);
    -webkit-backdrop-filter: blur(2px) saturate(180%) brightness(1.06);
    backdrop-filter: blur(2px) saturate(180%) brightness(1.06);
    /* 유리 두께감: 위 가장자리 반사광, 아래 가장자리 맺힘 */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .85),
        inset 0 -1px 0 rgba(255, 255, 255, .45),
        inset 0 -10px 18px -12px rgba(255, 255, 255, .55),
        0 6px 20px -8px rgba(0, 0, 0, .18);
}
/* Chrome·Edge: SVG 필터로 뒤 화면을 물방울처럼 굴절시킨다 (site.js 가 지원 여부를 보고 클래스를 붙임) */
html.svg-backdrop .shop-header::before {
    -webkit-backdrop-filter: url(#liquid-glass) saturate(170%) brightness(1.05);
    backdrop-filter: url(#liquid-glass) saturate(170%) brightness(1.05);
}
/* 물방울 반짝임 - 빛이 맺힌 듯한 하이라이트 */
.shop-header::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(120px 18px at 12% 0%, rgba(255, 255, 255, .55), transparent 70%),
        radial-gradient(220px 22px at 70% 100%, rgba(255, 255, 255, .28), transparent 70%),
        linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .16) 32%, transparent 44%);
    /* mix-blend-mode 쓰지 말 것 - 크롬에서 아래 층(::before)의 backdrop-filter가 통째로 꺼진다 (실측) */
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .shop-header::before { background: rgba(255, 255, 255, .92); }   /* 유리 효과 미지원 브라우저는 거의 흰색 */
}
.page-shop .top-nav { top: 0; bottom: 0; align-items: center;
    text-shadow: 0 0 6px rgba(255, 255, 255, .9), 0 0 14px rgba(255, 255, 255, .6); }  /* 띠 안 세로 가운데 + 맑은 유리 위에서도 읽히도록 흰 번짐 */
.page-shop .top-nav .nav-logo { font-size: clamp(24px, 2.5vw, 48px); top: .26em; }  /* 필기체가 위로 떠 보여 메뉴와 눈높이 맞춤 */

/* 슬라이드: 화면 가득, 이미지 비율 유지 */
.slider { position: relative; overflow: hidden; background: #111; color: #fff; }
.slides { position: relative; aspect-ratio: 1720 / 914; max-height: calc(100svh - clamp(52px, 5.1vw, 98px)); width: 100%; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide::after {  /* 아래쪽을 살짝 어둡게 - 버튼·화살표가 읽히도록 */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 35%);
}
.slide-btn {
    position: absolute; z-index: 2; right: 8.3%; bottom: 19%;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: clamp(110px, 14.6vw, 280px); height: clamp(36px, 4.4vw, 84px); padding: 0 1.5em;
    /* 배경 없이 흰 테두리 + 흰 글씨, 모서리 살짝 둥글게 */
    background: transparent; color: #fff; border: 1.5px solid #fff; border-radius: 6px;
    font-size: clamp(11px, 1.15vw, 22px); letter-spacing: .04em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
    transition: background .2s;
}
.slide-btn:hover { background: rgba(255, 255, 255, .14); }
.slider-bar {
    position: absolute; z-index: 3; left: 8.3%; right: 8.3%; bottom: 0; height: 15.5%;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .25);
}
.slider-arrow { all: unset; cursor: pointer; width: clamp(28px, 2.6vw, 50px); padding: 8px 0; color: #fff; }
.slider-arrow svg { display: block; width: 100%; height: auto; }
.slider-dots { display: flex; gap: 12px; }
.slider-dot { all: unset; cursor: pointer; width: 6px; height: 6px; background: #fff; opacity: .7; }
.slider-dot.is-active { width: 8px; height: 8px; background: transparent; outline: 1.5px solid #fff; opacity: 1; }

/* 제품 라인 */
.line { padding: clamp(48px, 8.8vw, 170px) var(--edge) 0; scroll-margin-top: clamp(52px, 5.1vw, 98px); }  /* WALLETS로 이동해도 제목이 고정 띠에 가리지 않게 */
.line:last-child { padding-bottom: clamp(64px, 10.5vw, 200px); }
.line-name { font-size: clamp(30px, 3.95vw, 76px); font-weight: 400; line-height: 1.1; }
.line-desc {
    margin: .5em 0 0 3.6vw; color: #666;
    font-size: clamp(13px, 1.3vw, 25px); line-height: 1.25;
    display: flex; flex-direction: column; gap: 1.2em;
}
.line-desc p { white-space: pre-line; }
.cards {
    list-style: none; margin: clamp(28px, 3.9vw, 76px) 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, 23.3%); justify-content: center; column-gap: 19%;
    row-gap: clamp(28px, 3.9vw, 76px);   /* 관리자가 제품을 3개 이상 등록하면 줄이 바뀐다 */
}
.card { background: #ececec; padding: 6.8% 6.8% 0; }
.card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-meta {
    display: flex; align-items: baseline; justify-content: space-between; gap: .5em;
    padding: .7em 7% 1em;
}
.card-name { font-size: clamp(15px, 1.9vw, 36px); }
.card-price { font-size: clamp(12px, 1.25vw, 24px); }

/* 품절 카드 */
.card { position: relative; }
.card.is-soldout img { opacity: .45; }
.card-soldout {
    position: absolute; z-index: 1; top: calc(6.8% + 10px); left: calc(6.8% + 10px);
    padding: 4px 10px; background: rgba(17, 17, 17, .85); color: #fff; font-size: clamp(11px, .9vw, 14px); letter-spacing: .05em;
}
.card.is-soldout .card-price { color: #999; text-decoration: line-through; }

/* 사업자 정보 푸터 - product 페이지의 회색 띠(시안) / 약관 페이지 하단
   레이어: 회색 바탕 → 검정 40% → 흰 글씨(불투명도 60%) */
.site-footer { --foot-ink: rgba(255, 255, 255, .6);
    position: relative; isolation: isolate;
    background: #bdbdbd; color: var(--foot-ink); min-height: clamp(140px, 20.6vw, 400px); font-size: 13px; line-height: 1.6;
    -webkit-user-select: text; user-select: text; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .4); pointer-events: none; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: clamp(32px, 4vw, 64px) var(--edge); display: flex; flex-direction: column; gap: 14px; }
.site-footer-logo { font-size: 30px; line-height: 1; color: var(--foot-ink); }
.site-footer-info { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; }
.site-footer-info > div { display: flex; gap: 6px; }
.site-footer-info dt, .site-footer-info dd { margin: 0; color: var(--foot-ink); }
.site-footer-info a { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--foot-ink); border-radius: 3px; font-size: 12px; color: var(--foot-ink); }
.site-footer-info a:hover { background: rgba(255, 255, 255, .12); }
.site-footer-links { display: flex; gap: 16px; }
.site-footer-links a { color: var(--foot-ink); }
.site-footer-links a:hover { opacity: .7; }
.site-footer-copy { color: var(--foot-ink); font-size: 12px; }
.legal + .site-footer { min-height: 0; }
@media (max-width: 767px) {
    .site-footer-info { flex-direction: column; gap: 2px; }
}

/* 모바일: 흰 메뉴판, 카드 두 장을 꽉 차게 */
@media (max-width: 767px) {
    .page-shop .mnav-panel { background: rgba(255, 255, 255, .6); }
    .page-shop .mnav-sub { border-left-color: rgba(0, 0, 0, .15); }
    .page-shop .top-nav .nav-logo { top: .16em; }
    .slide-btn { right: var(--edge); bottom: 22%; }
    .slider-bar { left: var(--edge); right: var(--edge); }
    .line-desc { margin-left: 0; }
    .cards { grid-template-columns: repeat(2, 1fr); column-gap: 12px; row-gap: 12px; }
    .card { padding: 8px 8px 0; }
    .card-meta { padding: .6em 4px .8em; }
}

/* ===== 모바일 메뉴 (햄버거) - 데스크톱에서는 숨김 ===== */
.nav-burger, .mnav-dim, .mnav-panel { display: none; }

/* ===== 모바일 ===== */
@media (max-width: 767px) {
    .top-nav .nav-links { display: none; }
    /* 햄버거는 글자가 없어 기준선 정렬이 안 됨 - 모바일은 가운데 정렬 */
    .top-nav { align-items: center; }

    /* 배경 없이 이미지 위에 선 세 개만 */
    .nav-burger {
        all: unset; cursor: pointer; margin-left: auto;
        display: flex; flex-direction: column; justify-content: center; gap: 6px;
        width: 28px; height: 28px; padding: 8px; margin-right: -8px;
    }
    .nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 1px; }

    /* 나머지 절반을 덮어 비활성화하는 막 */
    .mnav-dim {
        display: block; position: fixed; inset: 0; z-index: 20;
        background: rgba(0, 0, 0, .55);
        opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
    }
    /* 오른쪽에서 절반만 나오는 메뉴 */
    .mnav-panel {
        display: flex; flex-direction: column; gap: 1.4em; text-align: left;   /* 가운데 정렬 페이지(Coming soon·안내)에서도 왼쪽 정렬 유지 */
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 21; width: 50vw;
        padding: calc(var(--edge) + 56px) var(--edge) var(--edge);
        background: rgba(14, 9, 5, .5); font-size: 17px;   /* 반투명 - 뒤 화면이 흐리게 비친다 */
        -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
        transform: translateX(100%); visibility: hidden;
        transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s;
    }
    .mnav-close {
        all: unset; cursor: pointer; position: absolute; top: var(--edge); right: var(--edge);
        width: 28px; height: 28px;
    }
    .mnav-close::before, .mnav-close::after {
        content: ""; position: absolute; left: 3px; right: 3px; top: 13px; height: 2px; background: var(--ink);
    }
    .mnav-close::before { transform: rotate(45deg); }
    .mnav-close::after { transform: rotate(-45deg); }

    /* product 아래 분류 - 들여쓰고 작게 */
    .mnav-sub { display: flex; flex-direction: column; gap: 1em; margin-top: -.5em; padding-left: 1em; font-size: 15px;
        border-left: 1px solid rgba(255, 255, 255, .2); }

    html.mnav-open .mnav-dim { opacity: 1; visibility: visible; }
    html.mnav-open .mnav-panel { transform: none; visibility: visible; }
    html.mnav-open body { overflow: hidden; }

    .hero-brand { top: 44%; }
    .hero-tagline { left: var(--edge); }
    .story-text { line-height: 1.45; gap: 1.1em; }
    .story-mark { width: 42%; opacity: .45; }
}

/* ===== 페이지 이동 시 부드럽게 전환 (지원 브라우저만) ===== */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    .mnav-dim, .mnav-panel { transition: none; }
}

/* =====================================================================
   관리자 페이지 (/admin) - 흰 바탕 대시보드. 사이트와 같은 글꼴·로고
   ===================================================================== */
body.page-admin {
    --ink: #1b1b1b; --muted: #777; --line: #e7e3dd; --bg-soft: #f6f4f0; --accent: #8a4b25;
    background: var(--bg-soft); color: var(--ink);
    -webkit-user-select: auto; user-select: auto;
}
.page-admin [hidden] { display: none !important; }
.adm-gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8em; color: var(--muted); }
.adm-gate .script { font-size: 56px; color: var(--ink); }
.adm-gate-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.adm { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.adm-side {
    position: sticky; top: 0; height: 100vh; box-sizing: border-box;
    display: flex; flex-direction: column; padding: 28px 22px; background: #fff; border-right: 1px solid var(--line);
}
.adm-logo { font-size: 34px; line-height: 1; }
.adm-side-sub { margin-top: .2em; font-size: 12px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.adm-nav { margin-top: 36px; display: flex; flex-direction: column; gap: 2px; }
.adm-nav a { padding: 10px 12px; border-radius: 8px; font-size: 15px; color: #444; }
.adm-nav a:hover { background: var(--bg-soft); }
.adm-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.adm-me { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.adm-me-link { width: 100%; margin-top: 6px; font-size: 13px; color: var(--muted); }
.adm-me-link:hover { color: var(--ink); }

.adm-main { padding: 36px clamp(20px, 4vw, 56px) 80px; min-width: 0; }
.adm-section { max-width: 1100px; display: flex; flex-direction: column; gap: 20px; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm-head h1 { font-size: 26px; font-weight: 500; }
.adm-head h1 small, .adm-card-head h2 small { font-size: 15px; color: var(--muted); font-weight: 400; }
.adm-help { margin-top: -10px; font-size: 14px; color: var(--muted); }

.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.adm-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.adm-card-head h2, .adm-form h2 { font-size: 17px; font-weight: 500; }
.adm-card-head a { font-size: 13px; color: var(--muted); }
.adm-card-head a:hover { color: var(--ink); }
.adm-muted { color: var(--muted); font-size: 13px; }
.adm-empty { color: var(--muted); font-size: 14px; padding: 8px 0; list-style: none; }

/* 숫자 카드 */
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.adm-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.adm-stat span { font-size: 13px; color: var(--muted); }
.adm-stat strong { font-size: 30px; font-weight: 500; line-height: 1.1; }
.adm-stat em { font-style: normal; font-size: 12px; color: var(--muted); min-height: 1.2em; }
.adm-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }

.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-list li { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.adm-list li:first-child { border-top: 0; }
.adm-list img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.adm-list-name { font-weight: 500; }
.adm-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.adm-thumbs figure { position: relative; margin: 0; }
.adm-thumbs img { display: block; width: 100%; aspect-ratio: 1720 / 914; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.adm-thumbs figcaption { position: absolute; left: 6px; top: 6px; min-width: 20px; height: 20px; border-radius: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; display: grid; place-items: center; }

/* 버튼 */
.adm-btn {
    all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; white-space: nowrap;
    transition: opacity .2s, background .2s;
}
.adm-btn:hover { opacity: .85; }
.adm-btn:disabled { opacity: .35; cursor: not-allowed; }
.adm-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-btn.--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.adm-btn.--ghost:hover { background: var(--bg-soft); opacity: 1; }
.adm-btn.--danger { background: #fff; color: #b3261e; border: 1px solid #f0d4d1; }
.adm-btn.--danger:hover { background: #fdf3f2; opacity: 1; }
.adm-btn.--small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

/* 등록 폼 */
.adm-form { display: flex; flex-direction: column; gap: 16px; }
.adm-form-grid { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.adm-form-grid.--wide { grid-template-columns: 320px 1fr; }
.adm-fields { display: flex; flex-direction: column; gap: 12px; }
.adm-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #555; }
.adm-fields small { color: var(--muted); }
.adm-fields input, .adm-fields select {
    box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink); font: inherit; font-size: 15px;
}
.adm-fields input:focus, .adm-fields select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.adm-upload {
    position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; cursor: pointer;
    border: 1.5px dashed #cfc8bd; border-radius: 12px; background: var(--bg-soft); color: var(--muted); text-align: center; font-size: 14px;
}
.adm-upload.--wide { aspect-ratio: 1720 / 914; }
.adm-upload:hover { border-color: var(--accent); }
.adm-upload:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.adm-upload small { font-size: 12px; }
.adm-error { color: #b3261e; font-size: 14px; }
.adm-form-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* 제품 목록 */
.adm-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.adm-items li { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.adm-items img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-soft); }
.adm-item-text { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px 4px; font-size: 14px; }
.adm-item-text strong { font-weight: 500; }
.adm-item-actions { display: flex; gap: 6px; padding: 8px 12px 12px; }
.adm-items .adm-item-actions .adm-btn { flex: 1; }
.js-item-lines { display: flex; flex-direction: column; gap: 14px; }

/* 슬라이드 목록 */
.adm-slides { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.adm-slide { display: grid; grid-template-columns: 28px 200px 1fr auto; align-items: center; gap: 16px; }
.adm-slide img { width: 100%; aspect-ratio: 1720 / 914; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.adm-slide-no { width: 28px; height: 28px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.adm-slide-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.adm-slide-text strong { font-weight: 500; overflow-wrap: anywhere; }
.adm-slide .adm-item-actions { padding: 0; }

/* 회원 표 */
.adm-table-wrap { padding: 6px 0; overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tr.is-withdrawn td { color: #aaa; }
.adm-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--bg-soft); color: #555; border: 1px solid var(--line); }
.adm-badge.--master { background: var(--ink); color: #fff; border-color: var(--ink); }
.adm-badge.--admin { background: #f3e6dc; color: var(--accent); border-color: #ead3c3; }

.adm-toast {
    position: fixed; z-index: 40; left: 50%; bottom: 28px; transform: translateX(-50%);
    padding: 12px 20px; border-radius: 999px; background: rgba(27, 27, 27, .92); color: #fff; font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

@media (max-width: 900px) {
    .adm { grid-template-columns: 1fr; }
    .adm-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
    .adm-side-sub { display: none; }
    .adm-nav { margin: 0; flex-direction: row; flex-wrap: wrap; width: 100%; order: 3; }
    .adm-nav a { padding: 8px 10px; font-size: 14px; }
    .adm-me { margin: 0 0 0 auto; }
    .adm-me-link { display: none; }
    .adm-main { padding: 24px 16px 80px; }
    .adm-stats { grid-template-columns: repeat(2, 1fr); }
    .adm-grid { grid-template-columns: 1fr; }
    .adm-form-grid, .adm-form-grid.--wide { grid-template-columns: 1fr; }
    .adm-upload { max-width: 240px; }
    .adm-upload.--wide { max-width: none; }
    .adm-slide { grid-template-columns: 28px 1fr; }
    .adm-slide .adm-slide-text, .adm-slide .adm-item-actions { grid-column: 1 / -1; }
}

.adm-item-stock { padding: 0 12px; font-size: 13px; }
.adm-soldout { color: #b3261e; font-size: 13px; font-weight: 500; }
.adm-fields label small { font-size: 12px; }

/* 관리자 - 상세 페이지 작성 */
.adm-head-actions { display: flex; gap: 8px; }
.adm-back { margin-top: -8px; font-size: 14px; color: var(--muted); }
.adm-back:hover { color: var(--ink); }
.adm-editor-card { padding: 0; overflow: hidden; }
.adm-editor-card .toastui-editor-defaultUI { border: 0; }
.adm-items .adm-item-actions { flex-wrap: wrap; }

/* 제품 카드 → 상세 링크 */
.card-link { display: block; color: inherit; }
.card-link[href]:hover .card-name { opacity: .7; }

/* 제품 상세 페이지 (/product/{id}) */
.pd { max-width: 1100px; margin: 0 auto; padding: clamp(24px, 3vw, 48px) var(--edge) clamp(56px, 7vw, 120px); }
.pd-back { font-size: 14px; color: #666; margin-bottom: clamp(16px, 2vw, 28px); }
.pd-back a:hover { opacity: .7; }
.pd-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.pd-photo { position: relative; background: #ececec; padding: 6.8%; }
.pd-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-photo.is-soldout img { opacity: .45; }
.pd-photo .card-soldout { top: calc(6.8% + 10px); left: calc(6.8% + 10px); }
.pd-info { padding-top: clamp(0px, 2vw, 24px); display: flex; flex-direction: column; gap: 10px; }
.pd-line { font-size: 14px; color: #777; letter-spacing: .04em; }
.pd-name { font-size: clamp(28px, 3vw, 44px); font-weight: 400; line-height: 1.15; }
.pd-price { font-size: clamp(18px, 1.6vw, 24px); }
.pd-price.is-soldout { color: #999; text-decoration: line-through; }
.pd-stock { font-size: 14px; color: #666; }
.pd-stock strong { margin-left: .3em; font-weight: 500; color: #111; }
.pd-body { max-width: 760px; margin: clamp(48px, 6vw, 96px) auto 0; font-size: 16px; line-height: 1.8; color: #222; }
.pd-body h1, .pd-body h2, .pd-body h3 { margin: 1.8em 0 .6em; font-weight: 500; line-height: 1.35; }
.pd-body h1 { font-size: 28px; } .pd-body h2 { font-size: 23px; } .pd-body h3 { font-size: 19px; }
.pd-body p { margin: 0 0 1em; }
.pd-body img { display: block; max-width: 100%; height: auto; margin: 1.4em auto; }
.pd-body ul, .pd-body ol { padding-left: 1.4em; margin: 0 0 1em; }
.pd-body blockquote { margin: 1.4em 0; padding: .4em 1.2em; border-left: 3px solid #ccc; color: #555; }
.pd-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.pd-body th, .pd-body td { padding: 10px 12px; border-bottom: 1px solid #e3e3e3; text-align: left; }
.pd-body th { background: #f6f6f6; font-weight: 500; }
.pd-body hr { border: 0; border-top: 1px solid #e3e3e3; margin: 2em 0; }
.pd-body a { color: #8a4b25; text-decoration: underline; text-underline-offset: 3px; }
.pd-body pre, .pd-body code { font-size: 14px; background: #f5f5f5; border-radius: 4px; }
.pd-body pre { padding: 12px; overflow-x: auto; }
.pd-empty { margin-top: 64px; text-align: center; color: #888; }
@media (max-width: 767px) {
    .pd-top { grid-template-columns: 1fr; }
}
/* 에디터가 목록·표 칸 안에 <p> 를 넣어 생기는 여백 정리 */
.pd-body li > p, .pd-body td > p, .pd-body th > p { margin: 0; }
.pd-body li + li { margin-top: .3em; }

/* 관리자 - 라인 */
.adm-fields textarea {
    box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.6; resize: vertical;
}
.adm-fields textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.adm-line-actions { padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.adm-line-desc { margin: -4px 0 14px; font-size: 13px; color: #666; display: flex; flex-direction: column; gap: 6px; white-space: pre-line; }
.adm-head-actions { flex-wrap: wrap; justify-content: flex-end; }

/* product 페이지 - 흰 유리 띠 위에서는 하위 메뉴도 흰 판 */
.page-shop .nav-mega { background: rgba(255, 255, 255, .5); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .25); text-shadow: none; }
/* 분류에 라인이 아직 없을 때 */
.line-empty-msg { margin-top: 1.2em; color: #888; }

/* 관리자 - 분류 */
.adm-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.adm-cat-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.adm-cat-list li:first-child { border-top: 0; }
.adm-cat-list li strong { min-width: 110px; }
.adm-cat-list li a.adm-muted { font-size: 13px; }
.adm-cat-list li a.adm-muted:hover { opacity: .7; }
.adm-cat-list .adm-line-actions { margin-left: auto; }
.adm-cat-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 10px; border-radius: 10px; background: var(--bg-soft); }
.adm-cat-form label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.adm-cat-form input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
.adm-cat-form .adm-error, .adm-cat-form small { flex-basis: 100%; margin: 0; }
.adm-cat-group { margin-top: 28px; }
.adm-cat-title { font-size: 18px; font-weight: 500; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.adm-cat-title small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; }

/* ===== story ▾ materials - 우리가 고르는 재료 (브랜드 스토리와 같은 틀, 글이 길어 읽기 좋게 왼쪽 정렬 본문) ===== */
.mat {
    position: relative; max-width: 40em; margin: 0 auto;
    font-size: clamp(14px, 1.1vw, 18px); line-height: 1.75;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.mat p { white-space: pre-line; }
.mat-intro { text-align: center; display: flex; flex-direction: column; gap: 1.1em; }
.mat-intro p { text-wrap: pretty; }   /* 줄바꿈될 때 마지막 단어 하나만 다음 줄에 떨어지지 않게 */
.mat-title { font-size: clamp(22px, 2vw, 34px); font-weight: 500; letter-spacing: .02em; }
.mat-lead { font-size: 1.25em; margin-top: .2em; }
.mat-group { margin-top: clamp(56px, 6vw, 96px); }
.mat-group-title {
    text-align: center; font-size: clamp(18px, 1.5vw, 26px); font-weight: 500;
    padding-bottom: .7em; margin-bottom: 1em; border-bottom: 1px solid rgba(255, 255, 255, .28);
}
.mat-group-desc { text-align: center; margin-bottom: 2.4em; opacity: .9; display: flex; flex-direction: column; gap: .9em; }
.mat-group-desc p, .mat-group-close p, .mat-entry p { text-wrap: pretty; }
.mat-entry + .mat-entry { margin-top: 2.2em; }
.mat-group-close { text-align: center; margin-top: 2.4em; display: flex; flex-direction: column; gap: .9em; }
.mat-entry h3 { margin: 0 0 .5em; font-size: 1.15em; font-weight: 500; line-height: 1.4; }
.mat-entry h3 small { margin-left: .4em; font-size: .78em; font-weight: 400; opacity: .7; }
.mat-flag { margin-right: .25em; }
.mat-entry p { white-space: normal; opacity: .92; }
.mat-entry p + p { margin-top: .8em; }
.story-materials .story-scroll { bottom: 0; }   /* 넘김 화살표가 없어 아래 띠까지 글을 쓴다 */

/* 결제 심사용 로그인 (/login/review) */
.review-form { width: min(320px, 82vw); display: flex; flex-direction: column; gap: .9em; text-align: left; }
.review-form label { display: flex; flex-direction: column; gap: .4em; font-size: 14px; }
.review-form input {
    box-sizing: border-box; width: 100%; height: 46px; padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px;
    background: rgba(0, 0, 0, .25); color: #fff; font: inherit; font-size: 16px;
}
.review-form input:focus { outline: 1px solid var(--ink); outline-offset: 2px; }
.review-form .auth-primary { margin-top: .4em; }
.notice > .auth-review-link { font-size: 13px; opacity: .7; }
.notice > .auth-review-link a { text-decoration: none; }
.notice > .auth-review-link a:hover { opacity: .7; }

/* ===== story ▾ aging - 시간이 입히는 색 (브랜드 스토리와 같은 틀, 가운데 정렬 본문) ===== */
.aging {
    position: relative; max-width: 36em; margin: 0 auto; text-align: center;
    font-size: clamp(14px, 1.15vw, 19px); line-height: 1.8;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.aging-title { font-size: clamp(22px, 2vw, 34px); font-weight: 500; letter-spacing: .02em; margin-bottom: 1.8em; }
.aging-title span { font-family: var(--script); font-weight: 400; font-size: 1.35em; }
.aging-text { display: flex; flex-direction: column; gap: 1.3em; }
.aging-text p { text-wrap: pretty; }
.aging-close { margin-top: 2.6em; font-size: 1.2em; }
.story-aging .story-scroll { bottom: 0; }   /* 넘김 화살표가 없어 아래 띠까지 글을 쓴다 */

/* ===== 오픈 전 product - Coming soon (notice 와 같은 가죽 배경) ===== */
.notice.coming-soon { gap: .6em; }
.notice > .coming-title { font-size: clamp(64px, 8vw, 150px); }
.notice > .coming-date { font-size: clamp(16px, 1.5vw, 26px); letter-spacing: .18em; }
