/* 7uNeon 购物中心 / 购物车 专属样式 */

/* 页面骨架 */
.cart-layout { display: grid; grid-template-columns: 252px 1fr; gap: 22px; margin-top: 26px; align-items: start; }
.cart-main { min-width: 0; }

/* 侧栏 */
.side-card { padding: 20px 16px; }
.side-card .side-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.side-card .side-title::before { content: ""; width: 3px; height: 15px; background: var(--grad); border-radius: 2px; }
.cat-group { margin-bottom: 12px; }
.cat-group .cat-1 {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin-bottom: 2px;
  border-radius: 8px; color: var(--text); cursor: pointer; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: all .2s;
}
.cat-group .cat-1:hover { background: rgba(0, 229, 255, .08); }
.cat-group .cat-1.active { background: var(--grad-soft); border-color: var(--stroke-2); color: var(--cyan); }
.cat-2s { padding-left: 16px; }
.cat-2s .cat-2 { padding: 7px 10px; font-size: 13px; color: var(--text-dim); cursor: pointer; border-radius: 7px; transition: all .2s; }
.cat-2s .cat-2:hover { color: var(--text); background: rgba(0, 229, 255, .05); }
.cat-2s .cat-2.active { color: var(--cyan); }

/* 搜索条 */
.search-bar { display: flex; gap: 12px; margin-bottom: 18px; }
.search-bar .input { flex: 1; }
.search-bar .btn { flex-shrink: 0; }

/* 商品卡片 */
.goods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.goods-card { padding: 20px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.goods-card .g-name { font-size: 16px; font-weight: 700; }
.goods-card .g-desc { color: var(--text-dim); font-size: 13px; margin: 8px 0 14px; flex: 1; line-height: 1.6; }
.goods-card .g-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.goods-card .g-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.goods-card .g-price { font-family: var(--font-num); font-size: 22px; font-weight: 800; }
.goods-card .g-price small { font-size: 12px; color: var(--text-dim); font-weight: 400; }
.goods-card .g-origin { color: var(--text-faint); font-size: 12px; text-decoration: line-through; }
.goods-card::after {
  content: ""; position: absolute; top: -50px; right: -50px; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(168, 85, 247, .16), transparent 70%); pointer-events: none;
}
.empty-state { padding: 60px 20px; text-align: center; color: var(--text-dim); }
.empty-state .icon { font-size: 46px; margin-bottom: 14px; opacity: .6; }

/* 购物车表格 */
.cart-panel { padding: 24px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 12px; text-align: left; font-size: 14px; vertical-align: middle; }
.cart-table thead th {
  color: var(--text-dim); font-weight: 600; font-size: 13px;
  border-bottom: 1px solid var(--stroke); background: rgba(0, 229, 255, .04);
  white-space: nowrap;
}
.cart-table tbody tr { border-bottom: 1px solid rgba(0, 229, 255, .08); }
.cart-table tbody tr:hover { background: rgba(0, 229, 255, .04); }
.cart-table .g-info { display: flex; align-items: center; gap: 12px; }
.cart-table .g-thumb { width: 46px; height: 46px; border-radius: 10px; background: var(--grad-soft); border: 1px solid var(--stroke-2); display: grid; place-items: center; font-size: 20px; }
.cart-table .g-name { font-weight: 600; }
.cart-table .g-opt { color: var(--text-faint); font-size: 12px; margin-top: 3px; }
.price-num { font-family: var(--font-num); font-weight: 700; color: var(--cyan); }
.price-num small { font-size: 12px; color: var(--text-dim); }
.del-btn { color: var(--text-faint); background: none; border: none; font-size: 18px; cursor: pointer; transition: color .2s; }
.del-btn:hover { color: var(--danger); }

/* 数量步进器 */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--stroke); border-radius: 8px; overflow: hidden; }
.qty button { width: 30px; height: 30px; background: rgba(0, 229, 255, .06); border: none; color: var(--text); font-size: 15px; }
.qty button:hover { background: rgba(0, 229, 255, .16); }
.qty input { width: 44px; height: 30px; border: none; border-left: 1px solid var(--stroke); border-right: 1px solid var(--stroke); background: transparent; color: var(--text); text-align: center; font-size: 14px; outline: none; }

/* 结算栏 */
.settle-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 22px; padding: 18px 22px; border-radius: 14px;
  background: rgba(0, 229, 255, .05); border: 1px solid var(--stroke);
}
.settle-left { display: flex; align-items: center; gap: 20px; color: var(--text-dim); font-size: 14px; flex-wrap: wrap; }
.settle-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.total-label { color: var(--text-dim); font-size: 14px; }
.total-price { font-family: var(--font-num); font-size: 30px; font-weight: 800; }

/* checkbox 霓虹 */
.ck { width: 18px; height: 18px; accent-color: var(--cyan); cursor: pointer; }

/* 结算页 */
.step-bar { display: flex; justify-content: center; gap: 0; margin: 30px 0 40px; }
.step-bar .step { display: flex; align-items: center; gap: 10px; color: var(--text-faint); font-size: 13px; }
.step-bar .step .dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--stroke); display: grid; place-items: center; font-family: var(--font-num); }
.step-bar .step.active { color: var(--cyan); }
.step-bar .step.active .dot { background: var(--grad); border-color: transparent; color: #06122e; box-shadow: var(--glow-cyan); }
.step-bar .step.done { color: var(--ok); }
.step-bar .line { width: 70px; height: 1px; background: var(--stroke); margin: 0 12px; }
.order-summary { margin-top: 22px; }
.order-summary .row { display: flex; justify-content: space-between; padding: 9px 0; color: var(--text-dim); font-size: 14px; }
.order-summary .row.total { border-top: 1px dashed var(--stroke); margin-top: 8px; padding-top: 14px; color: var(--text); font-weight: 700; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .goods-grid { grid-template-columns: 1fr; }
  .cart-table { display: block; overflow-x: auto; white-space: nowrap; }
  .step-bar .line { width: 34px; }
}
