@charset "utf-8";

.cart-section {
  max-width: 1200px;
}

.row_my {
  margin: 4rem auto;
}

.cart-header {
  color: #211f20;
  text-transform: uppercase;
}

.row_my .border-bottom {
  border-bottom: #c4c2b4;
}

.cart-item {
  margin-bottom: 10px;
}

/* 图片尺寸 */
.cart-thumb img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

/* 标题与文字 */
.product-title {
  font-size: 18px;
  font-weight: 500;
}

.product-meta {
  font-size: 1.4rem;
  color: #c4c2b4;
}

.product-price {
  font-size: 1.8rem;
}

.quantity-control {
  border: 1px solid #c4c2b4;
  max-width: 110px;
  height: 32px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
  border-radius: 5px;
  margin: auto;
}

.quantity-control a {
  border: none;
  background: transparent;
  font-size: 1.6rem;
}

.quantity-control input {
  border: none;
  height: 100%;
}



/* 可选：让输入框视觉更统一 */
.qty-input {
  width: 40px;
  text-align: center;
  font-size: 1.6rem;
}

a.remove-link {
  font-size: 1.4rem;
  text-decoration: underline;
}

.itemtotals {
  color: #fa3c3e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

/* 总价右对齐 */
.item-total {
  font-size: 16px;
}

.itemtotals del {
  color: #211f20;
  font-size: 1.4rem;
}

.itemtotals .itemsave {
  font-size: 1.2rem;
}

/* cart notes  */
/* 外层容器 */
.cart-notes-group {
  position: relative;
  width: 100%;
  margin-top: 3rem;
}

/* textarea 样式 */
.cart_notes {
  width: 100%;
  min-height: 10rem;
  border: 1px solid #c4c2b4;
  border-radius: 4px;
  padding: 1rem 1.5rem 1.5rem;
  font-size: 1.6rem;
  color: #211f20;
  resize: vertical;
  background-color: #fff;
  text-indent: 75px;
  transition: all 0.25s ease;
}

/* placeholder 样式 */
.cart_notes::placeholder {
  color: #c4c2b4;
  font-size: 1.4rem;
  transition: color 0.2s ease;
}

/* label 初始位置（叠在 textarea 内） */
.cart-label {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  color: #211f20;
  font-size: 1.6rem;
  pointer-events: none;
  background: #fff;
  transition: all 0.25s ease;
  padding: 0 0.4rem;
}

/* 焦点或有内容时：label 上移、文字缩小、取消缩进 */
.cart_notes:focus,
.cart_notes:not(:placeholder-shown) {
  text-indent: 0;
}

.cart_notes:focus+.cart-label,
.cart_notes:not(:placeholder-shown)+.cart-label {
  top: -1.2rem;
  left: 1rem;
  font-size: 1.3rem;
  color: #211f20;
}

/* cart notes end  */


/* 右侧 */
.cart-summary {
  max-width: 450px;
  box-sizing: border-box;
  margin-left: auto;
  background-color: #f9f0dc;
  border-radius: 5px;
  padding: 4rem 3rem;
  box-sizing: border-box;
  font-size: 1.6rem;
}

.shippingline {
  padding: 1rem 0 0.5rem 0;
  margin: 2rem 0 0.5rem 0;
}

.totalamount {
  padding: 2rem 0 3.5rem 0;
  font-size: 2rem;
}

.btn-checkout {
  background-color: #f9dd8a;
  height: 48px;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.btn-checkout:hover {
  background-color: #fad978;
}

.accept_payments {
  max-width: 450px;
  padding: 2rem 4rem;
  margin: 1rem auto;
}

.accept_payments h3 {
  margin-bottom: 2rem;
  font-weight: bold;
}

.payments img {
  width: 40%;
  max-width: 100px;
  margin-right: 4rem;
}

/* description part  */
.cart_scoll {
  padding-top: 6rem;
}

.cart_scoll h2 {
  color: #fff;
  text-align: center;
  margin: 3rem auto;
  padding-bottom: 5rem;
}


/* —— 手机端样式 —— */
@media (max-width: 991.98px) {
  .row_my {
    margin: 1rem auto;
  }

  .product-title {
    font-size: 16px;
  }

  .product-meta {
    font-size: 14px;
  }

  .cart-thumb img {
    width: 80px;
    height: 80px;
  }

  /* 让产品信息和价格一行两列 */
  .cart-item {
    align-items: flex-start;

  }

  .cart-item>.col-8 {
    display: flex;
    align-items: flex-start;
  }

  .cart-info {
    flex: 1;
  }

  .quantity-mobile {
    margin-top: 2px;
  }

  .quantity-control {
    max-width: 100px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 2rem 0 0;
  }

  .quantity-control a {
    font-size: 2rem;
    border: none !important;
    outline: transparent;
  }

  .quantity-control input {
    border: none !important;
    outline: transparent;
  }

  .remove-link {
    margin-left: 20px !important;
  }

  /* 手机端价格右对齐，和产品信息同一行 */
  .cart-item>.col-4 {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .item-total {
    font-size: 16px;
  }

  /* cart notes text area  start */
  .cart_notes {
    font-size: 1.4rem;
    text-indent: 65px;
    /* 手机端缩进更小 */
  }

  .cart_notes::placeholder {
    font-size: 1.2rem;
  }

  .cart-label {
    font-size: 1.4rem;
  }

  .cart_notes:focus+.cart-label,
  .cart_notes:not(:placeholder-shown)+.cart-label {
    font-size: 1.2rem;
  }

  /* cart notes text area end  */

  .cart-summary {
    max-width: 100%;
  }

  .accept_payments {
    max-width: 450px;
    padding: 2rem 4rem 2rem 0rem;
    margin: 1rem auto 1rem 0;
  }
}





@media (max-width: 768px) {
  .cart_scoll {
    padding-top: 3rem;
  }

  .cart_scoll h2 {
    color: #fff;
    margin: 3rem auto;
    font-size: 5rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 500px) {}