/* JR-TCG — 흰 지면 + 레드 주조, 옐로·블루 포인트 */

:root {
  /* 로고가 둥글고 밝은 마스코트라 지면도 거기에 맞춘다.
     차가운 순백·각진 모서리로 두면 로고만 붕 뜬다. */
  --brand: #e63329;
  --brand-dark: #c9251c;
  --brand-soft: #fff1ee;
  --yellow: #ffc300;
  --yellow-soft: #fff6dd;
  --blue: #2f73d8;
  --blue-soft: #eef4ff;
  --live: #ff1744;

  --ink: #241f1d;          /* 완전 검정 대신 살짝 따뜻한 먹색 */
  --ink-2: #4a4340;
  --ink-3: #857b76;
  --ink-4: #b3aaa5;

  --line: #ece7e3;         /* 테두리도 따뜻하게 */
  --line-2: #f5f1ee;
  --bg: #fffdfb;           /* 아주 옅은 크림 — 눈이 편하고 사진이 도드라진다 */
  --bg-2: #f8f4f0;

  --radius: 22px;          /* 둥글수록 부드럽게 읽힌다 */
  --radius-sm: 14px;
  --shadow: 0 2px 4px rgba(60, 40, 30, .04), 0 10px 28px rgba(60, 40, 30, .07);
  --shadow-hover: 0 4px 10px rgba(60, 40, 30, .07), 0 18px 40px rgba(60, 40, 30, .13);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 결제 오버레이(iframe) 안에서는 이 사이트 헤더·푸터를 또 보여줄 필요가
   없다 — 바깥 페이지에 이미 있다. base.html의 인라인 스크립트가 붙이는 클래스. */
.framed .header, .framed .footer, .framed .prenotice { display: none; }

/* ── 헤더 ─────────────────────────────────────────── */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 251, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-in {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: 66px; display: flex; align-items: center; gap: 22px;
}

/* 로고 = 심볼 + 워드마크. 엠블럼을 통째로 축소하면 안의 글자가 뭉개진다. */
.logo { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo .mark { height: 34px; width: auto; flex: none; }
.wm { font-size: 19px; font-weight: 800; letter-spacing: -0.045em; }
.wm em { color: var(--brand); font-style: normal; }
.wm b { color: var(--ink); font-weight: 800; }
.logo:hover .wm b { color: var(--brand-dark); }

/* 우측 아이콘 */
.hicon {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2);
}
.hicon:hover { background: var(--bg-2); color: var(--ink); }
.hlink { font-size: 13.5px; font-weight: 700; color: var(--ink-2) !important; }
.hlink:hover { color: var(--brand) !important; }

.nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--brand); }
.nav a.on { color: var(--brand); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* 햄버거 — 넓은 화면에서는 없다 */
.burger {
  display: none; width: 40px; height: 40px; padding: 0; margin-left: -6px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .22s ease, opacity .18s ease;
}
.burger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-sub, .nav-search, .nav-row, .nav-games { display: none; }

/* 좁은 화면 — 메뉴를 햄버거 안으로 접는다. 한 줄에 밀어넣으면 서로 겹친다. */
@media (max-width: 760px) {
  .header { background: var(--bg); }
  /* 로고를 가운데 두려면 햄버거를 흐름에서 빼야 한다.
     같이 흐름에 두면 햄버거 폭만큼 로고가 오른쪽으로 밀린다. */
  .header-in {
    position: relative; height: 58px; flex-wrap: wrap;
    padding: 0 16px; gap: 10px; justify-content: center;
  }
  .burger { display: flex; position: absolute; left: 10px; top: 9px; margin: 0; }
  /* 심볼과 워드마크를 붙이고, 덩어리를 살짝 왼쪽으로 밀어 시각 중심을 맞춘다
     (햄버거가 왼쪽에 있어 정중앙이면 오른쪽으로 치우쳐 보인다) */
  .logo { margin: 0; gap: 3px; transform: translateX(-8px); }
  .logo .mark { height: 30px; }
  .wm { font-size: 16px; }
  /* 좁을 땐 장바구니만 남기고 나머지는 메뉴 안에서 본다 */

  /* 검색·계정·장바구니는 전부 메뉴 안으로 — 헤더에는 햄버거와 로고만 남긴다 */
  .search, .header-right { display: none; }
  /* 카드 종류·구성 띠도 접는다 — 라이브(메인) 화면에서 영상 바로 위에 이 두 줄까지
     얹으면 첫 화면이 너무 빽빽해진다. 내용은 메뉴 안 .nav-games 로 옮겨 간다. */
  .gamebar, .unitbar { display: none; }

  .nav {
    /* 헤더 밖으로 펼쳐지는 부분이라 배경을 스스로 깔아야 한다.
       안 그러면 뒤 상품이 그대로 비쳐 글자가 안 읽힌다. */
    display: none; order: 5; width: calc(100% + 32px); flex-direction: column; gap: 0;
    margin: 0 -16px -1px; padding: 4px 16px 16px; border-top: 1px solid var(--line);
    background: var(--bg); box-shadow: 0 14px 24px rgba(60, 40, 30, .10);
    font-size: 15px;
  }
  .nav.open { display: flex; }
  .nav > a, .nav-row {
    display: flex; align-items: center; gap: 9px;
    padding: 14px 2px; border-bottom: 1px solid var(--line-2); font-weight: 700;
  }
  button.nav-row {
    width: 100%; border: 0; background: none; text-align: left; cursor: pointer;
    font: inherit; color: inherit;
  }
  .nav > a .ic { color: var(--ink-3); }
  .nav-count {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 10px; background: var(--brand); color: #fff;
    font-size: 11px; font-weight: 800; font-style: normal;
    line-height: 20px; text-align: center;
  }
  .nav-search { display: flex; position: relative; margin: 8px 0 6px; }
  .nav-search input {
    width: 100%; height: 44px; padding: 0 44px 0 16px;
    border: 1.5px solid var(--line); border-radius: 999px;
    background: var(--bg-2); outline: none; font-size: 14px;
  }
  .nav-search input:focus { border-color: var(--brand); background: #fff; }
  .nav-search button {
    position: absolute; right: 6px; top: 6px; width: 32px; height: 32px;
    border: 0; border-radius: 50%; background: none; cursor: pointer;
    color: var(--ink-3); display: grid; place-items: center;
  }
  .nav-sub {
    display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 2px 0;
    font-size: 13.5px; color: var(--ink-3);
  }
  .nav-sub a, .nav-sub .linkbtn { font-weight: 600; }

  .nav-games {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 12px 2px; border-bottom: 1px solid var(--line-2);
  }
  .nav-games-t { width: 100%; font-size: 12px; font-weight: 700; color: var(--ink-3); }
  .nav-games a {
    padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--ink-2);
  }
  .nav-games a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
}
.header-right a { color: var(--ink-3); font-weight: 600; }
.header-right a:hover { color: var(--ink); }

.cart-badge {
  position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px;
  padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff;
  font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center;
}

.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-3); font-weight: 600; font-size: 13.5px; }
.linkbtn:hover { color: var(--ink); }

/* ── 메인 대표 상품 슬라이드 ──────────────────────── */
/* scroll-snap 으로 굴린다. 모바일 스와이프가 그대로 먹고 라이브러리가 필요없다. */

.showcase {
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg-2) 62%);
  border-bottom: 1px solid var(--line);
}
.showcase-wrap { position: relative; padding-top: 4px; padding-bottom: 22px; }

/* 음수 마진을 주면 다음 장이 옆에 조각으로 걸린다 — 폭을 정확히 맞춘다 */
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; gap: 0;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: center;
  display: flex; flex-direction: column; padding-right: 0;
}

.showcase-img {
  display: block; width: 100%; max-width: 320px; margin: 0 auto;
  background: #fff; border-radius: var(--radius); overflow: hidden;
}
.showcase-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.showcase-body { padding-top: 16px; text-align: center; }
.showcase-series {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--ink-3); font-size: 12.5px; font-weight: 600;
}
.sbadge {
  padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 800;
  background: var(--ink); color: #fff;
}
.sbadge.hot { background: var(--brand); }
.sbadge.new { background: var(--blue); }
.showcase-body h2 {
  margin: 6px 0 0; font-size: 20px; font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.3;
}
.showcase-rate { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; }
.showcase-rate b { font-weight: 800; }
.showcase-rate span { color: var(--ink-3); font-weight: 600; }

.showcase-price { margin: 11px 0 16px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.showcase-price .unit { font-size: 16px; }
.showcase-price .off { color: var(--brand); margin-right: 7px; }
.showcase-price .was {
  margin-left: 8px; color: var(--ink-4); font-size: 14px; font-weight: 600;
  text-decoration: line-through;
}
.showcase .btn { width: 100%; max-width: 320px; }

/* 좌우 화살표 — 손가락으로 넘기는 모바일에선 감춘다 */
.snav {
  display: none; position: absolute; top: 42%; z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .94);
  color: var(--ink-2); font-size: 22px; line-height: 1; padding: 0 0 3px;
  box-shadow: var(--shadow);
}
.snav:hover { border-color: var(--ink-4); color: var(--ink); }
.snav.prev { left: 0; }
.snav.next { right: 0; }

.dots { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
.dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: var(--ink-4); opacity: .38; cursor: pointer; transition: all .2s ease;
}
.dot.on { opacity: 1; width: 20px; border-radius: 4px; background: var(--brand); }

@media (min-width: 820px) {
  .showcase-wrap { padding-top: 30px; padding-bottom: 26px; }
  .slide { flex-direction: row; align-items: center; gap: 44px; }
  .showcase-img { width: 330px; max-width: none; margin: 0; flex: none; }
  .showcase-body { padding-top: 0; text-align: left; flex: 1; }
  .showcase-series { justify-content: flex-start; }
  .showcase-body h2 { font-size: 27px; }
  .showcase-rate { justify-content: flex-start; }
  .showcase-price { font-size: 29px; }
  .showcase .btn { width: auto; padding: 0 40px; }
  .snav { display: block; }
  .dots { margin-top: 14px; }
}

/* 랭킹 번호 — 목록에서 순위를 읽히게 */
.ranked { position: relative; }
.ranked::before {
  content: attr(data-rank);
  position: absolute; top: 9px; left: 9px; z-index: 3;
  width: 26px; height: 26px; border-radius: 9px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 800; line-height: 26px; text-align: center;
  box-shadow: 0 2px 8px rgba(16, 18, 24, .22);
}
.ranked[data-rank="1"]::before { background: var(--brand); }
.ranked[data-rank="2"]::before { background: var(--blue); }
.ranked[data-rank="3"]::before { background: var(--yellow); color: var(--ink); }
.ranked .tags { left: 40px; }

.chip {
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── 섹션 ─────────────────────────────────────────── */

.section { padding: 44px 0 8px; }
.section.first { padding-top: 32px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.035em; white-space: nowrap; }
.section-head .sub { color: var(--ink-3); font-size: 13.5px; }
.section-head .more { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.section-head .more:hover { color: var(--brand); }

/* 좁은 화면에서는 부제를 아랫줄로 — 한 줄에 두면 제목이 쪼개진다 */
@media (max-width: 620px) {
  .section { padding: 34px 0 4px; }
  .section-head { flex-wrap: wrap; gap: 4px 10px; margin-bottom: 14px; }
  .section-head h2 { font-size: 18px; }
  .section-head .sub { order: 3; width: 100%; font-size: 12.5px; }
  .hero { padding: 32px 0 30px; }
  .hero h1 { font-size: 23px; }
  .hero p { font-size: 13.5px; }
  .page { padding-top: 26px; padding-bottom: 56px; }
  .page h1 { font-size: 21px; margin-bottom: 18px; }
}

/* ── 상품 그리드 ──────────────────────────────────── */

/* 카드는 크게 — 상품 사진이 이 가게의 전부다. 한 줄에 많이 욱여넣으면 다 작아진다. */
.grid { display: grid; gap: 30px 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.grid.wide { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .grid.wide { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid.wide { grid-template-columns: repeat(4, 1fr); } }

.card { display: block; }

/* 썸네일은 정사각 — 싱글카드·팩·박스가 한 줄에 섞여도 진열이 흐트러지지 않는다.
   카드는 세로로 길어 contain 으로 담고, 팩·박스 이미지는 꽉 채운다. */
.card-thumb {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  transition: box-shadow .22s ease, transform .22s ease;
}
.card:hover .card-thumb {
  box-shadow: var(--shadow-hover); transform: translateY(-3px);
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: 10px;
  transition: transform .35s ease;
}
.card-thumb.sealed img { object-fit: cover; padding: 0; }
.card:hover .card-thumb img { transform: scale(1.04); }

.card-thumb.blank {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-size: 13px;
}

.tags { position: absolute; top: 9px; left: 9px; z-index: 2; display: flex; gap: 5px; }
.tag {
  padding: 5px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: -0.01em;
  background: rgba(22, 24, 29, .82); color: #fff; backdrop-filter: blur(4px);
}
.tag.live { background: var(--live); }
.tag.brk  { background: var(--brand); }
.tag.hot  { background: var(--brand); }
.tag.new  { background: var(--blue); }

.soldout {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .74); color: var(--ink-2); font-weight: 700; font-size: 14px;
}

.card-body { padding: 14px 2px 0; }
.card-series { color: var(--ink-4); font-size: 12.5px; font-weight: 600; }
.card-title {
  margin: 4px 0 8px; font-size: 15px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-price { font-size: 17.5px; font-weight: 800; letter-spacing: -0.025em; }
.card-price .unit { font-size: 13px; font-weight: 700; margin-left: 1px; }
.card-price .from { color: var(--ink-3); font-size: 12px; font-weight: 600; margin-right: 4px; }
.card-price .off { color: var(--brand); margin-right: 5px; }
.card-price .was {
  margin-left: 6px; color: var(--ink-4); font-size: 12.5px; font-weight: 600;
  text-decoration: line-through;
}

.card-meta { margin-top: 6px; display: flex; align-items: center; gap: 7px; min-height: 18px; }
.stars { font-size: 11.5px; letter-spacing: -1px; color: var(--line); }
.stars i { font-style: normal; }
.stars i.on { color: #ffb400; }
.card-meta .rv { color: var(--ink-4); font-size: 11.5px; font-weight: 600; }
.freeship {
  margin-left: auto; padding: 3px 10px; border-radius: 999px;
  background: var(--yellow-soft); color: #8a6100;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}

/* ── 상품 상세 ────────────────────────────────────── */

.detail { display: grid; gap: 34px; padding-top: 34px; padding-bottom: 60px; }
@media (min-width: 860px) { .detail { grid-template-columns: 420px 1fr; gap: 48px; } }

.detail-img {
  align-self: start; border-radius: var(--radius); overflow: hidden; background: #fff;
}
.detail-img img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 8px; }
.detail-img.sealed img { object-fit: cover; padding: 0; }

.detail h1 { margin: 10px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; }
.detail .series { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.detail .price { margin: 14px 0 20px; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.detail .price .off { color: var(--brand); margin-right: 8px; }
.detail .price .was {
  margin-left: 9px; color: var(--ink-4); font-size: 16px; font-weight: 600;
  text-decoration: line-through;
}
.detail .rating { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.detail .rating .stars { font-size: 14px; }
.detail .rating b { font-weight: 800; }
.detail .rating span { color: var(--ink-3); font-weight: 600; }
.detail .desc { color: var(--ink-2); white-space: pre-line; font-size: 14.5px; }

.spec { margin: 22px 0; border-top: 1px solid var(--line); }
.spec div { display: flex; gap: 14px; padding: 11px 2px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.spec dt { width: 92px; color: var(--ink-3); font-weight: 600; flex: none; }
.spec dd { margin: 0; font-weight: 600; }

/* 약관 · 개인정보 처리방침 — 길게 읽는 글이라 줄간격을 넉넉히 둔다 */
.doc { margin-top: 8px; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.doc h2 { margin: 30px 0 8px; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.doc h2:first-child { margin-top: 12px; }
.doc p { margin: 0 0 12px; }
.doc a { color: var(--brand); font-weight: 600; }
.doc .spec { margin: 12px 0 18px; }
.doc .spec dt { width: 152px; }
.doc .spec dd { font-weight: 500; color: var(--ink-2); }
.doc .stamp { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line-2);
  color: var(--ink-3); font-size: 13px; }
@media (max-width: 560px) {
  .doc .spec div { flex-direction: column; gap: 3px; }
  .doc .spec dt { width: auto; }
}

.buybar { display: flex; gap: 10px; margin-top: 14px; }
.buybar .btn.ghost { flex: 0 0 auto; padding: 0 24px; }

/* 고른 옵션·수량·금액을 결제 전에 한 줄로 확인시킨다 */
.pickbar {
  margin-top: 22px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2);
}
.pickbar-t { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.45; }
.pickbar-r { margin-top: 11px; display: flex; align-items: center; gap: 12px; }
.pickbar-p { margin-left: auto; font-size: 15px; font-weight: 800; }

.totalbar {
  margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--ink);
  display: flex; align-items: baseline; justify-content: space-between;
}
.totalbar span { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.totalbar b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); }

/* 수령 방법 — 택배 / 대리깡 */
.fulfill { margin-top: 24px; }
.fulfill-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 9px; }

.opt {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.opt:hover { border-color: var(--ink-4); }
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; margin: 0; }
.opt-body { flex: 1; min-width: 0; }
.opt-body b { display: block; font-size: 14.5px; font-weight: 700; }
.opt-body em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.opt-price { font-size: 14px; font-weight: 800; white-space: nowrap; }
.opt.on .opt-price { color: var(--brand-dark); }

.fulfill-note {
  margin: 10px 0 0; padding: 11px 13px; border-radius: 8px;
  background: var(--bg-2); color: var(--ink-3); font-size: 12.5px; line-height: 1.6;
}
.fulfill-note b { color: var(--ink-2); font-weight: 700; }
/* 되돌릴 수 없는 조건은 눈에 띄어야 한다 — 못 보고 결제하면 분쟁이 된다 */
.fulfill-note.warn { background: var(--brand-soft); color: var(--ink-2); border: 1px solid #ffd9cc; }
.fulfill-note.warn b { color: var(--brand-dark); font-weight: 800; }

.checkline.nocancel {
  margin: 16px 0 4px; padding: 13px 14px; border-radius: var(--radius-sm);
  background: var(--brand-soft); border: 1px solid #ffd9cc;
  font-size: 12.5px; line-height: 1.55;
}
.checkline.nocancel b { color: var(--brand-dark); font-weight: 800; }

/* 장바구니·주문서 줄에 붙는 수령 방법 뱃지 */
.fmark {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
}
.fmark.break { background: var(--brand-soft); color: var(--brand-dark); border-color: #ffd9cc; }

/* ── 버튼 ─────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s ease; white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--line); color: var(--ink-4); cursor: not-allowed; }

.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink-4); background: #fff; }
.btn.block { width: 100%; }
.btn.sm { height: 40px; padding: 0 18px; font-size: 13.5px; border-radius: 999px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; height: 50px; }
.qty button { width: 42px; height: 100%; border: 0; background: #fff; cursor: pointer; font-size: 17px; color: var(--ink-2); }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 46px; height: 100%; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── 폼 / 인증 ────────────────────────────────────── */

.auth { max-width: 400px; margin: 0 auto; padding-top: 56px; padding-bottom: 80px; }
.auth h1 { margin: 0 0 6px; font-size: 25px; font-weight: 800; letter-spacing: -0.035em; text-align: center; }
.auth .lead { margin: 0 0 30px; color: var(--ink-3); font-size: 14px; text-align: center; }

.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: border-color .15s ease;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 78px; }
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field .hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-4); }
.field.row { display: flex; gap: 8px; }

/* 주소 — 우편번호·기본주소는 검색으로만 채운다 */
.addr-row { display: flex; gap: 8px; }
.addr-row input { max-width: 170px; }
.addr-row .btn { flex: none; height: 48px; padding: 0 18px; }
.field input[readonly] { background: var(--bg-2); color: var(--ink-2); cursor: pointer; }
.field input[readonly]:focus { border-color: var(--line); }

/* 휴대폰 인증(옥토모) 안내 박스 */
.pvbox {
  margin-top: 10px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); text-align: center;
}
.pvbox-t { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.pvbox-t b { color: var(--brand); font-size: 15px; letter-spacing: .02em; }
.pvqr { display: block; width: 132px; height: 132px; margin: 0 auto 10px; border-radius: 8px; }
.pvbox-msg { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); min-height: 16px; }
.pvbox-msg.ok { color: #1a7a45; font-weight: 700; }

.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.checkline input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.checkline a { color: var(--brand); font-weight: 600; text-decoration: underline; }

/* 가입 폼 — 항목이 많아 묶음으로 끊어 준다 */
.fgroup { margin-bottom: 26px; }
.fgroup-t {
  margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 800; color: var(--ink);
}
.fgroup-t span {
  margin-left: 5px; font-size: 11.5px; font-weight: 700; color: var(--ink-4);
}

.agrees {
  padding: 16px 16px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.agrees .checkline { margin-bottom: 12px; }
.agrees .checkline.all {
  padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.agrees .checkline.all b { font-weight: 800; }

.alert {
  margin-bottom: 18px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 13.5px; font-weight: 600; border: 1px solid #ffd9cc;
}

.auth-foot { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.auth-foot a { color: var(--brand); font-weight: 700; }

/* ── 장바구니 / 주문 ──────────────────────────────── */

/* 좌우는 .wrap 의 패딩에 맡긴다 — padding 축약형으로 덮으면 좁은 화면에서
   콘텐츠가 화면 끝에 붙어 잘린 것처럼 보인다 */
.page { padding-top: 38px; padding-bottom: 70px; }
.page h1 { margin: 0 0 24px; font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.page h1 .count { color: var(--brand); font-size: 17px; font-weight: 700; margin-left: 4px; }

.cols { display: grid; gap: 26px; align-items: start; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 320px; gap: 34px; } }

.linelist { border-top: 1.5px solid var(--ink); }
.line { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 74px; flex: none; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.line-img img { width: 100%; aspect-ratio: 63/88; object-fit: cover; }
.line-main { flex: 1; min-width: 0; }
.line-kind { font-size: 11.5px; font-weight: 700; color: var(--brand); }
.line-title { display: block; margin: 6px 0; font-weight: 600; font-size: 14.5px; }
.line-price { font-weight: 800; }
.line-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }

.qty.sm { height: 34px; }
.qty.sm button { width: 32px; font-size: 15px; }
.qty.sm input { width: 38px; font-size: 13.5px; }

.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; box-shadow: var(--shadow); }
.summary h3 { margin: 0 0 16px; font-size: 15px; font-weight: 800; }
.summary .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--ink-2); }
.summary .row b { font-weight: 700; color: var(--ink); }
.summary .total { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.summary .total span { font-size: 14px; font-weight: 700; }
.summary .total b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); }
.summary .btn { margin-top: 18px; }
.summary .note { margin-top: 12px; font-size: 12px; color: var(--ink-4); line-height: 1.55; }

.empty { padding: 80px 20px; text-align: center; color: var(--ink-3); }
.empty p { margin: 0 0 20px; font-size: 15px; }

.statusbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; background: var(--bg-2); }
.statusbox .big { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.statusbox .sub { color: var(--ink-3); font-size: 14px; }
.statusbox .no { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.statusbox .no b { color: var(--ink); font-weight: 700; letter-spacing: 0.02em; }

.breakbox {
  margin-top: 14px; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid #ffd9cc; background: var(--brand-soft);
}
.bb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.bb-head b { font-size: 14.5px; font-weight: 800; color: var(--brand-dark); }
.breakbox p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ── 오픈 전 안내 ──────────────────────────────────────────── */

.prenotice { background: var(--yellow-soft); border-bottom: 1px solid #ffe6a8; }
.prenotice .wrap { display: flex; align-items: baseline; gap: 10px; padding: 11px 20px; flex-wrap: wrap; }
.prenotice b { flex: none; font-size: 13px; font-weight: 800; color: #8a6100; }
.prenotice span { font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* ── 결제 화면 ─────────────────────────────────────────────── */

.paybox { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; background: #fff; }
.paybox .row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 13.5px; color: var(--ink-3); }
.paybox .row b { font-weight: 700; color: var(--ink); text-align: right; }

.paymethods { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.paymethods .checkline { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; }
.paymethods .checkline:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.paymethods .checkline em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--ink-3); }

/* 가라 결제는 실제 결제창과 헷갈리면 안 된다 — 노란 경고 지면으로 확실히 구분 */
.mockbox { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid #ffe6a8; background: var(--yellow-soft); }
.mockbox b { display: block; font-size: 13.5px; font-weight: 800; color: #8a6100; }
.mockbox p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }

.mockadv { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.mockadv summary { cursor: pointer; text-decoration: underline; }
.mockadv p { margin: 8px 0; line-height: 1.6; }
.mockadv input { width: 100%; margin-bottom: 8px; }

.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.pill.paid { background: var(--brand-soft); color: var(--brand-dark); border-color: #ffd9cc; }
.pill.pending { background: #fff8e6; color: #8a6100; border-color: #ffe6a8; }

.orderrow { display: flex; gap: 15px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.orderrow .date { color: var(--ink-3); font-size: 12.5px; }

/* ── 푸터 ─────────────────────────────────────────── */

.footer { margin-top: 60px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 0 44px; }
.footer .links { display: flex; gap: 18px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; flex-wrap: wrap; }
.footer .biz { color: var(--ink-4); font-size: 12.5px; line-height: 1.85; }
.footer .biz b { color: var(--ink-3); font-weight: 600; }
.footer .copy { margin-top: 14px; color: var(--ink-4); font-size: 12px; }

/* ── 검색 ─────────────────────────────────────────── */

.search { position: relative; flex: 1; max-width: 320px; margin-left: auto; }
.search input {
  width: 100%; height: 38px; padding: 0 40px 0 15px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-2); outline: none; font-size: 13.5px;
  transition: border-color .15s ease, background .15s ease;
}
.search input:focus { border-color: var(--brand); background: #fff; }
.search button {
  position: absolute; right: 4px; top: 4px; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: var(--ink-3); display: grid; place-items: center;
}
.search button:hover { color: var(--brand); }
@media (max-width: 700px) {
  .search { order: 4; width: 100%; max-width: none; margin-bottom: 10px; }
}

/* ── 목록 정렬 · 페이지 ────────────────────────────── */

.listbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: -8px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.listbar .chips { display: flex; gap: 7px; flex-wrap: wrap; }
.sorts { margin-left: auto; display: flex; gap: 14px; font-size: 13px; color: var(--ink-3); }
.sorts a { font-weight: 600; white-space: nowrap; }
.sorts a:hover { color: var(--ink); }
.sorts a.on { color: var(--ink); font-weight: 800; }
@media (max-width: 620px) {
  .sorts { margin-left: 0; width: 100%; gap: 12px; overflow-x: auto; font-size: 12.5px; }
  .sorts::-webkit-scrollbar { display: none; }
}

.pager { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 40px 0 8px; }
.pager a, .pager .gap {
  min-width: 34px; height: 34px; padding: 0 9px; border-radius: 9px;
  display: grid; place-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink-3);
}
.pager a:hover { background: var(--bg-2); color: var(--ink); }
.pager a.on { background: var(--ink); color: #fff; font-weight: 800; }

/* ── 상세 탭 ──────────────────────────────────────── */

.tabsec { padding-bottom: 70px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 13px 18px; font-size: 14px; font-weight: 700; color: var(--ink-3);
  white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs em { font-style: normal; color: var(--brand); font-weight: 800; }

.tabbody { padding: 26px 0 0; }
.tabbody .desc { white-space: pre-line; color: var(--ink-2); font-size: 14.5px; margin: 0 0 22px; }
.tabimg { width: 100%; max-width: 560px; margin: 26px auto 0; border-radius: var(--radius); }
.tabnote {
  margin: 0 0 20px; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--ink-3); font-size: 13px; line-height: 1.65;
}
.tabnote b { color: var(--ink-2); }
.tabnote a { color: var(--brand); font-weight: 700; text-decoration: underline; }

/* 후기·문의 작성 */
.writebox {
  margin-bottom: 24px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg-2);
}
.writebox textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 9px; outline: none; resize: vertical; font-size: 14px;
}
.writebox textarea:focus { border-color: var(--brand); }
.writebox .btn { margin-top: 10px; }
.writefoot { margin-top: 10px; display: flex; align-items: center; gap: 14px; }
.writefoot .btn { margin-top: 0; margin-left: auto; }

/* 별점 고르기 — 역순으로 두고 CSS 로 왼쪽까지 칠한다 */
.starpick { display: inline-flex; flex-direction: row-reverse; margin-bottom: 10px; }
.starpick input { display: none; }
.starpick label { font-size: 26px; color: var(--line); cursor: pointer; padding: 0 1px; }
.starpick input:checked ~ label,
.starpick label:hover, .starpick label:hover ~ label { color: #ffb400; }

.cmlist { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.cmlist li { padding: 17px 2px; border-bottom: 1px solid var(--line); }
.cmhead { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-3); }
.cmhead b { color: var(--ink-2); font-weight: 700; }
.cmhead form { margin-left: auto; }
.cmlist p { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.cmlist p.muted { color: var(--ink-4); }
.cmanswer {
  margin-top: 12px; padding: 12px 14px; border-radius: 9px; background: var(--bg-2);
}
.cmanswer b { font-size: 12px; font-weight: 800; color: var(--brand); }
.cmanswer p { margin-top: 5px; font-size: 13.5px; }

.lockmark, .qstate {
  padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 700;
  background: var(--bg-2); color: var(--ink-3);
}
.qstate { margin-left: auto; }
.qstate.done { background: var(--blue-soft); color: #14509b; }

.wishform { margin-top: 10px; }

/* ── 마이페이지 ───────────────────────────────────── */

.mysum {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px;
}
.mysum a {
  padding: 20px 10px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mysum a:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.mysum .ic { color: var(--ink); margin-bottom: 4px; }   /* 아이콘은 검정 라인 */
.mysum b { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.mysum span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

/* 마이페이지 탭 — 아이콘과 글자를 한 줄로 */
.mytabs a { display: flex; align-items: center; gap: 6px; }
.mytabs .ic { color: currentColor; }

.myform { max-width: 440px; }
.myform .fgroup-t {
  margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 800;
}

.orderrow-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.mybox { margin-bottom: 32px; }
.mybox > h2 {
  margin: 0 0 14px; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.mybox > h2 .more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.mybox > h2 .more:hover { color: var(--brand); }
.empty-sm {
  padding: 44px 30px; text-align: center; color: var(--ink-4); font-size: 13.5px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.empty-sm .ic { color: var(--ink-4); margin-bottom: 4px; }
.empty-sm p { margin: 0 0 10px; }

.alert.ok { background: #e9f7ef; color: #1a7a45; border-color: #bfe6cd; }

/* ── 공지 ─────────────────────────────────────────── */

.noticerow {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.noticerow:hover .nt { color: var(--brand); }
.noticerow .nt { font-weight: 600; flex: 1; min-width: 0; }
.noticerow .nd { color: var(--ink-4); font-size: 12.5px; white-space: nowrap; }
.pin {
  padding: 2px 8px; border-radius: 5px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800; flex: none;
}
.noticehead { padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.noticehead h1 { margin: 8px 0 6px; }
.noticehead .nd { color: var(--ink-4); font-size: 13px; }
.noticebody { padding: 26px 2px; white-space: pre-line; color: var(--ink-2); line-height: 1.75; }

/* 박스 / 낱팩 — 목록에서 한눈에 갈리게 */
.unitmark {
  display: inline-block; margin-right: 5px; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: -0.01em;
  background: var(--bg-2); color: var(--ink-2);
}
.unitmark.box { background: var(--ink); color: #fff; }

/* 빈 화면 — 아무것도 없을 때가 인상을 가장 크게 좌우한다 */
.mascot { width: 96px; height: auto; margin: 0 auto 12px; opacity: .9; }
.empty { padding: 70px 20px 80px; }
.empty p { margin: 0 0 20px; font-size: 15px; }
.empty-sm .mascot { width: 78px; margin-bottom: 8px; }

/* 재고 신호 — 목록에서 살 수 있는 물건인지 즉시 보이게 */
.dot-stock {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 5px; vertical-align: middle;
}
.dot-stock.ok { background: #22a45d; }
.dot-stock.low { background: var(--yellow); }
.dot-stock.out { background: var(--ink-4); }

.freeship.sale { background: var(--brand); color: #fff; }

/* 기간 한정 할인 — 남은 시간이 보여야 특가라는 말이 산다 */
.saleband {
  display: flex; align-items: center; gap: 9px;
  margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--brand-soft); border: 1px solid #ffd9cc;
  font-size: 13px; color: var(--brand-dark); font-weight: 700;
}
.saleband b { padding: 2px 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; }

.myhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.myhead h1 { margin-bottom: 0; }
.myhead-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.myhead-r .mini { color: var(--ink-3); font-size: 13px; }
.page > .myhead { margin-bottom: 24px; }

/* 담긴 게 있으면 햄버거에 점 — 메뉴를 열지 않아도 알 수 있게.
   .burger 의 position 은 건드리지 않는다 — 모바일에서 absolute 로 두어야
   로고가 가운데 오는데, 여기서 relative 로 덮으면 그게 깨진다. */
.burger-dot {
  position: absolute; top: 7px; right: 7px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand);
}
@media (min-width: 761px) { .burger-dot { display: none; } }

/* 주문서의 방송 요청사항 */
.breakmemo textarea { min-height: 76px; }
.breakmemo .hint { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.egg {
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  font-family: inherit; font-size: 12px; font-weight: 600;
}
.egg:hover { border-color: var(--brand); color: var(--brand); }

/* ── 헤더 아래 2단 메뉴: 위는 카드 종류, 아래는 구성 ── */
.gamebar {
  position: relative; z-index: 1;   /* 밑줄이 아래 띠에 가리지 않게 */
  border-top: 1px solid var(--line); background: var(--bg-2, #fff);
}
.gamebar .wrap { display: flex; gap: 2px; }
.gamebar a {
  position: relative; padding: 13px 18px;
  font-size: 15px; font-weight: 700; color: var(--ink-2); text-decoration: none;
}
.gamebar a:hover { color: var(--brand); }
.gamebar a.on { color: var(--brand); }
.gamebar a.on::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--brand);
}
.gamebar .soon {
  margin-left: 4px; padding: 1px 6px; border-radius: 999px;
  background: var(--line-2, #f1f1f1); color: var(--ink-4);
  font-size: 10px; font-style: normal; font-weight: 700; vertical-align: 2px;
}

.unitbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.unitbar .wrap { display: flex; gap: 6px; padding-top: 9px; padding-bottom: 9px; }
.unitbar a {
  padding: 6px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--ink-3); text-decoration: none;
}
.unitbar a:hover { border-color: var(--brand); color: var(--brand); }
.unitbar a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

@media (max-width: 720px) {
  .gamebar a { padding: 11px 14px; font-size: 14px; }
  .gamebar a.on::after { left: 14px; right: 14px; }
  .unitbar .wrap { overflow-x: auto; }
  .unitbar a { flex: none; }
}

/* 상품 정보 제공 고시 — 전자상거래법상 상품 페이지에 실어야 하는 표 */
.ntc-h { margin: 34px 0 10px; font-size: 15px; font-weight: 800; }
.ntc-view { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.ntc-view th, .ntc-view td {
  padding: 10px 12px; border-bottom: 1px solid var(--line-2);
  font-size: 13.5px; text-align: left; vertical-align: top;
}
.ntc-view th {
  width: 200px; color: var(--ink-3); font-weight: 600; background: var(--bg-2);
}
.ntc-view td { white-space: pre-line; }
@media (max-width: 560px) {
  .ntc-view th { width: 120px; font-size: 12.5px; }
  .ntc-view td { font-size: 13px; }
}

/* ── 라이브 방송 시청 페이지 ────────────────────────────────────────
   모바일 우선 — 기본은 세로 스택(영상 위 · 탭+패널 아래). 대부분의 방송이
   폰 세로 촬영이라 영상도 기본은 9:16. 900px 부터 좌우 배치로 바뀐다. */
.livedot {
  display: inline-block; width: 7px; height: 7px; margin-right: 5px;
  border-radius: 50%; background: var(--brand); animation: livepulse 1.6s ease-in-out infinite;
}
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.live-shell { display: flex; flex-direction: column; max-width: var(--max); margin: 0 auto; }

.live-video { position: relative; width: 100%; background: #0a0a0a; overflow: hidden; }
/* 세로 영상은 폭이 아니라 높이로 크기를 정한다 — width:100%를 그대로 두면
   max-height가 세로 비율을 못 지키고 옆으로 눌린(letterbox 없는) 박스가 된다. */
.live-video.v {
  width: auto; max-width: 100%; height: 68vh; max-height: 640px;
  /* 모바일에서 스크롤하면 주소창이 접혔다 펴졌다 하면서 vh 값 자체가 바뀌어
     영상 박스가 커졌다 작아졌다 했다 — svh(가장 작을 때 기준, 주소창이 항상
     펴져 있다고 가정)를 쓰면 그 요동이 없다. 안 되는 구형 브라우저는 이
     줄 자체가 무효 선언으로 무시되고 위 vh 값이 그대로 남는다. */
  height: 68svh;
  aspect-ratio: 9 / 16; margin: 0 auto;
}
.live-video.h { aspect-ratio: 16 / 9; }
.live-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 영상 위에 얹는 "지금 파는 상품" 스포트라이트 — 스크롤 없이 바로 산다.
   채팅 텍스트까지 영상 위에 띄우는 건 유튜브 공식 채팅이 다른 도메인 iframe이라
   내용을 못 건드려서 안 되지만, 이 카드는 우리 HTML이라 자유롭게 얹을 수 있다. */
.live-spot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 30px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 45%, transparent 100%);
}
/* ⚠️ [hidden]{display:none} 과 이 규칙이 동률(0,1,0)이라 나중에 오는 이쪽이
   이겨버리는 버그가 .price-modal 에서도 났었다 — 여기도 같은 패턴이라
   :not([hidden]) 로 hidden 일 때만 비워 둔다.
   구성은 두 층으로 나눈다 — "간편결제 상품"·"대신오픈"은 지금 이게 뭘 사는
   건지 알려주는 상태 배지(진하고 또렷하게), "이용약관"은 그 조건을 자세히
   보고 싶을 때 누르는 보조 링크(옅게, 밑줄만). 색이 같으면 셋 다 "같은 급"
   으로 읽혀서 정작 중요한 배지가 묻힌다. */
.live-spot-tags:not([hidden]) {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px;
}
.live-tag {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 6px;
  color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: -.01em;
  white-space: nowrap; line-height: 1;
}
.live-tag.brand { background: var(--brand); box-shadow: 0 2px 8px rgba(230, 51, 41, .4); }
.live-tag.dark { background: rgba(255, 255, 255, .16); }

.live-spot-terms-link {
  margin-left: auto; padding: 4px 2px; border: 0; background: none; font: inherit;
  font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .68);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.live-spot-terms-link:hover { color: #fff; }

.live-spot-row:not([hidden]) {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  background: rgba(20, 20, 20, .68); border-radius: var(--radius-sm); padding: 8px;
}
.live-spot-thumb {
  flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--bg-2);
}
.live-spot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-spot-info { flex: 1; min-width: 0; color: #fff; }
.live-spot-info .t {
  font-size: 12.5px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-spot-info .p { margin-top: 2px; font-size: 14.5px; font-weight: 800; }
.live-spot-info .p .sub { font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, .6); }

.live-spot form { margin: 0; }
.live-spot .btn.block { height: 46px; font-size: 14.5px; }

.live-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; height: 100%; min-height: 260px; color: #fff; text-align: center; padding: 24px;
}
.live-empty b { font-size: 16px; }
.live-empty span { font-size: 13px; color: rgba(255, 255, 255, .6); }
.live-empty a { margin-top: 6px; color: #ff8a7f; font-weight: 700; }

/* 채팅 패널 — 공식 live_chat iframe. 화면 폭과 무관하게 이 하나로 통일했다.
   모바일 기본 모양은 영상 아래 카드; PC는 아래 미디어쿼리가 옆 패널
   모양으로 다시 배치한다. */
.live-chat-panel {
  margin: 10px 14px 0; height: 420px;
  background: var(--bg-2); border-radius: var(--radius-sm); overflow: hidden;
}
.live-chat-panel .live-empty-sm { padding: 20px 4px; }
.live-chat-iframe { width: 100%; height: 100%; border: 0; display: block; }

.live-tabs { display: flex; border-bottom: 1px solid var(--line); }
.live-tabs button {
  flex: 1; padding: 13px 0; border: 0; background: none; cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: var(--ink-3); border-bottom: 2px solid transparent;
}
.live-tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }

.live-panel-pane { display: none; }
.live-panel-pane.on { display: block; }

.live-gamebar { display: flex; gap: 8px; padding: 14px 16px 0; }
.live-gamebar .chip { padding: 6px 14px; font-size: 13px; }

.live-products { padding: 4px 16px 28px; max-height: 62vh; overflow-y: auto; }
.live-plabel { margin: 18px 0 10px; font-size: 12.5px; font-weight: 800; color: var(--ink-3); letter-spacing: .02em; }
.live-plabel:first-child { margin-top: 4px; }
.live-plabel .n { color: var(--brand); }
.live-empty-sm { padding: 30px 4px; text-align: center; color: var(--ink-3); font-size: 13.5px; }

.live-prow { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.live-prow:last-child { border-bottom: 0; }
.live-thumb {
  flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-2); position: relative;
}
.live-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-thumb .out {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .82); font-size: 11px; font-weight: 700; color: var(--ink-2);
}
.live-info { flex: 1; min-width: 0; }
.live-info .t {
  font-size: 13.5px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.live-info .p { margin-top: 4px; font-size: 14.5px; font-weight: 800; }
.live-info .p .off { color: var(--brand); font-size: 12px; margin-right: 4px; }
.live-info .p .was { margin-left: 5px; color: var(--ink-4); font-size: 11.5px; font-weight: 600; text-decoration: line-through; }
.live-buy { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.live-buy .qty { height: 30px; }
.live-buy .qty button { width: 28px; font-size: 14px; }
.live-buy .qty input { width: 32px; font-size: 12.5px; }
.live-buy .btn { padding: 0 14px; height: 30px; font-size: 12.5px; border-radius: 999px; }
.live-buy .more { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

/* 밀어서 결제 — 카드를 등록해 둔 사람에게만 뜨는 원터치 슬라이더 */
.live-slide { width: 100%; margin-top: 8px; }
.live-slide-track {
  position: relative; height: 38px; border-radius: 999px; background: var(--bg-2);
  border: 1px solid var(--line); overflow: hidden;
}
.live-slide-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brand); }
.live-slide.dragging .live-slide-fill { transition: none; }
.live-slide-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--ink-2); pointer-events: none; white-space: nowrap;
}
.live-slide-thumb {
  position: absolute; top: 2px; left: 2px; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--brand); display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18); cursor: grab; font-weight: 800;
  touch-action: none; user-select: none;
}
.live-slide.busy .live-slide-thumb { cursor: wait; }
.live-slide.done .live-slide-track { background: #1a7a45; }
.live-slide.done .live-slide-label { color: #fff; }
.live-slide.done .live-slide-thumb { background: #fff; color: #1a7a45; cursor: default; }
.live-slide-err { margin-top: 5px; font-size: 11px; color: var(--brand-dark); }
.live-slide-note { margin: 6px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--ink-4); }

.live-chat iframe { width: 100%; height: 62vh; border: 0; display: block; }

/* 결제창 오버레이 — 하단 시트. 영상(그리고 뒤에 남는 화면)이 안 가려지게
   전체를 덮지 않고 82vh 만 차지한다 — "한 화면"으로 보이게 하는 핵심이다. */
.checkout-overlay { position: fixed; inset: 0; z-index: 50; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.checkout-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; height: 82vh;
  background: #fff; border-radius: 20px 20px 0 0; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); animation: sheetUp .25s ease;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.checkout-sheet-head {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.checkout-sheet-head b { font-size: 15px; font-weight: 800; }
.checkout-sheet-head button {
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg-2);
  color: var(--ink-2); font-size: 15px; cursor: pointer; display: grid; place-items: center;
}
.checkout-sheet-frame { flex: 1; width: 100%; border: 0; }

/* 영상 오른쪽 위에 뜨는 "시세조회" 버튼 — 스포트라이트(하단)와 안 겹치게 상단에 둔다 */
.live-price-btn {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(20, 20, 20, .55); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 1.25; cursor: pointer; backdrop-filter: blur(3px);
}
.live-price-btn:hover { background: rgba(0, 0, 0, .7); }

/* "상품 담기" 버튼 — 시세조회 바로 아래, 같은 자리(영상 위)에 둔다 */
.live-cart-btn { top: 68px; background: var(--brand); }
.live-cart-btn:hover { background: var(--brand-dark); }

/* "상품 변경" 버튼(하단 스포트라이트용) — 상품 담기 바로 아래.
   드래그로 옮기면 JS 가 top/left 를 인라인으로 얹어 이 top 값을 덮어쓴다. */
.live-spotpick-btn { top: 122px; }

/* 시세조회 · 상품담기 · 상품변경 버튼은 영상 위에서 드래그로 옮길 수 있다 —
   옮기는 동안 커서/터치 피드백만 살짝 준다(레이아웃은 JS 가 인라인으로 잡는다). */
.live-video .live-price-btn { touch-action: none; }

/* 시세 조회 모달 — 결제 시트와 달리 화면 가운데 뜬다.
   ⚠️ display 를 .price-modal 에 바로 주면 [hidden]{display:none} 과 우선순위가 같아져서
   (둘 다 명시도 0,1,0) CSS 안에 나중에 오는 이 규칙이 이겨 hidden 이어도 계속 보이고
   클릭까지 가로챈다 — 실제로 겪은 버그. :not([hidden]) 로 hidden 일 때만 비워 둔다. */
.price-modal:not([hidden]) {
  position: fixed; inset: 0; z-index: 55; display: flex;
  align-items: center; justify-content: center; padding: 16px;
}
.price-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.price-modal-box {
  position: relative; width: 100%; max-width: 440px; max-height: 82vh;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.terms-modal-frame { flex: 1; width: 100%; height: 70vh; border: 0; display: block; }

.quickbuy-notice-box { padding: 0 0 18px; }
.quickbuy-notice-body { padding: 16px 18px 6px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.quickbuy-notice-body p { margin: 0 0 10px; }
.quickbuy-notice-body p:last-of-type { margin-bottom: 0; }
.quickbuy-notice-terms {
  display: block; margin-top: 12px; border: 0; background: none; padding: 0;
  font-size: 12.5px; font-weight: 700; color: var(--ink-3); cursor: pointer;
}
.quickbuy-notice-terms:hover { color: var(--brand); }
.quickbuy-notice-box .btn.block { margin: 14px 18px 0; width: calc(100% - 36px); }

/* 결제 직전 확인창 — "아니요 / 예" 를 나란히. 예가 오른쪽·강조색이다. */
.qb-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin: 14px 18px 0; }
.qb-btns .btn { margin: 0; width: 100%; text-align: center; }
.qb-what {
  margin: 0 0 12px; padding: 11px 13px; border-radius: 10px;
  background: var(--bg-2, #f6f7fb); border: 1px solid var(--line, #e3e6ef);
  font-size: 15px; font-weight: 800; color: var(--ink-1, #23283a);
}
.qb-what:empty { display: none; }
.price-modal-head {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.price-modal-head b { font-size: 15.5px; font-weight: 800; }
.price-modal-head button {
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg-2);
  color: var(--ink-2); font-size: 15px; cursor: pointer; display: grid; place-items: center;
}

.live-price-form { display: flex; gap: 8px; padding: 14px 16px 0; }
.live-price-form input {
  flex: 1; height: 42px; padding: 0 14px; border: 1.5px solid var(--line);
  border-radius: 999px; outline: none; font-size: 14px;
}
.live-price-form input:focus { border-color: var(--brand); }
.live-price-form .btn { height: 42px; padding: 0 18px; }

.live-price-results { flex: 1; overflow-y: auto; padding: 4px 16px 18px; }
.live-price-results .live-empty-sm { padding: 30px 4px; }
/* 카드를 눌러도 이베이로 안 나가므로 <a> 대신 <button> 이다 — 그래서
   너비·정렬·테두리를 버튼 기본값 위에 새로 잡아 준다. */
.live-price-card {
  display: flex; width: 100%; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-2);
  background: none; text-align: left; cursor: pointer; font: inherit;
}
.live-price-card:last-child { border-bottom: 0; }
.live-price-card:hover .t { color: var(--brand); }
.live-price-card img, .live-price-noimg {
  flex: none; width: 52px; height: 52px; border-radius: 8px; object-fit: contain;
  background: var(--bg-2);
}
.live-price-body { flex: 1; min-width: 0; }
.live-price-body .t {
  font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.live-price-body .p { margin-top: 3px; font-size: 13.5px; font-weight: 800; }

/* 카드 상세(가격대) — 목록 대신 이 안에서 끝난다, 이베이로 안 나간다 */
.live-price-detail { flex: 1; overflow-y: auto; padding: 4px 16px 18px; }
.live-price-back {
  border: 0; background: none; padding: 6px 0 12px; font-size: 13px;
  font-weight: 700; color: var(--ink-3); cursor: pointer;
}
.live-price-back:hover { color: var(--brand); }
.live-price-detail-img {
  width: 100%; max-width: 220px; margin: 0 auto 14px; border-radius: var(--radius-sm); overflow: hidden;
}
.live-price-detail-img img { width: 100%; display: block; object-fit: contain; background: var(--bg-2); }
.live-price-detail-t { font-size: 14px; font-weight: 700; line-height: 1.45; }
.live-price-detail-p { margin-top: 8px; font-size: 20px; font-weight: 800; color: var(--brand); }
.live-price-detail-cond { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.live-price-range {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-2);
}
.live-price-range-t { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.live-price-range-v { margin-top: 4px; font-size: 15.5px; font-weight: 800; }
.live-price-range-v .sub { font-size: 12px; font-weight: 600; color: var(--ink-4); }

/* "장바구니"(#cartModal) · "상품 변경"(#spotPickModal) 모달 — 결제 시트처럼
   하단에서 뜨고, 화면(영상 포함) 전체를 덮는다. 영상만 남기고 좁혀 봤지만
   두 경우 다 문제가 있었다 — 장바구니는 체크박스 목록+카드선택+밀어서결제+
   안내문이 들어가기엔 너무 좁았고, 상품 변경은 영상 위를 눌러 닫으려 해도
   그 자리엔 백드롭이 없어서 안 닫혔다. 그래서 원래 방식(전체 화면)으로
   통일했다. */
.cart-modal { position: fixed; inset: 0; z-index: 55; }
.cart-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.cart-modal-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 100%;
  background: #fff; border-radius: 20px 20px 0 0; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); animation: sheetUp .25s ease;
}
@media (max-width: 899px) {
  .cart-modal-sheet { height: 82vh; }
}
.cart-modal-head {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.cart-modal-head b { font-size: 15px; font-weight: 800; }
.cart-modal-head button {
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg-2);
  color: var(--ink-2); font-size: 15px; cursor: pointer; display: grid; place-items: center;
}
.cart-modal-gamebar {
  display: flex; gap: 8px; padding: 12px 16px 0; flex: none;
}
.cart-modal-gamebar .chip { padding: 6px 14px; font-size: 13px; }
.cart-modal-list { flex: 1; overflow-y: auto; padding: 4px 16px; }
.cart-modal-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}
.cart-modal-row:last-child { border-bottom: 0; }
/* "상품 변경"(스포트라이트) 모달의 행은 체크박스가 없는 <button> 이라 기본
   버튼 스타일을 지워야 .cart-modal-row 의 레이아웃과 맞는다. */
button.cart-modal-row.spot-pick-row {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: none;
  text-align: left; font: inherit; cursor: pointer;
}
button.cart-modal-row.spot-pick-row:last-child { border-bottom: 0; }
button.cart-modal-row.spot-pick-row:hover { background: var(--bg-2); }
.cart-modal-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.cart-modal-row img, .cart-modal-row .live-price-noimg {
  flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg-2);
}
.cart-modal-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-modal-info .t {
  font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-modal-info .p { font-size: 13px; font-weight: 800; }
.cart-modal-qty {
  flex: none; display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; height: 32px;
}
.cart-modal-qty button { width: 28px; height: 100%; border: 0; background: #fff; font-size: 14px; cursor: pointer; }
.cart-modal-qty input {
  width: 32px; height: 100%; border: 0; text-align: center; font-weight: 700; font-size: 12.5px;
}
.cart-modal-foot { flex: none; padding: 14px 16px; border-top: 1px solid var(--line); }
.cart-modal-total {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; font-size: 13.5px;
}
.cart-modal-total b { font-size: 17px; font-weight: 800; }
.cart-modal-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--ink-3);
}
.cart-modal-card select {
  flex: 1; max-width: 220px; height: 36px; padding: 0 10px; border: 1.5px solid var(--line);
  border-radius: 999px; outline: none; font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: #fff;
}
.cart-modal-card select:focus { border-color: var(--brand); }

@media (min-width: 900px) {
  .cart-modal-sheet {
    left: auto; right: 24px; bottom: 24px; width: 420px; height: 84vh;
    border-radius: 20px; max-width: calc(100% - 48px);
  }

  .checkout-sheet {
    left: auto; right: 24px; bottom: 24px; width: 420px; height: 84vh;
    border-radius: 20px; max-width: calc(100% - 48px);
  }

  .live-shell { flex-direction: row; align-items: flex-start; gap: 24px; padding: 24px 20px; }
  .live-video { flex: 0 0 400px; border-radius: var(--radius); }
  .live-video.v { width: auto; height: auto; max-width: none; max-height: none; }
  /* 채팅 패널 — 모바일의 "영상 아래 카드" 모양 대신 옆 패널로 다시 배치한다. */
  .live-chat-panel {
    flex: 1; min-width: 340px; max-width: 420px; height: auto; align-self: stretch;
    margin: 0; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
  }
  .live-chat-panel .live-empty-sm {
    height: 100%; display: flex; align-items: center; justify-content: center;
  }
}


/* ══════════════════════════════════════════════════════════════
   진열형 홈(/home) 첫 화면 — 포켓몬 아트 배치.
   색을 새로 만들지 않는다. 위의 --brand/--yellow/--bg/--radius 를 그대로 쓴다.
   그림이 이미 강하므로 판과 글자는 조용히 둔다.
   그림 파일: web/static/art/*.webp (원본 12.8MB → 1.0MB, 알파 유지)
   ══════════════════════════════════════════════════════════════ */
/* ─────────────────────────────────────────────────────────────
   홈 첫 화면 — 기존 토큰(--brand #e63329 · --yellow #ffc300 ·
   --bg #fffdfb · --radius 22px)을 그대로 쓴다. 색을 새로 만들지 않는다.
   그림이 이미 강하니 판은 조용히 둔다.
   ───────────────────────────────────────────────────────────── */

/* ── 히어로 ── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 78% 42%, #FFE9A8 0%, #FFD25E 38%, #FFB300 68%, #F59200 100%);
  border-radius: 0 0 var(--radius) var(--radius);
}
.hero::after {          /* 아래로 지면색이 스미게 — 잘린 띠처럼 안 보이게 */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(transparent, rgba(255,253,251,.55));
  pointer-events: none;
}
.hero-in {
  max-width: var(--max); margin: 0 auto; padding: 56px 20px 0;
  display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 24px;
  align-items: end; min-height: 400px;
}
.hero-copy { padding-bottom: 56px; position: relative; z-index: 2; }
.hero-live {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(36,31,29,.86); color: #fff; border-radius: 999px;
  padding: 7px 15px 7px 12px; font-size: 13px; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 18px;
}
.hero-live i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 4px rgba(255,23,68,.28);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-live i { animation: beat 2s ease-in-out infinite; }
  @keyframes beat { 50% { opacity: .35 } }
}
.hero h1 {
  margin: 0 0 14px; font-size: 46px; line-height: 1.14; letter-spacing: -.045em;
  font-weight: 800; color: #2B1A05; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p {
  margin: 0 0 26px; font-size: 17px; line-height: 1.7; color: #4A3512;
  max-width: 30ch; font-weight: 500;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.bigbtn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 26px; border-radius: 16px;
  font-size: 16px; font-weight: 700; letter-spacing: -.02em; text-decoration: none;
  background: var(--brand); color: #fff; border: 0;
  box-shadow: 0 3px 0 var(--brand-dark), 0 10px 24px rgba(230,51,41,.28);
}
.bigbtn.ghost {
  background: rgba(255,255,255,.92); color: #2B1A05;
  box-shadow: 0 3px 0 rgba(180,120,0,.22), 0 8px 20px rgba(120,80,0,.14);
}
.hero-art { position: relative; align-self: end; }
.hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 34px rgba(120,70,0,.34)); }

/* 히어로 아래 걸치는 신뢰 줄 */
.assure {
  max-width: var(--max); margin: -22px auto 0; padding: 0 20px; position: relative; z-index: 3;
}
.assure ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.assure li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em;
}
.assure li b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }

/* ── 구역 제목 ── */
.sec { margin-top: 54px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.sec-h h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.035em; }
.sec-h span { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.sec-h a { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink-3); text-decoration: none; }

/* ── 카테고리 3장 ── */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 210px; padding: 24px 24px 22px; text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-start;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cat.a { background: linear-gradient(150deg, #FFF3D0, #FFE08A); }
.cat.b { background: linear-gradient(150deg, #E8F1FF, #C3DAFB); }
.cat.c { background: linear-gradient(150deg, #FFEDE9, #FFCFC6); }
.cat h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: #2B1A05; }
.cat p { margin: 0; font-size: 13.5px; color: #6A4A22; font-weight: 500; max-width: 15ch; line-height: 1.6; }
.cat.b p { color: #2A4470; }
.cat.c p { color: #7A3229; }
.cat img {
  position: absolute; right: -6px; bottom: -6px; width: 62%; height: auto;
  filter: drop-shadow(0 10px 20px rgba(80,50,10,.24));
}
.cat .go {
  margin-top: auto; font-size: 13.5px; font-weight: 700; color: #2B1A05;
  display: inline-flex; align-items: center; gap: 5px; position: relative; z-index: 2;
}

/* ── 방송 배너 ── */
.tv {
  margin-top: 54px; position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(115deg, #1B1230 0%, #3A1E5C 46%, #7A2B6B 100%);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 44%);
  align-items: stretch; min-height: 280px;
}
.tv-copy { padding: 34px 36px; }
.tv h2 { margin: 0 0 10px; font-size: 28px; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.tv p { margin: 0 0 20px; font-size: 15px; line-height: 1.7; color: #E4D8F2; max-width: 34ch; }
/* 🚨 라이브에서 이 그림이 안 보였다. 칸을 %로만 잡아 두면 옆 글자가 길어질 때
   그림 칸이 0 까지 눌린다. 칸에 최소 폭을 주고, 그림은 칸을 채우게 한다. */
.tv img {
  width: 100%; height: 100%; display: block;
  object-fit: contain; object-position: bottom right;
  align-self: end; padding: 12px 12px 0 0;
}
.tv .bigbtn { background: #fff; color: #2B1A05; box-shadow: 0 3px 0 rgba(0,0,0,.28); }
.tv + * , .wrap > .tv:last-child { margin-bottom: 64px; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin: 0 auto; }
  .assure ul, .cats { grid-template-columns: 1fr 1fr; }
  .tv { grid-template-columns: 1fr; }
}

/* 상단 탭의 '라이브'. 옆의 카드 종류 필터와 같은 모양이면 안 눌린다 —
   점 하나와 색으로 "여기는 다른 곳" 이라고 말한다. */
.gamebar .golive { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.gamebar .golive i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4);
  flex: 0 0 auto;
}
.gamebar .golive.on { color: var(--live); }
.gamebar .golive.on i {
  background: var(--live); box-shadow: 0 0 0 3px rgba(255, 23, 68, .18);
}
@media (prefers-reduced-motion: no-preference) {
  .gamebar .golive.on i { animation: livebeat 2s ease-in-out infinite; }
  @keyframes livebeat { 50% { opacity: .35 } }
}

/* ─────────────────────────────────────────────────────────────
   상품 상세 하단 — 이 팩에서 나오는 카드

   여기만 **어둡게** 간다. 가게 지면은 크림색이지만, 홀로그램 카드는 밝은
   바탕에 놓으면 반짝이가 죽는다. 경쟁사가 이 목록을 새까만 이미지 한 장으로
   만드는 이유도 그거다. 그래서 이 칸은 지면에서 떼어 낸 '쇼케이스'로 둔다.

   카드도 키웠다. 1200px 에서 6칸(장당 ~175px) — 일러스트가 보여야 사고 싶어진다.
   ───────────────────────────────────────────────────────────── */
.cl-sec {
  --d-bg: #0a0f1f;
  --d-panel: #121a33;
  --d-panel-2: #0e1428;
  --d-line: #253158;
  --d-ink: #f2f5ff;
  --d-dim: #90a0cc;
  --d-ac: #5b8cff;

  margin: 46px auto 0;
  padding: 30px 22px 26px;
  border-radius: var(--radius);
  background:
    radial-gradient(1100px 380px at 50% -12%, rgba(91, 140, 255, .20), transparent 68%),
    var(--d-bg);
  color: var(--d-ink);
}

/* 머리글 — 세트 이름을 크게. 손님이 "무슨 팩인지" 부터 확인한다 */
.cl-head {
  text-align: center; margin: 0 0 24px; padding: 22px 16px;
  border: 1px solid rgba(91, 140, 255, .45); border-radius: 16px;
  background: linear-gradient(180deg, rgba(91, 140, 255, .12), transparent);
}
.cl-sup {
  margin: 0 0 9px; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: var(--d-ac); text-transform: uppercase;
}
.cl-head h2 {
  margin: 0 0 9px; font-size: 27px; font-weight: 800; letter-spacing: -.02em;
  color: #fff; line-height: 1.25;
}
.cl-sub { margin: 0; font-size: 13px; color: var(--d-dim); }

/* 레어도 칩 */
.cl-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.cl-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--d-line); background: var(--d-panel);
  color: var(--d-dim); font-size: 12.5px; font-weight: 600;
  transition: border-color .15s, color .15s, background .15s;
}
.cl-chip:hover { border-color: var(--d-ac); color: var(--d-ink); }
.cl-chip.on { background: var(--d-ac); border-color: var(--d-ac); color: #fff; }
.cl-chip.on .cl-r { background: rgba(255, 255, 255, .22); color: #fff; }

/* 레어도 뱃지 — 일본판 표기를 그대로 쓴다. 손님이 아는 말이다 */
.cl-r {
  display: inline-block; min-width: 34px; padding: 3px 7px; border-radius: 6px;
  background: #2b3766; color: #cbd9ff;
  font: 800 10.5px/1.35 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center; letter-spacing: .03em;
}
.cl-r.r-MUR, .cl-r.r-UR, .cl-r.r-HR { background: #7b3bc4; color: #fff; }
.cl-r.r-FUR              { background: #c22e7e; color: #fff; }
.cl-r.r-SAR, .cl-r.r-CSR { background: #a8288c; color: #fff; }
.cl-r.r-SEC              { background: #b4452a; color: #fff; }
.cl-r.r-SR, .cl-r.r-SSR  { background: #b5861f; color: #fff; }
.cl-r.r-MA, .cl-r.r-PIKA { background: #6b5bd0; color: #fff; }
.cl-r.r-AR, .cl-r.r-CHR  { background: #1f7fa8; color: #fff; }
.cl-r.r-RR, .cl-r.r-RRR  { background: #2f5ec4; color: #fff; }
.cl-r.r-ACE, .cl-r.r-L   { background: #c0392b; color: #fff; }
.cl-r.r-CC, .cl-r.r-A    { background: #3f7a46; color: #fff; }
.cl-r.r-RAD, .cl-r.r-K   { background: #c9a227; color: #2a1d00; }

/* 레어도 묶음 */
.cl-grp {
  border: 1px solid var(--d-line); border-radius: 16px;
  background: var(--d-panel); padding: 16px 16px 6px; margin: 0 0 16px;
}
.cl-grp h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 15px;
  font-size: 14.5px; font-weight: 700; color: var(--d-ink);
}
.cl-grp h3 em {
  margin-left: auto; font-style: normal; font-weight: 600;
  font-size: 12px; color: var(--d-dim);
}
.cl-fold {
  border: 1px solid var(--d-line); background: transparent; cursor: pointer;
  padding: 5px 11px; border-radius: 999px;
  color: var(--d-dim); font-size: 11.5px; font-weight: 700;
}
.cl-fold:hover { border-color: var(--d-ac); color: var(--d-ink); }
.cl-fold .on-shut, .cl-grp.folded .cl-fold .on-open { display: none; }
.cl-grp.folded .cl-fold .on-shut { display: inline; }
.cl-grp.folded .cl-grid { display: none; }

/* 카드 격자 */
.cl-grid {
  list-style: none; margin: 0; padding: 0 0 12px;
  display: grid; gap: 13px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
.cl-tile {
  border: 1px solid var(--d-line); border-radius: 12px; overflow: hidden;
  background: var(--d-panel-2); text-align: center;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.cl-tile:hover {
  transform: translateY(-3px); border-color: var(--d-ac);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 0 1px rgba(91, 140, 255, .35);
}
.cl-pic { aspect-ratio: 245 / 342; background: #060a16; padding: 9px 9px 0; }
.cl-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cl-info { padding: 9px 8px 11px; }
.cl-no {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px 6px;
  font: 600 11px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
  color: var(--d-dim);
}
.cl-nm {
  margin-top: 6px; font-size: 13.5px; font-weight: 700; color: #fff;
  line-height: 1.35; word-break: keep-all;
}
.cl-en { margin-top: 2px; font-size: 11px; color: #6f7fac; letter-spacing: -.01em; }


@media (max-width: 720px) {
  .cl-sec { margin-top: 30px; padding: 20px 12px 16px; border-radius: var(--radius-sm); }
  .cl-head { padding: 16px 12px; margin-bottom: 16px; }
  .cl-head h2 { font-size: 19px; }
  .cl-sub { font-size: 12px; }

  /* 칩이 줄바꿈으로 다섯 줄을 먹으면 카드가 화면에서 밀린다.
     한 줄로 두고 옆으로 밀어 보게 한다 — 스크롤 막대는 숨긴다. */
  .cl-chips {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    margin: 0 -12px 16px; padding: 0 12px 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .cl-chips::-webkit-scrollbar { display: none; }
  .cl-chip { flex: 0 0 auto; padding: 7px 12px; font-size: 12px; }

  /* 390px 기준 그리드 폭이 302px 다 — 3칸이 들어가려면 92 이하여야 한다 */
  .cl-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
  .cl-pic { padding: 6px 6px 0; }
  .cl-info { padding: 7px 5px 9px; }
  .cl-no { font-size: 10px; gap: 4px; }
  .cl-r { min-width: 28px; padding: 2px 5px; font-size: 9.5px; }
  .cl-nm { font-size: 11.5px; margin-top: 4px; }
  .cl-en { font-size: 9.5px; }
  .cl-grp { padding: 12px 11px 4px; border-radius: 13px; }
  .cl-grp h3 { font-size: 13px; gap: 8px; margin-bottom: 12px; }
}
