:root {
  /* 인쇄 4원색(CMYK)을 포인트로 쓰는 밝은 팔레트 */
  --c: #00a3e0;
  --m: #e6007e;
  --y: #ffd400;
  --k: #1b1c24;
  --c-ink: #006fa8;     /* 흰 배경 위 글자용 */
  --m-ink: #c2006b;
  --c-tint: #e3f5fd;
  --m-tint: #fde7f2;
  --y-tint: #fff5cc;
  --k-tint: #eceef3;
  --paper: #ffffff;
  --bg: #fbfbfd;
  --ink: #1b1c24;
  --muted: #5b6070;
  --line: #e1e3ea;
  --cta: #d4006e;
  --cta-ink: #ffffff;
  --ok: #17784a;
  --warn: #a15c07;
  --bad: #b3261e;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-ink); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 72px; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; border-radius: 4px; }

/* ---------- 헤더 ---------- */
.utility { background: var(--k); color: #d9dbe4; font-size: 0.85rem; }
.utility .wrap { display: flex; justify-content: flex-end; gap: 20px; padding-top: 6px; padding-bottom: 6px; }
.utility a { color: #fff; text-decoration: none; white-space: nowrap; }
.utility .wrap { flex-wrap: wrap; }
.top { background: var(--paper); }
.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; white-space: nowrap; }
.brand .tag { margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: var(--k); color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0; }
.dots { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 24px; height: 24px; }
.dots i { border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--c); }
.dots i:nth-child(2) { background: var(--m); }
.dots i:nth-child(3) { background: var(--y); }
.dots i:nth-child(4) { background: var(--k); }
.menu { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.menu a:hover { background: var(--k-tint); }
.menu a.on { background: var(--ink); color: #fff; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--cta); color: #fff; font-size: 0.78rem; text-align: center; }
.cmyk-strip { height: 5px; background: linear-gradient(90deg, var(--c) 0 25%, var(--m) 25% 50%, var(--y) 50% 75%, var(--k) 75% 100%); }

/* ---------- 버튼 ---------- */
.btn, button.primary {
  display: inline-block; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff;
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover, button.primary:hover { filter: brightness(1.15); }
.btn.big { padding: 13px 26px; font-size: 1.05rem; }
.btn.small { padding: 5px 14px; font-size: 0.9rem; }
.btn.ghost { background: transparent; color: var(--ink); }
button.primary { width: 100%; background: var(--cta); border-color: var(--cta); color: var(--cta-ink); border-radius: 12px; padding: 14px 18px; font-size: 1.05rem; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 16px;
  margin-bottom: 40px; padding: 44px 48px; overflow: hidden; border-radius: 24px;
  background: linear-gradient(120deg, var(--y-tint) 0%, #fff 48%, var(--c-tint) 100%);
}
.eyebrow { margin: 0 0 10px; color: var(--m-ink); font-weight: 700; letter-spacing: 0; }
.hero h1 { margin: 0 0 16px; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--y) 62% 92%, transparent 92%); }
.lead { max-width: 30em; margin: 0 0 22px; color: var(--muted); font-size: 1.05rem; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.hero-photo { min-width: 0; width: 100%; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.hero-photo img { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 42px rgba(18,35,70,.12); }
.venn { width: 100%; max-width: 360px; justify-self: center; }
.venn circle { mix-blend-mode: multiply; }
.vc { fill: var(--c); fill-opacity: 0.9; }
.vm { fill: var(--m); fill-opacity: 0.9; }
.vy { fill: var(--y); fill-opacity: 0.95; }

/* ---------- 상품 목록 ---------- */
.block { margin-bottom: 48px; }
.sec { margin: 0 0 16px; font-size: 1.5rem; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.pcard {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
}
.pcard:hover, .pcard:focus-visible { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(27, 28, 36, 0.12); }
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } .pcard:hover { transform: none; } }
.pimg { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 12px; }
.pimg svg, .pimg img { width: 100%; height: 100%; object-fit: contain; }
.t-c .pimg, .t-c.ohead { background: var(--c-tint); }
.t-m .pimg, .t-m.ohead { background: var(--m-tint); }
.t-y .pimg, .t-y.ohead { background: var(--y-tint); }
.t-k .pimg, .t-k.ohead { background: var(--k-tint); }
.pbody { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.pbody h3 { margin: 0; font-size: 1.25rem; }
.pbody p { margin: 0; color: var(--muted); flex: 1; }
.go { margin-top: 8px; color: var(--m-ink); font-weight: 700; }
.go::after { content: " →"; }
/* 상품 그림(SVG) 색 */
.paper { fill: #fff; stroke: #cfd2dc; stroke-width: 1.5; }
.s-c { fill: none; stroke: var(--c); stroke-width: 3; }
.s-k { stroke: var(--k); stroke-width: 2; }
.f-c { fill: var(--c); } .f-c2 { fill: #9fdcf5; } .f-m { fill: var(--m); } .f-y { fill: var(--y); } .f-k { fill: var(--k); }
.f-g { fill: #cfd2dc; } .f-g2 { fill: #e9d9b8; }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.why > div { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.why h3 { margin: 10px 0 4px; font-size: 1.1rem; }
.why p { margin: 0; color: var(--muted); }
.n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: #fff; }
.n1 { background: var(--c-ink); } .n2 { background: var(--m-ink); } .n3 { background: var(--k); }

/* ---------- 주문 화면 ---------- */
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; }
.back::before { content: "‹ "; }
.ohead { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; padding: 14px 24px 14px 14px; border-radius: 18px; }
.ohead h1 { margin: 0; font-size: 1.8rem; }
.ohead p { margin: 2px 0 0; color: var(--muted); }
.oart { width: 112px; height: 84px; flex: none; }
.oart svg, .oart img { width: 100%; height: 100%; object-fit: contain; }
.pt { margin: 0 0 8px; font-size: 1.9rem; }
.lead2 { margin: 0 0 22px; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.col { min-width: 0; }
fieldset { margin: 0 0 18px; padding: 16px 20px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
legend { padding: 0 8px; font-weight: 800; }
.field { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; margin: 0 0 14px; }
.field > span { color: var(--muted); font-size: 0.95rem; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit;
}
input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--c); outline-offset: 0; border-color: var(--c); }
.hint { margin: 4px 0 12px; color: var(--muted); font-size: 0.88rem; }
.hint.sample { color: var(--warn); }
.hint.hl { margin: 10px 0 12px; padding: 10px 14px; background: var(--y-tint); border-left: 5px solid var(--y); border-radius: 8px; color: var(--ink); font-size: 0.95rem; font-weight: 800; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq { max-width: 640px; }
.summary { position: sticky; top: 16px; padding: 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: 6px 6px 0 var(--y); }
.summary h2 { margin: 0 0 8px; font-size: 1.1rem; }
.summary .spec { min-height: 3em; margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 0; margin: 0 0 8px; }
.summary dt, .summary dd { margin: 0; }
.summary dd { text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--m-ink); font-size: 1.45rem; font-weight: 800; }
.unit { margin: 0 0 8px; color: var(--muted); font-size: 0.88rem; }
.notice.error { margin-bottom: 16px; padding: 10px 14px; border: 1.5px solid var(--bad); border-radius: 10px; color: var(--bad); }
.card { margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.card h2 { margin: 0 0 8px; font-size: 1.05rem; }
.checks { margin: 0 0 12px; padding-left: 20px; }
.checks.ok li::marker { color: var(--ok); }
.checks.warn li::marker { color: var(--warn); }
.kv { display: grid; grid-template-columns: 80px 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- 제작 가이드 ---------- */
.guide-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-bottom: 4px; align-items: start; }
.guide-grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guide-grid p { margin: 0 0 8px; }
.bleedfig { margin: 0 0 16px; text-align: center; }
.bleedfig svg { width: 100%; max-width: 320px; }
.bleedfig figcaption { margin-top: 10px; font-size: 0.9rem; text-align: left; color: var(--muted); }
.g-bleed { fill: var(--m-tint); stroke: var(--m); stroke-width: 1.5; stroke-dasharray: 5 4; }
.g-trim { fill: #fff; stroke: var(--k); stroke-width: 2; }
.g-safe { fill: none; stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 5 4; }
.g-txt { fill: var(--k); font-size: 13px; font-weight: 700; }
.gimg { margin: -2px 0 12px; padding: 8px; border-radius: 10px; background: var(--k-tint); }
.gimg svg, .gimg img { display: block; width: 100%; height: auto; border-radius: 8px; }
.g-big, .g-big2 { fill: var(--k); font-weight: 800; }
.g-big { font-size: 22px; } .g-big2 { font-size: 15px; }
.g-cut { stroke: var(--m); stroke-width: 2; stroke-dasharray: 4 3; }
.gl-t, .gl-ok, .gl-bad { font-size: 9.5px; font-weight: 700; }
.gl-t { fill: #5b6070; } .gl-ok { fill: #17784a; } .gl-bad { fill: #b3261e; }
.g-serif { font-family: "Batang", "Noto Serif KR", serif; font-size: 34px; font-weight: 700; fill: var(--k); }
.g-sans { font-family: "Malgun Gothic", "Noto Sans KR", sans-serif; font-size: 34px; font-weight: 400; fill: var(--k); }
.g-arrow { stroke: var(--m); stroke-width: 2.5; }
.g-fold { fill: #e1e3ea; stroke: #cfd2dc; stroke-width: 1.5; }
.g-pdf { fill: #fff; font-size: 14px; font-weight: 800; }
.sw { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border: 2px solid; }
.sw-bleed { border-color: var(--m); background: var(--m-tint); }
.sw-trim { border-color: var(--k); background: #fff; }
.sw-safe { border-color: var(--c); background: #fff; }
@media (max-width: 860px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- 푸터 · 따라다니는 메뉴 ---------- */
.foot { margin-top: 24px; padding: 36px 0; background: var(--k); color: #c9ccd6; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.foot h2 { margin: 0 0 10px; color: #fff; font-size: 1rem; }
.foot ul { margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.foot p { margin: 0 0 4px; font-size: 0.92rem; }
.foot .big { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.float { position: fixed; right: 16px; top: 50%; z-index: 30; display: flex; flex-direction: column; overflow: hidden; transform: translateY(-50%); border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.fi { display: grid; place-items: center; width: 68px; padding: 12px 4px; color: var(--ink); font-size: 0.8rem; font-weight: 700; text-align: center; text-decoration: none; border-top: 1px solid var(--line); }
.fi:first-child { border-top: 0; }
.fi-tel { background: var(--c-tint); } .fi-quote { background: var(--m-tint); } .fi-top { background: var(--y-tint); }
.fi:hover { filter: brightness(0.95); }

/* ---------- 관리자 ---------- */
body.admin .wrap { max-width: 1200px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.tab { padding: 6px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; }
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--paper); }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
td small, .muted { color: var(--muted); }
td a { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 10px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.85rem; white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: var(--ok); }
.pill.warn { color: var(--warn); border-color: var(--warn); }
.empty { padding: 24px 0; color: var(--muted); }
.inq-item header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.inq-item .grow, .alertbar .grow { flex: 1; }
.inq-item .msg { margin: 10px 0; }
.alertbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; background: var(--cta); color: #fff; font-weight: 700; }
.alertbar a, .alertbar button { padding: 4px 12px; border: 1.5px solid currentColor; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.soundctl { display: flex; justify-content: flex-end; align-items: center; gap: 10px; max-width: 1200px; margin: 0 auto; padding: 8px 20px 0; color: var(--muted); font-size: 0.9rem; }
.soundctl button { padding: 4px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.soundctl button[aria-pressed="true"] { border-color: var(--cta); color: var(--cta); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .alertbar.ring { animation: pulse 1.2s ease-in-out 3; } }
@keyframes pulse { 50% { filter: brightness(1.2); } }

/* ---------- 중간 폭: 따라다니는 메뉴를 오른쪽 아래 작은 막대로 (본문을 가리지 않게) ---------- */
@media (max-width: 1340px) and (min-width: 861px) {
  .float { top: auto; bottom: 18px; right: 18px; transform: none; flex-direction: row; }
  .fi { width: auto; padding: 10px 16px; border-top: 0; border-left: 1px solid var(--line); }
  .fi:first-child { border-left: 0; }
}

/* ---------- 작은 화면 ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .venn { max-width: 220px; }
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .top .bar { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 6px; }
  .menu { width: 100%; }
  .float { top: auto; bottom: 0; left: 0; right: 0; transform: none; flex-direction: row; border-width: 2px 0 0; border-radius: 0; box-shadow: none; }
  .fi { flex: 1; width: auto; border-top: 0; border-left: 1px solid var(--line); }
  .fi:first-child { border-left: 0; }
  .foot { padding-bottom: 88px; }
}
@media (max-width: 480px) {
  .field { grid-template-columns: 1fr; gap: 4px; }
  .ohead { flex-direction: column; align-items: flex-start; }
}

/* ---- 3단계: 장바구니 · 회원 · 주문 조회 ---- */
.userbar { background: var(--k-tint); font-size: 0.85rem; }
.userbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding-top: 5px; padding-bottom: 5px; }
.userbar a, .userbar .who { color: var(--muted); text-decoration: none; }
.userbar a:hover { color: var(--ink); text-decoration: underline; }
.userbar form { display: inline; margin: 0; }
button.linklike { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
button.linklike:hover { color: var(--ink); text-decoration: underline; }
button.primary.alt { margin-top: 8px; background: var(--paper); color: var(--ink); border-color: var(--ink); }
button.primary:disabled { opacity: 0.45; cursor: not-allowed; }
.muted { color: var(--muted); }
.bad { color: var(--bad); }
.citem { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: start; }
.citem h3 { margin: 0 0 2px; font-size: 1.05rem; }
.citem p { margin: 2px 0; overflow-wrap: anywhere; }
.cprice { display: grid; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cprice small { color: var(--muted); font-weight: 400; }
.citem form { margin: 0; }
.notice.ok { margin-bottom: 16px; padding: 10px 14px; border: 1.5px solid var(--ok); border-radius: 10px; color: var(--ok); }
.ogroup header { display: flex; gap: 12px; margin-bottom: 6px; }
.olist { margin: 0; padding: 0; list-style: none; }
.olist li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.otot { margin: 8px 0 0; text-align: right; }
.checks.warn { margin: 6px 0 0; padding-left: 1.1em; color: var(--warn); font-size: 0.88rem; }
form.inq { max-width: 560px; }
@media (max-width: 860px) { .citem { grid-template-columns: 1fr auto; } .citem form { grid-column: 1 / -1; } }

/* ---- 상품 소개 (주문 화면 아래) ---- */
.pdetail { margin: 56px 0 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.dhero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; margin-bottom: 28px; }
.dimg { padding: 14px; border-radius: var(--radius); background: var(--k-tint); }
.dimg svg, .dimg img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; border-radius: 10px; }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 20px; }
.use h3 { margin: 4px 0 6px; font-size: 1.02rem; }
.use p { margin: 0; color: var(--muted); }
.dlist { margin: 0; padding-left: 1.1em; }
.dlist li { margin: 0 0 8px; }
.dspec { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 16px; }
@media (max-width: 860px) { .dhero { grid-template-columns: 1fr; } }


/* 또렷 PRINT 사진 중심 리뉴얼 */
.hero { background: linear-gradient(115deg, #fff9e6 0%, #ffffff 48%, #e7f7ff 100%); }
.hero h1 em { color: #0878ee; }
.pimg { padding: 0; overflow: hidden; background: #f5f8fc; }
.pimg img.product-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcard { border-radius: 16px; }
.pbody { min-height: 132px; }
.go { color: #ec168a; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .hero-photo img { max-height: 260px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .pimg { aspect-ratio: 4 / 3; }
  .pbody { min-height: 118px; padding: 12px; }
  .pbody h3 { font-size: 1.05rem; }
  .pbody p { font-size: .86rem; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 2rem; }
  .hero-photo img { max-height: 210px; }
}

/* 상품 상세 사진 갤러리 보강 */
.detail-gallery-heading { margin: 30px 0 14px; }
.detail-gallery-heading h2 { margin: 0 0 6px; color: var(--ink, #123b82); }
.detail-gallery-heading p, .detail-photo-note { margin: 0; color: var(--muted); font-size: .92rem; }
.detail-photo-note { margin: -4px 0 18px; }
.detail-photo-link { display: block; overflow: hidden; border-radius: 10px; }
.detail-photo-link img { display: block; width: 100%; height: 100%; min-height: 170px; max-height: 245px; object-fit: cover; transition: transform .25s ease; }
.detail-photo-link:hover img, .detail-photo-link:focus img { transform: scale(1.035); }
.dimg .detail-photo-link img { max-height: 340px; min-height: 220px; }
.gimg { overflow: hidden; }
.gimg .detail-photo-link { background: #f4f7fb; }
.gimg .detail-photo-link img { aspect-ratio: 4 / 3; }
@media (max-width: 600px) {
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .use { padding: 12px; }
  .detail-photo-link img { min-height: 125px; max-height: 170px; }
  .dimg .detail-photo-link img { min-height: 200px; max-height: 260px; }
}


/* 제작 가이드 전체 흐름 이미지 */

/* 제작 가이드: 포스터형 전체 이미지 대신 설명별 사진과 실무 안내를 배치 */
.guide-intro { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.9fr); gap:22px; align-items:center; margin:18px 0 22px; padding:22px; background:linear-gradient(110deg,#f4f8ff,#fff); }
.guide-intro h2 { margin:7px 0 9px; font-size:1.35rem; }
.guide-intro p { margin:0 0 10px; }
.guide-intro ul { margin:0; padding-left:1.2rem; color:var(--muted); }
.guide-intro img { display:block; width:100%; max-height:230px; object-fit:cover; border-radius:12px; }
.guide-kicker { color:#1763c6; font-size:.76rem; font-weight:800; letter-spacing:.08em; }
.guide-grid.three .gimg { padding:6px; background:#f3f6fb; }
.guide-grid.three .gimg img { display:block; width:100%; aspect-ratio: 4 / 3; object-fit:cover; border-radius:8px; }
.guide-check-card > img { display:block; width:100%; aspect-ratio: 4 / 3; object-fit:cover; border-radius:10px; margin:0 0 12px; }
@media(max-width:700px) { .guide-intro { grid-template-columns:1fr; padding:16px; } .guide-intro img { max-height:190px; } }

/* ---------- 받는 방법(배송) ---------- */
.ship-methods { display: grid; gap: 10px; margin: 0 0 14px; }
.ship-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.ship-opt input { width: auto; margin: 4px 0 0; flex: none; }
.ship-opt span { display: grid; gap: 2px; }
.ship-opt small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.ship-opt.on { border-color: var(--c); box-shadow: 0 0 0 2px rgba(23, 99, 198, .12); }
.ship-addr { margin-top: 4px; }
.ship-addr[hidden] { display: none; }
label.check { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; font-weight: 700; cursor: pointer; }
label.check input { width: auto; }
.ship-addr input[readonly] { background: var(--paper); color: var(--muted); }
.summary .ship-box { margin: 0 0 14px; }
.summary .ship-box h2 { margin: 18px 0 10px; }
.summary .ship-box .field { grid-template-columns: 1fr; gap: 4px; margin-bottom: 10px; }
.pill.ship-pickup, .pill.ship-prepaid, .pill.ship-collect { background: #eef3fb; color: #1763c6; }
.pill.ship-collect { background: #fff4e5; color: #a45b00; }

/* ---------- 결제 · 진행 상태 ---------- */
.ship-opt.off { opacity: .5; cursor: not-allowed; }
.pill.s-접수 { color: #a45b00; border-color: #e0a64a; }
.pill.s-결제완료, .pill.s-파일확인, .pill.s-제작중 { color: #1763c6; border-color: #1763c6; }
.pill.s-제작완료, .pill.s-출고, .pill.s-배송완료 { color: var(--ok); border-color: var(--ok); }
.pill.s-취소 { color: var(--bad, #c0392b); border-color: var(--bad, #c0392b); }

/* 주소 검색 */
.addr-row { display: flex; gap: 8px; align-items: stretch; }
.addr-row input { flex: 1; min-width: 0; }
.addr-find { white-space: nowrap; padding-left: 14px; padding-right: 14px; cursor: pointer; }

/* 카카오톡 버튼 */
.kakao-btn { display: inline-block; background: #fee500; color: #191919; font-weight: 700; padding: 8px 16px; border-radius: 10px; border: 2px solid #191919; text-decoration: none; cursor: pointer; font-size: .95rem; }
.kakao-btn.big { padding: 12px 22px; font-size: 1rem; }
.kakao-btn:hover { filter: brightness(.96); }
.fi-kakao { background: #fee500; }
.share-box { margin: 18px 0; }
.share-box .muted { margin: 8px 0 0; }

/* 직접 입력 크기 (가로 × 세로) */
.field[hidden] { display: none; }
.custom-box > :not(span) { grid-column: 2; }
.custom-box .cs-row { display: flex; align-items: center; gap: 8px; }
.custom-box .cs-row input { width: 100%; min-width: 0; }
.custom-box .cs-row em { font-style: normal; color: var(--muted); }
.custom-box .hint.bad { color: #c0392b; }
.fit-svg svg { display: block; max-width: 150px; height: auto; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; }
.fit-svg:empty { display: none; }
@media (max-width: 640px) { .custom-box > :not(span) { grid-column: 1; } }

/* 파일 끌어다 놓기 영역 */
.dropzone { position: relative; border: 2px dashed #b8b8b8; border-radius: 12px; background: #fafafa; padding: 22px 16px; text-align: center; transition: border-color .15s, background .15s; }
.dropzone:hover { border-color: #888; }
.dropzone.over { border-color: var(--accent, #d4006e); background: #fff0f8; }
.dropzone.has-file { border-style: solid; border-color: #2e9e5b; background: #f3fbf6; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.dropzone strong { display: block; font-size: 1rem; word-break: break-all; }
.dropzone small { display: block; margin-top: 4px; color: var(--muted); font-size: .85rem; }
.dropzone .dz-clear { display: inline-block; margin-top: 8px; font-size: .85rem; color: #0b6fb3; text-decoration: underline; }
.dropzone [hidden] { display: none; }
.field.file .hint.bad { grid-column: 2; color: #c0392b; margin: 6px 0 0; }
@media (max-width: 640px) { .field.file .hint.bad { grid-column: 1; } }

/* 용지 안내: 질감 사진 (public/images/paper-종류.jpg 가 있을 때만) — 마우스를 올리면 3배 확대 */
.dlist li.paper-row { display: flex; gap: 14px; align-items: flex-start; list-style: none; margin-left: -1.1em; }
.paper-thumb { flex: 0 0 140px; display: block; overflow: hidden; border-radius: 8px; background: #f4f7fb; cursor: zoom-in; }
.paper-thumb img { display: block; width: 140px; height: 140px; object-fit: cover; transition: transform .25s ease-out; will-change: transform; backface-visibility: hidden; }
@media (hover: hover) { .paper-thumb:hover img { transform: scale(3); } }
@media (max-width: 560px) { .paper-thumb { flex-basis: 104px; } .paper-thumb img { width: 104px; height: 104px; } }

/* 한 판에 들어가는 개수: 숫자를 크게 강조 */
.custom-box .hint.fit-ok { margin: 10px 0 12px; padding: 12px 14px; background: var(--c-tint); border-left: 5px solid var(--c); border-radius: 8px; color: var(--ink); }
.fit-ok .fit-main { display: block; font-size: 1rem; font-weight: 700; }
.fit-ok .fit-num { display: inline-block; margin: 0 2px; padding: 0 10px; border-radius: 8px; background: var(--c); color: #fff; font-size: 1.6rem; line-height: 1.35; font-weight: 900; vertical-align: -2px; }
.fit-ok .fit-main small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.fit-ok .fit-sub { display: block; margin-top: 6px; font-size: .92rem; color: var(--muted); }
.fit-ok .fit-sub b { color: var(--c-ink); font-size: 1rem; }
/* 용지가 얇아 코팅을 못 할 때 안내 */
.coat-warn { margin: 6px 0 12px; padding: 10px 14px; border: 2px solid #e04b4b; border-radius: 8px; background: #fff5f5; color: #d12f2f; font-size: .92rem; font-weight: 700; }
.coat-warn[hidden] { display: none; }

/* 용지 종류와 평량(g)을 한 줄에 나란히 */
.paper-pair { display: flex; gap: 8px; min-width: 0; }
.paper-pair select { flex: 1 1 0; min-width: 0; }
.paper-pair select#f_pgram { flex: 0 0 38%; }

/* ---------- 주문 화면 글씨·입력칸을 한 단계 작게 (컴팩트) ---------- */
.layout { font-size: 14px; line-height: 1.5; }
.layout legend { font-size: 14px; }
.layout fieldset { padding: 12px 18px 4px; margin-bottom: 14px; }
.layout .field { margin-bottom: 10px; gap: 10px; grid-template-columns: 152px 1fr; }
.layout .field > span { white-space: nowrap; } /* 라벨은 항상 한 줄 (예: 종 (서로 다른 디자인 수)) */
.layout .field > span { font-size: 13px; }
.layout input, .layout select, .layout textarea { padding: 6px 10px; font-size: 13.5px; border-radius: 8px; }
.layout .hint { font-size: 12.5px; margin: 3px 0 10px; }
.layout .hint.hl { font-size: 13.5px; padding: 8px 12px; }
.layout .coat-warn { font-size: 12.5px; padding: 8px 12px; }
.layout .fit-ok .fit-main { font-size: 13.5px; }
.layout .fit-ok .fit-num { font-size: 1.35rem; }
.layout .fit-ok .fit-sub, .layout .fit-ok .fit-sub b { font-size: 12.5px; }
.layout p { font-size: 13px; }
.layout .summary { padding: 16px; }
.layout .summary h2 { font-size: 15px; }
.layout .summary .spec { font-size: 12.5px; }
.layout .summary dl { font-size: 13.5px; }
.layout .summary .total { font-size: 1.2rem; }
.layout .btn, .layout button.primary { font-size: 14.5px; }
.ohead h1 { font-size: 1.5rem; }
.ohead p { font-size: 13px; }
/* 용지·코팅·상품 소개 글도 같은 크기로 */
.pdetail { font-size: 14px; line-height: 1.6; }
.pdetail .dlist { font-size: 13px; }
.pdetail .hint { font-size: 12.5px; }
/* 아이폰은 입력칸이 16px보다 작으면 눌렀을 때 화면이 확대되므로 작은 화면에서는 16px 유지 */
@media (max-width: 640px) { .layout input, .layout select, .layout textarea { font-size: 16px; } }

/* ---- v10: 모바일 개선 ---- */
/* 상단 메뉴: 가로 스크롤 대신 4칸씩 줄바꿈 (장바구니·견적문의 등이 화면 밖으로 숨지 않게) */
@media (max-width: 860px) {
  .menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .menu a { padding: 9px 4px; text-align: center; font-size: .92rem; background: var(--k-tint); }
  .menu a.on { background: var(--ink); color: #fff; }
}
@media (max-width: 360px) { .menu a { font-size: .84rem; } }

/* 주문 폼: 좁은 화면에서는 라벨을 위로 (기존 .layout .field 규칙이 모바일 규칙을 덮고 있었음) */
@media (max-width: 640px) {
  .layout .field { grid-template-columns: 1fr; gap: 4px; }
  .layout .field > span { font-size: 12.5px; }
  .layout select, .layout input, .layout textarea { max-width: 100%; }
}

/* 하단 고정 금액 바 (모바일) */
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 2px solid var(--ink); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
  .mbar-sum { display: flex; flex-direction: column; line-height: 1.2; }
  .mbar-sum small { color: var(--muted); font-size: .72rem; }
  .mbar-sum b { color: var(--m-ink); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
  .mbar .primary { margin: 0; width: auto; padding: 12px 20px; white-space: nowrap; }
  body.has-mbar .float { display: none; }
  body.has-mbar .foot { padding-bottom: 96px; }
}

/* 푸터 링크: 어두운 배경에서 잘 보이게 */
.foot a:not(.kakao-btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- v12: 디자인 점검 ---------- */
/* 가이드 하단 카드: 6장을 3열×2행으로 (4+2로 갈라지지 않게), 같은 줄은 높이 맞춤 */
.guide-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 860px) { .guide-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guide-grid.three { grid-template-columns: 1fr; } }

/* 중간 폭: 주문 화면에서는 합계 박스를 가리지 않게 떠 있는 막대를 숨김 (상단 메뉴에 견적문의 있음) */
@media (max-width: 1340px) and (min-width: 861px) { body.has-mbar .float { display: none; } }

/* ---------- 업로드 진행 막대 ---------- */
body.up-open { overflow: hidden; }
.upov { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(20, 22, 30, .55); }
.upov[hidden] { display: none; }
.upbox { width: min(440px, 100%); background: #fff; border-radius: 14px; padding: 22px 22px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); text-align: center; }
.upbox .up-title { display: block; font-size: 1.05rem; }
.upbox .up-name { margin: 6px 0 14px; font-size: .85rem; color: var(--muted, #666); word-break: break-all; }
.up-bar { position: relative; height: 14px; border-radius: 999px; background: #e9ecf2; overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #2e9e5b, #3bc176); transition: width .2s linear; }
.up-bar.wait i { background: repeating-linear-gradient(45deg, #2e9e5b 0 12px, #3bc176 12px 24px); background-size: 34px 34px; animation: upstripe .8s linear infinite; }
@keyframes upstripe { to { background-position: 34px 0; } }
.up-pct { margin: 10px 0 2px; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.up-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: .85rem; color: var(--muted, #666); font-variant-numeric: tabular-nums; }
.upbox .up-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted, #666); }
.upbox .up-note.bad { color: #c0392b; font-weight: 600; }
.up-btns { margin-top: 14px; }
.up-btns button { padding: 8px 22px; border: 1px solid #cfd3dc; border-radius: 8px; background: #fff; font-size: .9rem; cursor: pointer; }
.up-btns button[hidden] { display: none; }

/* ---------- 수량 · 종: 한 줄 ([수량] 매 × [종] 종) ---------- */
.qk-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; }
.qk-row > select, .qk-row > .qk-qty { flex: 0 0 120px; min-width: 0; width: 120px; }
.qk-row > .qk-kinds { flex: 0 0 76px; width: 76px; min-width: 0; text-align: center; }
.qk-row > em { font-style: normal; color: var(--muted); white-space: nowrap; }
.qk-row > .qk-x { color: var(--muted); font-weight: 700; }
.qk-row [hidden] { display: none !important; }

/* ---- 관리자 주문 상세: 파일 검수·반려 카드는 가로 전체로 크게 ---- */
.intake-wide { margin-top: 20px; }
.intake-wide .card { width: 100%; }
.rj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin: 8px 0 14px; }
.rj-col h4 { margin: 0 0 8px; font-size: 1rem; }
.rj-col h4 small { color: var(--muted); font-weight: 400; }
.rj-col textarea, .rj-col input { width: 100%; box-sizing: border-box; }
.rj-lbl { display: block; margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.rj-lbl input, .rj-lbl textarea { display: block; margin-top: 4px; color: initial; }
@media (max-width: 900px) { .rj-grid { grid-template-columns: 1fr; } }

/* ---- 여러 파일 올리기: 순서 목록 ---- */
.dz-list-wrap { margin-top: 10px; }
.dz-list-head { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.dz-list-head button { border: 0; background: none; color: #c0392b; text-decoration: underline; cursor: pointer; font-size: .85rem; }
.dz-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line, #ddd); border-radius: 10px; overflow: hidden; }
.dz-list li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line, #eee); font-size: .9rem; }
.dz-list li:last-child { border-bottom: 0; }
.dz-no { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #123b82; color: #fff; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700; }
.dz-fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-fs { flex: none; color: var(--muted); font-size: .82rem; }
.dz-list button { flex: none; width: 28px; height: 28px; border: 1px solid #ccc; border-radius: 6px; background: #fff; cursor: pointer; padding: 0; line-height: 1; }
.dz-list button:disabled { opacity: .35; cursor: default; }
/* 파일 목록은 입력칸(오른쪽 열) 아래에 같은 폭으로 */
.field.file .dz-list-wrap { grid-column: 2; min-width: 0; margin-top: 0; }
.field.file .dz-list-wrap .hint { margin: 8px 0 0; }
.dz-list-head span { white-space: nowrap; }
.dz-list-head button { white-space: nowrap; }
@media (max-width: 640px) { .field.file .dz-list-wrap { grid-column: 1; } }
