/* Phase 5: repair responsive catalogue layout without touching desktop pages.
   Earlier desktop grid rules in site.css came after its mobile breakpoints. */

/* V10: a truthful, reference-specific catalogue tile while exact photos are sourced.
   This is an editorial placeholder, never a claimed image of a spare part. */
body.si-site-v5 .catalogue-section .product-media .si-v100-catalogue-fallback {
  box-sizing: border-box;
  width: 100%;
  min-height: 185px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 27px 14px;
  overflow: hidden;
  text-align: center;
  color: #3e505c;
  background:
    radial-gradient(circle at center, rgba(83,113,131,.07) 1px, transparent 1.5px) 0 0 / 19px 19px,
    linear-gradient(145deg, #f5f7f8, #eaf0f3);
  border: 1px solid #dce5e9;
  border-radius: 7px;
  font-style: normal;
}
body.si-site-v5 .catalogue-section .product-media .si-v100-fallback-symbol {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b5c7d0;
  border-radius: 16px;
  background: #fff;
  color: #476879;
  font-size: 44px;
  font-weight: 350;
  line-height: 1;
  box-shadow: 0 9px 24px rgba(35,65,85,.07);
}
body.si-site-v5 .catalogue-section .product-media .si-v100-fallback-ref {
  max-width: 100%;
  color: #253742;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .065em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body.si-site-v5 .catalogue-section .product-media .si-v100-catalogue-fallback small {
  color: #61747f;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
}
@media (max-width: 720px) {
 body.si-site-v5 .catalogue-section .product-media .si-v100-catalogue-fallback {
   min-height: 0;
   padding: 18px;
 }
 body.si-site-v5 .catalogue-section .product-media .si-v100-fallback-symbol {
   width: 58px; height: 58px; font-size: 38px;
 }
}

@media (max-width: 960px) {
  body.si-site-v5 .catalogue-section .catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    min-width: 0;
  }
  body.si-site-v5 .catalogue-section .catalog-filters {
    position: static;
    top: auto;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  body.si-site-v5 .catalogue-section .catalog-results {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  body.si-site-v5 .catalogue-section .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
  }
  body.si-site-v5 .catalogue-section .product-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 720px) {
  body.si-site-v5 .catalogue-section {
    padding-bottom: 64px;
  }
  body.si-site-v5 .catalogue-section .catalog-layout {
    gap: 20px;
  }
  body.si-site-v5 .catalogue-section .catalog-filters {
    margin-bottom: 0;
  }
  body.si-site-v5 .catalogue-section .mobile-filter-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid #d9e0e4;
    border-radius: 8px;
    background: #f4f6f7;
    font-size: 14px;
    font-weight: 650;
  }
  body.si-site-v5 .catalogue-section .catalog-filter-panel:not(.is-open) {
    display: none;
  }
  body.si-site-v5 .catalogue-section .catalog-filter-panel.is-open {
    display: block;
    padding: 20px 0 4px;
  }
  body.si-site-v5 .catalogue-section .catalog-filter-panel form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  body.si-site-v5 .catalogue-section .catalog-filter-panel form > * {
    grid-column: auto;
    grid-row: auto;
  }
  body.si-site-v5 .catalogue-section .catalog-filter-panel select {
    width: 100%;
    margin-bottom: 10px;
    min-height: 48px;
  }
  body.si-site-v5 .catalogue-section .catalog-filter-panel .filter-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  body.si-site-v5 .catalogue-section .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  body.si-site-v5 .catalogue-section .product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #dde5e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 34, 45, .045);
    overflow: hidden;
  }
  body.si-site-v5 .catalogue-section .product-card .product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 225px;
    min-height: 0;
    padding: 20px;
    background: #f5f8f9;
    overflow: hidden;
  }
  body.si-site-v5 .catalogue-section .product-card .product-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
  body.si-site-v5 .catalogue-section .product-card .product-copy {
    flex: 1;
    padding: 20px 20px 18px;
    min-width: 0;
  }
  body.si-site-v5 .catalogue-section .product-card .product-type {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: #556670;
    overflow-wrap: anywhere;
  }
  body.si-site-v5 .catalogue-section .product-card .product-copy h3 {
    margin: 9px 0 10px;
    font-size: clamp(21px, 5.4vw, 26px);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  body.si-site-v5 .catalogue-section .product-card .product-measure {
    min-height: 0;
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #52636e;
  }
  body.si-site-v5 .catalogue-section .product-card .product-card-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #e7edef;
  }
  body.si-site-v5 .catalogue-section .product-card .product-card-bottom > .text-link {
    display: flex;
    justify-content: space-between;
    padding: 4px 0 10px;
    font-size: 13px;
    font-weight: 650;
    width: 100%;
  }
  body.si-site-v5 .catalogue-section .product-card .si-v84-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
    align-items: stretch;
  }
  body.si-site-v5 .catalogue-section .product-card .si-v84-card-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 45px;
    padding: 10px 9px;
    font-size: 12px;
    line-height: 1.25;
    border-radius: 7px;
    text-align: center;
    white-space: normal;
  }
  body.si-site-v5 .catalogue-section .catalog-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
}
@media (max-width: 370px) {
  body.si-site-v5 .catalogue-section .product-card .product-media {
    height: 190px;
  }
  body.si-site-v5 .catalogue-section .product-card .product-copy {
    padding: 17px 15px;
  }
}
