
.product-list-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  min-height: 60vh;
}


.product-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}
@media (max-width: 1024px) {
  .product-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .product-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .product-grid-container {
    grid-template-columns: 1fr;
  }
}

.product-item-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #d93800;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 10;
  line-height: 1.2;
}

/* 右上角独立爱心收藏按钮 */
.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  z-index: 10;
  text-decoration: none;
}
.product-wishlist-btn:hover, .product-wishlist-btn.active {
  background-color: #ffffff;
  color: #e8566d;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(232, 86, 109, 0.25);
}
.product-wishlist-btn.active svg {
  fill: #e8566d;
}

/* 产品图片排版区 (灰色底背景) */
.product-img-holder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-img-holder .product-img-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.product-img-holder img {
  width: 100%;
  height: 100%;
  /* object-fit: contain; */
  transition: transform 0.35s ease;
}
.product-item-card:hover .product-img-holder img {
  transform: scale(1.05);
}



/* 当产品列表包含空数据块时，隐藏翻页控件 */
.product-list-container:has(.empty-block) .product-pagination {
  display: none !important;
}

/* 卡片下方主体区 (左对齐) */
.product-card-body {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

/* 产品标题 */
.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* min-height: 2.8em; */
}
.product-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.product-card-title a:hover {
  color: #d93800;
}

/* 产品简介描述 */
.product-card-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 产品价格结构 */
.product-card-price-box {
  display: flex;
  align-items: baseline;
  margin-bottom: 1.25rem;
  color: #111827;
  font-family: inherit;
}
.product-card-price-box .price-symbol {
  font-size: 0.8rem;
  margin-right: 3px;
}
.product-card-price-box .price-amount {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

/* 亮黄色胶囊按钮 */
.product-btn-cart {
  width: 100%;
  height: 42px;
  background-color: #ffd000;
  color: #111827;
  font-size: 0.95rem;
  /* font-weight: 700; */
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}
.product-btn-cart:hover {
  background-color: #f5c400;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 208, 0, 0.35);
}

/* 分页条 Styles */
.product-pagination {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.product-pagination a, .product-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #475569;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.product-pagination a:hover, .product-pagination .current, .product-pagination .active {
  background-color: #ffd000;
  border-color: #ffd000;
  color: #111827;
  font-weight: 700;
}
















/* Tabs */
.product-container {
  max-width: 1200px;
  margin: 0 auto;
}

.product-cat-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 1rem;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  /* margin-bottom: 3rem; */
  overflow-x: auto;
}

.product-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #374151;
  padding-bottom: 0.5rem;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.product-cat-item span{
  padding: 5px 10px;  
  line-height: 1;
  transition: all 0.3s ease;
}

.product-cat-item:hover span,
.product-cat-item.active span {
  background-color: #F6E4D9;
  padding: 5px 10px;
  border-radius: 4px;
  line-height: 1;
}

.product-cat-icon {
  height: 100px;
  width: auto;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}
.product-cat-item:hover .product-cat-icon{
  transform: scale(1.08);
}


/* 板块标题 */
.product-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background-color: var(--brand-orange, #f96c05);
}

.product-main-card {
  background-color: #ffffff;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 2rem;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .product-hero-grid {
    grid-template-columns: 5fr 6fr;
    gap: 2.5rem;
  }
}

/* 产品图 (左侧缩略图 + 右侧大图) */
.product-gallery-box {
  display: flex;
  gap: 1.25rem;
  position: relative;
  align-items: flex-start;
}

.product-thumb-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 76px;
  flex-shrink: 0;
}

/* 缩略图*/
.product-thumb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 336px;
  height: 336px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
  box-sizing: border-box;
}
.product-thumb-list::-webkit-scrollbar {
  display: none;
}

.product-thumb-item {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.product-thumb-item.active,
.product-thumb-item:hover {
  border-color: var(--brand-orange, #f96c05);
}

.product-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 缩略图 <= 4 个自动隐藏箭头 */
.product-thumb-wrapper.has-few-thumbs .thumb-arrow-btn {
  display: none !important;
}

/* 缩略图箭头按钮 */
.thumb-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 22px;
  background-color: rgba(229, 231, 235, 0.9);
  color: #374151;
  font-size: 1.1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.thumb-arrow-btn:hover {
  background-color: var(--brand-orange, #f96c05);
  color: #ffffff;
}

@media (min-width: 768px) {
  .thumb-prev-btn span,
  .thumb-next-btn span {
    transform: rotate(90deg);
  }
}

.product-main-img-box {
  flex: 1;
  aspect-ratio: 1;
  border: 1px solid #f3f4f6;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  position: relative;
  cursor: pointer;
}

.product-main-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 淘宝式右侧放大镜 */
@media (min-width: 768px) {
  .zoom-lens {
    position: absolute;
    width: 130px;
    height: 130px;
    background-color: rgba(249, 108, 5, 0.22);
    border: 1px solid rgba(249, 108, 5, 0.6);
    pointer-events: none;
    border-radius: 0.25rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 20;
  }

  .zoom-preview-pop {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 1.5rem;
    width: 440px;
    height: 440px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    background-repeat: no-repeat;
    background-color: #ffffff;
    z-index: 99;
    pointer-events: none;
  }
}

/* 右侧购买参数信息区 */
.product-info-box {
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.35rem;
  color: #a49a38; 
  margin-bottom: 1.25rem;
}

.product-spec-quick {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed #e5e7eb;
}

.product-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-buy-now {
  padding: 0.625rem 2rem;
  background-color: var(--brand-orange, #f96c05);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-buy-now:hover {
  opacity: 0.9;
}

.btn-add-quote {
  padding: 0.625rem 2rem;
  background-color: #ea580c;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-add-quote:hover {
  opacity: 0.9;
}

.product-parts-desc {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-share-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.share-icon-list {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.share-icon-list .iconfont{
  font-size: 20px;
}

.share-icon-list .icon-NGpinqu{
  font-size: 24px;
}

.share-icon-list span:hover{
  color: var(--brand-orange, #f96c05);
  cursor: pointer;
  transition: all 0.3s ease;
}


/* 下面的选项卡 */
.product-tabs-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-radius: 0.25rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  gap: 2rem;
  /* padding: 0 2rem ; */
}

.tab-btn {
  padding: 0.75rem 1rem;
  text-align: center;
  color: #4b5563;
  background-color: #e5e7eb;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #aaa;
}

.tab-btn.active {
  background-color: var(--brand-orange, #f96c05);
  color: #ffffff;
}
@media (max-width: 768px) {
  .product-tabs-header {
    gap: 0.5rem;
    padding: 0;
  }
  .tab-btn {
    padding: 0.5rem;
  }
}
.spec-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 2rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: #4b5563;
}

@media (min-width: 640px) {
  .spec-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.spec-item-line {
  line-height: 1.6;
}

/* 全屏大图 */
.img-preview-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
  overflow: hidden;
  user-select: none;
}

.img-preview-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.img-preview-modal img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s cubic-bezier(0.1, 0.57, 0.1, 1);
  touch-action: none;
  cursor: grab;
}

.img-preview-modal img:active {
  cursor: grabbing;
}

.preview-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.preview-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 移动端 */
@media (max-width: 768px) {
  .product-container {
    padding: 1rem 0.75rem 3rem;
  }

  .product-cat-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 1rem 0.5rem;
    margin-bottom: 1.5rem;
    justify-items: center;
  }

  .product-cat-item {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .product-cat-icon {
    height: 60px;
    margin-bottom: 0.25rem;
  }

  .product-cat-item span {
    font-size: 0.75rem;
  }

  /* 缩略图：移动端大图在上，缩略图滑动在下 */
  .product-gallery-box {
    flex-direction: column-reverse;
    gap: 0.875rem;
  }

  .product-thumb-wrapper {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .product-thumb-list {
    flex: 1;
    width: 0;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .product-thumb-item {
    width: calc((100% - 24px) / 4);
    flex: 0 0 calc((100% - 24px) / 4);
    height: auto;
    aspect-ratio: 1;
  }

  .thumb-arrow-btn {
    width: 22px;
    align-self: stretch;
    height: auto;
    min-height: 36px;
    flex-shrink: 0;
    font-size: 1.1rem;
    background-color: rgba(229, 231, 235, 0.9);
    border-radius: 4px;
    margin: 2px 0;
  }

  .product-main-img-box {
    width: 100%;
    aspect-ratio: 1;
    cursor: pointer;
  }

  .product-action-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .btn-buy-now,
  .btn-add-quote {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.85rem;
  }

  .spec-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
