/* 仅作用于 qkidc 商品列表，配置与结算页继续使用父主题。 */
.qk-cart {
  --qk-navy: #13233d;
  --qk-blue: #006eff;
  --qk-ink: #1d2b3a;
  --qk-muted: #43566b;
  --qk-line: #dce5ef;
  --qk-surface: #f4f7fb;
  --qk-radius: 4px;
  --qk-radius-control: 3px;
  background: var(--qk-surface);
  color: var(--qk-ink);
  font: 15px/1.65 "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: auto;
}
.qk-cart *, .qk-cart *::before, .qk-cart *::after {
  box-sizing: border-box;
}
.qk-cart a, .qk-cart a:hover, .qk-cart a:focus-visible {
  text-decoration: none;
}
.qk-cart a:focus-visible, .qk-cart button:focus-visible {
  outline: 3px solid #20a6af;
  outline-offset: 3px;
}
.qk-cart-container {
  width: min(100% - 48px, 1360px);
  margin-inline: auto;
}

/* Intro */
.qk-cart-overview {
  background: linear-gradient(112deg, #13233d, #1b3d6a);
  color: #fff;
}
.qk-cart-overview-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 190px;
  padding-block: 32px;
}
.qk-cart-overview-copy {
  min-width: 0;
}
.qk-cart-eyebrow {
  margin: 0 0 8px;
  color: var(--qk-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.qk-cart-overview .qk-cart-eyebrow {
  color: #b7d4fb;
}
.qk-cart-overview h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.35;
}
.qk-cart-overview-copy > p:last-child {
  max-width: 680px;
  margin: 0;
  color: #e0eafa;
  font-size: 14px;
  line-height: 1.7;
}
/* Category navigation */
.qk-cart-content {
  padding-block: 28px 76px;
}
.qk-cart-filters {
  padding: 8px 24px;
  border: 1px solid var(--qk-line);
  border-radius: var(--qk-radius);
  background: #fff;
}
.qk-cart-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-block: 14px;
}
.qk-cart-filter-row + .qk-cart-filter-row {
  border-top: 1px solid #edf1f6;
}
.qk-cart-filter-label {
  flex: none;
  width: 68px;
  padding-top: 9px;
  color: var(--qk-navy);
  font-size: 13px;
  font-weight: 700;
}
.qk-cart-tabs, .qk-cart-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.qk-cart-tabs a, .qk-cart-chips a {
  display: block;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: var(--qk-radius-control);
  color: var(--qk-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color .2s, background .2s, border-color .2s;
}
.qk-cart-tabs a:hover, .qk-cart-chips a:hover {
  background: #f0f5fc;
  color: var(--qk-blue);
}
.qk-cart-tabs a[aria-current="page"], .qk-cart-chips a[aria-current="page"] {
  border-color: #c5d9f8;
  background: #eaf3ff;
  color: #005bd4;
  font-weight: 700;
}
.qk-cart-chips a {
  border-color: var(--qk-line);
}
.qk-cart-chips-empty, .qk-cart-filter-empty {
  margin: 0;
  color: var(--qk-muted);
  font-size: 14px;
}
.qk-cart-filter-empty {
  padding-block: 16px;
}
.qk-cart-results-notes {
  padding: 12px 0 14px 92px;
  border-top: 1px solid #edf1f6;
}
.qk-cart-results-note {
  margin: 0;
  color: var(--qk-muted);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.qk-cart-results-note + .qk-cart-results-note {
  margin-top: 4px;
}

/* Products */
.qk-cart-listing {
  margin-top: 28px;
}
.qk-cart-listing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.qk-cart-listing-head h2 {
  margin: 0;
  color: var(--qk-navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.qk-cart-listing-hint {
  margin: -8px 0 20px;
  color: var(--qk-muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.qk-cart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.qk-cart-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 248px;
  padding: 20px;
  border: 1px solid var(--qk-line);
  border-radius: var(--qk-radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.qk-cart-product:hover {
  border-color: #a8c9f9;
  box-shadow: 0 6px 20px rgb(19 45 80 / 7%);
}
.qk-cart-product h3 {
  margin: 0 0 12px;
  color: var(--qk-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.qk-cart-spec {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  margin: 0 0 16px;
  color: var(--qk-muted);
  font-size: 13px;
  line-height: 1.6;
}
.qk-cart-spec dt {
  color: inherit;
}
.qk-cart-spec dd {
  margin: 0;
  color: var(--qk-ink);
  overflow-wrap: anywhere;
}
.qk-cart-description {
  margin: 0 0 16px;
  color: var(--qk-muted);
  font-size: 13px;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* 描述按富文本（HTML）渲染，容器内边距归零并让常见规格结构紧凑显示 */
.qk-cart-description ul,
.qk-cart-description ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.qk-cart-description > :first-child {
  margin-top: 0;
}
.qk-cart-description > :last-child {
  margin-bottom: 0;
}
.qk-cart-description .specs-item {
  display: flex;
  gap: 8px;
  margin: 0 0 3px;
}
.qk-cart-description .specs-item strong {
  flex: none;
  color: var(--qk-ink);
  font-weight: 600;
}
.qk-cart-card-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #edf1f6;
}
.qk-cart-pricing {
  min-width: 0;
}
.qk-cart-price {
  color: #df4937;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.qk-cart-price > span {
  margin-right: 2px;
  font-size: 15px;
  font-weight: 600;
}
.qk-cart-price small {
  margin-left: 4px;
  color: var(--qk-muted);
  font-size: 12px;
  font-weight: 400;
}
.qk-cart-original {
  margin-top: 3px;
  color: #617286;
  font-size: 12px;
  text-decoration: line-through;
  overflow-wrap: anywhere;
}
.qk-cart-trial {
  margin-top: 5px;
  color: #005bd4;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.qk-cart-buy, .qk-cart-soldout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--qk-radius-control);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.qk-cart-buy {
  background: var(--qk-blue);
  color: #fff !important;
}
.qk-cart-buy:hover {
  background: #005bd4;
}
.qk-cart-soldout {
  background: var(--qk-surface);
  color: var(--qk-muted);
}
.qk-cart-empty {
  margin: 0;
  padding: 56px 20px;
  border: 1px dashed var(--qk-line);
  border-radius: var(--qk-radius);
  background: #fff;
  color: var(--qk-muted);
  text-align: center;
}
.qk-cart-pagination {
  margin-top: 28px;
}
.qk-cart-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.qk-cart-pagination a, .qk-cart-pagination span {
  display: block;
  padding: 7px 11px;
  border-radius: var(--qk-radius-control);
}

/* Terms */
.qk-cart-notice {
  margin-top: 48px;
  padding: 26px 30px;
  border: 1px solid var(--qk-line);
  border-radius: var(--qk-radius);
  background: #fff;
}
.qk-cart-notice h2 {
  margin: 0 0 16px;
  color: var(--qk-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.qk-cart-notice p {
  max-width: 1060px;
  margin: 0;
  color: var(--qk-ink);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.qk-cart-notice p + p {
  margin-top: 12px;
}

@media (max-width: 1050px) {
  .qk-cart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .qk-cart-container {
    width: min(100% - 40px, 1360px);
  }
  .qk-cart-overview-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    padding-block: 30px;
  }
  .qk-cart-content {
    padding-block: 20px 52px;
  }
  .qk-cart-filters {
    padding-inline: 16px;
  }
  .qk-cart-filter-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .qk-cart-filter-label {
    width: auto;
    padding-top: 0;
  }
  .qk-cart-results-notes {
    padding-left: 0;
  }
  .qk-cart-listing {
    margin-top: 30px;
  }
  .qk-cart-listing-head h2 {
    font-size: 22px;
  }
  .qk-cart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .qk-cart-product {
    min-height: 0;
  }
  .qk-cart-notice {
    margin-top: 36px;
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qk-cart *, .qk-cart *::before, .qk-cart *::after {
    transition-duration: .01ms !important;
  }
}
