.spare-parts-grid .spare-part-card { cursor: default; }
.spare-part-card .product-card-body { display: flex; flex-direction: column; }
.spare-part-code { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(17, 20, 24, .12); }
.spare-part-code small { color: #697078; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.spare-part-code strong { color: #c71920; font-size: .92rem; }
.spare-part-summary { margin: .85rem 0 0; color: #5e646b; font-size: .93rem; line-height: 1.55; }
.catalog-empty { padding: clamp(3rem, 8vw, 6rem) 1rem; text-align: center; border: 1px solid rgba(17, 20, 24, .1); border-radius: .5rem; background: #f7f7f6; }
.catalog-empty h2 { margin: 0 0 .75rem; }
.catalog-empty p { max-width: 680px; margin: 0 auto; }

.site-gallery-section { padding: clamp(3.5rem, 7vw, 7rem) 0; background: #f4f4f2; }
.site-gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.65rem, 1.25vw, 1.25rem); }
.site-gallery-item { position: relative; isolation: isolate; aspect-ratio: 1 / 1; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0.5rem; background: #171a1e; cursor: zoom-in; }
.site-gallery-item img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; transition: transform .35s ease, opacity .35s ease; }
.site-gallery-item > span { position: absolute; inset: auto 1rem 1rem auto; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; color: #fff; background: rgba(199, 25, 32, .94); box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.24); opacity: 0; transform: translateY(.4rem); transition: opacity .25s ease, transform .25s ease, background .2s ease; }
.site-gallery-item:hover img, .site-gallery-item:focus-visible img { transform: scale(1.045); opacity: .84; }
.site-gallery-item:hover > span, .site-gallery-item:focus-visible > span { opacity: 1; transform: none; }
.site-gallery-item:focus-visible { outline: 3px solid #c71920; outline-offset: 3px; }
.gallery-icon { display: block; width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: clamp(.75rem, 3vw, 2rem); }
.gallery-lightbox__backdrop { position: absolute; inset: 0; background: rgba(4, 6, 8, .94); backdrop-filter: blur(8px); }
.gallery-lightbox__dialog { position: relative; z-index: 1; display: grid; width: min(94vw, 1500px); height: min(90vh, 980px); border-radius: 1rem; place-items: center; }
.gallery-lightbox figure { display: grid; max-width: 100%; max-height: 100%; margin: 0; place-items: center; }
.gallery-lightbox figure img { max-width: min(86vw, 1400px); max-height: 80vh; width: auto; height: auto; border-radius: .75rem; object-fit: contain; box-shadow: 0 20px 65px rgba(0,0,0,.35); }
.gallery-lightbox figcaption { max-width: min(80vw, 900px); margin-top: .8rem; padding: .35rem .7rem; border-radius: .5rem; color: rgba(255,255,255,.82); background: rgba(17,20,24,.5); text-align: center; }
.gallery-lightbox__close, .gallery-lightbox__nav { position: absolute; z-index: 2; display: grid; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: #fff; background: rgba(17,20,24,.72); box-shadow: 0 .65rem 1.5rem rgba(0,0,0,.22); cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.gallery-lightbox__close:hover, .gallery-lightbox__nav:hover { border-color: #c71920; background: #c71920; }
.gallery-lightbox__close:focus-visible, .gallery-lightbox__nav:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gallery-lightbox__close { top: 0; right: 0; width: 3rem; height: 3rem; }
.gallery-lightbox__close:hover { transform: scale(1.06); }
.gallery-lightbox__close .gallery-icon { width: 1.35rem; height: 1.35rem; }
.gallery-lightbox__nav { top: 50%; width: 3.25rem; height: 3.25rem; transform: translateY(-50%); }
.gallery-lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.gallery-lightbox__nav .gallery-icon { width: 1.35rem; height: 1.35rem; }
.gallery-lightbox__nav--prev { left: 0; }
.gallery-lightbox__nav--next { right: 0; }
.gallery-lightbox__counter { position: absolute; bottom: 0; left: 50%; min-width: 4.25rem; padding: .45rem .75rem; border-radius: 999px; color: #fff; background: rgba(17,20,24,.72); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-align: center; transform: translateX(-50%); }
body.gallery-is-open { overflow: hidden; }

@media (max-width: 1199px) { .site-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .site-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-lightbox { padding: .5rem; }
  .gallery-lightbox__dialog { width: 100%; height: 94vh; }
  .gallery-lightbox figure img { max-width: 96vw; max-height: 76vh; }
  .gallery-lightbox__close { top: .5rem; right: .5rem; }
  .gallery-lightbox__nav { top: auto; bottom: 1.75rem; transform: none; }
  .gallery-lightbox__nav:hover { transform: scale(1.06); }
  .gallery-lightbox__nav--prev { left: 1rem; }
  .gallery-lightbox__nav--next { right: 1rem; }
  .gallery-lightbox__counter { bottom: 2.65rem; }
}
@media (max-width: 419px) { .site-gallery-grid { grid-template-columns: 1fr; } }
@media (hover: none) { .site-gallery-item > span { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-gallery-item img, .site-gallery-item > span, .gallery-lightbox__close, .gallery-lightbox__nav { transition: none; } }
