/* 商品卡片整体容器 */
.aosom-product-card-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 20px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  box-sizing: border-box;
}

/* 单个商品卡片 */
.aosom-product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

/* 悬停动效 */
.aosom-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 商品图片容器（固定比例，防止图片变形） */
.product-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #ffffff;
  text-align: center;
}

/* 商品图片（自适应，居中裁剪） */
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.aosom-product-card:hover .product-img {
  transform: scale(1.05);
}

/* 商品信息容器（内边距） */
.product-title, .product-price, .product-link {
  padding: 0 20px;
  box-sizing: border-box;
}

/* 商品标题 */
.product-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 20px 0 10px;
  line-height: 1.4;
  height: 45px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 评分星级样式
   - 黄色星星突出评分，灰色未点亮星星作为底色
   - 字号14px，搭配评论数更协调
*/
.product-rating {
  display: flex;
  align-items: center;
  gap: 3px; /* 星星之间的间距 */
}
.star {
  font-size: 14px;
  color: #ddd; /* 未点亮星星颜色 */
}
.star-active {
  color: #f59e0b; /* 点亮星星颜色（琥珀色，可改为#ffc107亮黄） */
}
.rating-text {
  font-size: 12px;
  color: #999;
  margin-left: 5px;
}

/* 评分+免运费容器
   - flex布局实现横向排列，两端对齐
   - 内边距和标题/图片呼应，保持间距统一
*/
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0;
  box-sizing: border-box;
}

/* 免运费标签样式
   - 圆角背景+醒目颜色，突出优惠信息
   - 内边距控制标签大小，适配不同屏幕
*/
.product-shipping {
  font-size: 12px;
  font-weight: 600;
  color: #10b981; /* 免运费文字色（绿色，可改为#2563eb蓝色） */
  background: #ecfdf5; /* 免运费背景色（浅绿，可改为#eff6ff浅蓝） */
  padding: 3px 8px;
  border-radius: 20px; /* 圆形标签，改4px为直角 */
}


/* 商品描述（核心卖点） */
.product-price {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 20px 20px;
  min-height: 25px;
}

/* 查看详情链接 */
.product-link {
  font-family: Nunito Sans;
  display: inline-block;
  font-size: 16px!important;
  color: #000000;
  font-weight: 500;
  text-decoration: none;
  padding: 0 ;
  transition: color 0.2s ease;
}

.product-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.product-price {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.text-24 {
    font-size: 24px;
    line-height: 130%;
}
.fw-700 {
    font-weight: 700;
}
.color-gray-400 {
    color: var(--gray-400);
}
.text-14 {
    font-size: 14px;
    line-height: 130%;
}
#primary .post .entry-content h3.product-title {
    font-size: 16px;
}
/* 响应式适配（小屏优化） */
@media (max-width: 768px) {
  .aosom-product-card-wrap {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  .product-img-box {
    height: 200px;
  }
  .product-title {
    font-size: 16px;
  }
  .product-shipping {
    font-size: 11px; /* 手机端免运费标签字号减小 */
    padding: 2px 6px;
  }
  .star {
    font-size: 13px; /* 手机端星星字号减小 */
  }
}