/* AikiShop (pages/ecommerce.html) — product grid built by scripts/build_shop.py.
   Site tokens from custom.css :root; logo red is the single accent (D20). */
.shop-intro { max-width: 68ch; color: #4d5965; margin: 0 0 1.5rem; }
.shop-cat { margin-bottom: 2rem; }
.shop-cat-title { font-size: 1.2rem; font-weight: 700; color: var(--charcoal-deep, #23303c); margin: 0 0 0.9rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }
.shop-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e7eaee; border-radius: var(--radius-card, 14px);
  overflow: hidden; box-shadow: var(--site-shadow, 0 1px 4px rgba(130, 143, 163, 0.15));
}
/* square photo box: the image is absolutely fitted inside, so tall photos can't stretch the card */
.shop-media { position: relative; aspect-ratio: 1 / 1; background: #f4f6f8; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.shop-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.shop-noimg { font-size: 3rem; color: #c3cbd3; }
.shop-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.9rem 1rem 1rem; flex: 1; }
.shop-name { font-size: 1.02rem; font-weight: 700; color: var(--charcoal-deep, #23303c); margin: 0; }
.shop-detail { font-size: 0.88rem; color: #5d6b78; margin: 0; }
.shop-price { font-size: 1.15rem; font-weight: 700; color: var(--charcoal-deep, #23303c); margin: 0.1rem 0 0; font-variant-numeric: tabular-nums; }
.shop-variants { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.shop-variant {
  font: inherit; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill, 999px);
  border: 1px solid #d5dae0; background: #fff; color: #3a4652; cursor: pointer;
}
.shop-variant[aria-pressed="true"] { border-color: var(--brand-red, #ed5565); color: var(--brand-red-deep, #c93a49); font-weight: 600; }
.shop-low { font-size: 0.8rem; color: var(--brand-red-deep, #c93a49); margin: 0; }
.shop-order { margin-top: auto; align-self: stretch; }
.shop-order .fa { margin-right: 0.35rem; }
.shop-updated { font-size: 0.82rem; color: #68737e; }
.shop-variant:focus-visible, .shop-order:focus-visible { outline: 2px solid var(--brand-red-deep, #c93a49); outline-offset: 2px; }
@media (max-width: 575.98px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; } .shop-body { padding: 0.7rem; } }

/* 2026-11-05 (Roberto: "everything on this page seems to be justified left"):
   centre the shop like the rest of the site — intro, category headings with the
   red rule, and rows of cards that centre when a category has fewer than four. */
.shop { max-width: 1100px; margin: 0 auto; }
.shop-intro { max-width: 38rem; margin: 0.25rem auto 2.25rem; text-align: center; line-height: 1.65; }
.shop-cat { margin-bottom: 2.75rem; }
.shop-cat-title { text-align: center; font-size: clamp(1.2rem, 1vw + 0.9rem, 1.45rem); font-weight: 600; margin: 0 0 1.2rem; }
.shop-cat-title::before {
  content: ""; display: block; width: 36px; height: 3px; border-radius: 2px;
  background: var(--brand-red, #ed5565); margin: 0 auto 0.7rem;
}
.shop-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.shop-card { flex: 0 1 14.25rem; }
.shop-updated { text-align: center; }
@media (max-width: 575.98px) {
  .shop-grid { gap: 0.6rem; }
  .shop-card { flex-basis: calc(50% - 0.3rem); }
}
