:root {
  --background: #f2f2f2;
  --foreground: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.6);
  --line: rgba(0, 0, 0, 0.08);
  --accent-ana: #2d2d2d;
  --accent-hana: #4a4a4a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Cormorant Garamond', 'Gowun Batang', serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.font-kr { font-family: 'Gowun Batang', 'Cormorant Garamond', serif; }
.font-roman { font-family: 'Cormorant Garamond', serif; }
.font-sans { font-family: 'Space Grotesk', system-ui, sans-serif; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }

/* ── GNB (grid 3-column: 왼쪽 메뉴 / 가운데 로고 / 오른쪽 메뉴) ── */
.gnb {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--background);
  transition: background-color 0.4s ease;
}
.gnb.scrolled { background: transparent; }
.gnb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
@media (min-width: 768px) {
  .gnb-inner { padding: 22px 48px; gap: 40px; }
}
.gnb-logo {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-align: center;
  white-space: nowrap;
  justify-self: center;
}
@media (min-width: 768px) {
  .gnb-logo { font-size: 22px; letter-spacing: 0.3em; }
}
.gnb-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
}
.gnb-menu.left { justify-self: start; }
.gnb-menu.right { justify-self: end; }
.gnb-menu a { transition: opacity 0.3s; }
.gnb-menu a:hover { opacity: 0.6; }
@media (min-width: 768px) {
  .gnb-menu { gap: 28px; font-size: 13px; letter-spacing: 0.2em; }
}
@media (max-width: 480px) {
  .gnb-inner { padding: 10px 12px; gap: 8px; }
  .gnb-menu { gap: 9px; font-size: 9.5px; letter-spacing: 0.1em; }
  .gnb-logo { font-size: 13px; letter-spacing: 0.15em; }
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh; width: 100%;
  overflow: hidden;
  background: var(--background);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); }
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 10; text-align: center; color: #fff;
}
.hero-title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  animation: fadeUp 1s ease 0.3s both;
}
@media (min-width: 768px) { .hero-title { letter-spacing: 0.3em; } }
.hero-sub {
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Space Grotesk', sans-serif;
  animation: fadeIn 1s ease 1s both;
}
.hero-scroll {
  margin-top: 48px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Space Grotesk', sans-serif;
  animation: fadeIn 1s ease 1.3s both;
}
.hero-scroll-line {
  width: 1px; height: 32px;
  background: rgba(255, 255, 255, 0.6);
}

/* ── Split ── */
.split {
  position: relative;
  height: 100vh; width: 100%;
  display: flex;
  background: var(--background);
}
.split-side {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.split-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.split-side:hover .split-bg { transform: scale(1.05); }
.split-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.5s;
}
.split-side:hover .split-overlay { background: rgba(0, 0, 0, 0.1); }
.split-label {
  position: relative; z-index: 10;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.split-divider { width: 1px; background: rgba(0, 0, 0, 0.2); }

/* ── Section ── */
.section {
  padding: 96px 24px;
}
@media (min-width: 768px) { .section { padding: 128px 48px; } }
.section-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 24px;
  display: block;
}
.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin: 0 0 24px;
  line-height: 1.15;
}
.section-lead {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.75);
  max-width: 640px;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
.product-card { display: block; }
.product-card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e8e8e8;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-meta { padding: 16px 4px 0; }
.product-card-name {
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.product-card-price {
  font-size: 13px;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}
.product-card-model {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 4px;
}

/* ── Filter / Category Nav ── */
.cat-nav {
  display: flex; flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}
.cat-nav a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
}
.cat-nav a.active { border-bottom-color: var(--foreground); }
.cat-nav a:hover { opacity: 0.6; }

/* ── Product detail ── */
.pd-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-top: 96px;
}
@media (min-width: 1024px) {
  .pd-wrap {
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    padding-top: 128px;
  }
}
.pd-gallery img {
  width: 100%; margin-bottom: 4px;
  background: #e8e8e8;
}
.pd-info { position: relative; }
@media (min-width: 1024px) {
  .pd-info { position: sticky; top: 96px; align-self: start; }
}
.pd-model-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
}
.pd-name {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  margin: 12px 0 16px;
  letter-spacing: 0.02em;
}
.pd-price {
  font-size: 18px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}
.pd-desc {
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(26, 26, 26, 0.8);
}
.pd-sizes {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 32px;
}
.pd-size {
  min-width: 56px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}
.pd-size:hover { border-color: var(--foreground); }
.pd-size.selected {
  background: var(--foreground); color: #fff; border-color: var(--foreground);
}
.pd-actions {
  display: flex; gap: 8px;
  margin-top: 32px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--foreground);
  background: var(--foreground); color: #fff;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn.outline {
  background: transparent; color: var(--foreground);
}
.btn.outline:hover { background: var(--foreground); color: #fff; }
.btn.full { width: 100%; }

/* ── Editorial ── */
.edt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 768px) {
  .edt-grid { grid-template-columns: 1fr 1fr; gap: 80px 48px; }
}
.edt-card { display: block; }
.edt-card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e8e8;
}
.edt-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.edt-card:hover .edt-card-img img { transform: scale(1.03); }
.edt-card-meta { margin-top: 24px; }
.edt-card-num {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
}
.edt-card-title {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ── Editorial detail (hotspot) ── */
.edt-detail {
  padding-top: 96px;
}
.edt-detail-img-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
}
.edt-detail-img {
  width: 100%; display: block;
}
.hotspot {
  position: absolute;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 5;
}
.hotspot:hover { transform: scale(1.2); }
.hotspot::after {
  content: '+';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--foreground);
}
.hotspot-popover {
  position: absolute;
  background: #fff;
  padding: 16px;
  width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  z-index: 10;
  display: none;
}
.hotspot-popover.open { display: block; }
.hotspot-popover .name { font-size: 14px; margin: 0 0 4px; }
.hotspot-popover .price {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}
.hotspot-popover a {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  border-bottom: 1px solid var(--foreground);
  padding-bottom: 4px;
  width: max-content;
}

/* ── Auth ── */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 96px 24px 48px;
}
.auth-card {
  width: 100%; max-width: 420px;
  text-align: center;
}
.auth-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.3em;
  margin: 0 0 32px;
}
.auth-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.auth-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.auth-btn:hover { border-color: var(--foreground); }
.auth-btn.kakao { background: #fee500; border-color: #fee500; }
.auth-btn.naver { background: #03c75a; border-color: #03c75a; color: #fff; }
.auth-form { text-align: left; margin-top: 24px; }
.auth-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 8px;
}
.auth-form input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  font: inherit;
  font-size: 15px;
}
.auth-form input:focus { outline: none; border-color: var(--foreground); }

/* ── Footer ── */
.foot {
  padding: 96px 24px;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .foot { padding: 128px 48px; } }
.foot-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 48px;
}
@media (min-width: 768px) {
  .foot-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.foot-brand p:first-child {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.3em;
  margin: 0 0 16px;
}
.foot-brand p:last-child { color: var(--muted); font-size: 14px; }
.foot-cs { text-align: center; }
@media (min-width: 768px) { .foot-cs { text-align: right; } }
.foot-cs p {
  font-size: 13px;
  color: rgba(26, 26, 26, 0.7);
  margin: 4px 0;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}
.foot-bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(26, 26, 26, 0.4);
  font-family: 'Space Grotesk', sans-serif;
}

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Empty state ── */
.empty {
  text-align: center;
  padding: 128px 24px;
  color: var(--muted);
}
.empty h2 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
  color: var(--foreground);
}

/* ── Admin ── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
}
.admin-table th, .admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.admin-table th {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.admin-table td img { width: 60px; height: 60px; object-fit: cover; }
