.product-grid {
  margin-top: 2rem;
}

.product-grid img {
  width: 100%;
  object-fit: cover;
  height: 100%;
}
.product-thumbnail {
  height: 306px;
}
/* product cart */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin: 2rem auto;
  width: auto;
}

.product-card {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: auto;
}

.card-action .btn-add-to-cart {
  border: none;
  background: white;
  color: #111;
  font-size: 18px;
}

.card-content {
  text-align: left;
  padding: 18px;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.product-card .card-content {
  padding: 15px;
  z-index: 1;
  text-align: center;
  background: white;
  width: 100%;
}

.product-cards img {
  width: 100%;
}

.btn-add-to-cart {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.product-title {
  margin: 0;
}

.product-widget-wrapper p {
  margin: 0;
}

/* product grid */
.product-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
  gap: 20px;
  border: 1px dashed #ccc;
  padding: 2rem 0;
  border-radius: 6px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.product-title2 {
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.product-grid-item {
  border: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  background-color: white;
}

.product-meta-box {
  padding: 18px;
  display: flex;
  flex-grow: 1;
  flex-flow: column nowrap;
  justify-content: space-between;
}

.product-price {
  margin: auto 0 0;
  color: #c44833;
  font-weight: 600;
  text-align: left;
}

/* product list */
.product-list {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  padding: 0;
  gap: 20px;
}

.product-list-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
  border: 1px solid #ececec;
  background: #fafafa;
  padding: 15px 16px;
  font-weight: 700;
}

.product-list-item h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.product-list-item span {
  color: rgba(0, 0, 0, 0.5);
  font-weight: 400;
}
/* ==========================================
   分页与无限加载 (Pagination & Load More) 样式
   ========================================== */

/* 经典分页居中 */
.pagination-wrapper {
  margin-top: 40px;
  text-align: center;
}

/* 无限加载容器 */
.load-more-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Load More 按钮样式 */
.btn-load-more {
  background-color: #1a5f3e;
  color: #fff;
  border: none;
  padding: 12px 40px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.btn-load-more:hover {
  background-color: #12452c;
}

/* 加载中提示文字样式 */
/* 修改加载容器为 Flex 布局，让图标和文字横向居中对齐 */
.load-more-loading {
  margin-top: 15px;
  color: #777;
  font-size: 16px; /* 字体稍微放大一点匹配截图 */
  font-weight: 500;
  display: flex; /* 注意：这里我们在 CSS 不写 display:none，由 JS 控制 */
  justify-content: center;
  align-items: center;
  gap: 12px; /* 图标和文字的间距 */
}

/* 旋转动画属性 */
.swiftcart-spinner {
  color: #999;
  animation: swiftcart-spin 1.2s linear infinite;
}

@keyframes swiftcart-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
