/* ==========================================================================
   Catalog & Brand Styles
   ========================================================================== */
.mayoreo-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

@media (max-width: 820px) {
  .mayoreo-block {
    grid-template-columns: 1fr;
  }
}

.brand-feature {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-feature .eyebrow {
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.brand-feature h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.brand-feature p {
  color: #C7CEE3;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.brand-feature .btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-feature-logo {
  width: 150px;
  height: 56px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.brand-feature-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-row .brand-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-row strong {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.brand-row span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.brand-row a.link {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--thread-ui);
  white-space: nowrap;
}

.brand-logo-slot {
  width: 60px;
  height: 44px;
  flex: none;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.brand-logo-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.upsell-strip {
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px dashed var(--thread);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(238, 115, 2, 0.05);
}

.upsell-strip p {
  font-size: 0.92rem;
  max-width: 52ch;
}

/* Brand banners on dedicated catalog pages */
.brand-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.brand-banner img {
  height: 52px;
  width: auto;
  display: block;
}

.brand-banner.on-dark {
  background: var(--ink);
}

.brand-banner.on-light {
  background: var(--white);
  border: 1px solid var(--line);
}

/* Model Blocks */
.model-block {
  margin-bottom: 56px;
}

.model-head {
  margin-bottom: 20px;
}

.model-head .eyebrow {
  color: var(--thread-ui);
  display: block;
  margin-bottom: 6px;
}

.model-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
}

.model-head p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 56ch;
  margin-top: 8px;
}

.model-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.model-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  aspect-ratio: 4/5;
}

.model-gallery .wide {
  grid-column: span 1;
}

@media (max-width: 760px) {
  .model-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--canvas-deep);
  border-radius: 8px;
  padding: 24px;
}

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

.spec-grid h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 10px;
}

.spec-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.color-list span {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 12px;
  color: var(--ink);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.category-pills span {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 20px;
  color: var(--text-muted);
}

/* Comparison Tables */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0 12px;
  font-size: 0.95rem;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(16, 43, 67, 0.05);
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: middle;
  line-height: 1.5;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: none;
}

.compare-table thead th {
  background: var(--ink);
  color: var(--canvas);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 16px 22px;
  border-bottom: 3px solid var(--thread-ui);
}

.compare-table tbody td {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: background-color 0.15s ease;
}

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

.compare-table tbody tr:hover td {
  background: var(--canvas-deep);
}

/* Product comparison tables (landing/catalog) */
:not(.article-body) > .compare-table tbody tr td:first-child,
:not(.article-body) > * > .compare-table tbody tr td:first-child,
body:not(:has(.article-body)) .compare-table tbody tr td:first-child {
  background: var(--ink);
  color: var(--canvas);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  width: 22%;
  min-width: 130px;
  border-right: 3px solid var(--thread-ui);
  border-bottom-color: var(--ink-soft);
}

:not(.article-body) > .compare-table tbody tr:last-child td:first-child,
:not(.article-body) > * > .compare-table tbody tr:last-child td:first-child,
body:not(:has(.article-body)) .compare-table tbody tr:last-child td:first-child {
  border-bottom-color: var(--ink);
}

:not(.article-body) > .compare-table tbody tr:hover td:first-child,
:not(.article-body) > * > .compare-table tbody tr:hover td:first-child,
body:not(:has(.article-body)) .compare-table tbody tr:hover td:first-child {
  background: var(--ink-soft);
}

.answer-block {
  background: var(--canvas-deep);
  border-left: 3px solid var(--thread-ui);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .compare-table {
    font-size: 0.85rem;
    table-layout: fixed;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 12px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .compare-table thead th {
    font-size: 0.7rem;
    padding: 12px;
  }
  .compare-table tbody tr td:first-child {
    font-size: 0.92rem;
    min-width: 0;
  }
}
