/* ===== 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: #6f6a63;
  --border: #e8e4db;
  --light-border: #f0ede6;
}

body {
  font-family: 'Pretendard', 'Pretendard Fallback', -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); line-height: 1.15;
}
.header .logo a {
  color: inherit; text-decoration: none;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 4px;
  /* 터치 대상 최소 24px(Lighthouse target-size) — 18px 한 줄만으로는 21px 이라 실패 */
  min-height: 24px;
}
.header .logo .logo-sub {
  font-size: 8px; font-weight: 300; letter-spacing: 3.6px;
  color: var(--charcoal); opacity: 0.55; line-height: 1;
  text-transform: uppercase;
}

.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; }
}

.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: #5f5849; 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;
  /* 터치 대상 최소 24px(Lighthouse target-size) — 13px 텍스트만으로는 19px 이라 실패 */
  display: inline-block; min-height: 24px; line-height: 24px; padding: 0 2px;
}
.section-head .more-link:hover { color: var(--ink); }
@media (max-width: 720px) {
  .section-head .more-link { right: 20px; bottom: 40px; }
}

/* ===== 상품 상세 SEO 본문 · 추천 컬렉션 ===== */
.seo-zone { max-width: 1120px; margin: 0 auto; padding: 8px 40px 16px; }
.seo-zone h2 { font-size: 22px; font-weight: 400; letter-spacing: -0.3px; color: var(--ink); margin: 36px 0 18px; padding-top: 34px; border-top: 1px solid rgba(17, 17, 17, .08); }
.seo-zone p { font-size: 14.5px; line-height: 1.95; color: var(--stone); margin: 0 0 14px; word-break: keep-all; }
.seo-zone p + h2 { margin-top: 34px; }
.seo-spec { list-style: none; margin: 26px 0 0; padding: 22px 26px; border: 1px solid rgba(17, 17, 17, .08); background: var(--warm-white); }
.seo-spec li { display: flex; gap: 18px; padding: 9px 0; border-bottom: 1px solid rgba(17, 17, 17, .05); font-size: 13.5px; }
.seo-spec li:last-child { border-bottom: 0; }
.seo-spec b { flex: 0 0 118px; font-weight: 600; color: var(--ink); }
.seo-spec span { color: var(--stone); word-break: keep-all; }
.rel-t, .rel-links { max-width: 1120px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.rel-t { font-size: 15px; font-weight: 600; color: var(--ink); padding: 34px 40px 0; border-top: 1px solid rgba(17, 17, 17, .08); }
.rel-links { font-size: 13.5px; line-height: 2.1; color: var(--stone); padding: 8px 40px 0; margin-bottom: 8px; word-break: keep-all; overflow-wrap: break-word; }
.rel-links a { color: #8a6d4b; text-decoration: none; display: inline-block; margin: 4px 6px 4px 0; padding: 4px 13px; background: #f7f3ec; border: 1px solid #ece4d5; border-radius: 999px; transition: color .2s, border-color .2s; }
.rel-links a:hover { color: var(--ink); border-color: #8a6d4b; }
.rec-zone { margin-top: 10px; border-top: 1px solid rgba(17, 17, 17, .08); }
.rec-zone .grid { padding-top: 8px; }
@media (max-width: 720px) {
  .seo-zone { padding: 8px 20px 20px; }
  .seo-spec { padding: 14px 18px; }
  .seo-spec b { flex-basis: 88px; }
}

/* ===== 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 .p-name, .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,
.cta-bar button.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 button.btn-outline-light {
  font-family: inherit;
  line-height: normal;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.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 .f-h, .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;}
}

/* ===== 푸터 정책줄 · 사업자 정보 · 정책 페이지 (국내 표준) ===== */
.footer-policy{max-width:1120px;margin:26px auto 0;display:flex;flex-wrap:wrap;gap:4px 24px;padding:0 24px;}
/* 터치 대상 최소 24px(Lighthouse target-size) — 11px 텍스트만으로는 15px 높이라 실패했다 */
.footer-policy a{font-size:11px;color:var(--stone);letter-spacing:.5px;text-decoration:none;transition:color .2s;display:inline-block;min-height:24px;line-height:24px;padding:0 2px;}
.footer-policy a:hover{color:var(--ink);}
.footer-biz{margin-top:8px;font-size:11px;color:var(--stone);}
.footer-reject{max-width:1120px;margin:12px auto 0;padding:0 24px;font-size:11px;color:#6f6a63;line-height:1.75;letter-spacing:.3px;}
@media(max-width:1120px){.footer-policy{padding:0 20px;}.footer-reject{padding:0 20px;}}
.policy-page{max-width:780px;margin:auto;padding:76px 24px 96px;}
.policy-page .overline{font-size:10px;letter-spacing:3px;color:#6f6a63;text-transform:uppercase;}
.policy-page h1{font-size:26px;font-weight:300;letter-spacing:-.5px;margin:10px 0 4px;}
.policy-page .updated{font-size:12px;color:#6f6a63;margin-bottom:26px;}
.policy-page h2{font-size:15px;font-weight:600;margin:30px 0 8px;color:#23211e;}
.policy-page p,.policy-page li{font-size:13px;line-height:1.95;color:#5a5652;}
.policy-page ul,.policy-page ol{margin:0 0 8px;padding-left:20px;}
.policy-page li{margin-bottom:3px;}
.policy-page .co-box{background:#faf7f1;border:1px solid #ece5d9;border-radius:6px;padding:20px 24px;margin:26px 0 0;}
.policy-page dl,.co-box dl{margin:0;}
.co-row{display:grid;grid-template-columns:auto 1fr;gap:7px 20px;font-size:13px;}
.co-row dt{color:#7d6133;white-space:nowrap;font-weight:500;}
.co-row dd{margin:0;color:#3d3a35;}
@media(max-width:600px){.policy-page{padding:56px 18px 80px;}.co-row{grid-template-columns:1fr;gap:2px 0;}.co-row dd{margin-bottom:8px;}}

/* ===== 상품 페이지 FAQ (서버 렌더) ===== */
.faq-zone{max-width:1120px;margin:44px auto 6px;padding:0 40px;box-sizing:border-box;}
.faq-zone .section-head{position:relative;text-align:center;padding:60px 0 34px;}
.faq-zone .section-head h2{font-size:19px;font-weight:600;letter-spacing:-.3px;display:inline-block;}
.faq-list{margin-top:4px;}
.faq-row{background:#fff;border:1px solid var(--light-border);border-radius:10px;overflow:hidden;margin:0 0 10px;transition:box-shadow .2s;}
.faq-row[open]{box-shadow:0 6px 18px rgba(20,16,8,.05);}
.faq-row summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;font-size:13.5px;font-weight:600;color:var(--ink);cursor:pointer;line-height:1.6;word-break:keep-all;}
.faq-row summary::-webkit-details-marker{display:none;}
.faq-row summary::after{content:'+';font-size:18px;color:var(--gold);font-weight:300;transition:transform .25s;line-height:1;flex:0 0 auto;}
.faq-row[open] summary::after{transform:rotate(45deg);}
.faq-a{padding:0 18px 16px;}
.faq-a p{font-size:13px;line-height:1.85;color:#5a5652;margin:0;word-break:keep-all;overflow-wrap:break-word;}
@media(max-width:720px){.faq-zone{padding:0 20px;}.faq-zone .section-head{padding-top:44px;}}
@media(max-width:600px){.faq-row summary{padding:13px 14px;font-size:13px;}.faq-a{padding:0 14px 14px;}.rel-t,.rel-links{padding-left:20px;padding-right:20px;}.rel-links{padding-top:6px;}}

/* ===== 상품 페이지 · 관련 스토리(블로그) 카드 (서버 렌더) ===== */
.story-zone{max-width:1120px;margin:44px auto 8px;padding:0 40px;box-sizing:border-box;}
.story-zone .section-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:16px;}
.story-zone .section-head h2{font-size:19px;font-weight:600;letter-spacing:-.3px;margin:0;}
.story-zone .section-head::after{content:'';flex:1;min-width:24px;height:1px;background:linear-gradient(90deg,var(--light-border),transparent);align-self:center;}
.story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.story-card{display:flex;flex-direction:column;text-decoration:none;border:1px solid var(--light-border);background:#fff;overflow:hidden;transition:box-shadow .25s,transform .25s;}
.story-card:hover{box-shadow:0 10px 26px rgba(20,16,8,.08);transform:translateY(-2px);}
.story-thumb{display:block;aspect-ratio:16/9;overflow:hidden;background:#f5f2ea;}
.story-thumb img{width:100%;height:100%;object-fit:cover;}
.story-body{padding:14px 16px 17px;display:flex;flex-direction:column;gap:8px;flex:1;align-content:flex-start;}
.story-tag{font-size:10.5px;letter-spacing:.6px;color:var(--gold);font-weight:600;line-height:1;}
.story-body strong{font-size:14.5px;line-height:1.45;color:var(--ink);font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all;overflow-wrap:break-word;}
.story-ex{font-size:12.5px;line-height:1.62;color:var(--stone);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all;overflow-wrap:break-word;}
@media(max-width:900px){.story-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:720px){.story-zone,.rel-t,.rel-links{padding-left:20px;padding-right:20px;}}
@media(max-width:600px){.story-grid{grid-template-columns:1fr;}.story-zone{padding-left:20px;padding-right:20px;}}

/* ===== modal.css merged ===== */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}
.detail-overlay.active { display: flex; }

.detail-panel {
  width: min(860px, 95vw);
  height: 88vh;
  background: #fcfaf7;
  display: flex;
  overflow: hidden;
}

.detail-img {
  flex: 1;
  background: #f5f3ee;
}
.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  width: 340px;
  padding: 40px 32px;
  overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center;
}

.close {
  position: absolute;
  right: 24px;
  top: 20px;
  background: none; border: none;
  font-size: 24px; color: #3a3a3a;
  cursor: pointer;
  transition: opacity 0.2s;
}
.close:hover { opacity: 0.5; }

.badge-row {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.badge-row span {
  font-size: 11px; letter-spacing: 0.5px;
  padding: 4px 12px;
  background: transparent; color: #7a2e3b;
  border: 1px solid #7a2e3b;
}

.price-lg {
  font-size: 24px; font-weight: 500;
  margin: 20px 0 12px;
  color: #1a1a1a;
}

.desc {
  font-size: 13px; color: #6b6864;
  line-height: 1.7; margin-bottom: 8px;
}

.btn-kakao {
  display: block; width: 100%;
  margin-top: 28px; padding: 14px;
  background: #1a1a1a; color: #fff;
  border: none; font-size: 13px; letter-spacing: 0.5px;
  text-align: center; cursor: pointer;
  transition: background 0.25s;
}
.btn-kakao:hover { background: #3a3a3a; }

/* mobile */
@media (max-width: 768px) {
  .detail-panel { flex-direction: column; height: 95vh; }
  .detail-img { height: 260px; }
  .detail-info { width: 100%; padding: 28px 20px; }
}
