﻿/* 상품 주문 화면. DTPIA FRAME 디자인 시스템(Claude Design '모바일 상품 주문 페이지')의 product-* 규칙을 모바일 토큰으로 옮겼다. */
.product-order { display:grid; gap:24px; }
.product-order .notice { margin-top:0; }
.product-form { display:grid; gap:24px; }
.product-section { display:grid; gap:12px; }
.product-section h2 { font-size:17px; font-weight:800; }
/* 옵션이 많은 화면(카탈로그)은 영역마다 카드로 나눠 표지·내지 등의 경계를 보이게 한다 */
.product-section--card { padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.product-section--card h2 { display:flex; align-items:center; gap:8px; margin:0; padding-bottom:12px; border-bottom:1px solid var(--line); }
.product-section--card h2::before { content:""; flex:none; width:4px; height:16px; border-radius:2px; background:var(--brand-700); }
.product-heading-help { display:flex; align-items:center; gap:2px; }
.product-help { display:inline-grid; width:44px; height:44px; margin:-12px 0; place-items:center; color:var(--ink-500); }
.product-help:hover,.product-help:focus-visible { color:var(--brand-700); }

/* 상품 선택 · 명함 종류 선택 */
.product-select { display:grid; gap:24px; }
.product-select .notice { margin-top:0; }
.product-select .notice a { font-weight:800; text-decoration:underline; }
.product-select__intro { display:grid; gap:4px; }
.product-select__intro h1 { margin:0; font-size:24px; font-weight:800; letter-spacing:-.04em; }
.product-select__intro p { margin:0; color:var(--ink-700); font-size:15px; line-height:1.5; }
.product-select__group { display:grid; gap:12px; }
.product-select__group h2 { margin:0; font-size:17px; font-weight:800; }
.product-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
/* 상품 메인은 한 줄에 품목 하나(왼쪽 사진, 오른쪽 품목명과 대표 상품) */
.product-list--rows { grid-template-columns:1fr; gap:8px; }
.product-list--rows .product-item { flex-direction:row; gap:14px; padding:12px 14px; text-align:left; }
.product-list--rows .product-item img { flex:none; width:56px; height:56px; }
.product-list--rows .product-item__text b { font-size:16px; }
.product-list--rows .product-item__text small { margin-top:3px; color:var(--ink-700); font-size:13px; line-height:1.45; }
/* 상품 이름 중간에서 줄이 바뀌지 않게 한다 */
.product-list--rows .product-item__text small span { white-space:nowrap; }
/* 하위 종류 화면은 한 줄 4칸 */
.product-list--compact { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.product-list--compact .product-item { gap:6px; padding:10px 4px 8px; border-radius:12px; }
.product-list--compact .product-item img { width:52px; height:52px; }
.product-list--compact .product-item__text b { font-size:12px; overflow-wrap:anywhere; }
.product-list--compact .product-item__text small { margin-top:2px; font-size:11px; }
/* 칸이 좁아 사진 위에 겹치지 않도록 배지는 이름 아래에 둔다 */
.product-list--compact .product-item .badge { position:static; }
/* 판촉물 제품 선택 화면: 사진을 보고 고르도록 한 줄 2칸에 사진을 칸 너비로 키운다 */
.product-list--gallery .product-item { gap:8px; padding:8px 8px 12px; }
.product-list--gallery .product-item img { width:100%; height:auto; aspect-ratio:1; object-fit:contain; background:var(--canvas); }
.product-list--gallery .product-item__text b { font-size:13px; overflow-wrap:anywhere; }
.product-item { position:relative; display:flex; flex-direction:column; align-items:center; gap:10px; padding:16px 12px 14px; border:1px solid var(--line); border-radius:14px; background:var(--surface); box-shadow:0 2px 7px rgba(23,32,51,.03); color:var(--ink-900); text-align:center; }
.product-item img { width:72px; height:72px; border-radius:10px; object-fit:cover; }
.product-item__text { display:flex; min-width:0; max-width:100%; flex-direction:column; }
.product-item__text b { font-size:14px; font-weight:800; line-height:1.35; word-break:keep-all; }
.product-item .badge { position:absolute; top:8px; right:8px; }
.product-estimate-card { flex-direction:row; justify-content:space-between; text-align:left; border-color:var(--brand-500); background:var(--brand-50); }
.product-item.product-estimate-card .badge { position:static; flex:none; }

.stepper { display:grid; grid-template-columns:repeat(3,1fr); margin:0; padding:0; list-style:none; }
.stepper li { position:relative; display:grid; justify-items:center; gap:7px; color:var(--ink-500); font-size:11px; text-align:center; }
.stepper li::before { content:""; position:absolute; top:14px; left:-50%; right:50%; z-index:0; height:2px; background:var(--line-strong); }
.stepper li:first-child::before { display:none; }
.stepper i { position:relative; z-index:1; display:grid; place-items:center; width:30px; height:30px; border:2px solid var(--line-strong); border-radius:50%; background:var(--surface); font-style:normal; font-weight:800; }
.stepper .active { color:var(--brand-700); font-weight:800; }
.stepper .active i { border-color:var(--brand-700); }

.product-card { display:grid; gap:6px; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); box-shadow:0 2px 7px rgba(23,32,51,.03); }
.product-card h1 { margin:0; font-size:17px; font-weight:800; letter-spacing:-.4px; }
.product-card p { margin:0; color:var(--ink-700); font-size:12px; line-height:1.5; }
.product-card:has(> .product-card__thumb) { grid-template-columns:minmax(0,1fr) 64px; column-gap:12px; }
.product-card:has(> .product-card__thumb) > :not(.product-card__thumb) { grid-column:1; }
.product-card__thumb { grid-column:2; grid-row:1 / span 2; align-self:center; width:64px; height:64px; border-radius:10px; object-fit:cover; background:var(--canvas); }

.product-option,.product-size,.product-finishing { display:grid; gap:12px; }
.product-form label { display:grid; gap:7px; min-width:0; font-size:14px; font-weight:800; }
.product-form label small { color:var(--ink-500); font-weight:500; }
.product-form select,.product-form input[type=number],.product-form input[type=text] { width:100%; min-width:0; min-height:44px; margin:0; padding:0 11px; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface); font-size:14px; font-weight:500; }
.product-form select:focus,.product-form input:focus { border-color:var(--brand-700); }
.product-option-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.product-option-pair > [hidden] { display:none; }
.product-option-pair + label { display:block; margin-top:12px; }
.product-form small { color:var(--ink-500); font-size:12px; line-height:1.5; }
.product-form fieldset { min-width:0; margin:0; padding:0; border:0; }
.product-form legend { margin-bottom:8px; font-size:14px; font-weight:800; }
.product-form [hidden] { display:none !important; }

.product-size-modes { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.product-size-modes label,.product-finish-grid label,.finish-corners label { display:flex; align-items:center; gap:8px; min-height:44px; padding:9px 10px; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface); font-size:14px; font-weight:700; cursor:pointer; }
.product-size-modes label { justify-content:center; }
.product-size-modes label:has(input:checked) { border-color:var(--brand-700); background:var(--brand-100); color:var(--brand-900); }
.product-form input[type=radio],.product-form input[type=checkbox] { display:inline-block; flex:none; width:16px; height:16px; min-height:16px; margin:0; padding:0; accent-color:var(--brand-700); }
.product-size-result { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.product-size-result div { display:grid; gap:3px; min-width:0; padding:11px; border:1px solid var(--line); border-radius:10px; background:var(--brand-50); }
.product-size-result span { color:var(--ink-500); font-size:12px; }
.product-size-result b { font-size:14px; overflow-wrap:anywhere; }
.product-size-result .product-size-result__wide { grid-column:1 / -1; }

.product-finish-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.product-finish-grid label:has(input:checked),.finish-corners label:has(input:checked) { border-color:var(--brand-700); background:var(--brand-50); color:var(--brand-900); }
.product-finish-grid label:has(input:disabled) { cursor:default; }
.finish-detail { display:grid; gap:10px; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--brand-50); }
.finish-detail > strong { font-size:14px; }
.finish-corners { display:flex; flex-wrap:wrap; gap:6px; }
.finish-corners label { min-height:40px; padding:6px 10px; font-size:13px; }
.finish-corners--round { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.finish-corners--round label:first-child { grid-column:1 / -1; }
.finish-corners--round label:not(:first-child) { gap:5px; padding-inline:7px; white-space:nowrap; }

.product-summary dl { margin:0; padding:3px 13px; border:1px solid var(--line); border-radius:11px; background:var(--surface); }
.product-summary dl div { display:grid; grid-template-columns:72px minmax(0,1fr); gap:10px; padding:10px 0; border-bottom:1px solid var(--line); font-size:14px; }
.product-summary dl div:last-child { border-bottom:0; }
.product-summary dt { color:var(--ink-500); }
.product-summary dd { min-width:0; margin:0; font-weight:800; text-align:right; overflow-wrap:anywhere; }
.product-total { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:10px; padding:12px 2px 0; border-top:1px solid var(--line); font-size:14px; }
.product-total strong { color:var(--brand-800); font-size:20px; text-align:right; font-variant-numeric:tabular-nums; }

.order-action-bar { position:sticky; bottom:calc(76px + env(safe-area-inset-bottom)); z-index:5; padding:10px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 -4px 16px rgba(30,74,128,.08); }
.order-action-bar .button { margin:0; }
@media (max-width:340px) { .product-option-pair { grid-template-columns:1fr; } }

/* 현수막·실사출력: 광고천하 주문창(iframe)과 UV 출력 동의창 */
.product-item__text small { margin-top:4px; color:var(--ink-500); font-size:12px; }
.realprint-zip { color:var(--danger); font-size:12px; line-height:1.5; }
.realprint-box { position:relative; width:100%; min-height:120px; overflow:hidden; color:var(--ink-500); font-size:13px; }
.realprint-box iframe { display:block; max-width:100%; }
.realprint-uv { width:min(100% - 32px, 400px); padding:20px 16px; border:0; border-radius:14px; color:var(--ink-900); }
.realprint-uv::backdrop { background:#172b4670; }
.realprint-uv h2 { margin:0 0 10px; font-size:16px; font-weight:800; }
.realprint-uv ul { display:grid; gap:6px; margin:0 0 14px; padding-left:18px; font-size:13px; line-height:1.5; }
.realprint-uv b { color:var(--brand-700); }
.realprint-uv__agree { display:flex; align-items:flex-start; gap:8px; padding:10px; border-radius:10px; background:var(--brand-50); font-size:13px; font-weight:700; }
.realprint-uv__actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px; }
.realprint-uv__actions .button { margin:0; }
.product-form textarea { width:100%; min-width:0; min-height:88px; margin:0; padding:10px 11px; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface); font:inherit; font-size:14px; font-weight:500; resize:vertical; }
.product-form textarea:focus { border-color:var(--brand-700); }
.product-famous-preview { display:block; width:100%; max-height:320px; object-fit:contain; border-radius:10px; background:var(--canvas); }
/* 배송스티커 디자인 선택(PC 디자인 목록 사진) */
.product-design-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0; padding:0; border:0; }
.product-design-grid[hidden] { display:none; }
/* 롤스티커 풀리는 방향 안내(PC roll_pop 그림) */
.product-guide { border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.product-guide summary { min-height:44px; padding:12px; font-size:14px; font-weight:800; cursor:pointer; }
.product-guide img { display:block; width:100%; height:auto; }
.product-guide ul { margin:0; padding:10px 12px 12px 28px; color:var(--ink-700); font-size:13px; line-height:1.6; }
.product-design-grid label { position:relative; display:grid; gap:4px; padding:6px; border:1px solid var(--line); border-radius:10px; background:var(--surface); font-size:12px; font-weight:700; text-align:center; cursor:pointer; }
.product-design-grid input { position:absolute; opacity:0; }
.product-design-grid img { display:block; width:100%; height:auto; aspect-ratio:1; border-radius:6px; }
.product-design-grid label:has(input:checked) { border-color:var(--brand-700); background:var(--brand-50); color:var(--brand-900); box-shadow:0 0 0 1px var(--brand-700); }
.product-design-grid label:has(input:focus-visible) { outline:2px solid var(--brand-700); outline-offset:2px; }
/* 쇼핑백 3종 전환 탭(PC category-btn). 모양은 주소록 탭(.delivery-address-tabs)과 같습니다. */
.product-kind-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin-bottom:16px; padding:4px; border-radius:12px; background:var(--line); }
.product-kind-tabs a { display:flex; min-height:40px; align-items:center; justify-content:center; border-radius:9px; color:var(--ink-500); font-size:13px; font-weight:700; }
.product-kind-tabs a.active { background:var(--surface); color:var(--brand-700); box-shadow:0 1px 4px rgb(30 42 58 / 10%); }
/* 칼라박스: 장·폭·고 입력과 대략적인 전개도·3D 미리보기 */
.box-size-inputs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.box-size-inputs label { display:grid; gap:6px; min-width:0; font-size:13px; font-weight:700; }
/* 장·폭·고 색: 입력칸·범례·전개도·3D 모서리가 같은 색을 쓴다(흰 바탕 대비 4.5:1 이상, 색약에도 구분되는 파랑·주황·초록). */
.box-size-inputs, .box-preview { --dim-l:#0a6eb4; --dim-w:#b84a00; --dim-h:#087a54; }
.box-dim--l { --dim:var(--dim-l); }
.box-dim--w { --dim:var(--dim-w); }
.box-dim--h { --dim:var(--dim-h); }
.box-size-inputs .box-dim { color:var(--dim); }
.box-size-inputs .box-dim input { color:var(--ink-900); border-left:4px solid var(--dim); }
.box-preview__dims { display:flex; flex-wrap:wrap; gap:6px 14px; margin:0; padding:0; list-style:none; font-size:13px; font-weight:700; }
.box-preview__dims li { display:flex; align-items:center; gap:6px; color:var(--dim); }
.box-preview__dims li::before { content:""; width:18px; height:4px; border-radius:2px; background:var(--dim); }
.box-preview { display:grid; gap:10px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--brand-50); }
.box-preview__stage { display:grid; place-items:center; min-height:240px; border-radius:10px; background:var(--surface); overflow:hidden; touch-action:none; }
.box-preview__caption { margin:0; color:var(--ink-500); font-size:12px; }
.box-net svg { width:100%; max-height:320px; padding:8px; }
.box-net__panel { fill:var(--surface); stroke:var(--ink-500); stroke-width:1.2; stroke-dasharray:4 3; vector-effect:non-scaling-stroke; }
.box-net__panel--main { fill:var(--brand-100); }
.box-net text { fill:var(--dim, var(--ink-500)); text-anchor:middle; dominant-baseline:middle; font-weight:700; }
.box-net__edge { fill:none; stroke:var(--dim); stroke-width:3; stroke-dasharray:none; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.box-3d { perspective:700px; cursor:grab; user-select:none; }
.box-3d:active { cursor:grabbing; }
.box-3d__cube { position:relative; width:0; height:0; transform-style:preserve-3d; transition:transform .05s linear; }
.box-3d__face { position:absolute; left:0; top:0; display:grid; place-items:center; border:3px solid; color:var(--ink-700); font-size:12px; font-weight:800; backface-visibility:hidden; }
/* 모서리 색 = 그 모서리 길이(위아래 테두리·좌우 테두리): 앞뒤 장×고, 옆 폭×고, 위아래 장×폭 */
.box-3d__face--front { background:#eef1f5; border-color:var(--dim-l) var(--dim-h); }
.box-3d__face--side { background:#dde3ea; border-color:var(--dim-w) var(--dim-h); }
.box-3d__face--top { background:#f8fafc; border-color:var(--dim-l) var(--dim-w); }
.box-3d__face--open { backface-visibility:visible; }
.box-3d__face--inner { background:#fdf3e4; place-items:center end; padding-right:4px; box-sizing:border-box; }
.box-3d__face--pillow { border-radius:50% / 18%; }
@media (prefers-reduced-motion:reduce) { .box-3d__cube { transition:none; } }
