/* Maxi Pro Products section */
.maxipro-products {
  background: #fff;
  padding: 76px 0;
  color: #173d82;
  font-family: Arial, Helvetica, sans-serif;
}

.maxipro-products__inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.maxipro-products__header {
  text-align: center;
  margin: 0 auto 30px;
}

.maxipro-products__eyebrow {
  margin: 0 0 8px;
  color: #f5222d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.maxipro-products__title {
  margin: 0;
  color: #173d82;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.2;
}

.maxipro-products__accent {
  display: block;
  width: 58px;
  height: 4px;
  margin: 15px auto;
  background: #f7bd00;
}

.maxipro-products__subtitle {
  margin: 0;
  color: #405675;
  font-size: 16px;
  line-height: 1.6;
}

.maxipro-products__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.maxipro-products__tab {
  padding: 11px 20px;
  border: 1px solid #dce3ed;
  border-radius: 30px;
  background: #fff;
  color: #173d82;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.maxipro-products__tab:hover,
.maxipro-products__tab.is-active {
  border-color: #f5222d;
  background: #f5222d;
  color: #fff;
}

.maxipro-products__carousel {
  position: relative;
  padding: 0 42px;
}

.maxipro-products__panels {
  min-width: 0;
}

.maxipro-product-panel[hidden] {
  display: none !important;
}

.maxipro-product-panel .products-view {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 18px;
}

.maxipro-product-panel .products-view::-webkit-scrollbar {
  display: none;
}

.maxipro-product-panel .product-card.views-row {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 66px) / 4);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 5px;
  background: #fff;
  scroll-snap-align: start;
  transition: box-shadow .2s ease, transform .2s ease;
}

.maxipro-product-panel .product-card.views-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgb(23 61 130 / 10%);
}

.maxipro-product-panel .views-field-field-product-images img {
  display: block;
  width: 100%;
  height: 220px;
  padding: 12px;
  box-sizing: border-box;
  object-fit: contain;
  background: #f8f9fb;
}

.maxipro-product-panel .views-field-field-brand,
.maxipro-product-panel .views-field-title,
.maxipro-product-panel .views-field-field-product-sub-category,
.maxipro-product-panel .views-field-field-short-description,
.maxipro-product-panel .views-field-view-node {
  margin-right: 17px;
  margin-left: 17px;
}

.maxipro-product-panel .views-field-field-brand {
  margin-top: 18px;
  color: #f5222d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.maxipro-product-panel .views-field-title {
  margin-top: 8px;
  line-height: 1.4;
}

.maxipro-product-panel .views-field-title a {
  color: #173d82;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.maxipro-product-panel .views-field-title a:hover {
  color: #f5222d;
}

.maxipro-product-panel .views-field-field-product-sub-category {
  margin-top: 7px;
  color: #65758d;
  font-size: 13px;
}

.maxipro-product-panel .views-field-field-short-description {
  margin-top: 8px;
  color: #405675;
  font-size: 13px;
  line-height: 1.6;
}

.maxipro-product-panel .views-field-view-node {
  margin-top: 17px;
  margin-bottom: 20px;
}

.maxipro-product-panel .views-field-view-node a {
  color: #f5222d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none;
}

.maxipro-products__arrow {
  position: absolute;
  z-index: 2;
  top: 42%;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce3ed;
  border-radius: 50%;
  background: #fff;
  color: #173d82;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 3px 12px rgb(0 0 0 / 7%);
}

.maxipro-products__arrow:hover {
  border-color: #f5222d;
  background: #f5222d;
  color: #fff;
}

.maxipro-products__arrow:disabled {
  opacity: .35;
  cursor: default;
}

.maxipro-products__arrow--prev {
  left: 0;
}

.maxipro-products__arrow--next {
  right: 0;
}

.maxipro-products__footer {
  margin-top: 22px;
  text-align: center;
}

.maxipro-products__view-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid #f5222d;
  border-radius: 3px;
  background: #f5222d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  text-decoration: none;
}

.maxipro-products__view-all:hover {
  background: #d91620;
  color: #fff;
}

@media (max-width: 900px) {
  .maxipro-product-panel .product-card.views-row {
    flex-basis: calc((100% - 22px) / 2);
  }

  .maxipro-product-panel .views-field-field-product-images img {
    height: 200px;
  }
}

@media (max-width: 560px) {
  .maxipro-products {
    padding: 52px 0;
  }

  .maxipro-products__inner {
    width: calc(100% - 24px);
  }

  .maxipro-products__subtitle {
    font-size: 14px;
  }

  .maxipro-products__tabs {
    gap: 7px;
  }

  .maxipro-products__tab {
    padding: 9px 13px;
    font-size: 12px;
  }

  .maxipro-products__carousel {
    padding: 0 28px;
  }

  .maxipro-product-panel .product-card.views-row {
    flex-basis: 100%;
  }

  .maxipro-product-panel .views-field-field-product-images img {
    height: 210px;
  }

  .maxipro-products__arrow {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}

/* Product brand labels: use Maxi Pro navy, not the red CTA color */
.maxipro-product-panel .views-field-field-brand {
  color: #173d82;
  font-weight: 800;
}

/* Refine product card typography and spacing */
.maxipro-product-panel .views-field-field-brand {
  color: #173d82;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  margin-top: 16px;
}

.maxipro-product-panel .views-field-title {
  margin-top: 7px;
  line-height: 1.35;
}

.maxipro-product-panel .views-field-title a {
  font-size: 17px;
  font-weight: 700;
}

.maxipro-product-panel .views-field-field-product-sub-category {
  margin-top: 5px;
  font-size: 12px;
}

.maxipro-product-panel .views-field-view-node {
  margin-top: 12px;
  margin-bottom: 18px;
}

.maxipro-product-panel .views-field-view-node a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

