﻿/* Shared navigation and home composition. Content itself is supplied by public APIs. */
.site-search-form { display: flex; align-items: center; min-width: min(27vw, 320px); height: 42px; border-bottom: 1px solid var(--ink); }
.main-nav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.main-nav > * { min-width: 0; }
.site-search-form input { min-width: 0; flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .78rem; outline: 0; }
.site-search-form input::placeholder { color: var(--muted); opacity: 1; }
.site-search-form button { min-width: 44px; min-height: 42px; border: 0; background: transparent; cursor: pointer; font-size: .7rem; letter-spacing: .08em; }
.site-search-form:focus-within { border-bottom-width: 2px; }
.desktop-nav [data-category-navigation] { display: contents; }
.desktop-nav [data-category-navigation] a { white-space: nowrap; }
.desktop-nav--left { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.desktop-nav--left::-webkit-scrollbar { height: 4px; }
.desktop-nav--left::-webkit-scrollbar-thumb { background: var(--line); }
.desktop-nav--left > a, .desktop-nav--left [data-category-navigation] > a { flex: 0 0 auto; }
.mobile-actions, .mobile-search-tray { display: none; }
.home-hero { min-height: calc(100vh - 110px); min-height: calc(100svh - 110px); }
.home-hero-track, .home-hero-slide { min-height: inherit; }
.home-hero-track { position: relative; z-index: 0; }
.home-hero-slide { position: relative; display: grid; }
.home-hero-slide[hidden] { display: none; }
.home-hero-slide .hero-copy, .home-hero-slide .hero-media { grid-area: 1 / 1; }
.home-hero-slide .hero-copy { z-index: 2; }
.home-hero .hero-media { pointer-events: none; }
.home-hero-controls { position: absolute; z-index: 10; right: clamp(1.5rem, 4vw, 4rem); bottom: clamp(1.4rem, 4vw, 3rem); display: flex; align-items: center; gap: .45rem; pointer-events: auto; }
.home-hero-controls[hidden] { display: none !important; }
.home-hero-controls button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(36,33,31,.5); background: color-mix(in srgb, var(--paper) 72%, transparent); cursor: pointer; }
.home-hero-controls button:hover, .home-hero-controls button:focus-visible { border-color: var(--ink); background: var(--paper); outline: 0; }
.home-hero-dots { display: flex; align-items: center; gap: .45rem; }
.home-hero-dots button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; position: relative; }
.home-hero-dots button::after { position: absolute; inset: 16px; border: 1px solid var(--ink); border-radius: 50%; content: ""; }
.home-hero-dots button[aria-selected="true"]::after { background: var(--ink); }
.home-categories { background: var(--white); }
.home-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.home-category-card { min-height: 360px; border: 1px solid var(--line); }
.home-category-card a { position: relative; display: grid; min-height: inherit; padding: 1.5rem; overflow: hidden; align-content: end; background: var(--navy); }
.home-category-card a::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(24,35,48,.84)); content: ""; }
.home-category-card img { position: absolute; inset: 0; transition: transform .45s ease; }
.home-category-card a:hover img, .home-category-card a:focus-visible img { transform: scale(1.025); }
.home-category-card h3 { position: relative; z-index: 1; margin: 0; color: var(--paper); font-family: var(--display); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 400; }
.home-category-error { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.home-category-error p { color: var(--muted); }
.home-category-error button { min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; cursor: pointer; }
[data-home-page] .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
[data-home-page] .product-grid .product-action { min-width: 0; width: 100%; max-width: 100%; }
.home-product-section--new { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 72%, white); }
@media (max-width: 1180px) and (min-width: 961px) { .site-search-form { min-width: 190px; } .desktop-nav { gap: .85rem; font-size: .66rem; } }
@media (max-width: 960px) {
  .utility-bar { display: none; }
  .site-header.is-scrolled .utility-bar { display: none; }
  .main-nav { grid-template-columns: 88px minmax(96px, 1fr) 88px; min-height: 72px; padding: 0 16px; }
  .menu-toggle { justify-self: start; }
  .wordmark { justify-self: center; }
  .mobile-actions { display: grid; grid-template-columns: 44px 44px; justify-self: end; }
  .mobile-search-toggle, .mobile-bag { display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; gap: .18rem; padding: 0; border: 0; background: transparent; color: var(--navy); font-size: .7rem; letter-spacing: .04em; }
  .mobile-search-toggle { border: 1px solid transparent; cursor: pointer; }
  .mobile-search-toggle svg, .mobile-bag svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
  .mobile-search-toggle:focus-visible, .mobile-bag:focus-visible { border-color: var(--navy); outline: 0; }
  .mobile-search-tray { position: absolute; top: 72px; right: 0; left: 0; z-index: 95; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; padding: .75rem 16px 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .mobile-search-tray:not([hidden]) { display: grid; }
  .mobile-search-tray input { width: 100%; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; }
  .mobile-search-tray button { min-width: 52px; min-height: 44px; border: 1px solid var(--navy); background: var(--navy); color: var(--paper); cursor: pointer; }
  .mobile-menu { top: 72px; min-height: calc(100dvh - 72px); max-height: calc(100dvh - 72px); }
  .mobile-menu .mobile-category-links { display: contents; }
  .mobile-menu .mobile-category-links a { font-size: 1.05rem; }
  .home-hero { min-height: calc(100svh - 72px); }
  .hero-copy { padding-top: 4rem; padding-bottom: 6rem; }
  .home-hero-controls { right: 1rem; bottom: 1rem; }
  .home-hero-controls button { background: color-mix(in srgb, var(--paper) 82%, transparent); }
  .home-category-grid { grid-template-columns: 1fr; }
  .home-category-card { min-height: 280px; }
  [data-home-page] .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 560px) {
  /* Five 44px controls plus two 44px arrows fit 320px without shrinking touch targets. */
  .home-hero-controls { right: 6px; left: 6px; justify-content: center; gap: 0; }
  .home-hero-dots { gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .home-hero-slide { transition: none; } }

/* Home-only editorial composition. Shared navigation is maintained in editorial.css. */
[data-home-page] {
  --home-rule: color-mix(in srgb, var(--ink) 16%, transparent);
  --home-gutter: clamp(1.25rem, 4vw, 4.5rem);
  background: var(--white);
}
[data-home-page] .home-hero {
  min-height: 0;
  border-bottom: 0;
  background: var(--white);
  overflow: visible;
}
[data-home-page] .home-hero-track,
[data-home-page] .home-hero-slide { min-height: 0; }
[data-home-page] .home-hero-slide {
  display: grid;
  grid-template-rows: min(68vw, 720px) auto;
  background: var(--white);
}
[data-home-page] .home-hero-slide[hidden] { display: none; }
[data-home-page] .home-hero-slide .hero-media {
  position: relative;
  grid-area: 1 / 1;
  margin: 0;
  background: var(--paper);
}
[data-home-page] .home-hero-slide .hero-media::after { display: none; }
[data-home-page] .home-hero-slide .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
[data-home-page] .home-hero-slide .hero-copy {
  position: relative;
  grid-area: 2 / 1;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 154px;
  padding: 2.25rem var(--home-gutter) 2.25rem;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--ink);
  text-align: center;
}
[data-home-page] .home-hero .eyebrow {
  display: none;
  margin: 0 0 .55rem;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
[data-home-page] .home-hero .hero-slogan {
  gap: 1.25rem;
  max-width: none;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3.3rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
}
[data-home-page] .home-hero .hero-slogan-ko,
[data-home-page] .home-hero .hero-slogan-en { display: block; }
[data-home-page] .home-hero .hero-slogan-en {
  max-width: none;
  margin-top: 0;
  font-family: var(--display);
  font-size: .72em;
  font-style: italic;
  letter-spacing: .005em;
}
[data-home-page] .home-hero .hero-description {
  max-width: 48ch;
  margin: .7rem auto 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
}
[data-home-page] .home-hero .hero-actions {
  width: auto;
  margin-top: 1.5rem;
  justify-content: center;
  gap: .85rem 1.15rem;
}
[data-home-page] .home-hero .hero-actions .frame-button {
  width: auto;
  min-height: 44px;
  padding: 0 1rem;
  border-color: var(--ink);
  font-size: .68rem;
}
[data-home-page] .home-hero .hero-actions .text-link {
  min-height: 44px;
  font-size: .66rem;
}
[data-home-page] .home-hero-controls {
  right: clamp(1rem, 2.5vw, 2.5rem);
  bottom: calc(154px + 1rem);
  z-index: 3;
  gap: 0;
  padding: .2rem;
  border: 1px solid rgba(255, 255, 255, .56);
  background: rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
}
[data-home-page] .home-hero-controls button {
  border: 0;
  color: var(--ink);
  background: transparent;
}
[data-home-page] .home-hero-controls button:hover,
[data-home-page] .home-hero-controls button:focus-visible { background: rgba(255, 255, 255, .86); }
[data-home-page] .home-hero-dots { gap: 0; }
[data-home-page] .home-hero-dots button::after { inset: 18px; border-radius: 0; }

[data-home-page] .home-categories,
[data-home-page] .home-product-section {
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
  border: 0;
  background: var(--white);
}
[data-home-page] .home-product-section--new { border-top: 1px solid var(--home-rule); }
[data-home-page] .home-section-heading {
  display: block;
  margin-bottom: clamp(2.6rem, 5.5vw, 5.25rem);
  text-align: center;
}
[data-home-page] .home-section-heading > div { display: grid; gap: .7rem; justify-items: center; }
[data-home-page] .home-section-heading .section-kicker {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .28em;
}
[data-home-page] .home-section-heading h2,
[data-home-page] .home-product-section .section-heading h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: .16em;
}
[data-home-page] .home-section-heading .frame-button {
  width: auto;
  min-height: 44px;
  margin-top: 1rem;
  padding: 0;
  border-width: 0 0 1px;
  font-size: .66rem;
}
[data-home-page] .home-category-grid {
  gap: clamp(.75rem, 1.8vw, 1.5rem);
}
[data-home-page] .home-category-card {
  min-height: clamp(300px, 37vw, 540px);
  border: 0;
  background: var(--paper);
}
[data-home-page] .home-category-card a { padding: 1.4rem; }
[data-home-page] .home-category-card a::after { inset: 50% 0 0; background: linear-gradient(transparent, rgba(24, 35, 48, .56)); }
[data-home-page] .home-category-card h3 {
  max-width: 11ch;
  font-size: clamp(1.9rem, 3.5vw, 3.7rem);
  line-height: .95;
}
[data-home-page] .home-category-error { border-color: var(--home-rule); }

[data-home-page] .product-grid {
  gap: clamp(2.25rem, 4vw, 4rem) clamp(.65rem, 1.7vw, 1.4rem);
}
[data-home-page] .product-grid:has(> .product-card:only-child) { grid-template-columns: minmax(0, 320px); justify-content: center; }
[data-home-page] .product-card {
  min-width: 0;
  text-align: center;
}
[data-home-page] .product-media {
  aspect-ratio: 1;
  background: var(--white);
}
[data-home-page] .product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  transition: opacity .2s ease;
}
[data-home-page] .product-card:hover .product-media img,
[data-home-page] .product-card:focus-within .product-media img { transform: none; opacity: .88; }
[data-home-page] .product-card > div { padding: .95rem .25rem 0; }
[data-home-page] .product-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.015em;
}
[data-home-page] .product-card p,
[data-home-page] .product-card > div > span {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}
[data-home-page] .product-card .product-action {
  display: inline-flex;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  margin-top: .35rem;
  padding: 0 .1rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: .66rem;
  letter-spacing: .08em;
}
[data-home-page] .product-card .product-action:hover,
[data-home-page] .product-card .product-action:focus-visible { background: transparent; }

[data-home-page] .home-showroom {
  min-height: 0;
  border-top: 1px solid var(--home-rule);
  border-bottom: 0;
  background: var(--white);
  color: var(--ink);
}
[data-home-page] .home-showroom .showroom-media {
  min-height: 0;
  margin: 0;
  background: var(--paper);
}
[data-home-page] .home-showroom .showroom-media img {
  width: 100%;
  height: 100%;
  filter: none;
}
[data-home-page] .home-showroom-copy {
  min-height: 0;
  padding: clamp(3.5rem, 6vw, 6rem) var(--home-gutter);
  background: var(--white);
}
[data-home-page] .home-showroom-copy .section-kicker,
[data-home-page] .home-showroom-copy > p { color: var(--muted); }
[data-home-page] .home-showroom-copy h2 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(2.5rem, 4vw, 4.6rem);
}
[data-home-page] .home-showroom .showroom-details { margin-bottom: 1.5rem; }
[data-home-page] .home-showroom .showroom-details div { border-color: var(--home-rule); }
[data-home-page] .home-showroom .showroom-details dt,
[data-home-page] .home-showroom .showroom-details dd { color: var(--ink); }
[data-home-page] .home-showroom .frame-button { border-color: var(--ink); color: var(--ink); }
[data-home-page] .home-showroom .frame-button:hover,
[data-home-page] .home-showroom .frame-button:focus-visible { border-color: var(--warm-yellow); background: var(--warm-yellow); color: var(--ink); }

@media (max-width: 960px) {
  [data-home-page] .home-hero-slide { grid-template-rows: min(85vw, 440px) auto; }
  [data-home-page] .home-hero-slide .hero-copy {
    min-height: 112px;
    padding: 1rem 1.25rem 1.2rem;
  }
  [data-home-page] .home-hero .eyebrow { margin-bottom: .32rem; font-size: .55rem; letter-spacing: .2em; }
  [data-home-page] .home-hero .hero-slogan { gap: 12px; font-size: 1.125rem; line-height: 1.5; }
  [data-home-page] .home-hero .hero-slogan-ko { font-size: 1.125rem; line-height: 1.5; }
  [data-home-page] .home-hero .hero-slogan-en { margin-top: 0; max-width: none; font-size: 1.625rem; line-height: 1.3; }
  [data-home-page] .home-hero .hero-description { display: none; }
  [data-home-page] .home-hero .hero-actions { display: none; }
  [data-home-page] .home-hero-controls { right: .75rem; bottom: calc(112px + .75rem); }
  [data-home-page] .home-categories,
  [data-home-page] .home-product-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  [data-home-page] .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  [data-home-page] .home-category-card { min-height: min(72vw, 370px); }
  [data-home-page] .home-category-card h3 { font-size: clamp(1.7rem, 9vw, 2.9rem); }
  [data-home-page] .home-showroom { display: grid; grid-template-columns: 1fr; }
  [data-home-page] .home-showroom .showroom-media { aspect-ratio: 4 / 3; }
  [data-home-page] .home-showroom-copy { padding: 3.5rem 1.25rem 4rem; }
}

@media (max-width: 560px) {
  [data-home-page] .home-hero-slide { grid-template-rows: min(85vw, 440px) auto; }
  [data-home-page] .home-hero .hero-slogan { font-size: 1.125rem; }
  [data-home-page] .home-hero .hero-slogan-en { font-size: 1.625rem; }
  [data-home-page] .home-hero .hero-actions { display: none; }
  [data-home-page] .home-hero-controls { right: 6px; bottom: calc(112px + 6px); left: auto; }
  [data-home-page] .home-hero-controls button { width: 44px; height: 44px; }
  [data-home-page] .home-hero-dots { display: none; }
  [data-home-page] .home-section-heading { margin-bottom: 2.65rem; }
  [data-home-page] .home-section-heading .section-kicker { font-size: .58rem; letter-spacing: .24em; }
  [data-home-page] .home-section-heading h2,
  [data-home-page] .home-product-section .section-heading h2 { font-size: .98rem; letter-spacing: .17em; }
  [data-home-page] .home-section-heading .frame-button { margin-top: .8rem; }
  [data-home-page] .home-category-grid { gap: .55rem; }
  [data-home-page] .home-category-card { min-height: min(73vw, 330px); }
  [data-home-page] .product-grid { gap: 2.5rem .55rem; }
  [data-home-page] .product-card h3 { font-size: .9375rem; }
  [data-home-page] .product-card p,
  [data-home-page] .product-card > div > span { font-size: .8125rem; }
  [data-home-page] .product-card .product-action { font-size: .8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  [data-home-page] .product-media img { transition: none; }
}
