/* 购物车卡片最终布局。该文件在旧版 shop2.css 后加载，集中接管购物车样式。 */
html {
  background: #ddd;
}

html body.cart-page#BGfff {
  width: 100% !important;
  min-width: 280px !important;
  max-width: 640px !important;
  min-height: 100vh;
  margin: 0 auto !important;
  padding: 0 0 146px !important;
  background: #f7f6f7 !important;
  box-sizing: border-box;
}

.cart-page > header,
.cart-page > .cart-benefits,
.cart-page > .shopcart {
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
}

.cart-page .cart-bottom-nav {
  right: auto !important;
  left: 50% !important;
  width: 100% !important;
  max-width: 640px !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box;
}

.cart-page .shopcart_li .cart-item {
  position: relative;
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  min-height: 120px !important;
  margin: 0 0 14px !important;
  padding: 14px 14px 14px 52px !important;
  overflow: hidden !important;
  border: 1px solid #f1e6eb !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 7px 20px rgba(64, 41, 51, .05) !important;
  box-sizing: border-box;
}

.cart-page .shopcart_li .cart-item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #f83f78;
  transform: translateY(-50%);
}

.cart-page .shopcart_li .cart-item::after {
  content: "✓";
  position: absolute;
  left: 22px;
  top: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-52%);
}

.cart-page .shopcart_li .cart-item > .cart-product-image {
  display: block !important;
  float: none !important;
  width: 84px !important;
  height: 84px !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 12px;
  background: #faf8f9;
}

.cart-page .shopcart_li .cart-item > .cart-product-image .gouwuche_img {
  display: block;
  width: 84px !important;
  height: 84px !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  transform: scale(2.35);
  transform-origin: center;
}

.cart-page .shopcart_li .cart-item > .cart-item-main {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.cart-page .shopcart_li .cart-item .shopcart_h3 {
  display: -webkit-box !important;
  height: 38px !important;
  margin: 0 0 7px !important;
  overflow: hidden;
  color: #292429 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 19px !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-page .shopcart_li .cart-item .shopcart_h3 a {
  color: #292429 !important;
  text-decoration: none;
}

.cart-page .shopcart_li .cart-item .cart-product-meta {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.cart-page .shopcart_li .cart-item .cart-spec-row,
.cart-page .shopcart_li .cart-item .cart-price-row {
  display: flex !important;
  width: 100% !important;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.cart-page .shopcart_li .cart-item .cart-spec-row {
  min-height: 27px;
}

.cart-page .shopcart_li .cart-item .cart-price-row {
  min-height: 34px;
  margin-top: 4px;
}

.cart-page .shopcart_li .cart-item .cart-product-spec {
  display: block !important;
  width: auto !important;
  min-width: 0;
  max-width: calc(100% - 32px) !important;
  padding: 4px 8px !important;
  overflow: hidden;
  border-radius: 5px;
  background: #f5f2f3;
  color: #8d858a;
  font-size: 11px;
  line-height: 16px;
  text-align: left !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

.cart-page .shopcart_li .cart-item .cart-spec-row .shop_yichu {
  position: static !important;
  display: flex !important;
  float: none !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 0 0 8px !important;
  padding: 0 !important;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  background: transparent !important;
}

.cart-page .shopcart_li .cart-item .cart-spec-row .shop_yichu img {
  display: block;
  width: 17px !important;
  height: 17px !important;
  opacity: .45;
}

.cart-page .shopcart_li .cart-item .cart-price-row .jia_1 {
  display: block;
  min-width: 0;
  margin: 0 !important;
  overflow: visible;
  color: #f83f78 !important;
  font-size: 21px !important;
  font-weight: 700;
  line-height: 27px !important;
  text-align: left !important;
  white-space: nowrap;
}

.cart-page .shopcart_li .cart-item .cart-price-row .jia_1::before {
  content: "¥";
  margin-right: 1px;
  font-size: 13px;
}

.cart-page .shopcart_li .cart-item .cart-price-row .shop_shu {
  position: static !important;
  display: flex !important;
  float: none !important;
  width: 104px !important;
  height: 34px !important;
  margin: 0 0 0 10px !important;
  padding: 2px !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 19px !important;
  background: #f5f2f3 !important;
  box-shadow: inset 0 0 0 1px #eee6e9 !important;
  color: transparent;
  font-size: 0 !important;
  line-height: 1 !important;
}

.cart-page .shopcart_li .cart-item .cart-price-row .shop_shu a {
  display: block;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #4e474b !important;
  font-size: 15px !important;
  line-height: 28px !important;
  text-align: center;
  text-decoration: none;
}

.cart-page .shopcart_li .cart-item .cart-price-row .shop_shu a:first-child,
.cart-page .shopcart_li .cart-item .cart-price-row .shop_shu a:last-child {
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(65, 43, 52, .08);
}

.cart-page .shopcart_li .cart-item .cart-price-row .shop_shu .now {
  width: 30px !important;
  font-size: 12px !important;
  font-weight: 600;
}

.cart-page .shopcart_li .cart-item > .clear {
  display: none !important;
}

@media (max-width: 380px) {
  .cart-page .shopcart_li .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 10px;
    padding-right: 10px !important;
    padding-left: 45px !important;
  }

  .cart-page .shopcart_li .cart-item::before {
    left: 13px;
  }

  .cart-page .shopcart_li .cart-item::after {
    left: 18px;
  }

  .cart-page .shopcart_li .cart-item > .cart-product-image,
  .cart-page .shopcart_li .cart-item > .cart-product-image .gouwuche_img {
    width: 76px !important;
    height: 76px !important;
  }

  .cart-page .shopcart_li .cart-item > .cart-product-image .gouwuche_img {
    transform: scale(2.1);
  }

  .cart-page .shopcart_li .cart-item .shopcart_h3 {
    font-size: 14px !important;
    line-height: 19px !important;
  }

  .cart-page .shopcart_li .cart-item .cart-product-spec {
    font-size: 11px;
  }

  .cart-page .shopcart_li .cart-item .cart-price-row .jia_1 {
    font-size: 21px !important;
  }
}

/* 固定结算区：合计信息与主按钮形成清晰、均衡的两栏。 */
.cart-page .page_buttom {
  position: fixed !important;
  z-index: 901 !important;
  right: 50% !important;
  bottom: 64px !important;
  display: block !important;
  width: 100% !important;
  max-width: 640px !important;
  min-height: 76px !important;
  height: 76px !important;
  padding: 10px 16px !important;
  border: 0 !important;
  border-top: 1px solid #f0e9ed !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 -8px 22px rgba(54, 37, 45, .07) !important;
  transform: translateX(50%) !important;
  box-sizing: border-box;
}

.cart-page .page_buttom > ul {
  display: flex !important;
  width: 100% !important;
  height: 56px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  gap: 16px;
}

.cart-page .page_buttom > ul > li {
  float: none !important;
  height: 56px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-sizing: border-box;
}

.cart-page .page_buttom .jrgwc {
  order: 1;
  display: flex !important;
  width: 120px !important;
  padding: 1px 0 0 !important;
  flex: 0 0 120px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #716a6e !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: left !important;
}

.cart-page .page_buttom .jrgwc::before,
.cart-page .page_buttom .jrgwc::after {
  content: none !important;
}

.cart-page .page_buttom .jrgwc .cart-total-label {
  color: #756e72 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 15px !important;
}

.cart-page .page_buttom .jrgwc strong {
  display: block;
  margin: 1px 0 0 !important;
  color: #f83f78 !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 24px !important;
  white-space: nowrap;
}

.cart-page .page_buttom .jrgwc strong #allprice {
  color: #f83f78 !important;
  font-size: 23px !important;
  font-weight: 700 !important;
}

.cart-page .page_buttom .jrgwc small {
  color: #aaa2a6 !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

.cart-page .page_buttom .pb-btnBox {
  order: 2;
  display: block !important;
  width: auto !important;
  min-width: 0;
  flex: 1 1 auto;
}

.cart-page .page_buttom .pb-btnBox .pb-ljgm {
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: 50px !important;
  margin: 3px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 25px !important;
  background: #f83f78 !important;
  box-shadow: 0 7px 16px rgba(248, 63, 120, .18) !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 50px !important;
  text-align: center !important;
  text-decoration: none !important;
}

@media (max-width: 380px) {
  .cart-page .page_buttom {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .cart-page .page_buttom > ul {
    gap: 10px;
  }

  .cart-page .page_buttom .jrgwc {
    width: 100px !important;
    flex-basis: 100px;
  }

  .cart-page .page_buttom .pb-btnBox .pb-ljgm {
    font-size: 16px !important;
  }
}
