@charset 'utf-8';
/* ============================================================
   一级页面/css/shop.css —— 文創周邊 页面样式
   说明：
   1. 1rem = 100px（与 common.css 自适应换算一致）
   2. 兼容 IE11：Flexbox 均书写 -ms- 前缀；关键尺寸提供 px 兜底
   3. 禁止 CSS Grid；头尾/面包屑/分页复用 common/topbottom-hh.css
   ============================================================ */

/* ---------- 内容区 ---------- */
.shop-main {
  background: #f5f2fb;
  padding-bottom: 10px;
  padding-bottom: 0.1rem;
}
.shop-inner {
  width: 1530px;
  width: 15.3rem;
  margin: 0 auto;
  padding-bottom: 30px;
  padding-bottom: 0.3rem;
}

/* ---------- 商品网格（4 行 x 4 列） ---------- */
.shop-grid {
  width: 100%;
  /* display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-pack: justify;
  justify-content: space-between; */
}
.shop-item {
  width: 364px;
  width: 3.64rem;
  height: 372px;
  height: 3.72rem;
  margin-bottom: 29px;
  margin-bottom: 0.29rem;
  background: #ffffff;
  float: left;
  /* display: inline-block; */
  text-decoration: none;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  box-sizing: border-box;
  padding-bottom: 21px;
  padding-bottom: 0.21rem;
  margin-right: 0.24rem;
}
.shop-item:nth-child(4n) {
  margin-right: 0;
}
/* 鼠标悬停效果：阴影 + 底部紫条（不影响布局高度） */
.shop-item:hover {
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.3);
  position: relative;
}
.shop-item:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  height: 0.08rem;
  background: #623dc2;
}
/* 商品图（设计稿背景 #9780D3） */
.shop-pic {
  width: 364px;
  width: 3.64rem;
  height: 238px;
  height: 2.38rem;
  overflow: hidden;
  position: relative;
  margin-bottom: 13px;
  margin-bottom: 0.13rem;
}
.shop-pic img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s ease;
  -webkit-transition: -webkit-transform 0.5s ease;
  -ms-transition: -ms-transform 0.5s ease;
}
.shop-item:hover .shop-pic img {
  transform: scale3d(1.05, 1.05, 1.05);
  -webkit-transform: scale3d(1.05, 1.05, 1.05);
  -ms-transform: scale3d(1.05, 1.05, 1.05);
}
/* 商品信息（名称+价格垂直，购物车按钮右侧） */
.shop-info {
  position: relative;
  padding: 0px 20px;
  padding: 0rem 0.2rem;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100px;
  height: 1rem;
  box-sizing: border-box;
}
.shop-name {
  display: block;
  font-family: "Microsoft YaHei";
  font-size: 20px;
  font-size: 0.2rem;
  font-weight: 400;
  line-height: 30px;
  line-height: 0.3rem;
  color: #3d3d3d;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 80%;
  margin-bottom: 10px;
  margin-bottom: 0.1rem;
}
.shop-price {
  font-family: "Inter", "Microsoft YaHei";
  font-size: 20px;
  font-size: 0.2rem;
  font-weight: 400;
  line-height: 30px;
  line-height: 0.3rem;
  color: #3d3d3d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 80%;
  display: block;
}
.shop-cart {
  position: absolute;
  right: 20px;
  right: 0.2rem;
  top: 22px;
  top: 0.22rem;
  width: 56px;
  width: 0.56rem;
  height: 55px;
  height: 0.55rem;
  border-radius: 50%;
  cursor: pointer;
  background: url(../common/shop/icon1.png) no-repeat;
  background-size: 100%;
}
.shop-item:hover .shop-cart {
  background-image: url(../common/shop/icon1-a.png);
}

/* ---------- 分页器 ---------- */
.shop-inner .hh-pagination {
  margin-bottom: 0;
}

/* ---------- 响应式（平板/移动端 ≤768px） ---------- */
@media screen and (max-width: 768px) {
  .shop-main {
    padding: 0 0.2rem 0.1rem;
  }
  .shop-inner {
    width: 100%;
    padding-bottom: 0.2rem;
    box-sizing: border-box;
  }
  /* 移动端：商品两列展示 */
  .shop-item {
    width: 48%;
    margin-bottom: 0.2rem;
    height: 3.2rem;
    margin-right: 0;
  }
  .shop-grid .shop-item:nth-child(2n) {
    float: right;
  }
  .shop-pic {
    width: 100%;
    height: 1.8rem;
  }
  .shop-info {
    height: auto;
    padding: 0.1rem 0.15rem;
    display: block;
  }
  .shop-name {
    font-size: 0.26rem;
    line-height: 0.4rem;
  }
  .shop-price {
    font-size: 0.26rem;
    line-height: 0.4rem;
  }
  .shop-cart {
    margin-top: 0.35rem;
    width: 0.4rem;
    height: 0.4rem;
  }
  .shop-inner .hh-crumb,
  .shop-inner .hh-crumb a {
    font-size: 0.26rem;
  }
}
