.mall-cart-page {
  padding: 28px 0 0;
}

.mall-cart-page .mall-faq-section {
  margin-top: 0;
}

.mall-cart-page .bottom-btn {
  text-decoration: none;
}

.mall-cart-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 16px;
  color: #111;
  margin-bottom: 28px;
}

.mall-cart-breadcrumb a {
  color: #111;
  text-decoration: none;
}

.mall-cart-breadcrumb a:hover {
  color: var(--red);
}

.mall-cart-breadcrumb .iconfont {
  font-size: 17px;
  color: var(--red);
  line-height: 1;
  display: inline-block;
}

.mall-cart-page .page-head {
  margin-bottom: 28px;
}

.mall-cart-page .page-head h1 {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 8px;
}

#cart-root {
  min-height: 240px;
}

.mall-cart-empty {
  text-align: center;
  padding: 72px 20px;
  background: #fafafa;
  border-radius: 12px;
}

.mall-cart-empty p {
  color: #666;
  font-size: 16px;
  margin: 0 0 24px;
}

.mall-cart-empty-btn {
  width: auto;
  min-width: 200px;
  text-decoration: none;
}

.mall-cart-head-row {
  display: grid;
  grid-template-columns: 48px 96px minmax(220px, 1fr) 140px 160px 140px 72px;
  gap: 16px;
  align-items: center;
  padding: 0 20px 12px;
  color: #888;
  font-size: 13px;
  font-weight: 700;
}

.mall-cart-head-row .mall-cart-col-product {
  grid-column: 2 / 4;
}

.mall-cart-head-row .mall-cart-col-price,
.mall-cart-head-row .mall-cart-col-qty,
.mall-cart-head-row .mall-cart-col-subtotal,
.mall-cart-item .mall-cart-price,
.mall-cart-item .mall-cart-qty-col,
.mall-cart-item .mall-cart-subtotal {
  text-align: center;
}

.mall-cart-list {
  display: grid;
  gap: 12px;
}

.mall-cart-item {
  display: grid;
  grid-template-columns: 48px 96px minmax(220px, 1fr) 140px 160px 140px 72px;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
}

.mall-cart-item.is-invalid {
  opacity: 0.72;
  background: #fafafa;
}

.mall-cart-check {
  width: 20px;
  height: 20px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mall-cart-check.is-on {
  border-color: var(--red);
  background: var(--red);
}

.mall-cart-check.is-off,
.mall-cart-check:disabled {
  background: #f4f4f4;
  cursor: default;
}

.mall-cart-media,
.mall-cart-media-empty {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #f4f4f4;
  overflow: hidden;
}

.mall-cart-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mall-cart-item.is-invalid .mall-cart-media img {
  filter: grayscale(1);
}

.mall-cart-info {
  min-width: 0;
}

.mall-cart-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #111;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

a.mall-cart-name:hover {
  color: var(--red);
}

.mall-cart-spec,
.mall-cart-tip {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.mall-cart-spec {
  color: #777;
}

.mall-cart-tip.is-discount {
  color: #c45c2a;
  font-weight: 700;
}

.mall-cart-tip.is-mismatch,
.mall-cart-tip.is-invalid {
  color: var(--red);
}

.mall-cart-unit {
  display: block;
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.mall-cart-list-price {
  display: block;
  margin-top: 4px;
  color: #999;
  font-size: 13px;
  text-decoration: line-through;
}

.mall-cart-subtotal {
  color: #111;
  font-size: 18px;
  font-weight: 800;
}

.mall-cart-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mall-cart-step {
  width: 28px;
  height: 28px;
  border: 1px solid #d6d6d6;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #111;
}

.mall-cart-qty {
  width: 56px;
  height: 32px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
}

.mall-cart-qty-static {
  color: #777;
  font-weight: 700;
}

.mall-cart-remove {
  background: none;
  border: 0;
  color: var(--red-2);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.mall-cart-invalid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 12px;
}

.mall-cart-invalid-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #888;
}

.mall-cart-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 48px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
}

.mall-cart-bar-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}

.mall-cart-bar-all .mall-cart-check {
  pointer-events: none;
}

.mall-cart-bar-meta {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 24px;
  color: #555;
  font-size: 14px;
}

.mall-cart-bar-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mall-cart-bar-total .label {
  font-weight: 700;
  color: #111;
}

.mall-cart-bar-total strong {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.mall-cart-checkout {
  width: auto;
  min-width: 180px;
}

.mall-cart-checkout:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .mall-cart-head-row {
    display: none;
  }

  .mall-cart-item {
    grid-template-columns: 28px 80px 1fr auto;
    grid-template-areas:
      "check media info remove"
      "check media price price"
      "check media qty subtotal";
  }

  .mall-cart-check { grid-area: check; }
  .mall-cart-media { grid-area: media; width: 80px; height: 80px; }
  .mall-cart-info { grid-area: info; }
  .mall-cart-price { grid-area: price; text-align: left; }
  .mall-cart-qty-col { grid-area: qty; text-align: left; }
  .mall-cart-subtotal { grid-area: subtotal; text-align: right; }
  .mall-cart-remove { grid-area: remove; }

  .mall-cart-bar {
    flex-wrap: wrap;
  }

  .mall-cart-bar-meta {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}
