/* ============================================
   KAEMA — Korean Footwear B2B Wholesale
   Refined editorial minimalism · leather palette
   ============================================ */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* === Tokens === */
:root {
  /* Leather palette */
  --espresso: #2A1B12;
  --cordovan: #4A2818;
  --leather: #6F4A2D;
  --tan: #B8956A;
  --champagne: #D4B998;

  --cream: #F4EEDF;
  --parchment: #FAF6ED;
  --paper: #FFFFFF;

  --ink: #1A1410;
  --ink-2: #4A3E33;
  --ink-3: #8B7E70;
  --ink-4: #B5AA9D;

  --line: #E5DCC8;
  --line-2: #D4C8AE;

  --sage: #6B8770;
  --amber: #C2691E;
  --rust: #9E4A2A;

  --shadow-sm: 0 1px 2px rgba(45, 31, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(45, 31, 23, 0.08);
  --shadow-lg: 0 24px 48px rgba(45, 31, 23, 0.12);

  /* Type */
  --display: 'Fraunces', 'Noto Serif KR', Georgia, serif;
  --body: 'Plus Jakarta Sans', 'IBM Plex Sans KR', -apple-system, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --max: 1440px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 180ms;
  --t-base: 280ms;
  --t-slow: 600ms;
}

/* === Body === */
body {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "kern";
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(45, 31, 23, 0.018) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 0;
}
main { position: relative; z-index: 1; }

/* === Type utilities === */
.h-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.h-display {
  font-family: var(--display);
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}
.h-section {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.t-mono { font-family: var(--mono); }
.t-dim { color: var(--ink-3); }
.t-accent { color: var(--leather); }
em.wonk {
  font-style: italic;
  color: var(--leather);
  font-variation-settings: "opsz" 144, "WONK" 1, "SOFT" 100;
}

/* === Layout === */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 238, 223, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
  width: 100%;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__mark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  font-variation-settings: "opsz" 144, "WONK" 1;
  color: var(--espresso);
}
.logo__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 5px;
}
.nav__tabs {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
}
.nav__tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 26px 0;
  border-bottom: 1.5px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
}
.nav__tab:hover { color: var(--espresso); }
.nav__tab--active { color: var(--espresso); border-bottom-color: var(--espresso); }
.nav__tab-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: var(--espresso);
  color: var(--cream);
  padding: 2px 6px;
  border-radius: 1px;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav__lang {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-2);
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 1px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}
.nav__lang:hover { border-color: var(--espresso); }
.nav__inquiry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--espresso);
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav__inquiry-count {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--espresso);
  color: var(--cream);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary { background: var(--espresso); color: var(--cream); }
.btn--primary:hover { background: var(--cordovan); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn--secondary:hover { background: var(--espresso); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--ink-2); padding: 0; height: auto; }
.btn--ghost:hover { color: var(--espresso); }
.btn--lg { height: 56px; padding: 0 32px; font-size: 15px; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* Whatsapp-tinted button */
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1FB956; }

/* === Hero === */
.hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* === Search Bar (homepage hero) === */
.search-bar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  align-items: stretch;
  margin-top: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.search-bar__field {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 14px 22px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background var(--t-fast) var(--ease);
}
.search-bar__field:hover { background: var(--parchment); }
.search-bar__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.search-bar__value {
  font-size: 0.9375rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-bar__field--upload .search-bar__value { color: var(--leather); }
.search-bar__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.search-bar__btn {
  background: var(--espresso);
  color: var(--cream);
  border: 0;
  padding: 0 2.5rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.search-bar__btn:hover { background: var(--cordovan); }

/* === Section === */
.section { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section--dense { padding: clamp(1.5rem, 3vw, 2rem) 0; }
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 2rem;
}
.section__title-wrap { display: flex; flex-direction: column; gap: 6px; }
.section__korean {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  font-weight: 400;
  font-style: italic;
}
.section__nav { display: flex; gap: 4px; }
.section__nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast) var(--ease);
  color: var(--ink-2);
  background: var(--paper);
}
.section__nav-btn:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.section__nav-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* === Product Cards === */
.cards {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.cards::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--t-base) var(--ease);
  cursor: pointer;
}
.card:hover { transform: translateY(-3px); }
.card__media {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(244, 238, 223, 0.96);
  color: var(--espresso);
  padding: 5px 9px;
  border-radius: 1px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.card__sku {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
}
.card__title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 450;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.card__title-kr {
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 400;
  font-style: italic;
  margin-top: 2px;
}
.card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--ink-2);
}
.card__row-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card__price {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  color: var(--espresso);
}
.card__margin {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sage);
  font-weight: 500;
}
.card__moq {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}
.card__stock-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  margin-right: 6px;
}
.card__stock-dot--low { background: var(--amber); }

/* === Custom CTA Banner === */
.cta-banner {
  background: var(--espresso);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem);
  border-radius: 2px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(184, 149, 106, 0.35), transparent 70%);
  pointer-events: none;
}
.cta-banner__content { position: relative; z-index: 1; max-width: 50ch; }
.cta-banner__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1.25rem;
}
.cta-banner__title {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 144;
}
.cta-banner__title em {
  font-style: italic;
  color: var(--champagne);
  font-variation-settings: "opsz" 144, "WONK" 1, "SOFT" 100;
}
.cta-banner__lede {
  color: rgba(244, 238, 223, 0.72);
  font-size: 15px;
  line-height: 1.6;
}
.cta-banner__btn {
  background: var(--cream);
  color: var(--espresso);
  position: relative;
  z-index: 1;
}
.cta-banner__btn:hover { background: var(--paper); }

/* === Footer === */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding: 3rem 0 2rem;
  background: var(--parchment);
  position: relative;
  z-index: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand-mark {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variation-settings: "opsz" 144, "WONK" 1;
  color: var(--espresso);
  margin-bottom: 0.5rem;
}
.footer__brand-desc {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 32ch;
  line-height: 1.6;
}
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer__col li {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.footer__col a:hover { color: var(--espresso); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* === Search Page === */
.search-meta {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 16px;
  margin-top: 2rem;
}
.search-meta__thumb {
  width: 56px;
  height: 56px;
  border-radius: 1px;
  background: var(--parchment) center/cover no-repeat;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.search-meta__info { flex: 1; }
.search-meta__title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 450;
  color: var(--ink);
  margin-bottom: 2px;
}
.search-meta__sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.search-meta__action {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--leather);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
}

.search-results-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
  padding-top: 2rem;
}
.search-filters { position: sticky; top: calc(var(--nav-h) + 24px); }
.filter-group {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; }
.filter-group__title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  margin-bottom: 14px;
  font-weight: 500;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin: 0 4px 8px 0;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background: var(--paper);
}
.filter-chip:hover { border-color: var(--espresso); }
.filter-chip--active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.filter-range {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.filter-range input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 1px;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--paper);
  outline: none;
}
.filter-range input:focus { border-color: var(--espresso); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
}
.results-section { margin-bottom: 3rem; }
.results-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.results-section__title-wrap { display: flex; align-items: baseline; gap: 1rem; }
.match-score {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  background: var(--sage);
  color: var(--paper);
  padding: 4px 9px;
  border-radius: 1px;
  text-transform: uppercase;
}
.match-score--similar { background: var(--leather); }
.results-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.card--results { flex: 1; min-width: 0; }

/* === Product Page === */
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding: 1.5rem 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a:hover { color: var(--espresso); }
.breadcrumb-sep { color: var(--line-2); }

.product-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: start;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}
.gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: start;
}
.gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gallery__thumb {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--paper) center/cover no-repeat;
  transition: border-color var(--t-fast) var(--ease);
  overflow: hidden;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb--active { border: 1.5px solid var(--espresso); }
.gallery__main {
  aspect-ratio: 4/5;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.product-info > * + * { margin-top: 1.5rem; }
.product-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.product-title {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(2rem, 3.5vw, 2.625rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 0.5rem !important;
  font-variation-settings: "opsz" 144;
}
.product-title em {
  font-style: italic;
  color: var(--leather);
  font-variation-settings: "opsz" 144, "WONK" 1, "SOFT" 100;
}
.product-title-kr {
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink-3);
  font-weight: 400;
  font-style: italic;
  margin-top: 6px !important;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 13px;
  color: var(--ink-2);
}
.product-meta__item { display: flex; flex-direction: column; gap: 4px; }
.product-meta__label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.product-meta__value {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}

/* Pricing tier */
.pricing-tiers {
  background: var(--parchment);
  border: 1px solid var(--line);
}
.pricing-tiers__head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pricing-tiers__title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  font-weight: 500;
}
.pricing-tiers__sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--leather);
  letter-spacing: 0.1em;
}
.pricing-tier {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  gap: 1.5rem;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
  background: var(--paper);
}
.pricing-tier:last-child { border-bottom: none; }
.pricing-tier:hover { background: var(--cream); }
.pricing-tier--selected {
  background: var(--cream);
  box-shadow: inset 3px 0 0 var(--espresso);
}
.pricing-tier__qty {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 450;
  letter-spacing: -0.005em;
}
.pricing-tier__qty-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 500;
}
.pricing-tier__price {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--espresso);
}
.pricing-tier__discount {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sage);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Stock */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
}
.stock-cell {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.stock-cell:last-child { border-right: none; }
.stock-cell__label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 8px;
  font-weight: 500;
}
.stock-cell__value {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.stock-cell__sub {
  font-size: 11.5px;
  color: var(--sage);
  margin-top: 4px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}
.stock-cell__sub--warn { color: var(--amber); }
.stock-cell__sub--info { color: var(--ink-3); }

/* Quantity input */
.qty-row {
  display: flex;
  align-items: end;
  gap: 1rem;
  padding-top: 0.5rem;
}
.qty-input-wrap { flex-shrink: 0; }
.qty-input-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 500;
}
.qty-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  width: 140px;
}
.qty-input button {
  width: 40px;
  height: 48px;
  font-size: 18px;
  color: var(--ink-2);
  font-family: var(--display);
  font-weight: 300;
}
.qty-input button:hover { background: var(--cream); color: var(--espresso); }
.qty-input input {
  flex: 1;
  height: 48px;
  width: 60px;
  text-align: center;
  border: none;
  outline: none;
  font-family: var(--display);
  font-size: 17px;
  background: transparent;
}

/* Spec table */
.spec-section { padding: 3rem 0; border-top: 1px solid var(--line); }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.spec-row__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.spec-row__value {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 450;
}

/* === Custom Page === */
.custom-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.custom-hero__title {
  font-family: var(--display);
  font-weight: 280;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  font-variation-settings: "opsz" 144;
}
.custom-hero__title em {
  font-style: italic;
  color: var(--leather);
  font-variation-settings: "opsz" 144, "WONK" 1, "SOFT" 100;
  font-weight: 300;
}
.custom-hero__lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 42ch;
  margin-bottom: 2rem;
}
.custom-hero__media {
  aspect-ratio: 4/5;
  background: var(--leather);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.custom-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process__step { display: flex; flex-direction: column; gap: 1rem; }
.process__num {
  font-family: var(--display);
  font-size: 4.5rem;
  font-weight: 280;
  font-style: italic;
  color: var(--leather);
  line-height: 1;
  font-variation-settings: "opsz" 144, "WONK" 1, "SOFT" 100;
}
.process__title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.process__desc {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

/* Form */
.form { max-width: 760px; padding: 4rem 0; }
.form__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.form__field:first-of-type { padding-top: 0; }
.form__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  font-weight: 500;
}
.form__hint {
  font-family: var(--body);
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 8px;
  font-style: italic;
}
.form__input,
.form__textarea {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  background: transparent;
  border: none;
  outline: none;
  padding: 4px 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--ink-4); }
.form__textarea { resize: vertical; min-height: 80px; }
.form__upload-area {
  border: 1.5px dashed var(--line-2);
  background: var(--paper);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}
.form__upload-area:hover { border-color: var(--espresso); }
.form__upload-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  color: var(--leather);
}
.form__upload-text {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.form__upload-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.option-tile {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background: var(--paper);
}
.option-tile:hover { border-color: var(--espresso); }
.option-tile--selected {
  border-color: var(--espresso);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--espresso);
}
.option-tile__title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.option-tile__sub {
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.form__submit-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2.5rem;
}
.form__submit-note {
  font-size: 12.5px;
  color: var(--ink-3);
  font-style: italic;
  flex: 1;
}

/* Inquiry page */
.inquiry-header { padding: 3rem 0 1.5rem; }
.inquiry-header__title {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 0.5rem;
}
.inquiry-header__sub { color: var(--ink-2); font-size: 15px; }

.inquiry-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  align-items: start;
}
.inquiry-items {
  border: 1px solid var(--line);
  background: var(--paper);
}
.inquiry-item {
  display: grid;
  grid-template-columns: 96px 1fr 120px 140px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.inquiry-item:last-child { border-bottom: none; }
.inquiry-item__media {
  aspect-ratio: 1;
  background: var(--parchment) center/cover no-repeat;
  border: 1px solid var(--line);
  overflow: hidden;
}
.inquiry-item__media img { width: 100%; height: 100%; object-fit: cover; }
.inquiry-item__title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 450;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.inquiry-item__sku {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.inquiry-item__variant {
  font-size: 12.5px;
  color: var(--ink-2);
}
.inquiry-item__qty input {
  width: 88px;
  text-align: center;
  height: 40px;
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 16px;
  outline: none;
  background: var(--paper);
}
.inquiry-item__qty input:focus { border-color: var(--espresso); }
.inquiry-item__qty-unit {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-top: 6px;
  text-align: center;
  text-transform: uppercase;
}
.inquiry-item__price {
  text-align: right;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
.inquiry-item__sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-top: 4px;
  text-align: right;
}
.inquiry-item__remove {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink-3);
  transition: color var(--t-fast) var(--ease);
}
.inquiry-item__remove:hover { color: var(--rust); }

.inquiry-add-custom {
  padding: 1.5rem;
  background: var(--parchment);
  border: 1px dashed var(--line-2);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.inquiry-add-custom__icon {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--leather);
  flex-shrink: 0;
}
.inquiry-add-custom__text { flex: 1; }
.inquiry-add-custom__title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
}
.inquiry-add-custom__sub { font-size: 12.5px; color: var(--ink-3); }

.inquiry-summary {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2rem;
}
.inquiry-summary__title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row__label { color: var(--ink-2); font-size: 13px; }
.summary-row__value {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 450;
  letter-spacing: -0.005em;
}
.summary-row--total {
  border-bottom: none;
  border-top: 1.5px solid var(--espresso);
  padding-top: 1.25rem;
  margin-top: 1rem;
}
.summary-row--total .summary-row__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-3);
}
.summary-row--total .summary-row__value {
  font-size: 30px;
  color: var(--espresso);
  font-variation-settings: "opsz" 144;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1.5rem;
}
.summary-note {
  margin-top: 1.25rem;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-style: italic;
}

.summary-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--parchment);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  resize: vertical;
  min-height: 70px;
  margin-top: 1rem;
  transition: border-color var(--t-fast) var(--ease);
}
.summary-textarea:focus { border-color: var(--espresso); }

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.fade-up { animation: fadeUp var(--t-slow) var(--ease) both; }
.fade-up-1 { animation-delay: 60ms; }
.fade-up-2 { animation-delay: 140ms; }
.fade-up-3 { animation-delay: 220ms; }
.fade-up-4 { animation-delay: 300ms; }
.fade-up-5 { animation-delay: 380ms; }

/* Image fallback shimmer (only on elements with <img> children) */
.card__media,
.gallery__main,
.gallery__thumb,
.inquiry-item__media,
.custom-hero__media {
  background-color: var(--parchment);
  background-image: linear-gradient(110deg, var(--parchment) 30%, var(--cream) 50%, var(--parchment) 70%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
.card__media img,
.gallery__main img,
.gallery__thumb img,
.inquiry-item__media img,
.custom-hero__media img {
  animation: none;
  position: relative;
  z-index: 1;
}
.search-meta__thumb {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* === Responsive === */
@media (max-width: 1100px) {
  .product-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .search-results-layout { grid-template-columns: 1fr; }
  .search-filters { position: static; }
  .custom-hero { grid-template-columns: 1fr; }
  .inquiry-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .inquiry-summary { position: static; }
  .nav__inner { gap: 2rem; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav__tabs { display: none; }
  .nav__inquiry span:not(.nav__inquiry-count) { display: none; }
  .search-bar { grid-template-columns: 1fr; border-radius: 18px; }
  .search-bar__field { border-right: none; border-bottom: 1px solid var(--line); }
  .search-bar__btn { width: 100%; padding: 14px 0; }
  .results-grid { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr 1fr; }
  .stock-grid { grid-template-columns: 1fr; }
  .stock-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .stock-cell:last-child { border-bottom: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; order: 2; }
  .gallery__thumb { width: 64px; height: 64px; }
  .inquiry-item { grid-template-columns: 80px 1fr; gap: 1rem; }
  .inquiry-item__qty,
  .inquiry-item__price-wrap { grid-column: 2; }
  .form__submit-row { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cta-banner { grid-template-columns: 1fr; gap: 1.5rem; }
  .spec-grid { grid-template-columns: 1fr; }
}

/* === i18n: Language switcher === */
.nav__lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 1px;
  overflow: hidden;
  height: 28px;
  padding: 0;
  background: transparent;
  cursor: default;
  transition: border-color var(--t-fast) var(--ease);
}
.nav__lang:hover { border-color: var(--ink-3); }
.nav__lang-btn {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  background: transparent;
  border: none;
  padding: 0 9px;
  height: 100%;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  border-radius: 0;
}
.nav__lang-btn + .nav__lang-btn {
  border-left: 1px solid var(--line-2);
}
.nav__lang-btn:hover { color: var(--espresso); }
.nav__lang-btn--active {
  background: var(--espresso);
  color: var(--cream);
}
.nav__lang-btn--active:hover { color: var(--cream); }

/* === i18n: KR/ZH font fallbacks === */
body.lang-ko {
  font-family: 'IBM Plex Sans KR', 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
}
body.lang-ko .h-display,
body.lang-ko .h-section,
body.lang-ko .hero__title,
body.lang-ko .product-title,
body.lang-ko .custom-hero__title,
body.lang-ko .cta-banner__title,
body.lang-ko .inquiry-header__title,
body.lang-ko .logo__mark {
  font-family: 'Noto Serif KR', 'Fraunces', Georgia, serif;
}

body.lang-zh {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
}
body.lang-zh .h-display,
body.lang-zh .h-section,
body.lang-zh .hero__title,
body.lang-zh .product-title,
body.lang-zh .custom-hero__title,
body.lang-zh .cta-banner__title,
body.lang-zh .inquiry-header__title,
body.lang-zh .logo__mark {
  font-family: 'Songti SC', 'Noto Serif SC', 'Fraunces', Georgia, serif;
}
