/* Compact home cards; each card keeps the height required by its own content. */
html .index-container[data-v-0169fc58] .waterfall-item {
  box-sizing: border-box;
  height: auto !important;
  min-height: 0 !important;
  align-self: start;
  border: 0 !important;
  outline: 0;
  border-radius: 12px;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(31, 41, 55, .11), 0 1px 4px rgba(31, 41, 55, .05) !important;
}

html .index-container[data-v-0169fc58] .waterfall-item .waterfall-item__ft {
  flex: none;
  height: auto !important;
  min-height: 0 !important;
  padding: 9px 10px 10px !important;
  background: #fff !important;
}

html .index-container[data-v-0169fc58] .waterfall-item .waterfall-item__ft__title {
  min-height: 0;
  align-items: center;
  gap: 0;
  line-height: 21px;
}

html .index-container[data-v-0169fc58] .waterfall-item .waterfall-item__ft__title .line {
  display: none;
}

html .index-container[data-v-0169fc58] .waterfall-item .waterfall-item__ft__title .value {
  min-width: 0;
  margin-left: 0;
  font-size: 15px;
  line-height: 21px;
}

html .index-container[data-v-0169fc58] .waterfall-item .waterfall-item__ft__title .value::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 14px;
  margin-right: 4px;
  border-radius: 1px;
  background: #000 !important;
  vertical-align: -1px;
}

html .index-container[data-v-0169fc58] .waterfall-item .waterfall-item__ft__desc {
  height: auto !important;
  min-height: 0 !important;
  margin: 4px 0 0 !important;
  line-height: 17px;
}

html .index-container[data-v-0169fc58] .waterfall-item .waterfall-item__ft__desc .value {
  font-size: 12px;
  line-height: 17px;
}

html .index-container[data-v-0169fc58] .waterfall-item .home-goods-card-footer {
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 5px !important;
  min-height: 26px;
  margin-top: 5px;
}

html .index-container[data-v-0169fc58] .waterfall-item .home-goods-card-footer .waterfall-item__ft__price {
  margin-top: 0;
  line-height: 20px;
}

html .index-container[data-v-0169fc58] .waterfall-item .home-goods-card-footer .sale {
  font-size: 11px;
  line-height: 15px;
}

html .index-container[data-v-0169fc58] .waterfall-item .home-goods-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px !important;
  width: 50px !important;
  min-width: 50px !important;
  height: 26px !important;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ffe535 !important;
  color: #111 !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none !important;
}

html .index-container[data-v-0169fc58] .home-goods-order-btn::before,
html .index-container[data-v-0169fc58] .home-goods-order-btn::after {
  content: none !important;
  border: 0;
}

html .index-container[data-v-0169fc58] .home-goods-order-label {
  color: inherit !important;
  font: inherit;
  pointer-events: none;
}

html .index-container[data-v-0169fc58] .home-goods-order-btn:active {
  background: #ffdc22 !important;
  transform: scale(.97);
}

/* Measured grid spans remove shared row heights in both two and three column presets. */
html .index-container[data-v-0169fc58] [data-home-masonry] {
  grid-auto-rows: 4px !important;
  row-gap: 0 !important;
  align-items: start;
}

html .index-container[data-v-0169fc58] [data-home-masonry] .waterfall-item {
  margin: 0 !important;
}

@media (max-width: 360px) {
  html .index-container[data-v-0169fc58] .waterfall-item .waterfall-item__ft {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
  html .index-container[data-v-0169fc58] .waterfall-item .waterfall-item__ft__title .value {
    font-size: 14px;
  }
  html .index-container[data-v-0169fc58] .waterfall-item .home-goods-order-btn {
    flex-basis: 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 25px !important;
  }
}

html[data-ds-homegoods="grid-three"] .index-container[data-v-0169fc58] .waterfall-item .home-goods-card-footer,
html .index-container[data-v-0169fc58][data-goods-columns="3"] .waterfall .home-goods-card-footer {
  flex-wrap: wrap;
}

html[data-ds-homegoods="grid-three"] .index-container[data-v-0169fc58] .home-goods-card-footer .waterfall-item__ft__price,
html .index-container[data-v-0169fc58][data-goods-columns="3"] .waterfall .home-goods-card-footer .waterfall-item__ft__price {
  flex: 0 0 100%;
  width: 100%;
}

html[data-ds-homegoods="grid-three"] .index-container[data-v-0169fc58] .home-goods-order-btn,
html .index-container[data-v-0169fc58][data-goods-columns="3"] .waterfall .home-goods-order-btn {
  margin-left: auto;
}

/* Preserve the optional horizontal list while keeping its text area compact. */
html[data-ds-homegoods="list"] .index-container[data-v-0169fc58] .ds-home-goods .waterfall-item__ft {
  flex: 1;
}
