/* Product detail redesign v3 */
.gpd-page,
.gpd-page * {
  box-sizing: border-box;
}

.gpd-page {
  --gpd-red: #e60033;
  --gpd-blue: #1788a8;
  --gpd-dark: #2f343b;
  --gpd-text: #242a31;
  --gpd-muted: #697386;
  --gpd-line: #e3eaf3;
  background: #f5f7fa;
  padding: 34px 0 76px;
  overflow-x: hidden;
}

.gpd-page a {
  text-decoration: none;
}

.gpd-container {
  width: min(1360px, calc(100vw - 48px));
  margin: 100px auto 0 auto;
}

.gpd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #7b8492;
  margin-bottom: 24px;
}

.gpd-breadcrumb a {
  color: #687485;
}

.gpd-breadcrumb a:hover {
  color: var(--gpd-red);
}

.gpd-breadcrumb strong {
  color: var(--gpd-text);
  font-weight: 600;
}

.gpd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(19, 31, 53, 0.08);
}

.gpd-hero-left {
  background: #eef2f6;
  padding: 28px;
  min-width: 0;
}

.gpd-main-image-wrap {
  height: 520px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gpd-main-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 96%;
  max-height: 96%;
  object-fit: contain;
}

.gpd-thumbs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.gpd-thumb {
  width: 88px;
  height: 88px;
  border: 1px solid #d7deea;
  border-radius: 14px;
  padding: 8px;
  background: #fff;
  cursor: pointer;
  transition: all .22s ease;
  overflow: hidden;
}

.gpd-thumb:hover,
.gpd-thumb.active {
  border-color: var(--gpd-red);
  box-shadow: 0 8px 18px rgba(230, 0, 51, 0.13);
}

.gpd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gpd-hero-right {
  min-width: 0;
  background: var(--gpd-dark);
  color: #fff;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.gpd-kicker {
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 18px;
}

.gpd-title {
  margin: 0;
  max-width: 100%;
  color: #fff;
  font-size: 44px !important;
  line-height: 1.16 !important;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.gpd-desc {
  max-height: 150px;
  margin-top: 22px;
  overflow: auto;
  color: rgba(255,255,255,.84);
  font-size: 15px !important;
  line-height: 1.8 !important;
}

.gpd-desc,
.gpd-desc * {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: rgba(255,255,255,.84) !important;
}

.gpd-desc p {
  margin: 0 0 10px;
}

.gpd-summary-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 100%;
}

.gpd-summary-item {
  min-width: 0;
  min-height: 88px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 13px 15px;
  overflow: hidden;
}

.gpd-summary-label {
  margin-bottom: 6px;
  color: rgba(255,255,255,.62);
  font-size: 12px !important;
  line-height: 1.3 !important;
}

.gpd-summary-value {
  color: #fff;
  font-size: 17px !important;
  line-height: 1.45 !important;
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gpd-hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.gpd-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  max-width: 100%;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  color: #fff !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.gpd-btn-primary {
  background: var(--gpd-red);
}

.gpd-btn-primary:hover {
  background: #c9002d;
}

.gpd-btn-secondary {
  background: var(--gpd-blue);
}

.gpd-btn-secondary:hover {
  background: #126f89;
}

.gpd-tabs-section {
  margin-top: 30px;
}

.gpd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.gpd-tab {
  border: 1px solid #d9e2ee;
  background: #fff;
  color: #364152;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 700;
  cursor: pointer;
}

.gpd-tab:hover,
.gpd-tab.active {
  background: var(--gpd-red);
  border-color: var(--gpd-red);
  color: #fff;
}

.gpd-panel {
  display: none;
}

.gpd-panel.active {
  display: block;
}

.gpd-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 32px rgba(19, 31, 53, 0.06);
  padding: 28px;
  overflow: hidden;
}

.gpd-spec-table {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--gpd-line);
  border-radius: 18px;
  overflow: hidden;
}

.gpd-spec-head {
  background: #eef3f8;
  padding: 18px 22px;
  font-size: 15px !important;
  font-weight: 800;
  color: var(--gpd-text);
  border-bottom: 1px solid var(--gpd-line);
}

.gpd-spec-key,
.gpd-spec-value {
  padding: 15px 22px;
  font-size: 15px !important;
  line-height: 1.65 !important;
  border-bottom: 1px solid #e9eef5;
}

.gpd-spec-key {
  background: #fafcff;
  font-weight: 700;
  color: #2c3440;
}

.gpd-spec-value {
  color: #5a6576;
}

.gpd-auth-grid,
.gpd-related-grid,
.gpd-cad-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gpd-auth-item,
.gpd-related-item,
.gpd-cad-item {
  background: #f8fbfd;
  border: 1px solid #e5edf5;
  border-radius: 18px;
  padding: 18px;
}

.gpd-auth-image,
.gpd-related-image,
.gpd-cad-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.gpd-auth-image,
.gpd-related-image {
  height: 220px;
}

.gpd-cad-item {
  min-height: 420px;
  padding: 16px;
}

.gpd-auth-image img,
.gpd-related-image img,
.gpd-cad-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gpd-auth-title,
.gpd-related-title {
  display: block;
  margin-top: 14px;
  color: var(--gpd-text);
  font-size: 17px !important;
  line-height: 1.45 !important;
  font-weight: 700;
}

.gpd-related-link {
  display: inline-flex;
  margin-top: 14px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d8e1ee;
  color: #314052;
  font-size: 14px !important;
  font-weight: 700;
}

.gpd-related-link:hover {
  border-color: var(--gpd-red);
  color: var(--gpd-red);
}

.gpd-download-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gpd-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--gpd-line);
  border-radius: 15px;
  background: #f9fbfd;
}

.gpd-download-info {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.gpd-download-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gpd-red);
}

.gpd-download-name {
  color: var(--gpd-text);
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gpd-download-btn {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 118px;
  height: 40px;
  padding: 0 18px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gpd-red);
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 700;
  white-space: nowrap;
}

.gpd-download-btn.disabled {
  background: #ccd5df;
  pointer-events: none;
}

.gpd-cad-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 26px;
}

.gpd-cad-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #343b45;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer;
}

.gpd-cad-radio input {
  width: 20px;
  height: 20px;
  accent-color: var(--gpd-red);
}

.gpd-cad-radio span {
  font-size: 20px !important;
  line-height: 1 !important;
}

.gpd-cad-radio.active {
  color: var(--gpd-red);
}

.gpd-empty {
  padding: 30px 10px;
  text-align: center;
  color: #778295;
  font-size: 15px !important;
}

@media (max-width: 1200px) {
  .gpd-hero {
    grid-template-columns: 1fr;
  }

  .gpd-title {
    font-size: 38px !important;
  }

  .gpd-main-image-wrap {
    height: 470px;
  }
}

@media (max-width: 900px) {
  .gpd-container {
    width: min(1360px, calc(100vw - 28px));
  }

  .gpd-main-image-wrap {
    height: 400px;
  }

  .gpd-hero-left,
  .gpd-hero-right {
    padding: 24px;
  }

  .gpd-title {
    font-size: 32px !important;
  }

  .gpd-summary-grid,
  .gpd-auth-grid,
  .gpd-related-grid,
  .gpd-cad-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gpd-spec-table {
    grid-template-columns: 1fr;
  }

  .gpd-spec-head:nth-child(2) {
    display: none;
  }

  .gpd-spec-key {
    border-top: 1px solid var(--gpd-line);
  }
}

@media (max-width: 640px) {
  .gpd-page {
    padding: 18px 0 40px;
  }

  .gpd-main-image-wrap {
    height: 300px;
  }

  .gpd-thumb {
    width: 70px;
    height: 70px;
  }

  .gpd-title {
    font-size: 26px !important;
  }

  .gpd-summary-grid,
  .gpd-auth-grid,
  .gpd-related-grid,
  .gpd-cad-gallery {
    grid-template-columns: 1fr;
  }

  .gpd-tabs {
    gap: 8px;
  }

  .gpd-tab {
    width: 100%;
    text-align: center;
  }

  .gpd-download-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .gpd-download-btn {
    width: 100% !important;
  }

  .gpd-cad-switch {
    gap: 22px;
  }
}
