/* ══════════════════════════════════════════════════════════════════════
   꼬리날개 — 반려견 의류 쇼핑몰
   윗부분은 공통 뼈대 키트(kit.css) — 동작에 딸린 CSS. 손대지 않는다.
   아랫부분(§ 꼬리날개 디자인)은 00-디자인보드.png / 01-home.png /
   02-페이지시안.png / 06-mobile.png 에서만 가져왔다.
   ══════════════════════════════════════════════════════════════════════ */

/* ── 기본 ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; }
img { -webkit-user-drag: none; user-select: none; }
.frame { display: block; }

/* ── 초점 ─────────────────────────────────────────────────────────── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .75rem 1rem; background: Canvas; color: CanvasText;
}
.skip-link:focus { left: 0; }

/* ── 터치 영역 ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .site-header a, .site-header button,
  .drawer a, .drawer button,
  .dots button, .pager button, .tab {
    min-width: 44px; min-height: 44px;
  }
}

/* ── 가로 넘침 ─────────────────────────────────────────────────────── */
.scroll-x { overflow-x: auto; position: relative; -webkit-overflow-scrolling: touch; }
.clip { overflow: clip; }

/* ── 무JS 완성본 ───────────────────────────────────────────────────── */
.acc-item .acc-panel { display: block; }
.js .acc-item .acc-panel { display: none; }
.js .acc-item.open .acc-panel { display: block; }

.js [role="tabpanel"][hidden] { display: none; }
[role="tabpanel"][hidden] { display: block; }

.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

.js-only { display: none; }
.js .js-only { display: revert; }

/* ── 모션 끔 ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── 모바일 서랍 ───────────────────────────────────────────────────── */
.menu-btn { display: none; }
@media (max-width: 767px) { .menu-btn { display: inline-flex; } }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
  transform: translateX(100%); transition: transform .28s ease;
  z-index: 60; overflow-y: auto;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }

.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgb(38 30 20 / .42);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }

@media (min-width: 768px) { .drawer, .scrim { display: none; } }

/* ── 토스트 ───────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0;
  z-index: 80; pointer-events: none;
  opacity: 0; transition: opacity .25s ease, translate .25s ease;
}
.toast.show { opacity: 1; translate: -50% -6px; }

/* ── 폼 ───────────────────────────────────────────────────────────── */
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree input:focus-visible + label .box { outline: 2px solid currentColor; outline-offset: 2px; }

.spinner {
  display: inline-block; width: 1em; height: 1em; vertical-align: -.125em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: kit-spin .7s linear infinite;
}
@keyframes kit-spin { to { rotate: 360deg; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── 구획 리듬 ─────────────────────────────────────────────────────── */
.section { padding-block: calc(var(--section, 96px) / 2); }
.section-lead { padding-top: var(--section, 96px); }
.section-last { padding-bottom: var(--section, 96px); }


/* ══════════════════════════════════════════════════════════════════════
   § 꼬리날개 디자인 — 색·활자·간격·배치
   버터 / 세이지 / 체리 · Purpose-fit · Asymmetric · Editorial · Split Layout
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* 색 — 00-디자인보드.png 팔레트 표기값 */
  --butter: #FFF6D6;
  --sage: #C7D0B0;
  --cherry: #FF6B7A;

  /* 파생 — 대비를 확보하기 위한 짙은 층 */
  --butter-2: #F7E6B4;
  --butter-3: #EFCE7C;
  --sage-2: #A9B888;
  --sage-ink: #4E5B33;
  --sage-deep: #3A4526;
  --cherry-ink: #D6394B;
  --cherry-soft: #FDECEE;
  --apricot: #EDB577;   /* 디자인보드 GRAPHIC ELEMENT 의 강아지 실루엣 색 */

  /* 중립 */
  --paper: #FAF8F3;
  --paper-2: #F3F0E6;
  --card: #FFFFFF;
  --ink: #26261F;
  --ink-2: #55554A;
  --ink-3: #7C7C6D;
  --line: #E6E1D2;
  --line-2: #D5CFBC;

  /* 의미색 — 색만으로 상태를 전달하지 않는다(글자·아이콘 병기) */
  --ok-bg: #EDF2E2;   --ok-ink: #3F5023;
  --warn-bg: #FDF2DF; --warn-ink: #8A5A11;
  --stop-bg: #FDECEE; --stop-ink: #A8283A;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --pill: 999px;

  --shadow-1: 0 1px 2px rgb(60 52 34 / .05), 0 6px 18px rgb(60 52 34 / .05);
  --shadow-2: 0 2px 6px rgb(60 52 34 / .07), 0 18px 40px rgb(60 52 34 / .08);

  --wrap: 1200px;
  --gut: 24px;
  --section: 92px;

  --serif: "Noto Sans KR", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --sans: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, -apple-system, sans-serif;
}

@media (max-width: 900px) { :root { --section: 68px; --gut: 18px; } }
@media (max-width: 520px) { :root { --section: 54px; --gut: 15px; } }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: -.01em;
}

a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 900; line-height: 1.3; letter-spacing: -.03em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - var(--gut) * 2, 860px); margin-inline: auto; }

.skip-link { background: var(--sage-ink); color: #fff; border-radius: 0 0 var(--radius) 0; font-weight: 700; }

/* ── 아이콘 ─────────────────────────────────────────────────────────── */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 22px; height: 22px; flex: none; display: inline-block;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 17px; height: 17px; }
.ico-lg { width: 30px; height: 30px; stroke-width: 1.5; }

/* ── 로고 ──────────────────────────────────────────────────────────── */
.brand {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--cherry-ink);
  font-family: var(--serif); font-weight: 900; font-size: 26px;
  letter-spacing: -.055em; line-height: 1;
}
.brand .wing { width: 26px; height: 20px; flex: none; }
.brand small {
  display: block; font-family: var(--sans); font-size: 9px; font-weight: 700;
  letter-spacing: .22em; color: var(--ink-3); margin-top: 3px;
}

/* ── 헤더 (01-home.png: 유틸바 → 로고·검색·아이콘 → 카테고리 내비) ──── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: 0 6px 20px rgb(60 52 34 / .07); }

.util {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 12px;
}
.util-inner {
  width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto;
  display: flex; gap: 18px; align-items: center; min-height: 34px;
}
.util a { color: var(--ink-2); text-decoration: none; }
.util a:hover { color: var(--cherry-ink); }

.header-inner {
  width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 14px; padding-block: 12px;
}
.header-inner .brand { grid-column: 2; justify-self: center; }
.header-left { display: flex; align-items: center; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.search {
  display: flex; align-items: center; gap: 6px;
  background: var(--paper-2); border: 1px solid var(--line-2);
  border-radius: var(--pill); padding: 5px 6px 5px 15px;
  width: min(260px, 100%);
}
.search input {
  border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink);
  width: 100%; min-width: 0; padding: 4px 0;
}
.search input::placeholder { color: var(--ink-3); }
.search-go {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--sage-ink); color: #fff; text-decoration: none;
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink-2); text-decoration: none; background: none; border: 0;
  position: relative; cursor: pointer;
}
.icon-btn:hover { background: var(--paper-2); color: var(--cherry-ink); }
.cart-count {
  position: absolute; top: 3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--pill); background: var(--cherry-ink); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 17px; text-align: center;
}

.catnav { border-top: 1px solid var(--line); background: #fff; }
.catnav-inner {
  width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto;
  display: flex; justify-content: center; gap: 34px; flex-wrap: wrap;
}
.catnav a {
  display: inline-block; padding: 11px 2px; font-size: 14.5px; font-weight: 700;
  color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent;
}
.catnav a:hover { color: var(--cherry-ink); }
.catnav a[aria-current] { color: var(--sage-ink); border-bottom-color: var(--sage-ink); }

@media (max-width: 767px) {
  .util, .catnav, .header-left { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; padding-block: 8px; }
  .header-inner .brand { grid-column: 2; justify-self: start; font-size: 22px; }
  .header-right { gap: 0; }
  .header-right .icon-btn.hide-sm { display: none; }
}

/* ── 서랍 ──────────────────────────────────────────────────────────── */
.drawer { background: var(--paper); box-shadow: -12px 0 40px rgb(60 52 34 / .18); padding: 16px 18px 32px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer-close { background: none; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.drawer-nav { display: flex; flex-direction: column; padding-block: 8px; }
.drawer-nav a {
  display: flex; align-items: center; padding: 12px 2px; text-decoration: none;
  font-size: 17px; font-weight: 800; border-bottom: 1px solid var(--line);
}
.drawer-nav a[aria-current] { color: var(--sage-ink); }
.drawer-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 4px; }
.drawer-sub a {
  padding: 8px 13px; border-radius: var(--pill); background: #fff;
  border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center;
}
.drawer-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; padding: 14px; border-radius: var(--pill);
  background: var(--cherry-ink); color: #fff; font-weight: 800; text-decoration: none;
}
.drawer-tel { margin-top: 12px; font-size: 14px; color: var(--ink-2); text-align: center; }
.drawer-tel a { font-weight: 800; color: var(--sage-ink); text-decoration: none; }

/* ── 단추 ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 24px; border-radius: var(--pill);
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: -.02em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-cherry { background: var(--cherry-ink); color: #fff; }
.btn-cherry:hover { background: #C22F41; }
.btn-sage { background: var(--sage-ink); color: #fff; }
.btn-sage:hover { background: var(--sage-deep); }
.btn-line { background: #fff; color: var(--sage-ink); border-color: var(--sage-2); }
.btn-line:hover { background: var(--ok-bg); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .62; pointer-events: none; }

/* ── 구획 머리 ─────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .18em;
  color: var(--sage-ink); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--sage-2); }
.sec-title { font-size: clamp(26px, 4.2vw, 40px); margin-top: 12px; }
.sec-lead { margin-top: 12px; color: var(--ink-2); font-size: 16px; max-width: 56ch; }

/* ── 히어로 (01-home.png: 좌 버터판 + 찢긴 가장자리 + 우 사진) ───────── */
.hero { background: var(--paper); padding-block: 22px 0; }
.hero-stage {
  position: relative; overflow: clip;
  border-radius: var(--radius-xl);
  background: linear-gradient(100deg, var(--butter) 0%, var(--butter) 46%, var(--butter-2) 100%);
}
.hero-slide { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; min-height: 430px; }
.js .hero-slide[hidden] { display: none; }
.hero-copy { padding: 54px clamp(22px, 4vw, 56px) 46px; align-self: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border-radius: var(--pill); padding: 6px 14px;
  font-size: 12px; font-weight: 800; color: var(--cherry-ink);
  box-shadow: var(--shadow-1);
}
.hero-title {
  margin-top: 18px; font-size: clamp(34px, 5.6vw, 58px); color: var(--sage-ink);
  line-height: 1.16; letter-spacing: -.045em;
}
.hero-sub { margin-top: 16px; font-size: clamp(15px, 1.6vw, 17.5px); color: var(--ink-2); line-height: 1.72; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* 01-home.png 의 「찢은 종이」 경계 — 거의 수직인 지그재그 */
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 7% 100%, 12% 88%, 5% 76%, 11% 64%, 4% 52%, 12% 40%, 5% 28%, 12% 16%);
}
.hero-badge {
  position: absolute; left: -34px; top: 46px; z-index: 2;
  width: 92px; height: 92px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-2);
  display: grid; place-content: center; text-align: center;
  font-size: 11px; font-weight: 800; color: var(--cherry-ink); line-height: 1.5;
}
.hero-badge b { display: block; font-size: 13px; letter-spacing: .06em; }

.hero-dots { display: flex; align-items: center; gap: 6px; padding: 0 clamp(22px, 4vw, 56px) 26px; }
.hero-dots button {
  background: none; border: 0; cursor: pointer; font: inherit;
  font-size: 12.5px; font-weight: 800; color: var(--ink-3); letter-spacing: .1em;
  padding: 10px 8px; position: relative;
}
.hero-dots button[aria-current] { color: var(--sage-ink); }
.hero-dots button[aria-current]::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 2px; background: var(--sage-ink);
}
.hero-rail { flex: 1; height: 1.5px; background: var(--line-2); margin-left: 10px; }

@media (max-width: 860px) {
  .hero-slide { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 34px 22px 26px; order: 2; }
  .hero-photo { order: 1; }
  .hero-photo img { clip-path: none; aspect-ratio: 4 / 3; }
  .hero-badge { left: auto; right: 16px; top: auto; bottom: -30px; width: 82px; height: 82px; }
  .hero-dots { padding: 0 22px 20px; }
}

/* ── 상품 찾기 (01-home.png 두 번째 구획) ───────────────────────────── */
.finder {
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-1);
  padding: clamp(24px, 3.6vw, 40px);
}
.finder-top { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 24px; align-items: center; }
.finder-top h2 { font-size: clamp(24px, 3.2vw, 34px); }
.finder-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 700;
  text-align: center;
}
.cat-ring {
  width: 66px; height: 66px; border-radius: 50%; background: var(--paper-2);
  display: grid; place-content: center; color: var(--sage-ink);
  border: 1px solid var(--line); transition: background .16s ease, transform .16s ease;
}
.cat:hover .cat-ring { background: var(--ok-bg); transform: translateY(-2px); }

.finder-row {
  display: grid; grid-template-columns: repeat(4, 1fr) minmax(180px, 1.2fr);
  gap: 10px; margin-top: 26px;
}
.sel { position: relative; }
.sel label {
  position: absolute; left: 15px; top: -8px; background: #fff; padding: 0 5px;
  font-size: 11px; font-weight: 800; color: var(--ink-3); letter-spacing: .04em;
}
.sel select, .control-sel {
  width: 100%; appearance: none; font: inherit; font-size: 14px; color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2355554A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 13px 38px 13px 15px;
}
.finder-go { display: flex; }

@media (max-width: 900px) {
  .finder-top { grid-template-columns: 1fr; }
  .finder-row { grid-template-columns: repeat(2, 1fr); }
  .finder-go { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .finder-cats { grid-template-columns: repeat(2, 1fr); }
}

/* ── 세이지 밴드 (01-home.png 세 번째 구획) ─────────────────────────── */
.band {
  background: var(--ok-bg); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.band a {
  display: flex; align-items: center; gap: 14px; padding: 22px 26px;
  text-decoration: none; border-right: 1px solid rgb(78 91 51 / .16);
}
.band a:last-child { border-right: 0; }
.band a:hover { background: rgb(255 255 255 / .5); }
.band-ico { color: var(--sage-ink); flex: none; }
.band b { display: block; font-family: var(--serif); font-weight: 900; font-size: 16.5px; }
.band span { display: block; font-size: 13px; color: var(--ink-2); }
@media (max-width: 780px) {
  .band { grid-template-columns: 1fr; }
  .band a { border-right: 0; border-bottom: 1px solid rgb(78 91 51 / .16); }
  .band a:last-child { border-bottom: 0; }
}

/* ── 룩북 콜라주 (06-mobile.png LOOKBOOK · 비대칭) ──────────────────── */
.lookbook { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.look-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
/* 콜라주는 원자료 사진이 작아(가장 큰 것이 409px) 칸을 크게 잡으면 뭉갠다.
   폭을 880px 로 묶고 칸마다 확대율이 1.6배를 넘지 않게 배치를 맞췄다. */
.collage {
  margin-top: 34px; max-width: 880px;
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 212px 212px 132px;
  grid-template-areas:
    "a a b c"
    "a a d c"
    "e e d c";
}
.collage .frame { border-radius: var(--radius-lg); overflow: clip; background: var(--paper-2); min-height: 0; }
.collage .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-a { grid-area: a; }
.cg-b { grid-area: b; }
.cg-c { grid-area: c; }
.cg-d { grid-area: d; }
.cg-e { grid-area: e; }

/* 시그니처 연출 — 타일이 뷰에 들어오며 서로 다른 속도로 떠오른다.
   지원 브라우저에서만 켜고(@supports), 그 밖에는 .reveal 이 같은 정보를 보여 준다. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .collage .frame {
      animation: cg-rise linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 34%;
    }
    .js .cg-b { animation-range: entry 2% cover 42%; }
    .js .cg-c { animation-range: entry 6% cover 48%; }
    .js .cg-e { animation-range: entry 0% cover 30%; }
  }
}
@keyframes cg-rise {
  from { transform: translateY(38px) scale(.965); opacity: .25; }
  to   { transform: none; opacity: 1; }
}

@media (max-width: 720px) {
  .look-head { grid-template-columns: 1fr; }
  .collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 78vw 44vw 44vw 26vw;
    grid-template-areas: "a a" "b c" "d c" "e e";
  }
}

/* ── 상품 카드 ─────────────────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

.pcard {
  background: #fff; border-radius: var(--radius-lg); overflow: clip;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.pcard:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.pcard-media { position: relative; display: block; background: var(--paper-2); }
.pcard-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pcard-tag {
  position: absolute; left: 10px; top: 10px;
  background: #fff; color: var(--cherry-ink); border-radius: var(--pill);
  padding: 4px 11px; font-size: 11.5px; font-weight: 800; box-shadow: var(--shadow-1);
}
.pcard-body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard-name { font-family: var(--serif); font-size: 15.5px; font-weight: 900; text-decoration: none; letter-spacing: -.03em; }
.pcard-meta { font-size: 12.5px; color: var(--ink-3); }
.pcard-price { font-size: 17px; font-weight: 900; letter-spacing: -.02em; margin-top: auto; }
.pcard-price small { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }

.tagrow { display: flex; flex-wrap: wrap; gap: 5px; }
.tagrow span {
  font-size: 11.5px; font-weight: 700; color: var(--sage-ink);
  background: var(--ok-bg); border-radius: var(--pill); padding: 3px 9px;
}

/* ── 상태 표시 (색만으로 전달하지 않는다) ──────────────────────────── */
.state {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800; border-radius: var(--pill); padding: 4px 10px;
}
.state-ok { background: var(--ok-bg); color: var(--ok-ink); }
.state-warn { background: var(--warn-bg); color: var(--warn-ink); }
.state-stop { background: var(--stop-bg); color: var(--stop-ink); }

/* ── 브랜드 노트 / 메모 ────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split-r { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .split, .split-r { grid-template-columns: 1fr; } }

.photo-card { border-radius: var(--radius-xl); overflow: clip; box-shadow: var(--shadow-2); background: var(--paper-2); }
.photo-card img { width: 100%; display: block; }

.memo {
  background: var(--butter); border-radius: 6px 22px 6px 6px;
  padding: 22px 24px; box-shadow: var(--shadow-1);
  font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--sage-deep);
  rotate: -1.4deg; max-width: 320px;
}
.memo span { display: block; font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink-2); margin-top: 8px; rotate: 0deg; }

.keyw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.keyw span {
  background: var(--butter); border-radius: var(--pill); padding: 8px 16px;
  font-size: 13.5px; font-weight: 800; color: var(--sage-deep);
}

/* ── 시그니처 3단 (디자인보드 SIGNATURE STRUCTURE) ─────────────────── */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s3; }
.steps3 li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; position: relative;
}
.steps3 li::before {
  counter-increment: s3; content: "0" counter(s3);
  font-family: var(--serif); font-weight: 900; font-size: 13px; letter-spacing: .1em; color: var(--cherry-ink);
}
.steps3 h3 { font-size: 19px; margin-top: 8px; }
.steps3 p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.steps3 a { display: inline-flex; margin-top: 14px; font-size: 13.5px; font-weight: 800; color: var(--sage-ink); text-decoration: none; align-items: center; gap: 4px; }
@media (max-width: 780px) { .steps3 { grid-template-columns: 1fr; } }

/* ── 안전 안내 ─────────────────────────────────────────────────────── */
.safety {
  background: var(--warn-bg); border: 1px solid #EBD7AE; border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.safety h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; color: var(--warn-ink); }
.safety ul { margin-top: 12px; display: grid; gap: 8px; }
.safety li { position: relative; padding-left: 16px; font-size: 14px; color: var(--ink-2); }
.safety li::before { content: ""; position: absolute; left: 3px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--warn-ink); }

/* ── 이벤트 띠 ─────────────────────────────────────────────────────── */
.eventbar {
  background: var(--cherry-soft); border: 1px dashed #F3B7BE; border-radius: var(--radius-lg);
  padding: 20px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}
.eventbar b { font-family: var(--serif); font-size: 17px; color: var(--cherry-ink); }
.eventbar p { font-size: 14px; color: var(--ink-2); flex: 1; min-width: 220px; }

/* ══ 상품 찾기 면 (02-페이지시안 좌상단) ══════════════════════════════ */
.shop-layout { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }

.facets {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 8px 18px 18px; position: sticky; top: 132px;
}
@media (max-width: 900px) { .facets { position: static; } }

.facet { border-bottom: 1px solid var(--line); padding-block: 6px; }
.facet:last-child { border-bottom: 0; }
.acc-trigger {
  width: 100%; background: none; border: 0; font: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 0; font-size: 14.5px; font-weight: 800; color: var(--ink); text-align: left;
}
.acc-trigger .ico { transition: rotate .2s ease; color: var(--ink-3); }
.acc-item.open .acc-trigger .ico { rotate: 180deg; }
.acc-panel { padding-bottom: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line-2); background: #fff; border-radius: var(--pill);
  padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2);
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.chip:hover { border-color: var(--sage-2); }
.chip[aria-pressed="true"] { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.chip[aria-pressed="true"]::before { content: "✓"; font-size: 11px; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: none; cursor: pointer; padding: 0; display: grid; place-content: center;
}
.swatch i { display: block; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .07); }
.swatch[aria-pressed="true"] { border: 2px solid var(--sage-ink); }

.range { display: grid; gap: 6px; }
.range input[type="range"] { width: 100%; accent-color: var(--sage-ink); }
.range-val { font-size: 13px; font-weight: 800; color: var(--sage-ink); }
.range-lbl { font-size: 12.5px; color: var(--ink-3); display: flex; justify-content: space-between; }

.body-types { display: flex; flex-wrap: wrap; gap: 7px; }
.body-types .chip { flex-direction: column; gap: 2px; padding: 8px 10px; font-size: 12px; }
.body-types .chip svg { width: 34px; height: 20px; }

.shop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.shop-count { font-size: 14px; color: var(--ink-2); }
.shop-count b { color: var(--ink); font-size: 17px; font-family: var(--serif); }

.searchbar {
  display: flex; gap: 8px; align-items: center; background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--pill); padding: 6px 6px 6px 18px; margin-bottom: 16px;
}
.searchbar input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; padding: 8px 0; }
.suggests { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.suggests button {
  border: 1px solid var(--line-2); background: #fff; border-radius: var(--pill);
  padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.suggests button:hover { border-color: var(--cherry); color: var(--cherry-ink); }

.empty {
  border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
  padding: 46px 24px; text-align: center; background: #fff;
}
.empty h3 { font-size: 19px; }
.empty p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

/* ══ 상품 상세 면 (06-mobile.png 세 번째 화면) ═══════════════════════ */
.pdp { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 4vw, 54px); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }

.gallery-main { border-radius: var(--radius-xl); overflow: clip; background: var(--butter); }
.gallery-main img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: clip;
  background: var(--paper-2); cursor: pointer; display: block;
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--sage-ink); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

.pdp-name { font-size: clamp(24px, 3.4vw, 34px); }
.pdp-sub { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.pdp-price { margin-top: 18px; font-size: 30px; font-weight: 900; font-family: var(--serif); letter-spacing: -.03em; }
.pdp-price small { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }

.optrow { margin-top: 22px; }
.optrow > h3 { font-size: 14px; font-family: var(--sans); font-weight: 800; margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.optrow > h3 em { font-style: normal; color: var(--ink-3); font-weight: 600; font-size: 13px; }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 54px; padding: 11px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; color: var(--ink);
}
.size-btn[aria-pressed="true"] { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.size-btn[disabled] { color: var(--ink-3); background: var(--paper-2); cursor: not-allowed; text-decoration: line-through; }

.fitcalc { margin-top: 22px; background: var(--paper-2); border-radius: var(--radius-lg); padding: 20px; }
.fitcalc h3 { font-size: 16px; }
.fitcalc-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: flex-end; }
.fitcalc .field { flex: 1; min-width: 120px; }
.fit-out { margin-top: 14px; font-size: 14.5px; }
.fit-out b { font-family: var(--serif); font-size: 18px; color: var(--sage-ink); }

.buyrow { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.buyrow .btn { flex: 1; min-width: 150px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--pill); background: #fff; }
.qty button {
  width: 40px; height: 40px; border: 0; background: none; font: inherit; font-size: 18px;
  cursor: pointer; color: var(--ink-2); border-radius: 50%;
}
.qty button:hover { background: var(--paper-2); }
.qty output { min-width: 30px; text-align: center; font-weight: 800; font-size: 15px; }

/* 아웃핏 빌더 — 세트 코디 */
.builder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 32px); }
.builder-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 780px) { .builder-slots { grid-template-columns: 1fr; } }
.slot { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; background: var(--paper); }
.slot h3 { font-size: 14px; font-family: var(--sans); font-weight: 800; color: var(--ink-3); letter-spacing: .04em; }
.slot ul { margin-top: 12px; display: grid; gap: 8px; }
.slot li { position: relative; }
.slot input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 9px 12px; background: #fff;
  font-size: 13.5px; font-weight: 700; min-height: 44px;
}
.slot img { width: 34px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; background: var(--paper-2); }
.slot label span { flex: 1; }
.slot label b { font-weight: 800; font-size: 13px; white-space: nowrap; }
.slot input:checked + label { border-color: var(--sage-ink); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--sage-ink); }
.slot input:focus-visible + label { outline: 2px solid var(--sage-ink); outline-offset: 2px; }

.builder-sum {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.builder-sum .total { font-family: var(--serif); font-size: 24px; font-weight: 900; }
.builder-sum .total em { font-style: normal; font-size: 13px; color: var(--ok-ink); background: var(--ok-bg); border-radius: var(--pill); padding: 3px 10px; margin-left: 8px; font-family: var(--sans); }
.builder-static { margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }

/* 하단 구매 Dock (모바일 1과업 1화면) */
.buydock { display: none; }
@media (max-width: 767px) {
  .buydock {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgb(255 255 255 / .97); border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 22px rgb(60 52 34 / .1);
  }
  .buydock .dock-price { font-family: var(--serif); font-weight: 900; font-size: 18px; }
  .buydock .btn { flex: 1; }
  body[data-page="product"] { padding-bottom: 82px; }
}

/* ══ 핏 가이드 면 (02-페이지시안 좌하단 + 06-mobile 위저드) ══════════ */
.wizard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(22px, 3.4vw, 38px); }
.wz-steps { display: flex; align-items: center; gap: 6px; margin-top: 20px; }
.wz-steps li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-3); }
.wz-steps i {
  width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); color: var(--ink-3);
  display: grid; place-content: center; font-style: normal; font-size: 12px; font-weight: 800; flex: none;
}
.wz-steps li[aria-current] i { background: var(--sage-ink); color: #fff; }
.wz-steps li[data-done="true"] i { background: var(--sage-2); color: #fff; }
.wz-steps .bar { width: 26px; height: 1.5px; background: var(--line-2); }
@media (max-width: 560px) { .wz-steps li span { display: none; } .wz-steps .bar { flex: 1; width: auto; } }

.wz-step { margin-top: 26px; }
.js .wz-step[hidden] { display: none; }
.wz-step > h3 { font-size: clamp(20px, 2.8vw, 26px); }
.wz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 620px) { .wz-grid { grid-template-columns: 1fr; } }
.wz-nav { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.wz-avatar { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.wz-avatar img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--butter); }
.wz-avatar p { font-size: 13.5px; color: var(--ink-2); }

.wz-result { background: var(--ok-bg); border-radius: var(--radius-lg); padding: 24px; margin-top: 18px; }
.wz-result .big { font-family: var(--serif); font-size: 42px; font-weight: 900; color: var(--sage-ink); line-height: 1.1; }
.wz-result ul { margin-top: 12px; display: grid; gap: 6px; }
.wz-result li { font-size: 14px; color: var(--ink-2); padding-left: 15px; position: relative; }
.wz-result li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--sage-ink); }

/* 경량 SVG 측정 가이드 */
.measure { background: var(--butter); border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 36px); }
.measure svg { width: 100%; height: auto; display: block; max-width: 560px; margin-inline: auto; }
/* 강아지는 00-디자인보드 GRAPHIC ELEMENT 의 납작한 살구색 실루엣을 따랐다.
   같은 색 도형을 겹쳐 하나의 실루엣으로 읽히게 한다(내부 선이 생기지 않는다). */
.m-dog { fill: var(--apricot); stroke: none; }
.m-dog .m-tail, .m-dog .m-neck { fill: none; stroke: var(--apricot); stroke-linecap: round; }
.m-dog .m-tail { stroke-width: 13; }
.m-dog .m-neck { stroke-width: 40; }
.m-eye { fill: var(--sage-deep); }
.m-line { fill: none; stroke: var(--cherry-ink); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 6 5; }
.m-tick { fill: none; stroke: var(--cherry-ink); stroke-width: 2.6; stroke-linecap: round; }
.m-lead { fill: none; stroke: var(--sage-2); stroke-width: 1.6; stroke-dasharray: 3 3; }
.m-label { font-family: var(--sans); font-size: 14px; font-weight: 800; fill: var(--sage-deep); }
@media (prefers-reduced-motion: no-preference) {
  .js .measure.in .m-line { stroke-dashoffset: 0; animation: m-draw 1.1s ease both; }
}
@keyframes m-draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }

.mtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; justify-content: center; }
.tab {
  border: 1px solid var(--line-2); background: #fff; border-radius: var(--pill);
  padding: 10px 18px; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; color: var(--ink-2);
}
.tab[aria-selected="true"] { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.tabpanel { margin-top: 18px; background: #fff; border-radius: var(--radius-lg); padding: 20px 22px; border: 1px solid var(--line); }
.tabpanel h3 { font-size: 17px; }
.tabpanel p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }

/* 표 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.tbl caption { text-align: left; font-size: 13px; color: var(--ink-3); padding-bottom: 10px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--paper-2); font-size: 13px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.tbl tbody th { font-family: var(--serif); font-weight: 900; }
.tbl tr[data-hl="true"] td, .tbl tr[data-hl="true"] th { background: var(--ok-bg); }
.tbl-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; }

/* 비교 */
.compare-head { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; text-align: center; }
.cmp-card img { width: 100%; max-width: 180px; aspect-ratio: 1 / 1; object-fit: contain; margin-inline: auto; display: block; background: #fff; }
.cmp-card h3 { font-size: 16px; margin-top: 12px; }
.cmp-card .p { font-weight: 900; font-size: 18px; margin-top: 4px; }
.cmp-card .control-sel { margin-top: 12px; }
@media (max-width: 560px) { .compare-head { grid-template-columns: 1fr; } }

/* ══ 장바구니 면 (02-페이지시안 우하단) ══════════════════════════════ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: clip; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 84px; height: 96px; object-fit: contain; background: var(--paper-2); border-radius: var(--radius); }
.cart-item h3 { font-size: 15.5px; }
.cart-item .op { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.cart-item .pr { font-size: 15px; font-weight: 900; margin-top: 6px; }
.cart-item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-del { background: none; border: 0; font: inherit; font-size: 12.5px; color: var(--ink-3); cursor: pointer; text-decoration: underline; padding: 6px; }
@media (max-width: 520px) {
  .cart-item { grid-template-columns: 68px 1fr; }
  .cart-item img { width: 68px; height: 80px; }
  .cart-item .right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 132px; }
@media (max-width: 900px) { .summary { position: static; } }
.summary h2 { font-size: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding-block: 9px; color: var(--ink-2); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 16px; color: var(--ink); }
.sum-row.total b { font-family: var(--serif); font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.sum-row .minus { color: var(--cherry-ink); font-weight: 800; }
.coupon { display: flex; gap: 8px; margin-top: 14px; }
.coupon input { flex: 1; min-width: 0; }
.coupon-msg { margin-top: 8px; font-size: 12.5px; display: none; }
.coupon-msg.show { display: flex; align-items: center; gap: 5px; }

/* 주문 진행 */
.tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tracker li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; text-align: center;
}
.tracker li[data-state="done"] { border-color: var(--sage-2); background: var(--ok-bg); }
.tracker li[data-state="now"] { border-color: var(--sage-ink); box-shadow: inset 0 0 0 1px var(--sage-ink); }
.tracker i { display: grid; place-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); color: var(--ink-3); margin-inline: auto; }
.tracker li[data-state="done"] i, .tracker li[data-state="now"] i { background: var(--sage-ink); color: #fff; }
.tracker b { display: block; margin-top: 10px; font-size: 14px; }
.tracker span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 640px) { .tracker { grid-template-columns: repeat(2, 1fr); } }

/* ── 아코디언(본문형) ──────────────────────────────────────────────── */
.acc { display: grid; gap: 10px; }
.acc > .acc-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 20px;
}
.acc > .acc-item .acc-trigger { padding: 16px 0; font-size: 15.5px; }
.acc > .acc-item .acc-panel { padding-bottom: 18px; color: var(--ink-2); font-size: 14.5px; }
.acc > .acc-item .acc-panel p + p { margin-top: 10px; }
.acc > .acc-item .acc-panel ul { display: grid; gap: 7px; margin-top: 8px; }
.acc > .acc-item .acc-panel li { padding-left: 15px; position: relative; }
.acc > .acc-item .acc-panel li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--sage-2); }

/* ── 폼 ───────────────────────────────────────────────────────────── */
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(22px, 3.2vw, 34px); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.control, .control-sel {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; background: #fff;
}
textarea.control { resize: vertical; min-height: 110px; }
.field .err { display: none; font-size: 12.5px; color: var(--stop-ink); font-weight: 700; }
.field.invalid .control, .field.invalid .control-sel { border-color: var(--cherry-ink); background: var(--stop-bg); }
.field.invalid .err { display: flex; align-items: center; gap: 4px; }
.counter { font-size: 12px; color: var(--ink-3); text-align: right; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.agree { margin-top: 16px; position: relative; }
.agree label { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; min-height: 44px; align-items: center; }
.agree .box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2);
  background: #fff; flex: none; display: grid; place-content: center;
}
.agree input:checked + label .box { background: var(--sage-ink); border-color: var(--sage-ink); }
.agree input:checked + label .box::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 900; }
.agree .err { display: none; font-size: 12.5px; color: var(--stop-ink); font-weight: 700; margin-top: 4px; }
.agree.invalid .err { display: block; }
.agree.invalid .box { border-color: var(--cherry-ink); }
.form-submit {
  margin-top: 18px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 15px 24px; border-radius: var(--pill); border: 0;
  background: var(--cherry-ink); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.form-submit:hover { background: #C22F41; }

/* ── 토스트 생김새 ─────────────────────────────────────────────────── */
.toast {
  background: var(--sage-deep); color: #fff; border-radius: var(--pill);
  padding: 13px 22px; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-2); max-width: min(92vw, 460px); text-align: center;
}

/* ── 푸터 ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--sage-deep); color: #E9EADF; margin-top: 40px; }
.footer-inner { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; padding: 54px 0 40px; }
.footer-brand { font-family: var(--serif); font-weight: 900; font-size: 24px; color: #fff; letter-spacing: -.05em; }
.footer-slogan { font-size: 14px; color: #BFC7AE; margin-top: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .16); }
.footer-nav a { font-size: 14px; font-weight: 700; text-decoration: none; color: #E9EADF; }
.footer-nav a:hover { color: var(--butter); }
.footer-biz { font-style: normal; font-size: 12.5px; line-height: 2; color: #B7BFA6; margin-top: 22px; }
.footer-biz a { color: #DFE3D3; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.footer-legal a { font-size: 12.5px; color: #DFE3D3; }
.footer-copy { margin-top: 18px; font-size: 12px; color: #94A084; }
.footer-note { margin-top: 10px; font-size: 12px; color: #94A084; }

/* ── 면 머리 ───────────────────────────────────────────────────────── */
.pagehead { background: linear-gradient(180deg, var(--butter) 0%, var(--paper) 100%); padding-block: 40px 34px; }
.crumb { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--cherry-ink); }
.pagehead h1 { font-size: clamp(28px, 4.6vw, 44px); margin-top: 10px; }
.pagehead p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; max-width: 60ch; }

@media (max-width: 767px) {
  button, a.btn, .form-submit { min-height: 44px; }
}

/* ── js-only 의 display 되돌리기 보정 ───────────────────────────────
   kit.css 는 `.js .js-only { display: revert }` 로 되살린다. revert 는 브라우저
   기본값으로 돌아가는 것이라 flex/grid 로 짠 상자가 block 이 되어 배치가 무너진다.
   그 상자만 골라 원래 display 를 다시 못 박는다. */
.js .js-only.hero-dots,
.js .js-only.chips,
.js .js-only.swatches,
.js .js-only.suggests,
.js .js-only.coupon,
.js .js-only.wz-nav,
.js .js-only.builder-sum { display: flex; }
.js .js-only.qty { display: inline-flex; }
.js .js-only.sortwrap { display: flex; align-items: center; gap: 8px; }
.js .js-only.btn { display: inline-flex; }
.js .js-only.gallery-thumbs { display: grid; }

/* ── hidden 이 author display 에 지지 않게 ───────────────────────────
   특히 `.js .js-only { display: revert }` 는 [hidden] 을 이겨 버린다 —
   빈 장바구니 안내가 상품이 있는데도 뜬 사고가 여기서 났다. */
.pcard[hidden], .cart-item[hidden], .hero-slide[hidden] { display: none; }
.js .js-only[hidden] { display: none; }

/* 누끼 상품컷은 잘라내지 말고 여백을 두고 통째로 보여 준다(02-페이지시안 상품 카드) */
.pcard-media[data-shot="cut"] { background: #fff; }
.pcard-media[data-shot="cut"] img { object-fit: contain; padding: 11% 17%; }

/* 사진 원본이 작아 액자를 무한정 키우면 뭉갠다 — 브랜드 노트 사진은 폭을 묶는다 */
.photo-card { max-width: 400px; }

/* ── 가로 넘침 방지 — 격자 칸의 기본 min-width:auto 를 푼다 ────────── */
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.finder-row > *, .finder-cats > *, .shop-layout > *, .cart-layout > *,
.pdp > *, .split > *, .split-r > *, .builder-slots > *,
.compare-head > *, .steps3 > *, .tracker > *, .collage > *,
.look-head > *, .hero-slide > * { min-width: 0; }

/* ── 헤더 부속 ─────────────────────────────────────────────────────── */
.util-note { margin-left: auto; color: var(--ink-3); }
.header-slogan { font-size: 12.5px; color: var(--ink-3); letter-spacing: -.02em; }
@media (max-width: 1079px) { .header-slogan, .util-note { display: none; } }

.menu-btn {
  align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: none; border: 0; color: var(--ink-2); cursor: pointer;
}
@media (max-width: 767px) {
  .header-right .search { display: none; }
  .hero-badge { left: auto; right: 14px; top: 14px; bottom: auto; }
}
@media (max-width: 560px) { .memo { rotate: 0deg; } }

/* ── 무JS 에서 조작기를 확실히 감춘다 ───────────────────────────────
   kit.css 의 `.js-only { display: none }` 은 특정도 0,1,0 이라 아래에서 쓴
   `.chips { display: flex }` 같은 규칙에 순서로 밀린다 — 그러면 JS 없이
   「눌러도 반응 없는 단추」가 남는다. 특정도를 올려 못 박는다. */
html:not(.js) .js-only { display: none; }
