/* ===== Reset & Baseline ===== */
* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --cream: #f7f5f0;
  --warm-white: #fcfaf7;
  --champagne: #d4c5a9;
  --gold: #b8975a;
  --wine: #7a2e3b;
  --ink: #1a1a1a;
  --charcoal: #3a3a3a;
  --stone: #9a9790;
  --border: #e8e4db;
  --light-border: #f0ede6;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  /* 韩文永不逐字断行（防止窄容器下文字被拆成"竖排"） */
  overflow-wrap: break-word;
}
/* 单行 UI 元素：不允许折行，保持横向阅读 */
a, button, h1, h2, h3, h4, h5, h6,
label, legend, .btn, .btn-line, .btn-black, .btn-outline, .hero-btn,
.nav a, .header nav a, .filter-link, .cat-link, .chip,
.p-name, .card-title, .item-name, .st-label {
  word-break: keep-all;
  overflow-wrap: normal;
}

a { text-decoration:none; color:inherit; }

/* ===== Subtle page fade-in ===== */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-in { animation: fadeUp 0.8s ease both; }
.fade-in-2 { animation: fadeUp 0.8s 0.15s ease both; }
.fade-in-3 { animation: fadeUp 0.8s 0.3s ease both; }

/* ===== Header — refined luxury ===== */
.header {
  position:sticky; top:0; z-index:99;
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 56px;
  background: rgba(252,250,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header .logo {
  font-size: 18px; font-weight: 500; letter-spacing: 1.2px;
  color: var(--ink);
}
.header .logo a { color: inherit; text-decoration: none; }

.header nav { display:flex; gap:36px; }
.header nav a {
  font-size: 13px; color: var(--charcoal); letter-spacing: 0.5px;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap; word-break: keep-all;
}
.header nav a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.header nav a:hover { color: var(--ink); }
.header nav a:hover::after { width: 100%; }

.header .btns { display:flex; gap:10px; align-items:center; }

/* 헤더 로그인 사용자 이름 */
.header .user-chip{
  display:inline-flex; align-items:center; max-width:110px;
  font-size:12px; letter-spacing:.5px; color:var(--charcoal);
  padding:0 6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  cursor:pointer; border-bottom:1px solid transparent;
}
.header .user-chip:hover{ color:var(--ink); border-color:var(--ink); }

/* ===== Header Search (럭셔리 검색 바) ===== */
.header-search {
  position: relative;
  display: flex; align-items: center;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 40px;
  height: 36px;
  padding: 0 6px 0 16px;
  margin-right: 18px;
  transition: border-color .25s, box-shadow .25s;
}
.header-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(177,149,97,.14);
}
.header-search input {
  border: none; outline: none; background: transparent;
  font-family: 'Pretendard'; font-size: 13px; letter-spacing: .3px;
  color: var(--ink); width: 190px; padding: 0;
}
.header-search input::placeholder { color: var(--stone); }
.header-search button {
  border: none; background: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  color: #fff; transition: background .25s;
}
.header-search button:hover { background: var(--gold); }

/* 입력 시 검색 제안 드롭다운 */
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(0,0,0,.09);
  z-index: 999; display: none; max-height: 330px; overflow-y: auto;
}
.search-suggest.show { display: block; }
.search-suggest a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; transition: background .2s;
}
.search-suggest a:hover { background: #faf7f0; }
.search-suggest img { width: 44px; height: 44px; object-fit: cover; flex: 0 0 auto; }
.search-suggest .s-name {
  font-size: 12.5px; color: var(--ink); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.search-suggest .s-price { font-size: 12px; color: var(--gold); margin-left: auto; white-space: nowrap; }
.search-suggest .s-empty { padding: 16px 14px; font-size: 12px; color: var(--stone); text-align: center; }

@media(max-width:600px){
  .header{ flex-wrap: wrap; row-gap: 10px; }
  .header-search{
    order: 10; width: 100%; margin: 0; height: 40px;
    border-radius: 8px; background: #f6f4ef;
  }
  .header-search input{ flex: 1; width: auto; font-size: 14px; }
  .header-search button{ width: 30px; height: 30px; }
}

/* ===== Language Switcher ===== */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--border); border-radius: 3px;
  margin-right: 14px; overflow: hidden;
}
.lang-switch button {
  border: none; background: none; cursor: pointer;
  font-family: 'Pretendard'; font-size: 11px; letter-spacing: .5px;
  color: var(--stone); padding: 5px 9px; transition: all .2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--ink); color: #fff; }
@media(max-width:600px){
  .lang-switch{display:none;}
}

.btn-line {
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 12px; letter-spacing: 0.5px;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap; word-break: keep-all;
}
.btn-line:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-black {
  padding: 9px 22px;
  border: none;
  font-size: 12px; letter-spacing: 0.5px;
  background: var(--ink); color: #fff;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap; word-break: keep-all;
}
.btn-black:hover {
  background: var(--charcoal);
}

/* ===== Hero — VIVER 스타일: 왼쪽 고정 카피 + 오른쪽 상품 이미지 슬라이드 ===== */
.hero {
  height: 640px;
  position: relative;
  display: flex;
  overflow: hidden;
  cursor: pointer;
  background: #f4f0e8;
}
/* 왼쪽 고정 카피 영역 (슬라이드와 무관하게 항상 유지) */
.hero-overlay {
  position: relative; z-index: 2;
  flex: 0 0 46%; max-width: 46%;
  display: flex; align-items: center;
  padding-left: 60px;
}
.hero-content {
  max-width: 460px;
  color: #3a3229;
}
.hero-label {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: #8a7f6b; margin-bottom: 26px;
}
.hero-title {
  font-size: 54px; font-weight: 600; line-height: 1.22;
  letter-spacing: -1.5px; margin-bottom: 24px;
  color: #1f1b16;
  word-break: keep-all;
}
.hero-sub {
  font-size: 15px; line-height: 1.75;
  color: #6b6256; margin-bottom: 42px;
  font-weight: 400;
  word-break: keep-all;
}
.hero-btn {
  display: inline-block; padding: 15px 38px;
  border: 1px solid #1f1b16; color: #1f1b16;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s ease;
  background: transparent;
  white-space: nowrap; word-break: keep-all;
}
.hero-btn:hover {
  background: #1f1b16; color: #f4f0e8;
}

/* 오른쪽 상품 이미지 슬라이드 */
.hero-slides {
  position: absolute; top: 0; right: 0; bottom: 0; left: 46%;
  z-index: 1;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.06);
  transition: transform 6s ease-out;
}
.hero-slide.active img { transform: scale(1); }
/* 하단 인디케이터 */
.hero-indicators {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 4; display: flex; gap: 9px; align-items: center;
}
.hero-dot {
  width: 36px; height: 2px; padding: 0; border: 0; cursor: pointer;
  background: rgba(44,38,32,0.18); position: relative; overflow: hidden;
}
.hero-dot span {
  position: absolute; inset: 0; width: 0; background: #2c2620;
}
.hero-dot.active span { width: 100%; }
/* 좌우 화살표 (이미지 영역 내) */
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(60,50,35,0.25);
  background: rgba(255,255,255,0.75); color: #2c2620;
  font-size: 20px; cursor: pointer; transition: all .25s;
  backdrop-filter: blur(3px);
}
.hero-nav:hover { background: #2c2620; color: #f4f0e8; border-color: #2c2620; }
.hero-prev { left: 44%; }
.hero-next { right: 24px; }

/* ===== Trust Bar ===== */
.trust-bar {
  display: flex; justify-content: center; gap: 72px;
  padding: 32px 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--light-border);
}
.trust-item {
  text-align: center;
  font-size: 12px; color: var(--stone); letter-spacing: 0.8px;
}
.trust-item strong {
  display: block; font-size: 15px; font-weight: 500;
  color: var(--ink); margin-bottom: 4px;
}

/* ===== Section titles ===== */
.section-head {
  position: relative;
  text-align: center; padding: 64px 0 36px;
}
.section-head .label {
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--stone);
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: 26px; font-weight: 400; letter-spacing: -0.3px;
  color: var(--ink);
}
.section-head .more-link {
  position: absolute;
  right: 40px; bottom: 42px;
  font-size: 13px; letter-spacing: 0;
  color: var(--stone);
  text-decoration: none;
  transition: color .25s;
}
.section-head .more-link:hover { color: var(--ink); }
@media (max-width: 720px) {
  .section-head .more-link { right: 20px; bottom: 40px; }
}

/* ===== Product Grid — elevated ===== */
.grid {
  max-width: 1120px; margin: auto;
  padding: 0 40px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.card {
  background: var(--warm-white);
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-6px); }
.card img {
  width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover;
  display: block;
}
.card-body { padding: 16px 0; }

.tag-red {
  font-size: 10px; letter-spacing: 1px;
  background: transparent; color: var(--wine);
  border: 1px solid var(--wine);
  padding: 3px 10px;
  text-transform: uppercase;
  font-weight: 500;
}

.card-body h4 {
  margin: 10px 0 6px;
  font-size: 13px; font-weight: 400;
  color: var(--charcoal);
}
.price {
  font-size: 15px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.2px;
}
.status {
  margin-top: 6px; font-size: 11px; color: var(--stone);
  letter-spacing: 0.3px;
}

/* ===== Newsletter / CTA Bar ===== */
.cta-bar {
  background: var(--ink);
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}
.cta-bar h3 {
  font-size: 20px; font-weight: 300; letter-spacing: -0.3px;
}
.cta-bar p {
  margin: 12px 0 24px; font-size: 13px;
  color: rgba(255,255,255,0.6); letter-spacing: 0.3px;
}
.cta-bar .btn-outline-light {
  display: inline-block;
  padding: 11px 32px;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 12px; letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s;
}
.cta-bar .btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ===== SEO Content block ===== */
.seo-content {
  background: var(--warm-white);
  padding: 56px 48px;
  border-bottom: 1px solid var(--border);
}
.seo-content-inner {
  max-width: 780px;
  margin: auto;
  text-align: center;
}
.seo-content h2 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 20px;
}
.seo-content p {
  font-size: 13.5px;
  line-height: 1.9;
  color: #5a5652;
  margin-bottom: 14px;
}
.seo-content strong { color: var(--ink); font-weight: 600; }

/* ===== Footer — full luxury ===== */
.footer {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  padding: 48px 56px 32px;
}
.footer-grid {
  max-width: 1120px; margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { font-size: 16px; font-weight: 500; letter-spacing: 1px; margin-bottom: 12px; }
.footer-brand p { font-size: 12px; color: var(--stone); line-height: 1.8; margin-top: 8px; }
.footer-col h4 {
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 12px; color: var(--stone);
  padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1120px; margin: 32px auto 0; padding-top: 24px;
  border-top: 1px solid var(--light-border);
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--stone); letter-spacing: 0.5px;
}

/* ===== Mobile ===== */
@media(max-width:1024px){
  .header{padding:14px 24px;}
  .grid{grid-template-columns:repeat(2,1fr); gap:20px;}
  .trust-bar{gap:32px; flex-wrap:wrap;}
  .footer-grid{grid-template-columns:1fr 1fr; gap:32px;}
}
@media(max-width:600px){
  .header{padding:12px 16px;}
  .header nav{display:none;}
  .hero{height:auto; flex-direction:column; justify-content:flex-start;}
  .hero-overlay{flex:0 0 auto; max-width:100%; width:100%; padding:72px 24px 0;}
  .hero-title{font-size:36px;}
  .hero-sub{font-size:14px; margin-bottom:28px;}
  .hero-btn{padding:13px 28px; font-size:11px;}
  .hero-slides{position:relative; left:0; width:100%; height:300px; margin-top:40px;}
  .hero-slide img{object-fit:cover; object-position:center;}
  .hero-nav{display:none;}
  .hero-indicators{bottom:14px; z-index:5;}
  .hero-dot{width:26px;}
  .grid{padding:0 16px 40px; gap:14px;}
  .footer-grid{grid-template-columns:1fr;}
  .footer-bottom{flex-direction:column; gap:8px;}
}
