/* Refinement layer (v6): shop content on top of the v5 black / red / yellow look. Loaded last. */

/* ---------- Header ---------- */
.announcement a .icon { width: 15px; height: 15px; }
.navigation .shop-status { display: inline-flex; align-items: center; gap: 8px; color: #bbb; font-size: 13px; }
.shop-status i { width: 7px; height: 7px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 3px #3ecf6e26; }
.nav-tag { font-family: 'Space Mono', monospace; }

/* ---------- Hero ---------- */
.hero-eyebrow { color: #bdbdbd; }
.hero h2 { color: #fff; font-weight: 600; letter-spacing: 0; }
.hero-facts { display: flex; gap: 36px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid #ffffff21; max-width: 520px; }
.hero-facts dt { font: 700 20px/1.2 'Space Mono', monospace; color: #fff; }
.hero-facts dd { margin: 4px 0 0; font-size: 13px; color: #a8a8a8; }
.hero-card-price { font: 700 24px/1 'Space Mono', monospace; color: #ffcf00; letter-spacing: -.02em; }
.hero-card-caption small { font-size: 12px; }
.slab-label { justify-content: space-between; }
.scroll-cue { color: #bbb; font-size: 13px; }

/* ---------- Section headings: note under the title instead of an eyebrow above it ---------- */
.heading-note { display: block; margin-top: 8px; font-size: 14px; color: #aaa; }
.section-heading > .text-link { font-size: 14px; }
.section-heading > .text-link .icon { width: 17px; height: 17px; }

/* ---------- Collection ---------- */
.sort-select { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #aaa; }
.sort-select select {
  height: 36px; padding: 0 32px 0 12px; border: 1px solid #ffffff33; border-radius: 3px; background: #1b1b1b; color: #fff; font: inherit; font-size: 13px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 10px;
}
.sort-select select:hover, .sort-select select:focus-visible { border-color: #ffcf00; }
.product-tag, .product-card:first-child .product-tag { font-family: 'Space Mono', monospace; }
.product-code { font-family: 'Space Mono', monospace; }
.product-price { font-family: 'Space Mono', monospace; letter-spacing: -.03em; }
.product-price small { display: block; margin: 4px 0 0; font-family: 'Noto Sans Thai', sans-serif; letter-spacing: 0; font-size: 12px; font-weight: 500; }
.product-price small.stock-low { color: #ff766e; }
.product-bottom { align-items: flex-end; }

/* ---------- Buyback (red panel) + pack (side panel) ---------- */
.buy-first h3 { max-width: 420px; }
.buy-steps { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 520px; counter-reset: step; }
.buy-steps li { counter-increment: step; padding-top: 12px; border-top: 2px solid #ffffff73; font-size: 13px; line-height: 1.55; color: #ffe1de; }
.buy-steps li::before { content: counter(step); display: block; font: 700 13px 'Space Mono', monospace; color: #111; margin-bottom: 4px; }
.buy-steps b { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.buy-first .pack-back { border-radius: 8px; box-shadow: 0 18px 30px #7f160966; }
.pack-side { display: flex; flex-direction: column; align-items: flex-start; }
.pack-side p { max-width: 220px; }
.pack-side .text-link { font-size: 15px; font-weight: 600; margin-top: auto; }
.side-pack { position: absolute; right: -8px; bottom: -34px; width: 170px; height: 230px; pointer-events: none; }
.side-pack img { position: absolute; width: 120px; border-radius: 7px; box-shadow: 0 14px 26px #000a; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.side-pack img:first-child { right: 52px; bottom: 34px; transform: rotate(-14deg); }
.side-pack img:last-child { right: 14px; bottom: 18px; transform: rotate(7deg); }
.pack-side:hover .side-pack img:first-child { transform: rotate(-20deg) translate(-8px, -8px); }
.pack-side:hover .side-pack img:last-child { transform: rotate(11deg) translateY(-12px); }

/* ---------- Events ---------- */
.events-section { padding-top: 83px; }
.event-list { border-top: 1px solid #ffffff2b; }
.event-row { display: grid; grid-template-columns: 170px 120px minmax(0, 1fr) 80px 150px 96px; align-items: center; gap: 16px; min-height: 72px; border-bottom: 1px solid #ffffff2b; font-size: 15px; transition: background .2s; }
.event-row:hover { background: #ffffff06; }
.event-row time { font: 13px 'Space Mono', monospace; color: #aaa; }
.event-row time b { font: 700 17px 'Noto Sans Thai', sans-serif; color: #fff; margin-right: 2px; }
.event-game { font-weight: 700; }
.event-name { color: #c9c9c9; }
.event-fee { font: 700 15px 'Space Mono', monospace; color: #ffcf00; }
.event-seats { display: flex; align-items: center; gap: 10px; font: 12px 'Space Mono', monospace; color: #aaa; }
.event-seats i { position: relative; flex: 1; max-width: 80px; height: 4px; border-radius: 2px; background: #333; overflow: hidden; }
.event-seats i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--fill) * 100%); background: #fff; }
.event-seats.is-full i::after { background: #ff362b; }
.event-seats.is-full { color: #ff766e; }
.event-book { justify-self: end; height: 36px; padding: 0 18px; border: 1px solid #ffffff4d; border-radius: 3px; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.event-book:hover { background: #ffcf00; border-color: #ffcf00; color: #111; }

/* ---------- Condition grades (reuses the guide row) ---------- */
.grade-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grade-grid .guide-number { font-family: 'Space Mono', monospace; font-weight: 700; letter-spacing: -.04em; min-width: 52px; }
.grade-grid .guide-item h3 { font-size: 16px; }

/* ---------- Contact banner ---------- */
.collector-banner h2 { font-size: clamp(44px, 6.4vw, 92px); letter-spacing: -2px; line-height: 1.3; }
.collector-banner p { line-height: 1.9; }
.collector-banner .button .icon { width: 19px; height: 19px; }
.collector-banner:after { display: none; }

/* ---------- Footer + dialogs ---------- */
.footer-signoff { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.footer-signoff strong { font: 700 22px/1.5 'Space Mono', monospace; color: #ffcf00; }
.detail-spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 14px 0 18px; font-size: 14px; }
.detail-spec dt { color: #999; }
.detail-spec dd { margin: 0; font-family: 'Space Mono', monospace; font-size: 13px; color: #fff; }
.detail-price, .cart-summary strong, .order-total { font-family: 'Space Mono', monospace; letter-spacing: -.03em; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .navigation .shop-status { font-size: 12px; }
  .event-row { grid-template-columns: 150px 110px minmax(0, 1fr) 70px 130px 88px; font-size: 14px; }
  .grade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-grid .guide-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .grade-grid .guide-item:nth-child(n+3) { border-top: 1px solid #ffffff2b; }
}
@media (max-width: 900px) {
  .hero-facts { gap: 22px; }
  .hero-facts dt { font-size: 17px; }
  .buy-steps { grid-template-columns: 1fr; gap: 10px; max-width: 260px; }
  .hero-card-price { font-size: 20px; }
}
@media (max-width: 680px) {
  .navigation .shop-status { margin-left: 0; padding: 11px 0; }
  .hero-facts { margin-top: 26px; gap: 18px; }
  .hero-facts dt { font-size: 15px; }
  .hero-facts dd { font-size: 11px; }
  .heading-note { font-size: 13px; margin-top: 4px; }
  .collection-toolbar { flex-wrap: wrap; }
  .product-price small { font-size: 11px; }
  .buy-first .pack-art { opacity: .35; }
  .pack-side { min-height: 300px; }
  .events-section { padding-top: 46px; }
  .event-row { grid-template-columns: 1fr auto; grid-template-areas: 'time fee' 'game book' 'name book' 'seats seats'; gap: 2px 12px; padding: 16px 0; }
  .event-row time { grid-area: time; }
  .event-game { grid-area: game; font-size: 17px; }
  .event-name { grid-area: name; font-size: 14px; }
  .event-fee { grid-area: fee; text-align: right; }
  .event-seats { grid-area: seats; margin-top: 8px; }
  .event-book { grid-area: book; }
  .grade-grid { grid-template-columns: 1fr; }
  .grade-grid .guide-item, .grade-grid .guide-item + .guide-item { padding-left: 0; border-left: 0; }
  .grade-grid .guide-item + .guide-item { border-top: 1px solid #ffffff2b; }
  .section-heading { flex-wrap: wrap; }
  .collector-banner h2 { font-size: 10.4vw; letter-spacing: -1px; }
  .collector-banner > div { flex-direction: column; align-items: flex-start; gap: 20px; }
  .collector-banner p { font-size: 13px; }
}

/* ---------- Fixes after visual check ---------- */
.nw { white-space: nowrap; }
.buy-first .pack-copy { max-width: 56%; }
.buy-first .buy-steps { max-width: none; }
.pack-side p { position: relative; z-index: 2; }
.grade-grid .guide-item h3 { margin-bottom: 2px; }
.grade-price { display: block !important; margin-bottom: 8px; font: 700 13px 'Space Mono', monospace; color: #ffcf00 !important; }
.grade-grid .guide-number { font-family: 'Noto Sans Thai', sans-serif; font-weight: 800; }
.event-row time { font-family: 'Noto Sans Thai', sans-serif; }
@media (max-width: 900px) {
  .buy-first .pack-copy { max-width: 64%; }
}
@media (max-width: 680px) {
  .buy-first .pack-copy { max-width: none; }
  .buy-first h3 { font-size: 28px; }
  .pack-side p { max-width: 170px; }
}
.collector-banner h2 span { text-shadow: none; }
.grade-price { font-family: 'Noto Sans Thai', sans-serif; }
/* Buyback cards: show whole cards, corners included (base .pack-art clips its overflow). */
.buy-first .pack-art { overflow: visible; width: 40%; }
.buy-first .back-one { left: 34px; }
.buy-first .back-two { left: 136px; }
