/* ============================================
   Pagination — 兼容 buildFullPagination 输出的 ul.pagination>li 结构
   ============================================ */
.zs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
}

.zs-pagination .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.zs-pagination .pagination li a,
.zs-pagination .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--zs-color-border, #e8eaef);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--zs-color-text-dark, #333);
  background: #fff;
  transition: all 0.25s ease;
  text-decoration: none;
}

.zs-pagination .pagination li a:hover {
  border-color: var(--zs-color-primary);
  color: var(--zs-color-primary);
  background: rgba(200, 22, 29, 0.04);
}

.zs-pagination .pagination li.active span {
  background-color: var(--zs-color-primary);
  border-color: var(--zs-color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200, 22, 29, 0.3);
}

.zs-pagination .pagination li.disabled span {
  color: #ccc;
  cursor: not-allowed;
  border-color: #eee;
  background: #fafafa;
}

/* ============================================
   Product Page Styles — Polished
   ============================================ */

/* --- Layout --- */
.zs-product-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* ============================================
   Left Sidebar
   ============================================ */
.zs-product-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Search — top of sidebar */
.zs-product-search {
  display: flex;
  align-items: center;
  margin: 0;
  background: var(--zs-color-primary);
  border: none;
  border-radius: 0;
  overflow: hidden;
  height: 52px;
}

.zs-product-search:focus-within {
  background: #b5141a;
}

.zs-product-search-input {
  flex: 1;
  padding: 0 16px;
  font-size: 13px;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  height: 100%;
}

.zs-product-search-input::placeholder {
  color: rgba(255,255,255,0.7);
}

.zs-product-search-btn {
  min-width: 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  border: none;
  border-radius: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.zs-product-search-btn:hover {
  background: rgba(0,0,0,0.25);
}

/* Sidebar Title */
.zs-product-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--zs-color-text-dark);
  padding: 20px 20px 16px;
  margin-bottom: 0;
  border-bottom: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}

.zs-product-sidebar-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 36px;
  height: 3px;
  background: var(--zs-color-primary);
  border-radius: 2px;
}

/* Category List */
.zs-cat-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.zs-cat-item {
  border-bottom: none;
}

/* 链接+箭头容器 */
.zs-cat-link-wrap {
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.zs-cat-link-wrap:hover {
  border-left-color: var(--zs-color-primary);
  background: #fef5f5;
}

.zs-cat-item.active > .zs-cat-link-wrap {
  border-left-color: var(--zs-color-primary);
  background: #fef5f5;
}

.zs-cat-link {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 11px 8px 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  transition: color 0.2s ease;
  cursor: pointer;
  border-radius: 0;
}

.zs-cat-link:hover {
  color: var(--zs-color-primary);
}

.zs-cat-item.active > .zs-cat-link-wrap .zs-cat-link {
  color: var(--zs-color-primary);
  font-weight: 600;
}

.zs-cat-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #ccc;
  cursor: pointer;
  padding: 8px 16px 8px 8px;
}

.zs-cat-arrow:hover {
  color: var(--zs-color-primary);
}

.zs-cat-item.active > .zs-cat-link-wrap .zs-cat-arrow {
  transform: rotate(180deg);
  color: var(--zs-color-primary);
}

/* Sub-category */
.zs-cat-sub {
  display: none;
  padding: 4px 0 8px 0;
  background: #fafbfc;
}

.zs-cat-item.active .zs-cat-sub {
  display: block;
  animation: zsCatSlideDown 0.3s ease;
}

@keyframes zsCatSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.zs-cat-sub li {
  position: relative;
}

.zs-cat-sub li::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d0d0d0;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.zs-cat-sub li:hover::before {
  background: var(--zs-color-primary);
}

.zs-cat-sub li a {
  display: block;
  padding: 8px 20px 8px 44px;
  font-size: 13px;
  color: #666;
  transition: all 0.2s ease;
}

.zs-cat-sub li a:hover {
  color: var(--zs-color-primary);
  background: #fef5f5;
}

.zs-cat-sub li.active::before {
  background: var(--zs-color-primary);
}

.zs-cat-sub li.active a {
  color: var(--zs-color-primary);
  font-weight: 600;
}

/* ============================================
   Right Content
   ============================================ */
.zs-product-content {
  flex: 1;
  min-width: 0;
}

/* Content Header */
.zs-product-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--zs-color-border);
  margin-bottom: 24px;
}

.zs-product-content-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.zs-product-content-title h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--zs-color-text-dark);
  letter-spacing: -0.3px;
}

.zs-product-count {
  font-size: 13px;
  color: #aaa;
  font-weight: 400;
}

.zs-product-sort {
  flex-shrink: 0;
}

.zs-btn-just-for-you {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 40px;
  background: var(--zs-color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.zs-btn-just-for-you:hover {
  background: #a5111a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(200, 22, 29, 0.3);
  transform: translateY(-1px);
}

.zs-btn-just-for-you svg {
  flex-shrink: 0;
}

/* Category Description */
.zs-product-cat-desc {
  margin-bottom: 32px;
  padding: 0 0 24px;
  background: none;
  border-radius: 0;
  border-left: none;
  border-bottom: 1px solid #eee;
}

.zs-product-cat-desc p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--zs-color-text);
}

.zs-product-cat-desc strong {
  color: var(--zs-color-text-dark);
  font-weight: 600;
}

/* ============================================
   Product Grid — index-style cards
   ============================================ */
.zs-product-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.zs-product-list-card {
  display: flex;
  flex-direction: column;
  background: var(--zs-color-white);
  border: 1px solid var(--zs-color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zs-product-list-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  border-color: transparent;
  transform: translateY(-4px);
}

.zs-product-list-card .zs-card-img {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: #fff;
}

.zs-product-list-card .zs-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zs-product-list-card:hover .zs-card-img img {
  transform: scale(1.08);
}

/* 缩略图悬停切换效果 */
.zs-card-img.zs-thumb-hover .zs-thumb-default {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.5s ease;
}
.zs-card-img.zs-thumb-hover .zs-thumb-hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s ease;
}
.zs-product-list-card:hover .zs-card-img.zs-thumb-hover .zs-thumb-default {
  opacity: 0;
}
.zs-product-list-card:hover .zs-card-img.zs-thumb-hover .zs-thumb-hover-img {
  opacity: 1;
  transform: scale(1.08);
}

/* Model tag — top-left badge */
.zs-product-list-card .zs-product-model-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--zs-color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(200, 22, 29, 0.3);
}

.zs-product-list-card .zs-card-body {
  padding: 16px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.zs-product-list-card .zs-card-body h4 {
  font-size: 14px;
  font-weight: 400;
  color: var(--zs-color-text-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  margin-bottom: 0;
  transition: all 0.3s ease;
}

.zs-product-list-card:hover .zs-card-body h4 {
  color: var(--zs-color-primary);
  font-weight: 600;
}

/* ============================================
   Pagination
   ============================================ */
.zs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}

.zs-pagination a,
.zs-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--zs-color-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--zs-color-text-dark);
  transition: all 0.25s ease;
}

.zs-pagination a:hover {
  border-color: var(--zs-color-primary);
  color: var(--zs-color-primary);
  background: rgba(200, 22, 29, 0.04);
}

.zs-pagination span.active {
  background-color: var(--zs-color-primary);
  border-color: var(--zs-color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200, 22, 29, 0.3);
}

/* ============================================
   Product Detail — Hero Section
   ============================================ */
.zs-product-detail {
  display: flex;
  gap: 56px;
  padding: 20px 0;
}

/* Gallery */
.zs-product-gallery {
  width: 42%;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.zs-product-gallery-main {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #eee;
  background: #fafafa;
  transition: border-color 0.3s ease;
}

.zs-product-gallery-main:hover {
  border-color: #ddd;
}

.zs-product-gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.4s ease;
}

.zs-product-gallery-main:hover img {
  transform: scale(1.03);
}

.zs-product-gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zs-thumb-track {
  display: flex;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}

.zs-thumb-prev,
.zs-thumb-next {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  color: #999;
  transition: all 0.25s ease;
}

.zs-thumb-prev:hover,
.zs-thumb-next:hover {
  border-color: var(--zs-color-primary);
  color: var(--zs-color-primary);
  box-shadow: 0 2px 8px rgba(200, 22, 29, 0.15);
}

.zs-thumb-track img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fafafa;
}

.zs-thumb-track img:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.zs-thumb-track img.active {
  border-color: var(--zs-color-primary);
  box-shadow: 0 0 0 1px var(--zs-color-primary);
}

/* Product Info */
.zs-product-info {
  width: 58%;
  padding-top: 4px;
}

.zs-product-info h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--zs-color-text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.zs-product-model-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 16px;
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 4px;
}

.zs-product-model-label {
  font-size: 12px;
  color: #aaa;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zs-product-model-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--zs-color-primary);
  letter-spacing: 0.5px;
}

.zs-product-info .zs-product-desc {
  font-size: 14px;
  line-height: 1.85;
  color: #666;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

/* Specs Card */
.zs-product-specs {
  margin-bottom: 32px;
  background: #f8f9fc;
  border-radius: 6px;
  padding: 28px 32px;
}

.zs-product-specs h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--zs-color-text-dark);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.zs-specs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zs-specs-list li {
  font-size: 14px;
  line-height: 1.7;
  color: #888;
  padding-left: 20px;
  position: relative;
}

.zs-specs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zs-color-primary);
}

/* Inquiry Button */
.zs-product-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 16px;
}

.zs-product-info .zs-btn-primary {
  padding: 0 36px;
  height: 48px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(200, 22, 29, 0.25);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.zs-product-info .zs-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(200, 22, 29, 0.35);
  transform: translateY(-2px);
}

/* Tags */
.zs-product-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 40px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.zs-product-tags > svg {
  color: #ccc;
  flex-shrink: 0;
  margin-right: 4px;
}

.zs-product-tags a {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  color: #888;
  background: #f5f6f8;
  border-radius: 20px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.zs-product-tags a:hover {
  color: var(--zs-color-primary);
  background: #fef5f5;
  border-color: rgba(200, 22, 29, 0.15);
}

/* Product Navigation (Prev / Back / Next) */
.zs-product-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.zs-product-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #999;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.25s ease;
  border: 1px solid #eee;
  background: #fff;
}

.zs-product-nav-link:hover {
  color: var(--zs-color-primary);
  border-color: rgba(200, 22, 29, 0.2);
  background: #fef5f5;
}

.zs-product-nav-link svg {
  flex-shrink: 0;
}

.zs-nav-back {
  color: #666;
  padding: 8px 10px;
}

.zs-nav-back:hover {
  color: var(--zs-color-primary);
}

/* ============================================
   Related Products Grid
   ============================================ */
.zs-related-products {
  background: #f8f9fc;
}

/* ============================================
   Detail Tabs + Related Sidebar
   ============================================ */
.zs-detail-tabs-section {
  background: #f8f9fc;
  padding-top: 60px;
  margin-top: -60px;
  padding-bottom: 80px;
}

.zs-detail-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.zs-detail-main {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* Tabs Nav */
.zs-detail-tabs {
  display: flex;
  background: #f0f1f5;
  border: none;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  margin-bottom: 0;
}

.zs-detail-tab {
  flex: 1;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.zs-detail-tab:last-child {
  border-right: none;
}

.zs-detail-tab:hover {
  color: #333;
  background: rgba(0,0,0,0.04);
}

.zs-detail-tab.active {
  color: #fff;
  background: var(--zs-color-primary);
}

.zs-detail-tab.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--zs-color-primary);
}

/* Tab Panels */
.zs-detail-panel {
  display: none;
  padding: 36px 40px 48px;
  animation: zsTabFadeIn 0.35s ease;
}

@keyframes zsTabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.zs-detail-panel.active {
  display: block;
}

.zs-detail-panel h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--zs-color-text-dark);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--zs-color-primary);
  display: inline-block;
}

.zs-detail-panel p {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 16px;
}

.zs-detail-panel ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zs-detail-panel li {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  padding-left: 22px;
  position: relative;
}

.zs-detail-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zs-color-primary);
  opacity: 0.4;
}

.zs-detail-panel table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.zs-detail-panel table tbody tr:last-child {
  border-bottom-width: 0;
}

.zs-detail-panel table tbody tr td {
  padding: 8px 8px 8px 0;
}

/* Basic Info Table */
.zs-basic-table {
  width: 100%;
  border-collapse: collapse;
}

.zs-basic-table tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.zs-basic-table tr:hover {
  background: #fafbfd;
}

.zs-basic-table tr:last-child {
  border-bottom: none;
}

.zs-basic-table th,
.zs-basic-table td {
  padding: 15px 0;
  font-size: 14px;
  text-align: left;
  border: none;
}

.zs-basic-table th {
  width: 160px;
  color: #999;
  font-weight: 500;
  background: none;
}

.zs-basic-table td {
  color: var(--zs-color-text-dark);
  font-weight: 500;
}

/* Right Sidebar — Related */
.zs-detail-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 28px 24px;
}

.zs-detail-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--zs-color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.zs-detail-sidebar-sub {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.zs-detail-related-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zs-detail-related-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.zs-detail-related-item:hover {
  background: #fafbfd;
  border-color: #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.zs-detail-related-img {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: #fafafa;
}

.zs-detail-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.zs-detail-related-item:hover .zs-detail-related-img img {
  transform: scale(1.08);
}

.zs-detail-related-item h4 {
  font-size: 13px;
  font-weight: 500;
  color: #444;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.zs-detail-related-item:hover h4 {
  color: var(--zs-color-primary);
}

/* Responsive — Detail Tabs */
@media (max-width: 1024px) {
  .zs-detail-layout { flex-direction: column; }
  .zs-detail-sidebar { width: 100%; }
  .zs-detail-related-list { flex-direction: row; flex-wrap: wrap; }
  .zs-detail-related-item { width: calc(50% - 7px); }
  .zs-detail-main { border-radius: 8px; }
  .zs-detail-sidebar { border-radius: 8px; }
}

@media (max-width: 768px) {
  .zs-detail-tabs { flex-wrap: wrap; }
  .zs-detail-tab { flex: none; width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 12px; padding: 14px 12px; }
  .zs-detail-panel { padding: 24px 20px 32px; }
  .zs-detail-related-item { width: 100%; }
  .zs-basic-table th { width: 120px; }
}

/* ============================================
   Sidebar Recommended Products
   ============================================ */
.zs-sidebar-recommend {
  margin-top: 0;
  padding: 20px;
  border-top: 1px solid #eee;
}

.zs-sidebar-recommend-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--zs-color-text-dark);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--zs-color-primary);
}

.zs-sidebar-recommend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zs-recommend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.zs-recommend-item:hover {
  background: rgba(200, 22, 29, 0.04);
}

.zs-recommend-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid var(--zs-color-border);
  border-radius: 6px;
  overflow: hidden;
}

.zs-recommend-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zs-recommend-item h4 {
  font-size: 13px;
  font-weight: 400;
  color: var(--zs-color-text-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.zs-recommend-item:hover h4 {
  color: var(--zs-color-primary);
}

/* ============================================
   Key Features & Applications (polished)
   ============================================ */
.zs-product-features,
.zs-product-applications {
  margin-top: 48px;
  padding: 0;
  background: none;
  border-radius: 0;
  border: none;
  border-top: 1px solid #eee;
  padding-top: 32px;
}

.zs-product-features h3,
.zs-product-applications h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--zs-color-text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--zs-color-primary);
  display: inline-block;
}

.zs-product-features ul,
.zs-product-applications ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zs-product-features li,
.zs-product-applications li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--zs-color-text);
  padding-left: 20px;
  position: relative;
}

.zs-product-features li::before,
.zs-product-applications li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zs-color-primary);
  opacity: 0.6;
}

.zs-product-features li strong,
.zs-product-applications li strong {
  color: var(--zs-color-text-dark);
}

.zs-product-applications {
  margin-top: 32px;
  border-top: none;
  padding-top: 0;
}

.zs-product-applications > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--zs-color-text);
  margin-bottom: 16px;
}

/* ============================================
   Hot Resources (Product Page)
   ============================================ */
.zs-product-hotres {
  background: #fff;
  padding-top: 80px;
  padding-bottom: 60px;
}

.zs-product-hotres .zs-section-header {
  margin-bottom: 50px;
}

/* ============================================
   FAQs (Product Page)
   ============================================ */
.zs-product-faqs {
  background: #f8f9fc;
  padding-top: 80px;
  padding-bottom: 80px;
}

.zs-product-faqs .zs-section-header {
  margin-bottom: 40px;
}

/* ============================================
   Contact CTA (Product Page)
   ============================================ */
.zs-product-contact-cta {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 100px 0;
}

.zs-product-contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 80, 0.7);
}

.zs-contact-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.zs-contact-cta-inner h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.zs-contact-cta-inner > p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 36px;
}

.zs-contact-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.zs-btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.zs-btn-outline-white:hover {
  background: #fff;
  color: var(--zs-color-primary);
  border-color: #fff;
}

/* ============================================
   Latest News (Product Page)
   ============================================ */
.zs-product-news {
  background: var(--zs-color-bg-light);
  padding-top: 80px;
  padding-bottom: 80px;
}

.zs-product-news .zs-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.zs-product-news .zs-section-header-row .zs-section-title {
  margin-bottom: 0;
}

.zs-product-news .zs-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.zs-product-news .zs-news-card {
  background: var(--zs-color-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--zs-color-border);
  transition: all 0.3s ease;
}

.zs-product-news .zs-news-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.zs-product-news .zs-news-card-img {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.zs-product-news .zs-news-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.zs-product-news .zs-news-card:hover .zs-news-card-img img {
  transform: scale(1.05);
}

.zs-product-news .zs-news-card-body {
  padding: 20px;
}

.zs-product-news .zs-news-card-date {
  font-size: 12px;
  color: var(--zs-color-text-light);
  margin-bottom: 8px;
}

.zs-product-news .zs-news-card-body h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--zs-color-text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.zs-product-news .zs-news-card:hover .zs-news-card-body h4 {
  color: var(--zs-color-primary);
}

.zs-product-news .zs-news-card-body p {
  font-size: 13px;
  color: var(--zs-color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Responsive — New Sections
   ============================================ */
@media (max-width: 1024px) {
  .zs-product-layout {
    flex-direction: column;
  }
  .zs-product-sidebar {
    width: 100%;
    position: static;
    border-radius: 8px;
  }
  .zs-cat-list {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .zs-cat-item {
    border-bottom: none;
  }
  .zs-cat-link {
    padding: 10px 8px 10px 16px;
    font-size: 14px;
  }
  .zs-cat-link-wrap {
    border-left: 3px solid transparent;
  }
  .zs-product-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .zs-product-detail { flex-direction: column; }
  .zs-product-gallery, .zs-product-info { width: 100%; }
  .zs-sidebar-recommend { display: none; }
  .zs-contact-cta-inner h2 { font-size: 28px; }
  .zs-product-news .zs-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .zs-product-layout { gap: 24px; }
  .zs-product-sidebar { padding: 20px 16px; }
  .zs-product-list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .zs-product-content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .zs-product-content-title h2 {
    font-size: 22px;
  }
  .zs-product-list-card .zs-card-body {
    padding: 12px 10px;
  }
  .zs-product-list-card .zs-card-body h4 {
    font-size: 13px;
  }
  .zs-product-features, .zs-product-applications { padding: 0; padding-top: 24px; }
  .zs-product-hotres { padding-top: 40px; padding-bottom: 40px; }
  .zs-product-faqs { padding-top: 40px; padding-bottom: 40px; }
  .zs-product-contact-cta { padding: 60px 0; }
  .zs-contact-cta-inner h2 { font-size: 24px; }
  .zs-contact-cta-btns { flex-direction: column; }
  .zs-product-news { padding-top: 40px; padding-bottom: 40px; }
  .zs-product-news .zs-news-grid { grid-template-columns: 1fr; }
  .zs-product-news .zs-section-header-row { flex-direction: column; gap: 16px; align-items: flex-start; margin-bottom: 32px; }
}
