@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/* =========================================================
   REITEN — design tokens
   ========================================================= */
:root {
  --paper: #efede7;
  --paper-2: #f6f5f1;
  --paper-3: #e7e4db;
  --ink: #15150f;
  --ink-soft: #3a382f;
  --muted: #6b6758;
  --line: #d9d5c9;
  --line-soft: #e4e0d6;
  --field: #ffffff;
  --shade: #dedad0;
  /* 제품컷 배경. 사진의 흰 배경과 곱하기(multiply)로 정확히 맞아떨어지는 값 */
  --plate: #fbfaf8;
  --danger: #9a3412;
  --ok: #2f6b3c;

  --sheen-1: rgba(255, 255, 255, 0.9);
  --sheen-2: rgba(210, 214, 220, 0.55);

  --w: min(1320px, 92vw);
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
  --header-h: 62px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t: 0.4s var(--ease);
  --t-slow: 0.8s var(--ease);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;

  color-scheme: light;
}

html[data-theme="night"] {
  --paper: #0c0c0a;
  --paper-2: #141412;
  --paper-3: #1b1a17;
  --ink: #f2f0e9;
  --ink-soft: #cfcbbe;
  --muted: #9a9585;
  --line: #2a2823;
  --line-soft: #201f1b;
  --field: #171613;
  --shade: #1f1e1a;
  --plate: #ecebe5;
  color-scheme: dark;
}

/* =========================================================
   base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--t), color var(--t);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap { width: var(--w); margin-inline: auto; }
.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; top: -60px; left: 8px; z-index: 1000;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 8px; }

/* type ------------------------------------------------- */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.display {
  font-size: clamp(2.6rem, 8.4vw, 6.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0;
}
h1, h2, h3, h4 { letter-spacing: -0.035em; font-weight: 650; margin: 0; line-height: 1.12; }
.h-xl { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
.h-lg { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.h-md { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.lede { font-size: clamp(0.95rem, 1.4vw, 1.1rem); color: var(--ink-soft); line-height: 1.75; }
.small { font-size: 13px; color: var(--muted); line-height: 1.7; }
.tnum { font-variant-numeric: tabular-nums; }

.script {
  font-family: "Snell Roundhand", "Brush Script MT", cursive;
  font-style: italic;
  letter-spacing: 0;
}

/* reflective silver text — 종이 위에서도 읽히도록 그라파이트 크롬 */
.sheen {
  background: linear-gradient(
    100deg,
    #4c5257 0%, #0e1012 16%, #767c82 32%, #14171a 48%,
    #8d949a 62%, #101315 78%, #575d63 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheenmove 9s linear infinite;
}
html[data-theme="night"] .sheen {
  background-image: linear-gradient(
    100deg,
    #8e9298 0%, #f4f6f8 20%, #9aa0a6 38%, #ffffff 54%, #8b9096 74%, #e9ecef 100%
  );
}
@keyframes sheenmove {
  to { background-position: 250% 0; }
}

/* =========================================================
   buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
}
.btn:hover { transform: translateY(-1px); opacity: 0.88; }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); background: transparent; opacity: 1; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 11px; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }

.link-u {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity var(--t-fast);
}
.link-u:hover { opacity: 0.55; }

/* =========================================================
   header
   ========================================================= */
.hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr__in {
  width: var(--w);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 17px; width: auto; }
html[data-theme="night"] .brand img,
html[data-theme="night"] .logo-invert { filter: invert(1) brightness(1.6); }

.nav { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity var(--t-fast);
  position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink);
}
.hdr__spacer { flex: 1; }
.hdr__tools { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background-color var(--t-fast);
  position: relative;
}
.icon-btn:hover { background: var(--shade); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; }

.lang-wrap { position: relative; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 128px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  padding: 6px;
  display: grid;
  gap: 2px;
  z-index: 90;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink);
  text-align: left;
}
.lang-menu button:hover { background: var(--shade); }
.lang-menu button[aria-current="true"] { font-weight: 650; }
.lang-menu button[aria-current="true"]::after { content: "✓"; opacity: .6; font-weight: 400; }

.cart-count {
  position: absolute;
  top: 3px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  transform: scale(0);
  transition: transform var(--t) ;
}
.cart-count.on { transform: scale(1); }

.burger { display: none; }

/* mobile nav */
.mnav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  z-index: 79;
  padding: 30px var(--gutter);
  display: none;
  flex-direction: column;
  gap: 4px;
}
.mnav.open { display: flex; }
.mnav a {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.04em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
}

/* =========================================================
   hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 84px) 0 clamp(30px, 5vw, 60px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
}
.hero__title { position: relative; z-index: 2; }
.hero__title .display span { display: block; }
.hero__meta { margin-top: 26px; max-width: 42ch; }
.hero__cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* reflective spotlight shot ------------------------------ */
.shot {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform var(--t-slow);
}
/* 야간 모드에서도 사진판만 밝게 유지 (라이트박스처럼) */
html[data-theme="night"] .shot,
html[data-theme="night"] .card__media,
html[data-theme="night"] .line-item__media,
html[data-theme="night"] .thumb {
  border-color: #2f2d28;
}
.shot--contain img { object-fit: contain; padding: 4%; }
.shot__beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t);
  mix-blend-mode: screen;
  background: radial-gradient(
    170px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.35) 40%,
    rgba(255, 255, 255, 0) 72%
  );
}
.shot:hover .shot__beam { opacity: 1; }
.beamable { position: relative; isolation: isolate; }
.beamable:hover .shot__beam { opacity: 1; }
.shot:hover img { transform: scale(1.02); }
.shot__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.shot__hint {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.shot:hover .shot__hint { opacity: 0; }
.shot:not(:hover) .shot__hint { opacity: 0.9; }

/* placeholder (사진 준비중) ------------------------------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 12px,
      color-mix(in srgb, var(--muted) 8%, transparent) 12px 13px
    ),
    var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}
.ph__label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border-radius: 999px;
}

/* =========================================================
   marquee
   ========================================================= */
.marq {
  border-block: 1px solid var(--line-soft);
  padding: 13px 0;
  overflow: hidden;
  background: var(--paper-2);
}
.marq__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marq 38s linear infinite;
}
.marq span {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 44px;
}
.marq span::after { content: "◆"; font-size: 6px; letter-spacing: 0; opacity: 0.5; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marq__track, .sheen { animation: none; }
}

/* =========================================================
   sections
   ========================================================= */
.sec { padding: clamp(52px, 8vw, 110px) 0; }
.sec--tight { padding: clamp(34px, 5vw, 64px) 0; }
.sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(22px, 3vw, 42px);
  flex-wrap: wrap;
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* =========================================================
   product grid
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(16px, 2.4vw, 34px) clamp(14px, 1.6vw, 24px);
}
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.card { display: block; position: relative; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--plate);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 3%;
  mix-blend-mode: multiply;
  transition: transform var(--t-slow);
}
.card:hover .card__media img { transform: scale(1.035); }
.card__badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(6px);
}
.card__body { padding: 14px 2px 0; }
.card__name { font-size: 14px; font-weight: 620; letter-spacing: -0.02em; }
.card__sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card__price { font-size: 13.5px; margin-top: 8px; font-variant-numeric: tabular-nums; font-weight: 600; }
.swatches { display: flex; gap: 5px; margin-top: 9px; }
.sw {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

/* =========================================================
   product detail
   ========================================================= */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.pdp__gallery { display: grid; gap: 10px; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { .pdp__gallery { position: static; } }
.pdp__thumbs { display: flex; gap: 8px; }
.thumb {
  width: 66px; height: 82px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  opacity: 0.55;
  transition: opacity var(--t-fast), border-color var(--t-fast);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.thumb[aria-selected="true"], .thumb:hover { opacity: 1; border-color: var(--ink); }

.pdp__info { padding-top: 6px; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.price { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.opt { margin-top: 26px; }
.opt__label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 10px;
}
.opt__label b { color: var(--ink); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 52px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[disabled] {
  opacity: 0.3;
  text-decoration: line-through;
  pointer-events: none;
}

.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  position: relative;
  transition: transform var(--t-fast);
}
.color-dot:hover { transform: scale(1.08); }
.color-dot[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); height: 42px; }
.qty button { width: 40px; height: 100%; font-size: 16px; color: var(--ink); }
.qty button:hover { background: var(--shade); }
.qty output { width: 44px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }

.buy-row { display: flex; gap: 10px; margin-top: 30px; }
.buy-row .btn { flex: 1; }

.acc { border-top: 1px solid var(--line); margin-top: 38px; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  text-align: left;
}
.acc__btn span:last-child { font-size: 17px; transition: transform var(--t); color: var(--muted); }
.acc__btn[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
.acc__panel { display: none; padding: 0 2px 22px; }
.acc__panel.open { display: block; }

table.spec { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.spec th, table.spec td { padding: 9px 6px; border-bottom: 1px solid var(--line-soft); text-align: center; }
table.spec th { color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
table.spec td:first-child, table.spec th:first-child { text-align: left; }

.notice {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}
.notice b { font-weight: 650; }

/* 라이더 사이즈 가이드 (보호대 착용 시 권장 사이즈) ------- */
.ride-guide {
  margin-top: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--paper-2);
}
.ride-guide__head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; }
.ride-guide__head svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.5; flex: 0 0 auto; }
.ride-guide p { margin-top: 8px; }
.ride-guide table.spec { margin-top: 14px; }
.ride-guide .tbd { color: var(--muted); }

/* =========================================================
   customizer / studio
   ========================================================= */
.studio { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(22px, 3.5vw, 56px); align-items: start; }
@media (max-width: 940px) { .studio { grid-template-columns: 1fr; } }

.stage {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background-color var(--t), border-color var(--t);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
@media (max-width: 940px) { .stage { position: static; } }
.stage.dark {
  background: #0a0a09;
  border-color: #1c1b18;
}
.stage__svg {
  width: 100%;
  height: auto;
  max-height: min(70vh, 660px);
  display: block;
}
.stage__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  transition: border-color var(--t);
}
.stage.dark .stage__bar { border-color: #1c1b18; }
.stage.dark .stage__bar .small { color: #8b8778; }

.stage__bar .small { flex: 1; min-width: 0; }
.toggle {
  flex: none;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  color: var(--muted);
}
.stage.dark .toggle { color: #b9b4a4; }
.toggle__track {
  width: 40px; height: 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper-3);
  position: relative; transition: background-color var(--t-fast), border-color var(--t-fast);
}
.toggle__track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); transition: transform var(--t-fast), background-color var(--t-fast);
}
.toggle[aria-pressed="true"] .toggle__track { background: #f5c34b; border-color: #f5c34b; }
.toggle[aria-pressed="true"] .toggle__track::after { transform: translateX(18px); background: #1a1a16; }

.charm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.charm-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 6px 9px;
  background: var(--paper-2);
  display: grid; justify-items: center; gap: 7px;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}
.charm-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.charm-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--paper-3); }
.charm-btn svg { width: 34px; height: 34px; }
.charm-btn small { font-size: 10.5px; letter-spacing: 0.02em; color: var(--muted); line-height: 1.3; text-align: center; }
.charm-btn[aria-pressed="true"] small { color: var(--ink); }

.summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper-2);
  margin-top: 28px;
}
.summary__row { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; padding: 5px 0; }
.summary__row span:first-child { color: var(--muted); }
.summary__row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; font-size: 15px; font-weight: 650; }
.summary__row .tnum { font-variant-numeric: tabular-nums; }

/* charm swaying */
.charm-hang { transform-origin: 50% 0%; animation: sway 3.6s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: rotate(-4.5deg); }
  50% { transform: rotate(4.5deg); }
}
@media (prefers-reduced-motion: reduce) { .charm-hang { animation: none; } }

/* hoodie svg layers ------------------------------------- */
.stage__svg .fabric,
.stage__svg .hardware,
.stage__svg .reflective,
.stage__svg .reflective-soft,
.stage__svg .beam-bg {
  transition: filter 0.5s var(--ease), opacity 0.5s var(--ease);
}
.stage.dark .stage__svg .fabric { filter: brightness(0.3) saturate(0.55); }
.stage.dark .stage__svg .hardware { filter: brightness(0.42); }
.stage.dark .stage__svg .reflective { filter: url(#glow) brightness(1.5); }
.stage.dark .stage__svg .reflective-soft { filter: url(#glow) brightness(1.15) saturate(1.3); }
.stage.dark .stage__svg .beam-bg { opacity: 1; }
.stage__svg .reflective text { paint-order: stroke; }

.charm-svg { overflow: visible; }

/* =========================================================
   lookbook
   ========================================================= */
.look {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.5vw, 18px);
}
.look figure { margin: 0; grid-column: span 4; }
.look figure.w6 { grid-column: span 6; }
.look figure.w8 { grid-column: span 8; }
.look figure.w12 { grid-column: span 12; }
.look figcaption {
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; justify-content: space-between; gap: 10px;
}
@media (max-width: 780px) {
  .look figure, .look figure.w6, .look figure.w8 { grid-column: span 6; }
  .look figure.w12 { grid-column: span 12; }
}

/* =========================================================
   cart / forms
   ========================================================= */
.checkout { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }

.line-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.line-item__media {
  aspect-ratio: 4/5;
  background: var(--plate);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
}
.line-item__media img { width: 100%; height: 100%; object-fit: contain; padding: 5%; }
.line-item__media svg { width: 62%; height: 62%; }
.line-item__name { font-size: 14px; font-weight: 620; }
.line-item__opts { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.line-item__foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.line-item__right { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; }
.remove { font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); letter-spacing: 0.06em; text-transform: uppercase; }
.remove:hover { color: var(--danger); border-color: var(--danger); }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 7px;
}
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color var(--t-fast);
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 11.5px; margin-top: 5px; display: none; }
.field .err.on { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); }
.checkbox input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--ink); }

/* 파일 업로드 (커스텀 버튼 + 숨김 input) */
.upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field .upload-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; margin-bottom: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: none;
  cursor: pointer; transition: border-color var(--t-fast);
}
.field .upload-btn:hover { border-color: var(--ink); }
.field .upload-btn svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.5; }
.upload-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.upload-filename { color: var(--muted); }
.upload-preview { margin-top: 12px; max-width: 160px; border-radius: var(--radius); display: block; }

/* 인스타그램 리뷰 링크 */
.insta-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.insta-link:hover { border-color: var(--ink); }
.insta-link svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.5; }

/* 리뷰 공감(도움돼요) 버튼 */
.helpful-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast);
}
.helpful-btn:hover { border-color: var(--ink); color: var(--ink); }
.helpful-btn[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--shade); pointer-events: none; }
.helpful-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper-2);
}
.panel--sticky { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { .panel--sticky { position: static; } }

.empty { text-align: center; padding: clamp(50px, 10vw, 110px) 0; }

/* toast */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 130%);
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.45s var(--ease);
  max-width: 90vw;
  text-align: center;
}
.toast.on { transform: translate(-50%, 0); }

/* =========================================================
   footer
   ========================================================= */
.ftr {
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 76px) 0 34px;
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--paper-2);
}
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
@media (max-width: 860px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__top { grid-template-columns: 1fr; } }
.ftr h4 { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr li a { font-size: 13px; color: var(--ink-soft); transition: color var(--t-fast); }
.ftr li a:hover { color: var(--ink); }
.ftr__logo img { height: 20px; margin-bottom: 14px; }
.ftr__legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.9;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* =========================================================
   reveal on scroll
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   관리자 전용 — 초록(grass) 테마 + 로밍 말 애니메이션
   account.html이 profile.role === "admin"을 확인했을 때만
   html[data-admin-theme="grass"]를 붙인다(계정 페이지 한정, 다른 페이지는 영향 없음).
   ========================================================= */
html[data-admin-theme="grass"] {
  --paper: #dde3d3;
  --paper-2: #e4e9da;
  --paper-3: #ced6c0;
  --ink: #1c2b1a;
  --ink-soft: #33422f;
  --muted: #5f6b57;
  --line: #b7c2a8;
  --line-soft: #c7d0ba;
  --field: #f2f4ec;
  --shade: #c4cdb6;
  --ok: #3d5c39;
}
html[data-admin-theme="grass"][data-theme="night"] {
  --paper: #0a0f09;
  --paper-2: #0e140c;
  --paper-3: #141b11;
  --ink: #b9c2ae;
  --ink-soft: #98a28c;
  --muted: #626b58;
  --line: #232b1f;
  --line-soft: #171d14;
  --field: #131a10;
  --shade: #1a2216;
  --ok: #4a6b46;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #2a3a26;
  color: #b9c2ae;
  vertical-align: middle;
}
.admin-badge::before { content: "●"; font-size: 7px; line-height: 1; color: #7c9470; }
.admin-badge[hidden] { display: none; }

/* ---------- 로밍 말 애니메이션(숲길) ---------- */
#admin-horse-scene {
  position: fixed;
  inset: auto 0 0 0;
  height: 0;
  z-index: 40;
  pointer-events: none;
}
.horse-ground {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #33502f, #182b18);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15) inset;
}
.horse-tuft {
  position: fixed;
  bottom: 13px;
  width: 18px; height: 18px;
  color: #7f9271;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}
.horse-tuft--1 { left: 6vw; width: 14px; height: 14px; opacity: .8; }
.horse-tuft--2 { left: 19vw; }
.horse-tuft--3 { left: 27vw; width: 15px; height: 15px; opacity: .85; }
.horse-tuft--4 { left: 38vw; width: 13px; height: 13px; opacity: .75; }
.horse-tuft--5 { left: 54vw; }
.horse-tuft--6 { left: 63vw; width: 16px; height: 16px; opacity: .8; }
.horse-tuft--7 { left: 81vw; width: 14px; height: 14px; opacity: .8; }
.horse-tuft--8 { left: 92vw; width: 15px; height: 15px; opacity: .85; }

.horse-tree {
  position: fixed;
  bottom: 14px;
  color: #162413;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}
.horse-tree--1 { left: 9vw; width: 46px; height: 68px; }
.horse-tree--2 { left: 44vw; width: 38px; height: 56px; color: #1b2e18; }
.horse-tree--3 { left: 71vw; width: 52px; height: 74px; }
.horse-tree--4 { left: 97vw; width: 40px; height: 58px; color: #1b2e18; }

.horse-rig {
  position: fixed;
  bottom: 16px;
  left: 0;
  width: 108px;
  height: 70px;
  animation: horseWalk 28s linear infinite;
  will-change: transform;
}
.horse-rig svg { width: 100%; height: 100%; display: block; overflow: visible; }
.horse-fig { animation: horseBob 0.31s ease-in-out infinite; }
.horse-tail { transform-origin: 23px 32px; animation: horseTailSway 1.3s ease-in-out infinite; }
.horse-legs-back { transform-origin: 45px 58px; animation: horseLegSwing 0.62s linear infinite; }
.horse-legs-front { transform-origin: 128px 58px; animation: horseLegSwing 0.62s linear infinite; animation-delay: -0.31s; }
.horse-body-rotate { transform-origin: 95px 14px; animation: horseGraze 28s linear infinite; }

@keyframes horseWalk {
  0%     { transform: translateX(-15vw); }
  16%    { transform: translateX(15vw); }
  30%    { transform: translateX(15vw); }
  46%    { transform: translateX(50vw); }
  60%    { transform: translateX(50vw); }
  100%   { transform: translateX(118vw); }
}
@keyframes horseGraze {
  0%, 12%   { transform: rotate(0deg) translateY(0); }
  18%, 28%  { transform: rotate(15deg) translateY(5px); }
  34%, 42%  { transform: rotate(0deg) translateY(0); }
  52%, 58%  { transform: rotate(15deg) translateY(5px); }
  64%, 100% { transform: rotate(0deg) translateY(0); }
}
/* 발을 땅에 디딘 채로 몸이 앞으로 나가는 동안(정지 구간, 0~60%)은 천천히 뒤로 끌리듯 회전만 하고,
   회복 구간(60~100%)에서만 살짝 들어올리며 앞으로 빠르게 휘둘러 "달랑거리는" 느낌을 없앤다. */
@keyframes horseLegSwing {
  0%   { transform: rotate(10deg) translateY(0); }
  60%  { transform: rotate(-15deg) translateY(0); }
  78%  { transform: rotate(-6deg) translateY(-4px); }
  100% { transform: rotate(10deg) translateY(0); }
}
@keyframes horseTailSway {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(8deg); }
}
@keyframes horseBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.5px); }
}

@media (prefers-reduced-motion: reduce) {
  #admin-horse-scene { display: none; }
}
@media (max-width: 640px) {
  #admin-horse-scene { display: none; }
}
