.pc,
.pc-single {
  --pc-accent: #8a1318;
  --pc-ink: #17181b;
  --pc-muted: #66707a;
  --pc-line: #d9dde2;
  --pc-surface: #f6f7f8;
  --pc-radius: 8px;
  --pc-shadow: 0 16px 30px rgba(23, 24, 27, 0.08);
}

.pc {
  display: grid;
  gap: 3rem;
}

.pc-root {
  gap: 2rem;
}

.pc__page-title {
  margin: 0;
  color: var(--pc-ink);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
}

.pc__section {
  display: grid;
  gap: 1.5rem;
}

.pc__header {
  display: grid;
  gap: 0.75rem;
  align-items: end;
}

.pc__eyebrow {
  margin: 0;
  color: var(--pc-accent);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.pc__description {
  color: var(--pc-muted);
  font-size: 0.92rem;
}

.pc__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.pc-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pc-category-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: #fff;
  box-shadow: var(--pc-shadow);
}

.pc-category-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pc-surface);
  padding: 1rem;
}

.pc-category-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pc-category-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem;
}

.pc-category-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pc-category-card__header .pc-button {
  flex: 0 0 auto;
}

.pc-category-card h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.15;
}

.pc-category-card h2 a {
  color: var(--pc-ink);
  text-decoration: none;
}

.pc-category-card h2 a:hover,
.pc-category-card h2 a:focus-visible {
  color: var(--pc-accent);
}

.pc-category-card p {
  margin: 0;
  color: var(--pc-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pc-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: #fff;
  box-shadow: var(--pc-shadow);
}

.pc-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pc-surface);
}

.pc-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pc-card__image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 1rem;
  color: var(--pc-muted);
  font-weight: 700;
  text-align: center;
}

.pc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 142px;
  padding: 1rem;
}

.pc-card__meta,
.pc-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.pc-card__meta {
  gap: 0.75rem;
}

.pc-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(138, 19, 24, 0.08);
  color: var(--pc-accent);
  font-size: 0.74rem;
  font-weight: 700;
}

.pc-card__count {
  color: var(--pc-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.pc-card h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.28;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.pc-card h3 a {
  color: var(--pc-ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

.pc-card h3 a:hover,
.pc-card h3 a:focus-visible {
  color: var(--pc-accent);
}

.pc-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.pc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.08rem 0.68rem;
  border-radius: var(--pc-radius);
  background: var(--pc-accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.pc-button:hover,
.pc-button:focus-visible {
  background: #701015;
  color: #fff;
}

.pc__empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: var(--pc-surface);
}

.pc-single__wrapper {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.pc-category {
  position: relative;
}

.pc-single__wrapper > .pc-breadcrumbs,
.pc-category > .pc-breadcrumbs {
  position: absolute;
  top: -4rem;
  left: 0;
  margin: 0;
}

.pc-category .pc__header h1 {
  font-size: 2rem;
}

.pc-category .pc__section {
  gap: 1.2rem;
}

.pc-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--pc-muted);
  font-size: 0.84rem;
}

.pc-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.pc-breadcrumbs__item:not(:last-child)::after {
  content: ">";
  color: var(--pc-line);
}

.pc-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.pc-breadcrumbs a:hover,
.pc-breadcrumbs a:focus-visible {
  color: var(--pc-accent);
}

.pc-single__header {
  margin-bottom: 1.2rem;
}

.pc-related {
  margin-top: 3rem;
}

.pc-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: stretch;
}

.pc-single__layout--wide {
  grid-template-columns: 1fr;
}

.pc-single__sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 1rem;
}

.pc-single__details {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.pc-features,
.pc-panel,
.pc-single__image,
.pc-single__content,
.pc-single__table-wrap {
  padding: 1.6rem;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: #fff;
  box-shadow: var(--pc-shadow);
}

.pc-single__content {
  font-size: 0.9rem;
  line-height: 1.65;
}

.pc-single__header h1 {
  margin: 0;
  font-size: 2rem;
}

.pc-gallery {
  position: relative;
}

.pc-gallery__slides {
  aspect-ratio: 16 / 10;
}

.pc-gallery__slide[hidden] {
  display: none;
}

.pc-gallery__slide {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.pc-gallery__image,
.pc-gallery__video {
  width: 100%;
  height: 100%;
  border-radius: var(--pc-radius);
}

.pc-gallery__image {
  display: block;
  object-fit: contain;
}

.pc-gallery__video {
  display: block;
  border: 0;
  background: #000;
}

.pc-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 24, 27, 0.72);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}

.pc-gallery__nav--prev {
  left: 0.9rem;
}

.pc-gallery__nav--next {
  right: 0.9rem;
}

.pc-gallery__nav:hover,
.pc-gallery__nav:focus-visible {
  background: rgba(23, 24, 27, 0.88);
}

.pc-features {
  display: grid;
  gap: 0;
}

.pc-feature {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 0.75rem 0;
}

.pc-feature:first-child {
  padding-top: 0;
}

.pc-feature:last-child {
  padding-bottom: 0;
}

.pc-feature__media {
  width: 180px;
  overflow: hidden;
  border-radius: var(--pc-radius);
  background: var(--pc-surface);
}

.pc-feature__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pc-feature__content {
  display: grid;
  gap: 0.85rem;
}

.pc-feature__content h2 {
  margin: 0;
  font-size: 1.15rem;
}

.pc-feature__text p {
  margin: 0 0 1rem;
  color: var(--pc-muted);
  font-size: 0.92rem;
}

.pc-feature__text p:last-child {
  margin-bottom: 0;
}

.pc-table-scroll {
  overflow-x: auto;
}

.pc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.pc-table th,
.pc-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--pc-line);
  text-align: left;
  vertical-align: top;
}

.pc-table thead th,
.pc-table tbody th,
.pc-table tbody td {
  font-size: 0.85rem;
}

.pc-table thead th {
  background: var(--pc-accent);
  color: #fff;
}

.pc-table tbody th {
  width: 190px;
  color: var(--pc-ink);
}

.pc-table td.pc-table__span-cell {
  text-align: center;
}

.pc-table tbody tr:nth-child(odd) th,
.pc-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.pc-table tbody tr:nth-child(even) th,
.pc-table tbody tr:nth-child(even) td {
  background: var(--pc-surface);
}

.pc-table tbody tr:last-child th,
.pc-table tbody tr:last-child td {
  border-bottom: 0;
}

.pc-panel--quote,
.pc-panel--download {
  display: grid;
  gap: 1.2rem;
  padding: 1.6rem 1.2rem;
  border-radius: 30px;
  color: #fff;
}

.pc-panel--quote {
  background: #0d0d0fe6;
}

.pc-panel--download {
  background: #313a4199;
}

.pc-panel__content {
  display: grid;
  gap: 0.40rem;
}

.pc-panel__content h2 {
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
}

.pc-panel__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pc-panel__buttons {
  gap: 0.65rem;
}

.pc-panel--quote .pc-button,
.pc-panel--download .pc-button {
  width: auto;
  max-width: 100%;
  min-height: 2.2rem;
  padding: 0.22rem 0.8rem;
  font-size: 0.82rem;
  box-sizing: border-box;
  flex: 0 0 auto;
}

@media (max-width: 1200px) {
  .pc__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .pc-category-grid,
  .pc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-single__layout {
    grid-template-columns: 1fr;
  }

  .pc-feature {
    grid-template-columns: 1fr;
  }

  .pc-feature__media {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .pc-category-grid,
  .pc__grid {
    grid-template-columns: 1fr;
  }

  .pc-card__body,
  .pc-panel,
  .pc-features,
  .pc-single__image,
  .pc-single__content,
  .pc-single__table-wrap {
    padding: 1.25rem;
  }
}
