/* ============================================================
   Parts List Page Styles  (p-parts-list-*)
   ============================================================ */

/* ---- Page Intro Head ---- */
.p-parts-list-head {
  padding-block: 4.5rem 3rem;
}

@media screen and (max-width: 768px) {
  .p-parts-list-head {
    padding-block: 2.5rem 1.5rem;
  }
}

.p-parts-list-head__title {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 3.625rem;
  color: var(--color-primary);
  line-height: 1;
  margin-block-end: 1.25rem;
}

@media screen and (max-width: 768px) {
  .p-parts-list-head__title {
    font-size: 2.625rem;
  }
}

.p-parts-list-head__desc {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--color-text);
  max-width: 78.75rem;
}

@media screen and (max-width: 768px) {
  .p-parts-list-head__desc {
    font-size: 1rem;
  }
}

/* ---- Panel (section bar + grid wrapper) ---- */
.p-parts-list-panel {
  margin-block-end: 9.5rem;
}

.p-parts-list-panel:last-of-type {
  margin-block-end: 2.5rem;
}

@media screen and (max-width: 768px) {
  .p-parts-list-panel {
    margin-block-end: 1.75rem;
  }
}

/* ---- Section Bar (red strip + gray fill) ---- */
.p-parts-list-section-bar {
  display: flex;
  align-items: stretch;
  height: 3.9375rem;
  margin-block-end: 2rem;
  background: rgba(217, 217, 217, 0.5);
}

@media screen and (max-width: 768px) {
  .p-parts-list-section-bar {
    height: 3.25rem;
    margin-block-end: 1.5rem;
  }
}

.p-parts-list-section-bar__primary {
  display: flex;
  align-items: center;
  padding-inline: 2.1875rem;
  background: #d71819;
  color: #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .p-parts-list-section-bar__primary {
    font-size: 1.125rem;
    padding-inline: 0.9375rem;
  }
}

/* ---- Parts List Section ---- */
.p-parts-list {
  padding-block-end: 2rem;
}

.p-parts-list-pdf__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 1.5rem;
}

@media screen and (max-width: 1024px) {
  .p-parts-list-pdf__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.25rem;
  }
}

@media screen and (max-width: 768px) {
  .p-parts-list-pdf__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
  }
}

.p-parts-list-pdf__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.p-parts-list-pdf__name {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 1.375rem;
  text-align: center;
  line-height: 1;
}

@media screen and (max-width: 768px) {
  .p-parts-list-pdf__name {
    font-size: 1.125rem;
  }
}

.p-parts-list-pdf__thumb {
  max-width: 14.5625rem;
  border: 1px solid #d9d9d9;
  overflow: hidden;
  aspect-ratio: 233 / 330;
}

.p-parts-list-pdf__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.p-parts-list-pdf__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding-block: 0.75rem;
  border: 1px solid #da1b1c;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.p-parts-list-pdf__btn:hover {
  background: #da1b1c;
  color: #fff;
}

/* ---- Photo Parts Section ---- */
.p-parts-list-photo {
  padding-block-end: 2rem;
}

.p-parts-list-photo__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}

@media screen and (max-width: 1024px) {
  .p-parts-list-photo__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.25rem;
  }
}

@media screen and (max-width: 768px) {
  .p-parts-list-photo__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem 0;
  }
}

.p-parts-list-photo__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.p-parts-list-photo__image {
  border: 1px solid var(--color-border-image);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 364 / 177;
}

.p-parts-list-photo__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.p-parts-list-photo__name {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  text-align: center;
}
