/* ==========================================================
   데아르(Deare) 스타일
   포인트: 연두(lime) · 둥근 카드 · 발랄한 앱형 쇼핑몰
   브레이크포인트: 768px(태블릿) · 1024px(데스크톱) · 1200px(와이드)
   ========================================================== */

:root {
  /* 포인트 컬러 — 연두는 배경용, 글자는 --ink / --point-ink 사용 (대비 4.5:1 이상) */
  --point: #A3E635;
  --point-strong: #84CC16;
  --point-soft: #ECFCCB;
  --point-faint: #F7FEE7;
  --point-ink: #3F6212;

  --ink: #1C1F1A;
  --ink-2: #4A5046;
  --ink-3: #6B7166;
  --line: #ECEEE8;
  --line-strong: #DADDD4;
  --surface: #F5F7F2;
  --bg: #FFFFFF;
  --sale: #E11D48;
  --star: #F5B700;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 31, 26, .06);
  --shadow-md: 0 8px 24px rgba(28, 31, 26, .08);
  --shadow-lg: 0 16px 40px rgba(28, 31, 26, .14);

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-logo: 'Fredoka', var(--font);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --container: 1200px;
  --header-h: 120px;
  --bottom-nav-h: 64px;
  color-scheme: light;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}
body.no-bottom-nav { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
table { border-collapse: collapse; }

:focus-visible { outline: 3px solid var(--point-strong); outline-offset: 2px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--point); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

.ico { width: 22px; height: 22px; flex-shrink: 0; }
.ico-fill { fill: currentColor; stroke: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 52px; padding: 0 22px; border-radius: var(--radius-md);
  font-size: 16px; font-weight: 700; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--point); color: var(--ink); }
.btn-primary:hover { background: var(--point-strong); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33382F; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; transition: background-color .15s;
}
.icon-btn:hover { background: var(--surface); }

/* ---------- 칩 ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 16px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--point); }
.chip .ico { width: 16px; height: 16px; }
.chip[aria-pressed="false"] .ico { color: var(--line-strong); }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "logo actions" "search search";
  align-items: center;
  gap: 6px 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.menu-btn { grid-area: menu; display: none; }

.logo {
  grid-area: logo;
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--font-logo); font-weight: 600; font-size: 28px; line-height: 1;
  letter-spacing: -0.02em; color: var(--ink);
  min-height: 44px;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--point); border: 2px solid var(--ink);
  transform: translateY(6px);
}

.search { grid-area: search; position: relative; }
.search input {
  width: 100%; height: 44px;
  padding: 0 52px 0 18px;
  border: 1.5px solid transparent; border-radius: var(--pill);
  background: var(--surface); font-size: 15px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; background: #fff; border-color: var(--point-strong); box-shadow: 0 0 0 4px var(--point-soft); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search button {
  position: absolute; right: 4px; top: 4px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--point); color: var(--ink);
  transition: background-color .15s;
}
.search button:hover { background: var(--point-strong); }
.search button .ico { width: 18px; height: 18px; }

.header-actions { grid-area: actions; display: flex; gap: 2px; }
.action {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; border-radius: 12px;
  transition: background-color .15s;
}
.action:hover { background: var(--surface); }
.action-label { display: none; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.hide-mobile { display: none; }

.badge {
  position: absolute; top: 3px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--ink); color: var(--point);
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.badge[data-count="0"] { display: none; }

/* GNB */
.gnb-list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.gnb-list::-webkit-scrollbar { display: none; }
.gnb-item { flex-shrink: 0; }
.gnb-link {
  position: relative; display: block; white-space: nowrap;
  padding: 10px 11px 12px; font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: color .15s;
}
.gnb-link:hover { color: var(--ink); }
.gnb-link.is-best { color: var(--point-ink); font-weight: 800; }
.gnb-link.is-active { color: var(--ink); font-weight: 800; }
.gnb-link.is-active::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--ink);
}
.mega { display: none; }

/* ---------- 하단 메뉴 (모바일·태블릿) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a, .bottom-nav button {
  height: var(--bottom-nav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; font-weight: 600; color: var(--ink-3);
}
.nav-ico { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: var(--pill); transition: background-color .2s; }
.bottom-nav .is-active { color: var(--ink); font-weight: 800; }
.bottom-nav .is-active .nav-ico { background: var(--point); }
.nav-ico .badge { top: -4px; right: 4px; }

/* ---------- 카테고리 드로어 ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(20, 22, 18, .45); animation: fade .2s ease; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: min(420px, 92vw);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 0 var(--radius-xl) var(--radius-xl) 0; overflow: hidden;
  animation: slide-in .28s var(--ease);
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 10px 12px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 18px; font-weight: 800; }
.drawer-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 116px 1fr; }
.drawer-main { background: var(--surface); overflow-y: auto; }
.drawer-main button {
  width: 100%; min-height: 52px; padding: 0 16px; text-align: left;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.drawer-main button[aria-current="true"] { background: #fff; color: var(--ink); font-weight: 800; box-shadow: inset 4px 0 0 var(--point); }
.drawer-sub { overflow-y: auto; padding: 8px 10px 24px; }
.drawer-sub a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 0 10px; border-radius: 12px; font-size: 15px;
  transition: background-color .15s;
}
.drawer-sub a:hover { background: var(--point-faint); }
.drawer-sub a .ico { width: 16px; height: 16px; color: var(--ink-3); }
.drawer-sub .all { font-weight: 800; color: var(--point-ink); }

/* ---------- 섹션 공통 ---------- */
.section { padding-top: 28px; padding-bottom: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.section-sub { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.more-link { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.more-link:hover { color: var(--ink); }
.more-link .ico { width: 16px; height: 16px; }

/* ---------- 메인 배너 ---------- */
.hero { padding-top: 14px; }
.hero-wrap { position: relative; }
.hero-track {
  position: relative; display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius-xl);
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start;
  min-height: 340px; padding: 28px 24px;
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--slide-bg);
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-text { position: relative; z-index: 1; max-width: 70%; }
.hero-tag {
  display: inline-block; padding: 4px 10px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.hero-title { margin-top: 14px; font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; white-space: pre-line; }
.hero-sub { margin-top: 8px; font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.hero-cta {
  position: relative; z-index: 1; margin-top: auto;
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 16px; border-radius: var(--pill);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700;
}
.hero-cta .ico { width: 16px; height: 16px; }
.hero-art {
  position: absolute; right: -6%; bottom: -8%;
  width: 62%; max-width: 300px;
  transform: rotate(-8deg);
  transition: transform .5s var(--ease);
  filter: drop-shadow(0 18px 24px rgba(28, 31, 26, .12));
}
.hero-slide:hover .hero-art { transform: rotate(-4deg) scale(1.04); }
.hero-counter {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  padding: 4px 10px; border-radius: var(--pill);
  background: rgba(28, 31, 26, .55); color: #fff; font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hero-nav {
  position: absolute; top: 50%; z-index: 2;
  width: 44px; height: 44px; margin-top: -22px;
  display: none; place-items: center;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
  transition: transform .15s;
}
.hero-nav:hover { transform: scale(1.06); }
.hero-nav.prev { left: -18px; }
.hero-nav.next { right: -18px; }

/* ---------- 카테고리 바로가기 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 4px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.quick-icon {
  width: 60px; height: 60px; border-radius: 22px;
  display: grid; place-items: center;
  background: var(--surface);
  transition: transform .2s var(--ease), background-color .2s;
}
.quick-icon svg { width: 40px; height: 40px; }
.quick-item:hover { color: var(--ink); }
.quick-item:hover .quick-icon { transform: translateY(-3px); background: var(--point-soft); }
.quick-item.is-best .quick-icon { background: var(--point); font-family: var(--font-logo); font-size: 16px; font-weight: 600; color: var(--ink); }

/* ---------- 상품 그리드 · 카드 ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
.chips + .grid { margin-top: 16px; }

.card { position: relative; min-width: 0; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.card-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.card-thumb > a { display: block; height: 100%; }
.art { width: 100%; height: 100%; display: grid; place-items: center; background: var(--art-bg, var(--surface)); }
.art svg { width: 76%; height: 76%; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .art { transition: transform .45s var(--ease); }
.card:hover .card-thumb .art { transform: scale(1.05); }

.rank {
  position: absolute; top: 0; left: 0;
  min-width: 30px; height: 30px; padding: 0 8px;
  display: grid; place-items: center;
  border-radius: var(--radius-md) 0 var(--radius-sm) 0;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 800;
}
.rank.top3 { background: var(--point); color: var(--ink); }
.thumb-badge {
  position: absolute; left: 8px; bottom: 8px;
  padding: 3px 8px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .92); color: var(--point-ink);
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.wish-btn {
  position: absolute; right: 2px; bottom: 2px;
  width: 44px; height: 44px; display: grid; place-items: center; color: #fff;
}
.wish-btn .ico {
  width: 24px; height: 24px; fill: rgba(28, 31, 26, .15);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
  transition: transform .2s var(--ease);
}
.wish-btn:hover .ico { transform: scale(1.12); }
.wish-btn[aria-pressed="true"] .ico { fill: var(--sale); stroke: var(--sale); animation: pop .35s var(--ease); }

.card-body { display: block; padding-top: 10px; }
.card-name {
  font-size: 14px; line-height: 1.4; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em;
}
.card:hover .card-name { color: var(--ink); }
.card-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; font-size: 16px; font-weight: 800; }
.card-price .rate { color: var(--sale); }
.card-meta { display: flex; align-items: center; gap: 3px; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.card-meta .ico { width: 13px; height: 13px; color: var(--star); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { padding: 2px 6px; border-radius: 6px; background: var(--surface); color: var(--ink-2); font-size: 11px; font-weight: 700; }
.tag--point { background: var(--point-soft); color: var(--point-ink); }

/* 가로 스크롤 상품 줄 */
.h-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding-bottom: 4px;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; }

.section-tight { padding-top: 8px; padding-bottom: 8px; }

/* ---------- 쿠폰 배너 ---------- */
.promo {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-lg);
  background: var(--ink); color: #fff; text-align: left;
  transition: transform .2s var(--ease);
}
.promo:hover { transform: translateY(-2px); }
.promo-ico { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--point); color: var(--ink); }
.promo-text { flex: 1; min-width: 0; }
.promo-text b { display: block; font-size: 16px; }
.promo-text small { display: block; margin-top: 2px; font-size: 13px; color: #C9CEC3; }
.promo-cta { display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--point); white-space: nowrap; }
.promo-cta .ico { width: 16px; height: 16px; }

/* ---------- 목록 페이지 ---------- */
.page-head { padding: 18px 0 14px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 13px; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .ico { width: 14px; height: 14px; }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 600; }
.page-title { margin-top: 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.count { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.count b { color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.select {
  -webkit-appearance: none; appearance: none;
  height: 40px; padding: 0 34px 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--pill);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1F1A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.select:hover { border-color: var(--ink-3); }

.empty { padding: 64px 16px; text-align: center; color: var(--ink-3); }
.empty-ico { width: 72px; height: 72px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 26px; background: var(--point-soft); color: var(--point-ink); }
.empty-ico .ico { width: 32px; height: 32px; }
.empty strong { display: block; margin-bottom: 4px; font-size: 18px; color: var(--ink); }
.empty .btn { margin-top: 20px; }

.load-more { display: flex; justify-content: center; margin-top: 36px; }
.load-more[hidden] { display: none; }

/* ---------- 상세 페이지 ---------- */
.detail { display: grid; gap: 22px; padding-top: 14px; }
.gallery-main { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main .art svg { width: 70%; height: 70%; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs button {
  flex-shrink: 0; width: 64px; aspect-ratio: 3 / 4;
  border-radius: 12px; overflow: hidden; border: 2px solid transparent;
  transition: border-color .15s;
}
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--ink); }

.detail-name { margin-top: 8px; font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.rating-link { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.rating-link .ico { width: 16px; height: 16px; color: var(--star); }
.rating-link:hover u { color: var(--ink); }
.rating-link u { text-underline-offset: 3px; color: var(--ink-3); }

.price-block { margin-top: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.price-origin { font-size: 14px; color: var(--ink-3); text-decoration: line-through; }
.price-now { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; font-size: 26px; font-weight: 800; }
.price-now .rate { color: var(--sale); }
.price-now small { font-size: 18px; font-weight: 700; }

.benefits { display: grid; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface); font-size: 14px; }
.benefit { display: flex; align-items: flex-start; gap: 10px; }
.benefit .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--point-ink); }
.benefit b { color: var(--point-ink); }

.option-group { margin-top: 22px; }
.option-label { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.option-label span { font-weight: 500; color: var(--ink-3); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px 0 8px;
  border: 1.5px solid var(--line-strong); border-radius: var(--pill);
  font-size: 14px; font-weight: 600;
  transition: border-color .15s, background-color .15s;
}
.swatch:hover { border-color: var(--ink-3); }
.swatch[aria-pressed="true"] { border-color: var(--ink); background: var(--point-faint); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.size-btn {
  height: 46px; padding: 0 6px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  font-size: 14px; font-weight: 600;
  transition: border-color .15s, background-color .15s, color .15s;
}
.size-btn:hover:not(:disabled) { border-color: var(--ink-3); }
.size-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--point); }
.size-btn:disabled { color: #B5BAB0; background: var(--surface); text-decoration: line-through; cursor: not-allowed; }
.option-hint { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

.selected-list { display: grid; gap: 8px; margin-top: 16px; }
.selected-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 8px;
  padding: 12px 8px 14px 16px; border-radius: var(--radius-md); background: var(--surface);
  animation: rise .3s var(--ease);
}
.selected-name { font-size: 14px; font-weight: 600; }
.selected-item .icon-btn { width: 40px; height: 40px; color: var(--ink-3); }
.selected-item .icon-btn .ico { width: 18px; height: 18px; }
.selected-price { font-weight: 800; text-align: right; padding-right: 8px; }

.stepper { display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.stepper button { width: 38px; height: 36px; display: grid; place-items: center; color: var(--ink-2); }
.stepper button:disabled { color: var(--line-strong); cursor: not-allowed; }
.stepper button .ico { width: 16px; height: 16px; }
.stepper output { min-width: 32px; text-align: center; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

.total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.total-label { font-size: 15px; font-weight: 700; }
.total-label span { font-weight: 500; color: var(--ink-3); }
.total-price { font-size: 24px; font-weight: 800; }

.buy-actions { display: none; grid-template-columns: 52px 1fr 1fr; gap: 8px; margin-top: 18px; }
.wish-square {
  height: 52px; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: #fff;
  transition: border-color .15s;
}
.wish-square:hover { border-color: var(--ink); }
.wish-square .ico { width: 24px; height: 24px; }
.wish-square[aria-pressed="true"] .ico { fill: var(--sale); stroke: var(--sale); animation: pop .35s var(--ease); }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 52px 1fr 1fr; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(28, 31, 26, .05);
}
.buy-bar .btn { padding: 0 10px; }

.detail-tabs {
  position: sticky; top: var(--header-h); z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 40px; background: #fff; border-bottom: 1px solid var(--line);
}
.detail-tabs a {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 4px; font-size: 15px; font-weight: 600; color: var(--ink-3);
}
.detail-tabs a.is-active { color: var(--ink); font-weight: 800; }
.detail-tabs a.is-active::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }

.detail-section { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 56px); }
.detail-section:last-of-type { border-bottom: 0; }
.detail-section > h2 { margin-bottom: 18px; font-size: 20px; font-weight: 800; }
.narrow { max-width: 720px; margin: 0 auto; }
.info-images { display: grid; gap: 12px; }
.info-images .art { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); }
.info-images .art svg { width: 64%; height: 64%; }
.desc { margin: 28px 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); text-align: center; }
.desc strong { display: block; margin-bottom: 8px; font-size: 18px; color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.spec-table { width: 100%; font-size: 14px; }
.spec-table th, .spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 30%; background: var(--surface); font-weight: 600; color: var(--ink-2); }
.spec-table thead th { width: auto; }
.size-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

.review-summary { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); }
.review-score { text-align: center; }
.review-score strong { display: block; font-size: 40px; line-height: 1.1; font-weight: 800; }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .ico { width: 16px; height: 16px; }
.stars .off { color: var(--line-strong); }
.review-score p { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.review-bars { display: grid; gap: 6px; }
.review-bar { display: grid; grid-template-columns: 30px 1fr 38px; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.review-bar .progress { height: 8px; background: #fff; }
.review-bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.review-item { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--ink-3); }
.review-head b { color: var(--ink-2); }
.review-option { font-size: 13px; color: var(--ink-3); }
.review-text { font-size: 15px; }
.review-photo { width: 72px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; margin-top: 4px; }
.review-photo .art svg { width: 70%; }

.notice-list { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.notice-list li { position: relative; padding-left: 14px; line-height: 1.6; }
.notice-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--point-strong); }
.notice-list b { color: var(--ink); }

/* ---------- 진행 막대 ---------- */
.progress { height: 8px; border-radius: 4px; overflow: hidden; background: #fff; }
.progress span { display: block; width: var(--w, 0%); height: 100%; border-radius: 4px; background: var(--point-strong); transition: width .4s var(--ease); }

/* ---------- 장바구니 ---------- */
.cart-tabs { display: flex; gap: 4px; margin-top: 8px; border-bottom: 1px solid var(--line); }
.cart-tabs button {
  position: relative; min-height: 50px; padding: 0 14px;
  font-size: 17px; font-weight: 700; color: var(--ink-3);
}
.cart-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 800; }
.cart-tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }
.cart-tabs .num { margin-left: 4px; color: var(--point-ink); }

.cart-layout { display: grid; gap: 20px; padding: 18px 0 8px; }
.cart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.text-btn { min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.text-btn:hover { color: var(--ink); text-decoration: underline; }

.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none; flex-shrink: 0;
  width: 22px; height: 22px; margin: 0;
  border: 1.5px solid var(--line-strong); border-radius: 7px; background: #fff;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.check input:checked {
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3E635' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 14px;
}
.check input:focus-visible { outline: 3px solid var(--point-strong); outline-offset: 2px; }

.cart-item { position: relative; display: grid; grid-template-columns: auto 84px 1fr; align-items: start; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item .check { min-height: 22px; padding-top: 2px; }
.cart-thumb { display: block; width: 84px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; }
.cart-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 40px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.cart-name:hover { text-decoration: underline; }
.cart-option { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.cart-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.cart-price { text-align: right; }
.cart-price del { display: block; font-size: 13px; color: var(--ink-3); }
.cart-price strong { font-size: 16px; font-weight: 800; }
.cart-remove { position: absolute; top: 8px; right: -8px; color: var(--ink-3); }
.cart-remove .ico { width: 18px; height: 18px; }

.summary { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.summary h2 { margin-bottom: 14px; font-size: 18px; font-weight: 800; }
.ship-progress { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--point-faint); font-size: 13px; font-weight: 700; color: var(--point-ink); }
.ship-progress .progress { margin-top: 8px; }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; color: var(--ink-2); }
.summary-row .minus { color: var(--sale); }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; }
.summary-total strong { font-size: 24px; font-weight: 800; }
.summary-note { margin-top: 10px; font-size: 12px; text-align: center; color: var(--ink-3); }

/* ---------- 푸터 ---------- */
.site-footer { margin-top: 48px; padding: 36px 0 40px; background: var(--surface); font-size: 13px; color: var(--ink-3); }
.footer-inner { display: grid; gap: 20px; }
.footer-logo { font-size: 24px; min-height: 0; }
.footer-brand p { margin-top: 6px; }
.footer-cs strong { display: block; margin: 2px 0; font-size: 20px; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links button { min-height: 36px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.footer-links button:hover { color: var(--ink); text-decoration: underline; }
.footer-info { line-height: 1.8; }

/* ---------- 토스트 ---------- */
.toast-wrap {
  position: fixed; left: 50%; z-index: 200;
  bottom: calc(var(--bottom-nav-h) + 14px + env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 32px)); transform: translateX(-50%);
  display: grid; gap: 8px; pointer-events: none;
}
body.no-bottom-nav .toast-wrap { bottom: calc(86px + env(safe-area-inset-bottom)); }
.toast {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(28, 31, 26, .94); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); pointer-events: auto;
  animation: toast-in .3s var(--ease);
}
.toast a { color: var(--point); font-weight: 700; white-space: nowrap; }
.toast.is-leaving { animation: toast-out .2s ease forwards; }

/* ---------- 애니메이션 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================
   태블릿 (768px~)
   ========================================================== */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .hero-slide { flex-basis: calc(50% - 6px); min-height: 360px; padding: 32px 28px; }
  .hero-title { font-size: 30px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 32px 14px; }
  .h-scroll { grid-auto-columns: 28%; }
  .gallery-thumbs button { width: 76px; }
  .info-images { grid-template-columns: 1fr 1fr; }
  .cart-item { grid-template-columns: auto 100px 1fr; gap: 16px; }
  .cart-thumb { width: 100px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links, .footer-info, .footer-copy { grid-column: 1 / -1; }
}

/* ==========================================================
   데스크톱 (1024px~)
   ========================================================== */
@media (min-width: 1024px) {
  body, body.no-bottom-nav { padding-bottom: 0; }
  .bottom-nav, .buy-bar { display: none; }
  .toast-wrap, body.no-bottom-nav .toast-wrap { bottom: 32px; }

  .header-top {
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "menu logo search actions";
    gap: 16px; padding-top: 14px; padding-bottom: 10px;
  }
  .menu-btn { display: grid; }
  .logo { font-size: 32px; }
  .search { width: 100%; max-width: 480px; justify-self: center; }
  .search input { height: 48px; }
  .search button { width: 40px; height: 40px; }
  .hide-mobile { display: flex; }
  .action { min-width: 60px; min-height: 52px; padding: 4px 6px; gap: 2px; }
  .action-label { display: block; }
  .badge { top: 0; right: 10px; }

  .gnb-list { overflow: visible; gap: 6px; }
  .gnb-item { position: relative; }
  .gnb-link { padding: 10px 12px 14px; }
  .gnb-link.is-active::after { left: 12px; right: 12px; }
  .mega {
    display: block; position: absolute; top: 100%; left: 50%; z-index: 60;
    min-width: 168px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
    transition: opacity .18s, transform .18s var(--ease), visibility .18s;
  }
  .gnb-item:hover .mega, .gnb-item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .mega a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
  .mega a:hover { background: var(--point-faint); color: var(--point-ink); }

  .section { padding-top: 44px; padding-bottom: 44px; }
  .section-title { font-size: 24px; }
  .hero { padding-top: 24px; }
  .hero-slide { min-height: 400px; padding: 40px 36px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-nav { display: grid; }
  .quick-grid { grid-template-columns: repeat(10, 1fr); }
  .quick-icon { width: 72px; height: 72px; border-radius: 26px; }
  .quick-icon svg { width: 46px; height: 46px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 40px 18px; }
  .h-scroll { grid-auto-columns: calc((100% - 48px) / 5); }

  .page-head { padding-top: 28px; }
  .page-title { font-size: 30px; }

  .detail { grid-template-columns: 1.05fr 1fr; align-items: start; gap: 48px; padding-top: 28px; }
  .detail-info { position: sticky; top: calc(var(--header-h) + 20px); }
  .detail-name { font-size: 26px; }
  .buy-actions { display: grid; }
  .detail-tabs { margin-top: 64px; }

  .cart-layout { grid-template-columns: 1fr 360px; align-items: start; gap: 32px; }
  .summary { position: sticky; top: calc(var(--header-h) + 20px); }

  .footer-inner { grid-template-columns: 1.2fr 1fr 1.4fr; }
  .footer-links { grid-column: auto; }
}

@media (min-width: 1200px) {
  .grid--list { grid-template-columns: repeat(5, 1fr); }
}

/* ==========================================================
   폼 · 로그인 · 회원가입
   ========================================================== */
.form-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.label { font-size: 14px; font-weight: 700; }
.label .req { color: var(--sale); margin-left: 2px; }
.input {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: #fff;
  font-size: 16px; /* iOS 확대 방지 */
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #9AA095; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--point-soft); }
.input[aria-invalid="true"] { border-color: var(--sale); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px #FFE4E9; }
.input:disabled, .input[readonly] { background: var(--surface); color: var(--ink-2); }
select.input {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1F1A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 14px;
}
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap .icon-btn { position: absolute; top: 3px; right: 3px; color: var(--ink-3); }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.input-row .btn { height: 50px; flex-shrink: 0; }
.field-error { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--sale); }
.field-error:empty { display: none; }
.field-error .ico { width: 15px; height: 15px; }
.field-hint { font-size: 13px; color: var(--ink-3); }

.auth { max-width: 460px; margin: 0 auto; padding: 28px 0 8px; }
.auth-head { margin-bottom: 26px; text-align: center; }
.auth-head .logo { justify-content: center; font-size: 40px; }
.auth-head h1 { margin-top: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.auth-head p { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.auth-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.auth-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.auth-links a:hover { color: var(--ink); text-decoration: underline; }
.auth-links strong a { color: var(--point-ink); font-weight: 800; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 13px; color: var(--ink-3); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-note { display: flex; gap: 8px; margin-top: 20px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--point-faint); font-size: 13px; line-height: 1.5; color: var(--point-ink); }
.demo-note .ico { width: 18px; height: 18px; margin-top: 1px; }
.welcome-gift { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--ink); color: #fff; font-size: 14px; }
.welcome-gift .promo-ico { width: 40px; height: 40px; }
.welcome-gift b { color: var(--point); }

.pw-rules { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.pw-rules li { display: inline-flex; align-items: center; gap: 3px; transition: color .15s; }
.pw-rules .ico { width: 14px; height: 14px; }
.pw-rules .ok { color: var(--point-ink); }

.agree-box { border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 4px 14px; }
.agree-box .check { width: 100%; }
.agree-all { border-bottom: 1px solid var(--line); font-weight: 800; }
.agree-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agree-item .check { font-size: 14px; font-weight: 500; }
.agree-item .text-btn { font-size: 13px; text-decoration: underline; }
.opt { color: var(--ink-3); }

/* ==========================================================
   마이페이지
   ========================================================== */
.my-layout { display: grid; gap: 16px; padding: 18px 0 8px; }
.my-side, .my-main { display: grid; gap: 16px; align-content: start; min-width: 0; }
/* 모바일: 프로필 → 주문 내역 → 메뉴 순서 (데스크톱은 왼쪽 사이드바) */
.my-layout > .my-side { display: contents; }
.my-side > nav { order: 2; }
.my-layout > .my-main { order: 1; }
.profile { padding: 22px 20px 20px; border-radius: var(--radius-xl); background: var(--point); }
.profile-top { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--point); font-size: 22px; font-weight: 800; }
.profile-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.profile-name small { font-size: 15px; font-weight: 600; }
.profile-email { font-size: 13px; color: var(--ink-2); word-break: break-all; }
.grade { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: var(--pill); background: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; padding: 6px 0; border-radius: var(--radius-lg); background: #fff; }
.stats > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 4px; border-radius: var(--radius-md); text-align: center; }
.stats a:hover { background: var(--surface); }
.stats strong { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--ink-2); }

.panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; min-width: 0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; font-size: 18px; font-weight: 800; }
.panel-title .more-link { min-height: 32px; }

.status-strip { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.status-strip li { position: relative; display: grid; gap: 2px; }
.status-strip li + li::before { content: ''; position: absolute; left: -4px; top: 10px; width: 8px; height: 8px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); }
.status-strip strong { font-size: 24px; font-weight: 800; color: var(--line-strong); }
.status-strip .has strong { color: var(--ink); }
.status-strip span { font-size: 13px; color: var(--ink-2); }

.my-menu { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.my-menu li + li { border-top: 1px solid var(--line); }
.my-menu a, .my-menu button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; font-size: 15px; font-weight: 600; text-align: left; transition: background-color .15s; }
.my-menu a:hover, .my-menu button:hover { background: var(--surface); }
.my-menu .ico:first-child { width: 20px; height: 20px; color: var(--ink-2); }
.my-menu .grow { flex: 1; }
.my-menu .ico:last-child { width: 16px; height: 16px; color: var(--ink-3); }
.my-menu .meta { font-size: 13px; font-weight: 700; color: var(--point-ink); }

.order-list { display: grid; gap: 12px; }
.order-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.order-head b { font-size: 15px; }
.order-head span { font-size: 13px; color: var(--ink-3); }
.status-badge { padding: 3px 10px; border-radius: var(--pill); background: var(--point-soft); color: var(--point-ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-badge.is-cancel { background: var(--surface); color: var(--ink-3); }
.order-items { display: grid; gap: 10px; }
.order-items li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; }
.mini-thumb { width: 56px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; }
.mini-thumb .art svg { width: 80%; height: 80%; }
.order-items .name { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; }
.order-items .opt { font-size: 13px; }
.order-items .price { font-size: 14px; font-weight: 800; white-space: nowrap; }
.order-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 14px; color: var(--ink-2); }
.order-foot strong { font-size: 17px; color: var(--ink); }
.order-card.is-cancel .order-items { opacity: .55; }

/* ==========================================================
   쿠폰함
   ========================================================== */
.coupon-register { margin-top: 4px; }
.coupon-list { display: grid; gap: 14px; }
.ticket { position: relative; display: grid; grid-template-columns: 96px 1fr; min-height: 112px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.ticket::before, .ticket::after { content: ''; position: absolute; left: 87px; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket::before { top: -10px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -10px; clip-path: inset(0 0 50% 0); }
.ticket-value { display: grid; place-items: center; padding: 8px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); background: var(--point); font-size: 28px; font-weight: 800; letter-spacing: -0.03em; text-align: center; line-height: 1.1; }
.ticket-value small { font-size: 15px; font-weight: 800; }
.ticket-value.is-amount { font-size: 20px; }
.ticket-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; border-left: 2px dashed var(--line-strong); min-width: 0; }
.ticket-info { flex: 1 1 160px; min-width: 0; }
.ticket-value span { white-space: nowrap; }
.ticket-name { font-size: 16px; font-weight: 800; }
.ticket-desc { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.dday { padding: 1px 7px; border-radius: 6px; background: var(--surface); font-weight: 800; }
.dday.is-soon { background: #FFE4E9; color: #BE123C; }
.dday.gift { background: var(--point-soft); color: var(--point-ink); }
.ticket.is-off .ticket-value { background: var(--line); color: var(--ink-3); }
.ticket.is-off .ticket-name { color: var(--ink-3); }
.stamp { flex-shrink: 0; padding: 4px 10px; border: 1.5px solid var(--ink-3); border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--ink-3); transform: rotate(-6deg); }

/* ==========================================================
   주문서
   ========================================================== */
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps li + li::before { content: ''; width: 16px; height: 1.5px; background: var(--line-strong); }
.steps .num { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-size: 12px; font-weight: 800; }
.steps .num .ico { width: 13px; height: 13px; stroke-width: 3; }
.steps .done .num { background: var(--point-soft); color: var(--point-ink); }
.steps [aria-current] { color: var(--ink); font-weight: 800; }
.steps [aria-current] .num { background: var(--ink); color: var(--point); }

.order-main { display: grid; gap: 12px; min-width: 0; }
.form-grid { display: grid; gap: 14px; }
.order-lines { display: grid; gap: 12px; }
.order-lines li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; }
.point-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.point-row b { color: var(--ink); }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-option { position: relative; }
.pay-option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pay-option span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 78px; padding: 12px 8px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700; text-align: center; transition: border-color .15s, background-color .15s;
}
.pay-option:hover span { border-color: var(--ink-3); }
.pay-option input:checked + span { border-color: var(--ink); background: var(--point-faint); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-option input:focus-visible + span { outline: 3px solid var(--point-strong); outline-offset: 2px; }
.pay-note { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface); font-size: 13px; color: var(--ink-2); }

.summary .check { margin-top: 4px; font-size: 14px; align-items: flex-start; }
.summary .check input { margin-top: 1px; }
.summary .field-error { margin: -2px 0 10px 32px; }
.earn { margin-top: 6px; font-size: 13px; color: var(--point-ink); font-weight: 700; text-align: right; }

.complete { max-width: 520px; margin: 0 auto; padding: 40px 0 8px; text-align: center; }
.complete-ico { width: 80px; height: 80px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--point); animation: pop .5s var(--ease); }
.complete-ico .ico { width: 40px; height: 40px; }
.complete h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.complete > p { margin-top: 6px; color: var(--ink-2); }
.complete-info { display: grid; gap: 10px; margin: 26px 0; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); text-align: left; font-size: 14px; }
.complete-info div { display: flex; justify-content: space-between; gap: 16px; }
.complete-info dt { color: var(--ink-3); white-space: nowrap; }
.complete-info dd { margin: 0; font-weight: 600; text-align: right; }
.complete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ==========================================================
   상세: 모델 정보 · 소재/핏 · 리뷰 필터
   ========================================================== */
.model-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 14px; color: var(--ink-2); }
.model-info .ico { width: 18px; height: 18px; color: var(--point-ink); }
.model-info > span { flex: 1; min-width: 180px; }
.model-info b { color: var(--ink); }
.model-info a { font-size: 13px; font-weight: 700; color: var(--point-ink); text-decoration: underline; text-underline-offset: 3px; }

.sub-title { margin: 32px 0 12px; font-size: 17px; font-weight: 800; }
.detail-blocks { display: grid; gap: 16px; }
.detail-img { width: 100%; border-radius: var(--radius-lg); }
.fabric-table td { white-space: normal; }
.scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 320px; }
.scale span { padding: 5px 4px; border-radius: 8px; background: var(--surface); font-size: 13px; text-align: center; color: var(--ink-3); }
.scale .on { background: var(--ink); color: var(--point); font-weight: 800; }

.fit-summary { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.fit-summary > p { font-size: 15px; }
.fit-bar { display: flex; gap: 3px; height: 10px; margin: 12px 0 10px; border-radius: 5px; overflow: hidden; }
.fit-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); }
.fit-legend li { display: inline-flex; align-items: center; gap: 6px; }
.fit-legend i { width: 10px; height: 10px; border-radius: 3px; }
.fit-small { background: #F9A8B8; }
.fit-true { background: var(--point-strong); }
.fit-big { background: #93C5FD; }
.review-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 4px; }
.review-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.fit-tag { padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.fit-tag--true { background: var(--point-soft); color: var(--point-ink); }
.fit-tag--small { background: #FFE4E9; color: #BE123C; }
.fit-tag--big { background: #DBEAFE; color: #1D4ED8; }

/* ==========================================================
   목록 필터
   ========================================================== */
.toolbar { flex-wrap: wrap; }
.filter-count { color: var(--sale); font-weight: 800; }
.chip[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--point); }
.chip[aria-expanded="true"] .filter-count { color: #fff; }
.filter-panel { display: grid; gap: 18px; margin: -4px 0 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); animation: rise .25s var(--ease); }
.filter-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.filter-group legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 800; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-options .swatch-dot { width: 18px; height: 18px; }
.filter-options .chip[aria-pressed="true"] .swatch-dot { box-shadow: 0 0 0 2px var(--point); }
.filter-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.filter-actions .ico { width: 18px; height: 18px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 16px; }
.active-filters:empty { display: none; }
.chip-sm { height: 34px; padding: 0 10px 0 12px; font-size: 13px; background: var(--point-faint); border-color: var(--point-soft); color: var(--point-ink); }
.chip-sm .ico { width: 14px; height: 14px; }
.chip-sm:hover { border-color: var(--point-ink); color: var(--point-ink); }

/* ==========================================================
   마이페이지 추가 · 교환/반품
   ========================================================== */
.h-scroll--panel { grid-auto-columns: 44%; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.order-actions .text-btn { font-size: 13px; }
.earned { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--point-ink); }
.earned .ico { width: 16px; height: 16px; }
.status-badge.is-claim { background: #FFF1E0; color: #9A4A00; }
.panel-title .status-badge { font-size: 12px; }
.claim-note { display: flex; gap: 8px; padding: 12px 14px; border-radius: var(--radius-md); background: #FFF7ED; font-size: 13px; line-height: 1.6; color: #7C3A00; }
.claim-note .ico { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }

.pay-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.pay-option small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.claim-items { display: grid; gap: 4px; }
.claim-item + .claim-item { border-top: 1px solid var(--line); padding-top: 4px; }
.claim-line { width: 100%; align-items: center; gap: 12px; padding: 8px 0; }
.claim-info { display: grid; gap: 2px; min-width: 0; }
.claim-info .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; }
.claim-info .opt { font-size: 13px; font-weight: 500; }
.claim-extra { display: grid; gap: 12px; padding: 0 0 12px 34px; }
.claim-extra:not(:has(.field:not([hidden]))) { display: none; }
.textarea { height: auto; min-height: 112px; padding: 12px 16px; line-height: 1.6; resize: vertical; }
.photo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-add { width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color .15s; }
.photo-add:hover { border-color: var(--ink-3); }
.photo-row:focus-within .photo-add { outline: 3px solid var(--point-strong); outline-offset: 2px; }
.photo-previews { display: flex; gap: 8px; }
.photo-previews img { width: 76px; height: 76px; border-radius: var(--radius-md); object-fit: cover; }
.pickup { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.pickup .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--point-ink); }
.pickup b { color: var(--ink); }
.summary-hint { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* ==========================================================
   품절 · 재입고 · 리뷰 쓰기
   ========================================================== */
.soldout-cover {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .62); font-size: 15px; font-weight: 800; color: var(--ink-2); letter-spacing: .08em;
}
.soldout-note { display: flex; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: #FFE4E9; font-size: 14px; color: #9F1239; }
.soldout-note .ico { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }
.restock-btn { grid-column: span 2; }
.img-missing { visibility: hidden; }
.sale-text { color: var(--sale); }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

.review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.review-photos .review-photo { margin-top: 0; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.review-head .tag { font-size: 11px; }
.seller-reply { margin-top: 8px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.seller-reply b { display: block; margin-bottom: 2px; font-size: 13px; color: var(--point-ink); }
p.seller-reply b { display: inline; margin-right: 6px; }

.review-link { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--point-ink); text-decoration: underline; text-underline-offset: 3px; }
.review-link .ico { width: 14px; height: 14px; }
.review-link.is-done { color: var(--ink-3); }
.claim-note.is-done { background: var(--point-faint); color: var(--point-ink); }
.claim-note.is-rejected { background: #FFE4E9; color: #9F1239; }

.my-review-list { display: grid; gap: 12px; }
.my-review { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.my-review .name { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; }
.my-review .opt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.my-review .stars .ico { width: 14px; height: 14px; }
.my-review-body { display: grid; gap: 6px; min-width: 0; }
.my-review-text { font-size: 14px; }
.my-review-actions { display: flex; gap: 6px; margin-top: 4px; }

.narrow-page { max-width: 680px; margin-left: auto; margin-right: auto; }
.review-form { display: grid; gap: 12px; }
.review-product { display: flex; align-items: center; gap: 12px; }
.review-product .name { font-size: 15px; font-weight: 700; }
.review-product .opt { font-size: 13px; }
.plain-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.plain-fieldset legend { padding: 0; }
.rating-stars { display: flex; gap: 4px; }
.rating-stars label { cursor: pointer; color: var(--line-strong); transition: color .12s, transform .12s; }
.rating-stars label .ico { width: 40px; height: 40px; }
.rating-stars label.on { color: var(--star); }
.rating-stars label:hover { transform: scale(1.08); }
.rating-stars label:has(input:focus-visible) { outline: 3px solid var(--point-strong); outline-offset: 2px; border-radius: 8px; }
.rating-label { min-height: 22px; margin-top: 6px; font-size: 15px; font-weight: 700; }
.pay-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.photo-thumb { position: relative; width: 76px; height: 76px; }
.photo-thumb img { width: 100%; height: 100%; border-radius: var(--radius-md); object-fit: cover; }
.photo-remove { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }
.photo-remove .ico { width: 14px; height: 14px; }
.photo-remove::after { content: ''; position: absolute; inset: -8px; } /* 터치 영역 넓히기 */
.review-points { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--point-faint); font-size: 14px; color: var(--point-ink); }
.review-points .ico { width: 18px; height: 18px; }
.review-submit { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }

/* ==========================================================
   배너 이미지 · 기획전
   이미지 배너: 모바일·태블릿은 앱 이미지(1:1), PC(1024px~)는 웹 이미지(4:3)
   ========================================================== */
.hero-slide { aspect-ratio: 1 / 1; min-height: 300px; }
.hero-slide.has-image { padding: 0; background: var(--surface); }
.hero-slide.has-overlay { padding: 28px 24px; }
.hero-slide.has-overlay .hero-text, .hero-slide.has-overlay .hero-cta { position: relative; z-index: 1; }
.hero-slide.has-overlay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, 0) 55%); }
.hero-slide.has-overlay .hero-text, .hero-slide.has-overlay .hero-cta { z-index: 2; }
.promo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-img--web { display: none; }

.expo-hero { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius-xl); background: var(--slide-bg); }
.expo-hero-text { position: absolute; left: 22px; right: 40%; bottom: 22px; z-index: 1; }
.expo-title { margin-top: 10px; font-size: 24px; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; }
.expo-hero-art { position: absolute; right: -4%; bottom: -10%; width: 46%; transform: rotate(-8deg); filter: drop-shadow(0 14px 20px rgba(28, 31, 26, .12)); }
.expo-desc { margin-top: 18px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.expo-period { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: var(--pill); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.expo-period .ico { width: 16px; height: 16px; }
.expo-row { grid-auto-columns: 82%; }
.expo-card { display: grid; gap: 10px; }
.expo-card .expo-hero { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); }
.expo-card .expo-hero-text { display: none; }
.expo-card .promo-img--web { display: none !important; }
.expo-card .promo-img--app { display: block !important; }
.expo-card .expo-hero-art { width: 52%; right: 4%; bottom: -14%; }
.expo-card-body { display: grid; gap: 2px; }
.expo-card-body b { font-size: 16px; }
.expo-card-body span { font-size: 13px; color: var(--ink-2); }
.expo-card-body small { font-size: 12px; color: var(--ink-3); }
.expo-card:hover .expo-card-body b { text-decoration: underline; }
.expo-grid { display: grid; gap: 20px; }

/* ==========================================================
   회원정보 · 배송지 · 약관
   ========================================================== */
a.text-btn { display: inline-flex; align-items: center; }
.account-stack { display: grid; gap: 14px; padding-bottom: 8px; }
.form-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 18px; }
.address-list { display: grid; gap: 10px; }
.address-card { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; font-size: 14px; }
.address-card.is-default { border-color: var(--point-strong); box-shadow: inset 0 0 0 1px var(--point-strong); }
.address-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.muted-text { color: var(--ink-3); }
.address-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.code-timer { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 700; color: var(--point-ink); font-variant-numeric: tabular-nums; }
.code-timer.is-over { color: var(--sale); }
.find-steps { justify-content: center; margin: -10px 0 22px; }

.legal { padding-bottom: 24px; }
.legal-date { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.legal .demo-note { margin: 0 0 20px; }
.legal-lead { margin-bottom: 20px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.legal-toc { margin-bottom: 28px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--surface); }
.legal-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; padding-left: 18px; list-style: decimal; font-size: 14px; }
.legal-toc a { display: inline-block; padding: 4px 0; color: var(--ink-2); }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal section { padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h2 { margin-bottom: 10px; font-size: 18px; font-weight: 800; }
.legal section > p, .legal section > ol { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.legal section > ol { display: grid; gap: 6px; padding-left: 20px; list-style: decimal; }
.legal .table-wrap { margin-top: 4px; }
.legal .spec-table td { white-space: normal; }
.legal-foot { padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }

@media (min-width: 768px) {
  .expo-hero { aspect-ratio: 3 / 1; }
  .expo-hero .promo-img--web { display: block; }
  .expo-hero .promo-img--app { display: none; }
  .expo-hero-text { left: 40px; bottom: 36px; right: 45%; }
  .expo-title { font-size: 32px; }
  .expo-hero-art { width: 30%; right: 4%; bottom: -24%; }
  .expo-row { grid-auto-columns: 46%; }
  .expo-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .hero-slide { aspect-ratio: 4 / 3; }
  .hero .promo-img--web { display: block; }
  .hero .promo-img--app { display: none; }
  .hero-slide.has-overlay { padding: 40px 36px; }
  .expo-row { grid-auto-columns: calc((100% - 24px) / 3); }
  .expo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 479px) {
  .form-grid.three { grid-template-columns: 1fr 1fr; }
  .form-grid.three .field:last-child { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .h-scroll--panel { grid-auto-columns: 30%; }
}
@media (min-width: 1024px) {
  .h-scroll--panel { grid-auto-columns: calc((100% - 36px) / 4); }
}

@media (min-width: 768px) {
  .auth { padding-top: 48px; }
  .auth-card { padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid.two .wide { grid-column: 1 / -1; }
  .coupon-list { grid-template-columns: 1fr 1fr; }
  .pay-grid { grid-template-columns: repeat(4, 1fr); }
  .panel { padding: 24px; }
}

@media (min-width: 1024px) {
  .my-layout { grid-template-columns: 320px 1fr; align-items: start; gap: 28px; padding-top: 28px; }
  .my-layout > .my-side { display: grid; position: sticky; top: calc(var(--header-h) + 20px); }
  .my-layout > .my-main { order: 0; }
}
