/* ===== AETERNA ===== */
:root {
  --white: #ffffff;
  --paper: #f7f6f3;
  --line: #e6e4df;
  --mute: #8a8780;
  --text: #2a2926;
  --black: #111110;
  --kakao: #fee500;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
input { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
body.locked { overflow: hidden; }
[hidden] { display: none !important; }

/* ===== Type ===== */
.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7.5vw, 112px);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--black);
}
.display em { font-style: italic; }
.title {
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--black);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 32px;
  font-size: 13px; letter-spacing: .08em;
  border: 1px solid var(--black);
  transition: background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover:not(:disabled) { background: var(--white); color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--block { width: 100%; }
.text-btn { font-size: 13px; color: var(--mute); text-align: left; }
.text-btn:hover { color: var(--black); }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  transition: opacity .2s;
}
.icon-btn:hover { opacity: .55; }

/* ===== Announcement ===== */
.announce {
  background: var(--black); color: var(--white);
  height: 36px; overflow: hidden;
  font-size: 12px; letter-spacing: .04em;
}
.announce b { font-weight: 500; }
.announce__track { position: relative; height: 100%; }
.announce__track > span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  text-align: center; padding: 0 16px;
}
.announce__track > span.is-on { opacity: 1; transform: none; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav { display: flex; gap: 32px; font-size: 13px; letter-spacing: .04em; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--black); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.logo {
  font-family: var(--serif);
  font-size: 28px; font-weight: 400;
  letter-spacing: .32em; padding-left: .32em;
  color: var(--black);
}
.logo--sm { font-size: 22px; }
.header__actions { display: flex; justify-content: flex-end; gap: 4px; }
.header__burger { display: none; }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  font-size: 10px; line-height: 16px; text-align: center;
  background: var(--black); color: var(--white); border-radius: 8px;
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
.account-btn__avatar {
  position: absolute; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line);
}
.account-btn.is-auth svg { visibility: hidden; }

/* Search */
.search {
  max-height: 0; overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height .4s var(--ease), border-color .3s;
}
.search.is-open { max-height: 80px; border-top-color: var(--line); }
.search__inner {
  display: flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 var(--gutter);
}
.search__inner input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search__inner input::placeholder { color: #b5b2ab; }

/* ===== Hero ===== */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr;
  min-height: calc(100vh - var(--header-h) - 36px);
  min-height: calc(100svh - var(--header-h) - 36px);
}
.hero__media { overflow: hidden; background: var(--paper); }
.hero__media img { animation: heroZoom 14s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px clamp(24px, 6vw, 96px);
}
.hero__lead { margin: 28px 0 40px; color: var(--mute); max-width: 400px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== USP ===== */
.usp {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.usp__item {
  display: flex; align-items: center; gap: 16px;
  padding: 28px var(--gutter);
  border-right: 1px solid var(--line);
}
.usp__item:last-child { border-right: 0; }
.usp__item svg { width: 28px; height: 28px; flex-shrink: 0; stroke-width: 1; }
.usp__item strong { display: block; font-weight: 500; font-size: 14px; color: var(--black); }
.usp__item strong span { font-size: inherit; color: inherit; }
.usp__item span { font-size: 12px; color: var(--mute); }

/* ===== Sections ===== */
.section { padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }
.section__head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; text-align: left;
}

/* Categories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { display: block; }
.cat__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.cat__img img { transition: transform 1.2s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.05); }
.cat__label { display: flex; flex-direction: column; padding-top: 16px; }
.cat__label span { font-family: var(--serif); font-size: 24px; color: var(--black); line-height: 1.3; }
.cat__label small { font-size: 12px; color: var(--mute); }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 18px;
  font-size: 13px; border: 1px solid var(--line); border-radius: 18px;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--black); }
.chip.is-active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ===== Product card ===== */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 16px; }
.card.is-hidden { display: none; }
.card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--paper); cursor: pointer;
}
.card__media img { position: absolute; inset: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.card__media img.alt { opacity: 0; }
.card:hover .card__media img.alt { opacity: 1; }
.card:hover .card__media img { transform: scale(1.04); }
.card__add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  height: 46px; background: var(--white); color: var(--black);
  font-size: 13px; letter-spacing: .06em;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s, color .25s;
}
.card__add:hover { background: var(--black); color: var(--white); }
.card:hover .card__add { opacity: 1; transform: none; }
.card__body { padding-top: 16px; }
.card__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card__name { font-size: 15px; font-weight: 400; color: var(--black); cursor: pointer; }
.card__price { font-size: 14px; white-space: nowrap; }
.card__sub { font-size: 12px; color: var(--mute); margin-top: 2px; }
.swatches { display: flex; gap: 6px; margin-top: 10px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.empty { text-align: center; color: var(--mute); padding: 40px 0; }

/* ===== Banner ===== */
.banner {
  position: relative; margin-top: clamp(72px, 10vw, 140px);
  min-height: 640px; display: flex; align-items: center;
  padding: 64px var(--gutter);
}
.banner__media { position: absolute; inset: 0; z-index: -1; }
.banner__card { background: var(--white); max-width: 460px; padding: clamp(32px, 4vw, 56px); }
.banner__card .title { margin-bottom: 18px; }
.banner__card > p:not(.eyebrow) { color: #5b5953; margin-bottom: 32px; }

/* ===== Order guide ===== */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--black);
}
.steps li { padding: 32px 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps__no { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--black); }
.steps h3 { font-size: 16px; font-weight: 500; color: var(--black); margin: 20px 0 8px; }
.steps p { font-size: 14px; color: #5b5953; }

.care {
  display: grid; grid-template-columns: 1fr 3fr; gap: 32px;
  margin-top: clamp(56px, 7vw, 96px); padding: 40px; background: var(--paper);
}
.care__title { font-size: 16px; font-weight: 500; color: var(--black); }
.care ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.care li { font-size: 13px; color: #5b5953; }
.care li strong { display: block; font-weight: 500; color: var(--black); margin-bottom: 4px; }

/* ===== Footer ===== */
.footer { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); padding: 64px var(--gutter) 40px; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer__brand .logo { font-size: 24px; }
.footer__brand p { margin-top: 12px; font-size: 13px; color: var(--mute); }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer__col h4 { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; color: var(--black); }
.footer__col a, .footer__col p { color: var(--mute); }
.footer__col a:hover { color: var(--black); }
.footer__cs .footer__phone { font-size: 20px; color: var(--black); letter-spacing: .02em; }

.footer__legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.footer__policy { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 20px; font-size: 13px; color: var(--text); }
.footer__policy strong { font-weight: 600; color: var(--black); }
.footer__policy a:hover { text-decoration: underline; text-underline-offset: 3px; }
.biz { display: flex; flex-wrap: wrap; gap: 4px 20px; line-height: 1.8; }
.biz div { display: flex; gap: 8px; align-items: baseline; }
.biz dt { color: #a9a69f; }
.biz dd { color: var(--text); display: flex; gap: 8px; align-items: baseline; }
.biz__check {
  font-size: 11px; padding: 0 8px; border: 1px solid var(--line); color: var(--mute); line-height: 20px;
}
.biz__check:hover { border-color: var(--black); color: var(--black); }
.biz-val:empty { display: inline-block; min-width: 72px; height: 1em; border-bottom: 1px dashed #d6d3cc; vertical-align: baseline; }
.escrow { margin-top: 14px; }
.copyright { margin-top: 20px; }

/* ===== Drawers ===== */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(17,17,16,.35);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.overlay.is-on { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 90;
  width: min(440px, 100%); background: var(--white);
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease);
}
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); width: min(360px, 88%); }
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  height: var(--header-h); padding: 0 24px; border-bottom: 1px solid var(--line);
}
.drawer__head h3 { font-size: 15px; font-weight: 500; }
.drawer__head h3 span { color: var(--mute); font-weight: 400; }

.mobile-nav { display: flex; flex-direction: column; padding: 16px 24px; }
.mobile-nav a {
  font-family: var(--serif); font-size: 28px; line-height: 1.2;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--black);
}
.mobile-nav__foot { margin-top: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--mute); }

.ship-bar { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.ship-bar p { font-size: 13px; margin-bottom: 10px; }
.ship-bar__track { height: 2px; background: var(--line); }
.ship-bar__fill { height: 100%; width: 0; background: var(--black); transition: width .5s var(--ease); }

.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-empty { text-align: center; padding: 64px 0; color: var(--mute); font-size: 14px; }
.cart-empty .btn { margin-top: 20px; }
.ci { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci__img { aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; }
.ci__top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.ci__name { color: var(--black); }
.ci__opt { font-size: 12px; color: var(--mute); }
.ci__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.ci__remove { font-size: 12px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 34px; }
.qty button { width: 32px; height: 100%; font-size: 15px; }
.qty span { min-width: 24px; text-align: center; font-size: 13px; }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); margin-bottom: 4px; }
.cart-total { display: flex; justify-content: space-between; font-size: 15px; margin: 10px 0 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.cart-total strong { font-weight: 500; }

/* ===== Modals ===== */
.modal {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box, .auth {
  position: relative; background: var(--white);
  transform: translateY(16px); transition: transform .45s var(--ease);
}
.modal.is-open .modal__box, .modal.is-open .auth { transform: none; }
.modal__box {
  width: min(980px, 100%); max-height: calc(100vh - 48px);
  display: grid; grid-template-columns: 1fr 1fr; overflow: auto;
}
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--white); }
.qv__media { aspect-ratio: 4 / 5; background: var(--paper); }
.qv__info { padding: 48px 40px; display: flex; flex-direction: column; }
.qv__title { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; color: var(--black); }
.qv__price { font-size: 17px; margin: 10px 0 20px; }
.qv__desc { font-size: 14px; color: #5b5953; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.qv__opt { margin-bottom: 20px; }
.qv__label { display: block; font-size: 12px; color: var(--mute); margin-bottom: 8px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sizes button { height: 40px; padding: 0 16px; border: 1px solid var(--line); font-size: 13px; transition: border-color .2s; }
.sizes button:hover { border-color: var(--mute); }
.sizes button.is-active { border-color: var(--black); }
.qv__info .btn { margin-top: 8px; }
.qv__meta { list-style: none; margin-top: 24px; font-size: 12px; color: var(--mute); display: grid; gap: 6px; }
.qv__meta li::before { content: "— "; }

/* Auth */
.auth { width: min(400px, 100%); padding: 56px 40px 40px; text-align: center; }
.auth__view { display: flex; flex-direction: column; align-items: center; }
.auth__title { font-size: 22px; font-weight: 400; color: var(--black); margin-top: 28px; }
.auth__lead { font-size: 14px; color: var(--mute); margin: 6px 0 32px; min-height: 1em; }
.auth__terms { font-size: 12px; color: var(--mute); margin-top: 20px; line-height: 1.6; }
.auth__terms a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.auth__avatar {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 28px; color: var(--black);
}
/* Kakao Login design guide: #FEE500 container, black symbol, 85% black label */
.kakao-btn {
  width: 100%; height: 52px; border-radius: 12px;
  background: var(--kakao); color: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  transition: filter .2s;
}
.kakao-btn:hover:not(:disabled) { filter: brightness(.96); }
.kakao-btn svg { width: 20px; height: 20px; fill: #000; stroke: none; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--black); color: var(--white);
  padding: 14px 24px; font-size: 13px; max-width: calc(100% - 32px); text-align: center;
  transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Legal pages ===== */
.legal-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  height: var(--header-h); display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.legal { max-width: 820px; margin: 0 auto; padding: 72px var(--gutter) 0; }
.legal__head { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--black); }
.legal__head .title { margin-bottom: 8px; }
.legal__head p { font-size: 13px; color: var(--mute); }
.legal__toc { list-style: none; columns: 2; gap: 32px; font-size: 13px; margin-bottom: 56px; padding: 24px 28px; background: var(--paper); }
.legal__toc li { padding: 3px 0; break-inside: avoid; }
.legal__toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal section { margin-bottom: 44px; }
.legal h2 { font-size: 17px; font-weight: 500; color: var(--black); margin-bottom: 14px; }
.legal h3 { font-size: 14px; font-weight: 500; color: var(--black); margin: 18px 0 6px; }
.legal p, .legal li { font-size: 14px; color: #4a4843; }
.legal p + p { margin-top: 8px; }
.legal ol, .legal ul { padding-left: 20px; margin-top: 8px; display: grid; gap: 4px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; color: #4a4843; }
.legal th { background: var(--paper); font-weight: 500; color: var(--black); white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* ===== Page header (checkout / orders) ===== */
.page-header { display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 var(--gutter); }
.page-header__back { font-size: 13px; color: var(--mute); justify-self: start; }
.page-header__back:hover { color: var(--black); }
.page-header__step { justify-self: end; font-size: 12px; letter-spacing: .08em; color: var(--mute); }

/* ===== Forms ===== */
.panel { border: 0; border-top: 1px solid var(--black); padding: 28px 0 40px; min-width: 0; }
.panel__title { font-size: 15px; font-weight: 500; color: var(--black); padding: 0; margin-bottom: 20px; float: left; width: 100%; }
.panel__title + * { clear: both; }
.panel__hint { font-size: 13px; color: var(--mute); padding: 20px; background: var(--paper); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; min-width: 0; }
.field > span { font-size: 12px; color: var(--mute); }
.field > span small { margin-left: 6px; color: #b5b2ab; }
.field input, .field select {
  height: 50px; padding: 0 16px; width: 100%; min-width: 0;
  border: 1px solid var(--line); border-radius: 0; background: var(--white);
  font-size: 15px; outline: 0; transition: border-color .2s; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238a8780' stroke-width='1.5'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input:focus, .field select:focus { border-color: var(--black); }
.field input[readonly] { background: var(--paper); }
.field input::placeholder { color: #b5b2ab; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field-inline { display: flex; gap: 8px; }
.field-inline input { flex: 1; }
.btn--sm { height: 50px; padding: 0 20px; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 16px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--black); }

/* ===== Checkout ===== */
.checkout { max-width: 1200px; margin: 0 auto; padding: 56px var(--gutter) 0; }
.checkout__title { margin-bottom: 40px; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.checkout__side { position: sticky; top: calc(var(--header-h) + 24px); }
.summary { padding-bottom: 0; }
.summary__items { list-style: none; display: grid; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.summary__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; font-size: 13px; }
.summary__img { aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; }
.summary__info p { color: var(--black); line-height: 1.4; }
.summary__info small { color: var(--mute); }
.summary__rows { padding: 16px 0; display: grid; gap: 6px; font-size: 13px; }
.summary__rows div { display: flex; justify-content: space-between; }
.summary__rows dt { color: var(--mute); }
.summary__total { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.summary__total dt { color: var(--black) !important; }
.summary__total dd { font-size: 20px; font-weight: 500; color: var(--black); }
.summary__note { font-size: 12px; color: var(--mute); margin-top: 12px; }
.summary__note:empty { display: none; }

.notice { max-width: 420px; margin: 40px auto 0; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.notice__msg { font-size: 15px; color: var(--text); }
.notice__kakao { max-width: 320px; }

/* ===== Result (success / fail) ===== */
.result { max-width: 560px; margin: 0 auto; padding: 88px var(--gutter) 0; }
.result__box { text-align: center; }
.result__box .title { margin-bottom: 12px; }
.result__lead { color: var(--mute); font-size: 14px; }
.result__lead--sm { font-size: 12px; margin-top: 24px; }
.result__code { font-size: 12px; color: #b5b2ab; margin-top: 8px; }
.result__rows { text-align: left; margin-top: 32px; border-top: 1px solid var(--black); }
.result__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.result__rows dt { color: var(--mute); flex-shrink: 0; }
.result__rows dd { color: var(--black); text-align: right; word-break: break-all; }
.result__actions { display: flex; gap: 8px; margin-top: 40px; }
.result__actions .btn { flex: 1; padding: 0 16px; }
.result__receipt { display: inline-block; margin-top: 20px; font-size: 12px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.deposit { margin-top: 32px; padding: 28px 24px; background: var(--paper); }
.deposit__label { font-size: 12px; color: var(--mute); }
.deposit__account { font-size: 18px; color: var(--black); margin-top: 6px; }
.deposit__account strong { font-weight: 500; letter-spacing: .02em; }
.deposit .result__rows { margin-top: 20px; border-top-color: var(--line); }
.deposit__note { font-size: 12px; color: var(--mute); margin-top: 16px; }
.spinner {
  width: 32px; height: 32px; margin: 0 auto 28px; border-radius: 50%;
  border: 1px solid var(--line); border-top-color: var(--black); animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Orders ===== */
.orders { max-width: 820px; margin: 0 auto; padding: 56px var(--gutter) 0; }
.orders__head { margin-bottom: 40px; }
.orders__user { font-size: 13px; color: var(--mute); margin-top: 6px; }
.order-list { list-style: none; display: grid; gap: 16px; }
.order { border: 1px solid var(--line); padding: 24px 28px; }
.order__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.order__date { font-size: 14px; color: var(--black); }
.order__id { font-size: 12px; color: var(--mute); }
.order__items { list-style: none; padding: 16px 0; display: grid; gap: 6px; font-size: 13px; }
.order__items li { display: flex; justify-content: space-between; gap: 16px; }
.order__items small { color: var(--mute); margin-left: 6px; }
.order__deposit { font-size: 13px; padding: 12px 16px; background: var(--paper); margin-bottom: 16px; }
.order__deposit strong { font-weight: 500; }
.order__foot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.order__foot strong { font-size: 16px; font-weight: 500; color: var(--black); }
.status { font-size: 11px; letter-spacing: .04em; padding: 4px 10px; border: 1px solid var(--line); white-space: nowrap; }
.status--paid { background: var(--black); color: var(--white); border-color: var(--black); }
.status--waiting_for_deposit { border-color: var(--black); color: var(--black); }
.status--canceled, .status--expired { color: var(--mute); }

.auth__logout { margin-top: 8px; }

/* ===== Status (추가 상태) ===== */
.status--preparing { border-color: var(--black); color: var(--black); }
.status--shipping { background: var(--black); color: var(--white); border-color: var(--black); }
.status--delivered { color: var(--text); }
.status--cancel_requested, .status--return_requested { border-color: var(--black); color: var(--black); border-style: dashed; }
.status--returned, .status--failed, .status--pending { color: var(--mute); }

/* ===== Orders: actions + cancel sheet ===== */
.order__note { font-size: 13px; padding: 12px 16px; background: var(--paper); margin-bottom: 12px; color: var(--text); }
.order__note strong { font-weight: 500; }
.order__foot-right { display: flex; align-items: center; gap: 16px; }
.order__foot .btn--sm { height: 36px; padding: 0 14px; font-size: 12px; }

.sheet {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--white); padding: 44px 32px 32px;
  transform: translateY(16px); transition: transform .45s var(--ease);
}
.modal.is-open .sheet { transform: none; }
.sheet__title { font-size: 20px; font-weight: 400; color: var(--black); }
.sheet__lead { font-size: 13px; color: var(--mute); margin: 4px 0 24px; }
.sheet__note { font-size: 12px; color: var(--mute); margin: 4px 0 16px; }
.sheet .field input[hidden] { display: none; }
.refund { border: 0; padding: 20px; background: var(--paper); margin-bottom: 16px; }
.refund__title { font-size: 13px; font-weight: 500; color: var(--black); float: left; width: 100%; margin-bottom: 4px; }
.refund__hint { clear: both; font-size: 12px; color: var(--mute); margin-bottom: 14px; }

/* ===== Admin ===== */
.admin { max-width: 1280px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.admin__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); border: 1px solid var(--line); }
.kpi { padding: 14px 18px; text-align: left; border-left: 1px solid var(--line); transition: background .2s; }
.kpi:first-child { border-left: 0; }
.kpi span { display: block; font-size: 11px; color: var(--mute); }
.kpi strong { font-size: 22px; font-weight: 400; color: var(--black); }
.kpi:hover { background: var(--paper); }
.kpi.is-active { background: var(--black); }
.kpi.is-active span, .kpi.is-active strong { color: var(--white); }
.kpi--alert strong { font-weight: 600; }

.filters-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--black); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.filters-bar .field { margin-bottom: 0; min-width: 140px; }
.filters-bar .field input, .filters-bar .field select { height: 44px; font-size: 14px; }
.filters-bar .field--grow { flex: 1; min-width: 220px; }
.filters-bar .btn--sm { height: 44px; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: .06em; color: var(--mute); padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr { cursor: pointer; transition: background .15s; }
.admin-table tbody tr:hover { background: var(--paper); }
.admin-table .num { text-align: right; white-space: nowrap; }
.admin-table .mono { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text); white-space: nowrap; }
.admin-table .ellipsis { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table small { color: var(--mute); }
.admin-table .minus { display: block; color: var(--mute); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; font-size: 13px; color: var(--mute); }
.pager .btn--sm { height: 38px; }

.drawer--wide { width: min(600px, 100%); }
.detail { flex: 1; overflow-y: auto; padding: 0 24px 40px; }
.detail__loading { padding: 40px 0; text-align: center; color: var(--mute); font-size: 13px; }
.detail__sec { padding: 22px 0; border-bottom: 1px solid var(--line); }
.detail__sec h4 { font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--black); margin-bottom: 12px; }
.detail__sec--alert { border: 1px dashed var(--black); padding: 20px; margin-top: 20px; }
.detail__status { display: flex; align-items: center; gap: 12px; }
.detail__date { font-size: 12px; color: var(--mute); }
.detail__text { font-size: 14px; color: var(--black); }
.detail__sub { font-size: 12px; color: var(--mute); margin: 8px 0; }
.detail__form { display: grid; gap: 4px; margin-top: 12px; }
.detail__form .field { margin-bottom: 8px; }
.detail__form .field input, .detail__form .field select { height: 44px; font-size: 14px; }
.detail__form .btn { height: 46px; margin-bottom: 8px; }
.detail__form .field-etc { height: 44px; border: 1px solid var(--line); padding: 0 14px; margin-bottom: 8px; }
.detail__items { list-style: none; display: grid; gap: 10px; margin-bottom: 14px; font-size: 13px; }
.detail__items li { display: flex; justify-content: space-between; gap: 16px; }
.detail__items small { display: block; color: var(--mute); font-size: 12px; }
.detail__collapse summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--black); list-style: none; }
.detail__collapse summary::-webkit-details-marker { display: none; }
.detail__collapse summary::after { content: "+"; float: right; color: var(--mute); }
.detail__collapse[open] summary::after { content: "−"; }
.btn--danger { border-color: var(--black); }
.kv { display: grid; gap: 6px; font-size: 13px; }
.kv div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.kv dt { color: var(--mute); }
.kv dd { color: var(--black); word-break: break-all; }
.kv a { text-decoration: underline; text-underline-offset: 3px; }
.timeline { list-style: none; display: grid; gap: 12px; font-size: 13px; }
.timeline li { padding-left: 16px; border-left: 1px solid var(--line); }
.timeline strong { font-weight: 500; color: var(--black); }
.timeline small { display: block; font-size: 11px; color: var(--mute); margin-top: 2px; }
.timeline__note { display: block; color: var(--text); font-size: 12px; }

@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  /* 표 → 카드 */
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border: 1px solid var(--line); padding: 14px 16px; margin-top: 10px; position: relative; }
  .admin-table td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 12px; }
  .admin-table td::before { content: attr(data-label); color: var(--mute); font-size: 12px; flex-shrink: 0; }
  .admin-table .ellipsis { max-width: none; }
  .admin-table .num { text-align: left; }
  .admin-table .minus { display: inline; margin-left: 6px; }
}
@media (max-width: 640px) {
  .filters-bar .field { min-width: calc(50% - 6px); flex: 1; }
  .filters-bar .field--grow { min-width: 100%; }
  .filters-bar .btn--sm { width: 100%; }
  .sheet { padding: 40px 20px 24px; }
  .order__foot { flex-wrap: wrap; gap: 10px; }
  .kv div { grid-template-columns: 84px 1fr; }
}

@media (max-width: 900px) {
  .checkout__grid { grid-template-columns: 1fr; gap: 0; }
  .checkout__side { position: static; }
}
@media (max-width: 640px) {
  .page-header__back { font-size: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .checkout { padding-top: 40px; }
  .checkout__title { margin-bottom: 24px; }
  .result { padding-top: 56px; }
  .result__actions { flex-direction: column; }
  .order { padding: 20px; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .usp__item:nth-child(2) { border-right: 0; }
  .usp__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .nav--left { display: none; }
  .header__burger { display: inline-flex; justify-self: start; }
  .logo { font-size: 22px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { aspect-ratio: 4 / 5; max-height: 70vh; width: 100%; }
  .hero__content { padding: 48px var(--gutter) 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps h3 { margin-top: 12px; }
  .care { grid-template-columns: 1fr; padding: 32px 24px; gap: 20px; }
  .care ul { grid-template-columns: 1fr; gap: 16px; }
  .modal__box { grid-template-columns: 1fr; }
  .qv__media { aspect-ratio: 1 / 1; }
  .qv__info { padding: 28px 24px 32px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .header__actions { gap: 0; }
  .icon-btn { width: 36px; }
  .logo { font-size: 19px; letter-spacing: .26em; padding-left: .26em; }
  .usp__item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 16px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 32px 10px; }
  .cats .cat:first-child { grid-column: 1 / -1; }
  .cats .cat:first-child .cat__img { aspect-ratio: 4 / 3; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .card__add { opacity: 1; transform: none; height: 38px; font-size: 12px; left: 8px; right: 8px; bottom: 8px; }
  .card__row { flex-direction: column; gap: 2px; }
  .card__name { font-size: 14px; }
  .cat__label span { font-size: 19px; }
  .banner { min-height: 0; padding: 0; flex-direction: column; align-items: stretch; }
  .banner__media { position: relative; z-index: 0; aspect-ratio: 4 / 3; }
  .banner__card { max-width: none; padding: 40px var(--gutter) 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__cs { grid-column: 1 / -1; }
  .biz { flex-direction: column; gap: 2px; }
  .hero__cta .btn { flex: 1; padding: 0 16px; }
  .auth { padding: 52px 24px 32px; }
  .legal { padding-top: 48px; }
  .legal__toc { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
