/* 팩스테이션 — 흰 지면 + 레드 주조, 옐로·블루 포인트 */

: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; }

/* ── 헤더 ─────────────────────────────────────────── */

.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 { 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 {
    /* 헤더 밖으로 펼쳐지는 부분이라 배경을 스스로 깔아야 한다.
       안 그러면 뒤 상품이 그대로 비쳐 글자가 안 읽힌다. */
    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;
  }
  .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; }
}
.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; }

.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); }

.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; }
}
