/* 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쪽: 브랜드 스토리 ===== */
/* 색·글꼴은 drop01.css 의 .story-tone */
.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);
}
.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; }

/* 페이지 넘김 화살표 */
.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-label { display: block; margin-bottom: .3em; text-align: center; font-size: clamp(13px, 1.1vw, 18px); line-height: 1.2; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.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; }
/* brand(/story) 의 "다음" 글씨 - 다음 이야기가 있다는 걸 알아채도록 위아래로 계속 살짝 움직인다 */
.page-arrow.--next .page-arrow-label { animation: arrow-bob 1.6s ease-in-out infinite; }
@keyframes arrow-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ===== 준비 중 / 에러 ===== */
.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; }
/* 마우스를 올리면 두 번째 이미지로 (drop01 카드처럼). 터치 기기는 탭하면 상세로 가므로 마우스가 있을 때만 */
.card-media { position: relative; display: block; }
.card-media img { transition: opacity .28s ease; }
.card-media .card-hover { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
    .card-link:hover .card-media:has(.card-hover) img:first-child { opacity: 0; }
    .card-link:hover .card-media .card-hover { opacity: 1; }
    .card.is-soldout .card-link:hover .card-media .card-hover { opacity: .45; }
}
.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); white-space: nowrap; flex: none; }   /* 좁은 카드에서 '79,' / '000원' 으로 꺾이지 않게 - 대신 이름이 줄바꿈된다 */

/* 품절 카드 */
.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 { color: var(--foot-ink); }
.site-footer-info a:hover { text-decoration: underline; }
.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; }
}

/* ===== 페이지 이동 시 부드럽게 전환 (지원 브라우저만) ===== */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    .mnav-dim, .mnav-panel { transition: none; }
    .page-arrow.--next .page-arrow-label { animation: 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-uploads { display: grid; gap: 10px; }
.adm-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.adm-check[hidden] { display: none; }
.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);
}

.adm-top, .adm-dim, .adm-side-close { display: none; }

@media (max-width: 900px) {
    /* 내용이 짧아도 남는 높이를 위쪽 막대에 나눠 주지 않게 (align-content: start) */
    .adm { grid-template-columns: 1fr; align-content: start; }
    /* 위쪽 막대: 햄버거(왼쪽 - 메뉴가 왼쪽에서 열리니까) + 로고(오른쪽) */
    .adm-top {
        position: sticky; top: 0; z-index: 30; display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between;
        height: 48px; box-sizing: border-box; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line);
    }
    .adm-top .adm-logo { font-size: 22px; }
    .adm-burger { all: unset; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 20px; height: 20px; padding: 8px; margin-left: -8px; }
    .adm-burger span { display: block; height: 2px; background: var(--ink); border-radius: 1px; }
    /* 왼쪽 서랍 메뉴 + 나머지를 덮는 어두운 막 */
    .adm-dim {
        display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .45);
        opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
    }
    .adm-side {
        position: fixed; z-index: 50; top: 0; left: 0; width: min(280px, 82vw); height: 100%; height: 100dvh;
        border-right: 1px solid var(--line); overflow-y: auto;
        transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
    }
    .adm-menu-open .adm-side { transform: none; visibility: visible; }
    .adm-menu-open .adm-dim { opacity: 1; visibility: visible; }
    .adm-menu-open { overflow: hidden; }
    .adm-side-close { all: unset; cursor: pointer; display: block; position: absolute; top: 18px; right: 14px; width: 32px; height: 32px; }
    .adm-side-close::before, .adm-side-close::after { content: ""; position: absolute; left: 7px; top: 15px; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; transform: rotate(45deg); }
    .adm-side-close::after { transform: rotate(-45deg); }
    .adm-nav a { padding: 12px 12px; }
    .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-gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pd-photo.is-photo { padding: 0; }
.pd-photo.is-photo img { aspect-ratio: 1; object-fit: cover; }
.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
    display: grid; place-items: center; padding: 0 0 3px; font: 400 28px/1 system-ui, sans-serif; color: #1A1A1A; cursor: pointer;
    background: rgba(255, 255, 255, .88); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: background .15s; }
.pd-nav:hover { background: #FFFFFF; }
.pd-nav:focus-visible { outline: 2px solid var(--accent, #3C4498); outline-offset: 2px; }
.pd-nav.--prev { left: 12px; }
.pd-nav.--next { right: 12px; }
.pd-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; font: 500 12px var(--mono, ui-monospace, monospace);
    color: #FFFFFF; background: rgba(0, 0, 0, .45); font-variant-numeric: tabular-nums; }
.pd-thumbs { list-style: none; margin: 0; padding: 2px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb { display: block; flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
    background: #FFFFFF; opacity: .55; transition: opacity .15s; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.pd-thumb.is-cutout img { padding: 8px; box-sizing: border-box; object-fit: contain; }
.pd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: .85; }
.pd-thumb[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 2px var(--accent, #3C4498); }
.pd-thumb:focus-visible { outline: 2px solid var(--accent, #3C4498); outline-offset: 2px; }
.pd-photo { touch-action: pan-y; }   /* 가로로 밀면 사진 넘기기, 세로는 페이지 스크롤 */
@media (hover: none) { .pd-nav { width: 38px; height: 38px; font-size: 24px; } }
.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; }
/* 분류에 라인이 아직 없을 때 */

/* 관리자 - 분류 */
.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; }

/* 결제 심사용 로그인 (/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-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, .story-edc .story-scroll { bottom: 0; }   /* 넘김 화살표가 없어 아래 띠까지 글을 쓴다 */

/* ===== story ▾ EDC - aging 본문 스타일에 부제 · 소제목 · 기준 세 줄만 더한다 ===== */
.edc-lead { margin: -1.2em 0 2.2em; font-size: 1.2em; }
.edc-head { margin-top: 1.8em; font-size: 1.2em; font-weight: 500; }
.edc-rules { font-size: 1.08em; }
.edc-links { margin-top: 3.4em; }
.edc-links ul { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6em 1.4em; }
/* YouTube 공식 임베드: 16:9 고화질 썸네일 + 가운데 재생 표시 → 누르면 같은 자리에 플레이어 */
.edc-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden;
    border-radius: 6px; background: #000; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .6); }
.edc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.edc-thumb.js-yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -13px 0 0 -8px;
    border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent rgba(255, 255, 255, .9);
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .6)); }
.edc-thumb.js-yt:hover img { transform: scale(1.03); }
.edc-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.edc-video-title { display: block; margin-top: .7em; font-size: .92em; line-height: 1.5; }
.edc-links small { display: block; margin-top: .1em; font-size: .75em; opacity: .7; }
@media (max-width: 767px) { .edc-links ul { grid-template-columns: 1fr; } }

/* ===== 오픈 전 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; }

/* ===== 관리자 - 방문 분석 (admin-analytics.js) ===== */
.adm-an-tabs { display: flex; gap: 6px; }
.adm-an-filters { display: flex; gap: 18px; margin-top: -6px; font-size: 13px; color: var(--muted); }
.adm-an-filters label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.adm-an-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.adm-an-date { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.adm-an-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; font-size: 13px; }
.adm-an-pager[hidden] { display: none; }
.js-an-panel { display: flex; flex-direction: column; gap: 14px; }
.js-an-panel[hidden] { display: none; }
.adm-an-stats { grid-template-columns: repeat(6, 1fr); }
.adm-an-stats strong { font-size: 24px; }
.adm-an-grid2 { grid-template-columns: 1fr 1fr; }
.adm-an-pad { padding: 10px 18px 0; margin-bottom: 4px; }

/* 일별 IP */
.adm-an-row { cursor: pointer; }
.adm-an-row:hover td, .adm-an-row.is-open td { background: var(--bg-soft); }
.adm-an-row.is-bot td { color: #999; }
.adm-an-ip { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.adm-an-times { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.adm-an-times strong { margin-right: 4px; font-weight: 500; }
.adm-an-chip { padding: 1px 7px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 12px; font-variant-numeric: tabular-nums; }
.adm-an-stage { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; white-space: nowrap; background: var(--bg-soft); color: #666; }
.adm-an-stage.--s1, .adm-an-stage.--s2 { background: #f3ebe4; color: var(--accent); }
.adm-an-stage.--s3, .adm-an-stage.--s4 { background: #fbe9d6; color: #9a5a00; }
.adm-an-stage.--s5 { background: #e3f1e6; color: #1e7a37; }
.adm-an-detail > td { background: #fbfaf8; padding: 14px 18px 18px; }
.adm-an-session + .adm-an-session { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.adm-an-session-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #555; }
.adm-an-session-head .adm-btn { margin-left: auto; }
.adm-an-path { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; }
.adm-an-path li { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.adm-an-path li + li::before { content: "→"; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.adm-an-path time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.adm-an-path em { font-style: normal; color: var(--muted); font-size: 11px; }
.adm-an-path li.is-event { border-color: var(--accent); color: var(--accent); }
.adm-an-visitor { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; }
.adm-an-visitor p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }

/* 통계 - 막대·표 */
.adm-an-daily { display: flex; align-items: flex-end; gap: 4px; height: 180px; overflow-x: auto; }
.adm-an-day { flex: 1 0 22px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.adm-an-day i { display: block; width: 70%; min-height: 1px; background: var(--accent); border-radius: 3px 3px 0 0; }
.adm-an-day-num { font-size: 11px; color: #555; }
.adm-an-day-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.adm-an-heat { border-collapse: separate; border-spacing: 2px; font-size: 11px; width: 100%; }
.adm-an-heat th { font-weight: 400; color: var(--muted); padding: 2px; }
.adm-an-heat td { min-width: 22px; height: 24px; text-align: center; border-radius: 4px; font-variant-numeric: tabular-nums;
    background: color-mix(in srgb, var(--accent) calc(var(--a) * 100%), #f4f1ec); color: #5b3b26; }
.adm-an-heat td.is-hot { color: #fff; }
.adm-an-bars, .adm-an-funnel { display: flex; flex-direction: column; gap: 6px; }
.adm-an-bar-row { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.adm-an-bar-row i { display: block; height: 14px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.adm-an-bar-row b { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.adm-an-bar-row em { font-style: normal; color: #555; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-an-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.adm-an-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.adm-an-list li:first-child { border-top: 0; }
@media (max-width: 900px) {
    .adm-an-stats { grid-template-columns: repeat(3, 1fr); }
    .adm-an-grid2 { grid-template-columns: 1fr; }
}
/* 모바일: 일별 IP 표 → 한 IP 당 카드 한 장 (좌우 스크롤 없이)
   1줄 IP · 단계 / 2줄 들어온 시각 / 3줄 페이지 · 기기·유입 · 회원 */
@media (max-width: 767px) {
    .adm-an-stats { grid-template-columns: repeat(2, 1fr); }
    .adm-an-ips, .adm-an-ips tbody { display: block; }
    .adm-an-ips thead { display: none; }
    .adm-an-ips td { border: 0; padding: 0; }
    .adm-an-row {
        display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center;
        padding: 14px 16px; border-top: 1px solid var(--line);
    }
    .adm-an-row:first-child { border-top: 0; }
    .adm-an-row:hover td, .adm-an-row.is-open td { background: none; }
    .adm-an-row:hover, .adm-an-row.is-open { background: var(--bg-soft); }
    .adm-an-row .adm-an-ip { font-size: 15px; }
    .adm-an-c-stage { justify-self: end; }
    .adm-an-c-times { grid-column: 1 / -1; order: 3; }
    .adm-an-c-pages, .adm-an-c-src, .adm-an-c-member { grid-column: 1 / -1; font-size: 13px; overflow-wrap: anywhere; }
    .adm-an-c-pages { order: 4; color: #555; }
    .adm-an-c-pages::after { content: " " attr(data-unit); }
    .adm-an-c-src { order: 5; margin-top: -4px; }
    .adm-an-c-member { order: 6; margin-top: -4px; color: #555; }
    .adm-an-c-member::before { content: attr(data-label) " "; color: var(--muted); }
    .adm-an-c-member[data-empty] { display: none; }
    .adm-an-ips tr:not(.adm-an-row):not(.adm-an-detail) { display: block; padding: 14px 16px; }
    .adm-an-detail { display: block; }
    .adm-an-detail[hidden] { display: none; }
    .adm-an-detail > td { display: block; padding: 12px 14px 16px; border-top: 1px dashed var(--line); }
    .adm-an-session-head { gap: 6px 10px; }
    .adm-an-session-head .adm-btn { margin-left: 0; }
    /* 동선은 세로로: 한 줄에 한 화면 (줄바꿈된 화살표가 왼쪽 밖으로 튀지 않게) */
    .adm-an-path { flex-direction: column; align-items: flex-start; gap: 0; }
    .adm-an-path li { max-width: 100%; box-sizing: border-box; flex-wrap: wrap; }
    .adm-an-path li + li { margin-top: 18px; }
    .adm-an-path li + li::before { content: "↓"; left: 12px; top: -16px; transform: none; font-size: 12px; line-height: 14px; }
    /* 시간대 × 요일: 24칸을 화면 폭에 맞춘다 - 숫자는 빼고 색으로만, 시간 머리글은 3시간마다 */
    .adm-an-heat { table-layout: fixed; border-spacing: 1px; }
    .adm-an-heat th { padding: 1px 0; font-size: 9px; }
    .adm-an-heat thead th:not(:nth-child(3n+2)) { color: transparent; }
    .adm-an-heat tbody th { width: 16px; }
    .adm-an-heat td { min-width: 0; height: 18px; font-size: 0; border-radius: 2px; }
}

/* =====================================================================
   제품 상세 - 구매 (수량 + 구매하기 + 제작·환불 안내)
   ===================================================================== */
.pd-buy { display: flex; gap: 10px; align-items: stretch; margin-top: 14px; }
.pd-qty { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #666; }
.pd-qty select, .co-qty select { font: inherit; color: #111; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
/* 수량 고르기 - 브라우저 기본 모양(특히 iOS 사파리의 회색 버튼)을 끄고, 구매하기 버튼과 같은 알약 모양 + 직접 그린 화살표 */
.pd-qty select, .co-qty select {
    -webkit-appearance: none; appearance: none; box-sizing: border-box;
    height: 52px; min-width: 88px; padding: 0 40px 0 20px; border: 1px solid #D6D6D6; border-radius: 999px;   /* 52px = 구매하기 버튼 높이 */
    font-size: 16px; font-variant-numeric: tabular-nums; line-height: 50px; color: #1A1A1A; cursor: pointer;
    background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A1A1A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
}
.pd-qty select:hover, .co-qty select:hover { border-color: #9A9A9A; }
.pd-qty select:focus-visible, .co-qty select:focus-visible { outline: 2px solid var(--accent, #3C4498); outline-offset: 2px; }
.pd-buy-btn { flex: 1 1 auto; padding: 14px 20px; border: 0; border-radius: 6px; background: #111; color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.pd-buy-btn:hover { background: #333; }
.pd-notice { margin: 6px 0 0; padding: 12px 14px 12px 30px; background: #f6f3ef; border-radius: 6px; font-size: 13px; line-height: 1.7; color: #5a4a3c; }

/* =====================================================================
   주문서 · 주문 결과 (흰 바탕 shop 화면)
   ===================================================================== */
.co { max-width: 720px; margin: 0 auto; padding: clamp(24px, 3vw, 48px) var(--edge) clamp(56px, 7vw, 120px); }
.co-title { font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; margin: 0 0 clamp(18px, 2vw, 28px); }
.co-box { padding: 22px 0; border-top: 1px solid #e3e3e3; }
.co-box[hidden] { display: none; }
.co-box > h2 { margin: 0 0 14px; font-size: 17px; font-weight: 500; }
.co-item { display: flex; align-items: center; gap: 16px; }
.co-item img { width: 88px; height: 88px; object-fit: cover; background: #ececec; flex: 0 0 auto; }
.co-item-info { flex: 1 1 auto; min-width: 0; }
.co-item-line { font-size: 13px; color: #777; }
.co-item-name { font-size: 17px; margin: 2px 0; }
.co-item-price { font-size: 15px; color: #444; }
.co-qty { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #666; }
.co-soldout { margin-top: 10px; color: #b3261e; font-size: 14px; }
.co-addr-tabs { display: flex; gap: 18px; margin-bottom: 10px; font-size: 15px; }
.co-addr-tabs[hidden], .co-addr-default[hidden], .co-addr-new[hidden] { display: none; }
.co-addr-tabs label, .co-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.co-addr-default { padding: 12px 14px; background: #f6f6f6; border-radius: 6px; line-height: 1.6; }
.co-addr-new { display: flex; flex-direction: column; gap: 8px; }
.co-row { display: flex; gap: 8px; }
.co-row input { flex: 1 1 auto; min-width: 0; }
.co input[type="text"], .co input[type="tel"] { width: 100%; font: inherit; font-size: 15px; color: #111; padding: 11px 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
.co input[readonly] { background: #f6f6f6; }
.co input:focus-visible, .co select:focus-visible { outline: 2px solid #8a4b25; outline-offset: 1px; }
.co-btn-line { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border: 1px solid #111; border-radius: 6px; background: #fff; color: #111; font: inherit; font-size: 15px; cursor: pointer; }
.co-btn-line:hover { background: #f3f3f3; }
.co-check { font-size: 14px; color: #444; }
.co-check input, .co-addr-tabs input { width: 17px; height: 17px; accent-color: #111; }
.co-fields { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.co-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #555; }
.co-fields small { color: #999; }
.co-notice ul, .co-notice-list { margin: 0 0 14px; padding: 14px 16px 14px 32px; background: #f6f3ef; border-radius: 6px; font-size: 14px; line-height: 1.75; color: #4a3c30; }
.co-notice strong { font-weight: 600; }
.co-agree { font-size: 15px; color: #111; }
.co-wait { font-size: 14px; color: #888; }
.co-wait[hidden] { display: none; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-top: 1px solid #111; font-size: 16px; }
.co-total strong { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; }
.co-msg { margin: 0 0 12px; color: #b3261e; font-size: 14px; }
.co-msg[hidden] { display: none; }
.co-pay { display: flex; align-items: center; justify-content: center; width: 100%; padding: 16px; border: 0; border-radius: 6px; background: #111; color: #fff; font: inherit; font-size: 17px; cursor: pointer; text-decoration: none; }
.co-pay:hover { background: #333; }
.co-pay:disabled { background: #999; cursor: not-allowed; }
.co-pay[hidden] { display: none; }
.co-result { text-align: left; }
.co-res-lead { margin: -8px 0 18px; color: #555; line-height: 1.7; }
.co-dl { margin: 0 0 16px; }
.co-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #eee; font-size: 15px; }
.co-dl dt { color: #777; flex: 0 0 auto; }
.co-dl dd { margin: 0; text-align: right; word-break: break-all; }
.co-res-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
@media (max-width: 767px) {
    .pd-buy { flex-wrap: wrap; }
    .pd-buy-btn { flex-basis: 100%; }
    .co-item { flex-wrap: wrap; }
    .co-qty { flex-direction: row; align-items: center; margin-left: 104px; }
}

/* =====================================================================
   마이페이지 - 연락처 · 주문 내역 (어두운 notice 화면)
   ===================================================================== */
.mp-inline { all: unset; cursor: pointer; margin-left: .5em; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.mp-inline:hover { opacity: 1; }
.mp-inline:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.mp-orders { width: min(560px, 92vw); margin-top: 1em; text-align: left; }
.mp-orders[hidden] { display: none; }
.mp-orders > h2 { font-size: 18px; font-weight: 500; margin: 0 0 .6em; }
.mp-order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mp-order { padding: 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; background: rgba(0, 0, 0, .25); font-size: 14px; line-height: 1.6; }
.mp-order-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; opacity: .75; }
.mp-order-no { font-family: ui-monospace, monospace; }
.mp-order-name { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 4px; align-items: flex-start; font-size: 15px; }
/* 주문 제품: 작은 사진 + 이름 (누르면 제품 페이지) */
.mp-order-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mp-order-item { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.mp-order-item img, .mp-order-thumb-empty { flex: none; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #F4F4F4; }
.mp-order-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-order-item-text b { font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.mp-order-item:hover b, .mp-order-item:focus-visible b { text-decoration-color: currentColor; }
.mp-order-item-text small { font-size: 12px; opacity: .7; }
.mp-order-item:focus-visible { outline: 2px solid var(--accent, #3C4498); outline-offset: 3px; border-radius: 10px; }
.mp-order-name strong { font-weight: 500; white-space: nowrap; }
.mp-order-status { font-weight: 500; }
.mp-order-status.--canceled, .mp-order-status.--canceling, .mp-order-status.--partial_canceled { opacity: .7; }
.mp-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 6px; padding: 0; font-size: 12px; text-align: center; }
.mp-steps li { padding: 6px 2px; border-top: 3px solid rgba(255, 255, 255, .25); opacity: .6; }
.mp-steps li.is-done { border-top-color: rgba(255, 255, 255, .7); opacity: .85; }
.mp-steps li.is-now { border-top-color: #fff; opacity: 1; font-weight: 600; }
.mp-order-note { font-size: 12px; opacity: .75; }
.mp-tracking { margin-top: 8px; padding: 8px 10px; background: rgba(255, 255, 255, .1); border-radius: 6px; }
.mp-tracking strong { font-family: ui-monospace, monospace; letter-spacing: .02em; }
.mp-tracking small { display: block; font-size: 12px; opacity: .7; }
.mp-order-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.mp-order-foot a { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.mp-refund { all: unset; cursor: pointer; margin-left: auto; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 6px; font-size: 13px; }
.mp-refund:hover { background: rgba(255, 255, 255, .12); }
.mp-refund:disabled { opacity: .5; cursor: progress; }
.mp-norefund { margin-left: auto; font-size: 12px; opacity: .75; }
.mp-orders-empty { opacity: .7; font-size: 14px; }
.mp-orders-empty[hidden] { display: none; }

/* =====================================================================
   관리자 - 주문
   ===================================================================== */
.adm-ord-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.adm-ord-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.adm-ord-tab:hover { background: var(--bg-soft); }
.adm-ord-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.adm-ord-count { font-size: 12px; opacity: .7; }
.adm-ord-row { cursor: pointer; }
.adm-ord-row:hover td { background: var(--bg-soft); }
.adm-ord-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.adm-ord-no { font-family: ui-monospace, monospace; font-size: 12px; white-space: nowrap; }
.adm-ord-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap; background: #eee; color: #333; }
.adm-ord-badge.--paid, .adm-ord-badge.--shipped { background: #e6f4ea; color: #1e6b34; }
.adm-ord-badge.--waiting { background: #fff4e0; color: #8a5a00; }
.adm-ord-badge.--making, .adm-ord-badge.--made { background: #e8eefc; color: #2448a8; }
.adm-ord-badge.--confirming, .adm-ord-badge.--canceling { background: #fff4e0; color: #8a5a00; }
.adm-ord-badge.--canceled, .adm-ord-badge.--partial_canceled, .adm-ord-badge.--failed, .adm-ord-badge.--expired { background: #fbeaea; color: #9b2c2c; }
.adm-ord-detail { margin-top: 18px; scroll-margin-top: 64px; }
.adm-ord-detail[hidden] { display: none; }
.adm-ord-detail h3 { margin: 22px 0 8px; font-size: 14px; font-weight: 600; }
.adm-ord-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.adm-ord-status .adm-help { margin: 0; }
.adm-ord-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; margin-bottom: 14px; background: var(--bg-soft); border-radius: 10px; }
.adm-ord-ship { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-ord-ship input { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; width: 160px; }
.adm-ord-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.adm-ord-dl { margin: 0; }
.adm-ord-dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm-ord-dl dt { color: #777; }
.adm-ord-dl dd { margin: 0; word-break: break-all; }
.adm-ord-dl a { color: var(--accent); text-decoration: underline; }
.adm-ord-log { font-size: 13px; }
@media (max-width: 900px) {
    .adm-ord-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    /* 목록: 한 주문 = 카드 한 장 (가로 스크롤 없이) */
    .adm-ord-table thead { display: none; }
    .adm-ord-table tr.adm-ord-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
    .adm-ord-table tr.adm-ord-row td { padding: 0; border: 0; }
    .adm-ord-table tr.adm-ord-row td:nth-child(1) { font-size: 12px; color: #777; }
    .adm-ord-table tr.adm-ord-row td:nth-child(2) { text-align: right; }
    .adm-ord-table tr.adm-ord-row td:nth-child(4) { grid-column: 1 / -1; font-weight: 500; }
    .adm-ord-dl > div { grid-template-columns: 92px 1fr; }
    .adm-ord-log thead { display: none; }
    .adm-ord-log tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
    .adm-ord-log td { display: inline; padding: 0 6px 0 0; border: 0; }
}
/* 마이페이지는 주문 내역으로 길어진다 - 하단 링크를 화면 바닥에 띄우지 않고 내용 뒤에 둔다 (겹침 방지) */
.notice.mypage > .auth-foot { position: static; margin-top: 1.2em; }
.notice.mypage { padding-top: max(calc(var(--edge) * 3), 96px); padding-bottom: calc(var(--edge) * 2); }   /* 위 로고 띠와 겹치지 않게 (동의 페이지와 같은 여백) */

/* =====================================================================
   비회원 주문 - 주문서(주문 방법 선택 · 주문자 정보 · 개인정보 동의) · 비회원 주문조회
   ===================================================================== */
.co input[type="email"], .co input[type="password"] { width: 100%; font: inherit; font-size: 15px; color: #111; padding: 11px 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
.co-box > h2 small { font-size: 13px; font-weight: 400; color: #999; }
.co-check[hidden], .js-co-form[hidden] { display: none; }
.co-box > .co-check:first-of-type { margin-bottom: 4px; }
.co-help { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: #666; }
.co-help a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.co-notice .co-help { margin: 0 0 12px; }
.co-choice-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: #555; }
.co-choice-btns { display: flex; flex-direction: column; gap: 10px; }
.co-choice-btns .co-btn-line { padding: 15px; font-size: 16px; text-decoration: none; }
.co-dl.--stack > div { flex-direction: column; gap: 2px; }
.co-dl.--stack dd { text-align: left; font-size: 14px; line-height: 1.6; word-break: keep-all; }
.co-dl.--stack dt { font-size: 13px; }
.gl-form { display: flex; flex-direction: column; gap: 12px; }
.gl-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #555; }
.gl-form .co-pay { margin-top: 6px; }
.gl-result[hidden] { display: none; }
.gl-result .mp-order-list { list-style: none; margin: 0; padding: 0; }
/* 주문 카드(마이페이지와 같은 구조)를 흰 화면 색으로 */
.co .mp-order { border: 1px solid #e3e3e3; background: #fff; color: #111; }
.co .mp-steps li { border-top-color: #e3e3e3; }
.co .mp-steps li.is-done { border-top-color: #999; }
.co .mp-steps li.is-now { border-top-color: #111; }
.co .mp-tracking { background: #f6f6f6; }
.co .mp-refund { border-color: #111; }
.co .mp-refund:hover { background: #f3f3f3; }
.co .mp-inline:focus-visible, .co .mp-refund:focus-visible { outline: 2px solid #8a4b25; outline-offset: 2px; }
.gl-guide { margin-top: 18px; font-size: 13px; line-height: 1.7; color: #666; }
.gl-guide a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.auth-guest-link { margin-top: 1.4em; font-size: 14px; }
.auth-guest-link a { text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.auth-guest-link a:hover { opacity: 1; }
.co-res-guest { padding: 14px 16px; list-style: none; }
.co-res-guest[hidden] { display: none; }
.co-res-guest a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.co-result .mp-inline { margin-left: .4em; }

/* ===== 마이페이지 불러오는 중 (스켈레톤) - 값 자리와 주문 카드 자리가 은은하게 반짝인다 (js 가 .sk 를 지운다) ===== */
.mypage .sk { display: inline-block; min-width: 9em; color: transparent !important; border-radius: 6px; user-select: none;
    background: linear-gradient(90deg, rgba(0,0,0,.07) 25%, rgba(0,0,0,.03) 37%, rgba(0,0,0,.07) 63%); background-size: 400% 100%;
    animation: sk-shimmer 1.3s ease infinite; }
.mypage .js-marketing-text.sk { min-width: 4em; }
.mypage .sk-card { display: block; height: 96px; margin-top: 12px; border-radius: 12px;
    background: linear-gradient(90deg, rgba(0,0,0,.06) 25%, rgba(0,0,0,.025) 37%, rgba(0,0,0,.06) 63%); background-size: 400% 100%;
    animation: sk-shimmer 1.3s ease infinite; }
@keyframes sk-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .mypage .sk, .mypage .sk-card { animation: none; } }

/* ===== 로그인 · 동의 · 마이페이지 · 오류 톤앤매너 (2026-11-12, 메인과 같게): 연회색 바탕 · 검정 글자 · 포인트 코발트 블루
   (바탕색 · 제목색은 tone.css .notice. Coming soon 만 코발트 바탕이라 제외) ===== */
.notice:not(.coming-soon) > .top-nav { --ink: #FFFFFF; color: #FFFFFF; }                    /* 상단 메뉴는 검정 띠 위 흰 글자 그대로 */
.notice .auth-info > div { border-bottom-color: rgba(0, 0, 0, .12); }
.notice .auth-info dt { opacity: 1; color: #6B6B6B; }
.notice .auth-outline { border-color: rgba(0, 0, 0, .25); color: #1A1A1A; }
.notice .auth-outline:hover { background: rgba(0, 0, 0, .05); }
.notice .addr-form input { background: #FFFFFF; color: #1A1A1A; border-color: rgba(0, 0, 0, .15); }
.notice .addr-form input[readonly] { background: #EDEDED; }
.notice .addr-form input::placeholder { color: #9A9A9A; }
.notice .switch-track { background: rgba(0, 0, 0, .18); }
.notice .switch input:checked + .switch-track { background: var(--accent); }
.notice .switch input:checked + .switch-track::after { background: #FFFFFF; }
.notice .mp-order { border-color: rgba(0, 0, 0, .1); background: #FFFFFF; }
.notice > .auth-msg, .notice .auth-msg { color: #C0392B; }
.notice .auth-foot { color: #6B6B6B; }
.notice .agree-all { border-bottom-color: rgba(0, 0, 0, .15); }
.notice .agree-box input[type="checkbox"] { accent-color: var(--accent); }
.notice .agree-detail th, .notice .agree-detail td { border-bottom-color: rgba(0, 0, 0, .1); }
/* 약관 표 · 초안 표시 - 흰 바탕용 */
.legal-doc th, .legal-doc td { border-bottom-color: rgba(0, 0, 0, .12); }

/* ===== 관리자 > 메인 (히어로 · drop01 카드 · 색 칩 · 오늘의 무드) - admin-home.js ===== */
.adm-home { display: flex; flex-direction: column; gap: 18px; }
.adm-home-hero { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.adm-home-slot { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.adm-home-slot > b { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.adm-home-slot label { display: flex; flex-direction: column; gap: 4px; color: #555; }
.adm-home-slot input[type="text"] { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.adm-home-img { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #555; }
.adm-home-img-box { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 1px dashed var(--line); border-radius: 10px; overflow: hidden; cursor: pointer;
    background: repeating-conic-gradient(#f2f2f2 0 25%, #fff 0 50%) 0 0 / 16px 16px; color: var(--muted); }   /* 체크 무늬 = 투명 배경이 보이게 */
.adm-home-img-box:hover { border-color: var(--accent); }
.adm-home-img-box img { width: 100%; height: 100%; object-fit: contain; }
.adm-home-img-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-home-card { margin-bottom: 14px; }
.adm-home-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.adm-home-row.--checks { display: flex; flex-wrap: wrap; gap: 16px; }
.adm-home-row input[type="color"] { width: 100%; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.adm-home-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.adm-home-actions .adm-check { margin-right: auto; }
.adm-home-items { display: flex; flex-direction: column; gap: 8px; }
.adm-home-item { border: 1px solid var(--line); border-radius: 12px; }
.adm-home-item > summary { display: flex; align-items: center; gap: 12px; padding: 8px 12px; cursor: pointer; list-style: none; }
.adm-home-item > summary::-webkit-details-marker { display: none; }
.adm-home-item > summary img { width: 40px; height: 40px; object-fit: contain; }
.adm-home-item > summary b { font-weight: 500; }
.adm-home-tags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.adm-home-tags i { font-style: normal; font-size: 12px; padding: 3px 8px 3px 20px; border-radius: 999px; background: var(--bg-soft, #f4f4f4); position: relative; }
.adm-home-tags i::before { content: ""; position: absolute; left: 7px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.adm-home-tags i.--off { color: var(--muted); padding-left: 8px; }
.adm-home-tags i.--off::before { content: none; }
.adm-home-item-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 4px 12px 14px; }
.adm-home-sub { display: flex; flex-direction: column; gap: 10px; }
.adm-home-sub h4 { margin: 4px 0 0; font-size: 14px; font-weight: 500; }
.adm-home-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 140px)); gap: 10px; }
@media (max-width: 900px) { .adm-home-item-body { grid-template-columns: 1fr; } }
.adm-fields .adm-check { flex-direction: row; align-items: center; color: #555; }
.adm-fields .adm-check input { width: auto; height: auto; }

/* ===== 관리자 > 제품 수정 > 추가 사진 ===== */
.adm-gallery { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.adm-gallery[hidden] { display: none; }
.adm-gallery h3 { margin: 0; font-size: 15px; font-weight: 500; }
.adm-gallery h3 small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.adm-gallery .adm-help { margin: 0; }
.adm-gallery-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; width: 100%; }
.adm-gallery-list:empty { display: none; }
.adm-gallery-list li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.adm-gallery-list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.adm-gallery-no { position: absolute; top: 6px; left: 6px; min-width: 20px; padding: 2px 6px; border-radius: 999px; font-size: 11px; text-align: center; color: #fff; background: rgba(0, 0, 0, .55); }
.adm-gallery-actions { display: flex; gap: 4px; }
.adm-gallery-actions .adm-btn { flex: 1; padding: 0 6px; }
.adm-gallery-add { position: relative; overflow: hidden; cursor: pointer; }
.adm-gallery-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ===== 마이페이지 · 비회원 주문조회 - 구매 리뷰 (발송 완료 후) ===== */
.mp-reviews { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(0, 0, 0, .12); }
.mp-review { display: flex; flex-direction: column; gap: 8px; }
.mp-review-label { font-size: 12px; opacity: .7; }
.mp-review-mine p { margin: 2px 0 0; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.mp-review-hidden { color: #C0392B; font-size: 12px; }
.mp-stars { color: #3C4498; letter-spacing: 1px; font-size: 14px; }
.mp-review-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.mp-review-write, .mp-review-save { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
    color: #FFFFFF; background: var(--accent, #3C4498); }
.mp-review-write { align-self: flex-start; }
.mp-review-write:hover, .mp-review-save:hover { filter: brightness(1.1); }
.mp-review-save:disabled { opacity: .5; cursor: progress; }
.mp-review-write:focus-visible, .mp-review-save:focus-visible { outline: 2px solid var(--accent, #3C4498); outline-offset: 2px; }
.mp-stars-input { display: flex; gap: 2px; }
.mp-star { all: unset; cursor: pointer; font-size: 28px; line-height: 1; color: #D6D6D6; padding: 2px; }
.mp-star.is-on { color: var(--accent, #3C4498); }
.mp-star:focus-visible { outline: 2px solid var(--accent, #3C4498); border-radius: 4px; }
.mp-review textarea { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 10px;
    font: inherit; font-size: 14px; line-height: 1.6; resize: vertical; background: #FFFFFF; color: #1A1A1A; }
.mp-review textarea:focus-visible { outline: 2px solid var(--accent, #3C4498); outline-offset: 0; border-color: transparent; }
.mp-review-count { align-self: flex-end; font-size: 11px; opacity: .6; margin-top: -4px; }
.mp-review-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-review-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #F4F4F4; }
.mp-review-photos.--edit span { position: relative; }
.mp-review-photos.--edit span button { all: unset; cursor: pointer; position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; font-size: 13px; color: #FFFFFF; background: rgba(0, 0, 0, .65); }
.mp-review-add { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border: 1px dashed rgba(0, 0, 0, .25); border-radius: 8px;
    font-size: 12px; color: #6B6B6B; cursor: pointer; overflow: hidden; }
.mp-review-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mp-review-msg { margin: 0; font-size: 13px; color: #C0392B; }
.mp-review-msg[hidden] { display: none; }

/* ===== 제품 상세 - 구매 리뷰 ===== */
.pd-rating { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14px; color: #1A1A1A; text-decoration: none; }
.pd-rating-stars { color: var(--accent, #3C4498); }
.pd-rating span:last-child { color: #6B6B6B; text-decoration: underline; text-underline-offset: 3px; }
.pd-reviews { margin-top: clamp(40px, 6vw, 80px); padding-top: 28px; border-top: 1px solid rgba(0, 0, 0, .1); }
.pd-reviews h2 { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.pd-reviews h2 small { margin-left: 4px; font-size: 18px; font-weight: 500; color: #6B6B6B; }
.pd-review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding: 20px 24px; margin-bottom: 18px; border-radius: 16px; background: #FFFFFF; }
.pd-review-avg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pd-review-avg strong { font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.pd-review-stars { color: var(--accent, #3C4498); letter-spacing: 1px; }
.pd-review-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; max-width: 360px; }
.pd-review-bars li { display: grid; grid-template-columns: 32px 1fr 28px; align-items: center; gap: 8px; font-size: 12px; color: #6B6B6B; }
.pd-review-bars i { height: 6px; border-radius: 3px; background: #EDEDED; overflow: hidden; }
.pd-review-bars b { display: block; height: 100%; background: var(--accent, #3C4498); }
.pd-review-bars small { text-align: right; font-variant-numeric: tabular-nums; }
.pd-review-empty { color: #6B6B6B; font-size: 14px; }
.pd-review-list { list-style: none; margin: 0; padding: 0; }
.pd-review { padding: 18px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); display: flex; flex-direction: column; gap: 6px; }
.pd-review-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.pd-review-meta { color: #6B6B6B; }
.pd-review-meta b { font-weight: 500; color: #1A1A1A; }
.pd-review-option { margin: 0; font-size: 12px; color: #6B6B6B; }
.pd-review-text { margin: 0; font-size: 15px; line-height: 1.7; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
.pd-review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pd-review-photos img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #EDEDED; }
.pd-review-more { all: unset; box-sizing: border-box; display: block; margin: 20px auto 0; padding: 12px 28px; cursor: pointer; font-size: 14px;
    border: 1px solid #D6D6D6; border-radius: 999px; background: #FFFFFF; color: #1A1A1A; }
.pd-review-more:hover { border-color: #9A9A9A; }
.pd-review-more:focus-visible { outline: 2px solid var(--accent, #3C4498); outline-offset: 2px; }

/* ===== 관리자 > 리뷰 ===== */
.adm-reviews { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.adm-review { display: flex; flex-direction: column; gap: 8px; }
.adm-review.is-hidden { opacity: .55; }
.adm-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; }
.adm-review-head .adm-btn { margin-left: auto; }
.adm-review-stars { color: #3C4498; letter-spacing: 1px; }
.adm-review-text { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.adm-review-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-review-photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

/* ===== 제품 상세 본문 - 꾸민 레이아웃 (관리자 상세 HTML 의 dt-* class. 저장 규칙상 class 는 dt-* 만 남는다) =====
   메인과 같은 톤: 흰 / 연회색 바탕 · 검정 글자 · 포인트 코발트 블루, 제목은 Black Han Sans, 라벨은 IBM Plex Mono */
.pd-body .dt { --dt-accent: #3C4498; --dt-muted: #6B6B6B; --dt-line: rgba(0, 0, 0, .1); color: #1A1A1A; }
.pd-body .dt p { max-width: 62ch; }
.pd-body .dt h2 { margin: 6px 0 18px; font-family: var(--kr, "Black Han Sans", sans-serif); font-weight: 400; font-size: clamp(26px, 4.2vw, 36px); line-height: 1.2; word-break: keep-all; text-wrap: balance; }
.pd-body .dt-eyebrow { margin: 0; font: 500 11px var(--mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--dt-accent); }
.pd-body .dt-hero { text-align: center; padding: 24px 0 48px; display: grid; gap: 10px; justify-items: center; }
.pd-body .dt-name { margin: 0; font-family: var(--script, "Pinyon Script", cursive); font-size: clamp(60px, 11vw, 96px); line-height: 1; color: var(--dt-accent); }
.pd-body .dt-lead { margin: 0; font-family: var(--kr, "Black Han Sans", sans-serif); font-size: clamp(22px, 3.6vw, 30px); line-height: 1.3; }
.pd-body .dt-sub { margin: 0; font-size: 14px; color: var(--dt-muted); }
.pd-body .dt-sec { padding: 56px 0; border-top: 1px solid var(--dt-line); }
.pd-body .dt-dark { border-top: 0; margin: 0 calc(-1 * clamp(0px, 3vw, 32px)); padding: 56px clamp(20px, 4vw, 40px); border-radius: 20px; background: #0E0C0B; color: #FFFFFF; text-align: center; }
.pd-body .dt-dark + .dt-sec { border-top: 0; }
.pd-body .dt-dark p { margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, .78); }
.pd-body .dt-dark .dt-eyebrow { color: #8A93F0; }
.pd-body .dt-answer { margin: 22px auto 10px !important; font-family: var(--kr, "Black Han Sans", sans-serif); font-size: clamp(22px, 3.8vw, 30px); color: #8A93F0 !important; }
.pd-body .dt-big { font-size: 18px; }
.pd-body .dt-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.pd-body .dt-list li { padding: 14px 18px; border-radius: 14px; background: #FFFFFF; }
.pd-body .dt-list li b { display: block; color: var(--dt-accent); }
.pd-body .dt-fig { margin: 22px 0; padding: 18px 20px; border-radius: 16px; background: #FFFFFF; }
.pd-body .dt-fig img { margin: 8px 0; width: 100%; border-radius: 8px; }
.pd-body .dt-fig p { margin: 0; font-size: 14px; color: var(--dt-muted); }
.pd-body .dt-fig .dt-fig-title { font-weight: 700; color: #1A1A1A; font-size: 15px; }
.pd-body .dt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.pd-body .dt-card { padding: 16px 18px; border-radius: 14px; background: #FFFFFF; display: grid; gap: 4px; align-content: start; }
.pd-body .dt-card b { font-size: 16px; }
.pd-body .dt-card span { font-size: 14px; line-height: 1.65; color: var(--dt-muted); }
.pd-body .dt-photo { margin: 26px 0 0; }
.pd-body .dt-photo img { margin: 0; width: 100%; border-radius: 16px; }
.pd-body .dt-photo figcaption { padding-top: 8px; font-size: 13px; color: var(--dt-muted); }
.pd-body .dt-spec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 8px; }
.pd-body .dt-spec img { margin: 0 auto; max-width: 240px; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .18)); }
.pd-body .dt-spec table { margin: 0; background: transparent; }
.pd-body .dt-spec th { width: 34%; background: transparent; color: var(--dt-muted); font-weight: 500; }
.pd-body .dt-spec th, .pd-body .dt-spec td { border-bottom-color: var(--dt-line); }
.pd-body .dt-notice { padding-left: 1.2em; font-size: 14px; color: var(--dt-muted); }
.pd-body .dt-end { text-align: center; padding: 56px 0 8px; border-top: 1px solid var(--dt-line); }
.pd-body .dt-end p { margin: 0 auto; color: var(--dt-muted); font: 500 12px var(--mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; }
.pd-body .dt-end .dt-script { font: 400 56px/1 var(--script, "Pinyon Script", cursive); letter-spacing: 0; text-transform: none; color: #1A1A1A; margin-bottom: 8px; }
@media (max-width: 640px) {
    .pd-body .dt-grid, .pd-body .dt-spec { grid-template-columns: 1fr; }
    .pd-body .dt-dark { margin: 0; }
}

/* 리뷰 - 상세 설명 위 (3개) / 리뷰 전체 페이지 */
.pd-reviews:not(.is-full) { margin-top: clamp(32px, 5vw, 64px); }
.pd-review-all { display: block; width: fit-content; margin: 20px auto 0; padding: 12px 28px; border-radius: 999px; font-size: 14px; font-weight: 700;
    color: #FFFFFF; background: var(--accent, #3C4498); text-decoration: none; }
.pd-review-all:hover { filter: brightness(1.1); }
.pd-review-all:focus-visible { outline: 2px solid var(--accent, #3C4498); outline-offset: 2px; }
.pd-review-page { max-width: 820px; }
.pd-review-page-title { margin: 8px 0 0; font-family: var(--kr, "Black Han Sans", sans-serif); font-weight: 400; font-size: clamp(30px, 5vw, 44px); }
.pd-reviews.is-full { margin-top: 20px; padding-top: 0; border-top: 0; }
.pd-reviews.is-full h2 { font-size: 16px; color: #6B6B6B; }

/* 상세 페이지 리뷰 - 박스 3개를 가로로 나란히 (폰은 옆으로 밀어서). 내용은 한 줄, 넘치면 … . 누르면 리뷰 페이지의 그 리뷰로 */
.pd-review-cards { list-style: none; margin: 0; padding: 2px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-review-cards > li { min-width: 0; }
.pd-review-card { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; min-width: 0; padding: 16px 18px;
    border-radius: 14px; background: #FFFFFF; color: #1A1A1A; text-decoration: none; box-shadow: 2px 5px 10px rgba(0, 0, 0, .04); transition: box-shadow .15s; }
.pd-review-card:hover { box-shadow: 2px 6px 16px rgba(0, 0, 0, .1); }
.pd-review-card:focus-visible { outline: 2px solid var(--accent, #3C4498); outline-offset: 2px; }
.pd-review-card-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; }
.pd-review-card-head .pd-review-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-review-card-photo + .pd-review-card-head, .pd-review-card:has(.pd-review-card-photo) .pd-review-card-head { padding-right: 52px; }
.pd-review-card-text { min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-review-card-photo { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #EDEDED; }
@media (max-width: 760px) {
    .pd-review-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
    .pd-review-cards::-webkit-scrollbar { display: none; }
    .pd-review-cards > li { flex: 0 0 78%; scroll-snap-align: start; }
}
.pd-review { scroll-margin-top: 80px; }
.pd-review:target { background: rgba(60, 68, 152, .05); border-radius: 12px; padding-left: 12px; padding-right: 12px; }

/* 리뷰 페이지 - 정렬 · 사진 리뷰만 (메인 무드 칩과 같은 알약) */
.pd-review-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.pd-review-filter a { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
    color: #1A1A1A; background: #FFFFFF; text-decoration: none; box-shadow: 2px 5px 10px rgba(0, 0, 0, .05); }
.pd-review-filter a:hover { background: #EBEBEB; }
.pd-review-filter a[aria-current="true"], .pd-review-filter a[aria-pressed="true"] { color: #FFFFFF; background: var(--accent, #3C4498); }
.pd-review-filter-photo { margin-left: auto; }
.pd-review-filter a:focus-visible { outline: 2px solid var(--accent, #3C4498); outline-offset: 2px; }
@media (max-width: 480px) { .pd-review-filter-photo { margin-left: 0; } }
/* 상세 본문 - 가죽 출처 상자 (라 브레타냐 · 가우초 오일) */
.pd-body .dt-origin { margin: 22px 0; padding: 20px 22px; border-radius: 16px; background: #FFFFFF; border-left: 3px solid var(--dt-accent); }
.pd-body .dt-origin p { margin: 0 0 10px; font-size: 15px; }
.pd-body .dt-origin p:last-child { margin-bottom: 0; }
.pd-body .dt-origin .dt-origin-title { font-family: var(--kr, "Black Han Sans", sans-serif); font-size: 20px; color: var(--dt-accent); margin-bottom: 8px; }
/* 상세 본문 - 펼침 · 닫힘 사진 두 장 / 사용 순서 (Rocin) */
.pd-body .dt-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.pd-body .dt-views figure { margin: 0; padding: 22px 16px 14px; border-radius: 16px; background: #FFFFFF; display: grid; gap: 12px; justify-items: center; align-content: end; }
.pd-body .dt-views img { margin: 0; max-height: 300px; width: auto; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .18)); }
.pd-body .dt-views figcaption { font: 500 11px var(--mono, ui-monospace, monospace); letter-spacing: .1em; color: var(--dt-muted); }
.pd-body .dt-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: dt-step; }
.pd-body .dt-steps li { counter-increment: dt-step; padding-top: 10px; border-top: 2px solid #1A1A1A; font-size: 14px; color: var(--dt-muted); }
.pd-body .dt-steps li::before { content: "0" counter(dt-step); display: block; font: 500 11px var(--mono, ui-monospace, monospace); color: var(--dt-accent); margin-bottom: 2px; }
.pd-body .dt-steps b { display: block; font-family: var(--kr, "Black Han Sans", sans-serif); font-weight: 400; font-size: 19px; color: #1A1A1A; }
@media (max-width: 640px) { .pd-body .dt-steps { grid-template-columns: 1fr; } .pd-body .dt-views img { max-height: 200px; } }
/* 주문서 - 토스 테스트 키일 때 안내 */
.co-testmode { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #EEF0FA; color: #3C4498; font-size: 14px; }
/* 상세 본문 - 세 장 나란히 (색상) / 단계 라벨 (Christmas) */
.pd-body .dt-views-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-body .dt-views-3 img { max-height: 240px; }
.pd-body .dt-steps-label li::before { content: none; }
.pd-body .dt-steps i { display: block; font: 500 11px var(--mono, ui-monospace, monospace); font-style: normal; letter-spacing: .1em; color: var(--dt-accent); margin-bottom: 2px; }
.pd-body .dt-notice li b { color: #1A1A1A; }
@media (max-width: 640px) { .pd-body .dt-views-3 { gap: 8px; } .pd-body .dt-views-3 figure { padding: 14px 8px 10px; } .pd-body .dt-views-3 img { max-height: 140px; } }
