/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */


/* FACTOP preview: mobile-first layout for Home 6. */
.factop-preview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 31%);
  align-items: center;
  gap: clamp(12px, 4vw, 48px);
  background: #f8f7f6;
  padding: clamp(16px, 4vw, 46px);
  margin-bottom: 24px;
}
.factop-preview-hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  margin: 0 0 8px;
}
.factop-preview-hero p { margin: 0 0 14px; }
.factop-preview-hero img { width: 100%; height: auto; display: block; }
.factop-category-heading h2 { margin: 0 0 12px; }
.factop-category-card {
  display: block;
  border: 1px solid #eaeaea;
  padding: 10px;
  color: inherit;
}
.factop-category-card img {
  width: 100%;
  height: clamp(106px, 14vw, 180px);
  object-fit: contain;
  background: #fff;
  display: block;
}
.factop-category-card h3 {
  font-size: clamp(.88rem, 1.5vw, 1.05rem);
  line-height: 1.25;
  margin: 10px 0 4px;
}
.text-top a[href^="mailto:"] { display: inline-block; padding: 6px 0; }
@media (max-width: 575px) {
  .factop-preview-hero { grid-template-columns: minmax(0, 1fr) 28%; margin-bottom: 12px; }
  .factop-preview-hero .btn { padding-inline: 12px; }
  #index .cat-wrap > .ApColumn { flex: 0 0 50%; max-width: 50%; }
}


/* FACTOP preview: brand and department grid. */
#header .header_logo img.logo {
  width: clamp(124px, 13vw, 172px);
  height: auto;
}
#index .cat-wrap {
  justify-content: center;
}
@media (min-width: 992px) {
  #index .cat-wrap > .factop-department-tile {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

