/* ============================================================
   RAINKISS KOREA — Global Styles
   ============================================================
   디자인 시스템:
   - Primary Yellow: #FFE500 (시그니처)
   - Ink:           #0B0B0B
   - Paper:         #FFFFFF / #F7F5F0 (오프화이트)
   - Accent blocks: lavender / mint / sky / pink / peach / coral / olive / yellow
   - Type: 영문 헤드라인 Space Grotesk/Cabinet Grotesk
           한국어 Pretendard
   - Grid: 12col, gutter 24px, container max 1400px
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --rk-yellow: #FFE500;
  --rk-yellow-dark: #F5D800;
  --rk-ink: #0B0B0B;
  --rk-ink-2: #1D1D1D;
  --rk-gray-1: #777;
  --rk-gray-2: #B5B5B5;
  --rk-gray-3: #E3E3E0;
  --rk-paper: #FFFFFF;
  --rk-paper-2: #F7F5F0;
  --rk-cream: #F5EFDC;         /* 저채도 크림 — 옐로우 톤 다운용 */

  /* Signature accents — 정리 후 남은 2색 */
  --rk-pink: #F5C0CE;
  --rk-pink-2: #E88BA4;

  /* Type */
  --font-en: 'Space Grotesk', 'Pretendard', system-ui, -apple-system, sans-serif;
  --font-kr: 'Pretendard', 'Space Grotesk', system-ui, sans-serif;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Layout */
  --container: 1400px;
  --header-h: 72px;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-kr);
  color: var(--rk-ink);
  background: var(--rk-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
.font-en { font-family: var(--font-en); letter-spacing: -0.01em; }
.display {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(42px, 7vw, 104px);
  margin: 0;
}
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin: 0; }
h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.005em; margin: 0; }
p { margin: 0; }

.kicker {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rk-ink);
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}
.kicker::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 3px;
  background: var(--rk-pink);
}
.kicker--light { color: var(--rk-paper); }
.kicker--light::after { background: var(--rk-paper); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--rk-ink); color: var(--rk-paper); }
.btn--primary:hover { background: var(--rk-ink-2); }
/* 메인 CTA 버튼 컬러 — 채도 낮춘 차분한 핑크 (기존 --rk-yellow에서 변경) */
.btn--pink   { background: var(--rk-pink); color: var(--rk-ink); }
.btn--pink:hover { background: var(--rk-pink-2); color: var(--rk-paper); }
/* 레거시 클래스명 호환 — 과거 btn--yellow를 쓰는 곳도 동일 핑크로 렌더 */
.btn--yellow { background: var(--rk-pink); color: var(--rk-ink); }
.btn--yellow:hover { background: var(--rk-pink-2); color: var(--rk-paper); }
.btn--ghost { background: transparent; color: var(--rk-ink); border: 1.5px solid var(--rk-ink); }
.btn--ghost:hover { background: var(--rk-ink); color: var(--rk-paper); }
.btn--ghost-light { background: transparent; color: var(--rk-paper); border: 1.5px solid var(--rk-paper); }
.btn--ghost-light:hover { background: var(--rk-paper); color: var(--rk-ink); }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11,11,11,0.06);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.is-transparent {
  background: transparent;
  border-color: transparent;
}
.header.is-transparent .header__logo,
.header.is-transparent .header__nav a,
.header.is-transparent .header__icons button { color: var(--rk-paper); }
.header.is-transparent .logo-mark { filter: invert(1) brightness(2); }
.header.is-scrolled { background: rgba(255,255,255,0.95); }

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-5);
}

.header__logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--rk-yellow);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.logo-mark::before, .logo-mark::after {
  content: '';
  position: absolute;
  width: 7px; height: 10px;
  background: var(--rk-ink);
  border-radius: 100% 100% 50% 50% / 70% 70% 30% 30%;
  top: 9px;
}
.logo-mark::before { left: 6px; transform: rotate(-20deg); }
.logo-mark::after { right: 6px; transform: rotate(20deg); }

.header__nav { display: flex; gap: 4px; justify-content: center; }
.header__nav a {
  position: relative;
  padding: 8px 14px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.header__nav a:hover { background: rgba(11,11,11,0.05); }
.header.is-transparent .header__nav a:hover { background: rgba(255,255,255,0.12); }

.header__icons { display: flex; gap: 4px; align-items: center; }
.header__icons button, .header__lang {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s var(--ease);
  position: relative;
}
.header__icons button:hover, .header__lang:hover { background: rgba(11,11,11,0.06); }
.header.is-transparent .header__icons button:hover,
.header.is-transparent .header__lang:hover { background: rgba(255,255,255,0.14); }

.header__lang {
  width: auto; padding: 0 12px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: var(--r-pill);
  gap: 4px;
  display: inline-flex;
  align-items: center;
  height: 36px;
}
.header__lang .lang-sep { opacity: 0.3; margin: 0 2px; }
.header__lang .lang-on { color: var(--rk-ink); }
.header__lang .lang-off { opacity: 0.4; }
.header.is-transparent .header__lang .lang-on { color: var(--rk-paper); }

.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--rk-yellow);
  color: var(--rk-ink);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0);
  transition: transform 0.3s var(--ease-spring);
}
.cart-count.is-visible { transform: scale(1); }

/* Mobile menu */
.hamburger { display: none; }
@media (max-width: 860px) {
  .header__nav { display: none; }
  .hamburger { display: inline-flex; }
}

/* ---------- Section Base ---------- */
section { padding: clamp(60px, 9vw, 120px) 0; }
section.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: clamp(32px, 5vw, 64px);
  flex-wrap: wrap;
}
.section__head-text { max-width: 680px; }
.section__head-text .kicker { margin-bottom: 18px; }
.section__head-text h2 { margin-bottom: 12px; }
.section__head-text p { color: var(--rk-gray-1); font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
  background: var(--rk-ink);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.75);
  transform: scale(1.02);
  animation: heroZoom 18s ease-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}
.hero__content {
  position: relative; z-index: 2;
  color: var(--rk-paper);
  width: 100%;
  max-width: 960px;
}
.hero__title {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 12px 0 24px;
}
.hero__sub {
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 560px;
  opacity: 0.9;
  margin-bottom: var(--sp-6);
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__tiny-badges {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(48px, 6vw, 80px);
  z-index: 2;
  color: var(--rk-paper);
  text-align: right;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.7;
}
.hero__tiny-badges div { margin-bottom: 4px; }
@media (max-width: 760px) {
  .hero__tiny-badges { display: none; }
}

/* Marquee ribbon */
.marquee {
  background: var(--rk-pink);
  color: var(--rk-ink);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.marquee__track {
  display: inline-block;
  animation: marquee 28s linear infinite;
}
.marquee__track span { display: inline-block; margin: 0 28px; }
.marquee__track span::before { content: '✦'; margin-right: 28px; color: var(--rk-ink); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Weather Section ---------- */
.weather {
  background: var(--rk-paper-2);
}
.weather__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 860px) {
  .weather__grid { grid-template-columns: 1fr; }
}
.weather__panel {
  background: var(--rk-ink);
  color: var(--rk-paper);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.5vw, 40px);
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.weather__panel::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: var(--rk-yellow);
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.35;
}
.weather__status {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  opacity: 0.7;
}
.weather__headline {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-5);
  line-height: 1.1;
}
.weather__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.weather__stat-label { font-size: 11px; letter-spacing: 0.1em; opacity: 0.55; text-transform: uppercase; margin-bottom: 6px; }
.weather__stat-value { font-family: var(--font-en); font-size: 24px; font-weight: 600; }
.weather__stat-value small { font-size: 14px; font-weight: 400; opacity: 0.7; margin-left: 2px; }

.weather__rec {
  background: var(--rk-paper);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-5);
  align-items: stretch;
  border: 1px solid var(--rk-gray-3);
}
@media (max-width: 720px) {
  .weather__rec {
    grid-template-columns: 1fr;   /* 모바일: 사진 위, 텍스트 아래 */
    gap: 20px;
  }
  .weather__rec-img { aspect-ratio: 4/3; max-height: 320px; }
}
.weather__rec-img {
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--rk-gray-3);
}
.weather__rec-img img { width: 100%; height: 100%; object-fit: cover; }
.weather__rec-body { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-4); }
.weather__rec-tag {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rk-gray-1);
}
.weather__rec-name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; margin: 8px 0 14px; }
.weather__rec-desc { font-size: 14px; color: var(--rk-gray-1); }
.weather__rec-price { font-family: var(--font-en); font-weight: 600; font-size: 18px; margin-top: var(--sp-4); }

/* ---------- New In (feature rows) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--rk-gray-3); }
.feature-row__media {
  aspect-ratio: 4/5;
  border-radius: 0;              /* A안: 샤프 엣지 */
  overflow: hidden;
}
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.feature-row:hover .feature-row__media img { transform: scale(1.04); }
.feature-row__body .kicker { margin-bottom: 16px; }
.feature-row__body h2 {
  font-family: var(--font-en);
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
  color: var(--rk-ink);
}
.feature-row--alt .feature-row__body h2 { color: var(--rk-ink); }
.feature-row__desc { font-size: 16px; color: var(--rk-ink-2); max-width: 460px; margin-bottom: var(--sp-5); line-height: 1.6; }
.feature-row__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-5); }
.spec-pill {
  padding: 8px 14px;
  background: var(--rk-paper-2);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--rk-ink-2);
  letter-spacing: -0.003em;
}
.feature-row--reverse .feature-row__media { order: 2; }
@media (max-width: 780px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--reverse .feature-row__media { order: 0; }
}

/* ---------- Collections Grid ---------- */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.collections-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.collection-card {
  position: relative;
  border-radius: 0;              /* A안: 샤프 엣지 (사진 에디토리얼 룩) */
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--rk-gray-3);
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.collection-card:hover { transform: translateY(-4px); }
.collection-card__media { position: absolute; inset: 0; }
.collection-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.collection-card:hover .collection-card__media img { transform: scale(1.06); }
.collection-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
}
.collection-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  color: var(--rk-paper);
  z-index: 2;
}
.collection-card__tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  background: var(--rk-yellow);
  color: var(--rk-ink);
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.collection-card__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 2px;
}
.collection-card__meta {
  font-size: 12px;
  opacity: 0.75;
}
.collection-card__tag--collab { background: #fff; }
.collection-card__tag--new { background: var(--rk-yellow); }

/* ---------- Mix & Match ---------- */
.mixer {
  background: var(--rk-paper-2);    /* 라벤더 원색 → 중립 오프화이트로 톤 다운 */
  color: var(--rk-ink);
  padding: clamp(60px, 9vw, 120px) 0;
}
.section--featured {                /* 시그니처 컬렉션 섹션 — 페이퍼 중립 배경 */
  background: var(--rk-paper);
}
.mixer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
}
@media (max-width: 860px) {
  .mixer__grid { grid-template-columns: 1fr; }
}
.mixer__stage {
  background: var(--rk-paper);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  gap: var(--sp-5);
}
.mixer__slot {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1.5px solid var(--rk-gray-3);
  border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.mixer__slot.is-active { border-color: var(--rk-ink); background: var(--rk-paper-2); }
.mixer__slot-img {
  width: 80px; height: 80px;
  border-radius: 0;              /* A안: 샤프 엣지 (믹서 슬롯 제품 사진) */
  background: var(--rk-gray-3);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-size: 24px;
  color: var(--rk-gray-2);
}
.mixer__slot-img img { width: 100%; height: 100%; object-fit: cover; }
.mixer__slot-label { font-size: 13px; color: var(--rk-gray-1); margin-bottom: 4px; }
.mixer__slot-value { font-weight: 600; font-size: 15px; }
.mixer__slot-picker {
  padding: 8px 14px;
  border: 1.5px solid var(--rk-ink);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
}
.mixer__slot-picker:hover { background: var(--rk-ink); color: var(--rk-paper); }

.mixer__summary {
  background: var(--rk-ink);
  color: var(--rk-paper);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mixer__price-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.mixer__price-row.is-total {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 12px; padding-top: 20px;
  color: var(--rk-paper);
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-en);
}
.mixer__price-row.is-discount { color: var(--rk-yellow); }
.mixer__actions { display: flex; gap: 8px; margin-top: var(--sp-5); }
.mixer__empty {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ---------- Mix & Match: 신규 카테고리·콤보박스 UI ---------- */
.mixer__cat {
  border: 1.5px solid var(--rk-gray-3);
  border-radius: var(--r-md);
  padding: 16px 18px;
  background: var(--rk-paper);
  display: grid;
  gap: 12px;
}
.mixer__cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.mixer__cat-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--rk-ink);
}
.mixer__cat-hint {
  font-size: 12px;
  color: var(--rk-gray-1);
  margin-top: 2px;
}
.mixer__cat-empty {
  font-size: 13px;
  color: var(--rk-gray-1);
  padding: 8px 0;
}
.mixer__rows {
  display: grid;
  gap: 10px;
}
.mixer__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}
@media (max-width: 640px) {
  .mixer__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "sel rem"
      "qty qty";
    gap: 8px;
  }
  .mixer__row .mixer__select   { grid-area: sel; }
  .mixer__row .mixer__qty      { grid-area: qty; justify-self: start; }
  .mixer__row .mixer__row-remove { grid-area: rem; }
}
.mixer__select {
  width: 100%;
  min-height: 40px;
  padding: 8px 36px 8px 12px;
  border: 1.5px solid var(--rk-gray-3);
  border-radius: var(--r-sm);
  background: var(--rk-paper);
  color: var(--rk-ink);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.mixer__select:focus {
  outline: none;
  border-color: var(--rk-ink);
}
.mixer__qty {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--rk-gray-3);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.mixer__qty-btn {
  width: 34px;
  height: 38px;
  background: var(--rk-paper);
  border: none;
  color: var(--rk-ink);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}
.mixer__qty-btn:hover { background: var(--rk-paper-2); }
.mixer__qty-input {
  width: 42px;
  height: 38px;
  border: none;
  border-left: 1.5px solid var(--rk-gray-3);
  border-right: 1.5px solid var(--rk-gray-3);
  background: var(--rk-paper);
  color: var(--rk-ink);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  -moz-appearance: textfield;
}
.mixer__qty-input::-webkit-outer-spin-button,
.mixer__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mixer__row-remove {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--rk-gray-3);
  background: var(--rk-paper);
  border-radius: 50%;
  color: var(--rk-gray-1);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.mixer__row-remove:hover:not([disabled]) {
  border-color: var(--rk-ink);
  color: var(--rk-ink);
}
.mixer__row-remove[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
.mixer__add-row {
  justify-self: end;             /* 우측 하단 정렬 */
  align-self: start;
  width: auto;                   /* 콘텐츠 길이만큼만 */
  padding: 6px 14px;
  border: 1.5px dashed var(--rk-gray-2);
  background: transparent;
  color: var(--rk-gray-1);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.mixer__add-row:hover {
  border-color: var(--rk-ink);
  border-style: solid;
  color: var(--rk-ink);
}
#mixerAdd[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Sustainability ---------- */
.sustain {
  background: var(--rk-ink);
  color: var(--rk-paper);
  position: relative;
  overflow: hidden;
}
.sustain::before {
  content: '';
  position: absolute;
  left: -100px; top: 50%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,229,0,0.18) 0%, transparent 70%);
  transform: translateY(-50%);
  z-index: 0;
}
.sustain > .container { position: relative; z-index: 1; }
.sustain__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-top: clamp(32px, 5vw, 56px);
}
@media (max-width: 860px) { .sustain__grid { grid-template-columns: repeat(2, 1fr); } }
.sustain__stat {
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.02);
}
.sustain__stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 14px;
}
.sustain__stat-value {
  font-family: var(--font-en);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--rk-yellow);
}
.sustain__stat-unit {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
}
.sustain__stat-sub {
  font-size: 12px;
  opacity: 0.55;
  margin-top: 10px;
}

/* ---------- Gallery ---------- */
.gallery {
  padding-bottom: clamp(40px, 6vw, 80px);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 780px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {
  aspect-ratio: 1/1;
  border-radius: 0;              /* A안: 샤프 엣지 (legacy class, 현재 미사용) */
  overflow: hidden;
  position: relative;
  background: var(--rk-gray-3);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }

/* ---------- Lookbook (룩북 페이지) — masonry 레이아웃 ---------- */
/* CSS columns: 원본 종횡비 그대로, 사진이 안 잘림 */
.lookbook-grid {
  column-count: 4;
  column-gap: 12px;
}
@media (max-width: 980px) { .lookbook-grid { column-count: 3; } }
@media (max-width: 640px) { .lookbook-grid { column-count: 2; } }
@media (max-width: 420px) { .lookbook-grid { column-count: 1; } }

.lookbook-item {
  position: relative;
  margin: 0 0 12px 0;
  border-radius: 0;             /* A안: 샤프 엣지 */
  overflow: hidden;
  background: var(--rk-gray-3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  break-inside: avoid;          /* 컬럼 사이 분할 방지 */
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: block;
}
.lookbook-item img,
.lookbook-item video {
  width: 100%;
  height: auto;                 /* 원본 종횡비 그대로 */
  object-fit: contain;
  display: block;
  transition: transform 0.6s var(--ease);
}
.lookbook-item.is-interactive { cursor: pointer; }
.lookbook-item.is-interactive:hover img,
.lookbook-item.is-interactive:hover video { transform: scale(1.05); }
.lookbook-item.is-interactive:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
/* 이미지(slug 있는): 호버 시 우상단에 SHOP 힌트 (클릭은 figure 전체에서) */
.lookbook-item.is-interactive:not(.is-video)::after {
  content: 'SHOP →';
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.92);
  color: var(--rk-ink);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.lookbook-item.is-interactive:not(.is-video):hover::after {
  opacity: 1;
  transform: translateY(0);
}
/* 영상(slug 있는): 실제 클릭 가능한 SHOP 버튼. 영상은 네이티브 재생 그대로 */
.lookbook-item__shop-btn {
  position: absolute;
  top: 10px; right: 10px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.92);
  color: var(--rk-ink);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lookbook-item__shop-btn:hover {
  background: var(--rk-ink);
  color: var(--rk-paper);
  transform: translateY(-1px);
}
.lookbook-item figcaption {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  color: var(--rk-ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}
.lookbook-item:hover figcaption,
.lookbook-item:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}
.lookbook-item__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lookbook-item__caption {
  font-size: 12px;
  color: var(--rk-gray-1);
  line-height: 1.35;
}
.lookbook-empty {
  padding: clamp(40px, 8vw, 80px) 0;
  text-align: center;
  color: var(--rk-gray-1);
}

/* ---------- Philosophy ---------- */
.philosophy {
  background: var(--rk-cream);   /* 옐로우 → 저채도 크림 */
  color: var(--rk-ink);
  position: relative;
  overflow: hidden;
}
.philosophy__claim {
  font-family: var(--font-en);
  font-size: clamp(42px, 7vw, 126px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: var(--sp-5) 0;
}
.philosophy__body {
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.philosophy__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 860px) { .philosophy__specs { grid-template-columns: repeat(2, 1fr); } }
.spec-card {
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--rk-ink);
  color: var(--rk-paper);
  border-radius: var(--r-lg);
  transition: transform 0.3s var(--ease);
}
.spec-card:hover { transform: translateY(-4px); }
.spec-card__num {
  font-family: var(--font-en);
  font-size: 12px;
  opacity: 0.45;
  letter-spacing: 0.15em;
  margin-bottom: 28px;
}
.spec-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.spec-card__desc { font-size: 13px; opacity: 0.75; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--rk-paper-2);
}
.newsletter__form {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.newsletter__title { margin-bottom: var(--sp-3); white-space: nowrap; font-size: clamp(20px, 5.2vw, 48px); }
.newsletter__sub { color: var(--rk-gray-1); margin-bottom: var(--sp-6); }
.newsletter__input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px;
  background: var(--rk-paper);
  border-radius: var(--r-pill);
  border: 1px solid var(--rk-gray-3);
  margin-bottom: 12px;
}
.newsletter__input-row input {
  border: 0;
  padding: 12px 18px;
  font-size: 15px;
  background: transparent;
  outline: none;
}
.newsletter__agree { font-size: 12px; color: var(--rk-gray-1); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--rk-ink);
  color: var(--rk-paper);
  padding: clamp(48px, 6vw, 88px) 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
.footer__brand .logo-mark { width: 36px; height: 36px; margin-bottom: 16px; }
.footer__tag {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 16px 0 var(--sp-5);
  max-width: 320px;
  line-height: 1.6;
}
.footer__col h4 {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.5);
}
.footer__col ul li { margin-bottom: 10px; font-size: 14px; }
.footer__col a { color: rgba(255,255,255,0.85); transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--rk-yellow); }

.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
}
.footer__biz { font-size: 11.5px; line-height: 1.8; }
.footer__biz span { display: inline-block; margin-right: 14px; }
.footer__biz strong { opacity: 0.65; font-weight: 400; margin-right: 4px; }

/* ---------- Cart Drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100svh;
  width: min(440px, 100vw);
  background: var(--rk-paper);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.15);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--rk-gray-3);
}
.cart-drawer__head h3 { font-size: 20px; }
.cart-drawer__close {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-drawer__close:hover { background: var(--rk-paper-2); }
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  color: var(--rk-gray-1);
  padding: 80px 20px;
}
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rk-gray-3);
  align-items: center;
}
.cart-item__img {
  width: 72px; height: 72px;
  border-radius: var(--r-sm);
  background: var(--rk-gray-3);
  overflow: hidden;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-item__meta { font-size: 12px; color: var(--rk-gray-1); margin-bottom: 6px; }
.cart-item__price { font-family: var(--font-en); font-weight: 600; font-size: 14px; }
.cart-item__remove { color: var(--rk-gray-2); font-size: 12px; padding: 4px; }
.cart-item__remove:hover { color: var(--rk-ink); }

.cart-drawer__foot {
  border-top: 1px solid var(--rk-gray-3);
  padding: 20px 24px;
}
.cart-drawer__total {
  display: flex; justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 16px;
}
.cart-drawer__notice {
  font-size: 12px;
  color: var(--rk-gray-1);
  margin-bottom: 16px;
  padding: 12px;
  background: var(--rk-paper-2);
  border-radius: var(--r-sm);
  line-height: 1.5;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--rk-paper);
  z-index: 140;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__head {
  height: var(--header-h);
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--rk-gray-3);
}
.mobile-menu__body {
  flex: 1;
  overflow-y: auto;
  padding: 32px clamp(16px, 3vw, 40px);
}
.mobile-menu__nav a {
  display: block;
  font-size: 28px;
  font-weight: 600;
  padding: 12px 0;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--rk-paper-2);
}

/* ---------- About / Contact shared ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: clamp(40px, 6vw, 80px);
  background: var(--rk-paper-2);
}
.page-hero h1 {
  font-size: clamp(42px, 6vw, 88px);
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
  font-weight: 700;
}
.page-hero p { font-size: 18px; color: var(--rk-gray-1); max-width: 620px; }

/* 레거시 .contact-tiles 그리드 제거 — 아래 .contact-tiles__grid 플렉스가 실제로 사용 */
/* (.contact-tile__icon 등 사용되지 않는 이전 스타일도 같이 정리) */

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}
.contact-form label {
  display: block;
  font-size: 13px;
  color: var(--rk-gray-1);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--rk-gray-3);
  border-radius: var(--r-md);
  font-size: 15px;
  transition: border-color 0.2s var(--ease);
  background: var(--rk-paper);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--rk-ink);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) { .contact-form__row { grid-template-columns: 1fr; } }

/* ---------- Collection palettes (deprecated — 전부 뉴트럴로 통일) ---------- */
/* 모든 .pal-* 클래스는 더 이상 배경 팔레트가 아니라 뉴트럴 페이퍼로 fallback.
   collections.js의 palette 필드는 레거시 데이터로 유지되나 시각 효과 없음. */
.pal-lavender, .pal-mint, .pal-sky, .pal-pink, .pal-peach,
.pal-coral, .pal-olive, .pal-yellow { background: var(--rk-paper); }

/* ---------- Collection Detail Modal ---------- */
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  overflow-y: auto;
}
.detail-modal.is-open { opacity: 1; pointer-events: auto; }
.detail-modal__panel {
  background: var(--rk-paper);
  width: min(1100px, 96vw);
  margin: 40px 0 40px;
  border-radius: var(--r-sm);    /* UI 컨테이너는 약간의 라운딩만 — 너무 샤프하지 않게 */
  overflow: hidden;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s var(--ease);
  /* 뷰포트 초과 방지 + 플렉스 컬럼: 썸네일이 남는 공간을 채움 */
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}
.detail-modal.is-open .detail-modal__panel { transform: translateY(0); }
.detail-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--rk-paper);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.detail-modal__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  flex: 0 0 62vh;       /* 모든 컬렉션에 동일한 grid 높이: 썸네일 비중 통일 */
  min-height: 420px;    /* 작은 뷰포트에서도 최소 높이 확보 */
  overflow: hidden;
}
@media (max-width: 860px) {
  .detail-modal__grid { grid-template-columns: 1fr; max-height: none; overflow: visible; }
  .detail-modal__panel { max-height: none; display: block; }
  .detail-modal__body { overflow-y: visible; max-height: none; }
  .detail-modal__thumbs { flex: none; }
}
.detail-modal__media {
  background: var(--rk-gray-3);
  min-height: 360px;
  position: relative;
}
.detail-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.detail-modal__body {
  padding: clamp(24px, 3vw, 40px);
  overflow-y: auto;     /* SKU가 많으면 body 내부에서 스크롤 */
  max-height: 100%;
}
.detail-modal__tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  background: var(--rk-ink);
  color: var(--rk-paper);
  border-radius: 4px;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.detail-modal__name {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.05;
}
.detail-modal__story { font-size: 15px; color: var(--rk-ink-2); margin-bottom: var(--sp-5); line-height: 1.6; }
.detail-modal__products {
  padding: 20px 0;
  border-top: 1px solid var(--rk-gray-3);
  border-bottom: 1px solid var(--rk-gray-3);
  margin-bottom: var(--sp-5);
}
.detail-modal__products-title { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rk-gray-1); margin-bottom: 12px; font-family: var(--font-en); }
.detail-product-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  align-items: center;
}
.detail-product-row__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.detail-product-row strong { font-weight: 500; }
.detail-product-row__size {
  font-size: 11px;
  color: var(--rk-gray-1);
  letter-spacing: 0.02em;
}
.detail-product-row__price { font-family: var(--font-en); font-weight: 600; white-space: nowrap; }
.detail-product-row span { font-family: var(--font-en); font-weight: 600; }
.detail-modal__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--rk-gray-3);
  flex: 0 0 auto;       /* 자연 크기 유지 */
}
.detail-modal__filter-btn {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--rk-gray-3);
  background: var(--rk-paper);
  color: var(--rk-ink);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s var(--ease);
}
.detail-modal__filter-btn:hover { border-color: var(--rk-ink); }
.detail-modal__filter-btn.is-active {
  background: var(--rk-ink);
  border-color: var(--rk-ink);
  color: var(--rk-paper);
}

.detail-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--rk-gray-3);
  flex: 1 1 auto;       /* 남는 세로 공간을 전부 채움 → 빈 공백 제거 */
  min-height: 180px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.detail-modal__filter + .detail-modal__thumbs { border-top: none; padding-top: 12px; }
.detail-modal__thumbs img {
  aspect-ratio: 3/4;             /* 세로 비율 포트레이트 — 전신/얼굴 더 넓게 */
  object-fit: cover;
  object-position: center 20%;   /* 상단 쪽 우선 — 얼굴 잘림 방지 */
  border-radius: 0;              /* A안: 샤프 엣지 */
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s var(--ease);
}
.detail-modal__thumbs img:hover,
.detail-modal__thumbs img.is-active { opacity: 1; }
@media (max-width: 520px) {
  .detail-modal__thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Collections page filters ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--rk-gray-3);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.filter-bar button {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--rk-gray-3);
  transition: all 0.2s var(--ease);
}
.filter-bar button:hover { border-color: var(--rk-ink); }
.filter-bar button.is-active {
  background: var(--rk-ink);
  color: var(--rk-paper);
  border-color: var(--rk-ink);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(100px);
  background: var(--rk-ink);
  color: var(--rk-paper);
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  transition: all 0.3s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.toast.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Utility ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.is-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.is-reveal.is-visible { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }
.only-mobile { display: none; }
.only-desktop { display: block; }
@media (max-width: 780px) {
  .only-mobile { display: block; }
  .only-desktop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   INNER PAGES (collections / about / contact)
   ================================================================ */

body.page--inner { padding-top: 72px; background: var(--rk-paper); }
@media (max-width: 780px) { body.page--inner { padding-top: 60px; } }

.header__nav a.is-active {
  color: var(--rk-ink);
  border-bottom: 2px solid var(--rk-pink);
  padding-bottom: 4px;
}

/* ---------- Page Hero ---------- */
.page-hero {
  padding: var(--sp-8) 0 var(--sp-5);
  text-align: center;
  background: linear-gradient(180deg, var(--rk-cream) 0%, var(--rk-paper) 100%);
}
.page-hero__title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}
.page-hero__sub {
  font-size: 17px;
  color: var(--rk-ink-sub);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  position: sticky;
  top: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 40;
  border-bottom: 1px solid var(--rk-line);
  padding: 14px 0;
}
@media (max-width: 780px) { .filter-bar { top: 60px; } }
.filter-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.filter-bar__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar__count {
  font-size: 13px;
  color: var(--rk-ink-sub);
  font-variant-numeric: tabular-nums;
}
.chip {
  background: transparent;
  border: 1.5px solid var(--rk-line);
  border-radius: var(--r-pill);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rk-ink);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--rk-ink); }
.chip.is-active {
  background: var(--rk-ink);
  color: var(--rk-paper);
  border-color: var(--rk-ink);
}

.collections-empty {
  text-align: center;
  padding: var(--sp-8) 0;
  color: var(--rk-ink-sub);
}

/* ---------- Bottom CTA ---------- */
.bottom-cta {
  background: var(--rk-yellow);
  padding: var(--sp-8) 0;
  text-align: center;
}
.bottom-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin-bottom: 10px;
}
.bottom-cta p {
  font-size: 17px;
  color: rgba(11,11,11,0.75);
  max-width: 520px;
  margin: 0 auto var(--sp-4);
}
.bottom-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- About Page ---------- */
.about-intro { padding: var(--sp-6) 0 var(--sp-8); }
.about-intro__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (max-width: 900px) { .about-intro__grid { grid-template-columns: 1fr; } }
.about-intro__media {
  aspect-ratio: 4/5;
  border-radius: 0;              /* A안: 샤프 엣지 */
  overflow: hidden;
  background: var(--rk-cream);
}
.about-intro__media img { width: 100%; height: 100%; object-fit: cover; }
/* 로고 이미지는 잘리지 않게 가운데 배치 + 패딩 */
.about-intro__media--logo {
  background: var(--rk-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 64px);
}
.about-intro__media--logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.about-intro__body h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 18px;
}
.about-intro__body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--rk-ink-sub);
  margin-bottom: 14px;
}

.about-stats {
  background: var(--rk-ink);
  color: var(--rk-paper);
  padding: var(--sp-7) 0;
}
.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 780px) { .about-stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); } }
.about-stat { text-align: center; }
.about-stat__num {
  font-family: var(--ff-en);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--rk-yellow);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.about-stat__label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.about-values { padding: var(--sp-8) 0; }
.about-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .about-values__grid { grid-template-columns: repeat(2, 1fr); } }
.about-value {
  border: 1px solid var(--rk-line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  transition: all 0.3s var(--ease);
}
.about-value:hover {
  border-color: var(--rk-ink);
  transform: translateY(-4px);
}
.about-value__t { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.about-value__d { font-size: 14px; color: var(--rk-ink-sub); line-height: 1.55; }

.about-story { padding: var(--sp-8) 0; background: var(--rk-cream); }
.about-story__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
  margin-bottom: var(--sp-7);
}
.about-story__item:last-child { margin-bottom: 0; }
.about-story__item.is-reverse .about-story__media { order: 2; }
@media (max-width: 900px) {
  .about-story__item,
  .about-story__item.is-reverse { grid-template-columns: 1fr; }
  .about-story__item.is-reverse .about-story__media { order: 0; }
}
.about-story__media {
  aspect-ratio: 5/4;
  border-radius: 0;              /* A안: 샤프 엣지 */
  overflow: hidden;
  background: var(--rk-paper);
}
/* 흰 여백 없이 프레임을 꽉 채우되 상단(얼굴) 우선 보존 */
.about-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-story__body h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.about-story__body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--rk-ink-sub);
}
.about-story__num {
  display: inline-block;
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--rk-ink-sub);
  margin-bottom: 10px;
}

.about-timeline { padding: var(--sp-8) 0; }
.about-timeline__title {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: var(--sp-6);
}
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rk-line);
}
.timeline__item { position: relative; padding: 10px 0 var(--sp-4); }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rk-yellow);
  border: 3px solid var(--rk-ink);
}
.timeline__year {
  font-family: var(--ff-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rk-ink);
  margin-bottom: 4px;
}
.timeline__body { font-size: 16px; color: var(--rk-ink-sub); line-height: 1.6; }

/* ---------- Contact Page ---------- */
.contact-tiles { padding: var(--sp-6) 0 var(--sp-3); }
.contact-tiles__grid {
  display: flex;
  flex-direction: row;            /* 항상 가로 정렬 */
  justify-content: center;        /* 페이지 중앙 */
  align-items: stretch;
  flex-wrap: nowrap;              /* 줄바꿈 방지 — 항상 한 줄에 3개 */
  gap: var(--sp-3);
}
.contact-tiles__grid--centered {
  max-width: 100%;
  margin: 0 auto;
}
/* 핵심: width:100% 무력화하고 flex 고정 너비로 — 한 줄에 가로 3개 강제 */
.contact-tiles__grid .contact-tile {
  flex: 0 1 260px;                /* basis 260px, 좁은 화면에선 줄어듦 */
  width: auto;
  min-width: 0;                   /* flex item 최소 너비 0 허용 */
}
@media (max-width: 520px) {
  .contact-tiles__grid { gap: 8px; }
  .contact-tiles__grid .contact-tile { padding: 12px; flex: 1 1 0; }
  .contact-tile__t { font-size: 13px; }
  .contact-tile__d { font-size: 11px; }
}
.contact-tile {
  background: var(--rk-cream);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  text-align: left;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  max-width: 260px;
}
.contact-tile:hover {
  border-color: var(--rk-ink);
  transform: translateY(-4px);
}
.contact-tile--static {
  cursor: default;
  text-align: center;
}
.contact-tile--static:hover {
  border-color: transparent;
  transform: none;
}
.contact-tile__ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--rk-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.contact-tile--static .contact-tile__ico { margin-left: auto; margin-right: auto; }
.contact-tile__t { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.contact-tile__d { font-size: 14px; color: var(--rk-ink-sub); line-height: 1.5; }

.contact-channels {
  padding: var(--sp-7) 0;
  background: var(--rk-cream);
}
.contact-channels h2 {
  text-align: center;
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: var(--sp-5);
}
.contact-channels__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .contact-channels__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact-channels__grid { grid-template-columns: 1fr; } }
.channel-card {
  background: var(--rk-paper);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}
.channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--rk-ink);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.channel-card__t { font-size: 17px; font-weight: 600; margin: 12px 0 4px; }
.channel-card__d { font-size: 13px; color: var(--rk-ink-sub); line-height: 1.5; }
.channel-card__val {
  font-size: 13px;
  color: var(--rk-ink);
  margin-top: 8px;
  word-break: break-all;
  font-family: var(--ff-en);
}

/* Contact Form */
.contact-form-wrap { padding: var(--sp-8) 0; }
.contact-form-wrap__inner { max-width: 640px; margin: 0 auto; }
.contact-form-wrap h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: var(--sp-5);
}
.contact-form { display: grid; gap: var(--sp-3); }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 500; color: var(--rk-ink); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1.5px solid var(--rk-line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  background: var(--rk-paper);
  color: var(--rk-ink);
  transition: border-color 0.2s var(--ease);
  box-sizing: border-box;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--rk-ink);
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
@media (max-width: 620px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--rk-ink-sub);
}
.form-agree input { margin-top: 3px; }
.form-agree--centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-top: 12px;
}
.form-agree--centered .form-agree__text { display: inline-block; }
.form-agree--centered input[type="checkbox"] { margin-top: 0; }
.form-agree__link {
  margin-left: 6px;
  color: var(--rk-ink);
  text-decoration: underline;
  font-size: 13px;
}
.form-agree__link:hover { color: var(--rk-ink-2, #333); }
.form-submit-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.form-submit-row .btn { min-width: 220px; justify-content: center; text-align: center; }
.form-thanks {
  padding: var(--sp-4);
  background: var(--rk-yellow);
  border-radius: var(--r-md);
  text-align: center;
  font-weight: 500;
  color: var(--rk-ink);
  display: none;
}

/* B2B Section */
.contact-b2b {
  background: var(--rk-ink);
  color: var(--rk-paper);
  padding: var(--sp-8) 0;
}
.contact-b2b__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (max-width: 900px) { .contact-b2b__grid { grid-template-columns: 1fr; } }
.contact-b2b h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--rk-yellow);
  margin-bottom: 18px;
}
.contact-b2b p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--sp-3);
}
.contact-b2b ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4) 0;
}
.contact-b2b ul li {
  position: relative;
  padding-left: 24px;
  padding-bottom: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.contact-b2b ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rk-yellow);
}

/* ───────── 품절 배지 / 상세 모달 품절 로우 ───────── */
.collection-card__soldout {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: rgba(15, 15, 15, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.detail-product-row.is-soldout {
  opacity: 0.55;
}
.detail-product-row.is-soldout .detail-product-row__price {
  text-decoration: line-through;
  color: #888;
}
.detail-product-row .btn.is-disabled,
.detail-product-row .btn[disabled] {
  pointer-events: none;
  cursor: not-allowed;
  background: #eaeaea;
  color: #888;
  border-color: #eaeaea;
}


/* ================================================================
   MOBILE TUNE-UP — 작은 화면 미세 보정
   ================================================================ */

/* iOS Safari tap 하이라이트 깔끔하게 */
* { -webkit-tap-highlight-color: rgba(0,0,0,0.05); }

/* 모바일 헤더 약간 컴팩트 */
@media (max-width: 520px) {
  .header__inner { padding: 0 16px; height: 60px; }
  .hero__title { font-size: clamp(40px, 11vw, 72px); }
  .hero__sub { font-size: 14px; }
}

/* 컬렉션 페이지 필터 칩 — 좁은 화면에서 가로 스크롤 */
@media (max-width: 520px) {
  .filter-bar__chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar__chips::-webkit-scrollbar { display: none; }
  .filter-bar__chips .chip { flex-shrink: 0; }
}

/* 상세 모달 — 모바일에서 답답함 해소: 살짝의 여백 + 사진 영역 축소 */
@media (max-width: 520px) {
  .detail-modal { padding: 12px 0; }
  .detail-modal__panel { width: calc(100vw - 16px); margin: 0 auto; border-radius: 6px; }
  .detail-modal__media { min-height: 240px; max-height: 50vh; }
  .detail-modal__media img { object-position: center top; }
  .detail-modal__body { padding: 20px 16px; }
  .detail-modal__name { font-size: 24px; }
}

/* 룩북 — 모바일 SHOP 버튼 작게 */
@media (max-width: 520px) {
  .lookbook-item__shop-btn { padding: 4px 8px; font-size: 9px; }
}

/* 푸터 — 모바일에서 한 줄로 늘어선 사업자 정보 줄바꿈 */
@media (max-width: 520px) {
  .footer__biz { flex-direction: column; gap: 4px; }
  .footer__biz span { display: block; }
}

/* 모바일에서 페이지 히어로 텍스트 크기 축소 */
@media (max-width: 520px) {
  .page-hero__title { font-size: clamp(28px, 7vw, 36px); }
  .page-hero__sub { font-size: 14px; }
}
