/* /css/views/shop.css
   Hardware Shop: a compact title band above the product gallery. The catalog
   is small on purpose, so there is no search or filter chrome. */

.shop { padding: 28px 26px 32px; margin-top: 10px; }

/* ---- Compact header ---- */
/* software.view.html and checkout.view.html use <header class="shop-head">, and a
   global `header { position: fixed }` (the site nav) would rip it out of flow and
   float it over the cards. Force it back into normal flow. */
.shop-head { position: static; margin-bottom: 20px; }
.shop-kicker {
  display: inline-block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand-600, #21bca5); font-weight: 800;
}
.shop-title {
  margin: .25em 0 .35em; font-weight: 850; font-size: 1.9rem; line-height: 1.15;
  background: linear-gradient(130deg, #fff 8%, var(--brand-600, #21bca5) 54%, var(--brand-purp, #a200ff) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shop-sub { margin: 0; color: var(--muted, #c6d0f0a6); max-width: 68ch; line-height: 1.55; }

/* ---- Gallery grid ---- */
.shop-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* ---- Card ---- */
.pcard {
  position: relative; display: block; border-radius: var(--radius-card); overflow: hidden;
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow-rest);
  transition: transform var(--card-ease), box-shadow var(--card-ease), border-color var(--card-ease);
}
.pcard:hover {
  /* overflow:hidden clips a hover-retention strip, so this lift keeps the
     bottom edge planted (translate up + slight grow) — no vacated band, no
     edge flicker */
  transform: translateY(-2px) scale(1.01);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.pcard-hit {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: block; width: 100%; text-align: left;
  color: inherit; font: inherit;
}
.pcard-hit:focus-visible { outline: 2px solid var(--brand-600, #21bca5); outline-offset: -2px; border-radius: var(--radius-card); }

.pcard-media {
  position: relative; aspect-ratio: 4 / 3;
  background: #05070d;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, .10));
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pcard-img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 320ms cubic-bezier(.22,.61,.36,1);
}
.pcard:hover .pcard-img { transform: scale(1.04); }

/* Status pills — same monospace treatment as software .sw-access (radius 8px) */
.pcard-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font: 700 .6rem/1 ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .14); color: var(--ink, #dcdbf0e1);
  background: rgba(5, 7, 13, .55);
}

/* Availability chips (used on hardware pcards) */
.chip {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font: 700 .6rem/1 ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .14); color: var(--ink, #dcdbf0e1);
  background: rgba(5, 7, 13, .55);
}
.chip-avail { color: #7fe9cf; border-color: rgba(56, 255, 179, .4); }
.chip-pre   { color: #ffcc7a; border-color: rgba(255, 178, 61, .42); }
.chip-soon  { color: var(--muted, #c6d0f0a6); border-color: rgba(255, 255, 255, .18); }

.pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.pcard-name {
  margin: 0; font-size: 1.2rem; font-weight: 850; letter-spacing: -.01em;
  color: var(--card-title);
}
.pcard-tag { margin: 0; color: var(--ink, #dcdbf0e1); font-weight: 600; font-size: .95rem; }
.pcard-sub { margin: 4px 0 0; color: var(--muted, #c6d0f0a6); font-size: .88rem; line-height: 1.5; }

.pcard-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border, rgba(255, 255, 255, .08));
}
.pcard-price {
  font-weight: 850; font-size: 1rem;
  color: var(--brand-600, #21bca5);
}
.pcard-cta { color: var(--brand-600, #21bca5); font-weight: 700; font-size: .88rem; }
.pcard:hover .pcard-cta { color: #fff; }

/* ---- Roadmap teaser ---- */
.shop-roadmap {
  margin-top: 24px; padding: 16px 18px; border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .02);
}
.shop-roadmap h3 {
  margin: 0 0 4px; font-size: 1rem; font-weight: 800;
  background: linear-gradient(120deg, var(--brand-600, #21bca5), #bf7dff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shop-roadmap p { margin: 0; line-height: 1.5; }

/* ---- Responsive ---- */
@media (max-width: 620px) {
  .shop { padding: 22px 16px 26px; }
  .shop-title { font-size: 1.5rem; }
  .shop-gallery { grid-template-columns: 1fr; gap: 14px; }
}
