/* Keep complete category names readable, including the longer laboratory groups. */
#product-catalog .product-category ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  overflow: visible;
  white-space: normal;
}
#product-catalog .product-category ul li { display: flex; width: auto; min-width: 0; padding: 0; }
#product-catalog .product-category ul li .item {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 24px;
  align-items: stretch;
  text-align: center;
  background: #fff;
  color: #252a30;
  border: 1px solid #dfe3e6;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#product-catalog .product-category ul li .item::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  background: #a41626;
  opacity: 0;
  transition: opacity .2s ease;
}
#product-catalog .product-category ul li .item h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  text-align: center;
  color: #252a30;
  background: transparent;
  margin: 0 0 18px;
  min-height: 4.35em;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}
#product-catalog .product-category ul li .item .pic { height: 160px; margin-top: auto; background: #fff; }
#product-catalog .product-category ul li .item .pic img { max-width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
#product-catalog .product-category ul li .item:hover,
#product-catalog .product-category ul li .item:focus-visible { transform: translateY(-4px); border-color: #a41626; box-shadow: 0 10px 24px rgba(30, 38, 46, .09); }
#product-catalog .product-category ul li .item:hover::before,
#product-catalog .product-category ul li .item:focus-visible::before { opacity: 1; }
#product-catalog .product-category ul li .item:hover .pic img { transform: scale(1.035); }
#product-catalog .product-category ul li .item:focus-visible { outline: 2px solid #a41626; outline-offset: 3px; }

.index-box3-swiper .item {
  flex-direction: column;
  align-items: stretch;
  height: auto;
  min-height: 360px;
  padding: 28px;
  background: #fff;
  border: 1px solid #dfe3e6;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.index-box3-swiper .item .desc { position: static; padding: 0; }
.index-box3-swiper .item .desc h3 {
  height: auto;
  min-height: 4.35em;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  text-align: center;
  color: #252a30;
  background: transparent;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.index-box3-swiper .item .desc h3::after { display: none; }
.index-box3-swiper .item .pic { display: flex; align-items: center; justify-content: center; height: 230px; margin-top: 18px; background: #fff; }
.index-box3-swiper .item .pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.index-box3-swiper .item:hover,
.index-box3-swiper .item:focus-visible { border-color: #a41626; box-shadow: inset 0 3px #a41626; }
.index-box3-swiper .item:hover .pic img { transform: scale(1.035); }
.index-box3-swiper .item:focus-visible { outline: 2px solid #a41626; outline-offset: -3px; }
@media (max-width: 1100px) {
  #product-catalog .product-category ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .index-box3-swiper .item { padding: 20px; }
  .index-box3-swiper .item .desc h3 { font-size: 18px; }
}
@media (max-width: 600px) {
  #product-catalog .product-category ul { gap: 10px; }
  #product-catalog .product-category ul li .item { padding: 14px; }
  #product-catalog .product-category ul li .item h3 { min-height: 5.8em; font-size: 14px; }
  #product-catalog .product-category ul li .item .pic { height: 125px; }
  .index-box3-swiper .item .pic { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  #product-catalog .product-category ul li .item,
  #product-catalog .product-category ul li .item .pic img,
  .index-box3-swiper .item,
  .index-box3-swiper .item .pic img { transition: none; }
}

#product-catalog .product-category ul li .item[aria-current="page"] { border-color: #a41626; box-shadow: inset 0 0 0 1px #a41626; background: #fcf8f8; }
#product-catalog .product-category ul li .item[aria-current="page"]::before { opacity: 1; }
