/* ==========================================================================
   나비솔루션 공통 스타일
   모바일 우선(375px 기준) → PC 는 최대 1200px 중앙 정렬
   ========================================================================== */

:root {
  --red: #B5001F;
  --red-dark: #8E0018;
  --red-soft: #FBEEF0;
  --black: #111111;
  --g900: #1C1C1C;
  --g700: #444444;
  --g500: #767676;
  --g400: #9B9B9B;
  --g300: #D2D2D2;
  --g200: #E6E6E6;
  --g100: #F2F2F2;
  --g50: #F8F8F8;
  --white: #FFFFFF;
  --green: #1F7A3E;
  --green-soft: #E9F5EC;
  --yellow: #8A6100;
  --yellow-soft: #FFF6DD;
  --blue: #1F4E8C;
  --blue-soft: #EAF0F9;
  --cream: #F7F2EC;
  --cream-deep: #EFE6DC;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .16);
  --gutter: 16px;
  --container: 1200px;
  --header-h: 52px;
  --tabbar-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --space-section: 40px;
  --space-content: 24px;
  --photo-radius: 6px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scroll-padding-bottom: 152px; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--black); background: var(--white);
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}
body.no-tabbar { padding-bottom: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
strong { font-weight: 700; }
small { font-size: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
a.underline { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.num, .card__price, .summary__row span:last-child, .stat__value, .list__price, .table td.num { font-variant-numeric: tabular-nums; }
* { scrollbar-width: thin; scrollbar-color: var(--g300) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; } *::-webkit-scrollbar-thumb { background: var(--g300); border-radius: 4px; } *::-webkit-scrollbar-track { background: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 560px; }
.container--mid { max-width: 820px; }
.main { min-height: calc(100vh - var(--header-h) - 220px); }
.section { padding: 28px 0; }
.section + .section { padding-top: 4px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.section__more { font-size: 13px; color: var(--g500); display: inline-flex; align-items: center; gap: 2px; }
.section__more .icon { width: 16px; height: 16px; }
.page-title { font-size: 23px; font-weight: 700; letter-spacing: -.025em; margin: 28px 0 16px; text-wrap: balance; }
.page-title small { display: block; font-size: 13px; color: var(--g500); font-weight: 400; margin-top: 4px; }
.divider { height: 8px; background: var(--g50); border: 0; margin: 0; }
.divider--thin { height: 1px; background: var(--g200); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--g500); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.red { color: var(--red); }
.right { text-align: right; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--g200); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.header__logo img { height: 24px; width: auto; }
.header__nav { display: none; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header__action { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--g900); }
.header__action--text { width: auto; padding: 0 8px; font-size: 13px; color: var(--g700); border-radius: var(--radius-sm); white-space: nowrap; }
.header__count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }

/* ---------- tabbar (mobile) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--g200); }
.tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--g700); font-size: 11px; font-weight: 500; }
.tabbar__item.is-active { color: var(--black); }
.tabbar__icon { position: relative; }
.tabbar__icon .icon { width: 24px; height: 24px; }
.tabbar__count { position: absolute; top: -5px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }

/* ---------- footer ---------- */
.footer { margin-top: 48px; padding: 28px 0 32px; background: var(--g50); color: var(--g500); font-size: 12px; line-height: 1.7; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; font-size: 13px; color: var(--g700); font-weight: 500; }
.footer__copy { margin-top: 8px; color: var(--g400); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
  user-select: none; position: relative;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--black { background: var(--black); color: #fff; }
.btn--secondary { background: #fff; color: var(--black); border-color: var(--g300); }
.btn--ghost { background: transparent; color: var(--g700); }
.btn--soft { background: var(--g100); color: var(--black); }
.btn--danger { background: #fff; color: var(--red); border-color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--red-dark); }
  .btn--black:hover { background: #000; }
  .btn--secondary:hover { border-color: var(--black); }
  .btn--ghost:hover { background: var(--g100); }
  .btn--soft:hover { background: var(--g200); }
  .btn--danger:hover { background: var(--red-soft); }
}
.btn--sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn--xs { height: 30px; padding: 0 10px; font-size: 12px; font-weight: 500; }
.btn--lg { height: 52px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; padding: 0; }
.btn[disabled], .btn.is-disabled { background: var(--g200); color: var(--g400); border-color: transparent; cursor: not-allowed; transform: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn--secondary.is-loading::after, .btn--ghost.is-loading::after, .btn--soft.is-loading::after { border-color: var(--g300); border-top-color: var(--black); }
.btn-group { display: flex; gap: 8px; }
.btn-group > .btn { flex: 1; }

/* ---------- forms ---------- */
.field { display: block; }
.field + .field { margin-top: 16px; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--g900); margin-bottom: 6px; }
.label .req { color: var(--red); margin-left: 2px; }
.label .opt { color: var(--g400); font-weight: 400; margin-left: 4px; font-size: 12px; }
.input, .textarea, .select {
  width: 100%; height: 46px; padding: 0 14px; background: #fff; border: 1px solid var(--g300); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--black); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--g400); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.input.is-invalid, .textarea.is-invalid, .select.is-invalid { border-color: var(--red); }
.input.is-invalid:focus, .textarea.is-invalid:focus { box-shadow: 0 0 0 3px rgba(181,0,31,.1); }
.input[readonly] { background: var(--g50); color: var(--g700); }
.input[disabled], .select[disabled] { background: var(--g100); color: var(--g400); }
.textarea { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23444' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; }
.input--sm, .select--sm { height: 38px; font-size: 14px; padding: 0 10px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
.input-group .btn { flex: none; }
.help { display: block; margin-top: 6px; font-size: 12px; color: var(--g500); }
.error { display: block; margin-top: 6px; font-size: 12px; color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; line-height: 1.45; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); }
.check--strong { font-weight: 600; }
.check + .check { margin-top: 10px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; inset: 0; }
.radio-chip span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--g300); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; transition: all .15s var(--ease); }
.radio-chip input:checked + span { border-color: var(--black); background: var(--black); color: #fff; }
.radio-chip input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.form-foot { margin-top: 24px; }
.form-box { padding: 20px; border: 1px solid var(--g200); border-radius: var(--radius); background: #fff; }
.form-section + .form-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--g200); }
.form-section__title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--g100); color: var(--g700); }
.badge--red { background: var(--red-soft); color: var(--red); }
.badge--dark { background: var(--black); color: #fff; }
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge--blue { background: var(--blue-soft); color: var(--blue); }
.badge--outline { background: #fff; border: 1px solid var(--g300); color: var(--g700); }
.badge--lg { height: 28px; padding: 0 10px; font-size: 13px; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; }

/* ---------- product card ---------- */
.grid { display: grid; gap: 28px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.card { display: block; }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--photo-radius); background: var(--g100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__name, .card:focus-visible .card__name { text-decoration: underline; text-underline-offset: 4px; }
.card__soldout { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.68); color: var(--black); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.card__tag { position: absolute; left: 8px; top: 8px; }
.card__body { padding: 12px 0 0; }
.card__name { font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: -.01em; }
.card__summary { margin-top: 5px; font-size: 12px; color: var(--g700); line-height: 1.5; }
.card__price { margin-top: 6px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.card.is-soldout .card__price { color: var(--g700); }

/* ---------- list rows ---------- */
.list { border-top: 1px solid var(--g200); }
.list__item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--g200); }
.list__thumb { width: 64px; height: 64px; flex: none; border-radius: var(--radius-sm); overflow: hidden; background: var(--g100); }
.list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.list__body { flex: 1; min-width: 0; }
.list__title { font-size: 14px; font-weight: 500; line-height: 1.4; }
.list__meta { margin-top: 2px; font-size: 12px; color: var(--g500); }
.list__price { font-size: 14px; font-weight: 700; margin-top: 4px; }
.menu-list a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--g200); font-size: 15px; font-weight: 500; }
.menu-list a .icon { width: 18px; height: 18px; color: var(--g400); }
.menu-list a .muted { font-weight: 400; font-size: 13px; }

/* ---------- stepper ---------- */
.stepper { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--g300); border-radius: var(--radius-sm); overflow: hidden; }
.stepper button { width: 36px; height: 100%; display: inline-flex; align-items: center; justify-content: center; color: var(--g700); }
.stepper button:disabled { color: var(--g300); cursor: not-allowed; }
.stepper button .icon { width: 16px; height: 16px; }
.stepper input { width: 42px; height: 100%; border: 0; border-left: 1px solid var(--g200); border-right: 1px solid var(--g200); text-align: center; font-size: 14px; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ---------- summary / price table ---------- */
.summary { padding: 16px; background: var(--g50); border-radius: var(--radius); }
.summary__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--g700); padding: 4px 0; }
.summary__row--total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--g200); font-size: 16px; font-weight: 700; color: var(--black); }
.summary__row--total .amount { color: var(--red); font-size: 18px; }

/* ---------- modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; margin: 0; }
.modal::backdrop { background: rgba(0,0,0,.45); }
.modal[open] { display: flex; align-items: flex-end; justify-content: center; }
.modal__panel { width: 100%; max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 20px var(--gutter) calc(20px + var(--safe-b)); animation: sheetUp .25s var(--ease); }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal__title { font-size: 17px; font-weight: 700; }
.modal__close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--g700); }
.modal__body { font-size: 14px; color: var(--g700); line-height: 1.6; }
.modal__foot { margin-top: 20px; display: flex; gap: 8px; }
.modal__foot .btn { flex: 1; }
@keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 var(--gutter); }
body.no-tabbar .toasts { bottom: calc(var(--safe-b) + 20px); }
.toast { pointer-events: auto; max-width: 420px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); background: var(--g900); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .25s var(--ease); }
.toast .icon { width: 18px; height: 18px; flex: none; }
.toast--success .icon { color: #7ED39A; }
.toast--error { background: var(--red); }
.toast--info .icon { color: #9DC1F0; }
.toast.is-leaving { animation: toastOut .2s var(--ease) forwards; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(6px); opacity: 0; } }

/* ---------- alert (inline) ---------- */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; background: var(--g50); color: var(--g700); border: 1px solid var(--g200); }
.alert .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert--error { background: var(--red-soft); color: var(--red); border-color: transparent; }
.alert--success { background: var(--green-soft); color: var(--green); border-color: transparent; }
.alert--warn { background: var(--yellow-soft); color: var(--yellow); border-color: transparent; }

/* ---------- empty / loading ---------- */
.empty { padding: 56px 16px; text-align: center; color: var(--g500); }
.empty .icon { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--g300); }
.empty__title { font-size: 16px; font-weight: 600; color: var(--g700); }
.empty__desc { margin-top: 4px; font-size: 13px; }
.empty .btn { margin-top: 18px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--g200); border-top-color: var(--black); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
.spinner--sm { width: 18px; height: 18px; border-width: 2px; }
.loading { padding: 48px 0; }
.skeleton { background: linear-gradient(90deg, var(--g100) 25%, var(--g50) 50%, var(--g100) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-sm); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- sticky bottom CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 39; padding: 10px var(--gutter); background: var(--white); border-top: 1px solid var(--g200); }
body.no-tabbar .sticky-cta { bottom: 0; padding-bottom: calc(10px + var(--safe-b)); }
.sticky-cta__inner { max-width: var(--container); margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.sticky-cta__inner .btn { flex: 1; }
.has-sticky-cta { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 72px); }
body.no-tabbar.has-sticky-cta { padding-bottom: calc(var(--safe-b) + 72px); }

/* ---------- tabs / sort / chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--g300); font-size: 13px; font-weight: 500; color: var(--g700); background: #fff; }
.chip.is-active { background: var(--black); border-color: var(--black); color: #fff; }
.sort { display: flex; gap: 14px; font-size: 13px; color: var(--g400); }
.sort a.is-active { color: var(--black); font-weight: 600; }
.tabs { display: flex; border-bottom: 1px solid var(--g200); }
.tabs a { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--g500); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.is-active { color: var(--black); border-color: var(--black); font-weight: 600; }

/* ---------- steps (order status) ---------- */
.steps { display: flex; align-items: center; }
.steps__item { flex: 1; text-align: center; font-size: 11px; color: var(--g400); position: relative; }
.steps__item::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--g200); margin: 0 auto 6px; }
.steps__item:not(:last-child)::after { content: ""; position: absolute; top: 4px; left: 50%; width: 100%; height: 2px; background: var(--g200); z-index: -1; }
.steps__item.is-done { color: var(--g700); }
.steps__item.is-done::before, .steps__item.is-done::after { background: var(--black); }
.steps__item.is-current { color: var(--red); font-weight: 700; }
.steps__item.is-current::before { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

/* ---------- table (desktop-first admin, mobile scroll) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 10px; border-bottom: 1px solid var(--g200); text-align: left; vertical-align: middle; white-space: nowrap; }
.table th { background: var(--g50); font-weight: 600; color: var(--g700); font-size: 12px; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr:hover td { background: #fcfcfc; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--g500); }
.kv dd { margin: 0; }

/* ---------- hero / navi landing ---------- */
.hero { padding: 36px 0 28px; }
.hero__title { font-size: 25px; font-weight: 700; line-height: 1.32; letter-spacing: -.03em; text-wrap: balance; }
.hero__sub { margin-top: 10px; font-size: 14px; color: var(--g500); }
.band { position: relative; overflow: hidden; background: var(--cream); }
.band__inner { position: relative; padding: 34px 0 40px; }
.band__title { font-size: 22px; font-weight: 700; line-height: 1.32; letter-spacing: -.03em; max-width: 22ch; text-wrap: balance; }
.band__sub { margin-top: 10px; font-size: 14px; color: var(--g700); max-width: 40ch; }
.band__actions { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.band__mark { position: absolute; right: -22px; bottom: -36px; width: 128px; height: 128px; color: var(--red); opacity: .1; pointer-events: none; }
.band__mark svg { width: 100%; height: 100%; }
.catrow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 18px 0 4px; }
.catrow::-webkit-scrollbar { display: none; }
.catrow__item { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--g200); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; transition: border-color .15s var(--ease), background .15s var(--ease); }
.catrow__item:hover { border-color: var(--black); }
.catrow__item.is-navi { color: var(--red); }
.catrow__thumb { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--g100); flex: none; }
.catrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.reveal { animation: reveal .45s var(--ease) both; }
@keyframes reveal { from { opacity: .7; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero__media { margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden; background: var(--g100); aspect-ratio: 16 / 10; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.feature { padding: 18px 0; border-top: 1px solid var(--g200); }
.feature__title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.feature__desc { margin-top: 4px; font-size: 14px; color: var(--g700); line-height: 1.6; max-width: 52ch; }
.features { border-bottom: 1px solid var(--g200); }
.benefits { border-top: 1px solid var(--g200); }
.benefit { padding: 20px 0; border-bottom: 1px solid var(--g200); }
.benefit__title { font-size: 17px; font-weight: 700; color: var(--red); letter-spacing: -.02em; }
.benefit ul { margin-top: 10px; }
.benefit li { display: flex; gap: 10px; font-size: 14px; color: var(--g700); line-height: 1.7; }
.benefit li::before { content: ""; flex: none; width: 10px; height: 1px; background: var(--red); margin-top: 12px; }
.stepper-row { display: grid; gap: 0; }
.step { position: relative; padding: 16px 0 16px 44px; border-top: 1px solid var(--g200); }
.step__no { position: absolute; left: 0; top: 17px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--red); color: var(--red); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.step__title { font-size: 15px; font-weight: 600; }
.step__title .badge { vertical-align: middle; margin-left: 6px; }
.wait { padding: 24px 0; border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); font-size: 15px; line-height: 1.6; }
.wait strong { font-size: 32px; font-weight: 700; color: var(--red); letter-spacing: -.03em; margin: 0 4px; font-variant-numeric: tabular-nums; }
.closing { margin-top: 32px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.values { display: flex; margin-top: 16px; border: 1px solid var(--g200); border-radius: var(--radius-sm); overflow: hidden; }
.values span { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; font-weight: 600; }
.values span + span { border-left: 1px solid var(--g200); }
.stat { padding: 20px; background: var(--g50); border-radius: var(--radius); text-align: center; }
.stat__label { font-size: 13px; color: var(--g500); }
.stat__value { margin-top: 4px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.stat__value em { font-style: normal; color: var(--red); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-grid .stat { text-align: left; }
.stat-grid .stat__value { font-size: 22px; }

/* ---------- misc ---------- */
.notice { padding: 14px 16px; background: var(--g50); border-radius: var(--radius-sm); font-size: 13px; color: var(--g700); line-height: 1.6; }
.notice strong { color: var(--black); }
.prose { font-size: 14px; line-height: 1.75; color: var(--g700); }
.prose h2 { font-size: 16px; font-weight: 700; color: var(--black); margin: 24px 0 8px; }
.prose h3 { font-size: 15px; font-weight: 600; color: var(--black); margin: 16px 0 6px; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 18px; list-style: disc; }
.prose ol { padding-left: 18px; list-style: decimal; }
.prose img { border-radius: var(--radius); margin: 12px 0; }
.copy-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--g50); border: 1px solid var(--g200); border-radius: var(--radius-sm); font-size: 13px; }
.copy-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--g900); }
.code-badge { display: inline-block; padding: 6px 12px; background: var(--black); color: #fff; font-weight: 700; letter-spacing: .12em; border-radius: var(--radius-sm); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ==========================================================================
   Desktop
   ========================================================================== */
/* Photo-led storefront; existing forms and shared application layouts stay intact. */
.band--photo { background: var(--white); overflow: visible; }
.band--photo .band__inner { display: grid; gap: var(--space-content); padding: 24px var(--gutter) 0; }
.band__copy { min-width: 0; }
.band--photo .band__title { max-width: 100%; font-size: 25px; line-height: 1.45; text-wrap: pretty; }
.band--photo .band__sub { margin-top: 16px; max-width: 44ch; line-height: 1.75; }
.band--photo .band__actions { margin-top: 24px; }
.band--photo .band__actions .btn { font-size: 13px; padding-inline: 14px; }
.band__photo { order: -1; overflow: hidden; border-radius: var(--photo-radius); aspect-ratio: 3 / 2; }
.band__photo img { width: 100%; height: 100%; object-fit: cover; }
.shop-home .catrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 28px 0; margin-top: 8px; border-bottom: 1px solid var(--g200); }
.shop-home .catrow__item { min-width: 0; flex-direction: column; gap: 10px; padding: 4px 0; border: 0; border-radius: 0; font-size: 12px; }
.shop-home .catrow__item:hover { color: var(--red); }
.shop-home .catrow__thumb { width: 56px; height: 56px; border-radius: var(--photo-radius); }
.shop-home .section { padding: var(--space-section) 0 0; }
.shop-home .section__head { margin-bottom: 20px; align-items: center; }
.shop-home .section__more { min-height: 44px; flex: none; color: var(--g700); }
.project-notice { padding: 24px 0; background: var(--white); border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); border-radius: 0; gap: 16px; }
.project-notice > span { max-width: 64ch; line-height: 1.8; }
.project-notice .btn { min-height: 44px; }
.product-layout { margin-top: 24px; }
.purchase-panel { margin-top: 24px; }
.purchase-panel .page-title { font-size: 25px; line-height: 1.4; margin: 12px 0; text-wrap: pretty; }
.purchase-panel > .muted { line-height: 1.75; color: var(--g700); }
.product-price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.purchase-panel #buyForm { padding-top: 24px; border-top: 1px solid var(--g200); }
.purchase-panel .stepper { height: 44px; }
.purchase-panel .stepper button { width: 44px; }
.purchase-panel .stepper:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.product-page > .divider { height: 1px; background: var(--g200); margin-top: 40px; }
.hero--navi, .hero--referrer { padding: 32px 0 var(--space-section); }
.hero--navi .hero__title, .hero--referrer .hero__title { font-size: 25px; line-height: 1.5; text-wrap: pretty; }
.hero--navi .hero__sub, .hero--referrer .hero__sub { margin-top: 16px; color: var(--g700); line-height: 1.75; }
.hero--navi .hero__media { aspect-ratio: 16 / 9; }
.hero--referrer .hero__media { aspect-ratio: 3 / 2; }
.hero--navi .hero__media, .hero--referrer .hero__media { border-radius: var(--photo-radius); margin-top: 24px; max-height: none; }
.navi-landing .section { padding: var(--space-section) 0; }
.navi-landing .section + .section { padding-top: 8px; }
.editorial-section .section__title { margin-bottom: 24px; }
.navi-landing .features { display: block; border-bottom: 1px solid var(--g200); }
.navi-landing .feature { padding: 20px 0; }
.navi-landing .benefits { display: block; border-top: 0; }
.navi-landing .benefit { padding: 20px 0; border-top: 1px solid var(--g200); border-bottom: 0; }
.navi-landing .benefit:last-child { border-bottom: 1px solid var(--g200); }
.navi-landing .step, .referrer-info .step { padding-block: 24px; }
.navi-landing .step__no, .referrer-info .step__no { top: 24px; border: 0; border-radius: 0; justify-content: flex-start; font-size: 18px; }
.referrer-info .feature__desc { margin-top: 12px; line-height: 1.8; }
.referrer-info .notice { padding: 20px; line-height: 1.8; }
.navi-invitation .wait { display: block; text-align: center; line-height: 1.8; }
.navi-invitation .wait .muted { display: block; font-size: 14px; }
.navi-invitation .closing { margin-top: 48px; text-align: center; }
.navi-invitation .values { border-inline: 0; border-radius: 0; margin-top: 24px; }
.navi-invitation .values span { padding: 20px 0; }
.navi-invitation .values span + span { border-left: 0; }

@media (min-width: 768px) {
  :root { --header-h: 64px; --gutter: 24px; }
  body { padding-bottom: 0; font-size: 15px; }
  .tabbar { display: none; }
  .header__logo img { height: 28px; }
  .header__nav { display: flex; gap: 0; margin-left: 0; }
  .header__nav a { padding: 8px; font-size: 13px; font-weight: 500; color: var(--g700); border-radius: var(--radius-sm); white-space: nowrap; }
  .header__nav a:hover { background: var(--g100); color: var(--black); }
  .header__nav a.is-active { color: var(--black); font-weight: 700; }
  .header__nav a.is-navi { color: var(--red); }
  .header__action--text { font-size: 14px; }
  .section { padding: 40px 0; }
  .section__title { font-size: 22px; }
  .page-title { font-size: 26px; margin: 36px 0 20px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card__name { font-size: 15px; }
  .card__price { font-size: 20px; }
  .toasts { bottom: 24px; }
  .sticky-cta { bottom: 0; }
  .has-sticky-cta { padding-bottom: 80px; }
  .modal[open] { align-items: center; }
  .modal__panel { width: 440px; max-height: 85vh; border-radius: var(--radius-lg); padding: 24px; animation: modalIn .2s var(--ease); }
  .modal__panel--wide { width: 720px; }
  @keyframes modalIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
  .hero { padding: 64px 0 40px; }
  .hero__title { font-size: 34px; max-width: 760px; }
  .band__inner { padding: 56px 0 52px; }
  .band__title { font-size: 32px; }
  .band__sub { font-size: 16px; }
  .band__mark { right: 4%; bottom: auto; top: 50%; transform: translateY(-50%); width: 360px; height: 360px; opacity: .12; }
  .hero__media { aspect-ratio: 21 / 9; max-height: 440px; }
  .catrow { padding: 24px 0 0; }
  .features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .benefits { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
  .benefit { border-bottom: 0; padding: 24px 0 8px; }
  .stepper-row { grid-template-columns: repeat(4, 1fr); column-gap: 24px; }
  .step { padding: 20px 0 16px; border-top: 1px solid var(--g200); }
  .step__no { position: static; margin-bottom: 12px; }
  .wait { display: flex; align-items: baseline; gap: 6px; font-size: 17px; }
  .wait strong { font-size: 44px; }
  .closing { font-size: 22px; }
  .hero__sub { font-size: 16px; }
  .feature { padding: 20px 0; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer { margin-top: 80px; padding: 40px 0 48px; }
  .two-col { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
  .two-col__side { position: sticky; top: calc(var(--header-h) + 24px); }
  .kv { grid-template-columns: 120px 1fr; }
  :root { --space-section: 56px; --space-content: 32px; }
  .band--photo .band__inner { padding-top: 32px; }
  .band--photo .band__title { font-size: 30px; max-width: 30ch; }
  .band--photo .band__actions .btn { font-size: 14px; }
  .shop-home .catrow { margin-top: 16px; padding: 28px 0; }
  .shop-home .catrow__item { flex-direction: row; justify-content: center; gap: 16px; font-size: 15px; }
  .shop-home .catrow__item + .catrow__item { border-left: 1px solid var(--g200); }
  .shop-home .catrow__thumb { width: 64px; height: 64px; }
  .product-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; margin-top: 40px; }
  .purchase-panel { margin-top: 0; }
  .purchase-panel .page-title { font-size: 27px; }
  .hero--navi .hero__title, .hero--referrer .hero__title { font-size: 32px; max-width: 790px; }
  .hero--navi .hero__media { margin-top: 32px; }
  .editorial-layout { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.5fr); gap: 40px; }
  .navi-landing .feature { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); gap: 24px; }
  .navi-landing .feature__desc { margin-top: 0; }
  .navi-landing .benefit { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); gap: 24px; }
  .navi-landing .benefit ul { margin-top: 0; }
  .referrer-info .stepper-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; }
  .referrer-details > .mt-24, .referrer-details > .notice { max-width: 720px; margin-inline: auto; }
  .navi-invitation .btn--block { max-width: 400px; margin-inline: auto; display: flex; }
}
@media (min-width: 1024px) {
  :root { --space-section: 64px; }
  .header__nav { gap: 4px; margin-left: 12px; }
  .header__nav a { padding-inline: 12px; font-size: 14px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band--photo .band__inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); align-items: center; gap: 48px; padding-top: 40px; }
  .band__photo { order: 0; }
  .band--photo .band__title { font-size: 30px; }
  .band--photo .band__sub { font-size: 15px; }
  .product-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; }
  .purchase-panel { padding-top: 16px; }
  .purchase-panel .page-title { font-size: 30px; }
  .hero--navi { padding-top: 48px; }
  .hero--navi .hero__media { aspect-ratio: 16 / 7; }
  .hero--referrer > .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
  .hero--referrer .hero__media { margin-top: 0; }
  .hero--referrer { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

