/* ShopForge · 购物车页 style（主题包内可编辑） */

/* RYZE /cart 补充样式 — 贴到「购物车页」或「主题通用」CSS */

.template-cart .ryze-Cart,
.Cart-section .ryze-Cart,
.Cart-section .column.row {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 80px;
  box-sizing: border-box;
}

.ryze-Cart-title {
  text-align: center;
  width: 100%;
  margin: 0;
  padding: 15px 0;
  font-family: "Open Sans", sans-serif;
  font-size: 25px;
  font-weight: 300;
  color: #1a1a1a;
}

.ryze-Cart-empty {
  text-align: center;
  padding: 24px 0 40px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  color: #4a4a4a;
}
.ryze-Cart-empty a,
.ryze-Cart-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: #8b2e1f;
  color: #fff !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 0;
  cursor: pointer;
}
.ryze-Cart-btn:hover {
  filter: brightness(1.05);
}

.ryze-Cart-form,
.ryze-Cart-table {
  width: 100%;
  border-collapse: collapse;
}
.ryze-Cart-table-header th {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(83, 58, 45, 0.15);
  color: #533a2d;
}
.ryze-CartItem td {
  padding: 20px 8px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(83, 58, 45, 0.1);
}

.ryze-CartItem__image-wrapper {
  width: 96px;
}
.ryze-CartItem__image-link {
  display: block;
  width: 88px;
  height: 88px;
  background-size: cover;
  background-position: center;
  background-color: #f3efe8;
}
.ryze-CartItem__image {
  width: 88px;
  height: 88px;
  object-fit: cover;
  display: block;
}

.ryze-CartItem__meta-title {
  display: block;
  color: #533a2d;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
}
.ryze-CartItem-remove {
  background: none;
  border: none;
  padding: 0;
  color: #8b2e1f;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
}

.ryze-CartItem__qty {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ryze-CartItem__qty-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ryze-CartItem__qty-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ryze-CartItem__qty-input,
input.cart-quantity-input {
  width: 64px;
  height: 44px;
  text-align: center;
  border: 1px solid #533a2d;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  appearance: textfield;
  -moz-appearance: textfield;
  background: #fff;
  color: #1a1a1a;
}
.ryze-CartItem__qty-input::-webkit-inner-spin-button,
.ryze-CartItem__qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ryze-CartItem__item-quantity-buttons {
  position: absolute;
  right: -36px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  width: 32px;
}
.ryze-CartItem__item-quantity-increase,
.ryze-CartItem__item-quantity-decrease {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #533a2d;
  font-size: 0 !important;
  line-height: 0;
}
.ryze-CartItem__item-quantity-increase::before,
.ryze-CartItem__item-quantity-decrease::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.ryze-CartItem__item-quantity-increase::before {
  border-bottom: 6px solid #533a2d;
}
.ryze-CartItem__item-quantity-decrease::before {
  border-top: 6px solid #533a2d;
}

.ryze-CartItem__final-price,
.ryze-CartItem__original-price,
.ryze-Cart-totalPrice {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  white-space: nowrap;
}
.ryze-CartItem__original-price {
  text-decoration: line-through;
  opacity: 0.65;
}
.ryze-Cart-totalPrice {
  font-size: 20px;
  letter-spacing: 1px;
}

.ryze-Cart-checkoutWrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-top: 28px;
  text-align: right;
}
.ryze-Cart-shippingWrapper,
.ryze-Cart-totalWrapper {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
  max-width: 360px;
}
.ryze-Cart-shippingTitle,
.ryze-Cart-totalTitle {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  color: #533a2d;
}
.ryze-Cart-checkoutButton {
  margin-top: 8px;
  min-width: 220px;
}

@media (max-width: 749px) {
  .ryze-Cart-table-header { display: none; }
  .ryze-CartItem,
  .ryze-CartItem td {
    display: block;
    width: 100%;
  }
  .ryze-CartItem {
    padding: 16px 0;
  }
  .ryze-CartItem__image-wrapper { float: left; margin-right: 12px; }
  .ryze-CartItem__meta { overflow: hidden; }
  .ryze-CartItem__qty { justify-content: flex-start; margin-top: 12px; clear: both; }
  .ryze-CartItem__price-wrapper,
  .ryze-CartItem__total-wrapper {
    text-align: left;
    margin-top: 8px;
  }
  .ryze-Cart-checkoutWrapper { align-items: stretch; }
  .ryze-Cart-shippingWrapper,
  .ryze-Cart-totalWrapper { max-width: none; justify-content: space-between; }
  .ryze-Cart-checkoutButton { width: 100%; }
}

