.zp-page {
  background: #fff;
}

.zp-breadcrumb {
  background: #f6f6f6;
}

.zp-breadcrumb .zs-layout {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: #555;
  font-size: 16px;
  line-height: 1.4;
}

.zp-breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.zp-breadcrumb-nav span {
  color: #999;
}

.zp-breadcrumb-nav a,
.zp-breadcrumb-nav strong {
  font-size: 16px;
}

.zp-section {
  padding: 32px 0 70px;
  background: #fff;
}

.zp-section > .zs-layout,
.zp-breadcrumb > .zs-layout {
  width: min(var(--zs-layout-width), calc(100% - 32px));
  margin: 0 auto;
}

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

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

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

.zp-side-title {
  position: relative;
  width: 100%;
  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;
  cursor: default;
}

.zs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--zs-color-primary);
  color: #fff;
  font-family: var(--zs-font-title);
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

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

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

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

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

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

.zp-featured-item {
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zp-featured-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

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

.zp-featured-media {
  flex: 0 0 72px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ececec;
}

.zp-featured-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.zp-featured-item:hover .zp-featured-media img {
  transform: scale(1.04);
}

.zp-featured-body {
  flex: 1 1 auto;
  padding: 0;
}

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

.zp-content {
  min-width: 0;
}

.zp-page-title {
  margin-bottom: 24px;
  padding: 12px 0;
  border-bottom: 1px solid #d8d8d8;
  color: #111;
  font-family: var(--zs-font-main);
  font-weight: 700;
  font-size: 24px;
  line-height: 0.95;
  text-transform: none;
}

.zp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.zp-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.zp-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.zp-card-inner {
  display: flex;
  height: 100%;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid #d8d8d8;
  background: transparent;
  gap: 22px;
}

.zp-card-media {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border: 0;
  background: #fff;
  overflow: hidden;
  border: 1px solid #ececec;
}

.zp-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.zp-card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zp-card-title {
  color: #111;
  font-family: var(--zs-font-main);
  font-weight: 700;
  font-size: 30px;
  line-height: 0.96;
  text-transform: none;
}

.zp-card-title a:hover {
  color: var(--zs-color-primary);
}

.zp-card-copy {
  margin-top: 18px;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
}

.zp-card-copy h4,
.zp-card-copy .zp-card-copy-heading {
  margin-bottom: 16px;
  color: var(--zs-color-primary);
  font-family: var(--zs-font-main);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  text-transform: none;
}

.zp-card-copy p + p,
.zp-card-copy ul + p,
.zp-card-copy p + ul,
.zp-card-copy ul + ul {
  margin-top: 10px;
}

.zp-card-copy p {
  white-space: normal;
  word-break: break-word;
}

.zp-card-copy ul {
  padding-left: 20px;
  list-style: disc;
}


.zp-card-actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.zp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 34px;
  padding: 0 14px;
  background: #d9d9d9;
  color: #222;
  font-family: var(--zs-font-main);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.zp-btn:hover {
  transform: translateY(-1px);
}

.zp-btn--primary {
  background: #d4d4d4;
}

.zp-btn--secondary {
  background: #e2e2e2;
}

.zp-pagination {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #444;
  font-size: 15px;
}

.zp-pagination ul,
.zp-pagination ol,
.zp-pagination div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.zp-pagination li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zp-pagination a,
.zp-pagination span,
.zp-pagination li > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d0d0d0;
  background: #ececec;
  color: #222;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.zp-pagination a:hover,
.zp-pagination li > a:hover {
  background: #dcdcdc;
  transform: translateY(-1px);
}

.zp-pagination .is-current,
.zp-pagination .active > * {
  background: var(--zs-color-primary);
  border-color: var(--zs-color-primary);
  color: #fff;
}

.zp-pagination-note,
.zp-pagination .disabled > *,
.zp-pagination .pagination-info,
.zp-pagination .pageinfo {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: 0 !important;
  height: auto !important;
  color: #777 !important;
  font-weight: 400 !important;
}

.zp-pagination .disabled > * {
  color: #999;
}

.zp-pagination .prev > *,
.zp-pagination .next > * {
  min-width: 52px;
  padding: 0 16px;
}

@media (max-width: 1400px) {
  .zp-section .zs-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .zp-card-inner {
    padding: 18px;
    gap: 18px;
  }

  .zp-card-title {
    font-size: 26px;
  }
}

@media (max-width: 980px) {
  .zp-section {
    padding: 22px 0 44px;
  }

  .zp-section > .zs-layout,
  .zp-breadcrumb > .zs-layout {
    width: calc(100% - 32px);
  }

  .zp-section .zs-layout {
    grid-template-columns: 1fr;
  }

  .zp-sidebar {
    order: 2;
  }

  .zp-content {
    order: 1;
  }

  .zp-side-title {
    padding-right: 46px;
    text-align: left;
    cursor: pointer;
  }

  .zp-side-title::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .zp-side-box.is-open .zp-side-title::after {
    transform: translateY(-25%) rotate(225deg);
  }
}

@media (max-width: 768px) {
  .zp-breadcrumb {
    display: none;
  }

  .zp-page-title {
    font-size: 40px;
  }

  .zp-card-inner {
    flex-direction: column;
  }

  .zp-card-media {
    flex-basis: auto;
    width: min(100%, 320px);
    min-height: 0;
    margin: 0 auto;
  }

  .zp-card-title {
    font-size: 24px;
  }

  .zp-card-copy {
    font-size: 15px;
    line-height: 1.6;
  }

  .zp-card-copy h4,
  .zp-card-copy .zp-card-copy-heading {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .zp-section > .zs-layout,
  .zp-breadcrumb > .zs-layout {
    width: calc(100% - 24px);
  }

  .zp-page-title {
    font-size: 30px;
  }

  .zp-side-title {
    font-size: 21px;
  }

  .zp-card-inner {
    padding: 14px;
  }

  .zp-card-title {
    font-size: 20px;
  }

  .zp-card-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .zp-btn {
    min-width: 110px;
    min-height: 38px;
    font-size: 16px;
  }
}
