.zpd-page {
  background: #fff;
}

.zpd-breadcrumb {
  background: #f1f1f1;
}

.zpd-breadcrumb .zs-layout {
  min-height: 32px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.zpd-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zpd-breadcrumb-list li {
  position: relative;
}

.zpd-breadcrumb-list li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: #999;
}

.zpd-main {
  padding: 30px 0 0;
  background: #fff;
}

.zpd-main .zs-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.zpd-sidebar {
  display: grid;
  gap: 24px;
}

.zpd-side-box {
  background: #fff;
  border: 1px solid #dadada;
}

.zpd-side-box-title {
  margin: 0;
  padding: 15px 18px;
  background: #000;
  color: #fff;
  font-family: var(--zs-font-main);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.zpd-categories {
  padding: 14px 18px 18px;
}

.zpd-categories li + li {
  margin-top: 12px;
}

.zpd-categories a {
  color: #1e1e1e;
  font-size: 15px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.zpd-categories a:hover {
  color: var(--zs-color-primary);
}

.zpd-featured-list {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.zpd-featured-item a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zpd-featured-media {
  flex: 0 0 72px;
  background: transparent;
}

.zpd-featured-media img {
  width: 100%;
  height: auto;
  display: block;
}

.zpd-featured-body {
  flex: 1 1 auto;
}

.zpd-featured-name {
  margin: 0;
  color: #111;
  font-family: var(--zs-font-main);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.15;
  text-transform: uppercase;
}

.zpd-content {
  min-width: 0;
  padding-bottom: 100px;
}

.zpd-page-title {
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  color: #000;
  font-size: 22px;
  font-weight: 700;
  line-height: 38px;
}

.zpd-intro {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.zpd-gallery {
  position: relative;
  width: 37.6%;
}

.zpd-gallery-main {
  position: relative;
  border: 1px solid #ddd;
  overflow: hidden;
  cursor: zoom-in;
}

.zpd-gallery-main img {
  width: 100%;
  display: block;
  transform-origin: center center;
  transition: transform 0.35s ease;
  will-change: transform;
}

.zpd-gallery-main:hover img {
  transform: scale(1.35);
}

@media (hover: none) {
  .zpd-gallery-main {
    cursor: default;
  }

  .zpd-gallery-main:hover img {
    transform: none;
  }
}

.zpd-gallery-thumbs {
  position: relative;
  width: 100%;
  margin: 12px auto 0;
  overflow: hidden;
}

.zpd-gallery-track {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.zpd-gallery-thumb {
  flex: 0 0 calc((100% - 40px) / 5);
}

.zpd-gallery-thumb [data-detail-thumb] {
  display: block;
  width: 100%;
  background: transparent;
  cursor: pointer;
}

.zpd-gallery-thumb img {
  display: block;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #ccc;
  padding: 1px;
  border-radius: 2px;
}

.zpd-gallery-thumb.is-active img {
  border: 2px solid #000;
  padding: 0;
}

.zpd-gallery-arrow {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  color: #000;
  font-size: 28px;
  line-height: 30px;
  text-align: center;
  transform: scale(0.65, 1);
}

.zpd-gallery-arrow.is-prev {
  left: -10px;
}

.zpd-gallery-arrow.is-next {
  right: -10px;
}

.zpd-summary {
  width: 57%;
  padding: 10px 0;
}

.zpd-meta {
  line-height: 25px;
}

.zpd-meta h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 700;
}

.zpd-short-desc {
  min-height: 44px;
  font-size: 14px;
  color: #333;
  line-height: 25px;
  white-space: pre-line;
  word-break: break-word;
}

.zpd-short-desc p {
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 25px;
  white-space: inherit;
}

.zpd-tags {
  margin-top: 12px;
  padding-top: 6px;
}

.zpd-tags h3 {
  margin: 0;
}

.zpd-tags-list,
.zpd-tags-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 10px;
}

.zpd-tags-list a,
.zpd-tags-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: #fafafa;
  color: #222;
  font-size: 14px;
  line-height: 1.4;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.zpd-tags-list a:hover,
.zpd-tags-panel a:hover {
  background: #f1f1f1;
  border-color: #c8c8c8;
}

.zpd-tags-panel {
  padding: 4px 0;
}

.zpd-tags-empty {
  color: #777;
  font-size: 14px;
}

.zpd-btn-wrap {
  padding-top: 30px;
}

.zpd-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 26px;
  padding: 0.1em 1em;
  border-radius: 3px;
  background: #38362e;
  border: 2px solid #38362e;
  color: #fff;
  font-size: 13px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.zpd-email-btn::before {
  content: "@";
  font-weight: 700;
}

.zpd-email-btn:hover {
  background: #fff;
  color: #000;
}

.zpd-detail {
  margin-top: 30px;
}

.zpd-tabs {
  display: flex;
  gap: 6px;
}

.zpd-tab {
  display: inline-flex;
  align-items: center;
  line-height: 28px;
  padding: 1px 15px;
  cursor: pointer;
  font-size: 14px;
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
}

.zpd-tab.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.zpd-tab-panels {
  padding: 10px 0;
}

.zpd-tab-panel[hidden] {
  display: none;
}

.zpd-tab-panel hr {
  margin: 0 0 12px;
  border: 0;
  border-top: 1px solid #ddd;
}

.zpd-tab-panel hr + .zpd-nav-links {
  margin-top: 0;
}

.zpd-tab-panel table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.zpd-tab-panel table th,
.zpd-tab-panel table td {
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  font-size: 14px;
  line-height: 1.7;
  vertical-align: top;
  text-align: left;
}

.zpd-tab-panel table th {
  background: #f5f5f5;
  color: #222;
  font-weight: 700;
}

.zpd-tab-panel table tr:nth-child(even) td {
  background: #fcfcfc;
}

.content_box > span {
  width: 20px;
  height: 30px;
}

.content_box > span::before {
  content: "";
  color: #0c0474;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
  position: absolute;
  top: 7px;
  left: 1px;
}

.zpd-nav-links {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.zpd-nav-links li {
  font-size: 14px;
  line-height: 1.6;
}

.zpd-inquiry {
  margin-top: 26px;
  padding: 28px 24px;
  background: #fafafa;
  border: 1px solid #eee;
}

.zpd-inquiry-prompt {
  margin-bottom: 18px;
  color: #ff6f00;
  font-size: 20px;
  line-height: 1.4;
}

.zpd-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.zpd-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #333;
}

.zpd-form label.is-wide {
  grid-column: 1 / -1;
}

.zpd-form input,
.zpd-form textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  background: #fff;
  padding: 10px 12px;
  color: #222;
}

.zpd-form textarea {
  min-height: 130px;
  resize: vertical;
}

.zpd-form button {
  justify-self: start;
}

.zpd-related {
  position: relative;
  overflow: hidden;
  margin-top: 42px;
}

.zpd-related-title {
  margin: 50px 0 20px;
  padding: 0 15px;
  line-height: 35px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  background: #000;
  color: #fff;
}

.zpd-related-slider {
  position: relative;
}

.zpd-related-viewport {
  overflow: hidden;
}

.zpd-related-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.zpd-related-item {
  flex: 0 0 33.3333%;
  padding-bottom: 2px;
}

.zpd-related-item figure {
  margin: 0 10px 0 0;
  border: 1px solid #ccc;
  padding: 3px;
}

.zpd-related-image {
  display: block;
}

.zpd-related-image img {
  width: 100%;
  display: block;
}

.zpd-related-caption {
  margin-top: 8px;
}

.zpd-related-caption h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.zpd-related-control {
  position: absolute;
  right: 10px;
  top: 55px;
  display: flex;
  gap: 5px;
}

.zpd-related-arrow {
  width: 20px;
  height: 25px;
  line-height: 25px;
  font-size: 20px;
  color: #fff;
  text-align: center;
}

.zpd-related-arrow[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .zpd-main .zs-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 980px) {
  .zpd-main .zs-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .zpd-sidebar {
    order: 2;
    margin-bottom: 28px;
  }

  .zpd-content {
    order: 1;
    padding-bottom: 40px;
  }

  .zpd-intro {
    flex-direction: column;
    gap: 24px;
  }

  .zpd-gallery,
  .zpd-summary {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .zpd-page-title {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .zpd-meta {
    font-size: 14px;
  }

  .zpd-meta h3 {
    line-height: 1.3;
    font-size: 16px;
  }

  .zpd-btn-wrap {
    padding-top: 22px;
  }

  .zpd-email-btn {
    font-size: 14px;
    padding: 5px 10px;
  }

  .zpd-detail {
    margin-top: 40px;
  }

  .zpd-tab-panels {
    padding: 20px 0;
    border: 0;
  }

  .zpd-related-title {
    margin-top: 40px;
    margin-bottom: 30px;
    text-transform: none;
  }

  .zpd-related-item {
    flex-basis: 50%;
  }

  .zpd-related-caption h3 {
    font-size: 14px;
  }

  .zpd-related-control {
    position: static;
    margin-top: 14px;
    justify-content: center;
  }

  .zpd-related-arrow {
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .zpd-main {
    padding-top: 18px;
  }

  .zpd-form {
    grid-template-columns: 1fr;
  }

  .zpd-related-item {
    flex-basis: 100%;
  }

  .zpd-related-item figure {
    margin-right: 0;
  }
}
