/* ==========================================================================
   PYD Arms — global styles
   Dark, angular, catalogue-style design system.
   ========================================================================== */

:root {
  --color-bg: #0a0a0b;
  --color-bg-alt: #111113;
  --color-surface: #17181a;
  --color-surface-hover: #1d1e21;
  --color-border: #2a2b2e;
  --color-border-strong: #3a3b3f;

  --color-text: #f2f0ec;
  --color-text-muted: #a6a6ab;
  --color-text-faint: #6f7075;

  --color-accent: #b58a4a;
  --color-accent-hover: #cf9f57;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-width: 1280px;
  --gutter: 1.5rem;

  /* Spacing scale — used for the recurring "gap between cards" and
     "margin between a heading and the content below it" cases so those
     values stay consistent instead of being redeclared per component. */
  --space-card-gap: 1.75rem;
  --space-header-gap: 3rem;
}

/* --------------------------------------------------------------------- */
/* Reset / base */
/* --------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------- */
/* Buttons — sharp corners, no pill shapes */
/* --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--color-accent);
  border-radius: 0;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --------------------------------------------------------------------- */
/* Site header */
/* --------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text);
}

.brand span {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: color 150ms ease, border-color 150ms ease;
}

.site-nav a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.site-nav a.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.nav-dropdown {
  /* padding-bottom + a matching negative margin creates an invisible
     "bridge" below the toggle: the extra space is still part of this
     element's own hoverable box (unlike a gap on the panel itself,
     which the pointer would have to cross while hovering nothing),
     so :hover survives the trip from the toggle down into the panel.
     The negative margin cancels the padding back out for layout
     purposes, so it doesn't change this item's height in the nav row. */
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: -0.6rem;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0 0 0.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.nav-dropdown__toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.6;
}

.nav-dropdown__toggle:hover,
.nav-dropdown__toggle.is-active,
.nav-dropdown.is-open .nav-dropdown__toggle {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.nav-dropdown__panel {
  /* top: 100% (not 100% + a gap) so the panel sits flush against the
     bottom of .nav-dropdown's own box — see the padding-bottom bridge
     on .nav-dropdown below for why that matters. */
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  padding: 0.5rem;
  z-index: 110;
  display: none;
  flex-direction: column;
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown.is-open .nav-dropdown__panel {
  display: flex;
}

.nav-dropdown__panel a {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-muted);
  border-bottom: none;
}

.nav-dropdown__panel a:hover,
.nav-dropdown__panel a.is-active {
  color: var(--color-accent);
}

.site-header__cta {
  padding: 0.65rem 1.4rem;
  font-size: 0.75rem;
}

.header-widgets {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.viewing-list,
.cart {
  position: relative;
}

.viewing-list__toggle,
.cart__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.viewing-list__toggle:hover,
.viewing-list__toggle[aria-expanded="true"],
.cart__toggle:hover,
.cart__toggle[aria-expanded="true"] {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.viewing-list__count,
.cart__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}

.viewing-list__panel,
.cart__panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 3rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  padding: 1.25rem;
  z-index: 110;
}

.viewing-list__empty,
.cart__empty {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.viewing-list__items,
.cart__items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 220px;
  overflow-y: auto;
}

.viewing-list__item,
.cart__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border);
}

.viewing-list__item:last-child,
.cart__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.viewing-list__remove,
.cart__remove {
  flex: none;
  background: transparent;
  border: none;
  color: var(--color-text-faint);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.viewing-list__remove:hover,
.cart__remove:hover {
  color: var(--color-accent);
}

.viewing-list__cta,
.cart__cta {
  width: 100%;
}

/* --------------------------------------------------------------------- */
/* Hero — single static section, not full height */
/* --------------------------------------------------------------------- */

.hero {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.hero__inner {
  /* Width/centering come from the .container class applied alongside this
     one in the template — see the shared container system further down. */
  padding-block: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__content,
.hero__media {
  /* Grid items default to min-width: auto, which lets the image's
     intrinsic size push the track (and page) wider than the viewport. */
  min-width: 0;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero__heading {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 1.25rem;
}

.hero__text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__media {
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 800px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: -1;
    aspect-ratio: 16 / 9;
  }
}

/* --------------------------------------------------------------------- */
/* Sections */
/* --------------------------------------------------------------------- */

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--color-border);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  /* Width/centering come from the .container class applied alongside this
     one in the template. */
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-header-gap);
}

.section__heading {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.section__subtext {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 0.6rem;
  max-width: 40rem;
}

/* --------------------------------------------------------------------- */
/* Featured inventory — product grid, no carousel */
/* --------------------------------------------------------------------- */

.product-grid {
  /* Width/centering come from the .container class applied alongside this
     one in the template. auto-fill (not auto-fit) so that when there are
     fewer products than would fill a row, each card keeps its normal
     width instead of stretching to fill the leftover space — otherwise a
     single product would blow up to the full page width. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-card-gap);
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.product-card:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-strong);
}

.product-card__image {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  /* max-width/max-height (not width/height: 100%) so a small source image
     displays at its natural size instead of being stretched up to fill the
     box — only images bigger than the box get scaled down. */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  /* contain (not cover) so long/narrow firearm photos are never cropped —
     the neutral background behind the image fills any leftover space. */
  object-fit: contain;
}

.product-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 1.25rem 1.25rem;
}

.product-card__add {
  width: 100%;
  margin: 0;
  font-size: 0.75rem;
  padding: 0.6rem 1rem;
}

.product-card__add.is-added {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.product-card__category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: 0.5rem;
}

.product-card__name {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.6rem;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.product-card__image {
  position: relative;
}

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
}

.product-card__condition {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  border: 1px solid transparent;
}

.product-card__condition--new {
  background: var(--color-accent);
  color: var(--color-bg);
}

.product-card__condition--used {
  background: var(--color-bg);
  border-color: var(--color-border-strong);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------- */
/* Browse by category */
/* --------------------------------------------------------------------- */

.category-grid {
  /* Width/centering come from the .container class applied alongside this
     one in the template. auto-fill so a single category tile doesn't
     stretch to fill the whole row — see .product-grid above. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-card-gap);
}

.category-tile {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.category-tile:hover {
  background: var(--color-surface-hover);
  color: var(--color-accent);
  border-color: var(--color-border-strong);
}

.category-tile__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.category-tile__arrow {
  font-size: 1.1rem;
  color: var(--color-text-faint);
  transition: color 150ms ease, transform 150ms ease;
}

.category-tile:hover .category-tile__arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------- */
/* About / dealer section */
/* --------------------------------------------------------------------- */

.about {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.about__inner {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.about__inner p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin-top: 1.1rem;
}

.about__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.about__meta-item dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: 0.35rem;
}

.about__meta-item dd {
  margin: 0;
  color: var(--color-text);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------- */
/* Footer */
/* --------------------------------------------------------------------- */

.site-footer {
  background: var(--color-bg-alt);
}

.site-footer__inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 3rem var(--gutter) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-footer__note {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  max-width: 28rem;
  margin-top: 0.75rem;
}

.site-footer__nav-group {
  display: flex;
  gap: 3rem;
}

@media (max-width: 480px) {
  .site-footer__nav-group {
    gap: 2rem;
  }
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer__nav a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 150ms ease;
}

.site-footer__nav a:hover {
  color: var(--color-accent);
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem var(--gutter);
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.about__cta {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------- */
/* Content page body — About / Contact (left-aligned, matches page-header) */
/* --------------------------------------------------------------------- */

.content-page__body {
  max-width: 48rem;
}

/* --------------------------------------------------------------------- */
/* Page header — used by Inventory/Firearms/Accessories/About/Contact */
/* --------------------------------------------------------------------- */

.page-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.page-header__inner {
  /* Width/centering come from the .container class applied alongside this
     one in the template. */
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

.page-header__heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.page-header__intro {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 40rem;
}

/* --------------------------------------------------------------------- */
/* Rich text content (About page body, product descriptions) */
/* --------------------------------------------------------------------- */

.rich-text {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.rich-text p {
  margin-bottom: 1rem;
}

.rich-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* --------------------------------------------------------------------- */
/* Licensing box (About page) */
/* --------------------------------------------------------------------- */

.licensing-box {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-alt);
}

.licensing-box__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------- */
/* Contact page */
/* --------------------------------------------------------------------- */

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 0 0 2rem;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.contact-details__item dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: 0.5rem;
}

.contact-details__item dd {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
}

/* --------------------------------------------------------------------- */
/* Enquiry form (Contact page "Request a Viewing") */
/* --------------------------------------------------------------------- */

.enquiry {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.enquiry__heading {
  margin-bottom: 1.5rem;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}

.form-field input[type="email"],
.form-field input[type="text"],
.form-field textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  color: var(--color-text);
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.form-field textarea {
  resize: vertical;
}

.form-field input[type="email"]:focus,
.form-field input[type="text"]:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-field--checkbox input[type="checkbox"] {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--color-accent);
}

.form-field--checkbox a {
  color: var(--color-accent);
}

.form-error {
  color: #d97a5f;
  font-size: 0.8rem;
  margin: 0;
}

.form-success {
  padding: 1.5rem;
  border: 1px solid var(--color-accent);
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.contact-details__item a {
  color: var(--color-accent);
}

.inquiry-banner {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-accent);
  background: var(--color-bg-alt);
}

.inquiry-banner__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.inquiry-banner__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.inquiry-banner__list li {
  font-weight: 600;
}

.inquiry-banner__note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------- */
/* Filter bar — inventory / firearms / accessories listings */
/* --------------------------------------------------------------------- */

.class-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.class-filter__btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  padding: 0.55rem 1.1rem;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.class-filter__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.class-filter__btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1.25rem;
  padding: 1.75rem;
  margin-bottom: var(--space-header-gap);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.filter-bar__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 160px;
}

.filter-bar__field--search {
  flex: 1 1 240px;
}

.filter-bar__field label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}

.filter-bar__field input,
.filter-bar__field select {
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  color: var(--color-text);
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.filter-bar__field input:focus,
.filter-bar__field select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.filter-bar__submit {
  padding: 0.65rem 1.5rem;
  font-size: 0.75rem;
}

.empty-state {
  padding: 2rem 0;
}

/* --------------------------------------------------------------------- */
/* Pagination */
/* --------------------------------------------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.pagination__link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 0.15rem;
}

.pagination__status {
  color: var(--color-text-faint);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------- */
/* Product detail page */
/* --------------------------------------------------------------------- */

.product-detail__back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-detail__back:hover {
  color: var(--color-accent);
}

.product-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 800px) {
  .product-detail__layout {
    grid-template-columns: 1fr;
  }
}

.product-detail__main-image {
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 3;
  max-height: min(34rem, 60vh);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail__main-image img {
  /* max-width/max-height (not width/height: 100%) so a small source image
     displays at its natural size instead of being stretched up to fill the
     box — only images bigger than the box get scaled down. */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  /* contain, not cover — the full uploaded image is always shown, never
     cropped, regardless of its original dimensions or aspect ratio. */
  object-fit: contain;
}

.product-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-detail__thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: border-color 150ms ease;
}

.product-detail__thumb:hover,
.product-detail__thumb:focus-visible {
  border-color: var(--color-accent);
}

.product-detail__thumb.is-active {
  border-color: var(--color-accent);
  border-width: 2px;
}

.product-detail__thumb img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.firearm-notice {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-left-width: 4px;
}

.firearm-notice__heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.firearm-notice__body {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.firearm-notice__body p {
  margin: 0 0 0.75rem;
}

.firearm-notice__body p:last-child {
  margin-bottom: 0;
}

.firearm-notice__cta {
  margin-top: 1rem;
}

.product-detail__category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: 0.75rem;
}

.product-detail__unavailable {
  color: var(--color-accent);
}

.product-detail__name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.product-detail__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 1.75rem;
}

.product-detail__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

@media (max-width: 480px) {
  .product-detail__meta {
    grid-template-columns: 1fr;
  }
}

.product-detail__meta dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: 0.35rem;
}

.product-detail__meta dd {
  margin: 0;
  font-size: 0.95rem;
}

.product-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-detail__cta {
  width: 100%;
}

.product-detail__cta.is-added {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.product-detail__section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.product-detail__section .section__heading {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.product-detail__specs {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.product-detail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
