/* ==========================================================================
   CURETICS 큐어틱스 — Design System
   한국형 커머스 스타일 · 화이트 베이스 + 크림슨 액센트 + 블랙
   ==========================================================================
   토큰 이름(--green-*, --gold-*)은 기존 페이지 호환을 위해 유지하되,
   값은 새 팔레트로 매핑되어 있습니다. 새로 작성하는 규칙은 아래
   의미 기반 토큰(--red, --black, --bg-gray ...)을 쓰세요.
   ========================================================================== */

:root {
  /* 브랜드 팔레트 — 아이보리 + 딥브라운 + 탠 */
  --cream: #f2e4ca;         /* 메인 아이보리 */
  --cream-soft: #f3f3f3;    /* 밝은 중성 (사진 배경) */
  --cream-deep: #ead9bb;    /* 진한 크림 (테두리·구분) */
  --brown: #443b37;         /* 딥 브라운 — 헤더·CTA·강조 */
  --brown-dark: #2a2a2a;    /* 제품 다크 (거의 블랙) */
  --brown-mid: #5b524b;     /* 본문 브라운그레이 */
  --tan: #b99a73;           /* 골드 브라운 액센트 */
  --tan-dark: #9c7f5a;
  --tan-soft: #e8dcc7;
  --accent: #a4552e;        /* 테라코타 — 가격·할인·세일 강조 */
  --accent-dark: #8a4525;
  --accent-tint: #f4e7dc;

  /* 의미 토큰 */
  --ink: #2a2a2a;           /* 제목 */
  --text: #5b524b;          /* 본문 */
  --muted: #8c8178;         /* 보조 */
  --line: #e4e4e4;
  --line-soft: #ededed;
  --bg: #fbf8f2;            /* 페이지 베이스 (밝은 아이보리) */
  --bg-gray: #f2f2f2;       /* 섹션 배경 (페이지보다 한 단계 진한 중성 회색) */
  --bg-soft: #fafafa;
  --page-bg: #fafafa;       /* 페이지 배경 (아주 옅은 회색) — 상단 네비게이션바만 흰색 */
  --white: #ffffff;
  --black: #443b37;         /* '검정' 자리를 딥브라운으로 */
  --red: #a4552e;           /* 액센트(구 크림슨 → 테라코타) */
  --red-bright: #b5623a;
  --red-dark: #8a4525;
  --red-tint: #f4e7dc;
  --blue: #6f7d6a;          /* 카테고리 구분 (세이지) */
  --purple: #8a6f5a;        /* 카테고리 구분 (모카) */

  /* 구버전 토큰 → 새 팔레트 매핑 (기존 규칙 호환) */
  --green-900: #2a2a2a;
  --green-800: #443b37;
  --green-700: #443b37;
  --green-600: #5b524b;
  --green-500: #443b37;
  --green-100: #ead9bb;
  --green-50: #f0f0f0;
  --gold: #b99a73;
  --gold-dark: #9c7f5a;
  --gold-light: #f4e7dc;
  --ivory: #fbf8f2;
  --danger: #a4552e;

  /* Product accents */
  --boyun-from: #443b37;
  --boyun-to: #b99a73;
  --pium-from: #b99a73;
  --pium-to: #e8dcc7;

  /* Typography */
  --font-serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;

  /* Layout */
  --container: 1360px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 14px rgba(68, 59, 55, 0.07);
  --shadow-lg: 0 10px 34px rgba(68, 59, 55, 0.12);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18.5px; }  /* 기준 글자 크기 — 사이트 전체가 rem 기준이라 이 값 하나로 커지고 작아진다 */
body {
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Typography helpers ------------------------------------------------------ */
.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--green-800);
}
.section-sub { color: var(--muted); margin-top: 12px; max-width: 560px; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.serif { font-family: var(--font-serif); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.22s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: var(--ivory); }
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: var(--ivory); }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-dark); color: var(--ivory); }
.btn-ghost { color: var(--green-700); padding: 14px 18px; }
.btn-ghost:hover { background: var(--green-50); border-radius: 999px; }
.btn-lg { padding: 17px 40px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Badges ------------------------------------------------------------------ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.badge-best { background: var(--green-700); color: var(--ivory); }
.badge-new { background: var(--gold-light); color: var(--gold-dark); }
.badge-sale { background: #f7e3e0; color: var(--danger); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo { display: flex; flex-direction: column; line-height: 1.15; }
.logo-en {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green-800);
}
.logo-ko { font-size: 0.68rem; letter-spacing: 0.42em; color: var(--gold-dark); font-weight: 600; }
.gnb { display: flex; gap: 6px; }
.gnb a {
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: all 0.18s;
}
.gnb a:hover { background: var(--green-50); color: var(--green-700); }
.gnb a.active { color: var(--green-700); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--green-800);
  transition: background 0.18s;
}
.icon-btn:hover { background: var(--green-50); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-900);
  font-size: 0.66rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-badge.hidden { display: none; }
.mobile-toggle { display: none; }
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-nav a { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--green-50); }
.mobile-nav.open { display: flex; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 253, 248, 0.75);
  margin-top: 100px;
  padding: 64px 0 40px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.14);
}
.footer-logo .logo-en { color: var(--ivory); }
.footer-logo .logo-ko { color: var(--gold); }
.footer-desc { margin-top: 14px; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  color: var(--ivory);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a { display: block; padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold); }
.footer-cs-tel { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ivory); margin-bottom: 6px; }
.footer-meta { padding-top: 28px; line-height: 1.9; font-size: 0.84rem; color: rgba(255, 253, 248, 0.5); }
.footer-notice {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(201, 168, 106, 0.35);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: 0.84rem;
}

/* Home hero ---------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201, 168, 106, 0.16), transparent 60%),
    linear-gradient(165deg, var(--ivory) 0%, var(--cream) 55%, var(--green-50) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--green-900);
}
.hero-title em { font-style: normal; color: var(--green-500); position: relative; z-index: 0; }
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 12px;
  background: rgba(201, 168, 106, 0.35);
  z-index: -1;
}
.hero-copy { max-width: 640px; }
.hero-sub { margin-top: 22px; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero-visuals .product-visual { box-shadow: var(--shadow-lg); }
.hero-visuals .product-visual:first-child { transform: translateY(24px); }

/* Brand preview (홈) -------------------------------------------------------- */
.brand-preview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.brand-preview-copy { min-width: 0; }
.brand-preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.brand-preview-stats .stat {
  background: rgba(255, 253, 248, 0.07);
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.brand-preview-stats .stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.brand-preview-stats .stat span { font-size: 0.9rem; color: rgba(255, 253, 248, 0.75); }

/* Page hero (서브페이지 상단) ---------------------------------------------- */
.page-hero {
  background: linear-gradient(160deg, var(--green-800), var(--green-600));
  color: var(--ivory);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
.page-hero p { margin-top: 12px; color: rgba(255, 253, 248, 0.8); }
.breadcrumb { font-size: 0.92rem; color: var(--muted); padding: 18px 0; }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

/* Product visual (이미지 대체 SVG 컨테이너) --------------------------------- */
.product-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-visual svg { width: 100%; height: 100%; }

/* Product cards ----------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .product-visual { border-radius: 0; }
.product-card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-cat { font-size: 0.86rem; letter-spacing: 0.12em; color: var(--gold-dark); font-weight: 700; }
.product-card-name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--green-800); }
.product-card-name .en { font-size: 0.88rem; color: var(--muted); font-family: var(--font-sans); letter-spacing: 0.14em; margin-left: 8px; }
.product-card-desc { font-size: 0.98rem; color: var(--muted); flex: 1; }
.product-card-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.price-original { font-size: 0.92rem; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.discount-rate { color: var(--danger); font-weight: 800; font-size: 1.05rem; }
.rating-row { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 0.95rem; }
.product-card-actions { display: flex; gap: 10px; margin-top: 16px; }
.product-card-actions .btn { flex: 1; padding: 12px 10px; font-size: 0.95rem; }

/* Section spacing --------------------------------------------------------- */
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.bg-white { background: var(--white); }
.bg-green { background: var(--green-800); color: var(--ivory); }
.bg-green .section-title { color: var(--ivory); }
.bg-green .section-sub { color: rgba(255, 253, 248, 0.75); }

/* USP strip --------------------------------------------------------------- */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.usp-item { text-align: center; padding: 32px 20px; }
.usp-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
}
.usp-icon svg { width: 28px; height: 28px; }
.usp-item h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; color: var(--green-800); }
.usp-item p { font-size: 0.95rem; color: var(--muted); }

/* Review cards ------------------------------------------------------------ */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card .quote { font-size: 1.04rem; line-height: 1.75; color: var(--ink); flex: 1; }
.review-card .who { font-size: 0.9rem; color: var(--muted); }
.review-card .who strong { color: var(--green-700); }
.review-product-tag {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
}

/* Forms ------------------------------------------------------------------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--green-800); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
}
.field .hint { font-size: 0.86rem; color: var(--muted); margin-top: 6px; }
.field .error { font-size: 0.86rem; color: var(--danger); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 0.96rem; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--green-700); }

/* Quantity stepper -------------------------------------------------------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}
.qty-stepper button {
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  color: var(--green-700);
  font-weight: 700;
  transition: background 0.15s;
}
.qty-stepper button:hover { background: var(--green-50); }
.qty-stepper .qty-value { min-width: 42px; text-align: center; font-weight: 700; }

/* Tabs -------------------------------------------------------------------- */
.tabs { display: flex; border-bottom: 2px solid var(--line); gap: 4px; margin-bottom: 36px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 14px 26px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.18s;
}
.tab-btn:hover { color: var(--green-700); }
.tab-btn.active { color: var(--green-700); border-bottom-color: var(--green-700); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Accordion (FAQ) --------------------------------------------------------- */
.accordion { border-top: 2px solid var(--green-800); }
.accordion-item { border-bottom: 1px solid var(--line); background: var(--white); }
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s;
}
.accordion-header:hover { color: var(--green-700); }
.accordion-header .q-mark { color: var(--gold-dark); font-family: var(--font-serif); font-size: 1.1rem; margin-right: 10px; }
.accordion-header .arrow { transition: transform 0.25s; color: var(--muted); flex-shrink: 0; }
.accordion-item.open .accordion-header .arrow { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 24px 24px 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}
.accordion-item.open .accordion-body { display: block; }

/* Tables (장바구니, 주문내역) ----------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th {
  background: var(--green-800);
  color: var(--ivory);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 15px 18px;
  text-align: left;
}
.data-table td { padding: 20px 18px; border-bottom: 1px solid var(--green-50); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* Cart item --------------------------------------------------------------- */
.cart-item-info { display: flex; align-items: center; gap: 18px; }
.cart-thumb { width: 76px; height: 76px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.cart-thumb svg { width: 100%; height: 100%; }
.cart-item-name { font-weight: 700; color: var(--green-800); }
.cart-item-option { font-size: 0.9rem; color: var(--muted); margin-top: 3px; }
.remove-btn { color: var(--muted); font-size: 0.88rem; text-decoration: underline; transition: color 0.15s; }
.remove-btn:hover { color: var(--danger); }

/* Summary box (주문 요약) --------------------------------------------------- */
.summary-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  position: sticky;
  top: 96px;
}
.summary-box h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--green-800);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--green-800);
  margin-bottom: 18px;
}
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 1rem; color: var(--muted); }
.summary-row strong { color: var(--ink); }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.summary-total .label { font-weight: 700; }
.summary-total .amount { font-size: 1.5rem; font-weight: 800; color: var(--green-700); }
.free-ship-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--gold-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* Two-column layout (장바구니/주문서) --------------------------------------- */
.layout-2col { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }

/* Auth card --------------------------------------------------------------- */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 40px; }
.auth-card h1 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--green-800); text-align: center; margin-bottom: 8px; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 30px; }
.auth-switch { text-align: center; margin-top: 22px; font-size: 0.95rem; color: var(--muted); }
.auth-switch a { color: var(--green-700); font-weight: 700; text-decoration: underline; }

/* Empty state ------------------------------------------------------------- */
.empty-state { text-align: center; padding: 90px 20px; }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 18px; }
.empty-state h2 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--green-800); margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 28px; }

/* Toast ------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green-800);
  color: var(--ivory);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .toast-check { color: var(--gold); font-weight: 800; }

/* Notice list ------------------------------------------------------------- */
.notice-list { border-top: 2px solid var(--green-800); }
.notice-item { border-bottom: 1px solid var(--line); background: var(--white); }
.notice-item a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; transition: background 0.15s; }
.notice-item a:hover { background: var(--green-50); }
.notice-item .n-title { font-weight: 600; }
.notice-item .n-date { font-size: 0.88rem; color: var(--muted); flex-shrink: 0; }
.notice-item .n-badge { flex-shrink: 0; }

/* Info banner (건기식 고지 등) ---------------------------------------------- */
.info-banner {
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  font-size: 0.95rem;
  color: var(--green-700);
  line-height: 1.7;
}
.info-banner.warn { background: var(--gold-light); border-color: #e8d9ba; color: var(--gold-dark); }

/* Detail page ------------------------------------------------------------- */
.pd-top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pd-info .pd-cat { font-size: 0.9rem; letter-spacing: 0.14em; color: var(--gold-dark); font-weight: 700; }
.pd-info h1 { font-family: var(--font-serif); font-size: 2.1rem; color: var(--green-800); margin: 8px 0 4px; }
.pd-info .pd-en { font-size: 0.95rem; letter-spacing: 0.2em; color: var(--muted); }
.pd-tagline { margin-top: 16px; font-size: 1.02rem; color: var(--ink); }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin: 24px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-price-row .price { font-size: 1.8rem; }
.pd-ingredients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pd-ingredients .chip {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}
.pd-ship { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 0.98rem; line-height: 1.6; }
.pd-ship > div { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.pd-ship dt { flex: 0 0 118px; font-weight: 700; color: var(--ink); }
.pd-ship dd { flex: 1 1 200px; min-width: 0; margin: 0; color: var(--text); }
.pd-ship .pd-ship-note { color: var(--muted); }
.pd-buy-box { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.pd-option-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pd-total-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); }
.pd-total-row .amount { font-size: 1.6rem; font-weight: 800; color: var(--green-700); }
.pd-actions { display: flex; gap: 12px; }
.pd-actions .btn { flex: 1; }

/* Nutrition table --------------------------------------------------------- */
.nutrition-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.nutrition-table th, .nutrition-table td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.nutrition-table th { background: var(--green-50); color: var(--green-800); font-weight: 700; width: 40%; }

/* Detail content blocks --------------------------------------------------- */
.detail-block { max-width: 760px; margin: 0 auto 56px; }
.detail-block h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--green-800);
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
}
.detail-block p { color: var(--muted); line-height: 1.85; }
.detail-block ul { margin-top: 12px; }
.detail-block ul li { padding: 8px 0 8px 26px; position: relative; color: var(--ink); }
.detail-block ul li::before { content: '✓'; position: absolute; left: 4px; color: var(--gold-dark); font-weight: 800; }

/* Review list (상세페이지) -------------------------------------------------- */
.review-list-item { background: var(--white); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); margin-bottom: 16px; }
.review-list-item .r-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-list-item .r-meta { font-size: 0.88rem; color: var(--muted); }
.review-list-item .r-body { font-size: 1.02rem; line-height: 1.75; }

/* Order complete ---------------------------------------------------------- */
.order-done { text-align: center; padding: 80px 20px 40px; }
.order-done .done-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.order-done h1 { font-family: var(--font-serif); font-size: 1.8rem; color: var(--green-800); margin-bottom: 12px; }
.order-done .order-no { color: var(--gold-dark); font-weight: 800; letter-spacing: 0.08em; }
.order-detail-card { max-width: 620px; margin: 40px auto 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; text-align: left; }

/* Mypage ------------------------------------------------------------------ */
.mypage-head {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 34px;
  margin-bottom: 36px;
}
.mypage-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.mypage-head .m-name { font-size: 1.15rem; font-weight: 800; color: var(--green-800); }
.mypage-head .m-email { font-size: 0.92rem; color: var(--muted); }
.mypage-head .m-actions { margin-left: auto; }

/* Utility ----------------------------------------------------------------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.92rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hidden { display: none !important; }

/* Preview notice (서버 없이 열람 중일 때 상단 안내 바) ---------------------- */
.preview-notice {
  background: var(--gold-light);
  color: var(--gold-dark);
  border-bottom: 1px solid #e8d9ba;
  padding: 11px 24px;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.6;
}
.preview-notice strong { color: var(--green-800); }
.preview-notice code {
  background: rgba(18, 37, 28, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.92em;
}
.preview-notice a { color: var(--green-700); font-weight: 700; text-decoration: underline; }

/* Page transitions (MPA View Transitions — 지원 브라우저에서 크로스페이드) -----
   헤더/푸터에 별도 transition-name을 주면 root 페이드에서 제외되어,
   페이지가 바뀌는 동안 네비게이션바가 사라지지 않고 그대로 유지된다. */
@view-transition { navigation: auto; }
@keyframes vt-fade-in { from { opacity: 0; } }
@keyframes vt-fade-out { to { opacity: 0; } }
::view-transition-old(root) { animation: vt-fade-out 0.14s ease both; }
::view-transition-new(root) { animation: vt-fade-in 0.18s ease both; }
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

/* hidden 속성이 레이아웃 규칙에 덮이지 않도록 (관리자 메뉴 등) */
[hidden] { display: none !important; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 960px) {
  .gnb { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-visuals { max-width: 420px; }
  .brand-preview { grid-template-columns: 1fr; gap: 36px; }
  .mobile-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .pd-top { grid-template-columns: 1fr; gap: 36px; }
  .layout-2col { grid-template-columns: 1fr; }
  .summary-box { position: static; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .header-inner { height: 62px; }
  .data-table th:nth-child(n+3), .data-table td:nth-child(n+3) { font-size: 0.92rem; }
}

/* ==========================================================================
   Home hero slider (자동 캐러셀) — 마크업은 assets/js/home.js 에서 생성
   ========================================================================== */
.hslider {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  /* 슬라이드는 JS로 주입되므로 컨테이너가 미리 높이를 잡아 레이아웃 이동을 막는다 */
  min-height: 520px;
}
.hs-viewport { overflow: hidden; touch-action: pan-y; }
.hs-viewport:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }
.hslider.is-dragging .hs-viewport { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.hs-track {
  display: flex;
  will-change: transform;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0ms;
}

/* Slide shell ------------------------------------------------------------- */
.hs-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0; /* 트랙 이동(-index*100%) 계산이 어긋나지 않도록 폭 고정 */
  display: flex;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
}
.hs-slide::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hs-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 82px;
}
.hs-copy { max-width: 600px; min-width: 0; }
.hs-slide a { -webkit-user-drag: none; }

/* Slide typography -------------------------------------------------------- */
.hs-eyebrow { margin-bottom: 12px; }
.hs-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--green-900);
}
.hs-title em { font-style: normal; color: var(--green-500); position: relative; z-index: 0; }
.hs-title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 12px;
  background: rgba(201, 168, 106, 0.35);
  z-index: -1;
}
.hs-title .hs-en {
  display: inline-block;
  margin-left: 12px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  vertical-align: middle;
}
.hs-sub { margin-top: 20px; font-size: 1.1rem; line-height: 1.8; color: var(--muted); }
.hs-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Price row (제품 슬라이드) ------------------------------------------------- */
.hs-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hs-rate { font-size: 1.15rem; font-weight: 800; color: var(--danger); }
.hs-now { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--green-900); }
.hs-was { font-size: 1rem; color: var(--muted); text-decoration: line-through; }

/* Contrast modes ---------------------------------------------------------- */
.hs-slide.is-dark-bg .hs-title,
.hs-slide.is-dark-bg .hs-now { color: var(--ivory); }
.hs-slide.is-dark-bg .hs-title em { color: var(--gold); }
.hs-slide.is-dark-bg .hs-title em::after { background: rgba(201, 168, 106, 0.22); }
.hs-slide.is-dark-bg .hs-eyebrow,
.hs-slide.is-dark-bg .hs-rate,
.hs-slide.is-dark-bg .hs-title .hs-en { color: var(--gold); }
.hs-slide.is-dark-bg .hs-sub { color: rgba(255, 253, 248, 0.86); }
.hs-slide.is-dark-bg .hs-was { color: rgba(255, 253, 248, 0.65); }

.hs-slide.is-light-bg .hs-title,
.hs-slide.is-light-bg .hs-now { color: var(--green-900); }
.hs-slide.is-light-bg .hs-sub { color: var(--green-700); }

/* Slide backgrounds ------------------------------------------------------- */
.hs-slide-brand {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201, 168, 106, 0.16), transparent 60%),
    linear-gradient(165deg, var(--ivory) 0%, var(--cream) 55%, var(--green-50) 100%);
}
.hs-slide.hs-slide-brand .hs-sub { color: var(--muted); }
.hs-slide-product { background: linear-gradient(118deg, var(--hs-from, var(--green-600)) 0%, var(--hs-to, var(--green-100)) 100%); }
/* 텍스트가 놓이는 좌측에 스크림을 깔아 대비 확보 */
.hs-slide-product.is-dark-bg::before {
  background: linear-gradient(96deg, rgba(11, 24, 18, 0.66) 0%, rgba(11, 24, 18, 0.38) 44%, rgba(11, 24, 18, 0) 74%);
}
.hs-slide-product.is-light-bg::before {
  background: linear-gradient(96deg, rgba(255, 253, 248, 0.9) 0%, rgba(255, 253, 248, 0.55) 44%, rgba(255, 253, 248, 0) 74%);
}
.hs-slide-event {
  background:
    radial-gradient(900px 420px at 76% 8%, rgba(201, 168, 106, 0.3), transparent 62%),
    linear-gradient(140deg, var(--green-900) 0%, var(--green-700) 58%, var(--green-600) 100%);
}

/* Slide buttons ----------------------------------------------------------- */
.hs-slide.is-dark-bg .hs-btn { background: var(--ivory); color: var(--green-900); }
.hs-slide.is-dark-bg .hs-btn:hover { background: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.hs-slide.is-light-bg .hs-btn { background: var(--green-800); color: var(--ivory); }
.hs-slide.is-light-bg .hs-btn:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: var(--shadow); }
.hs-btn-ghost { border-color: rgba(255, 253, 248, 0.55); color: var(--ivory); }
.hs-btn-ghost:hover { background: rgba(255, 253, 248, 0.12); border-color: var(--ivory); }

/* Slide visuals ----------------------------------------------------------- */
.hs-visual { display: grid; gap: 20px; min-width: 0; }
.hs-visual-pair { grid-template-columns: 1fr 1fr; }
.hs-visual-pair .product-visual { box-shadow: var(--shadow-lg); }
.hs-visual-pair .product-visual:first-child { transform: translateY(24px); }
.hs-visual-single { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; }
.hs-visual-single .product-visual { box-shadow: 0 26px 60px rgba(11, 24, 18, 0.3); }

/* Coupon card (이벤트 슬라이드) --------------------------------------------- */
.hs-coupon {
  background: var(--ivory);
  border: 1px solid rgba(201, 168, 106, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 26px 60px rgba(11, 24, 18, 0.34);
  overflow: hidden;
  text-align: center;
  transform: rotate(-2deg);
}
.hs-coupon-top { padding: 34px 26px 28px; }
.hs-coupon-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--gold-dark);
}
.hs-coupon-rate {
  display: block;
  margin: 10px 0 6px;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--green-800);
}
.hs-coupon-rate span { font-size: 2rem; margin-left: 2px; }
.hs-coupon-desc { font-size: 1rem; font-weight: 600; color: var(--green-700); }
.hs-coupon-foot {
  padding: 14px 20px;
  border-top: 1px dashed rgba(201, 168, 106, 0.65);
  background: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-dark);
}

/* Arrows ------------------------------------------------------------------ */
.hs-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.88);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(11, 24, 18, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hs-arrow:hover { background: var(--ivory); transform: translateY(-50%) scale(1.07); }
.hs-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hs-arrow svg { width: 20px; height: 20px; }
.hs-prev { left: clamp(10px, 2.2vw, 26px); }
.hs-next { right: clamp(10px, 2.2vw, 26px); }

/* Dots + 자동재생 진행 표시 -------------------------------------------------- */
.hs-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(11, 24, 18, 0.32);
  backdrop-filter: blur(8px);
}
/* 투명 테두리로 터치 영역(약 23px)을 넓히고, 배경은 패딩 박스에만 칠함 */
.hs-dot {
  position: relative;
  box-sizing: content-box;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 7px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.5);
  background-clip: padding-box;
  transition: width 0.32s ease, background 0.32s ease;
}
.hs-dot:hover { background: rgba(255, 253, 248, 0.82); background-clip: padding-box; }
.hs-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: -5px; }
.hs-dot.is-active { width: 34px; background: rgba(255, 253, 248, 0.34); background-clip: padding-box; }
.hs-dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--gold);
  transform-origin: left center;
  animation: hs-dot-fill 5000ms linear forwards;
}
@keyframes hs-dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hslider.is-paused .hs-dot.is-active::after { animation-play-state: paused; }
.hslider.is-static .hs-dot.is-active::after { animation: none; transform: scaleX(1); }

/* Slider responsive -------------------------------------------------------- */
@media (max-width: 960px) {
  .hslider, .hs-slide { min-height: 0; }
  .hs-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 76px;
  }
  .hs-copy { max-width: none; }
  .hs-visual { max-width: 420px; margin: 0 auto; }
  .hs-visual-single { max-width: 260px; margin: 0 auto; }
  .hs-visual-pair .product-visual:first-child { transform: none; }
  .hs-sub { font-size: 1.1rem; }
  .hs-arrow { width: 40px; height: 40px; }
  .hs-coupon { transform: none; }
}
@media (max-width: 620px) {
  .hs-inner { padding-top: 36px; padding-bottom: 72px; gap: 26px; }
  .hs-title { font-size: clamp(1.75rem, 7.6vw, 2.2rem); }
  .hs-title .hs-en { display: block; margin: 6px 0 0; }
  .hs-sub { margin-top: 16px; font-size: 1.1rem; }
  .hs-actions { margin-top: 24px; gap: 10px; }
  .hs-actions .btn-lg { padding: 14px 26px; font-size: 1rem; }
  .hs-visual { max-width: 300px; gap: 14px; }
  .hs-visual-single { max-width: 210px; }
  /* 좁은 화면에서는 화살표가 버튼·문구를 가리므로 숨긴다 — 스와이프와 도트로 이동 */
  .hs-arrow { display: none; }
  .hs-coupon-rate { font-size: 3.2rem; }
  .hs-dots { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hs-track { transition-duration: 0ms !important; }
  .hs-dot.is-active::after { animation: none; transform: scaleX(1); }
  .hs-arrow, .hs-dot { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ==========================================================================
   커머스 리디자인 레이어 (2026-08)
   화이트 베이스 + 크림슨 액센트의 한국형 쇼핑몰 레이아웃.
   앞선 규칙들을 의도적으로 덮어씁니다.
   ========================================================================== */

body { background: var(--page-bg); color: var(--text); font-size: 1rem; }
.container { max-width: var(--container); padding: 0 20px; }

/* ---------- 상단 프로모션 바 ---------- */
.topbar {
  background: var(--black);
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 0.6rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.topbar strong { font-weight: 700; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.header-util {
  max-width: var(--container);
  margin: 0 auto;
  padding: 7px 20px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}
.header-util a { color: var(--muted); }
.header-util a:hover { color: var(--ink); }
.header-util .sep { color: var(--line); }
.header-util .util-badge {
  background: var(--red); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
  margin-left: 4px;
}

.header-inner {
  height: auto;
  padding: 6px 0 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.logo { flex-direction: row; align-items: baseline; gap: 7px; }
.logo-en {
  font-family: var(--font-sans);
  font-size: 1.7rem; font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-en .o { color: var(--red); }
.logo-ko { font-size: 0.66rem; letter-spacing: 0.3em; color: var(--muted); font-weight: 600; }

.gnb { gap: 2px; justify-content: flex-start; }
.gnb a {
  padding: 8px 14px;
  font-size: 1.06rem; font-weight: 400;
  color: var(--ink);
  border-radius: 0;
  position: relative;
}
.gnb a:hover { background: none; color: var(--red); }
.gnb a.active { color: var(--red); font-weight: 400; }
.gnb a.nav-blue { color: var(--blue); }
.gnb a.nav-purple { color: var(--purple); }
.gnb a.nav-red { color: var(--red); }
.gnb a .nav-new {
  position: absolute; top: -1px; right: 4px;
  font-size: 0.5rem; font-weight: 800; color: var(--red);
}

.header-actions { gap: 4px; }
.search-box {
  display: flex; align-items: center;
  background: var(--bg-gray);
  border-radius: 999px;
  padding: 0 8px 0 16px;
  height: 40px;
  width: 300px;
  margin-right: 6px;
}
.search-box input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 0.9rem; color: var(--ink); min-width: 0;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button { display: flex; align-items: center; color: var(--ink); padding: 4px; }
.search-box svg { width: 18px; height: 18px; }
.icon-btn { width: 38px; height: 38px; color: var(--ink); }
.icon-btn:hover { background: var(--bg-gray); }
.cart-badge { background: var(--red); color: #fff; }
.hamburger { display: inline-flex; align-items: center; padding: 8px 12px 8px 0; color: var(--ink); }
.hamburger svg { width: 22px; height: 22px; }

/* ---------- 섹션 헤더 ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-head { margin-bottom: 30px; }
.section-head.center { text-align: center; }
.eyebrow {
  display: block;
  font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0; text-transform: none;
  color: var(--muted); margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-sans);
  font-size: 2rem; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.3;
  color: var(--ink);
}
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 10px; }

/* ---------- 버튼 ---------- */
.btn {
  border-radius: 4px;
  font-weight: 700;
  padding: 13px 26px;
  font-size: 1rem;
  border-width: 1px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: none; box-shadow: none; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--black); color: #fff; }
.btn-gold:hover { background: #333; color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- 카테고리 탭 ---------- */
.cat-tabs {
  display: flex; align-items: center; gap: 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  padding: 14px 2px;
  font-size: 1.08rem; font-weight: 600;
  color: var(--text); white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.cat-tab.active { color: var(--red); font-weight: 800; border-bottom-color: var(--red); }
.cat-tabs-note { margin-left: auto; font-size: 0.9rem; font-weight: 700; color: var(--red); white-space: nowrap; }

/* ---------- 원형 카테고리 ---------- */
.cat-circles {
  display: flex; gap: 26px;
  padding: 30px 0 6px;
  overflow-x: auto; scrollbar-width: none;
}
.cat-circles::-webkit-scrollbar { display: none; }
.cat-circle { flex: 0 0 auto; width: 96px; text-align: center; }
.cat-circle .cc-img {
  display: block;
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden; margin: 0 auto 10px;
  background: var(--bg-gray);
  transition: transform 0.18s ease;
}
.cat-circle:hover .cc-img { transform: translateY(-3px); }
.cat-circle .cc-img svg,
.cat-circle .cc-img img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.cat-circle .cc-label {
  display: block;
  font-size: 0.92rem; line-height: 1.35; color: var(--ink); font-weight: 600;
  word-break: keep-all;
}

/* ---------- 프로모션 배너 2단 ---------- */
.promo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-card {
  position: relative;
  border-radius: 8px; overflow: hidden;
  min-height: 150px;
  padding: 28px 30px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
}
.promo-card h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.promo-card p { font-size: 1rem; margin-top: 8px; opacity: 0.9; }
.promo-card .promo-badge {
  position: absolute; top: 12px; right: 14px;
  background: var(--red); color: #fff;
  font-size: 0.66rem; font-weight: 800;
  padding: 3px 9px; border-radius: 3px;
}
.promo-card .promo-page {
  position: absolute; bottom: 12px; right: 14px;
  background: rgba(0,0,0,0.35); color: #fff;
  font-size: 0.68rem; padding: 2px 9px; border-radius: 999px;
}
.promo-red { background: linear-gradient(120deg, #443b37, #6b5c52); }
.promo-plum { background: linear-gradient(120deg, #b99a73, #e8dcc7); color: #443b37; }
.promo-plum h3 { color: #443b37; }

/* ---------- 특가 타이머 섹션 ---------- */
.flash { background: var(--bg-gray); padding: 62px 0; }
.flash-head { text-align: center; margin-bottom: 36px; }
.flash-head h2 { font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.flash-head p { color: var(--muted); font-size: 1.05rem; margin-top: 8px; }
.flash-body { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; }
.flash-timer { text-align: center; }
.flash-timer .ft-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.95rem; color: var(--text); margin-bottom: 10px;
}
.flash-timer .ft-clock { font-size: 2.5rem; font-weight: 800; color: var(--ink); letter-spacing: 0.02em; }
.flash-timer .ft-clock span { display: inline-block; min-width: 1.3em; }
.flash-deals { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.deal-card { background: #fff; border-radius: 6px; overflow: hidden; }
.deal-head {
  padding: 9px 16px; font-size: 0.98rem; font-weight: 800; color: #fff;
  text-align: center;
}
.deal-head.is-red { background: var(--red); }
.deal-head.is-black { background: var(--black); }
.deal-body { padding: 16px; }
.deal-tag {
  display: block; font-size: 0.84rem; color: var(--muted);
  background: var(--bg-gray); padding: 6px 8px; border-radius: 4px;
  margin-bottom: 12px; line-height: 1.4;
}
.deal-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.deal-price .dp-rate { font-size: 1.6rem; font-weight: 800; color: var(--red); }
.deal-price .dp-now { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.deal-price .dp-was { font-size: 0.9rem; color: var(--muted); text-decoration: line-through; }
.deal-name { margin-top: 10px; font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.45; }
.deal-name em { font-style: normal; color: var(--red); }

/* ---------- 제품 카드 ---------- */
.product-grid { grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.product-grid.cols-3 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: none; border-radius: 0; box-shadow: none; overflow: visible;
}
.product-card:hover { transform: none; box-shadow: none; }
.product-card .product-visual { border-radius: 8px; overflow: hidden; background: var(--bg-gray); }
.product-card:hover .product-visual { opacity: 0.92; }
.product-card-body { padding: 14px 2px 0; gap: 5px; }
.product-card-cat { display: none; }
.product-card-name {
  font-family: var(--font-sans);
  font-size: 1.12rem; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.4;
}
.product-card-name .en { display: none; }
.product-card-desc {
  font-size: 0.98rem; color: var(--muted); line-height: 1.5;
  flex: none;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.rating-row { font-size: 0.9rem; gap: 4px; }
.stars { font-size: 0.95rem; color: #c79a4e; }
.product-card-meta { align-items: baseline; gap: 7px; margin-top: 4px; flex-wrap: wrap; }
.price { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.price-original { font-size: 0.92rem; color: var(--muted); }
.discount-rate {
  font-size: 0.9rem; font-weight: 800;
  color: var(--red); background: var(--red-tint);
  padding: 2px 6px; border-radius: 3px;
}
.product-card-actions { margin-top: 12px; gap: 6px; }
.product-card-actions .btn { padding: 10px 8px; font-size: 0.95rem; }

/* 배지 */
.badge { border-radius: 3px; font-size: 0.74rem; padding: 3px 8px; }
.badge-best { background: var(--red); color: #fff; }
.badge-new { background: var(--ink); color: #fff; }
.badge-sale { background: var(--red-tint); color: var(--red); }

/* ---------- 리뷰 카드 ---------- */
.review-card { border: 1px solid var(--line); border-radius: 8px; box-shadow: none; padding: 24px; }
.review-product-tag { background: var(--bg-gray); color: var(--text); }

/* ---------- USP ---------- */
.usp-item { padding: 22px 14px; }
.usp-icon { background: var(--bg-gray); color: var(--red); width: 54px; height: 54px; margin-bottom: 14px; }
.usp-item h3 { color: var(--ink); font-size: 1.08rem; }
.usp-item p { font-size: 0.95rem; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--bg-gray);
  color: var(--text);
  margin-top: 70px;
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
}
.footer-grid { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.site-footer .footer-logo .logo-en { color: var(--ink); font-size: 1.4rem; }
.site-footer .footer-logo .logo-ko { color: var(--muted); }
.footer-desc { color: var(--text); font-size: 0.92rem; }
.footer-col h4 { color: var(--ink); font-size: 0.92rem; letter-spacing: 0; }
.footer-col a { color: var(--text); font-size: 0.92rem; }
.footer-col a:hover { color: var(--red); }
.footer-cs-tel { color: var(--ink); font-weight: 800; font-size: 1.35rem; font-family: var(--font-sans); }
.footer-meta { color: var(--muted); font-size: 0.84rem; }
.footer-notice {
  border-color: var(--line); color: var(--muted);
  background: #fff; font-size: 0.84rem;
}

/* ---------- 서브페이지 히어로 ---------- */
.page-hero {
  background: var(--bg-gray);
  color: var(--ink);
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { color: var(--red); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.page-hero h1 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.03em; font-size: 2.1rem; }
.page-hero p { color: var(--muted); }

/* ---------- 다크 섹션 ---------- */
.bg-green { background: var(--ink); }
.bg-green .section-title { color: #fff; }
.bg-green .section-sub { color: rgba(255,255,255,0.7); }
.bg-white { background: var(--white); }

/* ---------- 폼/표 ---------- */
.field input, .field select, .field textarea { border-radius: 4px; border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field label { color: var(--ink); }
.data-table th { background: var(--bg-gray); color: var(--ink); font-weight: 700; }
.data-table { box-shadow: none; border: 1px solid var(--line); border-radius: 8px; }
.summary-box { box-shadow: none; border: 1px solid var(--line); border-radius: 8px; }
.summary-box h3 { border-bottom-color: var(--ink); color: var(--ink); font-family: var(--font-sans); font-weight: 800; }
.summary-total .amount { color: var(--red); }
.free-ship-note { background: var(--red-tint); color: var(--red); }
.auth-card { box-shadow: none; border: 1px solid var(--line); border-radius: 8px; }
.auth-card h1 { font-family: var(--font-sans); font-weight: 800; }
.info-banner { background: var(--bg-gray); border-color: var(--line); color: var(--text); border-radius: 6px; }
.info-banner.warn { background: #fff8e6; border-color: #f0e0b0; color: #8a6d1f; }
.accordion { border-top-color: var(--ink); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.qty-stepper { border-radius: 4px; }
.qty-stepper button { color: var(--ink); }
.notice-list { border-top-color: var(--ink); }
.mypage-avatar { background: var(--ink); color: #fff; font-family: var(--font-sans); }
.mypage-head { box-shadow: none; border: 1px solid var(--line); }
.detail-block h3 { border-left-color: var(--red); font-family: var(--font-sans); font-weight: 800; }
.pd-info h1 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.03em; }
.pd-price-row .price { font-size: 2rem; }
.order-done .done-icon { background: var(--red); }
.order-done h1 { font-family: var(--font-sans); font-weight: 800; }
.order-done .order-no { color: var(--red); }
.empty-state h2 { font-family: var(--font-sans); font-weight: 800; }
.toast { background: var(--ink); border-radius: 6px; }
.toast .toast-check { color: #6ee7a8; }
.preview-notice { background: #fff8e6; border-color: #f0e0b0; color: #8a6d1f; }
.preview-notice strong { color: var(--ink); }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .search-box { width: 190px; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .flash-body { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr; padding: 6px 0 12px; }
  .search-box { display: none; }
  .promo-duo { grid-template-columns: 1fr; }
  .flash-deals { grid-template-columns: 1fr; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0; }
}
@media (max-width: 560px) {
  .header-util { display: none; }
  .cat-circle, .cat-circle .cc-img { width: 84px; }
  .cat-circle .cc-img { height: 84px; }
  .cat-circle .cc-label { font-size: 0.84rem; }
  .flash-timer .ft-clock { font-size: 2rem; }
  .section-title { font-size: 1.4rem; }
}

/* ---------- 헤더 2단 구조 보정 ----------
   두 줄 모두 .container의 좌우 패딩(20px)을 그대로 써서 로고·햄버거·본문 컨테이너의
   왼쪽 끝이 한 선에 맞고, 세로 패딩은 위아래 같은 값으로 둔다. */
.header-top { border-bottom: 1px solid var(--line-soft); }
.header-top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 14px; padding-bottom: 14px;
}
.header-util {
  max-width: none; margin: 0; padding: 0;
  justify-content: flex-end;
}
.logo { gap: 0; }
.header-inner {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 20px;
  padding: 6px 20px;
}
.nav-left { display: flex; align-items: center; gap: 2px; min-width: 0; }
.gnb { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.gnb::-webkit-scrollbar { display: none; }
.gnb a { white-space: nowrap; }
.mobile-toggle { display: inline-flex; }
/* 전체메뉴: 아래 콘텐츠를 밀지 않고 헤더 아래에 떠 있는 패널로 표시 */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: max(20px, calc((100% - var(--container)) / 2 + 20px));
  right: auto;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px 20px 14px;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
/* 구분선은 항목 사이에만: 마지막 항목 아래에 선이 남지 않도록 위쪽 선으로 처리 */
.mobile-nav a { border-bottom: none; color: var(--ink); }
.mobile-nav a + a { border-top: 1px solid var(--line-soft); }
.mobile-nav.open { display: flex; animation: menu-in 0.18s ease; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
/* 메뉴가 열리면 헤더 아래 화면을 살짝 어둡게 — 여기를 클릭하면 메뉴가 닫힌다(common.js) */
body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.45);
  animation: backdrop-in 0.18s ease;
}
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr auto; padding: 6px 20px; }
  .gnb { display: none; }
  .header-top-inner { padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 620px) {
  .mobile-nav { left: 0; right: 0; width: auto; border-radius: 0; border-left: none; border-right: none; }
  /* 좁은 화면: 카드 버튼 두 개를 세로로 쌓고, 탭 줄 오른쪽 안내문은 숨긴다(잘린 채 보이지 않도록) */
  .product-card-actions { flex-wrap: wrap; }
  .cat-tabs-note { display: none; }
}

/* ---------- 가로 넘침 방지 ----------
   그리드 아이템은 기본 min-width:auto 때문에 내용(버튼 줄·표)보다 작아지지 못해
   좁은 화면에서 페이지가 옆으로 밀린다. 아이템이 칸 너비에 맞게 줄어들게 한다. */
.product-grid > * { min-width: 0; }
.layout-2col > * { min-width: 0; }

/* ---------- 장바구니 표: 좁은 화면에서는 행을 카드형으로 ----------
   4열 표를 옆으로 스크롤시키면 금액·삭제 열이 화면 밖에 숨는다.
   [제품 정보 | 삭제] / [수량 | 금액] 두 줄 그리드로 다시 배치한다. */
@media (max-width: 620px) {
  #cart-root .data-table, #cart-root .data-table tbody { display: block; }
  #cart-root .data-table thead { display: none; }
  #cart-root .data-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "info remove" "qty price";
    align-items: center;
    gap: 14px 10px;
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  #cart-root .data-table tr:last-child { border-bottom: none; }
  #cart-root .data-table td { display: block; padding: 0; border: none; }
  #cart-root .data-table td:nth-child(1) { grid-area: info; }
  #cart-root .data-table td:nth-child(2) { grid-area: qty; }
  #cart-root .data-table td:nth-child(3) { grid-area: price; text-align: right; font-size: 1.05rem; }
  #cart-root .data-table td:nth-child(4) { grid-area: remove; text-align: right; align-self: start; }
  #cart-root .cart-item-info { gap: 12px; }
  #cart-root .cart-thumb { width: 64px; height: 64px; }
}

/* ---------- 제작된 상세페이지 삽입(iframe) ---------- */
.detail-frame {
  display: block; width: 100%; max-width: 920px; margin: 0 auto; min-height: 900px;
  border: 0; background: #fff; border-radius: 8px;
}
#tab-detail .detail-block { max-width: none; }
@media (max-width: 600px) {
  /* 보윤, 피움 상세 내부 여백을 사용해 모바일의 이중 여백을 없앤다. */
  .detail-frame[src="products/boyun-pium/detail.html"] {
    width: calc(100% + 40px);
    max-width: none;
    margin-inline: -20px;
    border-radius: 0;
  }
}

/* ---------- 실제 제품 사진 ---------- */
.product-visual .product-photo,
.cart-thumb .product-photo {
  width: 100%; height: 100%; object-fit: contain;
  background: var(--white); padding: 6%;
}
.cat-circle .cc-img .product-photo { object-fit: cover; padding: 8%; background: var(--white); }
.hs-visual .product-visual .product-photo { background: transparent; padding: 0; }

/* ---------- 제품 수가 적을 때 그리드 정렬 ---------- */
.product-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; }
@media (max-width: 860px) { .product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid.cols-2 { grid-template-columns: 1fr; } }
