.cart-page .el-main {
  padding-bottom: 170px !important;
}

.cart-main-card {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.cart-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.cart-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 18px;
}

.cart-title-group {
  display: grid;
  gap: 10px;
}

.main-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ca-text);
}

.cart-subtitle {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--ca-text-soft);
}

.text-red {
  color: var(--ca-primary-strong);
  font-weight: 700;
}

.cart-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cart-chip-stat {
  min-width: 150px;
  padding: 18px 20px;
  border: 1px solid rgba(189, 220, 246, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ca-shadow-soft);
  display: grid;
  gap: 8px;
}

.cart-chip-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7992ae;
}

.cart-chip-stat strong {
  font-size: 28px;
  line-height: 1;
  color: var(--ca-text);
}

.cart-search-box {
  width: 320px;
  margin: 0;
  text-align: left;
}

.cart-search-box .el-input {
  width: 100%;
}

.cart-search-box .el-input__inner {
  height: 48px;
  line-height: 48px;
  padding-left: 18px;
  border-radius: 999px !important;
  box-shadow: 0 12px 24px rgba(86, 144, 208, 0.12);
}

.cart-goods-box {
  padding-bottom: 0;
}

.cart-goods-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item-card {
  margin-bottom: 0;
  padding: 30px;
  border: 1px solid rgba(188, 220, 246, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ca-shadow-soft);
  transition: transform var(--ca-transition), box-shadow var(--ca-transition), border-color var(--ca-transition), background var(--ca-transition);
}

.cart-item-card.is-selectable {
  cursor: pointer;
}

.cart-item-card.is-selectable:hover {
  transform: translateY(-2px);
  border-color: rgba(142, 198, 244, 0.96);
  box-shadow: 0 18px 32px rgba(84, 148, 215, 0.14);
}

.cart-item-card.is-selected {
  border-color: rgba(95, 173, 245, 0.98);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.96) 0%, rgba(238, 247, 255, 0.94) 100%);
  box-shadow: 0 20px 34px rgba(83, 149, 220, 0.18);
}

.table-name {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cart-item-heading {
  flex: 1 1 420px;
  min-width: 0;
  display: grid;
  gap: 12px;
}

.table-name .el-checkbox {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.table-name .el-checkbox__label {
  min-width: 0;
  padding-left: 12px;
}

.goods-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ca-text);
  word-break: break-word;
}

.mar-left-24 {
  margin-left: 24px;
}

.edit-goods.el-link.el-link--primary {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(182, 216, 247, 0.96);
  border-radius: 999px;
  background: rgba(231, 243, 255, 0.9);
  color: var(--ca-primary-strong);
}

.cart-item-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-item-flag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(231, 243, 255, 0.92);
  color: #5b7898;
  font-size: 13px;
  font-weight: 600;
}

.table-content {
  font-size: 14px;
  overflow: visible;
}

.goods-table {
  width: 100%;
  margin-top: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(194, 223, 247, 0.92);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(247, 251, 255, 0.84);
}

.goods-table thead tr {
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.96) 0%, rgba(232, 243, 255, 0.92) 100%);
}

.goods-table th {
  padding: 18px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #7391b1;
}

.goods-table tbody tr td {
  padding: 24px 20px;
  vertical-align: top;
  border-top: 1px solid rgba(220, 234, 247, 0.92);
}

.goods-table tbody tr:first-child td {
  border-top: none;
}

.goods-table td[data-label]::before {
  display: none;
}

.description-box {
  width: 52%;
}

.price-box {
  width: 17%;
}

.num-box {
  width: 16%;
}

.total-box {
  width: 13%;
}

.action-box {
  width: 2%;
}

.info-box {
  width: 100%;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.goods-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(207, 226, 243, 0.94);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.96) 0%, rgba(244, 249, 255, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform var(--ca-transition), box-shadow var(--ca-transition), border-color var(--ca-transition), background var(--ca-transition);
}

.goods-info:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 205, 240, 0.96);
  box-shadow: 0 14px 24px rgba(89, 145, 205, 0.1);
}

.goods-info.has-price {
  border-color: rgba(134, 196, 248, 0.96);
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.98) 0%, rgba(236, 246, 255, 0.96) 100%);
}

.goodsInfo-type {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: var(--ca-text);
}

.goodsInfo-name {
  display: block;
  color: #7a93af;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.goodsInfo-val {
  display: block;
  color: var(--ca-text);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  word-break: break-word;
}

.goodsInfo-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(96, 177, 255, 0.14) 0%, rgba(140, 210, 255, 0.22) 100%);
  color: var(--ca-primary-strong);
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.goodsInfo-price.is-zero-price {
  background: rgba(234, 242, 252, 0.96);
  color: #7c93ae;
}

.goods-info.has-price .goodsInfo-name {
  color: var(--ca-primary-strong);
}

.goods-info.has-price .goodsInfo-price {
  background: linear-gradient(135deg, #62b4ff 0%, #88d1ff 100%);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(90, 162, 235, 0.22);
}

.item-price,
.item-total {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ca-text);
}

.item-total > span:first-child {
  font-size: 22px;
}

.original-price {
  margin: 6px 0 0;
  color: #8aa1bd;
  font-weight: 500;
  text-decoration: line-through;
}

.discount-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 12px;
}

.discount-codeNumber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 193, 86, 0.18);
  color: #9a6a12;
  font-size: 12px;
  font-weight: 700;
}

.remove-discountCode {
  cursor: pointer;
}

.total-icon {
  margin-left: 8px;
  color: #7d95b2;
  cursor: pointer;
}

.qty-num,
.qty-tips {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6482a4;
}

.qty-tips {
  color: var(--ca-primary-strong);
}

.red-text {
  color: #e15d67;
}

.delete-btn {
  text-align: right;
  white-space: nowrap;
}

.delete-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240, 93, 101, 0.1);
  color: #d14b5b;
  font-size: 18px;
  cursor: pointer;
  transition: transform var(--ca-transition), background var(--ca-transition), color var(--ca-transition);
}

.delete-btn i:hover {
  transform: translateY(-1px);
  background: rgba(240, 93, 101, 0.16);
  color: #bb3244;
}

.no-goods-td {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.no-goods-tips {
  color: var(--ca-text-soft);
  font-size: 14px;
  font-weight: 600;
}

.buy-again-btn {
  margin-left: 0;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(231, 243, 255, 0.92);
  color: var(--ca-primary-strong);
}

.cart-footer.el-footer {
  position: fixed;
  left: calc(var(--ca-layout-offset) + 28px);
  right: 28px;
  bottom: 20px;
  width: auto;
  height: auto !important;
  padding: 16px 20px;
  border: 1px solid rgba(187, 220, 247, 0.94);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 42px rgba(77, 131, 191, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1000;
}

.footer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 15px;
  color: var(--ca-text);
}

.delect-btn {
  margin: 0;
}

.all-check .el-checkbox__label,
.footer-selection {
  color: var(--ca-text);
  font-size: 15px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-total {
  display: grid;
  gap: 6px;
  text-align: right;
}

.footer-total-label {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7992ae;
}

.total-price {
  font-size: 30px;
  line-height: 1;
  color: var(--ca-primary-strong);
  font-weight: 700;
}

.buy-btn {
  min-width: 188px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px !important;
}

.buy-btn.is-disabled,
.buy-btn.is-disabled:hover,
.buy-btn.is-disabled:focus {
  background: #bfd0e4 !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

@media screen and (max-width: 1360px) {
  .main-title {
    font-size: 34px;
  }

  .cart-item-card {
    padding: 24px;
  }

  .cart-footer.el-footer {
    left: calc(var(--ca-layout-offset) + 20px);
    right: 20px;
  }
}

@media screen and (max-width: 1180px) {
  .cart-footer.el-footer {
    left: 16px;
    right: 16px;
  }
}

@media screen and (max-width: 980px) {
  .cart-page .el-main {
    padding-bottom: 216px !important;
  }

  .cart-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-search-box {
    width: 100%;
  }

  .footer-box,
  .footer-right {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-total {
    text-align: left;
  }

  .buy-btn {
    width: 100%;
  }
}

@media screen and (max-width: 820px) {
  .cart-page .el-main {
    padding-bottom: 236px !important;
  }

  .main-title {
    font-size: 30px;
  }

  .cart-chip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-item-card {
    padding: 18px;
    border-radius: 24px;
  }

  .goods-table,
  .goods-table thead,
  .goods-table tbody,
  .goods-table tr,
  .goods-table td {
    display: block;
    width: 100%;
  }

  .goods-table {
    border: 0;
    background: transparent;
  }

  .goods-table thead {
    display: none;
  }

  .goods-table tbody tr {
    padding: 18px 16px;
    border: 1px solid rgba(194, 223, 247, 0.92);
    border-radius: 20px;
    background: rgba(248, 252, 255, 0.84);
  }

  .goods-table tbody tr td {
    padding: 0;
    margin-top: 16px;
    border-top: 0;
  }

  .goods-table tbody tr td:first-child {
    margin-top: 0;
  }

  .goods-table tbody tr td:empty {
    display: none;
  }

  .goods-table td[data-label]::before {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: #7992ae;
    content: attr(data-label);
  }

  .goods-info {
    gap: 12px;
  }

  .info-box {
    grid-template-columns: 1fr;
  }

  .goodsInfo-price {
    min-width: 84px;
  }

  .delete-btn {
    text-align: left;
  }
}

@media screen and (max-width: 640px) {
  .cart-page .el-main {
    padding-bottom: 248px !important;
  }

  .cart-chip-row {
    grid-template-columns: 1fr;
  }

  .cart-footer.el-footer {
    bottom: 12px;
    padding: 14px;
    border-radius: 24px;
  }

  .footer-left {
    gap: 8px 12px;
  }

  .total-price {
    font-size: 26px;
  }
}
