.cart-title {
  padding: 0 0 25px;
  color: #333;
  font-size: 20px;
  font-weight: bold;
}

.cart-main {
  display: flex;
  justify-content: space-between;
}

.cart-main .main-left {
  width: 100%;
  max-width: 1100px;
}

.cart-product {
  display: flex;
  padding: 20px;
  margin-bottom: 24px;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  border-radius: var(--theme-border-radius);
}

.product-image {
  position: relative;
  padding-bottom: 130px;
  width: 130px;
  font-size: 0;
}

.product-image img {
  position: absolute;
  height: 100%;
  object-fit: contain;
  border-radius: var(--theme-border-radius);
}

.product-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 18px;
  width: calc(100% - 270px);
}

.product-title {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: bold;
}

.product-title:hover {
  text-decoration: underline;
}

.product-attr {
  color: #333;
  font-size: 14px;
}

.details-bottom {
  display: flex;
  flex-direction: column;
}

.original-price {
  color: #666;
}

.price {
  color: #bc2848;
}

.product-control {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  margin-left: 18px;
  height: auto;
}

.delete {
  padding-top: 8px;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.delete .iconfont::before {
  margin-right: 8px;
}

.cart-main .main-right {
  margin-left: 30px;
  width: 100%;
  max-width: 320px;
}

.cart-summary {
  position: sticky;
  top: 80px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  border-radius: var(--theme-border-radius);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  line-height: 1;
}

.column-price.price {
  font-size: 18px;
}

.summary-bar {
  width: 100%;
  height: 6px;
  background-color: var(--main-bg-color);
  border-radius: var(--theme-border-radius);
}

.summary-checkout {
  display: block;
  padding: 0;
  height: 44px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 44px;
  text-align: center;
  background-color: var(--main-bg-color);
  border-radius: var(--theme-border-radius);
}

.bind-sale {
  padding: 20px;
  margin-bottom: 25px;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  border-radius: var(--theme-border-radius);
}

.section-header {
  display: flex;
  justify-content: space-between;
  margin: -10px auto;
  font-size: 14px;
}

.section-header>div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

.section-header .header-right {
  padding-left: 20px;
}

.discount-rate {
  display: inline-block;
  padding: 6px 8px;
  color: var(--theme-color-orange);
  text-transform: uppercase;
  background-color: #FFF5E6;
}

.discount-point {
  display: inline-block;
  margin-left: 20px;
}

.total-price {
  display: inline-block;
  margin-left: 20px;
}

.header-right .delete {
  margin-left: 20px;
}

.bind-sale .cart-product {
  padding: 20px 0;
  margin-bottom: 0;
  border: 0;
  border-top: 1px dashed #e6e6e6;
}

.bind-sale .cart-product:first-child {
  margin-top: 20px;
}

.bind-sale .cart-product:last-child {
  padding-bottom: 0;
}

.product-quantity {
  flex: 1;
  color: #333;
  font-size: 14px;
  text-align: right;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 25px auto;
  width: 500px;
}

.cart-empty img {
  margin-bottom: 24px;
}

.cart-empty p {
  margin-bottom: 24px;
  font-size: 20px;
}

.cart-empty .continue-shopping {
  width: 100%;
  font-size: 18px;
  text-align: center;
}

.cart-empty .img-box {
  padding-bottom: 70%;
  max-width: 500px;
  background-color: transparent;
}

.cart-empty .img-box img {
  object-fit: contain;
}

.product-control .input-field {
  display: flex;
  padding: 0 16px;
  height: 40px;
  width: 130px;
  color: var(--themr-color-font);
  font-size: 16px;
  background-color: #fff;
  border: 1px solid var(--theme-border-color);
  border-radius: var(--theme-border-radius);
}

.product-control .input-field input {
  padding: 0 20px;
  width: 100%;
  height: 100%;
  font-size: 16px;
  text-align: center;
  border: none;
}

.product-control .input-field .quantity-button {
  color: var(--themr-color-font);
}

@media screen and (max-width: 768px) {
  .cart-title {
    padding-bottom: 16px;
  }
  .cart-main {
    flex-direction: column-reverse;
  }
  .main-right {
    margin-left: 0;
    max-width: unset;
  }
  .cart-summary {
    top: 0;
    padding: 20px 12px;
    margin-bottom: 20px;
  }
  .summary-row {
    margin-bottom: 16px;
    font-size: 14px;
  }
  .column-price.price {
    font-size: 16px;
  }
  .summary-bar {
    height: 4px;
  }
  .summary-checkout {
    height: 40px;
    line-height: 40px;
  }
  .cart-product {
    position: relative;
    margin-bottom: 20px;
    padding: 20px 12px;
  }
  .product-image {
    padding-bottom: 95px;
    width: 95px;
  }
  .original-price {
    font-size: 14px;
  }
  .price {
    font-size: 14px;
  }
  .product-details {
    flex: 1;
  }
  .product-attr,
  .details-bottom .original-price,
  .details-bottom .price {
    display: inline-block;
    width: calc(100% - 120px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .product-control {
    position: absolute;
    align-items: center;
    right: 12px;
    bottom: 20px;
  }
  .cart-empty {
    width: 80%;
  }
  .cart-main .main-right {
    margin-left: 0;
    max-width: unset;
  }
  .product-control .input-field {
    width: 120px;
  }
  .product-control .input-field input {
    padding: 0 16px;
  }
}

/* Common */
.select-field {
  position: relative;
  margin-top: 6px;
  border: 1px solid #999;
  border-radius: var(--theme-border-radius);
}

.select-field label {
  position: absolute;
  top: -6px;
  left: 8px;
  padding: 0 2px;
  color: #666;
  font-size: 12px;
  line-height: 12px;
  background-color: #fff;
}

.select-field select {
  z-index: 10;
  padding: 10px 28px 10px 10px;
  width: 80px;
  color: #333;
  font-size: 14px;
  border-radius: var(--theme-border-radius);
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-field i {
  position: absolute;
  top: calc(50% - 7px);
  right: 14px;
  color: #999;
  font-size: 14px;
  pointer-events: none;
}

.line-limit--2 {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* Common */