.parts-listing .parts-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}
.parts-listing .inventory-card.product-card {
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr);
  align-items: start;
  min-width: 0;
}
.parts-listing .inventory-card-body { min-width: 0; padding: 34px; }
.parts-listing .product-kicker {
  color: var(--warm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.parts-listing .inventory-card h2 { margin-top: 14px; font-size: clamp(28px, 3vw, 42px); }
.parts-listing .inventory-card p { min-height: 0; }
.parts-listing .quick-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.parts-listing .quick-spec { grid-template-columns: 118px minmax(0, 1fr); }
.parts-listing .page-actions { display: flex; margin-top: 20px; }
.parts-listing .page-actions .btn { width: 100%; }
.parts-listing .notice { margin-top: 24px; }

.product-gallery {
  position: sticky;
  top: 18px;
  min-width: 0;
  align-self: start;
  background: linear-gradient(145deg, #f5f6f7, #d9dde0);
}
.gallery-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 430px;
  overflow: hidden;
  padding: 42px;
}
.gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 20px rgba(0,0,0,.22));
}
.gallery-slide.is-active { display: block; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 58px;
  padding: 0 0 5px;
  transform: translateY(-50%);
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 6px;
  background: rgba(9,10,11,.88);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 40px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.gallery-arrow:hover, .gallery-arrow:focus-visible { background: var(--red); outline: none; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.product-gallery .status { position: absolute; top: 16px; left: 16px; z-index: 3; }
.gallery-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 8px 11px;
  border-radius: 4px;
  background: rgba(9,10,11,.86);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.product-details {
  min-width: 0;
  max-width: 100%;
  margin-top: 22px;
  border: 1px solid var(--line-2);
  background: #0d0d0f;
}
.product-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  font-family: 'Eurostile Extended', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-details summary::-webkit-details-marker { display: none; }
.product-details summary span { color: var(--red); font-family: Arial, sans-serif; font-size: 25px; line-height: 1; transition: transform .2s ease; }
.product-details[open] summary { border-bottom: 1px solid var(--line); }
.product-details[open] summary span { transform: rotate(45deg); }
.details-content { min-width: 0; max-width: 100%; padding: 22px 18px 20px; overflow: hidden; }
.details-content h3 {
  margin: 28px 0 14px;
  color: #fff;
  font-size: 15px;
  letter-spacing: .05em;
  line-height: 1.25;
  text-transform: uppercase;
}
.details-content h3:first-child { margin-top: 0; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.detail-grid div { min-width: 0; padding: 12px; background: var(--bg-3); }
.detail-grid dt { color: var(--warm); font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.detail-grid dd { margin: 5px 0 0; color: var(--muted-2); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--line); }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 10px 11px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; white-space: nowrap; }
.table-wrap th { background: #17171b; color: var(--warm); font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.table-wrap td { color: var(--muted-2); }
.table-wrap tr:last-child td { border-bottom: 0; }
.parts-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.parts-columns ul, .single-parts-list { margin: 0; padding: 0; list-style: none; }
.parts-columns li, .single-parts-list li { position: relative; padding: 7px 0 7px 15px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 12px; line-height: 1.45; }
.parts-columns li::before, .single-parts-list li::before { content: ""; position: absolute; top: 14px; left: 0; width: 5px; height: 5px; background: var(--red); }
.tech-note, .availability-note { margin: 14px 0 0 !important; color: var(--muted) !important; font-size: 11px !important; line-height: 1.55 !important; }
.availability-note { padding: 13px 14px; border-left: 2px solid var(--red); background: var(--bg-3); color: var(--muted-2) !important; }

@media (max-width: 940px) {
  .parts-listing .inventory-card.product-card { grid-template-columns: minmax(0, 1fr); }
  .product-gallery { position: relative; top: auto; }
  .gallery-stage { min-height: 360px; }
}

@media (max-width: 680px) {
  .parts-listing .inventory-card-body { padding: 24px 18px 20px; }
  .parts-listing .quick-specs, .detail-grid, .parts-columns { grid-template-columns: 1fr; }
  .parts-listing .quick-spec { grid-template-columns: 100px minmax(0, 1fr); }
  .gallery-stage { min-height: 310px; padding: 34px; }
  .gallery-arrow { width: 40px; height: 52px; font-size: 34px; }
  .gallery-prev { left: 9px; }
  .gallery-next { right: 9px; }
  .product-details summary { font-size: 10px; }
}
