/* =========================================================
   선물편집부 디자인: 겨울 셀렉트숍
   - 상품은 은은한 색 무대 위에, 글자는 조용하게
   - 빨강은 할인율과 가격에만
   색을 바꾸고 싶으면 아래 :root 값만 고치면 됩니다.
   ========================================================= */
:root {
  --paper: #ffffff;
  --ink: #10312a;        /* 기본 글자(전나무색) */
  --muted: #5f736d;      /* 보조 글자 */
  --line: #d9e2df;       /* 선 */
  --shelf: #eef3f1;      /* 입력칸, 푸터 배경 */
  --sale: #d0191f;       /* 할인율·가격 */

  /* 상품 무대 색 (카드마다 차례로) */
  --stage-0: #dce7f1;
  --stage-1: #f5e3e1;
  --stage-2: #e1ebe5;
  --stage-3: #e8e3f1;
  --stage-4: #f1ece0;

  /* 무료 상업용 폰트 (SIL OFL): 제목 고운바탕, 본문·가격 프리텐다드 */
  --font-title: "Gowun Batang", "Nanum Myeongjo", serif;
  --font-body: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-num: var(--font-body);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- 쿠팡 파트너스 고지 (필수) ---------- */
.disclosure {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 9px 16px;
}

/* ---------- 헤더 ---------- */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark { width: 12px; height: 12px; border-radius: 50%; background: var(--sale); font-size: 0; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 0; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- 상품 무대 ---------- */
.stage { position: relative; overflow: hidden; isolation: isolate; background: var(--stage-0); }
.stage-1 { background: var(--stage-1); }
.stage-2 { background: var(--stage-2); }
.stage-3 { background: var(--stage-3); }
.stage-4 { background: var(--stage-4); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 배너에서 상품 사진만 (config.js의 PHOTO_ONLY: true) */
.stage.photo-only { background: #fff; }
.stage.photo-only .banner-img { inset: 50% auto auto 50%; width: 110.5%; max-width: none; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 26.7%; transform: translate(-50%, -50%); }
/* 배너 원본 그대로 (PHOTO_ONLY: false) */
.thumb.has-banner { aspect-ratio: auto; padding: 20px 0; background: #f4efe4; }
.stage.has-banner .banner-img { position: static; display: block; width: 136px; max-width: 100%; height: auto; margin: 0 auto; aspect-ratio: 1 / 2; object-fit: contain; }

/* ---------- 맨 위 상품 ---------- */
.hero { padding-top: 4px; }
.hero[hidden] { display: none; }
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--stage-0);
  text-decoration: none;
}
.hero-body { padding: 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-kicker {
  margin: 0 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 14px;
  border-radius: 999px;
}
.hero-title { margin: 0; max-width: 15em; font-size: 30px; line-height: 1.32; font-weight: 700; letter-spacing: -0.035em; }
.hero-card .hero-price { display: grid; gap: 4px; margin-top: 26px; }
.hero-price .rate { font-size: clamp(76px, 8.4vw, 116px); line-height: 0.95; letter-spacing: -0.06em; margin-left: -0.035em; }
.hero-price .sale-price { font-size: 40px; line-height: 1.15; }
.hero-price .list-price { font-size: 17px; }
.hero-media { min-height: 100%; }
.hero-card:has(.has-banner) { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); min-height: 0; }
.hero-media.has-banner { display: grid; place-items: center; padding: 40px 24px; background: #f4efe4; }
.stage.hero-media.has-banner .banner-img { width: 180px; }

/* ---------- 가격 ---------- */
.price-row { display: flex; align-items: baseline; gap: 0 8px; flex-wrap: wrap; }
.rate, .sale-price { font-family: var(--font-num); color: var(--sale); font-weight: 800; letter-spacing: -0.03em; }
.rate, .sale-price { font-size: 23px; line-height: 1.25; }
.list-price { flex-basis: 100%; color: var(--muted); font-size: 14px; }

/* ---------- 기획전 제목 ---------- */
.show-head { padding: 44px 0 34px; }
.show-head h1 { margin: 0; font-size: clamp(34px, 5.6vw, 68px); line-height: 1.12; font-weight: 800; letter-spacing: -0.055em; }
.show-head p { margin: 12px 0 0; font-size: 19px; color: var(--muted); }
.show-tabs { margin-top: 52px; }

/* ---------- 목록 머리 + 검색/정렬 ---------- */
.list-head { display: flex; align-items: baseline; gap: 10px; margin: 44px 0 18px; }
.list-head h1 { margin: 0; font-size: 32px; line-height: 1.25; font-weight: 800; letter-spacing: -0.045em; }
.result-count { margin: 0; color: var(--muted); font-size: 15px; }

.controls { display: flex; gap: 10px; margin-bottom: 22px; }
.search { position: relative; flex: 1; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.controls input, .controls select {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--shelf);
  color: var(--ink);
  font: inherit;
}
.controls input { padding: 0 18px 0 46px; }
.controls input::placeholder { color: var(--muted); }
.controls select {
  width: auto;
  padding: 0 42px 0 20px;
  font-weight: 600;
  appearance: none;
  background: var(--shelf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2310312a' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 18px center / 11px;
  cursor: pointer;
}
.controls input:focus, .controls select:focus { outline: 2px solid var(--ink); outline-offset: 0; }

/* ---------- 카테고리 (글자 탭) ---------- */
.categories { display: flex; gap: 24px; overflow-x: auto; margin-bottom: 28px; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  padding: 6px 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.chip span { display: none; }
.chip:hover { color: var(--ink); }
.chip:focus-visible { outline-offset: -2px; }
.chip[aria-current="page"], .chip[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }

/* ---------- 상품 카드 ---------- */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
  margin-bottom: 88px;
}
.deal-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; }
.thumb { aspect-ratio: 1 / 1; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.more {
  margin-top: auto;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  padding: 14px 18px;
  border-radius: 12px;
}
/* 이름은 늘 두 줄 자리, 가격은 왼쪽·할인율은 오른쪽, 정가 자리는 비어 있어도 유지 */
.card-body .card-title { min-height: 2.9em; margin-bottom: 4px; font-weight: 600; }
.reason { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.card-body .reason { min-height: 1.45em; margin-bottom: 12px; }
.card-body .price-row { margin-top: auto; }
.hero-body .reason { margin-top: 8px; font-size: 17px; }
.hero-body .reason + .hero-price { margin-top: 20px; }
.card-body .price-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 20px; align-items: baseline; }
.card-body .sale-price { grid-area: 1 / 1; }
.card-body .rate { grid-area: 1 / 2; color: #0c7d4f; font-size: 0.82em; }
.card-body .price-row { font-size: 23px; }
/* 맨 위 상품은 큰 할인율만 빨강 */
.hero-card .hero-price .sale-price { color: var(--ink); }
.card-body .list-price { grid-area: 2 / 1 / 3 / 3; line-height: 20px; }
.card-body .price-row:not(:last-child) { margin-bottom: 16px; }
.hero-body .more { margin-top: 30px; padding: 17px 34px; font-size: 16px; }
.deal-card:hover .more, .hero-card:hover .more { background: var(--sale); }
.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty { text-align: center; color: var(--muted); background: var(--shelf); border-radius: 22px; padding: 64px 16px; margin: 0 0 88px; }

/* ---------- 소개 페이지 ---------- */
.article { max-width: 680px; margin: 48px 0 96px; }
.article h1 { font-size: 40px; line-height: 1.2; font-weight: 800; letter-spacing: -0.05em; margin: 0 0 18px; }
.article h2 { font-size: 20px; letter-spacing: -0.03em; margin: 40px 0 8px; }
.article p { margin: 0; font-size: 16px; line-height: 1.75; }

/* ---------- 편집부의 글 ---------- */
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-list a { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-list strong { display: block; font-size: 20px; line-height: 1.4; letter-spacing: -0.03em; }
.guide-list span { display: block; margin-top: 4px; color: var(--muted); }
.guide-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.article-img { width: 100%; height: auto; margin: 26px 0 0; border-radius: 16px; }
.article .article-next { margin-top: 48px; font-weight: 700; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--shelf); color: var(--muted); font-size: 13px; padding: 40px 0 48px; }
.site-footer p { margin: 4px 0; }

/* ---------- 상품 추가 도우미 (admin.html) ---------- */
.admin-main { padding-top: 28px; padding-bottom: 48px; }
.admin-title { font-weight: 800; font-size: 34px; margin: 0 0 6px; letter-spacing: -0.5px; }
.admin-lead { margin: 0 0 20px; color: var(--muted); max-width: 68ch; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}
.panel h2 { margin: 0 0 16px; font-size: 18px; font-weight: 800; }
.preview-panel { position: sticky; top: 76px; }
.preview-slot .deal-card:hover { border-color: var(--line); }
.thumb-empty {
  height: 100%; display: grid; place-items: center; text-align: center;
  padding: 24px; color: var(--muted); font-size: 13px; background: var(--shelf);
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; }
.field .req { color: var(--sale); font-size: 12px; font-weight: 700; margin-left: 4px; }
.field .opt { color: var(--muted); font-size: 12px; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
}
.field textarea { resize: vertical; font-size: 13px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 49, 42, 0.12); }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field-row .field { margin-bottom: 4px; }

.tag-field { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 6px; }
.tag-field label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.tag-field input { width: 18px; height: 18px; padding: 0; }

.hint { margin: 0 0 12px; font-size: 13px; color: var(--muted); min-height: 0; }
.hint:empty { display: none; }
.hint[data-kind="warn"] { color: #b4261c; }
.hint[data-kind="ok"] { color: #1f7a3a; }
.field .hint { margin: 0; }

.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--sale); border-color: var(--sale); }
.btn-small { font-size: 13px; padding: 7px 11px; border-radius: 8px; }
.btn-danger { color: #b4261c; }
.btn-danger:hover { border-color: #b4261c; }
.file-btn { display: inline-block; }
.form-msg { margin-top: 12px; }

.list-panel, .save-panel { margin-top: 16px; }
.list-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.list-panel-head h2 { margin: 0; }
.muted { color: var(--muted); font-weight: 500; }
.admin-list { list-style: none; margin: 8px 0 0; padding: 0; }
.admin-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.admin-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--shelf); }
.admin-info strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.status { font-weight: 700; }
.status-on { color: #1f7a3a; }
.status-off { color: #b4261c; }
.admin-actions { display: flex; gap: 6px; }
.admin-empty { padding: 20px 0; color: var(--muted); border-top: 1px solid var(--line); }

.dirty { margin: 0 0 12px; font-weight: 700; color: #b4261c; }
.save-help { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.save-help p { margin: 0 0 8px; line-height: 1.7; }
.save-help code { background: var(--shelf); padding: 1px 5px; border-radius: 4px; font-size: 13px; }

@media (max-width: 860px) {
  .admin-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; max-width: 300px; }
}
@media (max-width: 640px) {
  .panel { padding: 18px 16px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .admin-item { grid-template-columns: 48px minmax(0, 1fr); }
  .admin-item img { width: 48px; height: 48px; }
  .admin-actions { grid-column: 1 / -1; }
}

.preview-slot .deal-card { pointer-events: none; }

/* ---------- 태블릿 ---------- */
@media (max-width: 860px) {
  .hero-body { padding: 36px; }
  .hero-title { font-size: 24px; }
}

/* ---------- 모바일 ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 60px; }
  .logo { font-size: 20px; gap: 6px; }
  .logo-mark { width: 10px; height: 10px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13.5px; }

  .hero-card { grid-template-columns: 1fr; min-height: 0; border-radius: 26px; }
  .hero-media { order: -1; min-height: 0; aspect-ratio: 5 / 4; }
  .hero-card:has(.has-banner) { grid-template-columns: minmax(0, 1fr) 142px; }
  .hero-media.has-banner { order: 0; aspect-ratio: auto; padding: 18px 11px; }
  .stage.hero-media.has-banner .banner-img { width: 120px; }
  .hero-card:has(.has-banner) .hero-body { padding: 20px 14px 20px 20px; }
  .hero-card:has(.has-banner) .hero-kicker { font-size: 12.5px; padding: 8px 11px; }
  .hero-card:has(.has-banner) .hero-title { font-size: 18px; }
  .hero-card:has(.has-banner) .hero-price .rate { font-size: 56px; }
  .hero-card:has(.has-banner) .hero-price .sale-price { font-size: 26px; }
  .hero-body { padding: 24px 24px 30px; }
  .hero-kicker { margin-bottom: 14px; }
  .hero-title { font-size: 21px; }
  .hero-card .hero-price { margin-top: 18px; }
  .hero-price .rate { font-size: 76px; }
  .hero-price .sale-price { font-size: 34px; }

  .show-head { padding: 22px 0 22px; }
  .show-head p { margin-top: 6px; font-size: 16px; }
  .show-tabs { margin-top: 34px; }
  .list-head { margin: 28px 0 14px; }
  .list-head h1 { font-size: 25px; }
  .controls { gap: 8px; margin-bottom: 16px; }
  .controls select { padding-left: 16px; padding-right: 36px; background-position: right 14px center; }
  .categories { gap: 20px; margin-bottom: 20px; }

  .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 64px; }
  .thumb.has-banner { padding: 14px 0; }
  .stage.has-banner .banner-img { width: 120px; }
  .deal-card { border-radius: 16px; }
  .more { padding: 12px; font-size: 14px; }
  .card-body .price-row { font-size: 19px; }
  .reason { font-size: 13px; }
  .hero-body .reason { font-size: 13.5px; margin-top: 6px; }
  .hero-card .hero-body .reason + .hero-price { margin-top: 12px; }
  .card-body .price-row:not(:last-child) { margin-bottom: 12px; }
  .hero-body .more { margin-top: 20px; padding: 15px; align-self: stretch; }
  .card-body { padding: 12px 12px 12px; }
  .card-title { font-size: 14.5px; margin-bottom: 6px; }
  .rate, .sale-price { font-size: 19px; }
  .list-price { font-size: 13px; }

  .article { margin: 32px 0 64px; }
  .article h1 { font-size: 30px; }
}

/* =========================================================
   크리스마스 옷 (body에 class="xmas"가 있는 화면만)
   포장지 무늬 바탕 + 머리 위 전구 줄
   ========================================================= */
.xmas { background: #14493a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%231d5a45'%3E%3Cpath d='M42 22l-11 16h6l-9 14h28l-9-14h6z M40 52h4v6h-4z'/%3E%3Cpath d='M152 132l-11 16h6l-9 14h28l-9-14h6z M150 162h4v6h-4z'/%3E%3Cpath d='M152 27l3.6 9.4 9.4 3.6-9.4 3.6-3.6 9.4-3.6-9.4-9.4-3.6 9.4-3.6z'/%3E%3Cpath d='M42 137l3.6 9.4 9.4 3.6-9.4 3.6-3.6 9.4-3.6-9.4-9.4-3.6 9.4-3.6z'/%3E%3Cpath d='M86 88h20v18h-20zM85 82h22v5h-22zM196 198h20v18h-20zM195 192h22v5h-22z'/%3E%3C/g%3E%3Cg fill='%232a6f57'%3E%3Ccircle cx='98' cy='20' r='3'/%3E%3Ccircle cx='208' cy='92' r='3'/%3E%3Ccircle cx='14' cy='100' r='3'/%3E%3Ccircle cx='112' cy='190' r='3'/%3E%3C/g%3E%3C/svg%3E"); --ink: #10312a; }
.xmas .disclosure { background: #0f3a2e; color: #c9ded4; font-size: 12.5px; font-weight: 400; padding: 10px 16px 2px; }
.xmas { min-height: 100vh; display: flex; flex-direction: column; }
.xmas > main { flex: 1; width: 100%; }
.xmas .site-header { position: relative; background: #0f3a2e; color: #fff; }
.xmas .logo-mark { background: #ff6b5e; }
.xmas .nav a { color: #b7d3c7; }
.xmas .nav a:hover, .xmas .nav a[aria-current="page"] { color: #fff; }
.xmas .site-header::before, .xmas .site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 54px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='54'%3E%3Cpath d='M0 4L10 6.9L20 9.7L30 12.4L40 15.0L50 17.4L60 19.6L70 21.5L80 23.1L90 24.3L100 25.3L110 25.8L120 26.0L130 25.8L140 25.3L150 24.3L160 23.1L170 21.5L180 19.6L190 17.4L200 15.0L210 12.4L220 9.7L230 6.9L240 4.0' fill='none' stroke='%230a2219' stroke-width='2'/%3E%3Ccircle cx='20' cy='20.7' r='13' fill='%23ffd76a' opacity='.28'/%3E%3Cpath d='M17.5 9.7h5v4h-5z' fill='%230a2219'/%3E%3Cellipse cx='20' cy='20.7' rx='5' ry='7.5' fill='%23ffd76a'/%3E%3Cpath d='M57.5 19.6h5v4h-5z' fill='%230a2219'/%3E%3Cellipse cx='60' cy='30.6' rx='5' ry='7.5' fill='%23ff6b5e'/%3E%3Ccircle cx='100' cy='36.3' r='13' fill='%23fff3cf' opacity='.28'/%3E%3Cpath d='M97.5 25.3h5v4h-5z' fill='%230a2219'/%3E%3Cellipse cx='100' cy='36.3' rx='5' ry='7.5' fill='%23fff3cf'/%3E%3Cpath d='M137.5 25.3h5v4h-5z' fill='%230a2219'/%3E%3Cellipse cx='140' cy='36.3' rx='5' ry='7.5' fill='%23ffd76a'/%3E%3Ccircle cx='180' cy='30.6' r='13' fill='%237fd6a6' opacity='.28'/%3E%3Cpath d='M177.5 19.6h5v4h-5z' fill='%230a2219'/%3E%3Cellipse cx='180' cy='30.6' rx='5' ry='7.5' fill='%237fd6a6'/%3E%3Cpath d='M217.5 9.7h5v4h-5z' fill='%230a2219'/%3E%3Cellipse cx='220' cy='20.7' rx='5' ry='7.5' fill='%23ff6b5e'/%3E%3C/svg%3E") repeat-x center top; pointer-events: none; }
.xmas .site-header::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='54'%3E%3Ccircle cx='60' cy='30.6' r='13' fill='%23ff6b5e' opacity='.28'/%3E%3Cpath d='M57.5 19.6h5v4h-5z' fill='%230a2219'/%3E%3Cellipse cx='60' cy='30.6' rx='5' ry='7.5' fill='%23ff6b5e'/%3E%3Ccircle cx='140' cy='36.3' r='13' fill='%23ffd76a' opacity='.28'/%3E%3Cpath d='M137.5 25.3h5v4h-5z' fill='%230a2219'/%3E%3Cellipse cx='140' cy='36.3' rx='5' ry='7.5' fill='%23ffd76a'/%3E%3Ccircle cx='220' cy='20.7' r='13' fill='%23ff6b5e' opacity='.28'/%3E%3Cpath d='M217.5 9.7h5v4h-5z' fill='%230a2219'/%3E%3Cellipse cx='220' cy='20.7' rx='5' ry='7.5' fill='%23ff6b5e'/%3E%3C/svg%3E"); animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .xmas .site-header::after { animation: none; } }
.xmas :focus-visible { outline-color: #ffd76a; }

.xmas .show-head { padding-top: 88px; color: #fff; }
.xmas .show-head p { color: #ffe9b0; }
.xmas .list-head { margin-top: 92px; color: #fff; }
.xmas .result-count { color: #b7d3c7; }
.xmas .chip { color: #b7d3c7; }
.xmas .chip:hover, .xmas .chip[aria-current="page"] { color: #fff; }
.xmas .chip[aria-current="page"] { border-color: #ffd76a; }

.xmas .hero-card { background: #fff; }
.xmas .hero-kicker { background: var(--sale); }
.hero-card:has(.photo-only) { grid-template-columns: minmax(0, 1fr) min(44%, 520px); }
.hero-media.photo-only { container-type: size; min-height: 520px; }
.stage.hero-media.photo-only .banner-img { width: calc(max(100cqw, 100cqh) * 1.105); }

.xmas .article { background: #fff; border-radius: 24px; padding: 48px; margin: 92px 0 96px; max-width: 776px; }
.xmas .site-footer { background: #0a2219; color: #9dbcaf; }

@media (max-width: 860px) {
  .hero-media.photo-only { min-height: 440px; }
}
@media (max-width: 640px) {
  .xmas .show-head { padding-top: 68px; }
  .xmas .list-head { margin-top: 72px; }
  .hero-card:has(.photo-only) { grid-template-columns: 1fr; }
  .hero-media.photo-only { aspect-ratio: 1 / 1; min-height: 0; }
  .xmas .article { padding: 28px 22px; margin: 72px 0 64px; border-radius: 20px; }
}

/* ---------- 제목 글씨체 ---------- */
.logo, .show-head h1, .list-head h1, .hero-title, .article h1, .article h2, .guide-list strong {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.show-head h1 { font-size: clamp(36px, 5.4vw, 66px); }
.logo { font-size: 24px; }
@media (max-width: 640px) { .logo { font-size: 20px; } .show-head h1 { font-size: 35px; } }

/* ---------- 홈 가로줄 ---------- */
html { scroll-behavior: smooth; }
#rails { margin-bottom: 88px; }
.rail { margin-top: 48px; scroll-margin-top: 24px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rail-head h2 { margin: 0; color: #fff; font-family: var(--font-title); font-size: 28px; letter-spacing: -0.035em; line-height: 1.3; }
.rail-head a { display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; }
.rail-all { color: #ffe9b0; font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; border-bottom: 1px solid currentColor; }
.rail-arrows { display: flex; gap: 8px; }
.rail-arrow { width: 40px; height: 40px; border: 1px solid #3b7a64; border-radius: 50%; background: none; color: #fff; font: 400 24px/1 var(--font-body); cursor: pointer; padding: 0 0 3px; }
.rail-arrow:hover:not(:disabled) { background: #fff; color: var(--ink); }
.rail-arrow:disabled { opacity: 0.3; cursor: default; }
.rail-track { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track .deal-card { flex: none; width: 236px; scroll-snap-align: start; }
/* 가로줄에서 원본 배너를 쓸 때: 크림색 칸 없이 흰 카드에 바로 */
.rail-track .deal-card:has(.has-banner) { width: 206px; }
.thumb.has-banner, .hero-media.has-banner { background: #fff; }
.thumb.has-banner { padding: 18px 0 0; }
@media (max-width: 760px) {
  .rail-all { font-size: 14px; }
  .rail-head a { gap: 10px; }
  .rail-track .deal-card:has(.has-banner) { width: 158px; }
  .thumb.has-banner { padding: 14px 0 0; }
  .rail { margin-top: 36px; }
  .rail-head { margin-bottom: 12px; }
  .rail-head h2 { font-size: 23px; }
  .rail-arrows { display: none; }
  .rail-track { margin: 0 -16px; padding: 0 16px; gap: 10px; scroll-padding: 16px; }
  .rail-track .deal-card { width: 158px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 받는 사람 화면: 폭이 넓어도 카드가 커지지 않게 */
@media (min-width: 761px) { .deal-grid { grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); } }

/* 로고 */
.logo { gap: 10px; }
.logo-img { width: 34px; height: auto; }
@media (max-width: 640px) { .logo { gap: 7px; } .logo-img { width: 27px; } }

/* ---------- 홈의 글 한 줄 ---------- */
.note-card { flex: none; width: 302px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: #fff; text-decoration: none; }
.note-card img { width: 100%; height: auto; }
.note-card h3 { margin: 0; padding: 16px 18px 18px; font-family: var(--font-title); font-weight: 700; font-size: 18px; line-height: 1.4; letter-spacing: -0.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1000px) { .note-card { width: calc((100% - 42px) / 4); } .note-card:nth-child(n+5) { display: none; } }
@media (max-width: 760px) { .note-card { width: 232px; border-radius: 16px; } .note-card h3 { font-size: 16px; padding: 12px 14px 14px; } }
