:root {
  --kj-amber-50: #fffbeb;
  --kj-amber-100: #fef3c7;
  --kj-amber-600: #d97706;
  --kj-amber-700: #b45309;
  --kj-stone-700: #44403c;
  --kj-max: 1280px;
}

/* Scoped into the same "base" cascade layer Tailwind's compiled
   islands.css already declares (theme, base, utilities — see that file's
   generated @layer blocks). Per the CSS Cascade Layers spec, unlayered
   styles always beat layered styles regardless of selector specificity —
   so an unlayered `a { color: inherit }` here would silently override
   every Tailwind text-color utility applied to an <a> tag (e.g.
   text-amber-700 on a CTA button), no matter how specific the class.
   Reusing the "base" layer name keeps this reset a low-priority default
   that Tailwind utilities correctly win over, instead of an invisible
   trap for every link in the React islands. */
@layer base {
  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    font-family: system-ui, "Pretendard", "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
    color: var(--kj-stone-700);
    background: #fff;
  }

  img {
    max-width: 100%;
    display: block;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

/* 헤더 자체가 문서 흐름의 높이를 차지한 채 상단에 붙습니다. 이전처럼
   fixed 레이어로 띄우지 않으므로 첫 화면의 워드마크가 메인 영상 위를
   가리지 않고, 스크롤 뒤에도 불투명 헤더가 콘텐츠와 시각적으로 분리됩니다. */
#kj-nav-root {
  position: sticky;
  top: 0;
  z-index: 60;
}

/* 긴 페이지의 화면 밖 React 섹션은 가까이 스크롤될 때까지 페인트를 미룹니다.
   고정된 추정 높이가 스크롤 점프를 막고, 미지원 브라우저는 기존 흐름을 그대로
   사용합니다. */
@supports (content-visibility: auto) {
  main > div[id^="kj-"][id$="-root"] {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }
}

.kj-container {
  max-width: var(--kj-max);
  margin: 0 auto;
  padding: 0 16px;
}

.kj-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .kj-container {
    padding: 0 32px;
  }

  .kj-product-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-top: 32px;
  }
}

.kj-order-policy {
  margin-top: 48px;
  border: 1px solid var(--kj-amber-100);
  border-radius: 16px;
  padding: 24px;
  background: #fffdf8;
}

.kj-order-policy h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--kj-stone-700);
}

.kj-order-policy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #78716c;
}

.kj-order-policy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.kj-order-policy-grid > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid #f3e8d2;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.7;
}

.kj-order-policy-grid dt {
  font-weight: 700;
  color: #57534e;
}

.kj-order-policy-grid dd {
  margin: 0;
  color: #78716c;
}

.kj-order-policy .kj-order-policy-note {
  margin-top: 10px;
  border-radius: 10px;
  background: #fff7e6;
  padding: 10px 12px;
  color: #92400e;
}

@media (max-width: 480px) {
  .kj-order-policy-grid > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* generic breadcrumb / page header used on list/detail/brand-story pages */
.kj-page-header {
  padding: 32px 16px 8px;
  text-align: center;
}

.kj-page-header h1 {
  font-size: 22px;
  margin: 0 0 4px;
}

.kj-page-header p {
  font-size: 13px;
  color: #78716c;
  margin: 0;
}

@media (min-width: 768px) {
  .kj-page-header h1 {
    font-size: 30px;
  }
}

.kj-footer {
  margin-top: 64px;
  border-top: 1px solid #f0e6d2;
  padding: 32px 16px 48px;
  font-size: 12px;
  color: #a8a29e;
  text-align: center;
  line-height: 1.7;
}

.kj-footer strong {
  color: var(--kj-stone-700);
}

.kj-footer a {
  color: #78716c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kj-footer-social-title {
  margin: 0 0 12px;
  color: var(--kj-stone-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.kj-footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 22px;
}

.kj-footer .kj-footer-social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #78716c;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(120, 83, 32, 0.06);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.kj-footer-social-link svg {
  width: 18px;
  height: 18px;
}

.kj-footer-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(120, 83, 32, 0.12);
}

.kj-footer-social-link:focus-visible {
  outline: 3px solid rgba(217, 119, 6, 0.35);
  outline-offset: 3px;
}

.kj-footer-social-link[data-platform="instagram"]:hover { color: #e4405f; border-color: #f3a6b5; }
.kj-footer-social-link[data-platform="kakao"]:hover { color: #191919; border-color: #fee500; background: #fee500; }
.kj-footer-social-link[data-platform^="naver"]:hover { color: #fff; border-color: #03c75a; background: #03c75a; }
.kj-footer-social-link[data-platform="youtube"]:hover { color: #fff; border-color: #ff0000; background: #ff0000; }

@media (max-width: 480px) {
  .kj-footer-socials {
    gap: 9px;
    margin-bottom: 18px;
  }

  .kj-footer .kj-footer-social-link {
    width: 36px;
    height: 36px;
  }

  .kj-footer-social-link svg {
    width: 16px;
    height: 16px;
  }
}

.kj-legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 18px 80px;
}

.kj-legal-back {
  display: inline-block;
  margin-bottom: 28px;
  color: #b45309;
  font-size: 14px;
  font-weight: 700;
}

.kj-legal-page article {
  border: 1px solid #f0e6d2;
  border-radius: 24px;
  background: #fff;
  padding: clamp(24px, 5vw, 54px);
}

.kj-legal-eyebrow {
  margin: 0;
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.kj-legal-page h1 {
  margin: 8px 0 0;
  color: #1c1917;
  font-size: clamp(30px, 5vw, 46px);
}

.kj-legal-date {
  margin: 10px 0 32px;
  color: #a8a29e;
  font-size: 12px;
}

.kj-legal-page section {
  border-top: 1px solid #f5ede0;
  padding: 24px 0 0;
  margin-top: 24px;
}

.kj-legal-page h2 {
  margin: 0 0 10px;
  color: #292524;
  font-size: 18px;
}

.kj-legal-page p,
.kj-legal-page li,
.kj-legal-page td,
.kj-legal-page th {
  font-size: 13px;
  line-height: 1.85;
}

.kj-legal-page ul {
  margin: 0;
  padding-left: 20px;
}

.kj-legal-page table {
  width: 100%;
  border-collapse: collapse;
}

.kj-legal-page th,
.kj-legal-page td {
  border: 1px solid #eee4d5;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.kj-legal-page th {
  background: #fffbeb;
  color: #57534e;
}

.kj-legal-company {
  margin-top: 34px;
  border-radius: 16px;
  background: #fafaf9;
  padding: 18px;
  color: #78716c;
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .kj-legal-page table,
  .kj-legal-page thead,
  .kj-legal-page tbody,
  .kj-legal-page tr,
  .kj-legal-page th,
  .kj-legal-page td {
    display: block;
  }

  .kj-legal-page th {
    display: none;
  }

  .kj-legal-page td {
    border-bottom: 0;
  }

  .kj-legal-page tr:last-child td:last-child {
    border-bottom: 1px solid #eee4d5;
  }
}

/* underline text link used for cross-page CTAs on static (non-island) page
   content, e.g. the quiz/info page teasers at the bottom of gift-sets.html */
.kj-inline-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--kj-amber-700);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* simple static product grid used before the interactive catalog mounts */
.kj-static-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .kj-static-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .kj-static-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kj-static-grid figure {
  margin: 0;
  border: 1px solid var(--kj-amber-100);
  border-radius: 12px;
  overflow: hidden;
}

.kj-static-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.kj-static-grid figcaption {
  padding: 10px 12px;
  font-size: 13px;
}

.kj-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.kj-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* 키보드 사용자는 반복 내비게이션을 건너뛰고 본문으로 바로 이동할 수 있습니다. */
.kj-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  transform: translateY(-200%);
  border-radius: 9999px;
  background: #1c1917;
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.kj-skip-link:focus {
  transform: translateY(0);
}

@keyframes kj-hero-enter {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

.kj-hero-content {
  animation: kj-hero-enter 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .kj-hero-content { animation: none; }
}
