/* Product page (page key "product": every /equipment/{category}/{product}/). Ported from the site concept v3
   (parts/pages/equipment.css, the J7 Motto view). Prefix eqp-.
   Desktop grid: gallery | info, then the quote card rides beside the specifications (sticky).
   Port notes: sticky offsets add the admin bar (--wp-bar); a product with no photo shows its ringed item number or
   model mark on the stage; landscape photographs frame by width; a product without specifications closes the head
   with its own spacing (eqp-head--thin); the field guide link is new (KIT tokens only). The concept's lightbox
   workaround is gone: base.css caps the lightbox image itself. */

.eqp-head { padding-top: calc(72px + clamp(24px, 3vw, 40px)); padding-bottom: 0; }
.eqp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "gallery info" "gallery buy" "specs buy"; column-gap: clamp(32px, 4.5vw, 72px); align-items: start; }
.eqp-gallery { grid-area: gallery; }
.eqp-info { grid-area: info; padding-top: 6px; }
.eqp-buy-col { grid-area: buy; align-self: stretch; padding-top: 28px; padding-bottom: clamp(56px, 6vw, 88px); }
.eqp-specs { grid-area: specs; }
.eqp-head--thin { padding-bottom: clamp(56px, 6vw, 88px); }
/* No specifications: no third row, so the quote column's height is never split across an empty row */
.eqp-head--thin .eqp-grid { grid-template-areas: "gallery info" "gallery buy"; grid-template-rows: auto 1fr; }
.eqp-head--thin .eqp-buy-col { padding-bottom: 0; }

/* Gallery: cutouts on a tint stage; a photograph whole, in its own frame on a mat of its own colours */
.eqp-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(75% 70% at 50% 55%, var(--surface) 0%, var(--tint) 100%); overflow: hidden; }
.eqp-slide { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med); }
.eqp-slide.is-on { opacity: 1; visibility: visible; transition: opacity var(--t-med) var(--ease); }
.eqp-slide--cut > img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 26px 26px rgba(11, 31, 58, 0.18)); }
.eqp-slide--photo { background: var(--brand-deep); }
.eqp-mat { position: absolute; inset: -40px; }
.eqp-mat img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(0.5) saturate(1.15); }
.eqp-photo { position: relative; display: block; height: calc(100% - 44px); max-width: calc(100% - 44px); border-radius: 14px; box-shadow: 0 24px 50px rgba(3, 10, 22, 0.45); }
.eqp-photo--land { width: calc(100% - 44px); height: auto; max-height: calc(100% - 44px); }
.eqp-zoom { position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--brand); box-shadow: var(--shadow-card); transition: transform var(--t-fast) var(--ease); }
.eqp-zoom svg { width: 20px; height: 20px; }
.eqp-slide:hover .eqp-zoom { transform: scale(1.08); }
/* No photo on file: the item number or model mark as a survey target, never a stand-in picture */
.eqp-stage-mark { position: relative; display: grid; place-items: center; width: min(46%, 260px); aspect-ratio: 1; }
.eqp-rings { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--line); stroke-width: 0.9; }
.eqp-stage-mark > span { position: relative; font: 600 clamp(2.2rem, 4.2vw, 3.4rem)/1 var(--font-display); letter-spacing: -0.02em; color: var(--brand); font-variant-numeric: tabular-nums; }

.eqp-thumbs { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.eqp-thumb-row { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.eqp-thumb { width: 76px; height: 76px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--tint); overflow: hidden; transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.eqp-thumb img { width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.eqp-thumb--photo img { padding: 0; object-fit: cover; }
.eqp-thumb:hover { transform: translateY(-2px); border-color: var(--muted); }
.eqp-thumb[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.eqp-cap { margin: 0; opacity: 0; transition: opacity var(--t-med) var(--ease); }
.eqp-cap.is-on { opacity: 1; }

/* Info */
.eqp-info h1 { margin-top: 16px; max-width: none; font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.eqp-tagline { margin-top: 12px; font-size: 18px; color: var(--muted); }
.eqp-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--line); }
.eqp-keys > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.eqp-keys > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
/* An odd count (the N40 has three) closes on a full-width cell, never an orphan beside an empty one */
.eqp-keys > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.eqp-keys dd { font: 600 clamp(1.35rem, 2vw, 1.65rem)/1.05 var(--font-display); letter-spacing: -0.015em; color: var(--brand); }
.eqp-keys dt { font-size: 14px; line-height: 1.4; color: var(--muted); }
.eqp-desc { display: grid; gap: 14px; margin-top: 26px; font-size: 16.5px; line-height: 1.65; }
.eqp-desc > * { margin: 0; }

/* Field guide link (H6, H9): a quiet row that points to the guide post */
.eqp-guide { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 24px; padding: 12px 18px 12px 12px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.eqp-guide:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.eqp-guide-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--tint); color: var(--brand); }
.eqp-guide-t { font: 600 16.5px/1.3 var(--font-display); letter-spacing: -0.005em; color: var(--ink); }
.eqp-guide-t small { display: block; margin-bottom: 4px; font: 500 12px/1 var(--font-sub); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.eqp-guide .arr { color: var(--accent-ink); font-size: 18px; }

/* The quote card */
.eqp-buy { position: sticky; top: calc(96px + var(--wp-bar)); z-index: 2; display: grid; gap: 12px; padding: 22px; border-radius: calc(var(--radius-lg) + 4px); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-card); }
.eqp-buy-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.eqp-buy-head img { flex: none; width: 64px; height: 44px; object-fit: contain; }
.eqp-buy-head .eqp-buy-mark { flex: none; display: grid; margin: 0; place-items: center; width: 64px; height: 44px; border-radius: 10px; background: var(--tint); font: 600 15px/1 var(--font-display); color: var(--brand); font-variant-numeric: tabular-nums; }
.eqp-buy-head b { display: block; font: 600 17px/1.2 var(--font-display); letter-spacing: -0.005em; }
.eqp-buy-head > div > span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.eqp-buy .btn { width: 100%; }
.eqp-broch { display: flex; justify-content: center; }
.eqp-broch .pdf { gap: 8px; min-height: 44px; font: 500 14.5px/1 var(--font-sub); color: var(--brand); }
.eqp-broch .pdf svg { color: var(--accent-ink); }
.eqp-broch .pdf small { font: 400 13px/1 var(--font-body); color: var(--muted); }
.eqp-broch .pdf:hover { color: var(--accent-ink); }
.eqp-broch .pdf-none { min-height: 44px; }
.eqp-trust { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.eqp-trust svg { flex: none; width: 20px; height: 20px; color: var(--accent-ink); }

/* Specifications: a full-bleed tinted band (box-shadow, so it never adds sideways scroll) */
.eqp-specs { margin-top: clamp(56px, 6vw, 88px); padding-block: clamp(56px, 6vw, 88px); background: var(--tint); box-shadow: 0 0 0 100vmax var(--tint); clip-path: inset(0 -100vmax); }
.eqp-specs h2 { margin-top: 14px; font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.02em; }
.eqp-spec-box { margin-top: 28px; padding: 6px 16px 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
/* Slash-joined values (GPS/GLONASS/BDS/GALILEO/QZSS) break only when a phone has no room for them */
.eqp-spec th, .eqp-spec td { overflow-wrap: anywhere; }
.eqp-spec tbody tr:nth-child(odd) { background: none; }
.eqp-spec tbody tr:nth-child(even) { background: var(--tint); }
.eqp-spec .eqp-grp th { width: auto; padding: 24px 16px 10px; font: 500 12px/1 var(--font-sub); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.eqp-spec tbody:first-of-type .eqp-grp th { padding-top: 14px; }

/* Pairs well with: list rows, not another card grid */
.eqp-pairs { padding-bottom: clamp(48px, 5vw, 72px); }
.eqp-pairs-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.eqp-pairs-copy h2 { margin-top: 16px; font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.02em; }
.eqp-pairs-copy p:not(.eyebrow) { margin-top: 14px; max-width: 26em; font-size: 17px; color: var(--muted); }
.eqp-pairs-copy .pcta { margin-top: 14px; }
.eqp-pairs-list { display: grid; gap: 12px; }
.eqp-acc { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; padding: 10px 22px 10px 10px; }
.eqp-acc h3 { font-size: 17px; }
.eqp-acc p { margin-top: 4px; font-size: 14.5px; }
.eqp-acc:hover .atile img { transform: scale(1.04); }
.eqp-acc-go { color: var(--accent-ink); font-size: 18px; transition: transform var(--t-fast) var(--ease); }
.eqp-acc:hover .eqp-acc-go { transform: translateX(4px); }
.eqp-mark span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 17px/1 var(--font-display); letter-spacing: -0.01em; color: var(--brand); }

/* Close band */
.eqp-close { padding-bottom: clamp(64px, 7vw, 104px); }
.eqp-close-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 18px 18px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--tint); }
.eqp-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 16px/1 var(--font-sub); color: var(--brand); }
.eqp-back .arr { color: var(--accent-ink); }
.eqp-back:hover .arr { transform: translateX(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .eqp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "info" "buy" "specs"; }
  .eqp-head--thin .eqp-grid { grid-template-areas: "gallery" "info" "buy"; grid-template-rows: none; }
  .eqp-info { padding-top: 32px; }
  .eqp-buy-col { padding-bottom: 0; }
  .eqp-buy { position: static; }
}
@media (max-width: 900px) {
  .eqp-pairs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .eqp-stage { aspect-ratio: 1 / 1; }
  .eqp-thumbs { flex-wrap: wrap; gap: 10px 14px; }
  .eqp-thumb { width: 64px; height: 64px; }
  .eqp-cap { flex: 1 1 180px; font-size: 13.5px; }
  /* Three or more thumbnails push the caption to its own line: keep that line closed until a photograph is shown */
  .eqp-cap:not(.is-on) { display: none; }
  .eqp-keys > div { padding-right: 10px; }
  .eqp-keys dd { font-size: 1.2rem; }
  .eqp-keys > div:nth-child(even) { padding-left: 14px; }
  .eqp-guide { grid-template-columns: 44px minmax(0, 1fr); padding-right: 14px; }
  .eqp-guide .arr { display: none; }
  .eqp-acc { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 10px 14px 10px 10px; }
  .eqp-acc-go { display: none; }
  .eqp-close-in { padding: 16px; }
  .eqp-close-in .btn { width: 100%; }
}
