* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0c0c0d;
  --panel: #141416;
  --ink: #ececec;
  --grey: #8b8b90;
  --line: #26262a;
  --accent: #b3202b; /* 딥 크림슨 포인트 */
  --on-accent: #f5f0ec;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ── 커스텀 커서 제거됨 — 기본 커서 사용 ── */
.cursor, .cursor-ring { display: none; }

/* ── 그레인 ────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 9990;
  animation: grainShift 0.6s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ── 헤더 ──────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,12,13,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
  height: 62px;
}
.logo {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.gnb { display: flex; gap: 30px; }
.gnb-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--grey);
  transition: color 0.25s;
}
.gnb-link:hover { color: var(--accent); }

.header-icons { display: flex; gap: 14px; }
.icon-btn { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: 0; right: -2px;
  min-width: 16px; height: 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.search-bar { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.search-bar--open { max-height: 70px; }
.search-bar input {
  width: min(560px, 90%);
  display: block;
  margin: 14px auto;
  padding: 11px 18px;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  outline: none;
}

/* ── 히어로 ────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('https://pub-d299de678d4f45f18e8b75dcfea7f543.r2.dev/elcorp/hero_nox.webp'), radial-gradient(ellipse at 50% 40%, #232326 0%, #0c0c0d 75%);
  background-size: cover;
  background-position: center 20%;
  filter: brightness(0.62) contrast(1.08);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero-content { position: relative; z-index: 1; text-align: center; padding: 0 20px; }
.hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-line { display: block; overflow: hidden; }
.hero-line em {
  font-style: normal;
  display: inline-block;
  animation: riseUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-line:nth-child(2) em { animation-delay: 0.15s; }
.hero-line:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
@keyframes riseUp { from { transform: translateY(110%); } to { transform: none; } }

.hero-sub {
  font-size: 14px;
  color: #bbb;
  letter-spacing: 0.06em;
  margin-bottom: 36px;
  animation: fadeIn 1.2s 0.5s both;
}
.hero-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--on-accent);
  background: var(--accent);
  padding: 17px 44px;
  animation: fadeIn 1.2s 0.7s both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(179,32,43,0.35); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-meta {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 34px;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--grey);
  z-index: 1;
}

/* ── 마퀴 ──────────────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: 'Anton', sans-serif;
  font-size: 30px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px #3c3c42;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 샵 헤드 ───────────────────────────── */
.shop-head {
  max-width: 1500px;
  margin: 0 auto;
  padding: 80px 32px 10px;
}
.section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0.04em;
  margin-bottom: 30px;
}
.section-count {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  vertical-align: super;
  margin-left: 14px;
}
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 10px 22px;
  border: 1px solid var(--line);
  color: var(--grey);
  transition: all 0.25s;
}
.cat-tab:hover { border-color: var(--ink); color: var(--ink); }
.cat-tab--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.sort-select {
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
}

/* ── 상품 그리드 ───────────────────────── */
.grid-wrap { max-width: 1500px; margin: 0 auto; padding: 30px 32px 100px; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px 20px;
}
.empty { text-align: center; color: var(--grey); padding: 80px 0; font-size: 13px; letter-spacing: 0.2em; }

/* 등장 애니메이션 (IntersectionObserver 의존 제거 — 항상 표시 보장) */
.reveal { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

.card { position: relative; }
.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1a1d;
  cursor: pointer;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.45s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .img-hover { opacity: 1; transform: scale(1); }

.badge {
  position: absolute;
  top: 0; left: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 7px 13px;
  background: var(--accent);
  color: var(--on-accent);
}
.badge--soldout { background: #3a3a40; color: #999; }

.wish-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  background: rgba(12,12,13,0.7);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}
.wish-btn:hover { transform: scale(1.12); }
.wish-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.wish-btn--on svg { fill: var(--accent); stroke: var(--accent); }

.quick-open {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(179,32,43,0.96);
  color: var(--on-accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 14px 0;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.card:hover .quick-open { opacity: 1; transform: none; }
.quick-open:disabled { background: rgba(58,58,64,0.95); color: #999; cursor: not-allowed; }

.card-info { padding: 14px 2px 0; }
.card-name { font-size: 13px; font-weight: 500; line-height: 1.45; margin-bottom: 5px; }
.card-code { font-size: 10px; color: #5c5c62; letter-spacing: 0.1em; margin-bottom: 7px; }
.card-price { display: flex; align-items: baseline; gap: 8px; }
.price-sale { font-size: 14px; font-weight: 700; }
.price-original { font-size: 11.5px; color: #5c5c62; text-decoration: line-through; }
.price-rate { font-size: 12px; font-weight: 700; color: var(--accent); }

/* ── 룩북 ──────────────────────────────── */
.lookbook {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  padding: 60px 32px 140px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.lookbook-title {
  grid-column: 1 / 4;
  font-family: 'Anton', sans-serif;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  position: sticky;
  top: 110px;
  align-self: start;
}
.look { position: relative; overflow: hidden; }
.look--1 { grid-column: 4 / 9; aspect-ratio: 3 / 4; }
.look--2 { grid-column: 9 / 13; aspect-ratio: 3 / 4; margin-top: 140px; }
.look--3 { grid-column: 5 / 11; aspect-ratio: 16 / 10; margin-top: 60px; }
.look-img {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.look figcaption {
  position: absolute;
  bottom: 14px; left: 16px;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ink);
  background: rgba(12,12,13,0.55);
  padding: 7px 14px;
  backdrop-filter: blur(4px);
}

/* ── 퀵뷰 모달 ─────────────────────────── */
.quick-dim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 300;
}
.quick {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(880px, 94vw);
  max-height: 90vh;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 301;
  overflow: hidden;
}
body.quick-open-modal .quick { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
body.quick-open-modal .quick-dim { opacity: 1; pointer-events: auto; }

.quick-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(12,12,13,0.6);
  border-radius: 50%;
}
.quick-close svg { width: 18px; height: 18px; }

.quick-media { position: relative; background: #1a1a1d; }
.quick-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 420px; }
.quick-thumbs {
  position: absolute;
  bottom: 12px; left: 12px;
  display: flex;
  gap: 6px;
}
.quick-thumb {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 8px 14px;
  background: rgba(12,12,13,0.65);
  color: var(--grey);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.quick-thumb--on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

.quick-info { padding: 42px 34px 30px; overflow-y: auto; }
.quick-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; color: var(--accent); margin-bottom: 12px; min-height: 14px; }
.quick-name { font-size: 21px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.quick-code { font-size: 11px; color: #5c5c62; letter-spacing: 0.1em; margin-bottom: 18px; }
.quick-price { font-size: 19px; font-weight: 700; margin-bottom: 30px; }
.quick-label { font-size: 11px; letter-spacing: 0.25em; color: var(--grey); margin-bottom: 10px; }
.quick-sizes { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.size-chip {
  min-width: 46px;
  padding: 11px 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--grey);
  transition: all 0.2s;
}
.size-chip:hover { border-color: var(--ink); color: var(--ink); }
.size-chip--on { background: var(--ink); border-color: var(--ink); color: #0c0c0d; }
.quick-add-btn {
  width: 100%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  padding: 17px 0;
  margin-bottom: 14px;
  transition: opacity 0.2s, transform 0.2s;
}
.quick-add-btn:hover { transform: translateY(-2px); }
.quick-add-btn:disabled { background: #3a3a40; color: #999; cursor: not-allowed; transform: none; }
.quick-note { font-size: 11px; color: #5c5c62; letter-spacing: 0.04em; }

/* ── 드로어 ────────────────────────────── */
.drawer-dim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 400;
}
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--line);
  z-index: 401;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-dim { opacity: 1; pointer-events: auto; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-family: 'Anton', sans-serif; font-size: 17px; letter-spacing: 0.2em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.drawer-empty { text-align: center; color: var(--grey); font-size: 12px; letter-spacing: 0.15em; padding: 60px 0; }

.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 84px; object-fit: cover; background: #1a1a1d; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 12.5px; font-weight: 500; line-height: 1.35; margin-bottom: 3px; }
.cart-item-size { font-size: 10.5px; color: var(--grey); letter-spacing: 0.12em; margin-bottom: 6px; }
.cart-item-price { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 24px; height: 24px; border: 1px solid var(--line); font-size: 13px; display: grid; place-items: center; }
.qty-num { font-size: 13px; min-width: 16px; text-align: center; }
.cart-item-remove { font-size: 11px; color: #5c5c62; margin-left: auto; text-decoration: underline; }

.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 24px; }
.drawer-total { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.15em; margin-bottom: 14px; }
.drawer-total strong { font-size: 17px; }
.drawer-checkout {
  width: 100%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  padding: 16px 0;
  transition: opacity 0.2s;
}
.drawer-checkout:hover { opacity: 0.85; }

/* ── 토스트 ────────────────────────────── */
.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  transform: translate(-50%, 20px);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12.5px;
  font-weight: 600;
  padding: 13px 26px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 500;
}
.toast--show { opacity: 1; transform: translate(-50%, 0); }

/* ── 푸터 ──────────────────────────────── */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 60px 32px;
  text-align: center;
}
.footer-logo {
  font-family: 'Anton', sans-serif;
  font-size: clamp(60px, 12vw, 150px);
  letter-spacing: 0.1em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #3c3c42;
  margin-bottom: 18px;
}
.footer-tagline { font-size: 11px; letter-spacing: 0.3em; color: var(--grey); margin-bottom: 26px; }
.footer-links { display: flex; justify-content: center; gap: 26px; font-size: 11.5px; letter-spacing: 0.15em; color: var(--grey); margin-bottom: 20px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 11px; color: #5c5c62; }

/* ── 반응형 ────────────────────────────── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .lookbook { grid-template-columns: repeat(6, 1fr); }
  .lookbook-title { grid-column: 1 / 7; position: static; margin-bottom: 20px; }
  .look--1 { grid-column: 1 / 5; }
  .look--2 { grid-column: 3 / 7; margin-top: 40px; }
  .look--3 { grid-column: 1 / 7; margin-top: 40px; }
}
@media (max-width: 820px) {
  .header-inner { padding: 0 18px; }
  .gnb { display: none; }
  .shop-head, .grid-wrap, .lookbook { padding-left: 18px; padding-right: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
  .quick { grid-template-columns: 1fr; overflow-y: auto; }
  .quick-media img { min-height: 300px; max-height: 46vh; }
  .hero-meta { display: none; }
}
