@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('./assets/fonts/CormorantGaramond-italic-0.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('./assets/fonts/CormorantGaramond-normal-1.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('./assets/fonts/JetBrainsMono-normal-2.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; src: url('./assets/Pretendard-subset.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --cream: #f6f5ee;
  --paper: #fffef9;
  --ink: #14171f;
  --muted: #5e6472;
  --line: rgba(20, 23, 31, 0.16);
  --blue: #2549df;
  --blue-deep: #1b38b3;
  --butter: #efe3a0;
  --red: #c4432b;
  --serif: 'Cormorant Garamond', 'Didot', 'Bodoni 72', 'Times New Roman', serif;
  --sans: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; word-break: keep-all; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.blue { color: var(--blue); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; line-height: 1.5; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.section-pad { padding: clamp(56px, 8vw, 112px) var(--gutter); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 54px); line-height: 1.02; letter-spacing: -0.01em; }

/* announcement + header */
.announcement { display: flex; justify-content: space-between; gap: 16px; padding: 8px var(--gutter); background: var(--ink); color: var(--cream); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.announcement > span:nth-child(2) { text-transform: none; font-family: var(--sans); font-size: 12px; letter-spacing: 0; }
.header { position: sticky; top: 0; z-index: 40; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter); background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -0.01em; line-height: 1; justify-self: start; }
.main-nav { display: flex; gap: clamp(16px, 3vw, 40px); font-size: 14px; }
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav sup { font-family: var(--mono); font-size: 9px; color: var(--blue); }
.bag-button { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 0; }
.bag-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 0; background: var(--blue); color: #fff; font-family: var(--mono); font-size: 11px; }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 0; font-weight: 600; font-size: 15px; transition: transform 0.15s, background 0.2s; white-space: nowrap; }
.button:active { transform: scale(0.98); }
.button-blue { background: var(--blue); color: #fff; }
.button-blue:hover { background: var(--blue-deep); }
.button-dark { background: var(--ink); color: var(--cream); }
.button-dark:hover { background: #2a2f3d; }
.button-small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.button-wide { width: 100%; }
.text-link, .link-button { border-bottom: 1px solid currentColor; padding-bottom: 2px; font-weight: 600; }
.link-button { font-weight: 400; font-size: 13px; color: var(--muted); }

/* ticker */
.ticker { overflow: hidden; background: var(--blue); color: #fff; border-bottom: 1px solid var(--line); }
.ticker > div { display: flex; gap: 36px; width: max-content; padding: 11px 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; white-space: nowrap; animation: ticker 28s linear infinite; }
.ticker > div span { flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* shop */
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-top: 10px; }
.collection-note { color: var(--muted); text-align: right; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.filters { display: flex; gap: 8px; }
.filter { padding: 8px 16px; border: 1px solid var(--line); border-radius: 0; font-size: 14px; transition: 0.2s; }
.filter span { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-left: 2px; }
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.filter.active span { color: var(--butter); }
.shop-help { font-size: 13px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-media { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #ece9de; border-radius: 0; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.product-media:hover img { transform: scale(1.045); }
.product-number { position: absolute; top: 12px; left: 12px; color: var(--ink); }
.product-tag { position: absolute; top: 12px; right: 12px; padding: 4px 8px; background: var(--paper); border-radius: 0; font-size: 9.5px; }
.product-peek { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; background: var(--ink); color: var(--cream); border-radius: 0; font-size: 12px; opacity: 0; transform: translateY(6px); transition: 0.25s; }
.product-media:hover .product-peek, .product-media:focus-visible .product-peek { opacity: 1; transform: none; }
.product-info { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; flex: 1; }
.product-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-title h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; }
.product-title h3 button { text-align: left; }
.product-title h3 button:hover { color: var(--blue); }
.product-title strong { font-family: var(--mono); font-size: 14px; font-weight: 500; white-space: nowrap; }
.product-sub { font-size: 13px; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; }
.nowrap { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 0; background: var(--swatch); border: 1px solid var(--line); margin-right: 1px; }
.quick-add { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0; font-family: var(--mono); font-size: 11px; cursor: pointer; transition: 0.15s; background: var(--paper); }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.chips-large legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.chips-large .chip span { min-width: 52px; height: 46px; font-size: 12px; }
.form-error { min-height: 18px; font-size: 13px; color: var(--red); }
.shake { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); }
.trust-row li { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-size: 14px; }
.trust-row li + li { border-left: 1px solid var(--line); }
.trust-row .mono { color: var(--blue); }
.trust-row small { color: var(--muted); }
.shop-footnote { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.shop-footnote a { color: var(--ink); border-bottom: 1px solid currentColor; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); }
.about-head { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.about-head h2 em { color: var(--blue); }
.route-art { color: var(--blue); max-width: 380px; }
.route-art text { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; fill: var(--muted); stroke: none; }
.about-story { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.85; color: #2b2f3a; max-width: 58ch; }
.about-story .lead { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.35; color: var(--ink); word-break: keep-all; }
.signature { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.signature strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; color: var(--ink); }
.signature .mono { color: var(--muted); }
.about-story .text-link { align-self: flex-start; font-size: 15px; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); border-top: 1px solid var(--line); }
.faq > div:first-child { display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.faq > div:first-child h2 { color: var(--ink); }
.faq-list details { border-top: 1px solid var(--ink); }
.faq-list details:last-child { border-bottom: 1px solid var(--ink); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { font-family: var(--mono); font-size: 20px; font-weight: 400; transition: transform 0.2s; }
details[open] > summary span { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 60ch; }

/* footer */
.footer { background: var(--ink); color: var(--cream); padding-bottom: 96px; }
.footer-top { display: grid; grid-template-columns: 1fr auto auto; gap: 32px; align-items: start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.footer-top div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-top a:hover, .footer-top button:hover { color: var(--butter); }
.footer-top button { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.back-top { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 0; font-size: 16px; }
.footer-logo { display: block; margin: 40px 0 24px; font-family: var(--serif); font-weight: 500; font-size: clamp(96px, 24vw, 380px); line-height: 0.8; letter-spacing: -0.03em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(246, 245, 238, 0.25); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; }
.footer-bottom button { font: inherit; letter-spacing: inherit; border-bottom: 1px solid currentColor; }
.demo-note { margin-top: 18px; font-size: 12px; color: rgba(246, 245, 238, 0.6); }

/* dialogs */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--cream); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(14, 17, 26, 0.55); backdrop-filter: blur(3px); }
dialog[open] { animation: dialog-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px); } }
.close-button { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 0; background: var(--paper); border: 1px solid var(--line); font-size: 22px; line-height: 1; }
.close-button:hover { background: var(--ink); color: var(--cream); }
.product-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: 0; overflow: auto; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.detail-media { position: relative; background: #ece9de; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; position: sticky; top: 0; }
.detail-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.5vw, 44px); padding-top: 56px; }
.detail-body h2 { font-size: clamp(32px, 3.6vw, 46px); }
.detail-korean { color: var(--muted); font-size: 14px; margin-top: -8px; }
.detail-price { font-family: var(--mono); font-size: 20px; }
.detail-description { color: #2b2f3a; }
.feature-list { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-list li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 0; font-size: 13px; background: var(--paper); }
.detail-meta { font-size: 13px; color: var(--muted); }
.size-guide { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.size-guide summary { padding: 14px 0; font-size: 14px; }
.size-guide > p { font-size: 14px; color: var(--muted); padding-bottom: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
th, td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--ink); color: var(--cream); font-weight: 500; font-family: var(--sans); }
.table-note { color: var(--muted); padding: 10px 0 14px; }
.detail-actions { display: flex; gap: 10px; align-items: stretch; }
.detail-actions .button { flex: 1; padding: 0 16px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); }
.stepper button { width: 44px; height: 50px; font-size: 18px; }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper output { min-width: 24px; text-align: center; font-family: var(--mono); font-size: 14px; }
.stepper-small button { width: 34px; height: 34px; font-size: 15px; }
.stepper-small { border-color: var(--line); }
.detail-ship { color: var(--muted); text-align: center; }

.cart-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); height: 100dvh; max-height: 100dvh; display: none; flex-direction: column; border-left: 1px solid var(--line); }
.cart-dialog[open] { display: flex; animation: drawer-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-header { position: relative; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { font-size: 36px; }
.drawer-header .mono { font-size: 13px; color: var(--blue); vertical-align: super; }
#cart-content { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 20px 24px 24px; overflow-y: auto; }
.cart-empty { margin: auto 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--muted); }
.cart-empty-title { font-family: var(--serif); font-size: 34px; color: var(--ink); line-height: 1.1; }
.ship-meter { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 0; font-size: 14px; }
.meter { height: 5px; margin-top: 10px; background: var(--line); border-radius: 0; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--blue); border-radius: 0; transition: width 0.4s; }
.cart-items { display: flex; flex-direction: column; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img, .outfit-item img { border-radius: 0; background: #ece9de; aspect-ratio: 1; object-fit: cover; }
.cart-item-name { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.cart-item-sub { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.cart-item-side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-item-side strong { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.cart-totals { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cart-totals div { display: flex; justify-content: space-between; }
.cart-totals dd { font-family: var(--mono); }
.cart-totals .grand { padding-top: 12px; border-top: 1px solid var(--ink); font-weight: 700; font-size: 16px; }
.cart-note { text-align: center; color: var(--muted); }

.outfit-dialog, .info-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 0; padding: 56px clamp(22px, 4vw, 40px) clamp(22px, 4vw, 36px); }
.outfit-dialog h2, .info-dialog h2 { font-size: 40px; margin: 10px 0 8px; }
.dialog-intro { color: var(--muted); margin-bottom: 8px; }
.outfit-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
#outfit-form .button { width: 100%; }
.info-dialog p { margin-top: 12px; color: #2b2f3a; }
.info-dialog .mono { color: var(--blue); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 0; background: var(--ink); color: var(--cream); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: 0.3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast button { color: var(--butter); font-weight: 600; white-space: nowrap; border-bottom: 1px solid currentColor; }

/* ---------- v2: hero (대표 상품 + 주석) ---------- */
.cursor { animation: blink 1s steps(1) infinite; color: var(--blue); }
@keyframes blink { 50% { opacity: 0; } }
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: min(720px, calc(100vh - var(--header-h) - 34px)); border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(28px, 4.5vw, 64px) var(--gutter); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -0.012em; }
.hero h1 em { white-space: nowrap; }
.hero-description { color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.hero-actions .text-link { font-size: 14px; }
.hero-readout { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin-top: auto; border: 1px solid var(--line); background: var(--paper); align-self: flex-start; }
.hero-readout div { padding: 10px 16px; }
.hero-readout div + div { border-left: 1px solid var(--line); }
.hero-readout dt { color: var(--muted); font-size: 9.5px; }
.hero-readout dd { font-size: 13px; font-weight: 500; color: var(--ink); }
.hero-visual { position: relative; display: flex; flex-direction: column; border-left: 1px solid var(--line); background-color: #e9e6da; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; }
.hero-product { position: relative; flex: 1; min-height: 360px; display: block; width: 100%; overflow: hidden; }
.hero-product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.callout { position: absolute; left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px; background: var(--paper); border: 1px solid var(--ink); font-size: 10px; white-space: nowrap; transform: translateY(-50%); }
.callout[data-side='left'] { transform: translate(-100%, -50%); }
.callout i { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; background: var(--blue); color: #fff; font-size: 9px; }
.callout::after { content: ''; position: absolute; top: 50%; width: 22px; height: 1px; background: var(--ink); }
.callout[data-side='right']::after { right: 100%; } .callout[data-side='left']::after { left: 100%; }
.callout::before { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); border: 1.5px solid var(--paper); transform: translateY(-50%); }
.callout[data-side='right']::before { right: calc(100% + 20px); } .callout[data-side='left']::before { left: calc(100% + 20px); }
.crosshair { position: absolute; width: 14px; height: 14px; pointer-events: none; --c: var(--ink); }
.crosshair.tl { top: 8px; left: 8px; border-top: 1.5px solid var(--c); border-left: 1.5px solid var(--c); }
.crosshair.tr { top: 8px; right: 8px; border-top: 1.5px solid var(--c); border-right: 1.5px solid var(--c); }
.crosshair.bl { bottom: 8px; left: 8px; border-bottom: 1.5px solid var(--c); border-left: 1.5px solid var(--c); }
.crosshair.br { bottom: 8px; right: 8px; border-bottom: 1.5px solid var(--c); border-right: 1.5px solid var(--c); }
.hero-product .crosshair { --c: #fff; }
.hero-plate { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; background: var(--paper); border-top: 1px solid var(--ink); }
.hero-plate .mono { color: var(--muted); display: block; }
.hero-plate strong { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.hero-plate-buy { display: flex; align-items: center; gap: 14px; }
.hero-plate-buy .mono { font-size: 15px; color: var(--ink); }

/* ---------- v2: 상품 카드 ---------- */
.shop-help { color: var(--muted); }
.filters { flex-wrap: wrap; }
.filter { min-height: 44px; }
.product-media { background: #ece9de; }
.media-stack { position: absolute; inset: 0; display: block; }
.media-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
img.blend { mix-blend-mode: multiply; }
.media-stack img.alt { opacity: 0; }
.product-media:hover img.alt, .product-media:focus-visible img.alt { opacity: 1; }
.product-media:hover .media-stack img:not(.alt):not(:only-child) { opacity: 0; }
.product-code { position: absolute; top: 12px; left: 14px; z-index: 1; color: var(--ink); }
.product-tag { z-index: 1; }
.product-info { display: flex; flex-direction: column; gap: 7px; padding-top: 14px; flex: 1; }
.product-sub { display: block; }
.spec-line { display: flex; flex-wrap: wrap; gap: 0; color: var(--ink); font-size: 10.5px; }
.spec-line span { padding: 3px 8px; border: 1px solid var(--line); margin: 0 -1px -1px 0; background: var(--paper); }
.spec-line span:first-child { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.swatches { display: flex; align-items: center; gap: 2px; min-height: 44px; overflow-x: auto; scrollbar-width: none; }
.swatch-option { position: relative; display: inline-grid; place-items: center; width: 40px; height: 44px; flex: none; cursor: pointer; }
.swatch-option input { position: absolute; opacity: 0; }
.swatch-option span:first-of-type { width: 24px; height: 24px; border-radius: 0; background: var(--swatch); border: 1px solid rgba(20, 23, 31, 0.25); box-shadow: 0 0 0 3px var(--cream); transition: 0.15s; }
.swatch-option input:checked + span { box-shadow: 0 0 0 2px var(--cream), 0 0 0 3.5px var(--ink); }
.swatch-option input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 4px; }
.swatch-name { margin-left: 6px; color: var(--muted); white-space: nowrap; }
.quick-add { margin-top: auto; padding-top: 4px; }

/* ---------- v2: 레이어 가이드 ---------- */
.layers { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; background: var(--ink); color: var(--cream); }
.layers .eyebrow { color: rgba(246, 245, 238, 0.6); }
.layers-head { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.layers-head h2 em { color: var(--butter); }
.layers-head > p { color: rgba(246, 245, 238, 0.75); }
.temp-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(246, 245, 238, 0.3); }
.temp-control input { width: 100%; height: 44px; accent-color: var(--butter); cursor: pointer; }
.temp-out { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--butter); min-width: 4.5ch; text-align: right; }
.layers-pick { font-size: 15px; min-height: 3em; color: rgba(246, 245, 238, 0.85); }
.layers-pick b { color: var(--butter); font-family: var(--mono); }
.layers-pick .link-button { color: var(--cream); font-size: 15px; }
.layers-chart { position: relative; display: flex; flex-direction: column; }
.chart-axis { position: relative; height: 22px; margin-left: 34%; margin-right: 84px; color: rgba(246, 245, 238, 0.5); }
.chart-axis span { position: absolute; transform: translateX(-50%); }
.chart-row { display: grid; grid-template-columns: 34% 1fr 84px; align-items: center; min-height: 58px; border-top: 1px solid rgba(246, 245, 238, 0.18); text-align: left; opacity: 0.42; transition: opacity 0.2s; }
.chart-row:last-child { border-bottom: 1px solid rgba(246, 245, 238, 0.18); }
.chart-row.on, .chart-row:hover, .chart-row:focus-visible { opacity: 1; }
.chart-label { font-family: var(--serif); font-size: 20px; line-height: 1.15; padding-right: 12px; }
.chart-label .mono { display: block; color: rgba(246, 245, 238, 0.55); font-size: 10px; }
.chart-track { position: relative; height: 100%; background-image: linear-gradient(90deg, rgba(246, 245, 238, 0.12) 1px, transparent 1px); background-size: calc(100% / 7) 100%; }
.chart-bar { position: absolute; top: 50%; height: 12px; transform: translateY(-50%); background: rgba(246, 245, 238, 0.35); }
.chart-row.on .chart-bar { background: var(--butter); }
.chart-needle { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--blue); box-shadow: 0 0 0 1px rgba(37, 73, 223, 0.35); }
.chart-axis .chart-needle { top: auto; height: 8px; bottom: 0; }
.chart-price { text-align: right; font-size: 12px; }

/* ---------- v2: 상품 상세 ---------- */
.detail-media { display: flex; flex-direction: column; }
.detail-media .media-stack { position: relative; aspect-ratio: 1; }
.detail-media .product-code { top: 16px; left: 18px; }
.thumbs { display: flex; gap: 8px; padding: 10px; }
.thumbs:empty { display: none; }
.thumb { width: 64px; height: 64px; border: 1px solid var(--line); background: #ece9de; overflow: hidden; }
.thumb.active { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.draft-badge { padding: 2px 8px; background: var(--butter); color: var(--ink); border-radius: 0; font-size: 10px; letter-spacing: 0.04em; }
.chips-large legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; }
.chips-large legend a { font-weight: 400; font-size: 13px; color: var(--blue); border-bottom: 1px solid currentColor; }
.cost-estimate { color: var(--muted); text-align: center; text-transform: none; letter-spacing: 0; font-size: 12px; }
.cost-estimate b { color: var(--ink); }
.spec-table { margin-top: 6px; border-top: 1px solid var(--ink); }
.spec-table caption { text-align: left; padding: 0 0 8px; color: var(--muted); }
.spec-table th, .spec-table td { text-align: left; padding: 8px 0; white-space: normal; }
.spec-table th { width: 96px; color: var(--muted); font-weight: 400; }
.detail-policy { font-size: 13px; text-align: center; }
.detail-policy a { color: var(--muted); border-bottom: 1px solid currentColor; }
.cart-thumb { display: block; width: 88px; height: 88px; background: #ece9de; border-radius: 0; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-sub { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cart-note { text-transform: none; letter-spacing: 0; }

/* ---------- v2: footer 사업자 정보 ---------- */
.biz-info { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-bottom: 18px; color: rgba(246, 245, 238, 0.6); text-transform: none; letter-spacing: 0.02em; }
.biz-info i { font-style: normal; color: var(--butter); }
.biz-info button { font: inherit; border-bottom: 1px solid currentColor; }

/* ---------- v2: 모바일 하단 바 ---------- */
.mobile-bar { display: none; }

/* ---------- v2: 주문·결제 ---------- */
.header-simple { grid-template-columns: 1fr auto 1fr; }
.header-simple > :last-child { justify-self: end; font-size: 13px; }
.steps { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.steps [aria-current] { color: var(--ink); border-bottom: 2px solid var(--blue); }
.checkout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; max-width: 1180px; margin: 0 auto; }
.checkout h1, .result h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 10px 0 8px; }
.result h1 em { color: var(--blue); }
.checkout-form { display: flex; flex-direction: column; gap: 22px; }
.field-group { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--ink); }
.field-group legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 4px; }
.field-group legend .mono { color: var(--blue); }
.field-group legend + * { clear: both; }
.secure { margin-left: auto; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; font-size: 13px; color: var(--muted); }
.field i { font-style: normal; font-size: 12px; }
.field input { height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); }
.field input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.field-row { display: flex; gap: 12px; }
.field-short { flex: 0 0 130px; }
.payment-box { padding: 18px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); }
.payment-notice { padding: 14px 16px; background: var(--butter); border-radius: 0; font-size: 14px; color: var(--ink); }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--blue); flex: none; }
.agree a { border-bottom: 1px solid currentColor; }
.checkout-summary { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 0; }
.checkout-summary h2 { font-size: 30px; }
.checkout-summary #summary { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.checkout-summary .link-button { align-self: flex-start; }
.result { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; min-height: 60vh; justify-content: center; }
.receipt { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; border: 1px solid var(--line); background: var(--paper); }
.receipt div { padding: 12px 18px; } .receipt div + div { border-left: 1px solid var(--line); }
.receipt dt { color: var(--muted); font-size: 9.5px; } .receipt dd { font-size: 13px; }
.receipt-lines { display: flex; flex-direction: column; gap: 6px; font-family: var(--serif); font-size: 22px; }
.receipt-lines .mono { color: var(--muted); margin-left: 8px; }
.result-actions { display: flex; align-items: center; gap: 22px; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .main-nav { gap: 18px; } }
@media (max-width: 860px) {
  .announcement > span:first-child, .announcement > span:last-child { display: none; }
  .announcement { justify-content: center; text-align: center; }
  .header { grid-template-columns: auto 1fr auto; gap: 16px; }
  .main-nav { justify-content: flex-end; font-size: 13px; }
  .main-nav a:not(:first-child) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { border-left: 0; border-top: 1px solid var(--line); }
  .hero-product { min-height: 0; aspect-ratio: 1; }
  .hero-copy { padding-top: 24px; padding-bottom: 26px; gap: 16px; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-description { font-size: 15px; }
  .hero-readout { display: none; } /* 모바일 첫 화면에 상품 사진이 들어오도록 — 같은 정보는 상품 카드에 있다 */
  .callout[data-side='left'] { left: 8px; transform: translateY(-50%); }
  .callout[data-side='left']::after, .callout[data-side='left']::before { display: none; }
  .callout { font-size: 9px; padding: 4px 7px 4px 4px; }
  .layers, .about, .faq, .checkout { grid-template-columns: 1fr; }
  .layers-head, .about-head, .checkout-summary { position: static; }
  .checkout-summary { order: -1; }
  .chart-row { grid-template-columns: 1fr 64px; grid-template-areas: 'label price' 'track track'; row-gap: 6px; padding: 12px 0; }
  .chart-label { grid-area: label; font-size: 18px; } .chart-price { grid-area: price; } .chart-track { grid-area: track; height: 18px; }
  .chart-axis { margin: 0; }
  .route-art { max-width: 280px; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .collection-note { text-align: left; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row li + li { border-left: 0; border-top: 1px solid var(--line); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-media .media-stack { aspect-ratio: 5 / 4; }
  .detail-body { padding-top: 24px; }
  .detail-actions { position: sticky; bottom: 0; z-index: 1; margin: 0 -4px; padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--cream) 22%); }
  .product-dialog { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 0; }
  .footer-top { grid-template-columns: 1fr auto; }
  .footer-top p { grid-column: 1 / -1; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--ink); }
  .mobile-bar-tag { font-family: var(--serif); font-style: italic; font-size: 15px; }
  .mobile-bar-info { display: flex; flex-direction: column; align-items: flex-start; min-height: 44px; justify-content: center; }
  .mobile-bar-info strong { font-family: var(--mono); font-size: 15px; font-weight: 500; }
  .toast { bottom: 80px; }
  .steps li:not([aria-current]) { display: none; }
  .field-row { flex-direction: column; } .field-short { flex: none; }
  .receipt { grid-template-columns: 1fr; } .receipt div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .product-grid { gap: 30px 12px; }
  .product-title { flex-direction: column; gap: 2px; }
  .product-title h3 { font-size: 20px; }
  .spec-line span:last-child { display: none; }
  .swatch-name { display: none; }
  .quick-add { flex-direction: column; align-items: stretch; }
  .quick-add .button { width: 100%; }
  .quick-add .chips { gap: 5px; }
  .chip span { min-width: 44px; padding: 0 7px; font-size: 11px; }
  .product-tag { display: none; }
  .hero-plate { flex-direction: column; align-items: stretch; }
  .hero-plate-buy { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- v2.1: 카드의 사이즈·담기 — 스펙 줄과 같은 각진 세그먼트 ---------- */
.quick-add { display: flex; align-items: stretch; gap: 0; padding: 0; margin-top: auto; border: 1px solid var(--ink); background: var(--paper); }
.product-info .swatches { margin-bottom: 6px; }
.quick-add .chips { display: flex; flex: 1; flex-wrap: nowrap; gap: 0; }
.quick-add .chip { flex: 1; display: flex; }
.quick-add .chip span { flex: 1; min-width: 40px; height: 100%; min-height: 44px; padding: 0 6px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 11.5px; letter-spacing: 0.04em; }
.quick-add .chip span:hover { background: var(--cream); }
.quick-add .chip input:checked + span { background: var(--ink); color: var(--cream); }
.quick-add .button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; background: var(--ink); color: var(--cream); gap: 8px; }
.quick-add .button:hover { background: var(--blue); }
.quick-add .button span { color: var(--butter); }
@media (max-width: 560px) { .quick-add { flex-direction: row; } .quick-add .button { width: auto; padding: 0 12px; } .quick-add .chip span { min-width: 0; font-size: 11px; } }

/* ---------- v2.2: 알약 제거 뒤 다듬기 ---------- */
.button { letter-spacing: 0.01em; }
.filter { font-size: 13px; }
.filter.active { box-shadow: inset 0 -3px 0 var(--blue); }
.bag-count { min-width: 24px; height: 22px; }
.close-button { font-family: var(--mono); font-size: 18px; }
.product-tag { border: 1px solid var(--ink); }
.toast { border: 1px solid rgba(246, 245, 238, 0.25); }

/* ---------- v2.2: 레이어 가이드 — 썸네일 + 미리보기 카드 ---------- */
.chart-row { grid-template-columns: 52px calc(34% - 52px) 1fr 84px; }
.chart-thumb { width: 44px; height: 44px; background: #ece9de; overflow: hidden; filter: grayscale(1) brightness(0.8); transition: filter 0.2s; }
.chart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chart-row.on .chart-thumb, .chart-row:hover .chart-thumb, .chart-row.active .chart-thumb { filter: none; }
.chart-row.active { opacity: 1; background: rgba(246, 245, 238, 0.06); box-shadow: inset 3px 0 0 var(--butter); }
.chart-row .chart-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-right: 10px; }
.chart-go { font-size: 10px; color: var(--butter); opacity: 0; transition: opacity 0.2s; }
.chart-row.on .chart-go, .chart-row:hover .chart-go, .chart-row.active .chart-go { opacity: 1; }
.layers-preview { display: grid; grid-template-columns: 148px 1fr; gap: 0; background: #ece9de; color: var(--ink); border: 1px solid var(--cream); min-height: 148px; }
.layers-preview:empty { display: none; }
.preview-media { position: relative; display: block; width: 148px; aspect-ratio: 1; overflow: hidden; background: #ece9de; }
.preview-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--paper); min-width: 0; }
.preview-body .mono { color: var(--muted); font-size: 10px; }
.preview-body .fit { color: var(--blue); }
.preview-body strong { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.1; }
.preview-body p { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview-buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.preview-buy .mono { font-size: 14px; color: var(--ink); }
@media (max-width: 860px) {
  .chart-row { grid-template-columns: 52px 1fr 72px; grid-template-areas: 'thumb label price' 'track track track'; }
  .chart-thumb { grid-area: thumb; }
  .layers-preview { grid-template-columns: 120px 1fr; } .preview-media { width: 120px; }
}

/* =====================================================================
   v3 — 모바일 최적화 (docs/mobile-plan.md 의 기준 번호 M1~ 을 따른다)
   ===================================================================== */
html:has(dialog[open]) { overflow: hidden; }                         /* M13 시트가 열리면 뒤 화면이 같이 스크롤되지 않게 */
dialog { overscroll-behavior: contain; }
.header { min-height: var(--header-h); }
.wordmark, .main-nav a, .bag-button { min-height: 44px; display: inline-flex; align-items: center; }   /* M2 */
.text-link, .link-button, .chips-large legend a, .detail-policy a, .trust-row a, .agree a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; padding-bottom: 0; }
.layers-pick .link-button { min-height: 32px; }
.footer-top a, .footer-top button, .biz-info button, .footer-bottom button { min-height: 44px; display: inline-flex; align-items: center; }
.product-title h3 button { min-height: 44px; display: inline-flex; align-items: center; }
.swatch-option { width: 44px; }
.stepper-small button { width: 44px; height: 44px; }
.toast button { min-height: 44px; display: inline-flex; align-items: center; }
.mono { font-size: max(11px, 0.6875rem); }                           /* M4 가장 작은 글자 11px */
.callout { font-size: 11px; } .callout i { font-size: 10px; }
.spec-line { font-size: 11px; } .filter span, .main-nav sup { font-size: 10px; }

/* 상세 갤러리: 옆으로 넘기기 (M8) */
.gallery-wrap { position: relative; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; aspect-ratio: 1; background: #ece9de; }
.gallery::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; background: var(--ink); color: var(--cream); }

/* 주문서: 접히는 주문 내역 */
#summary-box > summary { padding: 0; gap: 12px; cursor: pointer; } #summary-box > summary h2 { font-size: 30px; }
#summary-box[open] > summary { padding-bottom: 14px; } .summary-total { margin-left: auto; font-size: 14px; color: var(--ink); } .summary-caret { font-family: var(--mono); font-size: 20px; transition: transform 0.2s; } #summary-box[open] .summary-caret { transform: rotate(45deg); }
@media (min-width: 861px) { #summary-box > summary { pointer-events: none; } .summary-caret, .summary-total { display: none; } }

@media (max-width: 860px) {
  :root { --header-h: 56px; --gutter: 16px; }
  body { font-size: 16px; }                                          /* M4 본문 16px */
  .announcement { padding: 7px 12px; } .announcement > span:nth-child(2) { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wordmark { font-size: 28px; }
  .main-nav { gap: 4px; } .main-nav a { padding: 0 10px; }
  .bag-button { padding: 0 0 0 6px; }

  /* M1 첫 화면: 문구 → 상품 사진 → 가격·버튼이 한 화면에. 가격판은 사진 아래쪽에 겹쳐 올린다 */
  .hero-copy { padding: 18px 16px 18px; gap: 12px; }
  .hero h1 { font-size: clamp(32px, 9.2vw, 44px); line-height: 1.02; }
  .hero h1 br:first-of-type { display: none; }                       /* "Lightly, freely, at / your own pace." 두 줄로 */
  .hero-description { font-size: 15px; line-height: 1.5; }
  .hero-actions { gap: 4px 16px; } .hero-actions .button { min-height: 48px; }
  .hero-visual { position: relative; }
  .hero-product { aspect-ratio: 5 / 4; }
  .hero-product img { object-position: center 12%; }
  .hero-plate { position: absolute; left: 0; right: 0; bottom: 0; flex-direction: row; align-items: center; padding: 10px 12px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); }
  .hero-plate strong { font-size: 20px; } .hero-plate > div:first-child .mono { font-size: 11px; }
  .hero-plate-buy { gap: 10px; flex: none; } .hero-plate-buy .mono { font-size: 14px; }
  .callout[data-side] { display: none; } .callout:nth-of-type(-n+2) { display: inline-flex; } /* 작은 화면에서는 주석 2개만 — 사진을 가리지 않게 */
  .ticker > div { padding: 8px 0; font-size: 11px; }

  .section-pad { padding: 44px 16px; }
  h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); scroll-snap-type: x proximity; } .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; scroll-snap-align: start; }
  .shop-toolbar { gap: 8px; padding: 10px 0; margin-bottom: 20px; }

  /* M5·M6 카드: 2열 유지, 사이즈는 한 줄 · 담기는 그 아래 한 줄 전체 */
  .product-grid { gap: 28px 10px; }
  .product-info { gap: 5px; padding-top: 10px; }
  .product-title { flex-direction: column; gap: 0; } .product-title h3 { font-size: 19px; } .product-title h3 button { min-height: 40px; text-align: left; }
  .product-title strong { font-size: 14px; }
  .product-sub { font-size: 12.5px; }
  .quick-add { flex-direction: column; } .quick-add .chips { border-bottom: 1px solid var(--ink); }
  .quick-add .chip span { min-height: 46px; font-size: 12.5px; } .quick-add .chip:last-child span { border-right: 0; }
  .quick-add .button { width: 100%; min-height: 46px; font-size: 13px; }
  .product-code { top: 8px; left: 10px; } .crosshair { width: 10px; height: 10px; }
  .product-peek { display: none; }

  .trust-row li { padding: 14px 14px; font-size: 14px; }
  .layers-head h2 br { display: none; }
  .temp-control input { height: 48px; }
  .chart-row { min-height: 64px; }
  .about-story { font-size: 16px; line-height: 1.8; } .about-story .lead { font-size: 24px; }
  .faq summary { min-height: 56px; padding: 14px 0; }
  .footer { padding-bottom: 96px; } .footer-logo { font-size: 27vw; }
  .biz-info { flex-direction: column; gap: 2px; }

  /* M9 시트: 위에서 손잡이, 아래에 고정 구매 버튼 */
  .product-dialog { max-height: 92dvh; border-top: 1px solid var(--ink); }
  .product-dialog::before { content: ''; position: sticky; top: 6px; display: block; width: 40px; height: 4px; margin: 6px auto -10px; background: rgba(20, 23, 31, 0.35); z-index: 3; }
  .gallery { aspect-ratio: 1 / 1; max-height: 52dvh; }
  .thumbs { display: none; }                                         /* 모바일은 넘기기 + 카운터로 충분 */
  .detail-body { padding: 18px 16px 8px; gap: 12px; } .detail-body h2 { font-size: 30px; }
  .detail-actions { margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--line); }
  .detail-actions .stepper button { width: 44px; height: 48px; }
  .close-button { top: 10px; right: 10px; }
  .cart-dialog { width: 100vw; border-left: 0; } #cart-content { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cart-item { grid-template-columns: 72px 1fr auto; gap: 12px; } .cart-thumb { width: 72px; height: 72px; }

  /* M12 하단 바: 담긴 게 있을 때만. 빈 상태에서는 히어로 버튼과 겹치므로 숨긴다 */
  .mobile-bar:not(.has-items) { display: none; }
  .mobile-bar { padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-bar .button { min-height: 48px; }
  body:has(.mobile-bar.has-items) .footer { padding-bottom: 120px; }

  /* 주문서 */
  .checkout { gap: 20px; } .checkout h1 { font-size: 36px; }
  .checkout-summary { padding: 14px 16px; } #summary-box > summary h2 { font-size: 20px; font-family: var(--sans); font-weight: 700; }
  .field input { height: 52px; } .field > span { font-size: 14px; }
  .payment-box { padding: 14px; }
  #pay-button { min-height: 56px; font-size: 16px; } /* 고정하지 않는다 — 입력 중인 칸과 키보드 위를 덮는다 */
  .header-simple .text-link { font-size: 13px; }
}
@media (max-width: 374px) { .hero h1 { font-size: 31px; } .product-title h3 { font-size: 17.5px; } .hero-plate strong { font-size: 18px; } }

/* ---------- v3.1: 리서치 반영 추가분 ---------- */
.narrow-only { display: none; }
.photo-count { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 3px 7px; background: var(--ink); color: var(--cream); }
.slide img { transition: transform 0.25s; cursor: zoom-in; touch-action: pinch-zoom pan-x pan-y; } .slide img.zoomed { transform: scale(2); cursor: zoom-out; } .gallery.locked { overflow: hidden; }
.to-top { position: fixed; right: 16px; bottom: 24px; z-index: 34; min-width: 64px; min-height: 44px; padding: 0 12px; background: var(--ink); color: var(--cream); border: 1px solid var(--cream); } .to-top[hidden] { display: none; }
body:has(.mobile-bar.has-items) .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
.field.invalid input { border-color: var(--red); background: #fff7f5; } .field-error { color: var(--red); font-size: 13px; }
.address-find { align-self: flex-start; min-height: 48px; } .postcode-layer { display: flex; flex-direction: column; align-items: flex-end; border: 1px solid var(--ink); background: var(--paper); } .postcode-layer[hidden] { display: none; } #postcode-embed { width: 100%; height: 420px; }
#summary-box > summary { min-height: 48px; }
.cart-item-side .link-button { padding: 0 11px; margin-right: -11px; } .biz-info button, .footer-bottom button { padding: 0 6px; }
.route-art text { font-size: 11px; } .preview-body .mono, .chart-label .mono, .chart-go, .hero-readout dt, .receipt dt, .callout i, .filter span, .main-nav sup, .footer-bottom { font-size: 11px; }
@media (hover: none) { /* 터치 기기: 카드 사진이 여러 장이면 옆으로 넘겨 본다 (호버 대신) */
  .media-stack:has(.alt) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .media-stack:has(.alt)::-webkit-scrollbar { display: none; }
  .media-stack:has(.alt) img { position: static; flex: 0 0 100%; scroll-snap-align: center; opacity: 1 !important; }
}
@media (min-width: 861px) { .photo-count { display: none; } }
@media (max-width: 860px) {
  .wide-only { display: none; } .narrow-only { display: inline; }
  .main-nav a:not(:first-child) { display: inline-flex; } .main-nav a.wide-only { display: none; } .main-nav { gap: 0; font-size: 13px; } .main-nav a { padding: 0 8px; } .main-nav a::after { display: none; }
  .wordmark { font-size: 26px; } .bag-button { font-size: 13px; gap: 5px; }
  .ticker { display: none; }                                          /* 첫 화면 아래를 가로지르는 띠는 '여기가 끝'처럼 읽힌다 — 다음 구역 제목이 비치게 */
  .hero { border-bottom: 0; } .shop.section-pad { padding-top: 28px; }
  .hero-plate strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } .hero-plate > div:first-child { min-width: 0; } .hero-plate-buy > .mono { display: none; }
  .thumbs { display: flex; padding: 8px 12px; gap: 6px; } .thumb { width: 52px; height: 52px; }   /* Baymard: 모바일도 썸네일 */
  .product-title h3 button { min-height: 44px; }
  .layers-pick .link-button { min-height: 44px; }
}
@media (max-width: 860px) { .main-nav a { white-space: nowrap; padding: 0 7px; min-width: 44px; justify-content: center; } }
.agree a, .trust-row a { display: inline; min-height: 0; } /* 문장 속 링크는 줄 간격을 깨지 않게 (WCAG 2.5.8 본문 링크 예외) */
.agree { align-items: center; min-height: 48px; } .agree input { width: 26px; height: 26px; }
