/* good 主题：参考 cankao/cart.html 内联样式与布局补丁（与 topbar.css 配套） */
:root {
	--good-cart-price: #e53935;
	--good-cart-price-dark: #c62828;
}

.good-cart-product-card.card {
  position: relative;
  overflow: visible;
  margin-top: 0;
  border: 1px solid #eceff3;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* 「实例类型」标题区：与下方产品区留白收紧 */
.good-cart-section-title {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

.good-cart-section-title .content-title {
  padding-bottom: 6px;
  margin-bottom: 0;
  border-bottom: 1px solid #e8ecf0;
}

/* 覆盖 topbar 中 firstgroup_box 的上下内边距，减少与产品卡距离 */
.config-content-parent > .good-cart-section-title.firstgroup_box {
  padding-top: 6px;
  padding-bottom: 2px;
  min-height: 0 !important;
}

.good-cart-section-title .content-title h4 {
  margin: 0;
  line-height: 1.35;
}

.good-cart-product-card > .card-body {
  padding-top: 0.65rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  padding-bottom: 1rem !important;
}

/* 无货角标定位（参考 cart.html） */
.card.cartitem {
  position: relative;
}

.firstgroup_box_group::after,
.secondgroup_box_group::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 576px) {
  .firstgroup_item,
  .secondgroup_item {
    min-width: auto !important;
    width: 50%;
    padding: 0;
  }
}

.card-footer a {
  color: #008eff;
  display: inline-block;
  width: 100%;
  line-height: 40px;
  background: #fff;
}

.cartitem {
  background-color: #f5f7f9;
}

.cartitem.active {
  background: #fff;
}

.cartitem.active .card-footer {
  background-color: #f1672a !important;
}

.cartitem.active .card-footer a {
  background-color: #008eff !important;
  color: #fff !important;
  z-index: 99;
}

/* 商品描述中的 <li> / <ul>：去掉前面的圆点 */
.good-cart-desc ul,
.good-cart-desc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.good-cart-desc li {
  list-style: none;
  list-style-type: none;
}

.good-cart-desc li::marker {
  content: none;
  font-size: 0;
}

.good-cart-desc > li {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

/* 价格区：与说明留白、靠近按钮；配色与排版偏精致 */
.good-cart-price-block {
  margin-top: 1.35rem;
  padding-top: 0.75rem;
  padding-bottom: 0.15rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.good-cart-price-main {
  color: var(--good-cart-price);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.35;
}

.good-cart-price-sub {
  text-align: right;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 400;
  margin-top: 5px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.good-cart-trial {
  text-align: right;
  color: var(--good-cart-price-dark);
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.45;
  opacity: 0.92;
}
