/* PC 商城 — 一比一系统默认布局 */

.mall-page .main-title {
  display: none;
}

.mall-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mall-side {
  flex-shrink: 0;
  width: 240px;
  background: #fff;
  border: 1px solid #ededed;
}

.mall-side__groups {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.mall-side__group + .mall-side__group {
  border-top: 1px solid #f0f0f0;
}

.mall-side__loading {
  padding: 24px;
  text-align: center;
  color: #909399;
  font-size: 20px;
}

.mall-side__empty {
  padding: 24px 14px;
  text-align: center;
  color: #909399;
  font-size: 13px;
}

.mall-side__search {
  padding: 12px;
  border-bottom: 1px solid #ededed;
}

.mall-side__search .el-input__inner {
  height: 36px;
  line-height: 36px;
  border-radius: 0;
  border-color: #dcdfe6;
}

.mall-side__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  cursor: pointer;
  border-bottom: 1px solid #ededed;
  background: #fafafa;
}

.mall-side__title .el-icon-arrow-down {
  transition: transform 0.2s;
}

.mall-side__title .el-icon-arrow-down.is-open {
  transform: rotate(180deg);
}

.mall-side__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}

.mall-side__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #606266;
  cursor: pointer;
  border-bottom: 1px solid #f2f2f2;
}

.mall-side__list li:hover {
  background: #f5f7fa;
}

.mall-side__list li.is-active {
  background: #eef3ff;
  color: #165dff;
  font-weight: 600;
}

.mall-side__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c0c4cc;
  flex-shrink: 0;
}

.mall-side__list li.is-active .mall-side__dot {
  background: #165dff;
}

.mall-side__name {
  flex: 1;
  line-height: 1.4;
}

.mall-main {
  flex: 1;
  min-width: 0;
}

.mall-page .goods-list-div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mall-page .shopping-item {
  display: flex;
  flex-direction: column;
  border: 1px solid #ededed;
  border-radius: 0 !important;
  background: #fff;
  overflow: hidden;
  min-height: auto;
  padding-bottom: 0;
}

.mall-page .goods-card-head {
  padding: 10px 12px;
  background: #eef4ff;
  font-size: 14px;
  font-weight: 700;
  color: #1d2129;
  line-height: 1.4;
  border-bottom: 1px solid #ededed;
}

.mall-page .shopping-item .goods-description {
  flex: 1;
  min-height: 150px;
  max-height: 400px;
  padding: 12px;
  background: #f4f4f4;
  font-size: 13px;
  line-height: 1.6;
  overflow: auto;
  border-radius: 0 !important;
}

.mall-page .shopping-item .goods-description * {
  all: revert;
}

.mall-page .goods-card-foot {
  padding: 12px;
  border-top: 1px solid #ededed;
  background: #fff;
}

.mall-page .goods-card-price {
  margin-bottom: 10px;
}

.mall-page .goods-card-price .item-price {
  font-size: 22px;
  font-weight: 700;
  color: #e34d59;
}

.mall-page .goods-card-price .item-price-prefix {
  font-size: 12px;
}

.mall-page .goods-card-price .item-price-cycle {
  font-size: 13px;
  color: #606266;
  margin-left: 4px;
}

.mall-page .goods-card-price .original-price {
  display: block;
  font-size: 12px;
  color: #c0c4cc;
  text-decoration: line-through;
  margin-top: 2px;
}

.mall-page .shopping-item .buy-btn {
  width: 100%;
  height: 36px;
  border-radius: 0 !important;
  background: #165dff !important;
  border-color: #165dff !important;
  padding: 0;
}

.mall-page .second-desc {
  margin-bottom: 12px;
  border-radius: 0;
}

/* 购物车页直角 */
.goods-table,
.search-box .el-input__inner,
.search-btn,
.footer-box .buy-btn,
.buy-again-btn {
  border-radius: 0 !important;
}

.footer-box .buy-btn {
  background: #165dff !important;
  border-color: #165dff !important;
}

.goods-table thead {
  background: #f5f7fa;
}

@media (max-width: 1400px) {
  .mall-page .goods-list-div {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .mall-page .goods-list-div {
    grid-template-columns: repeat(2, 1fr);
  }
}
