/* RTP Armor — State Contract Quote Portal */

:root {
  --navy: #0a1530;
  --navy-2: #12234a;
  --navy-3: #1a2f5e;
  --red: #c8102e;
  --red-bright: #e31b3d;
  --red-dark: #8e0a20;
  --gold: #d4a64a;
  --white: #ffffff;
  --gray-bg: #f2f4f8;
  --gray-line: #d9dee8;
  --gray-text: #5a6478;
  --text: #1c2333;
  --shadow: 0 4px 18px rgba(10, 21, 48, 0.10);
}

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

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

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--gray-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; }

.main { flex: 1 0 auto; width: 100%; }
.portal-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 8px 24px 48px;
}

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(200,16,46,0.45); }
.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  padding: 8px 16px;
  font-size: 12px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-wide { width: 100%; }
.btn-large { padding: 15px 36px; font-size: 15px; }

.text-input {
  width: 100%;
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}
.text-input:focus {
  outline: none;
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(26, 47, 94, 0.15);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 5px;
}
.req { color: var(--red); }

.alert {
  border-radius: 4px;
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
}
.alert ul { margin: 6px 0 0 18px; }
.alert-error { background: #fdecef; border: 1px solid #f2b8c1; color: #7c0a1e; }
.alert-warn { background: #fdf6e7; border: 1px solid #ecd39a; color: #6d5313; }

.muted { color: var(--gray-text); font-weight: 400; }

/* ---------- Dark pages (access notice + login) ---------- */
.dark-page {
  background:
    radial-gradient(1100px 500px at 70% -10%, rgba(211, 166, 74, 0.10), transparent 60%),
    radial-gradient(900px 600px at 15% 110%, rgba(200, 16, 46, 0.14), transparent 55%),
    linear-gradient(180deg, #0d1b3d 0%, #060d20 100%);
  color: #fff;
}
.dark-main {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  padding: 28px 20px 40px;
}
.dark-wrap { width: 100%; max-width: 980px; }
.dark-wrap-narrow { max-width: 520px; }

.access-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.access-seal { width: 128px; justify-self: start; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.55)); }
.access-seal-right { justify-self: end; opacity: 0.35; }
.access-brand { text-align: center; }
.access-logo {
  width: 360px;
  max-width: 82vw;
  display: block;
  margin: 0 auto 6px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.55));
}
.access-heading {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 4px;
}
.access-heading .star, .panel-title .star { color: var(--gold); font-size: 0.8em; padding: 0 6px; }
.access-subheading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.panel {
  background: rgba(6, 14, 34, 0.78);
  border: 1px solid #a81930;
  border-radius: 5px;
  padding: 24px 34px 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}
.panel-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-title-wrap .rule {
  flex: 1 1 auto;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.panel-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.lead {
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 8px;
}
.intro {
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin-bottom: 14px;
}
.notice-list { list-style: none; margin-bottom: 6px; }
.notice-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
}
.notice-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 6px rgba(227,27,61,0.5);
}
.panel-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.panel-actions .btn { max-width: 480px; }
.small-note {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.small-note svg { width: 11px; height: 11px; }

/* login */
.login-brand { margin-bottom: 20px; }
.login-brand .access-logo { width: 300px; }
.login-panel { text-align: center; }
.login-seal { width: 96px; margin: 0 auto 12px; display: block; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.55)); }
.login-heading { font-size: 22px; letter-spacing: 1px; margin-bottom: 6px; }
.login-form { max-width: 340px; margin: 14px auto 4px; text-align: left; }
.login-input {
  text-align: center;
  font-size: 18px;
  letter-spacing: 4px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.95);
}
.login-note { margin-top: 16px; }
.back-link {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.back-link:hover { color: #fff; }
.login-panel .alert-error { background: rgba(227,27,61,0.15); border-color: #a81930; color: #ffd9df; }
.login-panel .field-label { color: rgba(255,255,255,0.65); }

/* ---------- Authorized-access bar ---------- */
.access-bar-text {
  font-size: 16px;
  transform: translateY(-6px);
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  white-space: nowrap;
}

/* ---------- Portal header ---------- */
.portal-header {
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  border-bottom: 3px solid var(--red);
  color: #fff;
}
.portal-header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: 340px minmax(540px, 600px) 340px;
  align-items: center;
  justify-content: space-between;
  column-gap: 48px;
}
.portal-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  min-width: 0;
  gap: 3px;
  justify-self: start;
}
.portal-logo { width: 172px; height: auto; }
.portal-brand-sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.portal-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.portal-search {
  display: flex;
  justify-content: center;
  width: 100%;
}
.search-input {
  border: none;
  border-radius: 4px;
  padding: 11px 16px;
  width: 100%;
  max-width: 560px;
  height: 42px;
  font-size: 14px;
}

.portal-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
  justify-self: end;
}
.portal-seal { height: 82px; width: auto; }
.portal-title { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.portal-title-main { font-size: 15.5px; font-weight: 800; letter-spacing: 0.3px; white-space: nowrap; }
.portal-title-sub { font-size: 14px; color: #fff; letter-spacing: 0.8px; white-space: nowrap; }

/* ---------- Content toolbar (holds Quote, outside the navy header) ---------- */
.content-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0px;
}

/* Quote control — sits in the content area above the catalog/quote page; compact icon + text, no button box */
.basket-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 4px;
  line-height: 1.4;
}
.basket-link:hover { color: var(--red); }
.basket-link svg { width: 17px; height: 17px; flex: 0 0 auto; }
.basket-count {
  background: var(--red-bright);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- Catalog layout & filters ---------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 8px;
}
.filter-toggle { display: none; }
.filter-count {
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  padding: 1px 7px;
  margin-left: 6px;
}

.filter-sidebar {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.clear-all {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.clear-all:hover { text-decoration: underline; }

.filter-group { border-top: 1px solid var(--gray-line); }
.filter-group:first-child { border-top: none; }
.filter-group-title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
}
.filter-group-title::after {
  content: "\25BE";
  color: var(--gray-text);
  transition: transform 0.15s;
}
.filter-group.collapsed .filter-group-title::after { transform: rotate(-90deg); }
.filter-group.collapsed .filter-options { display: none; }
.filter-options { padding: 0 16px 12px; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}
.filter-option input {
  width: 16px; height: 16px;
  accent-color: var(--red);
  cursor: pointer;
}
.filter-option .count { color: var(--gray-text); font-size: 12px; margin-left: auto; }

/* ---------- Product grid & cards ---------- */
.results-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--gray-text);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(10,21,48,0.16); }
.product-image {
  background: var(--gray-bg);
  height: 220px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
}
/* Product images are pre-normalized (excess white canvas trimmed at the
   file level), so the frame just needs contain-fit — no artificial zoom. */
.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Category placeholder art (SVG) gets a little breathing room. */
.product-image img.is-placeholder {
  padding: 24px;
}
.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-mfr {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--red);
}
.product-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}
.product-specs {
  font-size: 12.5px;
  color: var(--gray-text);
  line-height: 1.5;
}
.product-specs .sep { padding: 0 5px; color: var(--gray-line); }
.product-pkg { font-size: 12.5px; color: var(--text); line-height: 1.45; }
.product-actions { margin-top: auto; padding-top: 10px; }
.add-btn { width: 100%; padding: 10px 12px; font-size: 13px; }
.add-btn.added {
  background: var(--navy);
  box-shadow: none;
}
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-text);
}
.no-results p { margin-bottom: 16px; font-size: 15px; }

/* ---------- Quote page ---------- */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.page-head h1 { font-size: 26px; color: var(--navy); }

.quote-section {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 20px 24px 24px;
  margin-bottom: 22px;
}
.section-title {
  font-size: 17px;
  color: var(--navy);
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 12px;
}

.quote-table-wrap { overflow-x: auto; }
.quote-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.quote-table th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gray-text);
  border-bottom: 2px solid var(--gray-line);
  padding: 8px 10px;
  white-space: nowrap;
}
.quote-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--gray-line);
  vertical-align: middle;
}
.qty-col { min-width: 150px; }
.qty-wrap { display: flex; align-items: center; gap: 8px; }
.qty-input { width: 88px; text-align: center; }
.qty-unit { font-size: 12px; color: var(--gray-text); white-space: nowrap; }
.remove-btn {
  background: none;
  border: none;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.remove-btn:hover { text-decoration: underline; }
.unit-note { font-size: 12.5px; color: var(--gray-text); margin-top: 12px; line-height: 1.5; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}
.form-field-wide { grid-column: 1 / -1; }
textarea.text-input { resize: vertical; }

.ack-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 4px;
  font-size: 13.5px;
  line-height: 1.5;
  cursor: pointer;
}
.ack-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--red); flex: 0 0 auto; }

.submit-row { margin-top: 18px; text-align: center; }
.submit-row .unit-note { margin-top: 10px; }

.empty-basket {
  background: #fff;
  border: 1px dashed var(--gray-line);
  border-radius: 6px;
  text-align: center;
  padding: 60px 20px;
}
.empty-basket p { margin-bottom: 16px; color: var(--gray-text); font-size: 15px; }

/* ---------- Confirmation ---------- */
.confirm-wrap { display: flex; justify-content: center; padding: 30px 0; }
.confirm-card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-top: 4px solid var(--red);
  border-radius: 6px;
  box-shadow: var(--shadow);
  max-width: 620px;
  width: 100%;
  text-align: center;
  padding: 40px 36px;
}
.confirm-icon { width: 58px; height: 58px; color: #1e6b34; margin-bottom: 12px; }
.confirm-card h1 { font-size: 24px; color: var(--navy); margin-bottom: 10px; }
.rfq-number {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.5px;
  border-radius: 4px;
  padding: 10px 22px;
  margin-bottom: 16px;
}
.confirm-card p { font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; }
.confirm-card .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0;
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  border-top: 3px solid var(--red);
  margin-top: auto;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  line-height: 1.6;
}
.site-footer strong { color: #fff; }
.footer-contact { text-align: right; }

.dark-page .site-footer { background: rgba(4, 9, 22, 0.85); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .catalog-layout { grid-template-columns: 220px 1fr; gap: 16px; }
}

@media (max-width: 820px) {
  .access-bar-text { white-space: normal; line-height: 1.4; font-size: 10.5px; }

  .portal-header-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand identity"
      "authtext authtext"
      "search search";
    justify-content: space-between;
    column-gap: 12px;
    row-gap: 10px;
    padding: 14px 16px;
  }
  .portal-brand { grid-area: brand; justify-self: start; }
  .portal-identity { grid-area: identity; justify-self: end; }
  .portal-center { display: contents; }
  .access-bar-text { grid-area: authtext; }
  .portal-search { grid-area: search; width: 100%; }
  .search-input { max-width: none; }
  .portal-title-main { font-size: 13px; }
  .portal-logo { width: 100px; }
  .portal-brand-sub { font-size: 9.5px; letter-spacing: 2px; }
  .portal-seal { height: 44px; }

  .content-toolbar { justify-content: flex-end; margin-bottom: 12px; }

  .catalog-layout { display: block; }
  .filter-toggle {
    display: inline-block;
    margin-bottom: 12px;
  }
  .filter-sidebar { display: none; margin-bottom: 16px; }
  .filter-sidebar.open { display: block; }

  .access-header { grid-template-columns: 1fr; }
  .access-seal { justify-self: center; width: 96px; }
  .access-seal-right { display: none; }
  .panel { padding: 20px 18px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner, .footer-contact { text-align: left; }

  /* stacked quote table */
  .quote-table thead { display: none; }
  .quote-table, .quote-table tbody, .quote-table tr, .quote-table td { display: block; width: 100%; }
  .quote-table tr {
    border: 1px solid var(--gray-line);
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 10px 12px;
  }
  .quote-table td { border: none; padding: 5px 0; }
  .quote-table td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gray-text);
    margin-bottom: 2px;
  }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .access-logo { width: 260px; }
  .access-heading { font-size: 16px; letter-spacing: 1.5px; }
  .portal-main { padding: 14px 14px 40px; }
}


/* ---------- Product detail page ----------
   Appended block. Every rule below is product-detail-specific; the approved
   header, catalog, filter, quote, access and login styles above are
   untouched. The product card only gains .product-link, which is
   layout-neutral. Type scale used here (portal font family throughout):
   title 32px / section heading 14px caps / spec label 13px caps /
   spec value 15px / metadata 14px / body 13.5px. */
.product-link { display: block; text-decoration: none; color: inherit; }
.product-link .product-name:hover { color: var(--red); }

/* --- Utility row: primary Back control left, Quote control right --- */
.pd-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 9px 16px;
  width: auto;
}

/* --- Breadcrumb: secondary navigation, deliberately quieter --- */
.pd-crumbs {
  font-size: 13px;
  color: var(--gray-text);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-line);
}
.pd-crumbs a { color: var(--gray-text); text-decoration: none; font-weight: 600; }
.pd-crumbs a:hover { color: var(--red); text-decoration: underline; }
.pd-crumbs .sep { padding: 0 8px; color: var(--gray-line); }
.pd-crumbs .current { color: var(--text); font-weight: 600; }

/* --- Hero: one cohesive product presentation --- */
.pd-hero {
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 20px;
}

.pd-main-image {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pd-main-image img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #fff;
  padding: 18px;
}

.pd-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pd-thumb {
  width: 74px;
  height: 74px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-thumb:hover { border-color: var(--navy-3); }
.pd-thumb.active { border-color: var(--red); border-width: 2px; padding: 3px; }

/* --- Hero right: identity, then ordering --- */
.pd-mfr {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.pd-name {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.2px;
  color: var(--navy);
  margin-bottom: 18px;
}

/* One inline identifier line: MPN: <value>  |  UPC #: <value> */
.pd-ids {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-line);
  margin-bottom: 10px;
}
.pd-id {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.pd-id + .pd-id::before {
  content: "|";
  margin-right: 14px;
  font-weight: 400;
  color: var(--gray-line);
}
.pd-ids dt,
.pd-ids dd {
  font-size: 18px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--navy);
  margin: 0;
}
.pd-ids dt { font-weight: 700; }   /* "MPN:" / "UPC #:" bold */
.pd-ids dd { font-weight: 400; }   /* values regular weight */

/* --- Order unit + quantity: RFQ ordering controls, not commerce --- */
.pd-order-heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

/* Desktop ordering layout: TWO MATCHING COLUMNS, same width, both starting at
   the same vertical position — ORDER UNIT over the BOX + CASE pair on the
   left, QUANTITY over the quantity control with ADD TO QUOTE stacked beneath
   it on the right. Both headings use .pd-order-heading, sit on the same
   horizontal line, and are centered over their own column. The RFQ
   disclaimer sits OUTSIDE both columns, below them, full width. */
.pd-order-row {
  display: grid;
  grid-template-columns: repeat(2, 372px);
  justify-content: start;
  column-gap: 44px;
  align-items: start;
  margin-bottom: 0;
}

/* Left column: heading centered over the Box/Case pair. */
.pd-order-group { min-width: 0; }
.pd-order-group .pd-order-heading { text-align: center; margin-bottom: 10px; }

/* Right column: heading, then quantity control, then Add to Quote — each
   centered under the one above. Column is the same width as the left column. */
.pd-order-quantity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Same class, same style, same 10px bottom margin as the left heading, so
   both headings share one baseline and both columns' controls start level. */
.pd-order-quantity .pd-order-heading { text-align: center; margin-bottom: 10px; }
.pd-order-quantity .pd-qty { margin-bottom: 10px; }

.pd-units {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 0;
}
.pd-unit { flex: 1 1 0; min-width: 0; cursor: pointer; }
.pd-unit input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.pd-unit-box {
  display: block;
  width: 100%;
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid var(--gray-line);
  border-radius: 5px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.pd-unit:hover .pd-unit-box { border-color: var(--navy-3); }
.pd-unit input:focus-visible + .pd-unit-box { outline: 2px solid var(--navy-3); outline-offset: 2px; }
.pd-unit input:checked + .pd-unit-box {
  border-color: var(--red);
  background: #fff5f6;
}
.pd-unit-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
}
.pd-unit input:checked + .pd-unit-box .pd-unit-name { color: var(--red); }
.pd-unit-contents {
  display: block;
  font-size: 13px;
  color: var(--gray-text);
  margin-top: 3px;
}

.pd-unit-fixed {
  display: inline-block;
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid var(--gray-line);
  border-radius: 5px;
  margin-bottom: 0;
  min-width: 150px;
}

/* Quantity control: [ - ] [ 1 ] [ + ] — plain white field, thin gray border,
   fixed width so it and the Add to Quote button match exactly. */
.pd-qty {
  align-self: center;
  width: 148px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--gray-line);
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}
.pd-qty-step {
  flex: 0 0 44px;
  width: 44px;
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.pd-qty-step:hover { background: var(--gray-bg); color: var(--red); }
.pd-qty-step:first-child { border-right: 1px solid var(--gray-line); }
.pd-qty-step:last-child { border-left: 1px solid var(--gray-line); }
.pd-qty-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 11px 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  -moz-appearance: textfield;
  appearance: textfield;
}
.pd-qty-input:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(26, 47, 94, 0.18); }
.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pd-add { display: block; width: 100%; max-width: 340px; }
/* Same width as the quantity control, centered directly beneath it. Padding
   and label spacing trimmed so "ADD TO QUOTE" stays on one line at 148px. */
.pd-order-quantity .pd-add {
  align-self: center;
  width: 148px;
  max-width: none;
  margin: 0;
  padding: 13px 8px;
  font-size: 12px;
  letter-spacing: 0.6px;
}
/* Disclaimer spans the full width of the ordering area, below both sections. */
.pd-note {
  font-size: 13.5px;
  color: var(--gray-text);
  line-height: 1.6;
  margin-top: 18px;
  max-width: none;
}

/* --- Sections below the hero --- */
.pd-section { margin-bottom: 36px; }
.pd-section-heading {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 4px;
}

/* Product Specifications: pulled up close to the order area and set on a
   subtle light gray-blue panel to separate it from the hero above. */
.pd-section--specs {
  margin-top: 8px;
  padding: 18px 20px 4px;
  background: #ffffff;
  border: 1px solid var(--gray-line);
  border-radius: 6px;
}

/* Definition grid — whitespace and hairlines, not boxed table cells. */
.pd-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.pd-spec {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 13px 2px;
  border-bottom: 1px solid var(--gray-line);
}
/* Drop the trailing hairline on the final row of each column. */
.pd-spec:last-child, .pd-spec:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.pd-spec dt {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #000000;
}
.pd-spec dt::after {
  content: ":";
}
.pd-spec dd { font-size: 17px; color: var(--text); }
.pd-pkg-line { display: block; }
.pd-pkg-line + .pd-pkg-line { margin-top: 2px; }

/* Product Description panel — same white card treatment as the specs
   section above. Scoped to exclude .pd-section--specs, which keeps its
   own background/border rule. */
.pd-section:not(.pd-section--specs) {
  padding: 18px 20px 20px;
  background: #ffffff;
  border: 1px solid var(--gray-line);
  border-radius: 6px;
}

.pd-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  max-width: none;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .pd-hero { grid-template-columns: 1fr; gap: 26px; }
  .pd-main-image img { height: 340px; }
  .pd-name { font-size: 26px; }
  /* Stack the two columns: ORDER UNIT section first, QUANTITY section second. */
  .pd-order-row { grid-template-columns: 1fr; gap: 24px; }
  .pd-order-group .pd-order-heading { text-align: left; }
  .pd-order-quantity { align-items: flex-start; }
  .pd-order-quantity .pd-order-heading { text-align: left; }
  .pd-order-quantity .pd-qty { align-self: flex-start; }
  .pd-order-quantity .pd-add { align-self: flex-start; }
  .pd-specs { grid-template-columns: 1fr; gap: 0; }
  /* Single column: only the true final row loses its hairline. */
  .pd-spec:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--gray-line); }
  .pd-spec:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  .pd-toolbar { gap: 8px; }
  .pd-back { font-size: 12.5px; padding: 8px 12px; }
  .pd-name { font-size: 23px; }
  .pd-main-image img { height: 260px; padding: 12px; }
  .pd-ids { gap: 4px 12px; }
  .pd-ids dt, .pd-ids dd { font-size: 16px; }
  .pd-order-row { grid-template-columns: 1fr; gap: 24px; }
  .pd-order-quantity { align-items: stretch; }
  .pd-order-quantity .pd-order-heading { text-align: left; }
  .pd-units { flex-wrap: wrap; }
  .pd-unit { flex: 1 1 100%; }
  .pd-qty { align-self: flex-start; }
  .pd-order-quantity .pd-add { width: 100%; }
  .pd-section--specs { margin-top: 8px; padding: 16px 14px 4px; }
  .pd-spec {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 11px 2px;
  }
}

/* Quote page: contents note beside the selected ordering unit. */
.unit-contents { display: block; font-size: 12px; color: var(--gray-text); }

/* ---------- Confirmation page: button row + Print Quote button ----------
   Appended block. The existing .btn / .btn-primary rules and the Return to
   Catalog button are unchanged; .btn-print-quote inherits all sizing,
   padding and typography from .btn. */
.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.confirm-actions .btn { margin-top: 0; }
.btn-print-quote {
  background: #0f1d40;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 29, 64, 0.35);
}
.btn-print-quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(15, 29, 64, 0.45);
  color: #fff;
}

/* ---------- Printable RFQ ---------- */
.print-rfq {
  max-width: 7.5in;
  margin: 0 auto;
  padding: 0.5in 0.25in;
  color: #111;
  font-size: 12px;
  line-height: 1.5;
}
.print-actions {
  text-align: center;
  margin-bottom: 24px;
}
.print-rfq-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 3px solid #0f1d40;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.print-rfq-header .brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0f1d40;
}
.print-rfq-header .sub {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #333;
  margin-top: 2px;
}
.print-rfq-header .meta {
  text-align: right;
  font-size: 11.5px;
}
.print-rfq-header .meta .rfq-no {
  font-size: 15px;
  font-weight: 800;
  color: #0f1d40;
}
.print-rfq h2 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #0f1d40;
  border-bottom: 1px solid #bbb;
  padding-bottom: 4px;
  margin: 18px 0 10px;
}
.print-kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
}
.print-kv dt { font-weight: 700; color: #333; }
.print-kv dd { margin: 0; }
table.print-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 6px;
}
table.print-items th {
  text-align: left;
  background: #0f1d40;
  color: #fff;
  padding: 6px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
table.print-items td {
  padding: 6px 8px;
  border-bottom: 1px solid #ccc;
  vertical-align: top;
}
.print-disclaimer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #bbb;
  font-weight: 700;
  color: #0f1d40;
}

@media print {
  body { background: #fff; }
  .print-actions,
  .site-footer,
  .portal-header { display: none !important; }
  .print-rfq { max-width: none; padding: 0; }
  table.print-items th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
