/* ==========================================================================
   Accessory pages: the parts every one of them shares (src/templates/accessory.mjs).
   Hero layout, trust line, specs + shipping row, photo rows,
   and the "What do I actually need?" strip on /accessories/.
   ========================================================================== */

/* ---------- Hero: name and description, large product image, then the buy box. On a phone the image comes straight after the name. ---------- */
.acc-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto 1fr;
  grid-template-areas: 'head media' 'buy media'; gap: 14px clamp(24px, 4vw, 56px); align-items: start;
}
.acc-hero__head { grid-area: head; }
.acc-hero__head h1 { margin-bottom: 0.2em; }
.acc-hero__head .h1sub { margin: 0; color: var(--text-2); font-size: var(--fs-lg); font-weight: 400; }
.acc-hero__media { grid-area: media; min-width: 0; }
.acc-hero__buy { grid-area: buy; min-width: 0; }
.acc-hero__buy .lead { margin: 0 0 12px; }
.acc-hero__buy > .muted { margin: 0 0 16px; font-size: 0.9375rem; }
.acc-stage { margin: 0; display: grid; place-items: center; padding: clamp(12px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--stage); }
.acc-stage--lit { background: var(--stage-lit); }
.acc-trustline { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.acc-trustline a { color: var(--text-2); }
@media (max-width: 960px) {
  .acc-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'head' 'media' 'buy'; }
}

@media (max-width: 960px) {
  .ax-prod.split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Specifications + shipping row ---------- */
.acc-facts__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.acc-facts .table-wrap { min-width: 0; }
@media (max-width: 960px) { .acc-facts__grid { grid-template-columns: minmax(0, 1fr); } }
/* Full-width trust list on /accessories/ */
.acc-trust-wide { margin-top: 20px; }
@media (min-width: 900px) {
  .acc-trust-wide .trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-trust-wide .trust__list > div:nth-last-child(2) { border-bottom: 0; }
  .acc-trust-wide .trust__list > div:nth-child(odd) { border-right: 1px solid var(--line); }
}

/* ---------- Rows of real photos and photo slots, all the same shape ---------- */
.acc-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.acc-gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
.acc-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.acc-gallery .photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.acc-gallery .photo-slot { aspect-ratio: auto; align-self: stretch; }
@media (max-width: 760px) {
  .acc-gallery { grid-template-columns: minmax(0, 1fr); }
  .acc-gallery--4, .acc-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .acc-gallery--4, .acc-gallery--2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- /accessories/: "What do I actually need?" strip ---------- */
.need { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.need__col { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(16px, 2vw, 22px); min-width: 0; }
.need__col--must { border-color: var(--line-3); }
.need__k { display: inline-block; font: 500 var(--fs-sm)/1.2 var(--font-body); color: var(--muted); margin-bottom: 6px; }
.need__col h3 { font-size: var(--fs-xl); margin: 0 0 6px; }
.need__col p { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
.need__col p + p { margin-top: 8px; }
.need__col a { color: var(--cyan-hi); }
@media (max-width: 860px) { .need { grid-template-columns: minmax(0, 1fr); } }
