:root {
  --primary-color: #c62828;
  --primary-dark: #8e0000;
  --accent-warm: #fff4ea;
  --text-dark: #212121;
  --text-mid: #5f6368;
  --text-light: #757575;
  --bg-light: #f5f5f5;
  --bg-panel: #fffdf9;
  --line-soft: #e6e0d8;
  --white: #ffffff;
  --brand-charcoal: #2b2f33;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, #fffaf6 0%, #f6f6f4 420px, #f4f4f2 100%);
  overflow-x: hidden;
}

.page-header {
  margin-top: 0;
  padding: 1.3rem 3rem 0.9rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #92261f 0%, #c62828 55%, #7f0000 100%);
  color: white;
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.6rem;
}

.breadcrumbs a {
  color: white;
  text-decoration: none;
}

.breadcrumbs span {
  opacity: 0.88;
}

.page-header-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.page-header-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0.6rem 0 0;
  width: 100%;
}

.page-header-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin: 0.65rem 0 0;
  max-width: 760px;
}

.product-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.product-subtitle {
  font-size: 1.05rem;
  max-width: 760px;
  opacity: 0.96;
  line-height: 1.6;
}

.compat-banner-wrap {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding: 0 3rem;
}

.compat-banner {
  background: #fff6da;
  border: 1px solid #ead9a0;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  color: #5d4037;
}

.compat-banner__title {
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.compat-banner__body {
  font-size: 0.95rem;
  line-height: 1.55;
}

.product-shell {
  max-width: 1200px;
  margin: 1rem auto 3rem;
  padding: 0 3rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.hero-media,
.hero-content,
.content-card,
.sidebar-card,
.product-image-panel,
.product-main {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(51, 35, 18, 0.06);
  box-sizing: border-box;
  max-width: 100%;
}

.hero-media {
  padding: 1.2rem;
}

.hero-image-frame {
  min-height: 380px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #f1ede7, #faf7f2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-frame img,
.product-image-wrapper img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.hero-image-note,
.product-image-caption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-light);
}

.hero-content {
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: flex-start;
}

.hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.hero-title-block {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #efe5d9;
}

.hero-title-block .product-title {
  color: var(--text-dark);
  margin-bottom: 0.55rem;
}

.hero-title-block .product-subtitle {
  color: #4a4a4a;
  max-width: none;
  opacity: 1;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.hero-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.97rem;
  font-weight: 500;
  color: #2a2a2a;
  line-height: 1.5;
}

.hero-highlights li::before {
  content: "✔";
  flex-shrink: 0;
  margin-top: 0.05em;
  font-size: 0.82rem;
  color: var(--primary-color);
  background: rgba(198, 40, 40, 0.08);
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-suitable-for {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: linear-gradient(135deg, #fff0ec, #fde8e2);
  border: 1px solid rgba(198, 40, 40, 0.16);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  margin-bottom: 0.25rem;
}

.hero-spec-block {
  display: grid;
  gap: 0.5rem;
}

.hero-spec-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.hero-spec-block .product-spec-table-wrapper {
  border-radius: 12px;
}

.hero-spec-block .product-spec-table th,
.hero-spec-block .product-spec-table td {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.hero-model-for {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0.2rem 0 0.7rem;
  line-height: 1.35;
}

.hero-compat-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #555;
  padding: 0.6rem 0.9rem;
  background: #f5f2ee;
  border-radius: 10px;
  border: 1px solid #e4d8cc;
}

.hero-compat-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  font-weight: 700;
  white-space: nowrap;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-meta-card {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--bg-panel);
  border: 1px solid #efe5d9;
}

.hero-meta-card--wide {
  grid-column: 1 / -1;
}

.hero-meta-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.hero-meta-card strong {
  color: var(--text-dark);
  line-height: 1.5;
}

.hero-summary p {
  font-size: 0.98rem;
  color: #454545;
  line-height: 1.62;
  margin: 0;
}

.hero-summary p + p {
  margin-top: 0.75rem;
}

.hero-usage {
  color: var(--text-mid);
}

.hero-cta-row,
.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-btn,
.quote-btn,
.btn-link-small,
.text-link {
  text-decoration: none;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.cta-btn:hover,
.quote-btn:hover {
  transform: translateY(-1px);
}

.cta-btn--primary,
.quote-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  border: 1px solid transparent;
}

.cta-btn--secondary {
  background: #fff3ec;
  color: #8d241c;
  border: 1px solid #e8c0b4;
}

.cta-btn--ghost,
.btn-link-small {
  background: #fff;
  color: var(--primary-color);
  border: 1px solid rgba(198, 40, 40, 0.22);
}

.btn-link-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.text-link {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-chip-group,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-chip,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-chip {
  background: #f5eee8;
  color: #7c2d20;
  text-decoration: none;
}

.tag {
  background: var(--bg-light);
  color: var(--text-light);
}

a.tag {
  text-decoration: none;
}

a.tag.tag--link:hover,
.hero-chip:hover,
.btn-link-small:hover,
.text-link:hover {
  background: rgba(198, 40, 40, 0.08);
  color: var(--primary-color);
}

.tag--unlisted {
  background: #fff8e1;
  color: #bf360c;
  border: 1px dashed #ffd54f;
  font-weight: 600;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 1.5rem;
  align-items: start;
}

.content-grid > *,
.main-content > * {
  min-width: 0;
}

.content-main,
.content-side {
  display: grid;
  gap: 1.25rem;
}

.content-card,
.product-main,
.sidebar-card,
.product-image-panel {
  padding: 1.4rem 1.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: #fbefe8;
  color: #9c2e22;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.quick-grid,
.related-grid {
  display: grid;
  gap: 1rem;
}

.variant-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.variant-card {
  padding: 1rem;
  border-radius: 16px;
  background: #fcfaf7;
  border: 1px solid #efe7dc;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.variant-card h2 {
  font-size: 1rem;
  margin: 0 0 0.45rem;
  color: var(--text-dark);
}

.variant-card p {
  margin: 0;
  color: #4d4d4d;
  line-height: 1.6;
}

.variant-card__code {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #7b6f66;
}

.variant-card__action {
  display: inline-flex;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-color);
}

.variant-card:hover,
.variant-card:focus-visible {
  border-color: #d7b7a7;
  box-shadow: 0 12px 24px rgba(51, 35, 18, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.variant-card.is-selected {
  border-color: rgba(198, 40, 40, 0.48);
  background: #fff5f3;
  box-shadow: 0 14px 28px rgba(198, 40, 40, 0.08);
}

.variant-card.is-selected .variant-card__code {
  color: var(--primary-color);
}

.quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-block {
  padding: 1rem;
  border-radius: 16px;
  background: #fcfaf7;
  border: 1px solid #efe7dc;
  box-sizing: border-box;
  max-width: 100%;
}

.quick-block h2,
.related-section h2,
.final-cta h2,
.product-desc h2,
.product-section-title,
.sidebar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--text-dark);
}

.product-desc-section {
  padding: 1.5rem 0.25rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.product-desc-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.rfq-centered-wrap {
  max-width: 600px;
  margin: 0.5rem auto 0;
}

.rfq-centered-wrap .content-card {
  border-left: 3px solid var(--primary-color);
  background: #fffaf8;
}

.rfq-centered-wrap .inline-rfq-grid {
  grid-template-columns: 1fr;
}

.rfq-column-wrap {
  max-width: 720px;
  margin-top: 0.5rem;
}

.rfq-column-wrap .content-card {
  border-left: 3px solid var(--primary-color);
  background: #fffaf8;
}

/* Product-level RFQ — centered, wider two-col grid */
.product-rfq-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.product-rfq-wrap .content-card {
  border-top: 3px solid var(--primary-color);
  border-left: none;
  background: #fff;
  box-shadow: 0 8px 32px rgba(43, 32, 20, 0.07);
  border-radius: 20px;
}

.product-rfq-wrap .section-tag {
  color: var(--primary-color);
}

.product-rfq-wrap .inline-rfq-context h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #212121;
  margin: 0 0 0.25rem;
}

.product-rfq-wrap .inline-rfq-grid {
  grid-template-columns: repeat(2, 1fr);
}

.product-rfq-wrap .form-group input,
.product-rfq-wrap .form-group select,
.product-rfq-wrap .form-group textarea {
  border-radius: 10px;
  border: 1.5px solid #d9d3cb;
  background: #fafaf8;
}

.product-rfq-wrap .form-group input:focus,
.product-rfq-wrap .form-group select:focus,
.product-rfq-wrap .form-group textarea:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.09);
  outline: none;
}

.product-rfq-wrap .inline-rfq-actions {
  justify-content: center;
  margin-top: 1.25rem;
}

.product-rfq-wrap .cta-btn--primary {
  min-width: 220px;
}

.inline-rfq-panel {
  display: grid;
  gap: 1rem;
}

.inline-rfq-panel.is-flashed {
  animation: enquiry-flash 1.05s ease;
}

.inline-rfq-context p {
  margin: 0;
  color: #4d4d4d;
  line-height: 1.65;
}

@keyframes enquiry-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0);
  }
  25% {
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0);
  }
}

.inline-rfq-success,
.inline-rfq-errors {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-size: 0.94rem;
}

.inline-rfq-success {
  background: #edf8ef;
  border: 1px solid #bedfc3;
  color: #1f5a2a;
}

.inline-rfq-errors {
  background: #fff1f0;
  border: 1px solid #f0c0bc;
  color: #8a241b;
}

.inline-rfq-form {
  display: grid;
  gap: 1rem;
}

.inline-rfq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.rfq-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23616161' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem !important;
  cursor: pointer;
  font-weight: 500;
}

.rfq-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.09);
}

.form-group {
  display: grid;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #d9d3cb;
  background: #fff;
  font: inherit;
  color: var(--text-dark);
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 132px;
  resize: vertical;
}

.field-help {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.45;
}

.field-errors {
  font-size: 0.82rem;
  color: #b42318;
}

.inline-rfq-actions {
  display: flex;
  justify-content: flex-start;
}

.quick-block p,
.rich-text p,
.product-desc p,
.product-desc li,
.sidebar-muted,
.final-cta p,
.related-card p {
  color: #4d4d4d;
  line-height: 1.65;
}

.bullet-list,
.product-desc ul,
.rich-text ul,
.rich-text ol {
  padding-left: 1.2rem;
  margin: 0;
}

.bullet-list li + li,
.product-desc li + li {
  margin-top: 0.45rem;
}

.product-gallery {
  margin-top: 0.2rem;
}

.product-gallery-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #222;
  margin: 0 0 0.85rem;
}

.video-block {
  margin-top: 1.2rem;
}

.product-spec-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid #e9e1d8;
}

.product-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.product-spec-table th,
.product-spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #efe8de;
  text-align: left;
  vertical-align: top;
}

.product-spec-table th {
  width: 35%;
  background: #faf6f1;
  color: #544c45;
  font-weight: 700;
}

.product-spec-table td {
  background: #fff;
  color: #232323;
}

.product-spec-table tbody tr:last-child th,
.product-spec-table tbody tr:last-child td {
  border-bottom: none;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.rich-text p + p,
.product-desc p + p {
  margin-top: 0.9rem;
}

.product-desc {
  margin-top: 1rem;
  border-top: 1px solid #f0e8dd;
  padding-top: 0.4rem;
}

.related-section + .related-section {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid #efe5d9;
}

.related-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e9dfd4;
  border-radius: 16px;
  overflow: hidden;
}

.related-card__image {
  height: 260px;
  background: #f4efe8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.related-card__body {
  padding: 1rem;
}

.related-card__eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.45rem;
}

.related-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.related-card h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.related-card--article .related-card__body {
  padding-top: 1.15rem;
}

.final-cta {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #fbefe8 0%, #fff8f4 100%);
  border: 1px solid #ecd8ca;
  box-sizing: border-box;
  max-width: 100%;
}

.final-cta__text p {
  margin: 0;
}

.sidebar-card {
  display: grid;
  gap: 0.85rem;
}

.sidebar-muted {
  margin: 0;
  font-size: 0.92rem;
}

.product-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f1ede7, #faf7f2);
}

.product-main {
  padding: 1.6rem;
}

.main-content {
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 1.5rem;
}

.variants-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #e9e1d8;
}

.variants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}

.variants-table thead th {
  background: #faf6f1;
  font-weight: 700;
  color: #524a42;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 2px solid #ece2d8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.variants-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1e8de;
  color: #212121;
  vertical-align: middle;
}

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

.variants-thumb {
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: block;
}

.variants-notes-col {
  white-space: normal;
  max-width: 220px;
  color: #616161;
}

.variants-foot {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.section-label {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.meta-row {
  font-size: 0.92rem;
  color: var(--text-light);
}

.meta-label {
  font-weight: 700;
  color: var(--text-dark);
}

.export-banner {
  margin: 2rem 3rem 3rem;
}

.export-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-radius: 18px;
  background: #f5f2ee;
  border: 1px solid #e4d8cc;
  box-sizing: border-box;
  width: 100%;
}

.export-banner__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.export-banner__p {
  font-size: 0.98rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.export-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .hero-panel,
  .content-grid,
  .main-content {
    grid-template-columns: 1fr;
  }

  .content-side {
    order: -1;
  }

  .main-content > aside,
  .content-side,
  .content-main,
  .product-main,
  .sidebar-card,
  .product-image-panel,
  .export-banner,
  .export-banner__inner {
    width: 100%;
    max-width: none;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .inline-rfq-grid {
    grid-template-columns: 1fr;
  }

  .variant-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 968px) {
  .page-header,
  .product-shell,
  .compat-banner-wrap,
  .main-content,
  .export-banner {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .page-header {
    padding-top: 2.2rem;
    padding-bottom: 1rem;
  }

  .product-shell {
    margin-top: 1.3rem;
  }

  .hero-image-frame {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .page-header,
  .product-shell,
  .compat-banner-wrap,
  .main-content,
  .export-banner {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .hero-panel,
  .content-grid,
  .content-main,
  .content-side,
  .main-content {
    gap: 0.85rem;
  }

  .hero-meta-grid {
    grid-template-columns: 1fr;
  }

  .content-card,
  .hero-content,
  .hero-media,
  .sidebar-card,
  .product-image-panel,
  .product-main,
  .final-cta {
    padding: 0.85rem;
    border-radius: 14px;
  }

  .quick-block,
  .hero-meta-card,
  .compat-banner,
  .export-banner__inner {
    padding: 0.85rem;
    border-radius: 14px;
  }

  .hero-title-block {
    padding-bottom: 0.7rem;
  }

  .hero-title-block .product-title {
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .hero-title-block .product-subtitle,
  .hero-summary p,
  .quick-block p,
  .sidebar-muted,
  .final-cta p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .export-banner {
    margin: 1.1rem 0 1.4rem;
    padding-left: 0;
    padding-right: 0;
  }

  .export-banner__title {
    font-size: 1.08rem;
  }

  .export-banner__p {
    font-size: 0.93rem;
  }

  .cta-btn,
  .quote-btn,
  .btn-link-small,
  .export-banner__btn {
    width: 100%;
  }

  .hero-cta-row,
  .final-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .product-gallery-title,
  .quick-block h2,
  .related-section h2,
  .final-cta h2,
  .product-desc h2,
  .product-section-title,
  .sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 0.55rem;
  }

  .product-spec-table,
  .product-spec-table tbody,
  .product-spec-table tr,
  .product-spec-table th,
  .product-spec-table td {
    display: block;
    width: 100%;
  }

  .product-spec-table tr {
    margin-bottom: 0.55rem;
    border: 1px solid #e9dfd4;
    border-radius: 12px;
    overflow: hidden;
  }

  .product-spec-table th {
    width: 100%;
    padding: 9px 14px;
    border-bottom: 1px solid #e9dfd4;
  }

  .product-spec-table td {
    padding: 10px 14px;
    border-bottom: none;
  }
}

/* ===================================================
   TAB NAVIGATION
   =================================================== */

.product-tabs {
  margin-top: 1.5rem;
  display: grid;
  gap: 0;
}

.tab-nav {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 20px 20px 0 0;
  padding: 0.5rem 0.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: 0 2px 8px rgba(43, 32, 20, 0.04);
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1.15rem;
  border-radius: 14px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: #f5ede8;
  color: var(--primary-color);
}

.tab-btn.is-active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.22);
}

.tab-panels {
  background: transparent;
  display: grid;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.tab-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.tab-panel.is-active {
  display: grid;
}

/* ===================================================
   VARIANT IMAGE COLLAGE
   =================================================== */

/* ── Hero thumbnail strip ── */
.hero-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.hero-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid #e0d9d0;
  background: #faf7f2;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.18s, transform 0.15s;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.hero-thumb:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.hero-thumb.is-active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(198,40,40,0.18);
}

/* ── Collage (kept for backward compat, hidden on product page now) ── */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 360px;
}

.collage-grid--1 { grid-template-columns: 1fr; }
.collage-grid--2 { grid-template-rows: 1fr; min-height: 220px; }
.collage-grid--3 .collage-cell:first-child { grid-column: 1 / -1; }

.collage-cell {
  background: linear-gradient(135deg, #f1ede7, #faf7f2);
  overflow: hidden;
  position: relative;
  min-height: 155px;
  cursor: pointer;
}

.collage-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.collage-cell:hover img { transform: scale(1.04); }

.collage-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(43, 47, 51, 0.72), transparent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1rem 0.65rem 0.42rem;
  text-align: center;
  pointer-events: none;
}

/* ===================================================
   MODEL LINK CARDS (Machine Models tab)
   =================================================== */

.section-intro {
  font-size: 0.94rem;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

.model-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.model-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  background: #fcfaf7;
  border: 1px solid #efe7dc;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.model-link-card:hover {
  border-color: rgba(198, 40, 40, 0.42);
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.08);
  transform: translateY(-2px);
}

.model-link-card__make {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 600;
}

.model-link-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.model-link-card__action {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.model-link-card--unlisted {
  border-style: dashed;
  background: #fff9f3;
  border-color: #f5c9a4;
}

.model-link-card--unlisted .model-link-card__make,
.model-link-card--unlisted .model-link-card__name {
  color: #7d4a1e;
}

/* ===================================================
   MAKE-GROUPED MODEL LIST
   =================================================== */

.make-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.make-group__header {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  background: linear-gradient(135deg, #fff0ec, #fde8e2);
  border: 1px solid rgba(198, 40, 40, 0.18);
  border-radius: 8px;
  padding: 0.38rem 0.75rem;
  margin-bottom: 0.65rem;
}

.make-group__models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.model-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: #f5f2ee;
  border: 1px solid #e4d8cc;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.model-chip:hover {
  background: #fff;
  border-color: rgba(198, 40, 40, 0.45);
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.1);
}

@media (max-width: 640px) {
  .make-groups {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }
}

/* ===================================================
   MODEL BADGE (product_model_detail hero)
   =================================================== */

.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.1), rgba(142, 0, 0, 0.08));
  border: 1px solid rgba(198, 40, 40, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0.55rem 0 0.7rem;
  letter-spacing: 0.02em;
}

/* ===================================================
   NAVIGATION FOOTER (back links on model page)
   =================================================== */

.page-nav-footer {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(43, 32, 20, 0.04);
  margin-top: 0;
}

.page-nav-footer .btn-link-small {
  font-size: 0.84rem;
}

/* ===================================================
   HERO CHIP — MORE COUNT VARIANT
   =================================================== */

.hero-chip--more {
  background: #fff8e1;
  color: #7d4a1e;
  border: 1px solid #ead9a0;
  font-weight: 600;
}

/* ===================================================
   MOBILE TAB + COLLAGE ADJUSTMENTS
   =================================================== */

@media (max-width: 968px) {
  .tab-btn {
    padding: 0.56rem 0.9rem;
    font-size: 0.88rem;
  }

  .model-links-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .collage-grid {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .tab-nav {
    padding: 0.4rem;
    border-radius: 16px 16px 0 0;
  }

  .tab-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.83rem;
    border-radius: 10px;
  }

  .model-links-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.55rem;
  }

  .collage-grid {
    min-height: 220px;
  }

  .collage-cell {
    min-height: 100px;
  }

  .page-nav-footer {
    padding: 0.85rem;
    border-radius: 14px;
  }
}
