/* ===== Products Center page ===== */

/* Page banner — white gradient overlay on the left so text reads clearly */
.pc-banner {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}

.pc-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
}

.pc-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 40%,
    rgba(255, 255, 255, 0.35) 68%,
    rgba(255, 255, 255, 0) 82%);
}

.pc-banner .container {
  position: relative;
  z-index: 2;
}

.pc-banner-content h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: 1px;
  line-height: 1.1;
}

.pc-banner-en {
  display: inline-block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--yellow-dark);
  text-transform: uppercase;
}

.pc-banner-content p {
  margin-top: 8px;
  font-size: 13.5px;
  color: #555555;
  max-width: 620px;
}

/* Main */
.pc-main {
  padding: 34px 0 56px;
  background: var(--white);
}

/* Section head */
.pc-section-head {
  margin-bottom: 18px;
}

.pc-section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  line-height: 1.2;
  display: inline;
}

.pc-section-en {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gray-500);
  text-transform: uppercase;
}

/* Horizontal category tabs */
.pc-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #E5E5E5;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pc-tabs::-webkit-scrollbar {
  display: none;
}

.pc-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 18px 11px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.pc-tab:hover {
  color: var(--yellow-dark);
}

.pc-tab.active {
  color: var(--yellow-dark);
  border-bottom-color: var(--yellow);
}

.pc-tab-en {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--gray-500);
}

.pc-tab.active .pc-tab-en,
.pc-tab:hover .pc-tab-en {
  color: var(--gray-500);
}

html[lang="en"] .pc-tab-en {
  display: none;
}

/* Toolbar: current view label + search */
.pc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pc-view-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}

.pc-view-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
}

.pc-search {
  position: relative;
  display: flex;
  align-items: center;
}

.pc-search input {
  width: 280px;
  height: 40px;
  padding: 0 38px 0 14px;
  border: 1px solid #DDDDDD;
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s;
}

.pc-search input:focus {
  outline: none;
  border-color: var(--yellow);
}

.pc-search svg {
  position: absolute;
  right: 12px;
  color: var(--gray-500);
  pointer-events: none;
}

.pc-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

/* Product grid — 4 columns on desktop */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #EEEEEE;
  border-radius: 3px;
  padding: 20px 18px 18px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.pc-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* Image area ≈ 55–60% of card height */
.pc-card-img {
  height: 240px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--white);
}

.pc-card-img img,
.pc-card-img svg {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.pc-card:hover .pc-card-img img,
.pc-card:hover .pc-card-img svg {
  transform: scale(1.05);
}

.pc-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}

html[lang="zh"] .pc-card-name {
  font-size: 16px;
  letter-spacing: 0.5px;
}

.pc-card-en {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

html[lang="en"] .pc-card-en {
  display: none;
}

.pc-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 2);
}

.pc-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--black);
  padding-top: 12px;
  border-top: 1px solid #F0F0F0;
  transition: color 0.2s;
}

.pc-card-link .dir-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.pc-card:hover .pc-card-link {
  color: var(--yellow-dark);
}

.pc-card:hover .pc-card-link .dir-arrow {
  transform: translateX(3px);
}

.pc-empty {
  padding: 70px 20px;
  text-align: center;
  font-size: 15px;
  color: var(--gray-500);
  border: 1px dashed #DDDDDD;
  grid-column: 1 / -1;
}

/* Pagination */
.pc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.pc-page {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #DDDDDD;
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pc-page:hover {
  border-color: var(--yellow);
  color: var(--yellow-dark);
}

.pc-page.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.pc-page.prev,
.pc-page.next {
  font-size: 18px;
  line-height: 1;
}

/* RTL */
html[dir="rtl"] .pc-search svg {
  right: auto;
  left: 12px;
}

html[dir="rtl"] .pc-search input {
  padding: 10px 14px 10px 38px;
}

/* Responsive */
@media (max-width: 1199px) {
  .pc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .pc-banner {
    height: 200px;
  }
  .pc-banner-content h1 {
    font-size: 28px;
  }
  .pc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .pc-card-img {
    height: 200px;
  }
  .pc-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .pc-search {
    width: 100%;
  }
  .pc-search input {
    width: 100%;
  }
  .pc-tabs {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 479px) {
  .pc-grid {
    grid-template-columns: 1fr;
  }
  .pc-card-img {
    height: 180px;
  }
}

/* ===== Product Detail page ===== */
.pdet-main {
  padding: 28px 0 48px;
  background: var(--white);
}

.pdet-breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdet-breadcrumb a {
  color: var(--gray-500);
  transition: color 0.2s;
}

.pdet-breadcrumb a:hover {
  color: var(--yellow-dark);
}

.pdet-breadcrumb .sep {
  color: var(--gray-300);
}

.pdet-breadcrumb .pdet-crumb-cat {
  color: var(--black);
  font-weight: 600;
}

.pdet-hero {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid #F0F0F0;
  margin-bottom: 32px;
}

.pdet-img {
  border: 1px solid #EEEEEE;
  border-radius: 3px;
  background: var(--white);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pdet-img img,
.pdet-img svg,
.pdet-svg {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.pdet-svg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdet-info {
  padding-top: 6px;
}

.pdet-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border: 1px solid #E8E8E8;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.pdet-cat-en {
  color: var(--gray-500);
  font-weight: 600;
}

html[lang="en"] .pdet-cat-en {
  display: none;
}

.pdet-name {
  font-size: 34px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 4px;
}

html[lang="zh"] .pdet-name {
  font-size: 30px;
}

.pdet-en {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--yellow-dark);
  margin-bottom: 16px;
}

.pdet-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 560px;
  margin-bottom: 24px;
}

.pdet-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pdet-actions .btn {
  height: 46px;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 0;
}

.pdet-specs {
  max-width: 860px;
}

.pdet-spec-title {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.pdet-spec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--yellow);
}

.pdet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pdet-table tr {
  border-bottom: 1px solid #F0F0F0;
}

.pdet-table th {
  width: 200px;
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--black);
  background: var(--gray-100);
  vertical-align: top;
}

.pdet-table td {
  padding: 14px 16px;
  color: var(--gray-700);
  line-height: 1.6;
}

.pdet-notfound {
  text-align: center;
  padding: 80px 20px;
}

.pdet-notfound h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}

.pdet-notfound p {
  font-size: 14px;
  color: var(--gray-500);
}

.pdet-back {
  margin-top: 32px;
}

/* Detail responsive */
@media (max-width: 1100px) {
  .pdet-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pdet-img {
    height: 300px;
  }
}

@media (max-width: 767px) {
  .pdet-name {
    font-size: 26px;
  }
  .pdet-img {
    height: 240px;
  }
  .pdet-table th {
    width: 120px;
  }
}

/* ===== Product Detail: features / related / docs / quote form ===== */
.pdet-features {
  margin-top: 28px;
  max-width: 860px;
}

.pdet-feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.pdet-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
  padding: 10px 14px;
  background: var(--gray-100);
  border-left: 3px solid var(--yellow);
}

.pdet-feature-list .tick {
  color: var(--yellow-dark);
  font-weight: 800;
  flex: none;
}

/* Related products */
.pdet-related {
  margin-top: 36px;
}

.pdet-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pdet-related-card {
  display: block;
  border: 1px solid #EEEEEE;
  border-radius: 3px;
  padding: 16px 12px 14px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pdet-related-card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.pdet-related-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.pdet-related-img svg {
  max-height: 100%;
  max-width: 100%;
}

.pdet-related-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}

.pdet-related-en {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gray-500);
}

html[lang="en"] .pdet-related-en {
  display: none;
}

/* Technical documents */
.pdet-docs {
  margin-top: 36px;
  max-width: 860px;
}

.pdet-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--yellow);
  color: var(--black);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  transition: background 0.2s, color 0.2s;
}

.pdet-download:hover {
  background: var(--yellow);
  color: var(--black);
}

/* Quote form */
.pdet-quote {
  margin-top: 36px;
  max-width: 860px;
  background: var(--gray-100);
  border: 1px solid #EEEEEE;
  border-radius: 3px;
  padding: 26px 28px 28px;
}

.pdet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  margin-bottom: 14px;
}

.pdet-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

.pdet-form input,
.pdet-form textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--black);
  border: 1px solid #DDDDDD;
  border-radius: 2px;
  padding: 10px 12px;
  background: var(--white);
  transition: border-color 0.15s;
}

.pdet-form input:focus,
.pdet-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

.pdet-form-msg {
  margin-bottom: 16px;
}

.pdet-form-msg textarea {
  resize: vertical;
}

.pdet-form .btn {
  height: 46px;
  padding: 0 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 0;
  border: none;
  cursor: pointer;
}

.pdet-form-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--gray-500);
}

/* Related / features responsive */
@media (max-width: 767px) {
  .pdet-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdet-feature-list {
    grid-template-columns: 1fr;
  }
  .pdet-form-grid {
    grid-template-columns: 1fr;
  }
  .pdet-quote {
    padding: 20px 16px 22px;
  }
}

/* Empty state reset button */
.pc-empty-btn {
  margin-top: 16px;
  height: 42px;
  padding: 0 26px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

/* ===== News page ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #EEEEEE;
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.news-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.news-cover {
  height: 190px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-cover img {
  transform: scale(1.04);
}

.news-cover-ph {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-300);
  border: 1px dashed var(--gray-300);
  padding: 14px 22px;
}

.news-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.news-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--black);
  background: var(--yellow);
  padding: 3px 8px;
}

.news-date {
  font-size: 12px;
  color: var(--gray-500);
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 8px;
}

.news-excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--black);
  transition: color 0.2s;
}

.news-card:hover .news-more {
  color: var(--yellow-dark);
}

/* article view */
.news-article {
  max-width: 860px;
}

.news-meta {
  margin-bottom: 14px;
}

.news-author {
  font-size: 12px;
  color: var(--gray-500);
}

.news-article-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 8px;
}

html[lang="zh"] .news-article-title {
  font-size: 30px;
}

.news-article-sub {
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 18px;
}

.news-article-cover {
  margin-bottom: 22px;
  border: 1px solid #EEEEEE;
}

.news-article-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.news-article-body {
  font-size: 15.5px;
  line-height: 1.8;
  color: #333333;
}

.news-article-body h2 {
  font-size: 21px;
  margin: 22px 0 10px;
}

.news-article-body h3 {
  font-size: 18px;
  margin: 18px 0 8px;
}

.news-article-body p {
  margin: 12px 0;
}

.news-article-body ul,
.news-article-body ol {
  margin: 12px 0 12px 24px;
}

.news-article-body blockquote {
  border-left: 3px solid var(--yellow);
  background: var(--gray-100);
  padding: 10px 16px;
  margin: 14px 0;
  color: var(--gray-700);
}

.news-article-body img {
  max-width: 100%;
}

.news-back {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #F0F0F0;
}

/* news responsive */
@media (max-width: 1199px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-article-title {
    font-size: 26px;
  }
}

/* ===== Product detail enhancements (CMS) ===== */
.pdet-form-status {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  min-height: 18px;
}

.pdet-gallery {
  margin-bottom: 28px;
}

.pdet-gallery-track {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdet-gthumb {
  width: 96px;
  height: 72px;
  padding: 0;
  border: 1px solid #EEEEEE;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.pdet-gthumb:hover,
.pdet-gthumb.active {
  border-color: var(--yellow);
}

.pdet-gthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdet-longdesc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-700);
  white-space: pre-wrap;
}

/* ---------- category tabs overflow: fades + drag affordance ---------- */
.pc-tabs-wrap {
  position: relative;
}
.pc-tabs-wrap::before,
.pc-tabs-wrap::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: 20px;
  width: 48px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}
.pc-tabs-wrap::before {
  left: -6px;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0));
}
.pc-tabs-wrap::after {
  right: -6px;
  background: linear-gradient(270deg, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0));
}
.pc-tabs-wrap.fade-left::before { opacity: 1; }
.pc-tabs-wrap.fade-right::after { opacity: 1; }
.pc-tabs { cursor: grab; }
.pc-tabs.dragging { cursor: grabbing; user-select: none; }
.pc-tabs.dragging .pc-tab { pointer-events: none; }
