/**
 * /shicai/ ingredients grid (hub cover + subcategory lists)
 */
.ingredient-wrap .title.f18 {
  font-size: 17px;
  font-weight: 600;
  color: #4a4540;
}

.ingredient-wrap .ingredient-list {
  background: #fff;
  border-radius: 4px;
  margin-bottom: 8px;
}

.ingredient-wrap .ingredient-list ul.clearfix {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 16px;
  padding: 20px 20px 28px !important;
  margin: 0;
  list-style: none;
  float: none !important;
  width: 100%;
  box-sizing: border-box;
}

.ingredient-wrap .ingredient-list ul.clearfix::before,
.ingredient-wrap .ingredient-list ul.clearfix::after {
  display: none !important;
  content: none !important;
}

.ingredient-wrap .ingredient-list ul li {
  float: none !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.ingredient-wrap .ingredient-list ul li > a:first-child {
  display: block;
  width: 100%;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f0e8;
  flex-shrink: 0;
}

.ingredient-wrap .ingredient-list ul li img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  vertical-align: top;
}

.ingredient-wrap .ingredient-list ul li span {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 10px 0 0 !important;
  min-height: 2.7em;
  padding: 0 2px;
  box-sizing: border-box;
}

.ingredient-wrap .ingredient-list ul li span a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #555;
  text-align: center;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.ingredient-wrap .ingredient-list ul li a:hover {
  color: #ff913d;
}

.ingredient-wrap .ingredient-list ul li a:hover img {
  opacity: 0.92;
}

.home-en .bread-crumbs-en .crumb-sep {
  margin: 0 6px;
  color: #999;
}

.home-en .ingredient-wrap .ingredient-list ul li span a,
.home-en .ingredient-wrap .ingredient-list ul li span {
  color: #555;
}

@media (max-width: 900px) {
  .ingredient-wrap .ingredient-list ul.clearfix {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ingredient-wrap .ingredient-list ul.clearfix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
    padding: 16px 12px 20px !important;
  }

  .ingredient-wrap .ingredient-list ul li > a:first-child {
    height: 72px;
  }
}
