/* ==========================================================================
   购物车 + 下单结算
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 步骤条
   -------------------------------------------------------------------------- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 22px 0 18px;
}
.steps .step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-mute);
}
.steps .step .no {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
}
.steps .step.on { color: var(--orange); font-weight: 700; }
.steps .step.on .no { background: var(--grad-orange); }
.steps .line {
  width: 110px;
  height: 1px;
  background: var(--border-strong);
  margin: 0 16px;
}

/* --------------------------------------------------------------------------
   2. 购物车
   -------------------------------------------------------------------------- */
.cart-panel {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-head {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
}
.cart-head .c-check { width: 40px; }
.cart-head .c-check,
.cart-row .c-check { display: flex; align-items: center; justify-content: center; }
.cart-head .c-info { flex: 1; }
.cart-head .c-price,
.cart-head .c-qty,
.cart-head .c-sum { width: 130px; text-align: center; }
.cart-head .c-act { width: 90px; text-align: center; }

.cart-row {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.cart-row:hover { background: #fffdfc; }
.cart-row:last-child { border-bottom: 0; }
.cart-row.out { opacity: .45; }

.cart-row .c-check { width: 40px; }
.cart-row .c-info {
  flex: 1;
  display: flex;
  gap: 12px;
  min-width: 0;
  align-items: flex-start;
}
.cart-row .c-info img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-gray);
}
.cart-row .c-info .tx { min-width: 0; padding-top: 2px; }
.cart-row .c-info .tx .t {
  font-size: 13px;
  line-height: 20px;
  color: var(--text);
  margin-bottom: 6px;
}
.cart-row .c-info .tx .t:hover { color: var(--orange); }
.cart-row .c-info .tx .spec {
  display: inline-block;
  padding: 1px 7px;
  background: var(--bg-gray);
  border-radius: var(--radius-s);
  font-size: 12px;
  color: var(--text-mute);
}

.cart-row .c-price,
.cart-row .c-qty,
.cart-row .c-sum {
  width: 130px;
  text-align: center;
  flex-shrink: 0;
}
.cart-row .c-price { color: var(--text-sub); font-family: var(--font-num); }
.cart-row .c-sum .price .num { font-size: 16px; }
.cart-row .c-act { width: 90px; text-align: center; flex-shrink: 0; }
.cart-row .c-act a { color: var(--text-mute); font-size: 13px; }
.cart-row .c-act a:hover { color: var(--orange); }

/* 复选框 */
.ck {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-s);
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: .15s;
  vertical-align: middle;
}
.ck:hover { border-color: var(--orange); }
.ck:checked {
  background: var(--grad-orange);
  border-color: var(--orange);
}
.ck:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 小号数量选择 */
.qty-mini {
  display: inline-flex;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-mini button {
  width: 26px;
  background: #fafafa;
  color: var(--text-sub);
  font-size: 14px;
  transition: .15s;
}
.qty-mini button:hover { background: var(--orange-soft); color: var(--orange); }
.qty-mini input {
  width: 42px;
  border: 0;
  border-left: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  text-align: center;
  font-size: 13px;
  font-family: var(--font-num);
}

/* --------------------------------------------------------------------------
   3. 底部结算条(吸底)
   -------------------------------------------------------------------------- */
.cart-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  height: 60px;
  margin-top: 12px;
  padding: 0 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .07);
  z-index: 20;
}
.cart-bar .left {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--text-sub);
}
.cart-bar .left a { color: var(--text-sub); }
.cart-bar .left a:hover { color: var(--orange); }
.cart-bar .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.cart-bar .sum-txt { font-size: 13px; color: var(--text-sub); }
.cart-bar .sum-txt .price .num { font-size: 22px; }
.cart-bar .sum-txt .price .sym { font-size: 14px; }
.cart-bar .total-qty { font-size: 13px; color: var(--text-sub); }
.cart-bar .total-qty b { color: var(--orange); font-family: var(--font-num); }
.cart-bar .btn-checkout {
  height: 46px;
  padding: 0 42px;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   4. 猜你喜欢(购物车下方)
   -------------------------------------------------------------------------- */
.cart-like { margin-top: 26px; }
.cart-like .goods-grid { grid-template-columns: repeat(5, 1fr); }

/* --------------------------------------------------------------------------
   5. 结算页
   -------------------------------------------------------------------------- */
.checkout-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
}
.checkout-panel > h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid var(--orange);
  line-height: 1.2;
}

/* 收货地址 */
.addr-list { display: flex; flex-wrap: wrap; gap: 12px; }
.addr-item {
  width: 272px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: .15s;
  position: relative;
}
.addr-item:hover { border-color: var(--orange-line); }
.addr-item.on {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.addr-item.on::after {
  content: "✓";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  border-radius: var(--radius) 0 var(--radius) 0;
}
.addr-item .who {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}
.addr-item .who b { font-weight: 700; margin-right: 10px; }
.addr-item .who span { color: var(--text-sub); font-family: var(--font-num); }
.addr-item .where {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 20px;
  min-height: 40px;
}
.addr-item.add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-size: 13px;
}
.addr-item.add .plus { font-size: 26px; line-height: 1; margin-bottom: 6px; }

/* 支付方式 */
.pay-list { display: flex; gap: 12px; }
.pay-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-sub);
  transition: .15s;
}
.pay-item:hover { border-color: var(--orange-line); }
.pay-item.on {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft);
  font-weight: 700;
}
.pay-item .ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 订单商品清单 */
.order-goods .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.order-goods .row:last-child { border-bottom: 0; }
.order-goods .row img {
  width: 66px;
  height: 66px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-gray);
}
.order-goods .row .tx { flex: 1; min-width: 0; }
.order-goods .row .tx .t {
  font-size: 13px;
  line-height: 20px;
  color: var(--text);
  margin-bottom: 4px;
}
.order-goods .row .tx .spec { font-size: 12px; color: var(--text-mute); }
.order-goods .row .unit,
.order-goods .row .num,
.order-goods .row .sub {
  width: 110px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
  font-family: var(--font-num);
  flex-shrink: 0;
}
.order-goods .row .sub { color: var(--orange); font-weight: 700; }

/* 备注 */
.remark textarea {
  width: 100%;
  height: 74px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 13px;
  resize: vertical;
  line-height: 20px;
}
.remark textarea:focus { border-color: var(--orange); }

/* 金额汇总 */
.amount-box {
  margin-left: auto;
  width: 320px;
  font-size: 13px;
  color: var(--text-sub);
}
.amount-box .r {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
}
.amount-box .r .price .num { font-size: 15px; }
.amount-box .r.total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.amount-box .r.total .price .num { font-size: 26px; }
.amount-box .r.total .price .sym { font-size: 16px; }

/* 提交栏 */
.submit-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 18px 24px;
  background: #fff;
  border-radius: var(--radius);
  position: sticky;
  bottom: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .07);
  z-index: 20;
}
.submit-bar .addr-tip {
  margin-right: auto;
  font-size: 13px;
  color: var(--text-sub);
}
.submit-bar .addr-tip b { color: var(--text); }
.submit-bar .pay-total { font-size: 13px; color: var(--text-sub); }
.submit-bar .pay-total .price .num { font-size: 26px; }
.submit-bar .pay-total .price .sym { font-size: 16px; }
.submit-bar .btn-submit {
  height: 46px;
  padding: 0 46px;
  font-size: 17px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. 下单成功页
   -------------------------------------------------------------------------- */
.success-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 60px 0 70px;
  text-align: center;
}
.success-box .ico {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad-orange);
  color: #fff;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.success-box p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 26px;
}
.success-box .order-no {
  display: inline-block;
  margin: 14px 0 24px;
  padding: 6px 16px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--text);
}
.success-box .acts { display: flex; gap: 14px; justify-content: center; }
