/* 카페 메뉴판 (Cafe Menu) v1.0.0 — 촬영GO 테마스토어
   색·글꼴은 아래 변수만 바꾸면 스킨 전체에 반영됩니다. 클래스 접두어 cfm- 는 바꾸지 마세요. */
@import url(fonts/fonts.css);

.cfm {
  --cfm-bg: #f4ede1;
  --cfm-surface: #fbf7f0;
  --cfm-line: #d9ccb6;
  --cfm-text: #4a3c2c;
  --cfm-strong: #2b2016;
  --cfm-muted: #8c7a64;
  --cfm-accent: #3f5a3a;
  --cfm-on-accent: #fbf7f0;
  --cfm-accent-text: #3f5a3a;
  --cfm-soft: rgba(63, 90, 58, .12);
  --cfm-price: #9a4f1f;
  --cfm-radius: 14px;
  --cfm-font: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --cfm-font-display: "Nanum Myeongjo", "Noto Serif KR", serif;
  --cfm-display-weight: 800;
  --cfm-display-tracking: -0.01em;
  --cfm-radius-sm: calc(var(--cfm-radius) * .6);
  font-family: var(--cfm-font);
  color: var(--cfm-text);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
.cfm *, .cfm *::before, .cfm *::after { box-sizing: border-box; }
.cfm a { color: inherit; text-decoration: none; }
.cfm img { max-width: 100%; height: auto; }
.cfm .sound_only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cfm :focus-visible { outline: 3px solid var(--cfm-accent); outline-offset: 2px; }

/* 버튼 */
.cfm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--cfm-radius-sm); font: inherit; font-size: 14px; font-weight: 600;
  line-height: 1; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.cfm-btn--primary { background: var(--cfm-accent); color: var(--cfm-on-accent) !important; }
.cfm-btn--primary:hover { filter: brightness(1.08); }
.cfm-btn--ghost { background: transparent; border-color: var(--cfm-line); color: var(--cfm-text); }
.cfm-btn--ghost:hover { border-color: var(--cfm-text); }
.cfm-btn[disabled] { opacity: .5; cursor: default; }

/* 목록 머리 */
.cfm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.cfm-head__name { margin: 0; font-family: var(--cfm-font-display); font-size: clamp(22px, 3vw, 32px); font-weight: var(--cfm-display-weight); letter-spacing: var(--cfm-display-tracking); line-height: 1.2; color: var(--cfm-strong); }
.cfm-head__meta { margin: 6px 0 0; font-size: 13px; color: var(--cfm-muted); }
.cfm-head__meta b { color: var(--cfm-text); }
.cfm-head__tools { display: flex; flex-wrap: wrap; gap: 8px; }

/* 분류 */
.cfm-cate { margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.cfm-cate::-webkit-scrollbar { display: none; }
.cfm-cate ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.cfm-cate a { display: inline-block; padding: 8px 14px; border: 1px solid var(--cfm-line); border-radius: 999px; font-size: 14px; color: var(--cfm-muted); }
.cfm-cate a:hover { color: var(--cfm-text); border-color: var(--cfm-text); }
.cfm-cate #bo_cate_on { background: var(--cfm-strong); border-color: var(--cfm-strong); color: var(--cfm-bg); font-weight: 700; }

/* 검색 */
.cfm-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 14px; background: var(--cfm-surface); border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius); }
.cfm-search[hidden] { display: none; }
.cfm-search select, .cfm-search input[type=search] { min-height: 40px; padding: 0 12px; border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius-sm); background: var(--cfm-bg); color: var(--cfm-text); font: inherit; font-size: 14px; }
.cfm-search input[type=search] { flex: 1 1 200px; }

/* 관리자 선택 */
.cfm-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border: 1px dashed var(--cfm-line); border-radius: var(--cfm-radius-sm); }
.cfm-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.cfm-chk input { width: 16px; height: 16px; accent-color: var(--cfm-accent); }

.cfm-empty { margin: 0; padding: 56px 16px; text-align: center; color: var(--cfm-muted); border: 1px dashed var(--cfm-line); border-radius: var(--cfm-radius); }
.cfm-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--cfm-soft); color: var(--cfm-accent-text); font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: middle; }

/* 페이지 번호 (그누보드 기본 마크업) */
.cfm-pages { margin: 28px 0 0; }
.cfm-pages .pg_wrap { display: flex; justify-content: center; }
.cfm-pages .pg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cfm-pages .pg_page, .cfm-pages .pg_current { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--cfm-radius-sm); font-size: 14px; }
.cfm-pages .pg_page { border: 1px solid var(--cfm-line); color: var(--cfm-muted); background: transparent; }
.cfm-pages .pg_page:hover { color: var(--cfm-text); border-color: var(--cfm-text); }
.cfm-pages .pg_current { background: var(--cfm-strong); color: var(--cfm-bg); font-weight: 700; }
.cfm-pages .pg_start, .cfm-pages .pg_prev, .cfm-pages .pg_next, .cfm-pages .pg_end { text-indent: 0; font-size: 0; }
.cfm-pages .pg_start::before { content: "«"; font-size: 14px; } .cfm-pages .pg_prev::before { content: "‹"; font-size: 16px; }
.cfm-pages .pg_next::before { content: "›"; font-size: 16px; } .cfm-pages .pg_end::before { content: "»"; font-size: 14px; }

/* 본문 보기 */
.cfm-view__head { margin: 0 0 16px; padding: 0 0 20px; border-bottom: 1px solid var(--cfm-line); }
.cfm-view__cate { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--cfm-accent-text); letter-spacing: .02em; }
.cfm-view__title { margin: 0; font-family: var(--cfm-font-display); font-size: clamp(24px, 3.4vw, 38px); font-weight: var(--cfm-display-weight); letter-spacing: var(--cfm-display-tracking); line-height: 1.25; color: var(--cfm-strong); }
.cfm-view__sub { margin: 12px 0 0; font-size: 17px; color: var(--cfm-muted); }
.cfm-view__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; font-size: 13px; color: var(--cfm-muted); }
.cfm-view__author, .cfm-view__author *, .cfm-cmt__name, .cfm-cmt__name * { color: var(--cfm-text) !important; font-weight: 700; }
.cfm-view__tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0 0 24px; }
.cfm-view__imgs { margin: 0 0 24px; }
.cfm-view__imgs img { display: block; margin: 0 auto 12px; border-radius: var(--cfm-radius); }
.cfm-view__content { font-size: 17px; line-height: 1.85; color: var(--cfm-text); min-height: 120px; }
.cfm-view__content p { margin: 0 0 1em; }
.cfm-view__content a { color: var(--cfm-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.cfm-view__content img { border-radius: var(--cfm-radius-sm); }
.cfm-view__sign { margin: 32px 0 0; padding: 16px; border-top: 1px dashed var(--cfm-line); color: var(--cfm-muted); }
.cfm-view__react { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; }
.cfm-react { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--cfm-line); border-radius: 999px; font-weight: 700; }
.cfm-react:hover { border-color: var(--cfm-accent); color: var(--cfm-accent-text); }
.cfm-react__msg { display: none; align-self: center; font-size: 13px; color: var(--cfm-accent-text); }
.cfm-view__share { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; }
.cfm-view__files, .cfm-view__links { margin: 32px 0 0; padding: 18px 20px; background: var(--cfm-surface); border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius); }
.cfm-view__files h2, .cfm-view__links h2 { margin: 0 0 10px; font-size: 14px; color: var(--cfm-muted); }
.cfm-view__files ul, .cfm-view__links ul { margin: 0; padding: 0; list-style: none; }
.cfm-view__files li, .cfm-view__links li { padding: 6px 0; font-size: 15px; }
.cfm-view__files small, .cfm-view__links small { color: var(--cfm-muted); }
.cfm-view__nav { display: grid; gap: 1px; margin: 32px 0 0; border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius); overflow: hidden; background: var(--cfm-line); }
.cfm-view__nav a { display: flex; gap: 16px; padding: 14px 18px; background: var(--cfm-bg); font-size: 15px; }
.cfm-view__nav a:hover { background: var(--cfm-surface); }
.cfm-view__nav span { flex: 0 0 auto; color: var(--cfm-muted); font-size: 13px; font-weight: 700; padding-top: 2px; }

/* 댓글 */
.cfm-cmt { margin: 48px 0 0; }
.cfm-cmt__title { margin: 0 0 16px; font-size: 18px; color: var(--cfm-strong); }
.cfm-cmt__title b { color: var(--cfm-accent-text); }
.cfm-cmt__item { position: relative; padding: 16px 0 16px calc(var(--depth, 0) * 28px); border-top: 1px solid var(--cfm-line); }
.cfm-cmt__item.is-reply::before { content: "↳"; position: absolute; left: calc(var(--depth, 1) * 28px - 20px); top: 16px; color: var(--cfm-muted); }
.cfm-cmt__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--cfm-muted); }
.cfm-cmt__name { color: var(--cfm-text); font-weight: 700; font-size: 14px; }
.cfm-cmt__body { margin: 8px 0 0; font-size: 15px; }
.cfm-cmt__act { display: flex; gap: 12px; margin: 8px 0 0; font-size: 13px; color: var(--cfm-muted); }
.cfm-cmt__act a:hover { color: var(--cfm-accent-text); }
.cfm-cmt__empty { margin: 0; padding: 24px 0; color: var(--cfm-muted); border-top: 1px solid var(--cfm-line); }
.cfm-cmt__write { display: block; margin: 16px 0 0; }
.cfm-cmt__write textarea { width: 100%; min-height: 110px; padding: 14px; border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius); background: var(--cfm-bg); color: var(--cfm-text); font: inherit; font-size: 15px; resize: vertical; }
.cfm-cmt__count { margin: 6px 0 0; font-size: 12px; color: var(--cfm-muted); }
.cfm-cmt__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; }
.cfm-cmt__foot .cfm-btn { margin-left: auto; }

/* 글쓰기 */
.cfm-write__title { margin: 0 0 24px; font-family: var(--cfm-font-display); font-size: 26px; font-weight: var(--cfm-display-weight); color: var(--cfm-strong); }
.cfm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.cfm-field { margin: 0 0 18px; }
.cfm-field > label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--cfm-strong); }
.cfm-field em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--cfm-accent-text); }
.cfm-field small { font-weight: 400; color: var(--cfm-muted); }
.cfm-input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius-sm); background: var(--cfm-bg); color: var(--cfm-text); font: inherit; font-size: 15px; }
.cfm-input:focus { border-color: var(--cfm-accent); outline: none; box-shadow: 0 0 0 3px var(--cfm-soft); }
.cfm-input--lg { font-size: 17px; font-weight: 600; }
.cfm-file .cfm-input { margin: 0 0 6px; }
.cfm-opts { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 18px; }
.cfm-autosave { position: relative; display: flex; gap: 8px; }
.cfm-autosave #autosave_pop { display: none; position: absolute; top: 52px; right: 0; z-index: 20; width: 320px; padding: 14px; background: var(--cfm-bg); border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius); box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.cfm-autosave #autosave_pop ul { margin: 10px 0; padding: 0; list-style: none; max-height: 200px; overflow: auto; }
.cfm-autosave #autosave_pop li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--cfm-line); font-size: 14px; }
.cfm-editor textarea { width: 100%; min-height: 320px; padding: 14px; border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius-sm); background: var(--cfm-bg); color: var(--cfm-text); font: inherit; font-size: 15px; }
.cfm-help { margin: 0 0 8px; font-size: 13px; color: var(--cfm-muted); }
.cfm-captcha { margin: 0 0 18px; }
.cfm-captcha #captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cfm-captcha #captcha_key { min-height: 40px; padding: 0 10px; border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius-sm); }
.cfm-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--cfm-line); }

/* 최신글 위젯 공통 */
.cfm-latest { padding: 20px; background: var(--cfm-bg); border: 1px solid var(--cfm-line); border-radius: var(--cfm-radius); }
.cfm-latest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.cfm-latest__head h2 { margin: 0; font-family: var(--cfm-font-display); font-size: 19px; font-weight: var(--cfm-display-weight); color: var(--cfm-strong); }
.cfm-latest__more { font-size: 13px; color: var(--cfm-muted); }
.cfm-latest__more:hover { color: var(--cfm-accent-text); }
.cfm-latest .cfm-empty { padding: 28px 12px; }

@media (max-width: 640px) {
  .cfm-head { align-items: flex-start; }
  .cfm-view__tools { justify-content: flex-start; }
  .cfm-view__content { font-size: 16px; }
  .cfm-actions .cfm-btn { flex: 1; }
  .cfm-cmt__foot .cfm-btn { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cfm * { transition: none !important; animation: none !important; } }

/* ===== 카페 메뉴판 (Cafe Menu) 전용 ===== */

.cfm { background: var(--cfm-bg); padding: clamp(18px, 3vw, 36px); border-radius: var(--cfm-radius); }
.cfm-head { border-bottom: 3px double var(--cfm-line); }
.cfm-head__name { font-family: var(--cfm-font-display); font-weight: 800; letter-spacing: -.01em; }
.cfm-group { display: flex; align-items: center; gap: 14px; margin: 34px 0 14px; font-family: var(--cfm-font-display); font-size: 22px; font-weight: 800; color: var(--cfm-strong); }
.cfm-group::before, .cfm-group::after { content: ""; flex: 1; height: 1px; background: var(--cfm-line); }
.cfm-group:first-child { margin-top: 8px; }
.cfm-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 40px; margin: 0; padding: 0; list-style: none; }
.cfm-menu--notice { grid-template-columns: 1fr; margin-bottom: 12px; }
.cfm-item { position: relative; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--cfm-line); }
.cfm-item > .cfm-chk { flex-shrink: 0; align-self: center; }
.cfm-item__img { flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--cfm-surface); box-shadow: 0 0 0 4px var(--cfm-surface), 0 0 0 5px var(--cfm-line); }
.cfm-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cfm-item__body { flex: 1; min-width: 0; }
.cfm-item__line { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.cfm-item__name { font-family: var(--cfm-font-display); font-size: 18px; font-weight: 800; color: var(--cfm-strong); }
.cfm-item__name:hover { color: var(--cfm-accent-text); }
.cfm-item__dots { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--cfm-line); transform: translateY(-4px); }
.cfm-item__price { flex-shrink: 0; font-weight: 800; color: var(--cfm-price); font-variant-numeric: tabular-nums; }
.cfm-item__en { margin: 2px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cfm-muted); }
.cfm-item__ex { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--cfm-text); }
.cfm-item__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.cfm-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; border: 1px solid var(--cfm-line); color: var(--cfm-muted); background: var(--cfm-surface); }
.cfm-tag--best { background: var(--cfm-price); border-color: var(--cfm-price); color: #fff; }
.cfm-tag--new { background: var(--cfm-accent); border-color: var(--cfm-accent); color: #fff; }
.cfm-tag--hot { border-color: #c2410c; color: #c2410c; }
.cfm-tag--ice { border-color: #2563eb; color: #2563eb; }
.cfm-tag--dark { background: var(--cfm-strong); border-color: var(--cfm-strong); color: #fff; }
.cfm-item.is-notice { padding: 12px 16px; border: 0; border-radius: 10px; background: var(--cfm-surface); }
.cfm-item.is-notice .cfm-item__name { font-family: var(--cfm-font); font-size: 15px; font-weight: 700; }

.cfm-vcard { margin: 0 0 24px; padding: 18px 20px; border-radius: 12px; background: var(--cfm-surface); border: 1px solid var(--cfm-line); text-align: center; }
.cfm-vcard__en { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--cfm-muted); }
.cfm-vcard__price { margin: 6px 0 0; font-family: var(--cfm-font-display); font-size: 28px; font-weight: 800; color: var(--cfm-price); }
.cfm-vcard .cfm-item__tags { justify-content: center; }
.cfm-view__title { font-family: var(--cfm-font-display); }

@media (max-width: 760px) {
  .cfm-menu { grid-template-columns: 1fr; }
  .cfm-item__img { width: 68px; height: 68px; }
  .cfm-item__name { font-size: 17px; }
}
