/**
 * 네츄럴 미당 코리아 — 쇼핑몰 고객 화면 공통 스타일 (화면 A·B 공용, 접두사 .sh-)
 * from: work/쇼핑몰/계획.md 「화면 공통 규칙」 · work/design.md 2)·3) — 색·모서리 토큰은 brand.css(site.css 가 불러옴)를 그대로 쓴다.
 * 새 페이지는 site.css + 이 파일만 부른다(모션·hero 파일 없음). 색은 남색·연두·종이색 + 오류 글자색 1개.
 */

:root {
  --sh-header-h: 76px;
}

/* ---------- 바탕·공통 ---------- */
body.sh-body { background: var(--c-paper); min-height: 100svh; display: flex; flex-direction: column; }
.sh-main { flex: 1; overflow-x: clip; }
[hidden] { display: none !important; }
html.sh-lock { overflow: hidden; }
.sh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sh-muted { color: var(--sh-muted); }
.sh-small { font-size: var(--fs-small); }
.sh-strong { font-weight: 600; color: var(--c-ink); }
.sh-num { font-variant-numeric: tabular-nums; }
.sh-page { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 128px); }
.sh-narrow { width: min(100% - var(--gutter) * 2, 720px); margin-inline: auto; }
.sh-stack { display: grid; gap: 24px; }
.sh-stack-sm { display: grid; gap: 12px; }
.sh-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sh-row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* 페이지 제목 — .eyebrow + .sh-title (+ .sh-lead) */
.sh-page-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.sh-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.15; letter-spacing: -0.02em; color: var(--c-ink); margin: 0; text-wrap: balance; }
.sh-title-sm { font-size: clamp(24px, 2.4vw, 34px); }
.sh-lead { max-width: 40em; margin: 0; }
.sh-h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; color: var(--c-ink); margin: 0; }
.sh-h3 { font-family: var(--f-display); font-weight: 500; font-size: 17px; line-height: 1.35; color: var(--c-ink); margin: 0; }

/* ---------- 버튼 보강(.btn 은 site.css) ---------- */
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-white { background: var(--c-white); color: var(--c-ink); border-color: var(--c-line); }
.btn-white:hover { border-color: var(--c-navy); }
.sh-link-btn { border: 0; background: none; padding: 0 2px; min-height: 44px; cursor: pointer; color: var(--c-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(var(--c-navy-rgb) / 0.35); }
.sh-link-btn:hover { text-decoration-color: currentColor; }

/* ---------- 머리말 ---------- */
.sh-header { position: sticky; top: 0; z-index: 100; background: rgb(var(--c-paper-rgb) / 0.94); border-bottom: 1px solid var(--c-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sh-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--sh-header-h); }
.sh-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--c-ink); }
.sh-brand-mark { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: none; overflow: hidden; border-radius: 50%; background: var(--c-ink); color: var(--c-paper); font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.1em; padding: 3px 3px 0 0; }
.sh-brand-mark::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgb(var(--c-lime-rgb) / 0.7); border-radius: 50%; transform: rotate(-28deg) scaleX(0.58); }
.sh-brand-name { display: flex; flex-direction: column; gap: 4px; line-height: 1.05; }
.sh-brand-name strong { font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.sh-brand-name small { font-size: 11px; font-weight: 500; color: var(--c-body); }
.sh-nav { display: flex; align-items: center; gap: 8px; }
.sh-nav-list { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 20px); }
.sh-nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 3px 6px 0; font-family: var(--f-display); font-weight: 500; font-size: 15px; color: var(--c-ink); text-decoration: none; border: 0; background: none; cursor: pointer; }
.sh-nav-link:hover, .sh-nav-link[aria-current="page"] { color: var(--c-navy); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; text-decoration-color: var(--c-lime); }
.sh-nav-sep { width: 1px; height: 18px; background: var(--c-line); }
.sh-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 2px 6px 0; border-radius: var(--r-pill); background: var(--c-lime); color: var(--c-ink); font-family: var(--f-display); font-size: 12px; line-height: 1; }
.sh-nav-toggle { display: none; }

/* 알림 띠(매장 유입·판매 준비) */
.sh-band { font-size: var(--fs-small); line-height: 1.5; padding: 10px 0 9px; border-bottom: 1px solid var(--c-line); }
.sh-band-ref { background: var(--c-lime-bg); color: var(--c-ink); }
.sh-band-closed { background: var(--c-apricot); color: var(--c-ink); font-weight: 600; }
.sh-band a { color: inherit; font-weight: 700; }

/* ---------- 꼬리말 (index.html footer 와 같은 남색 바탕) ---------- */
.sh-footer { background: var(--c-navy-deep); color: rgb(255 255 255 / 0.8); padding-block: clamp(48px, 6vw, 80px) 36px; font-size: 14px; }
.sh-footer :focus-visible { outline-color: var(--c-lime); }
.sh-footer-grid { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 36px 24px; }
.sh-footer-name { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--c-white); }
.sh-footer-en { font-family: var(--f-display); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-lime); margin-top: 10px; }
.sh-footer-title { font-family: var(--f-display); font-weight: 500; font-size: 13px; color: var(--c-white); margin-bottom: 10px; }
.sh-footer-info { display: grid; gap: 4px; line-height: 1.6; }
.sh-footer-info a, .sh-footer-links a { color: inherit; text-decoration: none; }
.sh-footer-links { display: grid; }
.sh-footer-links a { display: inline-flex; align-items: center; min-height: 40px; }
.sh-footer-links a:hover, .sh-footer-info a:hover { color: var(--c-lime); }
.sh-footer-links .is-strong { font-weight: 700; color: var(--c-white); }
.sh-footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.16); font-size: 12px; color: rgb(255 255 255 / 0.66); }

/* ---------- 카드·패널 ---------- */
.sh-card { background: var(--sh-surface); border: 1px solid var(--c-line); border-radius: var(--sh-radius); padding: clamp(20px, 2.4vw, 32px); }
.sh-card-flat { background: transparent; }
.sh-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.sh-card + .sh-card { margin-top: 20px; }
.sh-section-num { font-family: var(--f-display); font-size: 12px; letter-spacing: 0.12em; color: var(--c-navy); }

/* 정의 목록(라벨 : 값) */
.sh-dl { display: grid; margin: 0; }
.sh-dl > div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.sh-dl > div:last-child { border-bottom: 0; }
.sh-dl dt { color: var(--sh-muted); font-size: var(--fs-small); }
.sh-dl dd { margin: 0; color: var(--c-ink); }

/* 표 */
.sh-table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; } /* relative: 칸 안의 숨김 글자(.sh-sr, absolute)가 스크롤 영역 밖으로 나가 쪽 전체를 넓히지 않게 (2026-10-09 모바일 발주 화면) */
.sh-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sh-table th, .sh-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.sh-table th { font-weight: 600; color: var(--c-ink); background: rgb(var(--c-ink-rgb) / 0.04); white-space: nowrap; }
.sh-table-kv th { width: 30%; }

/* ---------- 폼 ---------- */
.sh-form { display: grid; gap: 18px; }
.sh-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.sh-legend { padding: 0; margin-bottom: 4px; }
.sh-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sh-field { display: grid; gap: 6px; min-width: 0; }
.sh-label { font-weight: 600; font-size: 15px; color: var(--c-ink); }
.sh-req { color: var(--c-navy); margin-left: 3px; }
.sh-input, .sh-select, .sh-textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgb(var(--c-ink-rgb) / 0.28); border-radius: var(--sh-radius-sm);
  background: var(--c-white); color: var(--c-ink); font: inherit; font-size: 16px; line-height: 1.4;
}
.sh-textarea { min-height: 132px; resize: vertical; }
.sh-select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--c-navy) 50%), linear-gradient(135deg, var(--c-navy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.sh-input:focus-visible, .sh-select:focus-visible, .sh-textarea:focus-visible { outline: 3px solid rgb(var(--c-navy-rgb) / 0.35); outline-offset: 0; border-color: var(--c-navy); border-radius: var(--sh-radius-sm); }
.sh-input[readonly] { background: rgb(var(--c-ink-rgb) / 0.04); }
.sh-input:disabled, .sh-select:disabled, .sh-textarea:disabled { opacity: 0.6; }
.sh-hint { font-size: 13px; color: var(--sh-muted); }
.sh-error { font-size: 13px; font-weight: 600; color: var(--sh-danger); }
[aria-invalid="true"] { border-color: var(--sh-danger) !important; }
.sh-form-error { padding: 14px 16px; border-radius: var(--sh-radius-sm); border: 1px solid var(--sh-danger); background: var(--c-white); color: var(--sh-danger); font-weight: 600; font-size: 15px; }
.sh-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.sh-check input { width: 20px; height: 20px; flex: none; accent-color: var(--c-navy); margin: 0; }
.sh-check-all { padding: 6px 0 12px; border-bottom: 1px solid var(--c-line); font-weight: 600; color: var(--c-ink); }
.sh-choice { display: grid; gap: 10px; }
.sh-choice-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--sh-radius-sm); background: var(--c-white); cursor: pointer; }
.sh-choice-item input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--c-navy); flex: none; }
.sh-choice-item:has(input:checked) { border-color: var(--c-navy); box-shadow: inset 0 0 0 1px var(--c-navy); }
.sh-inline-field { display: flex; gap: 8px; }
.sh-inline-field .sh-input { flex: 1; }

/* 수량 조절 */
.sh-qty { display: inline-flex; align-items: center; border: 1px solid rgb(var(--c-ink-rgb) / 0.28); border-radius: var(--r-pill); background: var(--c-white); }
.sh-qty-btn { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--c-ink); border-radius: 50%; }
.sh-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.sh-qty-input { width: 48px; height: 44px; border: 0; text-align: center; font: inherit; font-weight: 600; color: var(--c-ink); background: none; -moz-appearance: textfield; }
.sh-qty-input::-webkit-inner-spin-button, .sh-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- 배지 ---------- */
.sh-badge { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 5px; border-radius: var(--r-badge); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.sh-badge-navy { background: var(--c-navy); color: var(--c-white); }
.sh-badge-lime { background: var(--c-lime); color: var(--c-ink); }
.sh-badge-muted { background: rgb(var(--c-ink-rgb) / 0.08); color: var(--sh-muted); }
.sh-badge-line { border: 1px solid var(--c-line); color: var(--c-ink); background: var(--c-white); }
.sh-badge-apricot { background: var(--c-apricot); color: var(--c-ink); }

/* ---------- 탭 ---------- */
.sh-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--c-ink); scrollbar-width: none; }
.sh-tab { flex: none; min-height: 52px; padding: 16px 18px 12px; border: 0; background: none; cursor: pointer; font-family: var(--f-display); font-weight: 500; font-size: 15px; color: var(--sh-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.sh-tab[aria-selected="true"] { color: var(--c-ink); border-bottom-color: var(--c-lime); }
.sh-tab:hover { color: var(--c-ink); }
.sh-tabpanel { padding-top: 28px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { min-height: 44px; padding: 12px 18px 10px; border-radius: var(--r-pill); border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-ink); font-family: var(--f-display); font-size: 14px; cursor: pointer; }
.sh-chip[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }

/* ---------- 상태 화면(빈·오류·불러오는 중) ---------- */
.sh-state { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(48px, 8vw, 96px) 20px; border: 1px dashed rgb(var(--c-ink-rgb) / 0.22); border-radius: var(--sh-radius); }
.sh-state-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--c-lime-bg); color: var(--c-ink); font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.sh-state-title { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--c-ink); }
.sh-state-text { max-width: 30em; color: var(--c-body); }
.sh-state .sh-row { justify-content: center; margin-top: 8px; }
.sh-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px 0; color: var(--sh-muted); }
.sh-loading::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c-line); border-top-color: var(--c-navy); animation: sh-spin 0.8s linear infinite; }
@keyframes sh-spin { to { transform: rotate(360deg); } }

/* 안내 상자 */
.sh-alert { padding: 14px 18px; border-radius: var(--sh-radius-sm); font-size: 15px; line-height: 1.6; }
.sh-alert-info { background: var(--c-lime-bg); color: var(--c-ink); }
.sh-alert-warn { background: var(--c-apricot); color: var(--c-ink); }
.sh-alert-line { border: 1px solid var(--c-line); background: var(--c-white); }
.sh-alert strong { color: var(--c-ink); }

/* ---------- 알림 띠(toast) ---------- */
.sh-toast-region { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 300; display: grid; gap: 8px; width: min(100% - 32px, 440px); pointer-events: none; }
.sh-toast { padding: 14px 20px 13px; border-radius: var(--sh-radius-sm); background: var(--c-ink); color: var(--c-white); box-shadow: var(--shadow); font-size: 15px; animation: sh-toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.sh-toast-error { background: var(--c-white); color: var(--sh-danger); border: 1px solid var(--sh-danger); font-weight: 600; }
@keyframes sh-toast-in { from { opacity: 0; translate: 0 12px; } }

/* ---------- 모달 ---------- */
.sh-modal { width: min(100% - 32px, 720px); max-height: min(88svh, 900px); padding: 0; border: 0; border-radius: var(--sh-radius); background: var(--c-paper); color: var(--c-body); box-shadow: var(--shadow); }
.sh-modal::backdrop { background: rgb(var(--c-navy-deep-rgb) / 0.5); }
.sh-modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 14px 28px; background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.sh-modal-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(var(--c-ink-rgb) / 0.06); cursor: pointer; font-size: 20px; color: var(--c-ink); }
.sh-modal-body { padding: 24px 28px 28px; }
.sh-modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 20px; }
.sh-prose { line-height: 1.8; }
.sh-prose > * + * { margin-top: 1em; }
.sh-prose h2, .sh-prose h3 { font-family: var(--f-display); color: var(--c-ink); line-height: 1.35; }
.sh-prose h2 { font-size: 22px; } .sh-prose h3 { font-size: 18px; }
.sh-prose img { border-radius: var(--sh-radius-sm); }
.sh-detail-img { display: block; height: auto; }   /* 상세페이지 구간 이미지를 틈 없이 세로로 이어 붙인다 */
/* 「제품 구매」 — 외부 판매처(쿠팡 등) 링크 버튼: 제품명 아래·상세페이지 아래·목록 카드 아래 */
.sh-buy-link { display: flex; width: 100%; font-weight: 700; }
.sh-detail-buy { display: flex; justify-content: center; padding: 32px 0 8px; }
.sh-detail-buy .sh-buy-link { max-width: 380px; }
.sh-card-buy { margin-top: 12px; }
.sh-prose ul, .sh-prose ol { padding-left: 1.3em; list-style: revert; }
.sh-prose table { width: 100%; border-collapse: collapse; } .sh-prose td, .sh-prose th { border: 1px solid var(--c-line); padding: 8px 10px; }

/* 페이지 넘김 */
.sh-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.sh-pager button { min-width: 44px; min-height: 44px; padding: 4px 10px 0; border-radius: var(--r-pill); border: 1px solid transparent; background: none; cursor: pointer; font-family: var(--f-display); color: var(--c-ink); }
.sh-pager button[aria-current="page"] { background: var(--c-ink); color: var(--c-white); }
.sh-pager button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- 상품 목록 (index.html catalog-card 와 같은 결) ---------- */
.sh-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--c-ink); }
.sh-search { display: flex; gap: 8px; flex: 1 1 280px; max-width: 420px; }
.sh-search .sh-input { border-radius: var(--r-pill); padding-inline: 20px; }
.sh-toolbar-right { display: flex; align-items: center; gap: 12px; }
.sh-toolbar-right .sh-select { width: auto; min-width: 150px; border-radius: var(--r-pill); padding-left: 18px; }
.sh-result-count { font-size: var(--fs-small); color: var(--sh-muted); padding-top: 18px; }
.sh-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 20px; padding-top: 24px; }
.sh-product-card { position: relative; min-width: 0; }
.sh-product-link { display: block; text-decoration: none; color: inherit; }
.sh-product-img { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: var(--c-white); }
.sh-product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.sh-product-img .sh-badge { position: absolute; left: 12px; top: 12px; }
.sh-noimg { font-family: var(--f-display); font-size: 13px; letter-spacing: 0.14em; color: var(--sh-muted); }
.sh-product-info { display: grid; gap: 6px; padding-top: 18px; }
.sh-product-brand { color: var(--c-forest); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.sh-product-name { font-family: var(--f-display); font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; color: var(--c-ink); margin: 0; }
.sh-product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 700; color: var(--c-ink); }
.sh-product-price del { font-weight: 500; font-size: 13px; color: var(--sh-muted); }
.sh-product-meta { font-size: 13px; color: var(--sh-muted); }
.sh-product-soon { font-size: 14px; font-weight: 600; color: var(--sh-muted); }

/* ---------- 상품 상세 ---------- */
.sh-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--sh-muted); margin-bottom: 24px; }
.sh-crumbs a { color: inherit; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.sh-crumbs a:hover { color: var(--c-navy); }
.sh-pd { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.sh-gallery { display: grid; gap: 12px; }
.sh-gallery-main { position: relative; aspect-ratio: 1; background: var(--c-white); border-radius: var(--sh-radius); overflow: hidden; display: grid; place-items: center; }
.sh-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.sh-gallery-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line); background: rgb(255 255 255 / 0.9); cursor: pointer; font-size: 18px; color: var(--c-ink); }
.sh-gallery-prev { left: 12px; } .sh-gallery-next { right: 12px; }
.sh-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px; }
.sh-thumb { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--sh-radius-sm); background: var(--c-white); overflow: hidden; cursor: pointer; }
.sh-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.sh-thumb[aria-current="true"] { border-color: var(--c-navy); }
.sh-pd-info { position: sticky; top: calc(var(--sh-header-h) + 24px); display: grid; gap: 20px; }
.sh-pd-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.18; letter-spacing: -0.03em; color: var(--c-ink); margin: 0; }
.sh-pd-summary { margin: 0; }
.sh-price { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); color: var(--c-ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.sh-price del { font-family: var(--f-body); font-size: 16px; font-weight: 500; color: var(--sh-muted); }
.sh-price-soon { font-size: 22px; color: var(--sh-muted); }
.sh-buybox { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.sh-buy-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--c-ink); }
.sh-buy-total strong { font-family: var(--f-display); font-size: 24px; }
.sh-buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-pd-tabs { margin-top: clamp(56px, 7vw, 104px); }
.sh-review, .sh-inquiry { padding: 20px 0; border-bottom: 1px solid var(--c-line); display: grid; gap: 8px; }
.sh-stars { color: var(--c-navy); letter-spacing: 2px; font-size: 16px; }
.sh-reply { margin-top: 6px; padding: 12px 16px; border-radius: var(--sh-radius-sm); background: rgb(var(--c-ink-rgb) / 0.05); font-size: 15px; }
.sh-inquiry-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--c-ink); font-weight: 600; }

/* ---------- 장바구니·주문서 ---------- */
.sh-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 3vw, 48px); align-items: start; }
.sh-aside { position: sticky; top: calc(var(--sh-header-h) + 24px); display: grid; gap: 16px; }
.sh-lines { border-top: 2px solid var(--c-ink); }
.sh-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--c-line); }
.sh-line-img { width: 96px; height: 112px; background: var(--c-white); border-radius: var(--sh-radius-sm); overflow: hidden; display: grid; place-items: center; }
.sh-line-img img { width: 100%; height: 100%; object-fit: contain; }
.sh-line-body { display: grid; gap: 6px; min-width: 0; }
.sh-line-name { font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--c-ink); text-decoration: none; }
.sh-line-name:hover { color: var(--c-navy); }
.sh-line-opt { font-size: 14px; color: var(--sh-muted); }
.sh-line-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; }
.sh-line-amount { font-weight: 700; color: var(--c-ink); text-align: right; white-space: nowrap; }
.sh-line-problem { font-size: 13px; font-weight: 600; color: var(--sh-danger); }
.sh-line.is-problem .sh-line-img { opacity: 0.55; }
.sh-summary { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--sh-radius); padding: 24px; display: grid; gap: 12px; }
.sh-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sh-summary-row dd { margin: 0; color: var(--c-ink); font-weight: 600; }
.sh-summary-row dt { color: var(--c-body); }
.sh-summary-total { padding-top: 16px; margin-top: 4px; border-top: 2px solid var(--c-ink); align-items: baseline; }
.sh-summary-total dt { font-weight: 700; color: var(--c-ink); }
.sh-summary-total dd { font-family: var(--f-display); font-size: 26px; font-weight: 700; }
.sh-summary-note { font-size: 13px; color: var(--sh-muted); }
.sh-pay-panel { display: grid; gap: 16px; }
.sh-pay-panel #payment-method, .sh-pay-panel #agreement { background: var(--c-white); border-radius: var(--sh-radius-sm); }
.sh-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--f-display); font-size: 13px; color: var(--sh-muted); }
.sh-steps li + li::before { content: "›"; display: inline-block; margin-right: 10px; color: var(--c-line); }
.sh-steps [aria-current="step"] { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-lime); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* 결과 화면(주문 완료·결제 처리) */
.sh-result { text-align: center; display: grid; justify-items: center; gap: 16px; }
.sh-result-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); font-size: 30px; font-weight: 700; }
.sh-result-mark.is-muted { background: rgb(var(--c-ink-rgb) / 0.08); color: var(--c-navy); }
.sh-orderno { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); color: var(--c-ink); letter-spacing: 0.02em; }

/* 별점 입력 */
.sh-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.sh-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sh-rating label { font-size: 30px; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; color: rgb(var(--c-ink-rgb) / 0.2); cursor: pointer; }
.sh-rating input:checked ~ label, .sh-rating label:hover, .sh-rating label:hover ~ label { color: var(--c-navy); }
.sh-rating input:focus-visible + label { outline: 3px solid var(--c-navy); border-radius: 8px; }

/* 목록(공지 등) */
.sh-list { border-top: 2px solid var(--c-ink); }
.sh-list-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); min-height: 60px; }
.sh-list-item:hover .sh-list-title { color: var(--c-navy); text-decoration: underline; text-underline-offset: 4px; }
.sh-list-title { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.sh-list-date { flex: none; font-size: 14px; color: var(--sh-muted); }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .sh-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-split { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 959px) {
  .sh-pd { grid-template-columns: 1fr; }
  .sh-pd-info { position: static; }
  .sh-split { grid-template-columns: 1fr; }
  .sh-aside { position: static; }
  .sh-footer-grid { grid-template-columns: 1fr 1fr; }
  .sh-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  :root { --sh-header-h: 64px; }
  .sh-header-inner { gap: 8px; }
  .sh-bag { display: grid; place-items: center; width: 28px; height: 28px; color: var(--c-ink); }
  .sh-mobile-cart { min-width: 44px; justify-content: center; padding: 0 4px; }
  .sh-brand-mark { width: 40px; height: 40px; font-size: 14px; }
  .sh-nav-toggle { display: inline-grid; place-content: center; gap: 7px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--c-navy); cursor: pointer; position: relative; z-index: 2; }
  .sh-nav-bar { display: block; width: 20px; height: 2px; background: var(--c-white); border-radius: 2px; transition: transform 0.3s, translate 0.3s; }
  .sh-nav-toggle[aria-expanded="true"] .sh-nav-bar:first-child { translate: 0 4.5px; transform: rotate(45deg); }
  .sh-nav-toggle[aria-expanded="true"] .sh-nav-bar:last-child { translate: 0 -4.5px; transform: rotate(-45deg); }
  .sh-mobile-cart { display: inline-flex; }
  .sh-nav-menu { position: fixed; inset: 0; z-index: 1; background: var(--c-lime-bg); padding: calc(var(--sh-header-h) + 24px) var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
  .sh-header.is-open .sh-nav-menu { opacity: 1; visibility: visible; transition: opacity 0.3s; }
  .sh-header.is-open { background: var(--c-lime-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sh-brand, .sh-header-tools { position: relative; z-index: 2; }
  .sh-nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sh-nav-link { font-weight: 700; font-size: clamp(26px, 7vw, 36px); min-height: 56px; }
  .sh-nav-sep { width: 100%; height: 1px; margin: 10px 0; }
  .sh-header-tools { display: flex; align-items: center; gap: 4px; }
  .sh-header-tools .sh-nav-link { font-size: 14px; font-weight: 500; min-height: 44px; white-space: nowrap; }
  .sh-brand-name strong { font-size: 10px; letter-spacing: 0.08em; white-space: nowrap; }
  .sh-search .btn { white-space: nowrap; flex: none; }
  .sh-form-row { grid-template-columns: 1fr; }
  .sh-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .sh-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 12px; }
  .sh-product-info { padding-top: 12px; }
  .sh-toolbar-right, .sh-toolbar-right .sh-select { width: 100%; }
  .sh-search { max-width: none; }
  .sh-line { grid-template-columns: 80px minmax(0, 1fr); }
  .sh-line-img { width: 80px; height: 94px; }
  .sh-line-amount { grid-column: 2; text-align: left; }
  .sh-buy-actions { grid-template-columns: 1fr; }
  .sh-footer-grid { grid-template-columns: 1fr; }
  .sh-modal-body { padding: 20px; }
  .sh-modal-head { padding-left: 20px; }
  .sh-table-stack thead { display: none; }
  .sh-table-stack tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .sh-table-stack td { border: 0; padding: 4px 0; }
}
@media (min-width: 768px) {
  .sh-nav-toggle, .sh-mobile-cart { display: none; }
  .sh-nav-menu { display: contents; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-product-img img, .sh-nav-menu, .sh-nav-bar, .sh-toast { transition: none; animation: none; }
  .sh-loading::before { animation-duration: 2.4s; }
}
