/* ============================================================
   shop.css — the products index and product pages.
   Loaded after base.css (+ listing.css on the index).
   ============================================================ */

/* ---- Product cards on /products -------------------------- */

.product-card { padding: 0; overflow: hidden; }

.product-thumb {
  background: var(--bg);
  border-bottom: var(--border) solid var(--line);
  aspect-ratio: 4 / 3;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
  flex: 1;
}

.product-body .card-top { align-items: center; }

.price {
  font-family: var(--mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.card--wip .price { color: var(--ink-faint); }

/* ---- Product detail page --------------------------------- */

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: start;
}

.product-photo .frame { box-shadow: 10px 10px 0 var(--shadow); }
.product-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.product-detail h1 {
  font-size: var(--text-2xl);
  margin: var(--s3) 0 var(--s4);
}

.product-detail .summary {
  color: var(--ink-soft);
  font-size: var(--text-lg);
  margin-bottom: var(--s6);
}

/* ---- Buy ------------------------------------------------- */

.buy {
  padding: var(--s5);
  border: var(--border-thick) solid var(--line);
  background: var(--bg-raised);
  box-shadow: 6px 6px 0 var(--shadow);
  margin-bottom: var(--s6);
}

/* Full width, unmissable. This is the one thing the page is for. */
.btn--buy {
  display: block;
  width: 100%;
  text-align: center;
  font-size: var(--text-base);
  padding: var(--s4);
}

.btn--disabled {
  display: block;
  width: 100%;
  text-align: center;
  font-size: var(--text-base);
  padding: var(--s4);
  border-style: dashed;
  border-color: var(--line-soft);
  color: var(--ink-faint);
  cursor: not-allowed;
}

.buy-note {
  font-family: var(--mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-align: center;
  margin-top: var(--s3);
  line-height: 1.5;
}

/* ---- Spec list ------------------------------------------- */

.product-specs {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.product-specs > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-soft);
}

.product-specs dt {
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding-top: 2px;
}

.product-specs dd {
  font-size: 0.9375rem;
  color: var(--ink);
}

@media (max-width: 700px) {
  .product { grid-template-columns: 1fr; gap: var(--s6); }
  .product-specs > div { grid-template-columns: 6rem 1fr; }
}
