/* ============================================================
   EYRIE — Base Stylesheet
   공통 변수 · 리셋 · 헤더 · 푸터 · 버튼 · 유틸리티
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --cream: #F5F0E8;
  --warm-white: #FAF8F4;
  --earth: #8B7355;
  --earth-dark: #5C4A32;
  --sage: #7A8C6E;
  --sage-light: #B5C4A4;
  --terracotta: #C4704A;
  --charcoal: #2C2C2A;
  --text-main: #1E1D1A;
  --text-muted: #7A7670;
  --border: rgba(139, 115, 85, 0.2);

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Noto Sans KR', sans-serif;

  --header-h: 72px;
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--warm-white);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: var(--font-body); }

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--header-h);
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
header.scrolled { background: rgba(250, 248, 244, 0.98); }

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--earth-dark);
  text-decoration: none;
}
.logo span { font-style: italic; color: var(--terracotta); }

nav { display: flex; gap: 36px; align-items: center; }
nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--transition);
}
nav a:hover { color: var(--earth-dark); }
nav a.active {
  color: var(--earth-dark);
  border-bottom: 1px solid var(--earth-dark);
  padding-bottom: 2px;
}

.header-actions { display: flex; gap: 20px; align-items: center; }
.header-actions a {
  text-decoration: none;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.header-actions a:hover { color: var(--earth-dark); }

.cart-btn {
  background: var(--earth-dark) !important;
  color: var(--cream) !important;
  padding: 8px 18px;
  border-radius: 2px;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  transition: background var(--transition) !important;
}
.cart-btn:hover { background: var(--terracotta) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--charcoal);
  padding: 72px 80px 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
}

.footer-brand .logo { display: block; margin-bottom: 18px; color: var(--cream); }
.footer-brand .logo span { color: var(--terracotta); }

.footer-desc {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.4);
  max-width: 280px;
  margin-bottom: 28px;
}

.footer-social { display: flex; gap: 14px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.8);
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  text-decoration: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: rgba(255, 255, 255, 0.75); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.06em;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.5); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--earth-dark);
  color: var(--cream);
  padding: 14px 36px;
  font-size: 13px;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--terracotta); transform: translateY(-1px); }

.btn-outline {
  color: var(--earth-dark);
  padding: 14px 36px;
  font-size: 13px;
  letter-spacing: 0.1em;
  border: 1px solid var(--earth-dark);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--earth-dark); color: var(--cream); }

.btn-light {
  background: transparent;
  border: 1px solid rgba(245, 240, 232, 0.4);
  color: var(--cream);
  padding: 14px 36px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition);
  width: fit-content;
}
.btn-light:hover {
  background: rgba(245, 240, 232, 0.12);
  border-color: rgba(245, 240, 232, 0.7);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--earth); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}

.section-link {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--earth);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--earth);
  padding-bottom: 2px;
  transition: color var(--transition);
  white-space: nowrap;
}
.section-link:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--earth-dark); }
.breadcrumb span { opacity: 0.5; }
.breadcrumb strong { color: var(--earth-dark); font-weight: 400; }

/* ── Product card (공통) ── */
.product-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-image {
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.product-img-inner {
  width: 100%; height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-img-inner { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  z-index: 1;
}
.badge-best { background: var(--terracotta); color: #fff; }
.badge-new  { background: var(--sage);       color: #fff; }
.badge-sale { background: var(--earth-dark);  color: var(--cream); }
.badge-sold { background: rgba(30,29,26,0.5); color: rgba(255,255,255,0.8); }

.product-brand {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.product-name {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.5;
  font-weight: 400;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price-current {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--earth-dark);
}
.price-original {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount {
  font-size: 11px;
  color: var(--terracotta);
  font-weight: 500;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Fade up (hero용) ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }
.fade-up:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Gradient presets (상품 이미지 placeholder) ── */
.prod-bg-1 { background: linear-gradient(135deg, #C8D5B9, #9AAB8A); }
.prod-bg-2 { background: linear-gradient(135deg, #D9C4A8, #B89870); }
.prod-bg-3 { background: linear-gradient(135deg, #C4B8A8, #9A8870); }
.prod-bg-4 { background: linear-gradient(135deg, #B8CAAA, #8A9E7C); }
.prod-bg-5 { background: linear-gradient(135deg, #D4C0A8, #B09070); }
.prod-bg-6 { background: linear-gradient(135deg, #C8D0B8, #9AAA88); }
.prod-bg-7 { background: linear-gradient(135deg, #D0C4B0, #A8906A); }
.prod-bg-8 { background: linear-gradient(135deg, #BCCCB0, #8A9E7C); }
.prod-bg-9 { background: linear-gradient(135deg, #D8C8B4, #B0906A); }

.hero-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 비율 유지하면서 꽉 채우기 */
  display: block;
}