/* ==========================================================================
   Technology store — apps and source code from Royalty OS, item pages.
   ========================================================================== */

.store-section .section-head { max-width: 760px; margin-bottom: var(--space-10); }
.store-section .section-head p:last-child { color: var(--text-muted); }
#equipment .section-head { max-width: 760px; margin-bottom: var(--space-10); }
.page-section h3 { margin-bottom: var(--space-3); font-size: var(--fs-h3); }

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.store-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); }
.store-card--app { padding: var(--space-6); gap: var(--space-4); }
.store-card--app > p { color: var(--text-muted); font-size: var(--fs-sm); }
.store-card__head { display: flex; align-items: center; gap: var(--space-4); }
.store-card__head h3 { font-size: var(--fs-h4, 1.15rem); margin: 0; }
.store-card__icon { flex: none; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 1px solid var(--border); background: var(--surface-subtle); }
.store-card__icon--blank { display: grid; place-items: center; color: var(--brand-on-light); }
.store-card__meta { margin: 2px 0 0; color: var(--text-subtle); font-size: var(--fs-xs); }
.store-card__action { margin-top: auto; align-self: flex-start; }

.store-card__cover { position: relative; aspect-ratio: 16 / 10; background: var(--ink-900); }
.store-card__cover img, .store-card__cover .project-cover { width: 100%; height: 100%; object-fit: cover; }
.store-card__body { display: flex; flex: 1; flex-direction: column; padding: var(--space-6); }
.store-card__body h3 { margin: 0 0 var(--space-3); font-size: var(--fs-h3); }
.store-card__body h3 a { color: inherit; text-decoration: none; }
.store-card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.store-card--item:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.store-card__body > p { color: var(--text-muted); font-size: var(--fs-sm); }
.store-card__price { margin-top: auto; padding-top: var(--space-4); font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: var(--space-3); }
.store-card__price span { color: var(--text-subtle); font-weight: 500; font-family: var(--font-mono), monospace; font-size: var(--fs-xs); }

/* Item page */
.item-price { font-family: var(--font-display, inherit); font-size: var(--fs-h3); font-weight: 700; margin: 0; }
.item-price small { display: block; margin-top: 4px; color: var(--text-muted); font-size: var(--fs-xs); font-weight: 500; }
.item-note { margin: 0; color: var(--text-muted); font-size: var(--fs-xs); line-height: var(--lh-snug); }
.item-features { display: grid; gap: var(--space-2); margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.item-features li { display: flex; gap: var(--space-2); align-items: flex-start; }
.item-features li .icon { flex: none; margin-top: 3px; color: var(--brand-on-light); }
.item-block { margin-top: var(--space-8); }
.item-block h2 { font-size: var(--fs-h4, 1.2rem); margin-bottom: var(--space-3); }
.item-block p { color: var(--text-muted); line-height: 1.7; white-space: pre-line; }

@media (max-width: 1080px) { .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .store-grid { grid-template-columns: minmax(0, 1fr); } }
