/* Compact category overview shared by the three homepages. */
.index-product.home-product-categories {
  padding: .95rem 0 .25rem;
  scroll-margin-top: 64px;
}
.home-product-categories > .cn1 {
  position: relative;
  z-index: 1;
}
.home-product-categories .container {
  position: relative;
  z-index: 1;
}
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
  margin-top: .4rem;
}
.home-category-card {
  display: grid;
  grid-template-columns: 48% minmax(0, 1fr);
  min-width: 0;
  min-height: 184px;
  border: 1px solid #e6e6e6;
  border-radius: .1rem;
  background: #fff;
  color: #000;
  transition: box-shadow .8s;
}
.home-category-card:hover,
.home-category-card:focus-visible {
  box-shadow: 0 .03rem .15rem rgba(3, 49, 126, .15);
}
.home-category-card:focus-visible {
  outline: 3px solid #154693;
  outline-offset: 3px;
}
.home-category-image {
  position: relative;
  min-width: 0;
  align-self: stretch;
  border-radius: .1rem 0 0 .1rem;
  overflow: hidden;
  background: #fff;
}
.home-category-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
}
.home-category-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px 16px 18px 10px;
}
.home-category-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: color .8s;
}
.home-category-card:hover .home-category-title,
.home-category-card:focus-visible .home-category-title { color: #154693; }
.home-category-description {
  margin: 8px 0 14px;
  color: #999;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.home-category-description:empty { display: none; }
.home-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  color: #154693;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.home-category-link svg {
  flex: none;
  width: 14px;
  height: 12px;
  transform: translateX(-.1rem);
  transition: transform .8s;
}
.home-category-card:hover .home-category-link svg,
.home-category-card:focus-visible .home-category-link svg { transform: translateX(0); }
@media (min-width: 768px) and (max-width: 1099px) {
  .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .index-product.home-product-categories { padding: .95rem 0 .25rem; }
  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
  }
  .home-category-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .home-category-image {
    flex: none;
    height: 96px;
    border-radius: .1rem .1rem 0 0;
  }
  .home-category-image img { padding: 4px 8px 0; }
  .home-category-content { flex: 1; padding: 8px 12px 12px; }
  .home-category-title { font-size: 15px; min-height: 2.8em; }
  .home-category-description { display: none; }
  .home-category-link { font-size: 12px; gap: 4px; }
  .home-category-link svg { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-category-card,
  .home-category-title,
  .home-category-link svg { transition: none; }
  .home-category-link svg { transform: none; }
}
