/* 木屿 H5 · 购物袋页（忠实移植 cart.wxss，rpx → rem：数值 ÷ 100） */

.cart-page {
  padding: 0 0.24rem calc(3.3rem + env(safe-area-inset-bottom));
}

.cart-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.18rem 0.08rem 0.26rem;
}

.cart-title {
  display: block;
  margin-top: 0.07rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02rem;
  line-height: 1.1;
}

.cart-count {
  display: flex;
  align-items: baseline;
  padding-bottom: 0.07rem;
  color: #8d8678;
}

.cart-count-num {
  font-size: 0.4rem;
  line-height: 1;
}

.cart-count-label {
  margin-left: 0.06rem;
  font-size: 0.18rem;
  letter-spacing: 0.01rem;
}

/* 包邮进度卡 */
.shipping-card {
  padding: 0.22rem 0.24rem 0.2rem;
  border: 0.01rem solid rgba(80, 94, 68, 0.09);
  border-radius: 0.24rem;
  background: #edf0e4;
}

.shipping-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shipping-label {
  display: flex;
  align-items: center;
  color: #59614f;
  font-size: 0.2rem;
  letter-spacing: 0.005rem;
}

.shipping-label .icon {
  width: 0.29rem;
  height: 0.29rem;
  margin-right: 0.09rem;
}

.shipping-strong {
  color: #314537;
  font-weight: 600;
}

.shipping-threshold {
  color: #8f9688;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.17rem;
  letter-spacing: 0.01rem;
}

.shipping-track {
  overflow: hidden;
  height: 0.05rem;
  margin-top: 0.18rem;
  border-radius: 9.99rem;
  background: rgba(74, 91, 65, 0.12);
}

.shipping-fill {
  height: 100%;
  border-radius: 9.99rem;
  background: linear-gradient(90deg, #536b55, #8da080);
  transition: width 0.35s ease;
}

/* 购物袋列表 */
.cart-list {
  margin-top: 0.2rem;
}

.cart-item {
  display: flex;
  align-items: stretch;
  margin-bottom: 0.16rem;
  padding: 0.2rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.06);
  border-radius: 0.28rem;
  background: #fffcf6;
}

.check-hit {
  display: flex;
  align-items: center;
  flex: none;
  padding-right: 0.16rem;
  cursor: pointer;
}

.check-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.34rem;
  height: 0.34rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.24);
  border-radius: 50%;
  background: transparent;
  color: #fffcf6;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.check-box--on {
  border-color: #20372c;
  background: #20372c;
}

.check-box .icon {
  width: 0.2rem;
  height: 0.2rem;
}

.item-media {
  flex: none;
  overflow: hidden;
  width: 1.58rem;
  height: 1.96rem;
  border-radius: 0.2rem;
  cursor: pointer;
}

.item-image {
  width: 100%;
  height: 100%;
}

.item-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 0.02rem 0 0.02rem 0.2rem;
}

.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.item-title-block {
  flex: 1;
  min-width: 0;
  padding-right: 0.1rem;
}

.item-name {
  display: block;
  overflow: hidden;
  color: #2d3028;
  font-size: 0.27rem;
  font-weight: 500;
  letter-spacing: 0.005rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.item-title-block .product-en {
  margin-top: 0.04rem;
}

.item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.42rem;
  height: 0.42rem;
  color: #b7b0a3;
  cursor: pointer;
}

.item-remove .icon {
  width: 0.24rem;
  height: 0.24rem;
}

.item-spec {
  align-self: flex-start;
  margin-top: 0.14rem;
  padding: 0.05rem 0.12rem;
  border-radius: 0.06rem;
  background: #f3eee4;
  color: #8f887b;
  font-size: 0.18rem;
  letter-spacing: 0.005rem;
}

.item-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}

.item-bottom .price {
  color: #30342b;
  font-size: 0.34rem;
}

.stepper {
  display: flex;
  align-items: center;
  height: 0.48rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.12);
  border-radius: 9.99rem;
}

.step-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.44rem;
  height: 100%;
  color: #45483f;
  cursor: pointer;
}

.step-btn .icon {
  width: 0.18rem;
  height: 0.18rem;
}

.step-btn--muted {
  color: #c8c2b7;
}

.step-value {
  width: 0.4rem;
  color: #393c33;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.21rem;
  line-height: 1;
  text-align: center;
}

.cart-note {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.06rem 0 0;
  color: #9c9587;
  font-size: 0.18rem;
  letter-spacing: 0.005rem;
}

.cart-note .icon {
  width: 0.25rem;
  height: 0.25rem;
  margin-right: 0.08rem;
  color: #7f8b76;
}

/* 空态 */
.empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.54rem 0 0.36rem;
}

.empty-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
}

.empty-ring {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 0.01rem solid rgba(36, 38, 31, 0.11);
  border-radius: 50%;
}

.empty-ring::before {
  position: absolute;
  top: 0.22rem;
  right: 0.22rem;
  bottom: 0.22rem;
  left: 0.22rem;
  border: 0.01rem dashed rgba(36, 38, 31, 0.09);
  border-radius: 50%;
  content: "";
}

.empty-bag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.26rem;
  height: 1.26rem;
  border-radius: 50%;
  background: #e7eadf;
  color: #415547;
}

.empty-bag .icon {
  width: 0.52rem;
  height: 0.52rem;
}

.empty-spark {
  position: absolute;
  color: #bba77d;
  font-size: 0.2rem;
}

.empty-spark--one {
  top: 0.4rem;
  right: 0.48rem;
}

.empty-spark--two {
  bottom: 0.26rem;
  left: 0.58rem;
  font-size: 0.14rem;
}

.empty-title {
  margin-top: 0.26rem;
  font-size: 0.42rem;
  font-weight: 500;
  letter-spacing: 0.01rem;
}

.empty-desc {
  margin-top: 0.12rem;
  color: #968f82;
  font-size: 0.21rem;
  letter-spacing: 0.005rem;
}

.empty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.74rem;
  margin-top: 0.3rem;
  padding: 0 0.42rem;
  border-radius: 9.99rem;
  background: #20372c;
  color: #f7f3ea;
  font-size: 0.22rem;
  letter-spacing: 0.02rem;
  cursor: pointer;
}

/* 猜你喜欢 */
.recommend-section {
  margin-top: 0.46rem;
  padding: 0 0.08rem;
}

.recommend-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.recommend-card {
  width: calc(50% - 0.09rem);
  margin-bottom: 0.28rem;
  cursor: pointer;
}

.recommend-media {
  position: relative;
  overflow: hidden;
  height: 2.4rem;
  border-radius: 0.22rem;
}

.recommend-image {
  width: 100%;
  height: 100%;
}

.recommend-add {
  position: absolute;
  right: 0.14rem;
  bottom: 0.14rem;
  width: 0.44rem;
  height: 0.44rem;
}

.recommend-add .icon {
  width: 0.2rem;
  height: 0.2rem;
}

.recommend-name {
  display: block;
  overflow: hidden;
  margin-top: 0.12rem;
  color: #373a32;
  font-size: 0.23rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.recommend-price {
  display: block;
  margin-top: 0.04rem;
  color: #7c5b42;
  font-size: 0.23rem;
}

/* 底部固定结算栏 */
.checkout-bar {
  position: fixed;
  bottom: calc(1.54rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  width: calc(min(100vw, 480px) - 0.48rem);
  height: 1.12rem;
  padding: 0 0.12rem 0 0.22rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.08);
  border-radius: 0.3rem;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 0.16rem 0.4rem rgba(52, 46, 34, 0.13);
}

.checkout-all {
  display: flex;
  flex: none;
  align-items: center;
  color: #6f695c;
  font-size: 0.2rem;
  cursor: pointer;
}

.checkout-all .check-box {
  margin-right: 0.09rem;
}

.checkout-summary {
  flex: 1;
  min-width: 0;
  margin-left: 0.22rem;
  padding-left: 0.2rem;
  border-left: 0.01rem solid rgba(36, 38, 31, 0.09);
}

.checkout-total {
  display: flex;
  align-items: baseline;
}

.checkout-total-label {
  margin-right: 0.08rem;
  color: #8b8477;
  font-size: 0.18rem;
}

.checkout-price {
  color: #2e332b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.35rem;
  line-height: 1.1;
}

.checkout-hint {
  display: block;
  overflow: hidden;
  margin-top: 0.03rem;
  color: #b0a99c;
  font-size: 0.15rem;
  letter-spacing: 0.005rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pay-btn {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.04rem;
  height: 0.8rem;
  border-radius: 0.22rem;
  background: #20372c;
  color: #f8f3e9;
  font-size: 0.23rem;
  letter-spacing: 0.01rem;
  cursor: pointer;
}

.pay-btn-count {
  margin-left: 0.04rem;
  color: rgba(248, 243, 233, 0.65);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.2rem;
}

.pay-btn--disabled {
  opacity: 0.42;
}

.cart-space {
  height: 0.01rem;
}
