/* ── Variables ───────────────────────────────────────────────── */
:root {
  --red:        #BE1522;
  --red-hover:  #990617;
  --dark:       #373736;
  --black:      #111111;
  --title:      #242424;
  --body:       #777777;
  --white:      #ffffff;
  --light-bg:   #f7f7f7;
  --border:     #e0e0e0;
}

/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Lato', Arial, Helvetica, sans-serif; color: var(--title); background: var(--white); line-height: 1.6; }
a { color: var(--dark); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ──────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
main.container { padding-top: 2rem; padding-bottom: 4rem; }

/* ── Header — see full rules in the TOP BAR / SITE HEADER section below ── */
/* Logo: keep its true wide aspect ratio — don't let the flex row squish it.
   max-width:none overrides the global img{max-width:100%} that was compressing
   the width while height stayed fixed (making it look tall & narrow). */
.logo { flex: 0 0 auto; }
.site-logo-img { height: 77px; width: auto; max-width: none; display: block; }

/* ── Flash messages ───────────────────────────────────────────── */
.flash-messages { padding: 0.5rem 1rem; }
.alert { padding: 0.75rem 1rem; margin: 0.5rem 0; border-radius: 4px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn { display: inline-block; padding: 0.65rem 1.6rem; border-radius: 4px; font-weight: 600; cursor: pointer; border: none; font-size: 0.95rem; transition: background 0.2s; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); color: var(--white); text-decoration: none; }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebe5d; color: var(--white); text-decoration: none; }

/* ── Hero ────────────────────────────────────────────────────── */
/* Legacy .hero kept for safety */
.hero { text-align: center; padding: 4.5rem 1rem; background: var(--black); border-radius: 6px; margin-bottom: 2.5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.hero h1 { font-size: 2.4rem; margin-bottom: 0.8rem; color: var(--white); letter-spacing: 0.5px; }
.hero p { font-size: 1.1rem; margin-bottom: 1.8rem; color: #aaaaaa; max-width: 600px; margin-left: auto; margin-right: auto; margin-top: 0; }
.hero .btn-primary { font-size: 1rem; padding: 0.8rem 2rem; }

/* ── Homepage hero (clean white, Google-style) ──────────────── */
.home-hero {
  background: var(--white);
  margin: 0 -1rem;
  padding: 4rem 1rem 3.5rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.home-hero__logo {
  height: 90px;
  width: auto;
  margin: 0 auto 1.2rem;
  display: block;
}
.home-hero__tagline {
  font-size: 1.1rem;
  color: var(--body);
  margin-bottom: 2rem;
  font-weight: 400;
}
.home-hero__search {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  position: relative;
}
.home-hero__search-form {
  display: flex;
  height: 54px;
  border-radius: 6px;
  /* no overflow:hidden — it would clip the autocomplete dropdown.
     Rounded corners are applied to the input/button children instead. */
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.home-hero__search-input {
  flex: 1;
  padding: 0 1.2rem;
  font-size: 1rem;
  border: none;
  outline: none;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: var(--title);
  background: var(--white);
}
.home-hero__search-input::placeholder { color: #aaa; }
.home-hero__search-input { border-radius: 6px 0 0 6px; }
.home-hero__search-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  transition: background 0.15s;
  white-space: nowrap;
}
.home-hero__search-btn { border-radius: 0 6px 6px 0; }
.home-hero__search-btn:hover { background: var(--red-hover); }

/* Autocomplete dropdown for hero search */
.home-hero__search { position: relative; }
.home-hero__search #hero-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 0 0 6px 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  max-height: 380px;
  overflow-y: auto;
  text-align: left;
}

/* Feature cards row */
.home-hero__features {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.home-feature-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.4rem;
  color: var(--title);
  min-width: 160px;
  flex: 1;
  max-width: 200px;
  text-align: center;
}
.home-feature-card__icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--red);
}
.home-feature-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--title);
}
.home-feature-card__sub {
  font-size: 0.78rem;
  color: var(--body);
}

/* ── Brand strip ───────────────────────────────────────────── */
.brand-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 1rem;
  margin: 0 -1rem;
}
.brand-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.brand-strip__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--body);
  white-space: nowrap;
}
.brand-strip__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.brand-strip__img {
  height: 65px;            /* 70% larger than the previous 38px */
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}
.brand-strip__link:hover .brand-strip__img { opacity: 1; transform: translateY(-3px); }
/* Text badge fallback for brands without a logo image */
.brand-strip__badge {
  display: inline-flex;
  align-items: center;
  height: 65px;
  padding: 0 1.4rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: var(--dark);
  transition: transform 0.2s, filter 0.2s;
}
.brand-strip__link:hover .brand-strip__badge { transform: translateY(-3px); filter: brightness(1.1); }

/* ── Homepage content sections ─────────────────────────────── */
.home-sections { padding-top: 2.5rem; padding-bottom: 3rem; }
.home-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
}

@media (max-width: 700px) {
  .home-hero__logo { height: 64px; }
  .home-hero__tagline { font-size: 1rem; }
  .home-hero__search-form { height: 48px; }
  .home-feature-card { max-width: 100%; }
  .brand-strip__inner { gap: 1.5rem; }
  .brand-strip__img { height: 48px; }
  .brand-strip__badge { height: 48px; font-size: 0.95rem; padding: 0 1rem; }
}

/* ── Section headings ────────────────────────────────────────── */
h2 { font-size: 1.4rem; color: var(--title); margin-bottom: 1.2rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--red); display: inline-block; }
.categories h2, .featured-parts h2, .related-parts h2 { display: block; border-bottom: 2px solid var(--red); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }

/* ── Grids ───────────────────────────────────────────────────── */
.parts-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.category-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 2.5rem; }

.part-card { background: var(--white); border: 1px solid var(--border); border-radius: 5px; padding: 1rem; transition: box-shadow 0.2s, border-color 0.2s; }
.part-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); border-color: var(--red); }
.part-card a { color: inherit; }
.part-card strong { display: block; font-family: monospace; font-size: 0.9rem; color: var(--red); margin-bottom: 0.3rem; }
.part-card p { font-size: 0.9rem; color: var(--title); margin-bottom: 0.3rem; }
.part-card small { color: var(--body); font-size: 0.8rem; }
.price { font-weight: 700; color: var(--red); }

.category-card { background: var(--dark); color: var(--white); border-radius: 5px; padding: 1.2rem; text-align: center; font-weight: 600; font-size: 0.95rem; transition: background 0.2s; }
.category-card:not(.category-card--branded):hover { background: var(--red); color: var(--white); text-decoration: none; }

/* ── Catalog layout ──────────────────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.filters { background: var(--white); border: 1px solid var(--border); border-radius: 5px; padding: 1rem; align-self: start; }
.filters h3 { margin-bottom: 0.8rem; color: var(--title); font-size: 1rem; border-bottom: 2px solid var(--red); padding-bottom: 0.4rem; }
.filters ul { list-style: none; }
.filters li { margin-bottom: 0.4rem; }
.filters a { color: var(--dark); font-size: 0.9rem; }
.filters a:hover { color: var(--red); }

/* ── Part detail ─────────────────────────────────────────────── */
.part-detail { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 2rem; margin-bottom: 2rem; }
.part-detail h1 { font-size: 1.7rem; margin-bottom: 0.5rem; color: var(--title); }
.sku { font-family: monospace; color: var(--red); font-weight: 600; margin-bottom: 1rem; }
.part-image { max-width: 400px; border-radius: 5px; margin: 1rem 0; border: 1px solid var(--border); }
.description { margin: 1rem 0; color: var(--body); }
.specs { margin: 1.5rem 0; }
.specs table { border-collapse: collapse; width: 100%; max-width: 600px; }
.specs th, .specs td { text-align: left; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.specs th { background: var(--light-bg); width: 40%; color: var(--title); font-weight: 600; }
.specs td { color: var(--body); }
.vol-note { display: block; font-size: 0.78rem; color: var(--body); margin-top: 0.15rem; font-style: italic; }
.stock { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin: 0.5rem 0 1rem; }
.stock--instock { background: #d4edda; color: #155724; }
.stock--outofstock { background: #f8d7da; color: #721c24; }

/* ── Part badges (stock + condition) ────────────────────────── */
.part-badges { display: flex; gap: 0.5rem; align-items: center; margin: 0.8rem 0; flex-wrap: wrap; }
.condition-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.condition--new          { background: #cce5ff; color: #004085; }
.condition--used         { background: #fff3cd; color: #856404; }
.condition--refurbished  { background: #d4edda; color: #155724; }

/* ── Price enquiry tagline ───────────────────────────────────── */
.price-enquiry { margin: 1rem 0 1.5rem; padding: 0.9rem 1.2rem; background: var(--light-bg); border-left: 3px solid var(--red); border-radius: 0 4px 4px 0; }
.price-tagline { font-size: 0.95rem; color: var(--title); margin: 0; }
.btn-inline { display: inline; font-weight: 600; font-size: 0.95rem; padding: 0; border: none; background: none; }
.btn-wa    { color: #25d366; }
.btn-wa:hover { color: #1ebe5d; }
.btn-email { color: var(--red); }
.btn-email:hover { color: var(--red-hover); }

/* ── Part descriptions ───────────────────────────────────────── */
.short-desc { font-size: 1rem; color: var(--body); margin: 0.8rem 0 1.2rem; line-height: 1.6; }
.part-description { margin: 2rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.part-description h2 { font-size: 1.2rem; }
.description-body { font-size: 0.95rem; color: var(--body); line-height: 1.75; max-width: 720px; }

/* ── Contact form ────────────────────────────────────────────── */
.contact-form { max-width: 600px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 2rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--title); font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; color: var(--title); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--red); }
.req { color: var(--red); }
.whatsapp-cta { margin-top: 1.5rem; }

/* ── WhatsApp float ──────────────────────────────────────────── */
.whatsapp-float { position: fixed; bottom: 1.5rem; right: 1.5rem; background: #25d366; color: var(--white); border-radius: 50%; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,0.25); z-index: 999; transition: background 0.2s; }
.whatsapp-float:hover { background: #1ebe5d; }

/* ── Search autocomplete dropdown ────────────────────────────── */
.pn-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 0 0 5px 5px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  max-height: 420px;
  overflow-y: auto;
}
.pn-search-dropdown li a {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--title);
  text-decoration: none;
}
.pn-search-dropdown li:last-child a { border-bottom: none; }
.pn-search-dropdown li a:hover,
.pn-search-dropdown li.active a { background: var(--light-bg); }
.pn-search-dropdown .dd-sku {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.3px;
}
.pn-search-dropdown .dd-name {
  font-size: 0.83rem;
  color: var(--title);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pn-search-dropdown .dd-meta {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.pn-search-dropdown .dd-brand {
  font-size: 0.72rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 500;
}
.pn-search-dropdown .dd-stock {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
}
.pn-search-dropdown .dd-instock    { background: #d4edda; color: #155724; }
.pn-search-dropdown .dd-outofstock { background: #f8d7da; color: #721c24; }
.pn-search-dropdown .dd-empty {
  padding: 0.7rem 0.9rem;
  color: var(--body);
  font-size: 0.88rem;
  font-style: italic;
}
.pn-search-dropdown mark {
  background: #fff3cd;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; }
.pagination a { color: var(--red); font-weight: 600; }

/* ── Footer (legacy rule kept for safety) ──────────────────── */
footer { background: #1a1a1a; color: #888888; text-align: center; padding: 1.5rem 0; margin-top: 3rem; border-top: 3px solid var(--red); font-size: 0.9rem; }

@media (max-width: 700px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .hero h1 { font-size: 1.7rem; }
}

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.breadcrumb { margin-bottom: 0.8rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; font-size: 0.85rem; color: var(--body); }
.breadcrumb li + li::before { content: '›'; margin-right: 0.3rem; color: var(--border); }
.breadcrumb a { color: var(--body); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-current { color: var(--title); font-weight: 500; }

/* ── Two-column product layout ───────────────────────────────────── */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; align-items: start; }
.media-col { min-width: 0; }
.info-col { min-width: 0; }

/* ── Product name ────────────────────────────────────────────────── */
.product-name { font-size: 1.5rem; color: var(--title); margin-bottom: 0.8rem; line-height: 1.3; }

/* ── Part identifier list ────────────────────────────────────────── */
.part-ids { margin-bottom: 1rem; }
.part-id-row { display: flex; gap: 0.6rem; align-items: baseline; margin-bottom: 0.25rem; font-size: 0.9rem; }
.part-id-row dt { color: var(--body); min-width: 100px; flex-shrink: 0; font-weight: 500; }
.part-id-row dd { color: var(--title); font-weight: 500; margin: 0; }
.sku-value { font-family: monospace; color: var(--red); font-size: 1rem; font-weight: 700; }

/* ── Image gallery ───────────────────────────────────────────────── */
.product-gallery { margin-bottom: 0.8rem; }
.gallery-main { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--white); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; position: relative; }
.gallery-main-img { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; }
.gallery-main::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }
.thumb-btn { border: 2px solid var(--border); border-radius: 4px; padding: 0; cursor: pointer; background: none; overflow: hidden; width: 62px; height: 62px; flex-shrink: 0; transition: border-color 0.15s; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.thumb-btn:hover, .thumb-btn.active { border-color: var(--red); }

/* ── Gallery placeholder (no images) ────────────────────────────── */
.gallery-placeholder { border: 1px solid var(--border); border-radius: 6px; background: var(--light-bg); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; margin-bottom: 0.8rem; }
.gallery-no-image { text-align: center; color: var(--body); }
.gallery-no-image svg { color: var(--border); margin: 0 auto 0.5rem; display: block; }
.gallery-no-image p { font-size: 0.85rem; }

/* ── Global image error fallback ─────────────────────────────────── */
/* Applied automatically via JS onerror when an <img> fails to load  */
img.img-placeholder {
  background: var(--light-bg);
  object-fit: contain;
  padding: 4px;
}

/* ── Video embed ─────────────────────────────────────────────────── */
.video-section { margin-top: 1.2rem; }
.video-section-title { font-size: 0.9rem; font-weight: 600; color: var(--title); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.4px; }
.video-embed { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ── FCC regulatory badge ────────────────────────────────────────── */
.fcc-badge { display: inline-block; padding: 0.25rem 0.65rem; background: #e8f4fd; color: #0055bb; border: 1px solid #b3d9f7; border-radius: 4px; font-size: 0.78rem; font-weight: 600; font-family: monospace; letter-spacing: 0.2px; }

/* ── Category tags ───────────────────────────────────────────────── */
.part-categories { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0; }
.cat-tag { display: inline-block; padding: 0.2rem 0.65rem; background: var(--light-bg); color: var(--dark); border: 1px solid var(--border); border-radius: 3px; font-size: 0.8rem; transition: background 0.15s; }
.cat-tag:hover { background: var(--dark); color: var(--white); text-decoration: none; }

/* ── Enquiry actions ─────────────────────────────────────────────── */
.enquiry-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.6rem; }

/* ── Specifications section ──────────────────────────────────────── */
.specs-section { margin: 0 0 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.spec-block { margin-bottom: 1.4rem; }
.spec-block-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.spec-source-tag { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 3px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.spec-source-tag--verified { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.spec-source-tag--ai       { background: #f5f5f5; color: #666666; border: 1px solid #cccccc; }
.spec-ai-note { font-size: 0.8rem; color: var(--body); font-style: italic; }
.spec-table { border-collapse: collapse; width: 100%; max-width: 680px; }
.spec-table th, .spec-table td { text-align: left; padding: 0.45rem 0.8rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.spec-table th { background: var(--light-bg); width: 38%; color: var(--title); font-weight: 600; }
.spec-table--verified td { color: var(--title); }
.spec-table--ai th         { color: var(--body); font-weight: 500; }
.spec-table--ai td         { color: var(--body); font-style: italic; }
.source-link { color: var(--red); font-size: 0.85rem; }
.source-link:hover { text-decoration: underline; }

/* ── Specs not available ─────────────────────────────────────────── */
.spec-unavailable { padding: 1.2rem; background: var(--light-bg); border-radius: 5px; border: 1px dashed var(--border); max-width: 480px; }
.spec-unavailable p { font-size: 0.9rem; color: var(--body); margin-bottom: 0.8rem; }
.spec-fcc-found { color: var(--title) !important; }
.btn-outline-dark { display: inline-block; padding: 0.5rem 1.2rem; border: 2px solid var(--dark); color: var(--dark); border-radius: 4px; font-weight: 600; font-size: 0.85rem; transition: all 0.2s; }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); text-decoration: none; }

/* ── Product page responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-name { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   TOP BAR  — red background, text left, social icons right
   ═══════════════════════════════════════════════════════════════════ */
.top-bar {
  background: var(--red);
  font-size: 0.78rem;
  color: var(--white);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  gap: 1rem;
}
.top-bar__announce {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-bar__socials {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.top-bar__social {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.top-bar__social:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════════════════════
   MAIN SITE HEADER — white background, 106px tall, gray bottom border
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 106px;
  padding: 0.5rem 0;
}

/* ── Two-row nav wrapper ───────────────────────────────────────── */
.site-nav-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 0;
}

/* ── Site-nav rows ─────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.site-nav--secondary {
  border-top: 1px solid #f0f0f0;
}
.site-nav__link {
  color: var(--title);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav__link:hover { color: var(--red); border-bottom-color: var(--red); }
.site-nav__link.active { color: var(--red); border-bottom-color: var(--red); }

/* Quote List — red pill button */
.site-nav__link--cta {
  background: var(--red);
  color: var(--white) !important;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  margin-left: 0.3rem;
  border-bottom: 2px solid transparent !important;
  font-size: 0.82rem;
  font-weight: 700;
}
.site-nav__link--cta:hover {
  background: var(--red-hover);
  color: var(--white) !important;
  border-bottom-color: transparent !important;
}
.site-nav__link--cta.active {
  background: var(--red-hover);
  color: var(--white) !important;
  border-bottom-color: transparent !important;
}

/* ── Header search ─────────────────────────────────────────────── */
.header-search {
  position: relative;
  flex-shrink: 0;
}
.header-search__form {
  display: flex;
  align-items: stretch;
  height: 40px;
}
.header-search__form input {
  width: 220px;
  padding: 0 0.85rem;
  border: 1px solid #dddddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 0.83rem;
  color: var(--title);
  outline: none;
  background: var(--white);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
}
.header-search__form input:focus { border-color: var(--red); }
.header-search__form input::placeholder { color: #aaaaaa; font-style: italic; }
.header-search__form button {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.header-search__form button:hover { background: var(--red-hover); }

/* ── Burger button ─────────────────────────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--title);
  border-radius: 2px;
  transition: all 0.2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE NAV DRAWER
   ═══════════════════════════════════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -290px;
  width: 280px;
  height: 100vh;
  background: #1a1a1a;
  z-index: 1000;
  transition: right 0.25s ease;
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav__inner {
  padding: 4.5rem 1.5rem 2rem;
}
.mobile-nav__search {
  display: flex;
  margin-bottom: 1.5rem;
  gap: 0;
}
.mobile-nav__search input {
  flex: 1;
  padding: 0.55rem 0.8rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 0.88rem;
  outline: none;
}
.mobile-nav__search button {
  padding: 0.55rem 0.85rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
}
.mobile-nav nav a {
  color: #cccccc;
  padding: 0.75rem 0;
  border-bottom: 1px solid #2a2a2a;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.mobile-nav nav a:hover { color: var(--white); }

/* Overlay */
.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-nav__overlay.open { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
  background: #1a1a1a;
  border-top: 3px solid var(--red);
  margin-top: 4rem;
  padding-top: 3rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-col h4,
.footer-col__title {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: #888888;
  font-size: 0.88rem;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-logo {
  height: 84px;
  width: auto;
  max-width: none;        /* keep true wide ratio (override global img max-width) */
  display: block;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 1.1rem;
}
.footer-tagline {
  color: #666666;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 0.7rem;
}
.footer-social a {
  color: #666666;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.footer-social a:hover { color: var(--red); }
.site-footer__bottom {
  border-top: 1px solid #2a2a2a;
  padding: 1.2rem 0;
}
.site-footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer__bottom p {
  color: #555555;
  font-size: 0.82rem;
}
.footer-disclaimer {
  color: #444444 !important;
  font-style: italic;
  font-size: 0.78rem !important;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .site-nav-wrap { display: none; }
  .burger { display: flex; }
  .header-search__form input { width: 160px; }
  .site-header__inner { min-height: 70px; }
}

@media (max-width: 600px) {
  .top-bar__announce { font-size: 0.68rem; letter-spacing: 0.3px; }
  .header-search { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .site-footer__bottom .container { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT PAGE — red section + white card (matches live site)
   ═══════════════════════════════════════════════════════════════════ */

/* Pull outside the container so it goes full-width */
main.container { padding-top: 0.5rem; }

.product-page-section {
  background: var(--red);
  margin: 0.5rem -1rem 0;        /* bleed past container padding */
  padding: 2rem 1rem 2.5rem;
}

/* Brand / category heading inside the red section */
.product-page-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.product-page-header__title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.product-page-header__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

/* White card — 25px radius, matches Elementor card on live site */
.product-card {
  background: var(--white);
  border-radius: 25px;
  padding: 2rem 2.5rem;
  max-width: 1160px;
  margin: 0 auto;
}

/* Override part-detail inside the card — remove its own border/bg */
.product-card .part-detail {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

/* Below-fold sections — add top padding back */
.specs-section,
.part-description,
.related-parts {
  padding-top: 2rem;
}

@media (max-width: 860px) {
  .product-page-section { margin: 0.5rem -1rem 0; padding: 1.5rem 1rem 2rem; }
  .product-card { padding: 1.5rem 1.2rem; border-radius: 16px; }
  .product-page-header__title { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   PARTS CATALOGUE INDEX PAGE
   ═══════════════════════════════════════════════════════════════════ */

/* ── Catalogue hero band ──────────────────────────────────────────── */
.catalogue-hero {
  background: var(--dark);
  margin: 0 -1rem;
  padding: 2rem 1rem 2.5rem;
}
.catalogue-hero .container { max-width: 1200px; margin: 0 auto; }
.catalogue-hero__title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.catalogue-hero__title em { color: var(--red); font-style: normal; }
.catalogue-hero__sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.2rem;
}
.catalogue-search-form {
  display: flex;
  max-width: 580px;
  height: 46px;
  border-radius: 5px;
  /* no overflow:hidden — it would clip the autocomplete dropdown */
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.catalogue-search-form input {
  flex: 1;
  padding: 0 1rem;
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: var(--title);
  border-radius: 5px 0 0 5px;
}
.catalogue-search-form input::placeholder { color: #aaa; }
.catalogue-search-form button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  white-space: nowrap;
  transition: background 0.15s;
  border-radius: 0 5px 5px 0;
}
.catalogue-search-form button:hover { background: var(--red-hover); }

/* ── Active filter tags ───────────────────────────────────────────── */
.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
}
.active-filters__label {
  font-size: 0.8rem;
  color: var(--body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.15s;
  text-decoration: none;
}
.active-filter-tag:hover { background: var(--red); color: var(--white); }
.active-filters__clear {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--white);
  background: var(--red);
  font-weight: 600;
  margin-left: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.active-filters__clear:hover { background: var(--red-hover); color: var(--white); text-decoration: none; }

/* ── Catalogue two-column layout ─────────────────────────────────── */
.catalogue-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 1.2rem 0 4rem;
  align-items: start;
}

/* ── Filter panel ─────────────────────────────────────────────────── */
.filter-panel {
  position: sticky;
  top: 120px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0;
  align-self: start;
}
.filter-group {
  padding: 1rem 1rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; }
.filter-group__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--body);
  margin-bottom: 0.7rem;
}
.filter-item {
  margin-bottom: 0.3rem;
}
.filter-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--dark);
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
  gap: 0.4rem;
}
.filter-item a:hover { background: var(--light-bg); color: var(--red); }
.filter-item--active a {
  color: var(--red);
  font-weight: 700;
  background: #fff5f5;
}
.filter-item__count {
  font-size: 0.72rem;
  color: var(--body);
  background: var(--light-bg);
  padding: 0.05rem 0.4rem;
  border-radius: 10px;
  flex-shrink: 0;
}
.filter-item__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.condition-dot--new         { background: #0055cc; }
.condition-dot--refurbished { background: #1a8c4e; }
.condition-dot--used        { background: #856404; }

/* ── Results header ──────────────────────────────────────────────── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--red);
}
.results-count { font-size: 0.9rem; color: var(--title); }
.results-count strong { font-size: 1.1rem; }
.results-page  { font-size: 0.82rem; color: var(--body); }

/* ── Parts grid v2 ───────────────────────────────────────────────── */
.parts-grid-v2 {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ── Part card v2 ────────────────────────────────────────────────── */
.part-card-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
}
.part-card-v2:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: var(--red);
  transform: translateY(-1px);
  color: inherit;
}
.part-card-v2__pn {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.part-card-v2__name {
  font-size: 0.83rem;
  color: var(--title);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.part-card-v2__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
  align-items: center;
}
.part-card-v2__mfr {
  font-size: 0.7rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}
.condition-pill {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-weight: 600;
}
.condition-pill--new          { background: #cce5ff; color: #004085; }
.condition-pill--used         { background: #fff3cd; color: #856404; }
.condition-pill--refurbished  { background: #d4edda; color: #155724; }
.stock-dot {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}
.stock-dot--instock    { background: #d4edda; color: #155724; }
.stock-dot--outofstock { background: #f8d7da; color: #721c24; }

/* ── No results ──────────────────────────────────────────────────── */
.no-results {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--body);
  background: var(--light-bg);
  border-radius: 8px;
  border: 1px dashed var(--border);
}
.no-results p { font-size: 1rem; }

/* ── Pagination v2 ───────────────────────────────────────────────── */
.pagination-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination-v2__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.pagination-v2__btn:hover { background: var(--light-bg); border-color: var(--dark); color: var(--dark); }
.pagination-v2__btn--disabled { color: #bbb; cursor: default; pointer-events: none; }
.pagination-v2__pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.pagination-v2__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.4rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.85rem;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.pagination-v2__page:hover { background: var(--light-bg); border-color: var(--red); color: var(--red); }
.pagination-v2__page--current {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  font-weight: 700;
  pointer-events: none;
}
.pagination-v2__ellipsis { font-size: 0.85rem; color: var(--body); padding: 0 0.2rem; }

/* ── Catalogue responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .catalogue-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); border-radius: 6px; }
  .filter-group { border-bottom: none; border-right: 1px solid var(--border); }
  .filter-group:last-child { border-right: none; }
}
@media (max-width: 600px) {
  .catalogue-hero__title { font-size: 1.4rem; }
  .filter-panel { display: none; }
  .parts-grid-v2 { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .part-card-v2 { padding: 0.7rem 0.75rem; }
}
@media (max-width: 420px) {
  .parts-grid-v2 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════
   WORA shared components — manufacturer browse + filter
   Used by: home, About, Buy, catalogue (partials/_browse_by_manufacturer.html
   and partials/_manufacturer_filter.html). Edit here once → changes everywhere.
   ════════════════════════════════════════════════════════════════════════ */

/* Ensure every part-number search form anchors its dropdown */
[data-pn-search] { position: relative; }

/* ── Manufacturer typeahead filter ─────────────────────────────────────── */
/* Fills its container (e.g. the catalogue sidebar) so it aligns with siblings.
   On the homepage header it's capped via .mfr-browse__head .mfr-filter below. */
.mfr-filter { position: relative; width: 100%; min-width: 0; box-sizing: border-box; }
.mfr-filter__input {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--title);
  background: var(--white);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.mfr-filter__input:focus { border-color: var(--red); }
.mfr-filter__icon {
  position: absolute; right: 0.65rem; top: 50%; transform: translateY(-50%);
  color: var(--body); font-size: 0.85rem; pointer-events: none;
}
.mfr-filter__dropdown {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  max-height: 280px; overflow-y: auto; z-index: 500;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12); display: none;
}
.mfr-filter__dropdown.open { display: block; }
.mfr-filter__opt {
  padding: 0.5rem 0.8rem; font-size: 0.9rem; color: var(--title); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
}
.mfr-filter__opt:hover, .mfr-filter__opt.active { background: var(--light-bg); color: var(--red); }
.mfr-filter__count { font-size: 0.78rem; color: var(--body); white-space: nowrap; }
.mfr-filter__empty { padding: 0.6rem 0.8rem; font-size: 0.85rem; color: var(--body); }

/* ── Browse-by-Manufacturer section header ─────────────────────────────── */
.mfr-browse__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem;
}
.mfr-browse__head .home-section-title { margin-bottom: 0; }
.mfr-browse__head .mfr-filter { width: auto; min-width: 240px; max-width: 300px; }

/* ── Branded manufacturer grid (logo cards) ────────────────────────────── */
.mfr-card-logo {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 1rem; min-height: 84px; transition: transform 0.18s, box-shadow 0.18s;
}
.mfr-card-logo:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); text-decoration: none; }
.mfr-card-logo img { max-height: 52px; max-width: 100%; object-fit: contain; }

/* Branded text cards (no logo) — colour comes from [data-mfr] below */
.category-card--branded { transition: filter 0.18s, transform 0.18s; }
.category-card--branded:hover { filter: brightness(1.12); transform: translateY(-2px); text-decoration: none; }

[data-mfr="huawei"]          { background: #CF0A2C; color: #fff; }
[data-mfr="ericsson"]        { background: #0082F0; color: #fff; }
[data-mfr="nokia"]           { background: #005AFF; color: #fff; }
[data-mfr="alcatel-lucent"]  { background: #00A0AF; color: #fff; }
[data-mfr="zte"]             { background: #D61F26; color: #fff; }
[data-mfr="nortel-networks"] { background: #A50034; color: #fff; }
[data-mfr="finisar"]         { background: #003087; color: #fff; }
[data-mfr="siemens"]         { background: #009999; color: #fff; }
[data-mfr="juniper-networks"]{ background: #84BD00; color: #1a1a1a; }
[data-mfr="ciena"]           { background: #007DB6; color: #fff; }
[data-mfr="eltek"]           { background: #003E7E; color: #fff; }
[data-mfr="hp"]              { background: #0096D6; color: #fff; }
[data-mfr="emerson"]         { background: #1A1F5E; color: #fff; }
[data-mfr="cisco"]           { background: #1BA0D7; color: #fff; }
[data-mfr="delta"]           { background: #E31837; color: #fff; }
[data-mfr="nvidia"]          { background: #76B900; color: #1a1a1a; }
