/* 产品卡片 Flex 网格（列表页 + 首页 Latest Product 共用） */
.latest-product-section {
  background-color: #fff;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.product-grid .product-card {
  display: flex;
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.product-grid .product-card .tours-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  overflow: hidden;
  background-color: #fff;
  transition: all 0.5s ease;
}

.product-grid .product-card .tours-layout:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-grid .product-card .content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  background-color: #fafafa;
  border-top: 1px solid #ededed;
  transition: background-color 0.3s ease;
}

.product-grid .product-card .tours-layout:hover .content-wrapper {
  background-color: #fff;
}

.product-grid .product-card .content-wrapper > .content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 30px 20px;
  text-align: center;
}

.product-grid .product-card .content-wrapper > .content .title {
  flex: 0 0 auto;
  margin-bottom: 15px;
}

.product-grid .product-card .content-wrapper > .content .title .price {
  display: block;
}

.product-grid .product-card .content-wrapper > .content .title .for-price {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 2.8em;
  margin-left: 0;
  margin-bottom: 0;
  word-break: break-word;
}

.product-grid .product-card .product-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-grid .product-card .price .product-link {
  color: rgba(0, 147, 219);
}

.product-grid .product-card .price .product-link:hover,
.product-grid .product-card .for-price .product-link:hover {
  color: rgba(0, 147, 219);
}

.product-grid .product-card .for-price .product-link {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4d4d4d;
}

.product-grid .product-card .content-wrapper > .content > .text {
  flex: 1 1 auto;
  margin-bottom: 0;
  word-break: break-word;
}

.product-grid .product-card .image-wrapper .link img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .product-grid .product-card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575px) {
  .product-grid .product-card {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .product-grid .product-card .content-wrapper > .content {
    padding: 20px 15px;
  }
}

@media (max-width: 479px) {
  .product-grid .product-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
