/*
 * XSDZ Tech 购物车增量样式。
 * 购物车原生业务 CSS 保持不变，本文件只负责颜色、卡片和交互层级。
 */
:root {
  --xsdz-cart-blue: #176bff;
  --xsdz-cart-ink: #142945;
  --xsdz-cart-muted: #71839b;
  --xsdz-cart-border: #e3ebf5;
  --xsdz-cart-soft: #f5f9ff;
}

.goods,
.template {
  color: var(--xsdz-cart-ink);
  background: #f4f7fb;
}

.goods .main-card,
.template .main-card,
.goods .config-box,
.template .config-box {
  color: var(--xsdz-cart-ink);
}

.goods .main-title,
.template .main-title {
  color: var(--xsdz-cart-ink);
  font-weight: 600;
}

.goods .search-box,
.template .search-box {
  border-color: var(--xsdz-cart-border);
  border-radius: 9px;
  background: #ffffff;
}

.goods .shopping-item,
.template .shopping-goods {
  border-color: var(--xsdz-cart-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 83, 145, 0.055);
}

.goods .shopping-item:hover,
.template .shopping-goods:hover {
  border-color: #bdd8ff;
  box-shadow: 0 12px 28px rgba(23, 107, 255, 0.1);
}

.goods .shopping-item .goods-name,
.template .shopping-goods .goods-name {
  color: var(--xsdz-cart-ink);
}

.goods .shopping-item .goods-active .active-name,
.goods .shopping-item .goods-tag,
.template .shopping-goods .goods-active .active-name {
  color: var(--xsdz-cart-blue);
  background: var(--xsdz-cart-soft);
}

.goods .shopping-item .goods-description {
  background: #f8fbff;
}

.goods .shopping-item .price-box .item-price,
.template .shopping-goods .price-box .item-price,
.template .item-total {
  color: var(--xsdz-cart-blue);
}

.goods .buy-btn,
.goods .search-btn,
.template .buy-btn,
.template .cart-btn {
  border-color: var(--xsdz-cart-blue);
  background: var(--xsdz-cart-blue);
}

.goods .buy-btn:hover,
.goods .search-btn:hover,
.template .buy-btn:hover,
.template .cart-btn:hover {
  border-color: #0d49b8;
  background: #0d49b8;
}

.goods .goods-table,
.template .goods-table {
  overflow: hidden;
  border-color: var(--xsdz-cart-border);
  border-radius: 8px;
}

.goods .goods-table thead,
.template .goods-table thead {
  color: var(--xsdz-cart-muted);
  background: #f6faff;
}

.goods .goods-table td,
.goods .goods-table th,
.template .goods-table td,
.template .goods-table th {
  border-color: #edf2f8;
}

.goods .second-desc,
.template .cart-des {
  border: 1px solid #d9eaff;
  border-radius: 8px;
  color: #57708d;
  background: #f4f9ff;
}

.goods .footer-box,
.template .footer-box {
  border-top-color: var(--xsdz-cart-border);
  box-shadow: 0 -7px 22px rgba(31, 83, 145, 0.05);
}

.goods .el-input__inner,
.template .el-input__inner {
  border-color: #dce7f3;
}

.goods .el-input__inner:focus,
.template .el-input__inner:focus {
  border-color: var(--xsdz-cart-blue);
  box-shadow: 0 0 0 3px rgba(23, 107, 255, 0.1);
}

@media screen and (max-width: 900px) {
  /* 小屏幕保持商品卡片单列，避免价格和按钮挤压。 */
  .goods-list-div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 600px) {
  .goods-list-div {
    grid-template-columns: 1fr;
  }
}
