/**
 * Featured Product single (/products/{slug}/) — template-scoped styles.
 *
 * Loaded only for this view by functions.php (assets/css/pages/single-featured-product.css).
 * Shared tokens come from assets/css/tokens.css. Shared classes reused from
 * style.css: .site-container, .tech-eyebrow, .tech-eyebrow-light, .section-header,
 * .section-title, .btn, .btn-primary, .btn-secondary, .btn-light, .image-frame,
 * .ratio-4-3, .ratio-16-9, .spec-list, .spec-row, .spec-label, .spec-value.
 * Every class declared in this file is prefixed .fp- and is used only by
 * single-featured_product.php; the rules that touch a shared class
 * (.fp-spec-list .spec-value, .fp-spec-list .spec-label) are scoped by an .fp- wrapper.
 */

/* -------------------------------------------------------------
   01 Breadcrumb (01): Products, category crumb, current product
------------------------------------------------------------- */
.fp-breadcrumb {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 18px 0;
}

.fp-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}

.fp-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fp-breadcrumb-item + .fp-breadcrumb-item::before {
  content: "/";
  color: var(--color-border);
}

.fp-breadcrumb-link {
  color: var(--color-body);
  font-weight: 500;
}

.fp-breadcrumb-link:hover {
  color: var(--color-accent);
}

.fp-breadcrumb-current {
  color: var(--color-muted);
}

/* -------------------------------------------------------------
   02 Hero (02): eyebrow, h1, lead, availability, image, actions
------------------------------------------------------------- */
.fp-hero {
  padding-top: 64px;
  padding-bottom: 72px;
  background-color: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-border);
}

.fp-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.fp-hero-grid > * {
  min-width: 0;
}

.fp-hero-title {
  font-size: clamp(2.125rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 720px;
}

.fp-hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-body);
  max-width: 640px;
  margin-bottom: 0;
}

.fp-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.fp-hero-media {
  margin: 0;
}

/* Editorial copy from the post editor, below the hero grid. */
.fp-overview {
  margin-top: 48px;
  max-width: 820px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.fp-overview h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.fp-overview h3 {
  font-size: 1.1875rem;
  margin-bottom: 10px;
}

.fp-overview ul,
.fp-overview ol {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--color-body);
}

.fp-overview li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   03 Availability badge (03): one tone per stored choice
------------------------------------------------------------- */
.fp-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 6px 12px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-body);
}

.fp-availability-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
}

.fp-availability--in-production {
  color: var(--color-accent);
  border-color: rgba(23, 110, 166, 0.28);
  background-color: rgba(23, 110, 166, 0.07);
}

.fp-availability--on-request {
  color: var(--color-body);
}

.fp-availability--development {
  color: var(--color-copper);
  border-color: rgba(185, 119, 69, 0.3);
  background-color: rgba(185, 119, 69, 0.07);
}

/* -------------------------------------------------------------
   04 Section bands: white and #F6F8F9 alternate down the page
------------------------------------------------------------- */
.fp-section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.fp-section-parts,
.fp-section-guns,
.fp-section-gallery,
.fp-section-insights {
  background-color: #ffffff;
}

.fp-section-specs,
.fp-section-notes,
.fp-section-products {
  background-color: var(--color-surface-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.fp-section .section-header {
  margin-bottom: 40px;
}

/* -------------------------------------------------------------
   05 Reference part numbers (04): compact bordered table
------------------------------------------------------------- */
.fp-table-wrap {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.fp-parts-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fp-parts-table th {
  padding: 18px 24px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.fp-parts-table td {
  padding: 14px 24px;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border-subtle);
}

.fp-parts-table tbody tr:last-child td {
  border-bottom: none;
}

.fp-part-number {
  width: 40%;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}

.fp-part-note {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* -------------------------------------------------------------
   06 Specifications (05): shared .spec-list, Material as one row
------------------------------------------------------------- */
.fp-spec-list {
  max-width: 860px;
}

.fp-spec-list .spec-label {
  flex: 0 1 auto;
}

.fp-spec-list .spec-value {
  flex: 0 0 auto;
}

/* Material is prose, so it may wrap where a short value never does. */
.fp-material-value {
  flex: 1 1 auto;
  max-width: 62%;
  font-size: 1rem;
  line-height: 1.5;
  text-align: right;
  white-space: normal;
}

/* -------------------------------------------------------------
   07 Compatible spray guns (06): one clickable card per gun
------------------------------------------------------------- */
.fp-gun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.fp-gun-card {
  position: relative;
  padding: 26px 24px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.fp-gun-card:hover {
  border-color: var(--color-accent);
}

.fp-gun-title {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.fp-card-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.fp-card-link {
  color: var(--color-ink);
}

/* The whole card is the link target, the heading keeps its own semantics. */
.fp-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.fp-card:hover .fp-card-link {
  color: var(--color-accent);
}

/* -------------------------------------------------------------
   08 Manufacturing and QC highlights (07): two text cards side by side
------------------------------------------------------------- */
.fp-note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.fp-note-card {
  padding: 32px 28px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.fp-note-title {
  font-size: 1.125rem;
  margin-bottom: 14px;
}

.fp-note-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-body);
}

.fp-note-text p {
  margin-bottom: 14px;
}

.fp-note-text p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------
   09 Gallery (08): 4:3 frames in an even grid
------------------------------------------------------------- */
.fp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.fp-gallery-figure {
  margin: 0;
}

/* -------------------------------------------------------------
   10 Related products and insights (09, 10): linked cards
------------------------------------------------------------- */
.fp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.fp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.fp-card:hover {
  border-color: var(--color-accent);
}

.fp-card-media {
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}

.fp-card-image {
  display: block;
  width: 100%;
  height: auto;
}

.fp-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.fp-card-title {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.fp-card-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-body);
  margin-bottom: 0;
}

.fp-card-date {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-copper);
}

/* -------------------------------------------------------------
   11 Empty media: a local gray frame, never a remote placeholder
------------------------------------------------------------- */
.fp-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-media-empty::after {
  content: "";
  width: 48px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--color-border);
}

/* -------------------------------------------------------------
   12 Password protected product: title and the native form only
------------------------------------------------------------- */
.fp-locked {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  background-color: var(--color-surface-soft);
}

.fp-locked-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 24px;
}

.fp-locked-form {
  max-width: 560px;
  padding: 32px 28px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.fp-locked-form p {
  margin-bottom: 0;
}

.fp-locked-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
}

.fp-locked-form input[type="password"] {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-ink);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
}

.fp-locked-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.fp-locked-form input[type="submit"]:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* -------------------------------------------------------------
   13 RFQ band (11): graphite, matching the site's other CTA bands
------------------------------------------------------------- */
.fp-rfq {
  padding-top: 90px;
  padding-bottom: 90px;
  background-color: var(--color-ink);
}

.fp-rfq-box {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.fp-rfq-title {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 18px;
}

.fp-rfq-lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #b5c3cb;
}

.fp-rfq-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* -------------------------------------------------------------
   14 Responsive
------------------------------------------------------------- */
@media (max-width: 1024px) {
  .fp-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fp-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .fp-hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .fp-section {
    padding-top: var(--space-section-mobile);
    padding-bottom: var(--space-section-mobile);
  }

  .fp-section .section-header {
    margin-bottom: 28px;
  }

  .fp-locked {
    padding-top: var(--space-section-mobile);
    padding-bottom: var(--space-section-mobile);
  }

  .fp-gun-grid,
  .fp-note-grid,
  .fp-gallery-grid,
  .fp-card-grid {
    grid-template-columns: 1fr;
  }

  .fp-spec-list {
    max-width: none;
  }

  .fp-material-value {
    max-width: none;
  }

  .fp-rfq {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .fp-hero-actions .btn,
  .fp-rfq-actions .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  /* The part number table becomes one stacked record per row. */
  .fp-parts-table,
  .fp-parts-table tbody,
  .fp-parts-table tr,
  .fp-parts-table td {
    display: block;
    width: 100%;
  }

  .fp-parts-table thead {
    display: none;
  }

  .fp-parts-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .fp-parts-table tbody tr:last-child {
    border-bottom: none;
  }

  .fp-parts-table td {
    padding: 0;
    border-bottom: none;
  }

  .fp-part-number {
    white-space: normal;
  }

  .fp-part-note {
    margin-top: 4px;
  }

  .fp-table-wrap {
    padding: 4px 20px;
  }

  .fp-spec-list .spec-row {
    gap: 16px;
  }

  .fp-spec-list .spec-value {
    font-size: 1.0625rem;
    white-space: normal;
    text-align: right;
  }

  .fp-locked-form {
    padding: 24px 20px;
  }
}