/* =========================================================================
   Buyer storefront — GO listing grid + My Orders
   ========================================================================= */

.sf { max-width: 1240px; margin: 0 auto; padding: 26px 24px 90px; }

/* hero strip */
.hero {
  border-radius: 20px; padding: 22px 26px; margin-bottom: 22px;
  background: linear-gradient(115deg, oklch(0.93 0.06 340), oklch(0.94 0.05 250));
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hero__title { font-family: var(--font-head); font-weight: 600; font-size: 22px; color: oklch(0.36 0.06 330); }
.hero__sub { font-size: 13.5px; color: oklch(0.5 0.04 330); margin-top: 4px; }
.hero__stats { display: flex; gap: 20px; flex: 0 0 auto; }
.hero__stat { text-align: center; }
.hero__stat b { font-family: var(--font-head); font-weight: 700; font-size: 22px; display: block; }
.hero__stat span { font-size: 11px; color: oklch(0.55 0.03 330); }

/* search (toggled by the nav 🔍) */
/* 거르는 것 두 가지가 한 줄에 선다 (owner 2026.08.30): 왼쪽 텍스트 검색,
   오른쪽 그룹 필터. 그룹 필터는 재고형 탭에서만 나타나므로, 없을 때 검색이
   줄을 혼자 쓰도록 flex-grow 로 둔다. */
.sf-controls { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 0 0 14px; }
.sf-search { flex: 1 1 260px; min-width: 0; }
.sf-search .input { width: 100%; height: 40px; border-radius: 999px; font-size: 13px; padding: 0 16px; }

/* sort bar (the filter chips + wishlist that used to share this row were
   removed — owner decision 2026.08.14, docs/workflow/01-storefront.md) */
.sf-filters {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding: 4px 0 6px; flex-wrap: wrap;
}
.sf-sort { position: relative; white-space: nowrap; }
.sf-sort__btn {
  font-family: var(--font-body); font-size: 13px; color: oklch(0.5 0.03 330); font-weight: 500;
  background: white; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.sf-sort__btn:hover { border-color: oklch(0.86 0.04 330); }
.sf-sort__label { color: var(--ink-head); font-weight: 600; }
.sf-sort__chev { transition: transform .15s ease; }
.sf-sort.open .sf-sort__chev { transform: rotate(180deg); }
.sf-sort__menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  background: white; border: 1px solid var(--border-in); border-radius: 12px;
  box-shadow: 0 14px 34px -14px oklch(0.5 0.1 330 / 0.55); padding: 5px; min-width: 180px;
}
.sf-sort__menu.show { display: block; }
.sf-sort__opt {
  font-size: 13px; color: var(--ink-body); padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.sf-sort__opt:hover { background: oklch(0.97 0.02 330); }
.sf-sort__opt.is-active { color: var(--accent-strong); font-weight: 600; background: oklch(0.98 0.02 340); }
.sf-empty { grid-column: 1 / -1; padding: 48px 20px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.sf-section { display: flex; align-items: baseline; gap: 10px; padding: 12px 0 4px; }
.sf-section h2 { font-weight: 600; font-size: 18px; }
.sf-section .count { font-size: 13px; color: oklch(0.6 0.03 330); background: oklch(0.96 0.02 330); padding: 2px 9px; border-radius: 999px; }

/* product grid */
.go-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 14px 0 0;
}
.go-card {
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: white;
  box-shadow: 0 8px 24px -18px oklch(0.5 0.1 330 / 0.6);
  transition: transform .12s ease, box-shadow .12s ease;
}
.go-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px oklch(0.5 0.12 330 / 0.55); }
.go-card__media { position: relative; aspect-ratio: 1 / 1; }
/* 투명 PNG(응원봉 등) 뒤로 "image pending" 글자가 비치지 않게 (2026.10.30). 깨진 이미지는 onerror 로 지워져 플레이스홀더가 다시 보인다. */
.go-card__media .imgfill { background: #fff; }
.go-card__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
}
.go-card__ph b {
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: oklch(0.98 0.02 330);
  text-shadow: 0 1px 3px oklch(0.4 0.1 330 / 0.4);
}
.go-card__ph small {
  font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 1px;
  color: oklch(0.99 0.01 330 / 0.9); background: oklch(0.4 0.08 330 / 0.3);
  padding: 3px 8px; border-radius: 6px;
}
.badge-deadline {
  position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
}
.badge-deadline--hot  { background: oklch(0.62 0.19 25); color: white; }
.badge-deadline--soon { background: oklch(0.72 0.16 70); color: white; }
.badge-deadline--calm { background: oklch(0.96 0.02 330); color: oklch(0.45 0.05 330); }
.badge-vendor {
  position: absolute; bottom: 10px; left: 10px; display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: oklch(0.99 0.008 330 / 0.94); color: oklch(0.4 0.05 330);
  box-shadow: 0 2px 8px oklch(0.4 0.1 330 / 0.2);
}
.go-card__body { padding: 13px 14px 15px; }
.go-card__artist { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; color: oklch(0.62 0.13 340); }
.go-card__album { font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.2; margin: 3px 0 8px; color: oklch(0.32 0.04 330); text-wrap: balance; }
.go-card__ver { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: oklch(0.95 0.03 340); color: oklch(0.5 0.1 340); display: inline-block; margin-bottom: 11px; }
/* Set composition — what the buyer gets in this set, on every card. */
.go-card__set { font-size: 11px; font-weight: 500; line-height: 1.4; color: oklch(0.48 0.05 330); margin: -5px 0 11px; }
/* 어느 변형이 올지 고를 수 없는 상품이라는 고지 (owner 2026.08.29). 세트 구성
   줄과 같은 자리·같은 크기 — 둘 다 "이 상자에 무엇이 들었나" 를 말한다. */
.go-card__random { font-size: 11px; font-weight: 600; line-height: 1.45; color: oklch(0.46 0.11 300); background: oklch(0.96 0.04 300); border-radius: 7px; padding: 5px 8px; margin: -3px 0 11px; }
/* 예약특전 (owner 2026.09.01, 14단계). 판매처가 주는 것이라 아래 사은품
   메모와 색을 달리한다 — 같은 카드에 둘이 함께 설 수 있고, 누가 주는
   것인지가 구분되어야 한다. */
.go-card__pob { font-size: 11px; font-weight: 600; line-height: 1.45; color: oklch(0.45 0.10 200); background: oklch(0.96 0.04 200); border-radius: 7px; padding: 5px 8px; margin: -3px 0 11px; }
/* Quantity-tier freebie memo — operator free text, one tier per line, so
   pre-line keeps the line breaks the operator typed. */
.go-card__benefit { font-size: 11px; font-weight: 500; line-height: 1.5; white-space: pre-line; padding: 6px 9px; border-radius: 7px; background: oklch(0.96 0.04 90); color: oklch(0.45 0.09 70); margin-bottom: 11px; }
.go-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; border-top: 1px dashed oklch(0.92 0.02 330); }
.go-card__pricelabel { font-size: 9.5px; color: oklch(0.6 0.02 320); font-weight: 500; }
.go-card__price { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink-head); }

/* ------------------------------------------------------------------ My Orders login gate */
.gate { max-width: 460px; margin: 40px auto; }
.gate__hero {
  height: 96px; background: linear-gradient(115deg, oklch(0.9 0.07 340), oklch(0.92 0.06 250));
  display: flex; align-items: center; justify-content: center;
}
.gate__hero span {
  width: 56px; height: 56px; border-radius: 18px; background: oklch(1 0 0 / 0.85);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.gate__body { padding: 26px 30px 30px; }
.gate h2 { font-weight: 600; font-size: 24px; margin-bottom: 6px; }
.gate p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: oklch(0.52 0.03 320); }
.gate__google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px solid oklch(0.9 0.02 330); cursor: pointer; background: white;
  color: oklch(0.28 0.04 330); font-weight: 600; font-size: 14.5px; padding: 12px;
  border-radius: 13px; margin-bottom: 14px; box-shadow: 0 6px 14px -10px oklch(0.5 0.05 260 / 0.5);
}
.gate__or { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.gate__or span { flex: 1; height: 1px; background: oklch(0.93 0.02 330); }
.gate__or em { flex: 0 0 auto; font-size: 11px; color: oklch(0.58 0.03 330); font-weight: 500; font-style: normal; }
/* Pre-submit disclosure: who the email code is for. Small, but before the form
   — the sent screen's version arrives after the wrong door was already picked. */
.gate__codehint { margin: 0 0 10px; font-size: 12px; color: oklch(0.55 0.04 330); line-height: 1.5; }
.gate__codehint b { color: oklch(0.4 0.08 340); }
.gate__inputrow {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid oklch(0.88 0.03 330);
  border-radius: 13px; padding: 0 14px; background: oklch(0.99 0.005 330); margin-bottom: 12px;
}
.gate__inputrow input { border: none; outline: none; background: transparent; padding: 13px 4px; font-size: 14px; color: var(--ink-head); flex: 1; }
.gate__note {
  margin-top: 14px; padding: 11px 13px; border: 1px dashed oklch(0.88 0.05 340);
  border-radius: 11px; background: oklch(0.98 0.02 340);
}
.gate__note b { display: block; font-size: 12px; color: oklch(0.4 0.08 340); margin-bottom: 2px; }
.gate__note p { margin: 0; font-size: 11.5px; color: oklch(0.5 0.04 330); line-height: 1.5; }
.gate__secure { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 11.5px; color: oklch(0.55 0.03 330); }
.gate__setup {
  margin: 4px 0 4px; padding: 12px 14px; border: 1px dashed oklch(0.86 0.06 340);
  border-radius: 12px; background: oklch(0.98 0.02 340);
}
.gate__setup b { display: block; font-size: 12px; color: oklch(0.4 0.08 340); margin-bottom: 4px; }
.gate__setup p { margin: 0; font-size: 12.5px; color: oklch(0.45 0.04 330); line-height: 1.55; }
.gate__setup code {
  background: oklch(0.95 0.03 340); padding: 1px 6px; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px;
  color: oklch(0.35 0.1 340);
}
.gate__error {
  margin: 0 0 14px; padding: 10px 13px; border-radius: 11px;
  background: oklch(0.96 0.05 25); color: oklch(0.42 0.15 25);
  font-size: 12.5px; border: 1px solid oklch(0.9 0.07 25);
}
.gate__back { text-align: center; margin-top: 18px; }
.gate__back a { font-size: 12.5px; color: var(--accent-strong); text-decoration: none; font-weight: 500; }
.gate__back a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ My Orders history */
.orders { max-width: 1040px; margin: 0 auto; padding: 30px 24px 90px; }
.orders__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.orders__head h2 { font-weight: 600; font-size: 22px; }
.order-card { border: 1px solid var(--border); border-radius: 20px; background: white; box-shadow: var(--shadow-soft); overflow: hidden; margin-bottom: 16px; }
.order-card__head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; background: oklch(0.98 0.008 330); flex-wrap: wrap; gap: 8px; }
.order-card__id { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: oklch(0.36 0.05 330); }
.order-line { display: flex; align-items: center; gap: 16px; padding: 15px 20px 6px; border-top: 1px dashed oklch(0.93 0.02 330); }
.order-line__thumb { position: relative; width: 66px; height: 66px; flex: 0 0 auto; border-radius: 13px; overflow: hidden; }
.order-line__meta { flex: 1; min-width: 0; }
.order-line__artist { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: oklch(0.62 0.13 340); }
.order-line__album { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: oklch(0.32 0.04 330); margin: 2px 0 6px; }
.order-line__tags { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.order-line__tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: oklch(0.95 0.03 340); color: oklch(0.5 0.1 340); }
.order-line__vendor { font-size: 11.5px; font-weight: 600; color: oklch(0.45 0.05 330); }
.order-line__qty { font-size: 11.5px; color: oklch(0.58 0.03 330); }
.order-line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: 0 0 auto; }
.order-line__price { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink-head); }
.order-line__track { padding: 0 20px 4px 102px; font-size: 11.5px; color: oklch(0.55 0.03 330); }
.order-line__proofs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: oklch(0.55 0.03 330); }
.order-line__proofs span { width: 100%; }
.order-line__proofs img { width: 48px; height: 48px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--border); display: block; }
.order-line__proofs--ship img { width: 88px; height: 88px; object-position: center; }
.order-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; margin-top: 8px; border-top: 1px solid var(--border); background: oklch(0.985 0.006 330); flex-wrap: wrap; }
.order-card__total b { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink-head); margin-left: 8px; }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 760px; margin: 0 auto; padding: 40px 24px 90px; }
.faq h1 { font-weight: 600; font-size: 32px; margin-bottom: 8px; }
.faq__lead { color: var(--ink-soft); margin: 0 0 24px; font-size: 15px; }
.faq__item { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; box-shadow: var(--shadow-soft); }
.faq__item h3 { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.faq__item p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-body); }

/* ------------------------------------------------------------------ cart drawer */
.cart-overlay {
  position: fixed; inset: 0; background: oklch(0.3 0.05 320 / 0.4); z-index: 60;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw; z-index: 61;
  background: white; box-shadow: -20px 0 60px -30px oklch(0.4 0.1 330 / 0.5);
  display: flex; flex-direction: column; transform: translateX(100%);
  visibility: hidden; transition: transform .25s cubic-bezier(.22,.61,.36,1), visibility 0s linear .25s;
}
.cart-drawer.show { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.cart-title { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink-head); }
.cart-close {
  border: 1px solid var(--border-in); background: white; border-radius: 9px; width: 30px; height: 30px;
  cursor: pointer; color: var(--ink-soft); font-size: 13px;
}
.cart-close:hover { background: oklch(0.97 0.02 330); }
.cart-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.cart-item {
  display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed oklch(0.93 0.02 330);
}
.cart-item__thumb { position: relative; width: 58px; height: 58px; flex: 0 0 auto; border-radius: 11px; overflow: hidden; }
.cart-item__meta { flex: 1; min-width: 0; }
.cart-item__artist { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: oklch(0.62 0.13 340); }
.cart-item__album { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: oklch(0.32 0.04 330); margin: 1px 0 3px; }
.cart-item__sub { font-size: 11px; color: var(--ink-soft); }
/* Album shipping rules, stated in the cart because a card chip could not hold
   them once domestic and overseas parted ways (owner 2026.08.29).

   NOT `.cart-note` — that class already exists further down this file as the
   checkout-nudge box, which ships `display: none` until `.show` is added. Reusing
   the name put this note in the DOM and never on screen; the later rule won on
   equal specificity. Caught on the live site right after deploy. */
.cart-albumnote {
  margin: 12px 0 0; padding: 10px 13px; border-radius: 11px;
  font-size: 11.5px; line-height: 1.6;
  background: oklch(0.97 0.03 250); border: 1px solid oklch(0.88 0.05 250);
  color: oklch(0.42 0.06 260);
}
.cart-albumnote b { color: oklch(0.35 0.09 255); font-weight: 700; }
.cart-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.cart-item__price { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink-head); }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-in); border-radius: 8px; overflow: hidden; }
.cart-qty button { width: 24px; height: 24px; border: 0; background: white; cursor: pointer; color: oklch(0.5 0.05 330); font-size: 13px; }
.cart-qty button:hover { background: oklch(0.97 0.02 330); }
/* 수량 직접 입력 (owner 2026.08.20 — B2B 대량 주문) */
.cart-qty__input {
  width: 52px; border: 0; text-align: center; font: inherit; font-size: 13px;
  font-variant-numeric: tabular-nums; color: var(--ink-head, oklch(0.32 0.04 330));
  -moz-appearance: textfield; appearance: textfield; background: white;
}
.cart-qty__input::-webkit-outer-spin-button,
.cart-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty__input:focus { outline: 2px solid oklch(0.75 0.1 340); outline-offset: -2px; }
.cart-qty span { min-width: 26px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-head); }
.cart-remove { border: 0; background: transparent; cursor: pointer; color: oklch(0.65 0.05 25); font-size: 12px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 60px 20px; font-size: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cart-empty div { font-size: 14px; }
.cart-foot { border-top: 1px solid var(--border); padding: 16px 18px; display: none; }
.cart-foot.show { display: block; }
.cart-subtotal { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; color: var(--ink-body); }
.cart-subtotal b { font-family: var(--font-head); font-size: 20px; color: var(--ink-head); }
.cart-note { display: none; margin-top: 10px; font-size: 11.5px; line-height: 1.5; color: var(--accent-strong); background: var(--accent-tint); border: 1px dashed oklch(0.86 0.06 340); border-radius: 10px; padding: 9px 11px; }
.cart-note.show { display: block; }
.cart-secure { margin-top: 10px; font-size: 11px; color: var(--ink-soft); text-align: center; }
.cart-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(10px);
  background: oklch(0.34 0.05 330); color: white; font-size: 13px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; box-shadow: 0 12px 30px -12px oklch(0.4 0.1 330 / 0.6);
  z-index: 70; opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.cart-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@keyframes cartBump { 0% { transform: scale(1); } 30% { transform: scale(1.12); } 100% { transform: scale(1); } }
.cart-bump { animation: cartBump .35s ease; }

/* ------------------------------------------------------------------ checkout */
.checkout { max-width: 1080px; margin: 0 auto; padding: 30px 24px 90px; }
.checkout__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.checkout__head h1 { font-weight: 600; font-size: 30px; }
.checkout__back { font-size: 13.5px; font-weight: 500; }
.checkout__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.checkout__forms { display: flex; flex-direction: column; gap: 16px; }
.checkout__step { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.checkout__step h3 { font-weight: 600; font-size: 16px; }
.checkout__num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: white; font-family: var(--font-head); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.co-option {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border-in); border-radius: 12px;
  padding: 13px 15px; cursor: pointer; margin-bottom: 8px; transition: border-color .12s, background .12s;
}
.co-option:last-child { margin-bottom: 0; }
.co-option.is-selected { border-color: var(--accent); background: oklch(0.985 0.02 340); }
.co-option input { accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; }
.co-option > div { flex: 1; }
.co-option__title { font-size: 13.5px; font-weight: 600; color: var(--ink-head); }
.co-option__desc { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.co-option__meta { font-size: 11px; font-weight: 600; color: var(--accent-strong); white-space: nowrap; }
.co-paymethods { margin-bottom: 12px; }
.co-cardfields { margin-bottom: 12px; }
.co-hint, .co-secure { font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; }
.co-hint--alert { color: oklch(0.5 0.19 25); font-size: 14px; font-weight: 600; line-height: 1.55; }
.co-hint--alert a { color: inherit; text-decoration: underline; }
.co-secure { margin-top: 4px; }
.checkout__summary { position: sticky; top: 84px; }
.co-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px dashed oklch(0.93 0.02 330); }
.co-item__thumbwrap { position: relative; flex: 0 0 auto; }
.co-item__thumb { position: relative; width: 46px; height: 46px; border-radius: 9px; overflow: hidden; }
/* badge sits on the unclipped wrapper so the thumb's overflow:hidden can't cut it off */
.co-item__qty { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px; background: var(--ink-head); color: white; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid white; box-shadow: 0 3px 8px -3px oklch(0.3 0.05 330 / 0.5); }
.co-item__meta { flex: 1; min-width: 0; }
.co-item__album { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: oklch(0.32 0.04 330); }
.co-item__sub { font-size: 10.5px; color: var(--ink-soft); }
.co-item__price { font-weight: 600; font-size: 13px; color: var(--ink-head); }
.co-total-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-body); padding: 7px 0; }
.co-muted { color: var(--ink-soft); font-size: 12px; }
.co-total-row--grand { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-size: 15px; color: var(--ink-head); }
.co-total-row--grand b { font-family: var(--font-head); font-size: 22px; }
.co-trust { margin-top: 12px; font-size: 11px; color: var(--ink-soft); text-align: center; line-height: 1.5; }
.co-empty { padding: 30px 10px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.co-success { max-width: 520px; margin: 20px auto; text-align: center; background: white; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-card); padding: 40px 32px; }
.co-success__check { width: 60px; height: 60px; border-radius: 50%; background: oklch(0.9 0.08 160); color: oklch(0.42 0.14 160); font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.co-success h2 { font-weight: 600; font-size: 24px; margin-bottom: 8px; }
.co-success p { font-size: 14px; line-height: 1.6; color: var(--ink-body); margin: 0 auto 16px; max-width: 400px; }
.co-success__order { font-size: 13px; color: var(--ink-soft); }
.co-success__order b { font-family: var(--font-head); color: var(--ink-head); }
.co-ship-note { display: none; margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--ink-soft); background: oklch(0.97 0.02 250); border: 1px dashed oklch(0.86 0.05 250); border-radius: 9px; padding: 8px 10px; }
/* The checkout's email row: verified session address, not an input. */
.co-verified {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px;
  color: oklch(0.34 0.04 330);
  background: oklch(0.98 0.008 330); border: 1px solid oklch(0.93 0.015 330);
  border-radius: 12px; padding: 11px 14px;
}
.co-verified b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-verified__tag {
  margin-left: auto; flex: 0 0 auto; font-size: 10.5px; font-weight: 700;
  letter-spacing: .3px; padding: 3px 8px; border-radius: 999px;
  background: oklch(0.94 0.05 155); color: oklch(0.42 0.12 155);
}

/* Payment-details-by-email callout. Replaces the account block that used to
   sit on this page — see templates/checkout.html for why it left. */
.co-mailnote {
  border: 1px solid oklch(0.88 0.05 250); background: oklch(0.97 0.03 250);
  border-radius: 13px; padding: 13px 16px;
}
.co-mailnote b { font-size: 12.5px; color: oklch(0.4 0.1 250); }
.co-mailnote p { font-size: 12px; line-height: 1.6; color: oklch(0.45 0.05 260); margin-top: 4px; }

.co-vaccount { max-width: 340px; margin: 4px auto 0; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); padding: 14px 16px; }
.co-vaccount > div { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.co-vaccount > div + div { border-top: 1px solid var(--border); }
.co-vaccount span { color: var(--ink-soft); }
.co-vaccount b { font-family: var(--font-head); color: var(--ink-head); font-size: 14px; }
.is-disabled { opacity: .5; pointer-events: none; }

@media (max-width: 860px) {
  .checkout__grid { grid-template-columns: 1fr; }
  .checkout__summary { position: static; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .go-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 520px) {
  .go-grid { grid-template-columns: repeat(2, 1fr); }
  .go-card__foot { flex-direction: column; align-items: stretch; }
  .go-card__foot .add-cart { width: 100%; }
  .hero__stats { gap: 14px; }
}

/* ------------------------------------------------------- buyer account page */
/* The buyer's counterpart to /admin: identity, linked emails, order shortcuts.
   Deliberately plain — everything here is text the buyer needs to read, not a
   dashboard to operate. */
.acct { max-width: 720px; margin: 30px auto; display: flex; flex-direction: column; gap: 16px; }
.acct__head { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.acct__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, oklch(0.76 0.15 340), oklch(0.7 0.14 300));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 700;
}
.acct__id { flex: 1; min-width: 0; }
.acct__id h2 { font-size: 19px; margin-bottom: 3px; }
.acct__email {
  font-size: 13px; color: oklch(0.5 0.03 330);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.acct__joined { font-size: 11.5px; color: oklch(0.62 0.02 320); margin-top: 3px; }
.acct__badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 3px 8px;
  border-radius: 999px; background: oklch(0.94 0.05 155); color: oklch(0.42 0.12 155);
}
.acct__badge--google { background: oklch(0.94 0.05 250); color: oklch(0.42 0.12 250); }
.acct__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acct__stat { padding: 18px 20px; text-decoration: none; display: block; }
.acct__stat:hover { border-color: oklch(0.86 0.06 340); }
.acct__stat-num { font-size: 26px; font-weight: 700; color: oklch(0.55 0.17 340); }
.acct__stat-label { font-size: 12.5px; color: oklch(0.5 0.03 330); margin-top: 2px; }
.acct__panel { padding: 20px 22px; }
.acct__panel h3 { font-size: 15px; margin-bottom: 6px; }
.acct__hint { font-size: 12.5px; line-height: 1.65; color: oklch(0.5 0.03 330); margin-bottom: 14px; }
.acct__emails { list-style: none; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.acct__emails li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: oklch(0.4 0.03 330);
  background: oklch(0.98 0.008 330); border: 1px solid oklch(0.93 0.015 330);
  border-radius: 11px; padding: 10px 14px;
}

@media (max-width: 560px) {
  .acct__head { flex-wrap: wrap; }
  .acct__stats { grid-template-columns: 1fr; }
}

/* Cancelled/expired notice on the order detail page. */
.co-error {
  border: 1px solid oklch(0.86 0.08 25); background: oklch(0.97 0.03 25);
  border-radius: 13px; padding: 13px 16px;
  font-size: 12.5px; line-height: 1.6; color: oklch(0.45 0.14 25);
}

/* ------------------------------------------------- order detail — timeline */
.tl-dot {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: white;
}
.tl-dot--done { background: oklch(0.55 0.14 160); }
.tl-dot--current { background: oklch(0.7 0.16 340); font-size: 11px; }
.tl-dot--cancelled { background: oklch(0.62 0.19 25); }
.tl-dot--todo { background: oklch(0.94 0.015 330); color: oklch(0.6 0.02 320); font-size: 11px; }
.tl-rail { width: 2px; flex: 1; min-height: 14px; background: oklch(0.93 0.02 330); margin-top: 4px; }
.tl-label { font-size: 13.5px; font-weight: 600; color: oklch(0.6 0.02 320); }
.tl-label.is-live { color: oklch(0.34 0.05 330); }
.tl-note { font-size: 11.5px; color: oklch(0.58 0.03 320); margin-top: 2px; }

/* ---- Category tabs (stage 11-C): Photocard Sets | Albums | Lightsticks | Goods.
   재고형 카드는 마감 카운트다운 대신 In stock 배지 — 수량 비공개 (owner 2026.08.19). */
.sf-tabs { display: flex; gap: 8px; margin: 18px 0 12px; flex-wrap: wrap; }
.sf-tab {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: white; color: oklch(0.45 0.05 330);
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.sf-tab:hover { border-color: oklch(0.75 0.1 340); }
.sf-tab.is-active {
  background: oklch(0.5 0.14 340); border-color: oklch(0.5 0.14 340); color: white;
}
.sf-tab__count {
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 3px 7px; border-radius: 999px;
  background: oklch(0.96 0.02 330); color: oklch(0.45 0.05 330);
}
.sf-tab.is-active .sf-tab__count { background: oklch(1 0 0 / 0.22); color: white; }

.badge-deadline--stock { background: oklch(0.55 0.13 160); color: white; }

/* 그룹(아티스트) 필터 — 모든 탭 (owner 2026.08.30). 그룹이 12개 이하면 칩을
   전부 펼치고, 넘으면 검색 상자다 (owner 2026.08.19, 앨범 67개를 보고). */
/* 줄어들지 않는다: `flex: 0 1 auto` 였을 때 왼쪽 검색이 남는 공간을 다 가져가
   그룹 검색의 placeholder 가 "Search group… (59" 에서 잘렸다. 좁은 화면에서는
   `.sf-controls` 의 wrap 이 이 칸을 다음 줄로 내린다. */
.sf-artists { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; flex: 0 0 auto; width: min(340px, 100%); }
/* 칩을 담을 때는 그 확정 폭을 놓아 준다. 340px 는 검색 상자를 위한 치수이고,
   칩은 제 글자 폭대로 서야 한다 — 그 안에 가두면 넷이 두 줄로 접힌다. */
.sf-artists--chips { width: auto; max-width: 100%; flex: 0 1 auto; }
/* 폭을 여기서 못 박는 이유: 안쪽 `.sf-artist-search` 가 `min(340px, 100%)` 인데,
   부모가 `flex: 0 0 auto` 로 내용에 맞춰지면 그 100% 가 참조할 폭이 없어
   서로를 기다리다 163px 로 쪼그라들었다 — 라이브에서 placeholder 가
   "Search group… (59" 로 잘렸다. 부모에 확정 폭을 주면 안쪽 100% 가 340px 로
   풀린다. 좁은 화면에서는 min() 의 100% 가 받는다. */
.sf-artist-search { position: relative; width: min(340px, 100%); }
.sf-artist-search .input { width: 100%; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.sf-artist-search__menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  display: flex; flex-direction: column; overflow: hidden;
  background: white; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 30px -18px oklch(0.4 0.1 330 / 0.5);
  max-height: 320px; overflow-y: auto;
}
.sf-artist-search__opt {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
  padding: 9px 14px; border: 0; background: white; color: oklch(0.4 0.05 330);
}
.sf-artist-search__opt:hover { background: oklch(0.97 0.02 340); color: oklch(0.45 0.14 340); }
.sf-artist-search__opt small { font-weight: 700; opacity: .5; margin-left: 4px; }
.sf-artist {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: white; color: oklch(0.45 0.05 330);
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.sf-artist:hover { border-color: oklch(0.75 0.1 340); }
.sf-artist.is-active {
  background: oklch(0.96 0.03 340); border-color: oklch(0.5 0.14 340); color: oklch(0.45 0.14 340);
}
.sf-artist small { font-size: 10.5px; font-weight: 700; opacity: .55; margin-left: 2px; }

/* ------------------------------------------------- SALE 스트립 (사장님 2026.09.06)
   앨범 탭 맨 위, 값 내린 상품이 가로 줄로 먼저 선다. 카드가 아니라 요약이므로
   미니 카드는 사진·할인율·두 가격만 말한다 — 나머지는 눌러서 열리는 빠른 보기가
   이미 말한다. */
.sf-salestrip {
  border-radius: 20px; padding: 16px 18px 18px; margin: 4px 0 16px;
  background: linear-gradient(115deg, oklch(0.95 0.05 25), oklch(0.96 0.04 340));
  border: 1px solid oklch(0.9 0.06 25);
}
.sf-salestrip__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 12px; flex-wrap: wrap;
}
.sf-salestrip__t { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: oklch(0.42 0.16 25); }
.sf-salestrip__s { font-size: 12.5px; color: oklch(0.5 0.08 25); margin-top: 2px; }
.sf-salestrip__all {
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  border: 1px solid oklch(0.6 0.18 25); background: white; color: oklch(0.5 0.19 25);
  padding: 8px 14px; border-radius: 999px;
}
.sf-salestrip__all:hover { background: oklch(0.98 0.02 25); }
/* 가로 스크롤은 이 줄 안에서만 일어난다 — 페이지가 옆으로 밀리면 안 된다. */
.sf-salerail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 152px;
  gap: 12px; overflow-x: auto; padding-bottom: 2px;
}
.sf-mini {
  display: block; text-align: left; font: inherit; cursor: pointer; padding: 0;
  background: white; border: 1px solid oklch(0.92 0.03 25); border-radius: 14px; overflow: hidden;
}
.sf-mini:hover { border-color: oklch(0.8 0.1 25); }
.sf-mini__shot { position: relative; aspect-ratio: 1 / 1; }
.sf-mini__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-mini__pct {
  position: absolute; top: 7px; left: 7px; font-size: 11px; font-weight: 800; color: white;
  background: oklch(0.55 0.2 20); padding: 3px 8px; border-radius: 999px;
}
.sf-mini__artist {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--ink-mute);
  padding: 8px 10px 0; text-transform: uppercase;
}
.sf-mini__album {
  font-size: 12.5px; font-weight: 600; color: var(--ink-head); padding: 1px 10px 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sf-mini__price { font-size: 12px; padding: 4px 10px 10px; color: var(--ink-mute); }
.sf-mini__price b { color: oklch(0.5 0.19 20); font-size: 13px; margin-left: 3px; }

/* SALE 필터 칩 (사장님 2026.09.06). 그룹 칩과 같은 모양을 쓰되 활성색만
   카드의 SALE 배지와 같은 빨강이다 — 무엇을 거르는 버튼인지 색이 말한다. */
.sf-sale.is-active {
  background: oklch(0.96 0.04 20); border-color: oklch(0.55 0.2 20); color: oklch(0.5 0.19 20);
}
.sf-sale:hover { border-color: oklch(0.7 0.15 20); }

/* 세일 (재고형 전용) — 판매가 = min(Yes24, 매입가×1.3), owner 2026.08.19. */
.badge-sale {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: oklch(0.55 0.2 20); color: white;
  box-shadow: 0 2px 8px oklch(0.4 0.15 20 / 0.35);
}
.go-card__was { font-size: 12px; color: oklch(0.6 0.03 330); }
.go-card__price--sale { color: oklch(0.5 0.19 20); }

/* ------------------------------------------------- 빠른 보기 (재고형 카드)
   카드를 누르면 그 카드가 아는 것을 크게 보여준다 (owner 2026.08.30, 안 A).
   접두사 `qv-` 는 이 파일에서 처음 쓰는 이름이다 — `.cart-note` 를 재사용했다가
   화면에 한 번도 안 보인 전례가 있어, 붙이기 전에 파일 전체를 확인했다. */
.qv-overlay { position: fixed; inset: 0; background: oklch(0.3 0.04 330 / 0.42); opacity: 0; transition: opacity .16s ease; z-index: 80; }
.qv-overlay.show { opacity: 1; }
.qv {
  position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%, -48%);
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto;
  background: white; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 40px 90px -50px oklch(0.35 0.1 330 / 0.7);
  opacity: 0; transition: opacity .16s ease, transform .16s ease;
}
.qv.show { opacity: 1; transform: translate(-50%, -50%); }
.qv__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.qv__eyebrow { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; color: oklch(0.62 0.13 340); }
.qv__close { width: 28px; height: 28px; border: 0; border-radius: 50%; background: oklch(0.96 0.02 330); color: var(--ink-soft); font-size: 13px; cursor: pointer; flex: 0 0 auto; }
.qv__body { display: flex; gap: 18px; padding: 18px; }
.qv__shot { flex: 0 0 210px; height: 262px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: oklch(0.96 0.02 330); }
.qv__shot img { width: 100%; height: 100%; object-fit: contain; }
.qv__ph { font-size: 11px; color: var(--ink-soft); font-family: ui-monospace, monospace; }
.qv__info { flex: 1; min-width: 0; }
.qv__album { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--ink-head); margin: 0 0 10px; text-wrap: balance; }
.qv__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.qv__chip { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: oklch(0.95 0.03 340); color: oklch(0.5 0.1 340); }
.qv__chip--stock { background: oklch(0.9 0.06 160); color: oklch(0.42 0.12 160); }
.qv__chip--sale { background: oklch(0.92 0.07 25); color: oklch(0.5 0.16 25); }
.qv__pricerow { display: flex; align-items: baseline; gap: 9px; }
.qv__was { font-size: 13px; color: var(--ink-soft); }
.qv__price { font-family: var(--font-head); font-weight: 600; font-size: 26px; color: var(--ink-head); }
.qv__rand { margin-top: 12px; font-size: 12px; font-weight: 600; line-height: 1.55; color: oklch(0.46 0.11 300); background: oklch(0.96 0.04 300); border-radius: 10px; padding: 9px 12px; }
.qv__pay { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; line-height: 1.6; color: oklch(0.42 0.1 255); background: oklch(0.97 0.03 250); border: 1px solid oklch(0.88 0.05 250); border-radius: 11px; padding: 10px 13px; }
.qv__buy { display: flex; gap: 9px; margin-top: 15px; }
.qv__qty { display: inline-flex; align-items: center; border: 1px solid var(--border-in); border-radius: 11px; overflow: hidden; flex: 0 0 auto; }
.qv__qty button { width: 32px; height: 40px; border: 0; background: white; color: oklch(0.5 0.05 330); font-size: 14px; cursor: pointer; }
.qv__qty input { width: 54px; height: 40px; border: 0; border-left: 1px solid var(--border-in); border-right: 1px solid var(--border-in); text-align: center; font: inherit; font-size: 14px; color: var(--ink-head); -moz-appearance: textfield; }
.qv__qty input::-webkit-outer-spin-button, .qv__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qv__buy .btn { flex: 1; height: 40px; }
/* 재고형 카드는 눌러서 열 수 있다는 것을 커서로 알린다. */
.go-card:has(.add-cart[data-stock="1"]) { cursor: pointer; }
@media (max-width: 620px) {
  .qv__body { flex-direction: column; }
  .qv__shot { flex: 0 0 auto; width: 100%; height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .qv, .qv-overlay { transition: none; }
}

/* 구성품이 인쇄된 Yes24 상세 이미지 (owner 2026.08.30). 세로로 아주 긴
   이미지라 모달 안에서 스스로 스크롤되게 두고, 폭에 맞춰 줄인다. */
.qv__detail { margin-top: 12px; max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: 11px; background: oklch(0.97 0.01 330); }
.qv__detail img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------- 19단계 · Cards Plus (사장님 2026.09.11)
   카드에 바코드·프리오더 두 날짜·수량 박스, 그리드 위에 Best 레일, 옆에 A–Z 레일,
   아래에 합계 바. 이름은 이 파일 전체를 grep 해 처음 쓰는 것만 골랐다. */
/* 오른쪽 아래 — 왼쪽 아래는 .badge-vendor 자리다. */
.badge-best {
  position: absolute; bottom: 10px; right: 10px;
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: oklch(0.82 0.14 85); color: oklch(0.3 0.08 70);
  box-shadow: 0 2px 8px oklch(0.5 0.1 80 / 0.3);
}
.go-card__barcode {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .04em;
  color: oklch(0.6 0.02 320); margin: -4px 0 10px; font-variant-numeric: tabular-nums;
}
.go-card__dates {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline;
  font-size: 11px; color: oklch(0.55 0.03 320); margin: -3px 0 10px;
}
.go-card__dates b { font-weight: 600; color: oklch(0.36 0.05 330); font-variant-numeric: tabular-nums; }
/* 수량 박스 — 빠른 보기의 .qv__qty 와 같은 모양, 카드에 맞게 한 단 작게. */
.go-card__qty {
  display: inline-flex; align-items: center; border: 1px solid var(--border-in); border-radius: 10px;
  overflow: hidden; flex: 0 0 auto; background: white;
}
.go-card__dec, .go-card__inc { width: 30px; height: 34px; border: 0; background: white; color: oklch(0.5 0.05 330); font-size: 14px; cursor: pointer; }
.go-card__dec:hover, .go-card__inc:hover { background: oklch(0.97 0.02 340); color: oklch(0.45 0.14 340); }
.go-card__qtyin {
  width: 44px; height: 34px; border: 0; border-left: 1px solid var(--border-in); border-right: 1px solid var(--border-in);
  text-align: center; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-head);
  -moz-appearance: textfield; font-variant-numeric: tabular-nums;
}
.go-card__qtyin::-webkit-outer-spin-button, .go-card__qtyin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* 담긴 카드는 테두리로 말한다 — 26줄 중 무엇을 넣었는지 스크롤만으로 보이게. */
.go-card__qty.is-filled { border-color: oklch(0.5 0.14 340); }
.go-card__qty.is-filled .go-card__qtyin { color: oklch(0.45 0.14 340); }
.go-card:has(.go-card__qty.is-filled) { box-shadow: 0 0 0 2px oklch(0.5 0.14 340 / 0.35); }
/* Best 레일 — SALE 스트립의 틀에 색만 금빛. */
.sf-salestrip--best { background: linear-gradient(115deg, oklch(0.96 0.05 85), oklch(0.97 0.03 340)); border-color: oklch(0.9 0.06 85); }
.sf-salestrip--best .sf-salestrip__t { color: oklch(0.42 0.1 70); }
.sf-salestrip--best .sf-salestrip__s { color: oklch(0.5 0.06 70); }
.sf-salestrip--best .sf-salestrip__all { border-color: oklch(0.7 0.13 80); color: oklch(0.42 0.1 70); }
.sf-salestrip--best .sf-mini { border-color: oklch(0.92 0.04 85); }
.sf-best.is-active { background: oklch(0.97 0.05 85); border-color: oklch(0.7 0.13 80); color: oklch(0.42 0.1 70); }
.sf-best:hover { border-color: oklch(0.75 0.12 80); }
/* A–Z 레일 — 그리드 오른쪽에 떠서 따라온다. 좁은 화면에서는 가로 한 줄. */
.sf-abc {
  position: sticky; top: 10px; float: right; z-index: 20;
  display: flex; flex-direction: column; gap: 0; margin: 0 0 8px 10px;
  background: white; border: 1px solid var(--border); border-radius: 999px; padding: 4px 2px;
  box-shadow: 0 8px 24px -16px oklch(0.4 0.1 330 / 0.5);
}
.sf-abc button {
  width: 22px; height: 19px; border: 0; background: transparent; border-radius: 999px; cursor: pointer;
  font: inherit; font-family: var(--font-head); font-size: 11px; font-weight: 600; line-height: 1; color: oklch(0.5 0.05 330);
}
.sf-abc button:disabled { color: oklch(0.86 0.02 330); cursor: default; }
.sf-abc button:not(:disabled):hover { color: oklch(0.45 0.14 340); }
.sf-abc button.is-active { background: oklch(0.5 0.14 340); color: white; }
@media (max-width: 900px) {
  .sf-abc { position: static; float: none; flex-direction: row; flex-wrap: wrap; border-radius: 14px; padding: 4px 6px; margin: 0 0 12px; }
  .sf-abc button { width: 24px; height: 24px; }
}
/* 하단 합계 바 — 카드 수량과 같은 숫자를 cart.js 에서 읽어 말한다. */
.sf-cartbar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 16px -4px 0; padding: 10px 16px;
  background: white; border: 1px solid var(--border); border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 30px -18px oklch(0.4 0.1 330 / 0.6);
}
.sf-cartbar__sum { display: flex; flex-direction: column; }
.sf-cartbar__lines { font-size: 12px; color: var(--ink-soft); }
.sf-cartbar__total { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink-head); }
.sf-cartbar__note { font-size: 12px; color: var(--ink-soft); flex: 1; }
@media (prefers-reduced-motion: reduce) { .go-card:has(.go-card__qty.is-filled) { transition: none; } }
/* ── 20단계: 주문 라인의 예약특전·사은품 ──────────────────────────────────────
   `templates/_order_benefit.html` 이 그리는 두 줄. 값은 주문 시점에 얼린
   product_snapshot 이므로 캠페인이 바뀌어도 산 것을 계속 말한다.

   색은 체크아웃 라인(`.co-line__pob` / `.co-line__benefit`)과 같은 계열로 둔다 —
   같은 사실이 결제 화면과 주문 내역에서 다른 색이면 다른 것으로 읽힌다.
   특전 문자열은 "LUCKY DRAW — WEVERSE · 사인 앨범 응모" 처럼 길고 한국어가 섞여
   있어서, 375px 에서 단어 중간이 아니라 어절에서 접히도록 keep-all 을 준다. */
.order-line__pob,
.order-line__benefit {
  margin-top: 5px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.order-line__pob { background: oklch(0.96 0.035 300); color: oklch(0.44 0.11 300); font-weight: 600; }
/* 사은품 메모는 운영자 자유 텍스트이고 한 줄에 한 등급이다 — 그 줄바꿈을 지킨다. */
.order-line__benefit { background: oklch(0.96 0.04 90); color: oklch(0.45 0.09 70); white-space: pre-line; }
