/*!
 * [二开] 购物车页版式层 (Cart Layout)
 * 依据参考站设计语言：行式商品卡（图 96 + 信息 + 单价 + 数量步进 + 小计 + 移除）、
 * 右侧粘性订单摘要、紫色胶囊结算按钮、浅灰 USP。
 * 仅在 #checkout-cart 下生效。
 */

#checkout-cart.rf-cart-page { padding-bottom: 70px; }
#checkout-cart > .breadcrumb { margin-bottom: 22px; }

/* ---------- 标题 ---------- */
.rf-cart-head { margin-bottom: 20px; }
.rf-cart-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #161615;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.rf-cart-count {
  font-size: 13px;
  font-weight: 700;
  color: #615b67;
  background: #f0edf1;
  border-radius: 999px;
  padding: 3px 12px;
}

/* ---------- 双栏布局 ---------- */
.rf-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.rf-cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 10px;
  padding: 18px 20px;
}

/* ---------- 商品行 ---------- */
.rf-cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 110px 140px 110px 30px;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f1eef2;
}
.rf-cart-item:last-of-type { border-bottom: 0; }

.rf-cart-thumb {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  background: #ededed;
}
.rf-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.rf-cart-info { min-width: 0; }
.rf-cart-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #161615;
  text-decoration: none;
  line-height: 1.35;
}
.rf-cart-name:hover { color: var(--lh-brand); text-decoration: underline; text-underline-offset: 3px; }
.rf-cart-stock { color: var(--lh-red); font-weight: 700; }
.rf-cart-opts {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.rf-cart-opts li {
  font-size: 11.5px;
  color: #8b8494;
  line-height: 1.6;
}
.rf-cart-opts li::before { content: "·"; margin-right: 5px; color: #c9c3ce; }

/* 单价 / 小计列 */
.rf-cart-price,
.rf-cart-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: #3d3844;
  white-space: nowrap;
}
.rf-cart-total { font-weight: 800; font-size: 14.5px; color: #161615; }
.rf-cart-lbl {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #a9a2b0;
}

/* 数量步进 */
.rf-cart-qtycol { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rf-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid #d9d4de;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.rf-qty-btn {
  width: 32px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #161615;
  font-size: 11px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.rf-qty-btn:hover { background: var(--lh-brand); color: #fff; }
.rf-qty-input {
  width: 40px;
  height: 34px;
  border: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #161615;
  outline: none;
  background: transparent;
}
.rf-qty-apply {
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--lh-brand);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}
.rf-qty-apply:hover { color: var(--lh-pink); }

/* 移除 */
.rf-cart-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #8b8494;
  font-size: 15px;
  text-decoration: none;
  transition: all .15s ease;
}
.rf-cart-remove:hover {
  background: #ffe9ee;
  color: var(--lh-red);
  text-decoration: none;
}

/* 继续购物 */
.rf-cart-keep {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #161615;
  text-decoration: none;
  padding: 6px 2px 0;
}
.rf-cart-keep:hover { color: var(--lh-brand); }

/* ---------- 订单摘要 ---------- */
.rf-cart-summary {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 10px;
  padding: 24px 24px 20px;
}
.rf-cart-summary h3 {
  font-size: 16px;
  font-weight: 800;
  color: #161615;
  margin: 0 0 14px;
}
.rf-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: #3d3844;
  padding: 8px 0;
  border-bottom: 1px dashed #ececef;
}
.rf-summary-row strong { font-weight: 700; white-space: nowrap; }
.rf-summary-total {
  border-bottom: 0;
  font-size: 17px;
  font-weight: 800;
  color: #161615;
  padding-top: 14px;
}
.rf-summary-total strong { color: var(--lh-brand); font-size: 19px; }

.rf-cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 50px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--lh-brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease;
}
.rf-cart-checkout:hover { background: var(--lh-purple); color: #fff; text-decoration: none; }
.rf-cart-checkout i { font-size: 13px; }

.rf-cart-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 1.5px solid #161615;
  border-radius: 999px;
  color: #161615;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}
.rf-cart-ghost:hover { background: #161615; color: #fff; text-decoration: none; }

.rf-cart-secure {
  margin: 16px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: #8b8494;
}
.rf-cart-secure i { color: #37b26c; margin-right: 5px; }

.rf-cart-usps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  list-style: none;
  padding: 14px 0 0;
  margin: 14px 0 0;
  border-top: 1px solid #f1eef2;
}
.rf-cart-usps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #3d3844;
  background: #f7f5f4;
  border-radius: 8px;
  padding: 10px 14px;
}
.rf-cart-usps li i { color: var(--lh-brand); font-size: 13px; }

/* ---------- 优惠模块（券/礼品卡手风琴） ---------- */
.rf-cart-modules {
  margin-top: 26px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 10px;
  padding: 20px 24px;
}
.rf-cart-modules h3 { font-size: 16px; font-weight: 800; color: #161615; margin: 0 0 4px; }
.rf-cart-modules-sub { font-size: 12.5px; color: #8b8494; margin: 0 0 14px; }

/* ---------- 空购物车 ---------- */
.rf-cart-empty {
  text-align: center;
  padding: 90px 20px 100px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 10px;
}
.rf-cart-empty i {
  font-size: 58px;
  color: #e3d9ee;
  margin-bottom: 20px;
}
.rf-cart-empty h1 {
  font-size: 25px;
  font-weight: 800;
  color: #161615;
  margin: 0 0 8px;
}
.rf-cart-empty p {
  font-size: 13.5px;
  color: #615b67;
  margin: 0 0 24px;
}
.rf-cart-empty-btn { max-width: 300px; margin: 0 auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .rf-cart-layout { grid-template-columns: 1fr; }
  .rf-cart-summary { position: static; }
}
@media (max-width: 767px) {
  .rf-cart-item {
    grid-template-columns: 76px minmax(0, 1fr) 30px;
    grid-template-areas:
      "thumb info remove"
      "thumb qty qty"
      "thumb total total";
    row-gap: 10px;
  }
  .rf-cart-thumb { grid-area: thumb; width: 76px; height: 76px; }
  .rf-cart-info { grid-area: info; }
  .rf-cart-remove { grid-area: remove; }
  .rf-cart-qtycol { grid-area: qty; align-items: flex-start; }
  .rf-cart-total { grid-area: total; align-items: flex-start; }
  .rf-cart-price { display: none; }
  .rf-cart-items { padding: 14px; }
}
