/* ============================================================
   NodeSupply — store pages
   Extends styles.css. Same tokens, same datasheet language:
   dashed rules for spec breaks, port-jack LEDs for status,
   mono for anything a machine would have printed.
   ============================================================ */

/* ---------- header additions ---------- */

.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: -7px; right: -11px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--port);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 18px;
  text-align: center;
}

/* ---------- shared page frame ---------- */

.page { padding: 56px 0 80px; }
.page-head { max-width: 62ch; margin-bottom: 36px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 12px; }
.page-head p { color: var(--ink-soft); font-size: 1.05rem; }

.backlink {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
}
.backlink:hover { color: var(--cable); }

/* ---------- bundle detail ---------- */

.bundle-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.bundle-main h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 10px; }
.bundle-tagline { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 20px; }

.spec-strip {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cable);
  background: color-mix(in srgb, var(--cable) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--cable) 22%, transparent);
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-block;
  margin-bottom: 28px;
}

.whats-inside { margin-bottom: 32px; }
.whats-inside h2 { font-size: 1.25rem; margin-bottom: 14px; }

.component-table { width: 100%; border-collapse: collapse; }
.component-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.component-table th:last-child, .component-table td:last-child { text-align: right; }
.component-table td {
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.97rem;
}
.component-table tr:last-child td { border-bottom: none; }
.qty-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 9px;
}

.plan-callout {
  background: var(--chassis);
  color: #E8EEF4;
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 32px;
}
.plan-callout h3 { font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
.plan-callout p { color: #A8BACB; font-size: 0.95rem; }

/* ---------- buy panel ---------- */

.buy-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 88px;
}

.buy-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
}
.buy-compare {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 8px;
}
.buy-compare s { opacity: 0.75; }
.buy-saves { color: var(--led); font-weight: 600; }

.avail {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.avail-led {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink-soft);
  flex: none;
}
.avail-led.in { background: var(--led); }
.avail-led.soon { background: var(--led-amber); }

.buy-panel .btn { width: 100%; text-align: center; margin-bottom: 10px; }
.buy-note { font-size: 0.82rem; color: var(--ink-soft); text-align: center; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.qty-row label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.qty-row input {
  width: 68px;
  padding: 9px 10px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

/* ---------- cart ---------- */

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-row:last-of-type { border-bottom: 1px solid var(--line); }
.cart-row h3 { font-size: 1.05rem; }
.cart-row .unit { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); }
.cart-row input {
  width: 64px;
  padding: 7px 9px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.cart-line-total { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; min-width: 84px; text-align: right; }
.link-btn {
  background: none; border: none; padding: 0;
  color: var(--ink-soft); font-size: 0.82rem;
  text-decoration: underline; cursor: pointer;
  font-family: var(--font-body);
}
.link-btn:hover { color: var(--red, #C4442E); }

.cart-summary {
  margin-top: 26px;
  display: flex;
  justify-content: flex-end;
}
.cart-summary-inner { width: min(360px, 100%); }
.sum-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.sum-row.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}

.empty-state {
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state p { color: var(--ink-soft); margin-bottom: 20px; }

.notice {
  background: #FDF3E7;
  border: 1px solid var(--port);
  color: #8A4A12;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ---------- about ---------- */

.prose { max-width: 68ch; }
.prose p { margin-bottom: 18px; color: var(--ink-soft); font-size: 1.03rem; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 12px; color: var(--ink); }
.prose strong { color: var(--ink); }

.contact-methods { display: grid; gap: 16px; max-width: 520px; margin-top: 8px; }
.contact-method {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.contact-method h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-method p { color: var(--ink-soft); font-size: 0.93rem; }
.contact-method a { font-family: var(--font-mono); font-size: 0.95rem; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .bundle-layout { grid-template-columns: 1fr; gap: 32px; }
  .buy-panel { position: static; }
  .cart-row { grid-template-columns: 1fr auto; row-gap: 10px; }
  .cart-line-total { grid-column: 2; }
}
