/* Gun pages and model pages: one template (gun.html, /guns/*.html, /models/*.html). */
body { margin: 0; font-family: 'Montserrat', sans-serif; background: #fafaf7; color: #1a1a1a; line-height: 1.6; }
.gp { max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.gp-crumb { font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: #8a6508; margin-bottom: 1.25rem; }
.gp-crumb a { color: #8a6508; text-decoration: none; }
.gp-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
@media (max-width: 900px) { .gp-top { grid-template-columns: 1fr; } }
.gp-main { background: #fff; border: 1px solid #e8e3d3; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gp-main img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.gp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; margin-top: .6rem; }
.gp-thumbs button { padding: 0; border: 1px solid #e8e3d3; background: #fff; aspect-ratio: 3 / 2; cursor: pointer; overflow: hidden; }
.gp-thumbs button.on { border-color: #b8860b; box-shadow: 0 0 0 1px #b8860b; }
.gp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 600; color: #0a1628; line-height: 1.2; margin: 0 0 .6rem; }
.gp-cond { font-size: .78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #8a6508; margin-bottom: .9rem; }
.gp-price { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; color: #0a1628; margin-bottom: .25rem; }
.gp-item { font-size: .85rem; color: #666; margin-bottom: 1.25rem; }
.gp-btns { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.25rem; }
.gp-btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.gp-btn-pair .gp-btn { padding-left: .5rem; padding-right: .5rem; white-space: nowrap; }
.gp-btn { display: block; text-align: center; padding: .9rem 1.4rem; font-size: .78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; border: 1px solid #0a1628; background: #0a1628; color: #fff; }
.gp-btn:visited { color: #fff; }
.gp-btn--line:visited, .gp-empty .gp-btn:visited { color: #0a1628; }
.gp-card, .gp-card:visited { color: #1a1a1a; }
.gp-btn:hover { background: #1d3566; border-color: #1d3566; color: #fff; }
.gp-btn--line { background: #fff; color: #0a1628; border-color: #0a1628; }
.gp-btn--line:hover { background: #0a1628; color: #fff; }
.gp-note { font-size: .85rem; color: #555; border-left: 3px solid #b8860b; padding: .2rem 0 .2rem .9rem; }
.gp-sec { margin-top: 3rem; }
.gp-h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; color: #0a1628; margin: 0 0 1rem; }
.gp-body p { max-width: 820px; color: #333; margin: 0 0 1rem; }
.gp-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e8e3d3; }
.gp-table th, .gp-table td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid #e8e3d3; font-size: .93rem; }
.gp-table th { width: 26%; color: #0a1628; font-weight: 600; }
.gp-table tr:last-child th, .gp-table tr:last-child td { border-bottom: 0; }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.gp-card { background: #fff; border: 1px solid #e8e3d3; text-decoration: none; color: inherit; display: block; }
.gp-card:hover { border-color: #b8860b; }
.gp-card__img { aspect-ratio: 3 / 2; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gp-card__img img { width: 100%; height: 100%; object-fit: contain; }
.gp-card__b { padding: .8rem .95rem 1rem; border-top: 1px solid #e8e3d3; }
.gp-card__t { font-size: .9rem; font-weight: 600; color: #0a1628; line-height: 1.35; }
.gp-card__p { font-size: .88rem; color: #8a6508; margin-top: .3rem; }
.gp-empty { background: #0a1628; color: #fff; padding: 2.5rem 1.5rem; text-align: center; }
.gp-empty h2 { font-family: 'Playfair Display', Georgia, serif; margin: 0 0 .75rem; }
.gp-empty p { max-width: 640px; margin: 0 auto 1.25rem; color: rgba(255,255,255,.85); }
.gp-empty .gp-btn { display: inline-block; background: #d9a520; border-color: #d9a520; color: #0a1628; }
.gp-empty .gp-btn:hover { background: #fff; border-color: #fff; color: #0a1628; }
.gp-zoom { position: fixed; inset: 0; background: rgba(10,22,40,.94); display: none; align-items: center; justify-content: center; z-index: 9999; cursor: zoom-out; }
.gp-zoom.on { display: flex; }
.gp-zoom img { max-width: 96vw; max-height: 94vh; }
.gp-sold { background: #0a1628; color: #fff; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 600; letter-spacing: .5px; }
.gp-sold a, .gp-sold a:visited { color: #e0b75a; }
.gp-lead { max-width: 820px; color: #333; font-size: 1.05rem; margin: 0 0 1.25rem; }
.gp-hero { background: #fff; border: 1px solid #e8e3d3; margin-bottom: 1.5rem; }
/* Maker photos come in two shapes: a long strip that is all gun, and a squarer frame with white above
   and below. gun-live.js checks the shape once the photo loads: a strip is shown whole; a squarer one is
   trimmed top and bottom so the gun fills the width. Hidden until that is decided, so it never jumps. */
.gp-hero { padding: 1.25rem 1.5rem; }
.gp-hero img { width: 100%; display: block; height: auto; opacity: 0; transition: opacity .2s ease; }
.gp-hero img.is-set { opacity: 1; }
.gp-hero img.is-tall { aspect-ratio: 3 / 1; object-fit: cover; }
.gp-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.1rem; }
.gp-specs h3 { font-size: .78rem; letter-spacing: 1.4px; text-transform: uppercase; color: #8a6508; margin: 0 0 .5rem; }
.gp-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; }
.gp-row .gp-btn { display: inline-block; }
