/* 7TT Labs: Esports PCs page.
   Loads after /assets/site.css and only adds what the shop needs
   (product cards, FPS chart, cart). Same "Blackout" tokens as the rest of the site. */

:root {
  /* chart series, validated on --carbon #0a0f15: lightness, chroma, CVD and contrast all pass */
  --s1: #c46b9e; --s2: #2b9fd9; --s3: #b98a3a;
}

/* ---------- header cart button ---------- */
.cart-btn {
  --cut: 8px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
  background: var(--carbon-2); color: var(--white); border: 0; box-shadow: inset 0 0 0 1px var(--line-2);
  font: inherit; font-weight: 700; font-variation-settings: "wdth" 112; cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.cart-btn:hover { box-shadow: inset 0 0 0 1px var(--ice); }
.cart-btn .count { min-width: 22px; height: 22px; padding: 0 6px; background: var(--ice); color: var(--black); font-size: 0.8rem; font-weight: 800; display: inline-grid; place-items: center; }

/* ---------- hero image: the walnut Champion ---------- */
.shop-hero .hero-media img { object-position: 60% 45%; }

/* ---------- product cards ---------- */
.rigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.rig { position: relative; display: flex; flex-direction: column; background: var(--carbon); box-shadow: inset 0 0 0 1px var(--line); }
.rig.featured { box-shadow: inset 0 0 0 2px var(--ice), 0 0 50px rgba(60, 200, 255, 0.12); }
.rig .flag { position: absolute; top: 0; right: 0; z-index: 2; background: var(--ice); color: var(--black); font-weight: 800; font-variation-settings: "wdth" 115; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 14px; }
.rig .shot { position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.rig .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.rig:hover .shot img { transform: scale(1.03); }
.rig .shot figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 0.78rem; color: rgba(238, 244, 250, 0.75); text-shadow: 0 1px 6px #000; }
.rig .body { display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 24px; flex: 1; }
.rig .tier { color: var(--ice); font-weight: 700; font-size: 0.88rem; }
.rig h3 { font-variation-settings: var(--wide); font-weight: 900; text-transform: uppercase; font-size: 2rem; line-height: 1; margin-top: 4px; }
.rig .for { margin: 0; color: #b9c6d6; }
.rig .price-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rig .amount { font-variation-settings: var(--wide); font-weight: 900; font-size: 2.4rem; line-height: 1; color: var(--ice); }
.rig .ship-note { font-size: 0.85rem; color: var(--steel); text-align: right; line-height: 1.35; }

.fps-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.fps-chips div { background: var(--carbon-2); padding: 10px 8px; text-align: center; }
.fps-chips b { display: block; font-variation-settings: var(--wide); font-weight: 850; font-size: 1.4rem; line-height: 1.1; }
.fps-chips span { font-size: 0.78rem; color: var(--steel); }

.specs { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.specs li { display: grid; grid-template-columns: 74px 1fr; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.specs li:last-child { border-bottom: 0; }
.specs .k { font-size: 0.8rem; font-weight: 700; color: var(--steel); text-transform: uppercase; letter-spacing: 0.06em; }
.specs .cond { grid-column: 2; justify-self: start; font-size: 0.74rem; font-weight: 650; padding: 1px 8px; color: var(--steel); box-shadow: inset 0 0 0 1px var(--line-2); }
.specs .cond.new { color: var(--ice); box-shadow: inset 0 0 0 1px rgba(60, 200, 255, 0.45); }

.opts { display: grid; gap: 8px; }
.opts legend { font-size: 0.8rem; font-weight: 700; color: var(--steel); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.opt { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; min-height: 46px; padding: 8px 12px; background: var(--carbon-2); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; color: #c4d0de; font-size: 0.95rem; }
.opt:hover { box-shadow: inset 0 0 0 1px var(--steel); }
.opt:has(input:checked) { background: rgba(60, 200, 255, 0.1); box-shadow: inset 0 0 0 2px var(--ice); color: var(--white); }
.opt input { accent-color: var(--ice); width: 16px; height: 16px; margin: 0; }
.opt .add { color: var(--ice); font-weight: 700; white-space: nowrap; }
.opt small { display: block; color: var(--ice); font-size: 0.8rem; font-weight: 650; }
.rig .buy { margin-top: auto; display: grid; gap: 8px; }
.rig .buy .btn { width: 100%; }
.rig .buy .added { font-size: 0.88rem; color: var(--ice); text-align: center; min-height: 1.4em; }

.rigs + .promise { margin-top: 20px; max-width: none; }

.rig .flag-out { background: var(--steel); color: var(--black); }
.rig.sold-out .shot img { filter: grayscale(0.6) brightness(0.7); }
.rig.sold-out .amount { color: var(--steel); }
.rig.sold-out .opt { opacity: 0.55; cursor: not-allowed; }

/* ---------- why the Pro: same message as the eBay image ---------- */
.section-head .kicker-ice, .kicker-ice { margin: 0 0 14px; color: var(--ice); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.22em; text-transform: uppercase; }
#pro-why .section-head .lede { max-width: 64ch; }
.why-build { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr); gap: 12px; align-items: start; }
.why-shot { position: sticky; top: 86px; margin: 0; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--line-2); }
.why-shot img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.why-shot figcaption { position: absolute; left: 0; right: 0; top: 0; padding: 18px 20px 50px; background: linear-gradient(rgba(0,0,0,0.85), transparent); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.why-shot figcaption b { font-variation-settings: var(--wide); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; }
.why-shot figcaption span { color: var(--ice); font-weight: 800; font-size: 1.4rem; }
.why-shot figcaption s { color: var(--steel); font-weight: 500; font-size: 1rem; margin-right: 4px; }
.why-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why-parts li { display: grid; grid-template-columns: 1fr 170px; gap: 8px 24px; padding: 22px 24px; background: linear-gradient(160deg, rgba(60, 200, 255, 0.07), var(--carbon) 45%); box-shadow: inset 0 0 0 1px var(--line-2); }
.why-parts .k { grid-column: 1 / -1; color: var(--ice); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.why-parts h3 { grid-column: 1; font-variation-settings: var(--wide); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; }
.why-parts p { grid-column: 1; margin: 0; color: #c4d0de; max-width: 64ch; }
.why-parts .vs { padding: 10px 14px; background: rgba(60, 200, 255, 0.07); box-shadow: inset 3px 0 0 var(--ice); }
.why-parts .vs .no { color: var(--steel); font-weight: 700; }
.why-parts .vs b { color: var(--ice); }
.why-parts .proof { grid-column: 2; grid-row: 2 / span 3; align-self: center; text-align: center; padding: 14px 8px; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(0, 0, 0, 0.35); color: var(--steel); font-size: 0.82rem; font-weight: 650; line-height: 1.3; }
.why-parts .proof b { display: block; margin-bottom: 4px; font-variation-settings: var(--wide); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--ice); text-shadow: 0 0 20px var(--glow); }
.easy-strip { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--carbon); }
.easy-strip li { padding: 18px 20px; }
.easy-strip li + li { box-shadow: inset 1px 0 0 var(--line-2); }
.easy-strip b { display: block; font-variation-settings: "wdth" 115; font-weight: 850; text-transform: uppercase; font-size: 1.05rem; }
.easy-strip li:first-child b { color: var(--ice); }
.easy-strip span { display: block; margin-top: 4px; color: var(--steel); font-size: 0.92rem; }
.rig .for a { white-space: nowrap; font-weight: 650; }
.rig .was { display: block; color: var(--steel); font-weight: 500; font-size: 1.05rem; margin-bottom: 2px; }
.promo-tag { justify-self: start; align-self: start; background: var(--ice); color: var(--black); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; margin-bottom: -6px; }
@media (max-width: 900px) {
  .why-build { grid-template-columns: 1fr; }
  .why-shot { position: relative; top: 0; max-width: 460px; }
  .why-parts li { grid-template-columns: 1fr; }
  .why-parts .proof { grid-column: 1; grid-row: auto; justify-self: start; padding: 10px 18px; }
  .easy-strip { grid-template-columns: 1fr 1fr; }
  .easy-strip li:nth-child(3) { box-shadow: none; }
  .easy-strip li:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}

/* ---------- landing page pieces ---------- */
.shop-hero .kicker-ice { margin-bottom: 18px; }
.shop-hero .hero-media img { object-position: 50% 50%; }
.risk-line { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #c4d0de; font-weight: 600; font-size: 0.95rem; }
.risk-line li { display: inline-flex; align-items: center; gap: 8px; }
.risk-line li::before { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--ice); border-bottom: 2px solid var(--ice); transform: rotate(-45deg) translateY(-2px); }
.plate dd s { color: var(--steel); font-weight: 500; margin-right: 6px; }

.pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pains li { padding: 26px; background: var(--carbon); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.pains .pain { color: var(--steel); font-style: italic; font-size: 1.05rem; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.pains h3 { color: var(--ice); text-transform: uppercase; font-variation-settings: var(--wide); font-weight: 900; font-size: 1.3rem; }
.pains p { margin: 0; color: #c4d0de; }

.customize { border-top: 1px solid var(--line); padding-top: 12px; }
.customize > summary { cursor: pointer; list-style: none; font-weight: 700; font-variation-settings: "wdth" 112; color: var(--ice); }
.customize > summary::-webkit-details-marker { display: none; }
.customize > summary::before { content: "+"; display: inline-block; width: 1.1em; font-weight: 800; }
.customize[open] > summary::before { content: "\2212"; }
.customize > .specs, .customize > .opts { margin-top: 14px; }

.stack-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stack-grid li { padding: 22px; background: var(--carbon); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; }
.stack-grid .val { color: var(--ice); font-weight: 800; font-size: 0.9rem; }
.stack-grid h3 { font-size: 1.1rem; }
.stack-grid p { margin: 0; color: var(--steel); font-size: 0.95rem; }
.stack-total { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; background: var(--carbon-2); box-shadow: inset 0 0 0 1px var(--ice); font-size: 1.15rem; }
.stack-total b { color: var(--white); font-variation-settings: var(--wide); font-weight: 900; font-size: 1.6rem; margin-left: 8px; }
.stack-total .free { color: var(--ice); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 115; }
@media (max-width: 1060px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stack-grid { grid-template-columns: 1fr; } }

/* ---------- how we spec ---------- */
.spec-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec-why > div { background: var(--carbon); box-shadow: inset 0 0 0 1px var(--line); padding: 26px; }
.spec-why .n { font-variation-settings: var(--wide); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--ice); }
.spec-why h3 { margin: 12px 0 10px; text-transform: uppercase; font-variation-settings: var(--wide); font-weight: 850; }
.spec-why p { margin: 0; color: #c4d0de; }

/* ---------- FPS chart ---------- */
.chart { background: var(--carbon); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(18px, 3vw, 34px); }
.chart-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.chart-title { font-weight: 750; font-variation-settings: "wdth" 112; font-size: 1.1rem; margin: 0; }
.chart-sub { margin: 2px 0 0; color: var(--steel); font-size: 0.92rem; }
.seg { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button { background: none; border: 0; color: var(--steel); font: inherit; font-weight: 700; font-variation-settings: "wdth" 112; font-size: 0.92rem; padding: 0 16px; min-height: 44px; cursor: pointer; }
.seg button + button { box-shadow: inset 1px 0 0 var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--ice); color: var(--black); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 0.92rem; color: #c4d0de; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; }
#fpsChart { width: 100%; height: auto; overflow: visible; }
#fpsChart text { font-family: "Saira", sans-serif; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--carbon-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px rgba(0, 0, 0, 0.5); padding: 10px 12px; font-size: 0.88rem; line-height: 1.4; min-width: 200px; max-width: 300px; opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s; }
.tip.on { opacity: 1; transform: none; }
.tip b { display: block; margin-bottom: 2px; }
.tip .src { color: var(--steel); font-size: 0.8rem; margin-top: 4px; }
.chart-foot { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.chart-foot p { margin: 0; color: var(--steel); font-size: 0.88rem; max-width: 80ch; }
.linkish { background: none; border: 0; padding: 0; color: var(--white); font: inherit; font-size: 0.92rem; font-weight: 650; text-decoration: underline; text-decoration-color: var(--ice); text-underline-offset: 0.25em; cursor: pointer; }
.linkish:hover { color: var(--ice); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 16px; }
.data-table th, .data-table td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th { font-weight: 650; color: var(--steel); }

/* ---------- compare: wider than the home-page version ---------- */
table.compare.rig-compare { min-width: 720px; }
table.compare.rig-compare tbody th { width: 150px; color: var(--steel); }
table.compare.rig-compare thead th small { display: block; font-weight: 650; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--line); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:not(:first-child) img { height: auto; aspect-ratio: 1; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); font-size: 0.9rem; color: #c4d0de; }
.gallery + .steps { margin-top: 48px; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 700; font-variation-settings: "wdth" 110; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--ice); font-size: 1.6rem; font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: #c4d0de; margin: 0 0 22px; }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.65); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--carbon); box-shadow: inset 1px 0 0 var(--line-2); transform: translateX(100%); transition: transform 0.3s ease, visibility 0.3s; display: flex; flex-direction: column; visibility: hidden; }
body.cart-open .scrim { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; visibility: visible; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 1.6rem; }
.drawer .x { background: none; border: 0; color: var(--steel); font-size: 1.8rem; cursor: pointer; width: 44px; height: 44px; }
.drawer .x:hover { color: var(--white); }
.drawer .lines { flex: 1; overflow: auto; padding: 4px 24px; }
.line { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.line b { font-weight: 750; }
.line .meta { grid-column: 1 / -1; color: var(--steel); font-size: 0.88rem; }
.line .rm { grid-column: 1 / -1; justify-self: start; font-size: 0.85rem; }
.drawer footer { padding: 20px 24px 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer .sum { display: flex; justify-content: space-between; color: #c4d0de; }
.drawer .sum.total { color: var(--white); font-weight: 800; font-size: 1.25rem; }
.drawer .empty { color: var(--steel); padding: 30px 0; }
.drawer footer .btn { width: 100%; }
.checkout-msg { font-size: 0.9rem; color: var(--ice); min-height: 1.3em; text-align: center; margin: 0; max-width: none; }

@media (prefers-reduced-motion: reduce) { .drawer, .scrim, .rig .shot img { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .rigs { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .spec-why { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
}
