/* Compact responsive layout */
.wrap {
  width: min(1120px, calc(100% - 32px));
}

/* v27: Lunera-inspired navigation and results-first catalog */
.catalog-menu {
  position: relative;
}
.catalog-menu-trigger {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
.catalog-menu-panel {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 11px);
  width: min(690px, 80vw);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(18, 23, 27, 0.18);
  padding: 22px;
  z-index: 80;
}
.catalog-menu.is-open .catalog-menu-panel {
  display: grid;
}
.catalog-menu-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.catalog-menu-panel a {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #efefec;
}
.catalog-menu-panel a:hover {
  color: var(--red);
}
.catalog-hero {
  padding: 24px 0;
}
.catalog-section {
  padding-top: 20px;
}
.catalog-layout {
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
}
.catalog-results {
  scroll-margin-top: 112px;
  min-width: 0;
}
.catalog-inline-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}
.catalog-inline-search .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.catalog-inline-search .field {
  min-width: 0;
  height: 46px;
}
.catalog-inline-search .btn {
  min-width: 112px;
}
.catalog-head #sort {
  width: auto;
  min-width: 185px;
}
.catalog-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}
.catalog-empty strong {
  font-size: 20px;
}
.catalog-empty span {
  color: var(--muted);
}
.catalog-empty a {
  color: var(--red);
  font-weight: 800;
}
.catalog-sidebar {
  grid-column: 1;
  grid-row: 1;
  top: 76px;
  padding: 0;
  overflow: hidden;
}
.catalog-results {
  grid-column: 2;
  grid-row: 1;
}
.catalog-sidebar > h3,
.filter-fields {
  padding: 14px;
}
.catalog-sidebar > h3 {
  margin: 0;
  background: #11171b;
  color: #fff;
  font-size: 16px;
}
.side-catalog details {
  border-top: 1px solid var(--line);
}
.side-catalog summary {
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.side-catalog summary::after {
  content: "+";
  color: var(--red);
}
.side-catalog details[open] summary::after {
  content: "−";
}
.side-catalog a {
  display: block;
  padding: 7px 18px 7px 24px;
  font-size: 12px;
  color: #4f595f;
  border-top: 1px solid #f0f0ed;
}
.side-catalog a:hover {
  color: var(--red);
  background: #faf9f6;
}
.catalog-nav-toggle {
  display: none;
  width: 100%;
  margin: 0 0 12px;
}
.filter-fields {
  border-top: 1px solid var(--line);
}
.filter-fields h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.catalog-results > .products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.catalog-seo-links {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.catalog-seo-links h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.catalog-seo-links p {
  color: var(--muted);
  font-size: 13px;
}
.seo-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.seo-link-list a {
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 1100px) {
  .navlinks > a {
    display: none;
  }
}
@media (max-width: 760px) {
  .navlinks {
    display: block;
  }
  .catalog-menu-trigger {
    padding: 9px 11px;
    font-size: 12px;
  }
  .catalog-menu-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 62px;
    width: auto;
    max-height: calc(100vh - 90px);
    overflow: auto;
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }
  .catalog-layout {
    display: block;
  }
  .catalog-sidebar {
    display: none;
    position: static;
    margin-bottom: 12px;
  }
  .catalog-sidebar.is-open {
    display: block;
  }
  .catalog-nav-toggle {
    display: block;
  }
  .catalog-results > .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 390px) {
  .catalog-results > .products {
    grid-template-columns: 1fr;
  }
}
.legacy-home-section {
  display: none;
}
.home-catalog {
  padding: 34px 0;
}
.home-catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.home-side-catalog {
  border: 1px solid var(--line);
  background: #fff;
}
.home-side-catalog h2 {
  margin: 0;
  padding: 15px;
  background: #11171b;
  color: #fff;
  font-size: 17px;
  letter-spacing: 0;
}
.home-side-catalog details {
  border-top: 1px solid var(--line);
}
.home-side-catalog summary {
  padding: 13px 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.home-side-catalog a {
  display: block;
  padding: 7px 20px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid #f0f0ed;
}
.home-side-catalog a:hover {
  color: var(--red);
}
.home-side-catalog .all-catalog-link {
  padding: 13px 15px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}
.home-catalog .sectionhead {
  margin-bottom: 16px;
}
.home-catalog .sectionhead h2 {
  font-size: 34px;
}
.home-catalog .products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .home-catalog-layout {
    grid-template-columns: 1fr;
  }
  .home-side-catalog details:not([open]) {
    display: block;
  }
  .home-catalog .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 390px) {
  .home-catalog .products {
    grid-template-columns: 1fr;
  }
}
.consultation-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
}
.consultation-trigger {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}
.consultation-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(330px, calc(100vw - 24px));
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}
.consultation-panel strong {
  display: block;
  padding-right: 24px;
  font-size: 20px;
}
.consultation-panel p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.consultation-panel a {
  display: block;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}
.consultation-panel .consultation-call {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.consultation-panel small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  text-align: center;
}
.consultation-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .consultation-widget {
    right: 12px;
    bottom: 76px;
  }
  .consultation-trigger {
    width: 46px;
    height: 46px;
  }
}
.topbar {
  padding: 6px 0;
  font-size: 11px;
}
.nav .wrap {
  height: 64px;
}
.logo {
  gap: 9px;
  font-size: 14px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  font-size: 17px;
}
.navlinks {
  gap: 14px;
  font-size: 12px;
}
.actions {
  gap: 7px;
}
.btn {
  padding: 10px 13px;
  font-size: 13px;
}
.iconbtn {
  width: 40px;
}
.hero {
  min-height: 520px;
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  letter-spacing: -3px;
  margin: 14px 0 16px;
  max-width: 680px;
}
.hero p {
  font-size: 16px;
  line-height: 1.5;
  max-width: 580px;
}
.finder {
  padding: 9px;
  margin-top: 24px;
  max-width: 760px;
}
.finder input,
.finder select,
.field {
  padding: 12px;
}
.trust {
  margin-top: 18px;
  gap: 18px;
}
.section {
  padding: 58px 0;
}
.section h2 {
  font-size: clamp(30px, 4vw, 46px);
}
.sectionhead {
  margin-bottom: 25px;
}
.brands {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.brand {
  padding: 20px;
  min-height: 155px;
}
.brand strong {
  font-size: 28px;
}
.brand span {
  font-size: 13px;
}
.cats {
  gap: 10px;
}
.cat {
  padding: 18px;
  min-height: 130px;
}
.cat i {
  font-size: 21px;
  margin-bottom: 18px;
}
.cat h3 {
  font-size: 17px;
}
.cat p {
  margin: 6px 0;
  font-size: 12px;
}
.band {
  padding: 24px 0;
}
.band strong {
  font-size: 21px;
}
.steps {
  gap: 20px;
}
.step {
  padding-top: 18px;
}
.step h3 {
  font-size: 21px;
  margin: 10px 0;
}
.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.product-img {
  height: 170px;
  padding: 4px;
}
.product-img:has(img)::before {
  display: none;
}
.product-img img {
  display: block;
  position: relative;
  z-index: 1;
}
.product-body {
  padding: 15px;
}
.product h3 {
  font-size: 15px;
  min-height: 42px;
  margin: 10px 0;
}
.price {
  font-size: 19px;
}
.sku {
  margin: 9px 0;
  font-size: 11px;
}
.pagehero {
  padding: 48px 0;
}
.pagehero h1 {
  font-size: clamp(36px, 5vw, 55px);
  margin: 9px 0;
}
.layout {
  grid-template-columns: 230px 1fr;
  gap: 20px;
}
.filters {
  padding: 17px;
  top: 78px;
}
.filters label {
  margin: 13px 0 6px;
}
.catalog-head {
  margin-bottom: 14px;
}
.product-detail {
  gap: 32px;
}
.gallery {
  min-height: 360px;
}
.gallery img {
  height: 360px !important;
  padding: 8px !important;
}
.lang-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d8ddda;
  border-radius: 8px;
  background: #fff;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  color: #59645e;
}
.lang-switch button.active {
  background: #18201c;
  color: #fff;
}
.buybox h1 {
  font-size: 34px;
}
.specs {
  margin: 15px 0;
}
.specs td {
  padding: 10px 0;
}
.lead {
  padding: 25px;
}
.footer {
  padding: 42px 0 20px;
}
.footer-grid {
  gap: 28px;
}
.footer-bottom {
  margin-top: 30px;
}

@media (max-width: 1100px) {
  .navlinks {
    display: none;
  }
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 24px, 1120px);
  }
  .topbar {
    display: none;
  }
  .nav .wrap {
    height: 58px;
  }
  .actions .btn {
    display: none;
  }
  .hero {
    min-height: 520px;
    background-position: 60% center;
  }
  .hero:before {
    background: rgba(7, 10, 12, 0.8);
  }
  .hero h1 {
    font-size: 40px;
    line-height: 1;
    letter-spacing: -2px;
  }
  .hero p {
    font-size: 15px;
  }
  .finder {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .trust {
    gap: 10px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .section {
    padding: 42px 0;
  }
  .sectionhead {
    display: block;
  }
  .brands,
  .cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand {
    min-height: 125px;
    padding: 16px;
  }
  .brand strong {
    font-size: 23px;
  }
  .cat {
    min-height: 115px;
    padding: 14px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .product-img {
    height: 145px;
  }
  .product-body {
    padding: 12px;
  }
  .product h3 {
    font-size: 14px;
    line-height: 1.3;
    min-height: 54px;
  }
  .price {
    font-size: 17px;
  }
  .layout,
  .product-detail {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
    padding: 14px;
  }
  .pagehero {
    padding: 36px 0;
  }
  .pagehero h1 {
    font-size: 38px;
    letter-spacing: -2px;
  }
  .gallery {
    min-height: 280px;
  }
  .gallery img {
    height: 280px !important;
    padding: 18px !important;
  }
  .buybox h1 {
    font-size: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

/* v15: product detail conversion and trust */
.product-section {
  padding-top: 18px;
}
.product-detail {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 28px;
  align-items: start;
}
.gallery-button {
  border: 1px solid var(--line);
  width: 100%;
  padding: 14px;
  cursor: zoom-in;
  position: sticky;
  top: 76px;
  background: #fff;
}
.gallery-button img {
  width: 100%;
  height: 520px !important;
  object-fit: contain;
  padding: 0 !important;
  display: block;
}
.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(12, 16, 19, 0.86);
  color: #fff;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
}
.buybox {
  min-width: 0;
}
.buybox h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -1.3px;
  margin: 12px 0;
  max-width: 690px;
}
.product-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
  max-width: 650px;
}
.product-price {
  font-size: 30px;
  margin: 12px 0;
}
.buy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.buy-actions .btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.compatibility {
  background: #fff;
}
.purchase-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  margin: 14px 0 18px;
}
.purchase-trust a {
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.purchase-trust a:nth-child(2n) {
  border-right: 0;
}
.purchase-trust a:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.purchase-trust b,
.purchase-trust span {
  display: block;
}
.purchase-trust b {
  font-size: 12px;
  margin-bottom: 4px;
}
.purchase-trust span {
  font-size: 11px;
  color: var(--muted);
}
.specs-title {
  font-size: 21px !important;
  letter-spacing: -0.5px !important;
  margin: 18px 0 6px !important;
}
.specs {
  margin: 0 0 14px;
  font-size: 13px;
}
.specs td {
  padding: 8px 0;
}
.product-more {
  max-width: 900px;
  margin-top: 36px;
  line-height: 1.7;
  color: #555e64;
}
.product-more h2 {
  font-size: 26px;
  letter-spacing: -1px;
  margin: 26px 0 8px;
}
.image-dialog {
  width: min(920px, calc(100% - 28px));
  height: min(90vh, 820px);
  border: 0;
  padding: 38px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}
.image-dialog::backdrop {
  background: rgba(4, 7, 8, 0.82);
}
.image-dialog img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dialog-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: #11171b;
  color: #fff;
  width: 34px;
  height: 34px;
  font-size: 23px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .gallery-button {
    position: relative;
    top: auto;
    padding: 8px;
  }
  .gallery-button img {
    height: 310px !important;
  }
  .zoom-hint {
    right: 8px;
    bottom: 8px;
  }
  .buybox h1 {
    font-size: 27px;
  }
  .product-price {
    font-size: 26px;
  }
  .buy-actions {
    grid-template-columns: 1fr;
  }
  .purchase-trust {
    grid-template-columns: 1fr;
  }
  .purchase-trust a,
  .purchase-trust a:nth-child(2n),
  .purchase-trust a:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .purchase-trust a:last-child {
    border-bottom: 0;
  }
  .image-dialog {
    padding: 28px 10px 10px;
    height: 82vh;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 35px;
  }
  .products {
    grid-template-columns: 1fr;
  }
  .product-img {
    height: 150px;
  }
  .product h3 {
    min-height: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* v17: homepage conversion, compact hero and mobile actions */
.hero {
  min-height: 430px;
}
.hero .wrap {
  padding-top: 28px;
  padding-bottom: 28px;
}
.hero h1 {
  max-width: 780px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.98;
}
.hero p {
  max-width: 690px;
  font-size: 17px;
}
.finder {
  max-width: 860px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}
body:has(.hero) .products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.brand {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.brand:hover {
  transform: translateY(-2px);
  border-color: #c52f20;
  box-shadow: 0 10px 28px rgba(18, 23, 27, 0.09);
}
.brand b {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--red);
  font-size: 20px;
}
.lead-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.lead-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46px;
}
.form-note {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}
.form-note a {
  font-weight: 800;
  text-decoration: underline;
}
.mobile-actions {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 66px;
  }
  .hero {
    min-height: auto;
    padding: 34px 0 38px;
    background-position: 63% center;
  }
  .hero .wrap {
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: 35px;
    line-height: 1.02;
    letter-spacing: -1.6px;
    margin: 10px 0 12px;
  }
  .hero p {
    font-size: 14px;
    line-height: 1.45;
  }
  .finder {
    box-shadow: none;
  }
  body:has(.hero) .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brands {
    gap: 9px;
  }
  .brand {
    min-height: 112px;
    padding: 14px;
  }
  .brand strong {
    font-size: 21px;
  }
  .brand span {
    font-size: 11px;
    line-height: 1.35;
    padding-right: 14px;
  }
  .band .row {
    display: block;
  }
  .band strong,
  .band span {
    display: block;
    margin-bottom: 8px;
  }
  .band .btn {
    width: 100%;
    text-align: center;
    margin-top: 6px;
  }
  #vin .wrap {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .lead {
    padding: 18px;
  }
  .lead-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .mobile-actions {
    position: fixed;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0d1210;
    border-top: 1px solid #343a36;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  }
  .mobile-actions a {
    min-height: 62px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #343a36;
  }
  .mobile-actions a:last-child {
    background: var(--red);
    border-right: 0;
  }
  .mobile-actions b {
    font-size: 13px;
  }
  .mobile-actions span {
    font-size: 10px;
    opacity: 0.78;
    margin-top: 3px;
  }
}

@media (max-width: 390px) {
  body:has(.hero) .products {
    grid-template-columns: 1fr;
  }
}

/* v14: tighter commerce layout and clearer buying actions */
.wrap {
  width: min(1240px, calc(100% - 32px));
}
.topbar {
  padding: 5px 0;
}
.nav .wrap {
  height: 60px;
}
.pagehero {
  padding: 30px 0;
}
.pagehero .wrap {
  display: block;
}
.pagehero h1 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.04;
  letter-spacing: -2px;
  margin: 6px 0 8px;
}
.pagehero p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 650px;
}
.section {
  padding: 38px 0;
}
.layout {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
}
.filters {
  padding: 14px;
  top: 72px;
  border-radius: 4px;
}
.filters h3 {
  margin: 0 0 12px;
  font-size: 17px;
}
.filters label {
  margin: 10px 0 5px;
}
.filters .field {
  padding: 10px;
  font-size: 13px;
}
.catalog-head {
  margin-bottom: 12px;
}
.products {
  gap: 12px;
}
.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.product:hover {
  transform: translateY(-2px);
  border-color: #c8c9c5;
  box-shadow: 0 10px 28px rgba(18, 23, 27, 0.09);
}
.product-img {
  height: 160px;
  background: #fff;
  padding: 10px;
}
.product-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 0 !important;
}
.product-body {
  padding: 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product h3 {
  font-size: 14px;
  line-height: 1.35;
  min-height: 57px;
  margin: 8px 0;
}
.product .price {
  font-size: 19px;
  margin-top: auto;
}
.product .demo {
  display: block;
  margin-top: 5px;
  min-height: 24px;
}
.card-action {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  background: #11171b;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}
.header-search {
  display: flex;
  width: 230px;
  height: 36px;
}
.header-search input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-right: 0;
  padding: 0 10px;
  font-size: 12px;
  background: #f8f8f6;
}
.header-search button {
  width: 38px;
  border: 0;
  background: #11171b;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.header-phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.1;
}
.header-phone small {
  font-size: 9px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 3px;
}
.filter-toggle {
  display: none;
  width: 100%;
  margin-bottom: 10px;
}
.category-navigation {
  margin-bottom: 28px;
}
.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 28px;
}
.related-links a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.related-links a:hover {
  border-color: var(--red);
}
.related-links b {
  font-size: 14px;
  line-height: 1.35;
}
.related-links span {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .header-search {
    width: 190px;
  }
  .header-phone {
    display: none;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 20px, 1240px);
  }
  .nav .wrap {
    height: 56px;
  }
  .header-search {
    display: none;
  }
  .pagehero {
    padding: 22px 0;
  }
  .pagehero .wrap {
    display: block;
  }
  .pagehero h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .pagehero p {
    font-size: 13px;
  }
  .section {
    padding: 24px 0;
  }
  .layout {
    display: block;
  }
  .filter-toggle {
    display: block;
  }
  .filters {
    display: none;
    margin-bottom: 14px;
  }
  .filters.is-open {
    display: block;
  }
  .catalog-head {
    gap: 8px;
  }
  .catalog-head .field {
    max-width: 150px;
    padding: 9px;
    font-size: 12px;
  }
  .catalog-inline-search {
    position: sticky;
    top: 122px;
    z-index: 5;
    padding: 8px;
    margin: -8px -8px 10px;
    background: rgba(247, 247, 244, 0.96);
    backdrop-filter: blur(8px);
  }
  .catalog-inline-search .field {
    max-width: none;
    height: 42px;
    font-size: 13px;
  }
  .catalog-inline-search .btn {
    min-width: 76px;
    padding-inline: 12px;
  }
  .catalog-head #sort {
    min-width: 0;
    width: 145px;
  }
  .catalog-results {
    scroll-margin-top: 122px;
  }
  .product-img {
    height: 138px;
    padding: 8px;
  }
  .product-body {
    padding: 10px;
  }
  .product h3 {
    font-size: 13px;
    min-height: 52px;
  }
  .card-action {
    padding: 7px;
  }
  .related-links {
    grid-template-columns: 1fr;
  }
}

/* Stage 4: shared compact catalog and category cards. */
.catalog-results > .products,
.section > .wrap > .products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.product {
  position: relative;
  overflow: hidden;
  border-color: #deded9;
  border-radius: 5px;
  background: #fff;
}
.product-main,
.product > .product-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.product-img {
  height: 150px;
  border-bottom: 1px solid #efefec;
  background: #fff;
}
.product-img::before {
  display: none;
}
.product-img img {
  transition: transform 0.2s ease;
}
.product:hover .product-img img {
  transform: scale(1.035);
}
.product-body {
  min-width: 0;
  padding: 11px 12px 10px;
}
.product .tag {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product .tag.is-unavailable,
.product .tag:where(:not(.is-available)):not(:first-child) {
  background: #f7eee9;
  color: #9a4b34;
}
.product .sku {
  min-width: 0;
  margin: 9px 0 0;
  overflow: hidden;
  color: #667078;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 7px 0 10px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.product .price {
  margin-top: auto;
  font-size: 19px;
  line-height: 1.2;
}
.product .price-request {
  color: #343a3e;
  font-size: 14px;
}
.product .demo {
  min-height: 17px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-actions {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0 12px 12px;
}
.product-actions .btn,
.product-actions .card-action,
.product > .product-body .card-action {
  min-height: 36px;
  margin: 0;
  padding: 9px 8px;
  border: 1px solid #171c20;
  border-radius: 2px;
  font-size: 11px;
  line-height: 1.3;
}
.product > .product-body .card-action {
  margin-top: 10px;
}
.breadcrumb {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pagehero + .section {
  padding-top: 26px;
}
.pagehero .finder {
  max-width: 760px;
}
.catalog-head {
  min-height: 42px;
}

@media (max-width: 1180px) {
  .catalog-results > .products,
  .section > .wrap > .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-results > .products,
  .section > .wrap > .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .product-img {
    height: 124px;
    padding: 6px;
  }
  .product-body {
    padding: 9px;
  }
  .product h3 {
    min-height: 50px;
    font-size: 12px;
  }
  .product .sku {
    font-size: 9px;
  }
  .product .price {
    font-size: 17px;
  }
  .product-actions {
    grid-template-columns: 1fr;
    padding: 0 9px 9px;
  }
  .product-actions .card-action {
    display: none;
  }
  .pagehero + .section {
    padding-top: 18px;
  }
}

@media (max-width: 380px) {
  .catalog-results > .products,
  .section > .wrap > .products {
    grid-template-columns: 1fr;
  }
  .product-img {
    height: 170px;
  }
}
