* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #2b2620;
  --grey: #8a8378;
  --line: #e3ddd2;
  --bg: #f7f4ee;
  --card: #efeae1;
  --accent: #6b5842;
}

body {
  font-family: 'Archivo', 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ── 헤더 (풀와이드) ────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,244,238,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 30px;
  height: 66px;
}
.logo { font-size: 26px; font-weight: 900; letter-spacing: 0.22em; }
.gnb { display: flex; gap: 26px; }
.gnb-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 0;
  color: var(--grey);
  transition: color 0.25s;
}
.gnb-link:hover, .gnb-link--on { color: var(--ink); }
.gnb-link--look {
  color: var(--accent);
  font-weight: 800;
  border-bottom: 2px solid 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: #fff;
  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: 14px;
  font-family: inherit;
  background: transparent;
  border: 1px solid var(--ink);
  outline: none;
}

/* ── 히어로 (풀블리드) ──────────────────── */
.hero {
  position: relative;
  height: calc(100svh - 66px);  /* 첫 화면을 메인 사진으로 가득 (헤더 제외 풀 뷰포트) */
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    url('https://pub-d299de678d4f45f18e8b75dcfea7f543.r2.dev/elcorp/hero_5230_full.webp'),
    linear-gradient(150deg, #d8cfc0 0%, #b8ac99 55%, #8f8371 100%);
  background-size: cover;
  background-position: center 12%;
  filter: brightness(0.92);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 30px 46px;
  background: linear-gradient(to top, rgba(20,16,12,0.55), rgba(0,0,0,0) 90%);
}
.hero-eyebrow { font-size: 13px; letter-spacing: 0.3em; color: #eee; margin-bottom: 12px; }
.hero-title {
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 0.95;
  margin-bottom: 12px;
}
.hero-sub { font-size: 14.5px; color: #f0ece5; margin-bottom: 26px; letter-spacing: 0.02em; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btn {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 15px 32px;
  border-radius: 999px;
  transition: transform 0.25s ease;
}
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn--ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}

/* ── LOOK 시그니처 CTA — 이 몰의 포인트 ── */
.hero-btn--look {
  position: relative;
  background: linear-gradient(120deg, #2b2620 0%, #6b5842 100%);
  color: #fff;
  border: none;
  padding: 16px 34px;
  overflow: visible;
  box-shadow: 0 8px 26px rgba(43,38,32,0.35);
  animation: lookGlow 2.6s ease-in-out infinite;
}
@keyframes lookGlow {
  0%, 100% { box-shadow: 0 8px 26px rgba(43,38,32,0.35); }
  50%       { box-shadow: 0 8px 34px rgba(201,111,74,0.55); }
}
/* 반짝이는 스윕 */
.hero-btn--look::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: lookShine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lookShine {
  0%   { background-position: 120% 0; }
  55%, 100% { background-position: -130% 0; }
}
.hero-btn--look .arrow { display: inline-block; transition: transform 0.25s ease; }
.hero-btn--look:hover .arrow { transform: translateX(5px); }
/* 적립 뱃지 */
.look-badge {
  position: absolute;
  top: -13px;
  right: -14px;
  background: #c96f4a;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(201,111,74,0.45);
  transform: rotate(4deg);
  animation: lookBadge 2.2s ease-in-out infinite;
}
@keyframes lookBadge {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50%       { transform: rotate(4deg) translateY(-3px); }
}

/* ── 샵 헤드 (전체 폭) ──────────────────── */
.shop-head { padding: 46px 30px 6px; }
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-tab {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 11px 26px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--grey);
  transition: all 0.25s;
}
.cat-tab:hover { border-color: var(--ink); color: var(--ink); }
.cat-tab--on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.result-count { font-size: 13.5px; color: var(--grey); letter-spacing: 0.06em; }
.sort-select {
  font-family: inherit;
  font-size: 13.5px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  outline: none;
  cursor: pointer;
}

/* ── 상품 그리드 (전체 폭 · 4열) ────────── */
.grid-wrap { padding: 24px 30px 70px; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
}
.empty { text-align: center; color: var(--grey); padding: 80px 0; font-size: 14px; }

.card { position: relative; animation: fadeUp 0.5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
  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.03);
  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: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 7px 14px;
  background: var(--ink);
  color: var(--bg);
}
.badge--best { background: var(--accent); }

.wish-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  background: rgba(247,244,238,0.92);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}
.wish-btn:hover { transform: scale(1.12); }
.wish-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.wish-btn--on svg { fill: var(--accent); stroke: var(--accent); }

.quick-add {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(43,38,32,0.94);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 14px 0;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.card:hover .quick-add { opacity: 1; transform: none; }

.card-info { padding: 14px 2px 0; text-align: center; }
.card-brand { font-size: 10px; letter-spacing: 0.2em; color: #b3aca0; margin-bottom: 3px; }
.card-name { font-size: 14.5px; font-weight: 500; line-height: 1.45; margin-bottom: 6px; }
.card-price { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.price-original { font-size: 13px; color: #b3aca0; text-decoration: line-through; }
.price-sale { font-size: 14.5px; font-weight: 700; }
.price-rate { font-size: 13.5px; font-weight: 700; color: var(--accent); }

/* ── LOOK 배너 ─────────────────────────── */
.look-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 30px 70px;
  padding: 40px 44px;
  background: var(--ink);
  color: var(--bg);
}
.look-banner h2 { font-size: clamp(20px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; }
.look-banner p { font-size: 14.5px; color: #cfc8bd; }
.look-banner .hero-btn { background: var(--bg); color: var(--ink); }

/* ── 마이페이지 모달 ────────────────────── */
.my-dim {
  position: fixed; inset: 0;
  background: rgba(43,38,32,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  z-index: 300;
}
.my {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.97);
  width: min(400px, 92vw);
  background: var(--bg);
  padding: 30px 26px;
  z-index: 301;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
body.my-open .my { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
body.my-open .my-dim { opacity: 1; pointer-events: auto; }
.my h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.my p { font-size: 14px; color: var(--grey); line-height: 1.6; margin-bottom: 16px; }
.my-stats { display: flex; gap: 8px; margin-bottom: 16px; }
.my-stat { flex: 1; background: #fff; border: 1px solid var(--line); padding: 14px 8px; text-align: center; }
.my-stat b { display: block; font-size: 18px; font-weight: 900; }
.my-stat span { font-size: 11.5px; color: var(--grey); letter-spacing: 0.06em; }
.my-btn {
  width: 100%;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 15px 0;
}

/* ── 드로어/토스트/푸터 (마뗑 스타일) ────── */
.drawer-dim {
  position: fixed; inset: 0;
  background: rgba(43,38,32,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--bg);
  z-index: 201;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(43,38,32,0.2);
}
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-size: 14px; letter-spacing: 0.2em; font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.drawer-empty { text-align: center; color: var(--grey); font-size: 14px; 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: #fff; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13.5px; font-weight: 500; line-height: 1.35; margin-bottom: 6px; }
.cart-item-price { font-size: 14px; 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: 14px; display: grid; place-items: center; }
.qty-num { font-size: 14px; min-width: 16px; text-align: center; }
.cart-item-remove { font-size: 12px; color: #b3aca0; 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: 14px; letter-spacing: 0.1em; margin-bottom: 14px; }
.drawer-total strong { font-size: 17px; }
.drawer-checkout {
  width: 100%;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 16px 0;
  transition: background 0.25s;
}
.drawer-checkout:hover { background: var(--accent); }

.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  padding: 13px 26px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 400;
}
.toast--show { opacity: 1; transform: translate(-50%, 0); }

.footer { border-top: 1px solid var(--line); }
.footer-inner {
  padding: 40px 30px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo { font-size: 22px; font-weight: 900; letter-spacing: 0.2em; margin-bottom: 8px; }
.footer-copy { font-size: 12.5px; color: var(--grey); }
.footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--grey); }
.footer-links a:hover { color: var(--ink); }

/* ── 법적 고지 푸터 (T-013 · 전자상거래법 제10조 사업자 정보) ─────────
   main / product / checkout / my / p/pN 공용. look·select 는 각자 CSS 에
   동일 클래스명으로 얹는다 (마크업은 전 페이지 동일 문자열 규약). */
.footer-legal {
  border-top: 1px solid var(--line);
  padding: 22px 30px 34px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--grey);
  text-align: left;
}
.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 14px;
  font-size: 13px;
}
.footer-legal-nav a { color: var(--grey); }
.footer-legal-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal-em strong { font-weight: 800; color: var(--ink); }
.footer-biz {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0 0 10px;
}
.footer-biz li { white-space: nowrap; }
.footer-biz b { font-weight: 600; color: var(--ink); margin-right: 5px; }
.footer-legal-note { font-size: 12px; line-height: 1.8; max-width: 78ch; }

/* ── 고객센터 공통 블록 (S3-06) — 법적 블록 바로 위, 같은 톤 ── */
.footer-cs {
  border-top: 1px solid var(--line);
  padding: 22px 30px 4px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--grey);
  text-align: left;
}
.footer-cs-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-cs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 10px;
  font-size: 13px;
}
.footer-cs-nav a { color: var(--grey); }
.footer-cs-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-cs-note { font-size: 12px; line-height: 1.8; max-width: 78ch; }

@media (max-width: 820px) {
  .footer-legal { padding: 20px 18px 30px; }
  .footer-biz li { white-space: normal; }
  .footer-cs { padding: 20px 18px 2px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   S3-04 — 탐색 확장 (필터 · 타임세일 · 기획전 배너 · 최근 본 · 찜)
   기존 규칙은 건드리지 않고 새 클래스만 추가한다.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 헤더 하트 (찜 진입점) ── */
.wish-count {
  position: absolute;
  top: 0; right: -2px;
  min-width: 16px; height: 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ── 검색 필터 (가격대 · 브랜드 라인) ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-bottom: 18px;
}
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #b3aca0;
  margin-right: 4px;
}
.filter-chip {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--grey);
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip--on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.toolbar-left { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tag {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.filter-reset {
  font-size: 12px;
  color: var(--grey);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filter-reset:hover { color: var(--ink); }

/* ── 타임세일 스트립 ── */
.tsale {
  margin: 0 30px;
  padding: 30px 0 6px;
  border-bottom: 1px solid var(--line);
}
.tsale-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tsale-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tsale-flag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  background: #c96f4a;
  color: #fff;
}
.tsale-head h2 { font-size: clamp(17px, 2.2vw, 23px); font-weight: 800; letter-spacing: -0.01em; }
.tsale-timer { font-size: 13px; color: var(--grey); letter-spacing: 0.04em; }
.tsale-timer strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tsale-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 26px;
}
.tsale-card { display: flex; gap: 14px; align-items: center; }
.tsale-media {
  display: block;
  position: relative;
  flex: none;
  width: 84px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
}
.tsale-media img { width: 100%; height: 100%; object-fit: cover; }
.tsale-rate {
  position: absolute;
  left: 0; bottom: 0;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  background: #c96f4a;
  color: #fff;
}
.tsale-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tsale-name {
  font-size: 13.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tsale-price { display: flex; align-items: baseline; gap: 7px; }
.tsale-price b { font-size: 14.5px; font-weight: 800; }
.tsale-price del { font-size: 12px; color: #b3aca0; }
.tsale-card:hover .tsale-name { text-decoration: underline; text-underline-offset: 3px; }

/* ── 기획전 배너 ── */
.evt-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 26px 30px 0;
  padding: 26px 30px;
  background:
    linear-gradient(100deg, rgba(43,38,32,0.86) 0%, rgba(43,38,32,0.42) 62%, rgba(43,38,32,0.2) 100%),
    url('https://pub-d299de678d4f45f18e8b75dcfea7f543.r2.dev/elcorp/hero_5230_wide.webp');
  background-size: cover;
  background-position: center 34%;
  color: #fff;
  transition: transform 0.25s ease;
}
.evt-banner:hover { transform: translateY(-2px); }
.evt-banner-flag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.7);
}
.evt-banner-text { font-size: 13.5px; color: #ece7df; line-height: 1.5; }
.evt-banner-text strong {
  display: block;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 4px;
}
.evt-banner-go {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 12px 22px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}

/* ── 최근 본 상품 (가로 스트립) ── */
.recent {
  margin: 0 30px 70px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.recent-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.recent-head h2 { font-size: 15px; font-weight: 800; letter-spacing: 0.14em; }
.recent-clear { font-size: 12px; color: var(--grey); text-decoration: underline; text-underline-offset: 3px; }
.recent-clear:hover { color: var(--ink); }
.recent-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.recent-card { flex: 0 0 132px; display: flex; flex-direction: column; gap: 8px; }
.recent-media { aspect-ratio: 3 / 4; overflow: hidden; background: #fff; display: block; }
.recent-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.recent-card:hover .recent-media img { transform: scale(1.04); }
.recent-name {
  font-size: 12.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-price { font-size: 13px; font-weight: 700; }

/* ── 찜 페이지 (wish.html) ── */
.page-head { padding: 46px 30px 22px; }
.page-head h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: 0.06em; }
.page-head p { font-size: 14px; color: var(--grey); margin-top: 10px; line-height: 1.6; }
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-top: 20px;
}
.page-empty { text-align: center; padding: 90px 20px 110px; }
.page-empty p { font-size: 14.5px; color: var(--grey); line-height: 1.8; margin-bottom: 22px; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-act {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 11px 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: opacity 0.2s;
}
.card-act:hover { opacity: 0.82; }
.card-act--line { background: transparent; color: var(--ink); }

/* ── 기획전 페이지 (event.html) ── */
.evt-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  padding: 0 30px 44px;
  color: #fff;
  background:
    linear-gradient(to top, rgba(20,16,12,0.72), rgba(20,16,12,0.12) 70%),
    url('https://pub-d299de678d4f45f18e8b75dcfea7f543.r2.dev/elcorp/hero_5230_wide.webp');
  background-size: cover;
  background-position: center 30%;
}
.evt-hero-eyebrow { font-size: 12px; letter-spacing: 0.3em; color: #ece7df; margin-bottom: 12px; }
.evt-hero h1 {
  font-size: clamp(34px, 6.5vw, 76px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.02;
  margin-bottom: 14px;
}
.evt-hero p { font-size: 14.5px; color: #f0ece5; max-width: 54ch; line-height: 1.7; }
.evt-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 54px 30px 18px;
}
.evt-sec-head h2 { font-size: clamp(19px, 2.6vw, 26px); font-weight: 800; }
.evt-sec-head span { font-size: 13px; color: var(--grey); letter-spacing: 0.06em; }
.evt-look {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 30px 70px;
  padding: 40px 44px;
  border: 1px solid var(--line);
  background: var(--card);
}
.evt-look h2 { font-size: clamp(19px, 2.6vw, 27px); font-weight: 800; margin-bottom: 8px; }
.evt-look p { font-size: 14px; color: var(--grey); line-height: 1.6; }
.evt-look .hero-btn { background: var(--ink); color: var(--bg); }

/* ── 반응형 (S3-04 추가분) ── */
@media (max-width: 1100px) {
  .tsale-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .tsale { margin: 0 18px; padding-top: 24px; }
  .tsale-row { grid-template-columns: 1fr; gap: 14px; }
  .tsale-head { margin-bottom: 16px; }
  .evt-banner { margin: 20px 18px 0; padding: 22px 20px; gap: 12px; }
  .evt-banner-go { margin-left: 0; }
  .recent { margin: 0 18px 50px; }
  .filter-bar { gap: 10px 18px; }
  .filter-group { width: 100%; }
  .page-head { padding: 30px 18px 18px; }
  .evt-hero { min-height: 52svh; padding: 0 18px 32px; }
  .evt-sec-head { padding: 38px 18px 14px; }
  .evt-look { margin: 0 18px 50px; padding: 28px 24px; }
}

/* ── 반응형 ────────────────────────────── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .header-inner { padding: 0 18px; }
  .gnb { display: none; }
  /* 모바일: 인물 중앙의 3:2 히어로로 풀스크린 */
  .hero { height: calc(100svh - 66px); min-height: 480px; max-height: none; }
  .hero-media {
    background-image:
      url('https://pub-d299de678d4f45f18e8b75dcfea7f543.r2.dev/elcorp/hero_5230.webp'),
      linear-gradient(150deg, #d8cfc0 0%, #b8ac99 55%, #8f8371 100%);
    background-position: center 20%;
  }
  .hero-content { padding: 0 20px 32px; }
  .hero-sub { font-size: 14px; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-btn { font-size: 12px; padding: 13px 24px; max-width: 100%; }
  .shop-head, .grid-wrap { padding-left: 18px; padding-right: 18px; }
  .look-banner { margin: 0 18px 50px; padding: 28px 24px; }
  .grid { grid-template-columns: 1fr; gap: 34px; }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   S6-02 — 재고 UX (카드 SOLD OUT · 사이즈 선택 시트)
   기존 규칙은 건드리지 않고 새 클래스만 추가한다. 재고 판정이 없으면(store 미로드)
   이 클래스들은 아예 렌더되지 않으므로 기존 화면과 완전히 같다.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 전 사이즈 0 = SOLD OUT ── */
.badge--out { background: var(--grey); }
.card--out .card-media img { filter: grayscale(0.72); opacity: 0.62; }
.card--out .card-name, .card--out .card-price { opacity: 0.66; }

.quick-add--off {
  background: rgba(138,131,120,0.94);
  cursor: not-allowed;
}
.card:hover .quick-add--off { opacity: 1; transform: none; }

/* ── 카드 안 사이즈 선택 시트 (빠른 담기의 DEFAULT 거부 후) ── */
.size-pick {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(247,244,238,0.97);
  border-top: 1px solid var(--line);
  padding: 12px 12px 14px;
  text-align: center;
  z-index: 2;
}
.size-pick[hidden] { display: none; }
.size-pick-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey);
  margin-bottom: 8px;
}
.size-pick-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.size-pick-btn {
  min-width: 44px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.size-pick-btn:hover { background: var(--ink); color: var(--bg); }
.size-pick-btn i {
  font-style: normal;
  font-size: 10px;
  margin-left: 3px;
  color: var(--accent);
}
.size-pick-btn--out {
  border-color: var(--line);
  color: #bdb6aa;
  border-style: dashed;
  cursor: not-allowed;
}
.size-pick-btn--out:hover { background: transparent; color: #bdb6aa; }
