/* The product carousel uses equal rows and a flat, horizontal movement.
   Only the homepage showcase is affected; other carousels keep their layout. */
body.everest-redesign .product-showcase .product-arc .arc-window {
  padding-block: 14px;
}
body.everest-redesign .product-showcase .product-arc .product-card-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 150px 306px;
  gap: 0;
  padding: 0;
  height: 458px;
  min-height: 458px;
  border-radius: 18px;
  overflow: hidden;
}
body.everest-redesign .product-showcase .product-arc .product-card-compact .product-image {
  grid-area: auto;
  width: 100%;
  height: 150px;
  min-height: 0;
  border-radius: 0;
  align-self: auto;
}
body.everest-redesign .product-showcase .product-arc .product-card-compact .product-image > img {
  width: 100%;
  height: 150px;
  padding: 14px 44px;
  object-fit: contain;
}
body.everest-redesign .product-showcase .product-arc .product-card-compact .card-icons {
  inset: 8px 8px auto auto;
  flex-direction: row;
  gap: 4px;
}
body.everest-redesign .product-showcase .product-arc .product-card-compact .card-icons button {
  flex: none;
  width: 40px;
  height: 40px;
  background: #fff;
}
body.everest-redesign .product-showcase .product-arc .product-card-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 16px 56px 34px 50px 44px 48px;
  align-content: start;
  gap: 6px;
  padding: 14px;
  min-width: 0;
  height: 306px;
}
body.everest-redesign .product-showcase .product-arc .product-card-info > .product-brand {
  grid-area: 1 / 1;
  justify-self: start;
  min-height: 0;
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}
body.everest-redesign .product-showcase .product-arc .product-card-info > h3 {
  grid-area: 2 / 1;
  height: 56px;
  min-height: 56px;
  margin: 0;
  font-size: 17px;
  line-height: 22px;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
body.everest-redesign .product-showcase .product-arc .product-card-info > .product-gost {
  grid-area: 3 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 17px 17px;
  align-content: start;
  gap: 0;
  min-height: 0;
  height: 34px;
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  overflow: hidden;
}
body.everest-redesign .product-showcase .product-arc .product-card-info > .card-dimensions {
  grid-area: 4 / 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 50px;
  min-height: 0;
  margin: 0;
  padding: 6px 0;
  gap: 8px;
  align-content: center;
}
body.everest-redesign .product-showcase .product-arc .card-dimensions dt {
  line-height: 16px;
  font-size: 11px;
}
body.everest-redesign .product-showcase .product-arc .card-dimensions dd {
  white-space: nowrap;
  font-size: 16px;
  line-height: 20px;
}
body.everest-redesign .product-showcase .product-arc .product-card-info > .compact-purchase-meta {
  grid-area: 5 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 26px 16px;
  gap: 2px;
  min-height: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  align-items: start;
}
body.everest-redesign .product-showcase .product-arc .compact-purchase-meta > .product-price {
  grid-area: 1 / 1;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
}
body.everest-redesign .product-showcase .product-arc .product-price strong {
  font-size: 22px;
  line-height: 26px;
}
body.everest-redesign .product-showcase .product-arc .compact-purchase-meta > .stock {
  grid-area: 2 / 1;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}
body.everest-redesign .product-showcase .product-arc .product-card-info > .card-buttons {
  grid-area: 6 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 8px;
  margin: 0;
  height: 48px;
}
body.everest-redesign .product-showcase .product-arc .card-buttons > .btn {
  height: 48px;
  min-height: 48px;
  padding: 9px 8px;
  gap: 5px;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  border-radius: 999px;
}

body.everest-redesign .product-showcase .product-arc .product-kind {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 30px;
  height: 30px;
  overflow: hidden;
  color: #526879;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
}
body.everest-redesign .product-showcase .product-arc .product-designation {
  display: block;
  font-size: 17px;
  font-weight: 650;
  line-height: 22px;
  white-space: nowrap;
}
body.everest-redesign .product-showcase .product-arc .product-gost > span {
  display: block;
  white-space: nowrap;
}

/* Catalogue search and filters share one clear column structure. */
body.everest-redesign .catalog-page:has(> .catalog-primary) {
  --ev-catalog-filter-width: 238px;
  --ev-catalog-gap: 28px;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) > .page-heading {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) > .page-heading h1 {
  max-width: 850px;
  font-size: clamp(34px, 3.35vw, 48px);
  line-height: 1.12;
  margin: 10px 0 14px;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) > .page-heading p {
  max-width: 780px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) > .catalog-primary {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 7px;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-scenarios {
  margin: 0;
  gap: 10px;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-scenarios :is(a, summary) {
  min-height: 50px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.3;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-category-nav {
  margin: 0;
  gap: 10px;
  align-items: start;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-category-nav details {
  padding: 8px 14px;
  background: #f8fafc;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-category-nav summary {
  min-height: 38px;
  font-size: 14px;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-results {
  min-width: 0;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  margin: 0 0 12px;
  border-top: 1px solid #dce5ee;
  border-bottom: 1px solid #dce5ee;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > span {
  grid-area: 1 / 1 / 2 / -1;
  font-size: 14px;
  line-height: 1.4;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > form {
  grid-area: 2 / 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > form select {
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 32px 10px 14px;
  font-size: 14px;
  border-radius: 999px;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > .view-switch {
  grid-area: 2 / 2;
  margin: 0;
  align-self: start;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) :is(.catalog-faq, .technical-resources) {
  margin: 28px 0 0;
}
body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-tools {
  margin: 0;
}

@media (min-width: 1000px) {
  body.everest-redesign .catalog-page:has(> .catalog-primary) {
    display: grid;
    grid-template-columns: var(--ev-catalog-filter-width) minmax(0, 1fr);
    column-gap: var(--ev-catalog-gap);
    row-gap: 22px;
    align-items: start;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .breadcrumbs {
    grid-area: 1 / 1 / 2 / -1;
    margin: 0;
    padding-block: 24px;
    min-height: 0;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .page-heading { grid-area: 2 / 1 / 3 / -1; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .catalog-primary { grid-area: 3 / 1 / 4 / -1; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-scenarios { grid-area: 4 / 1 / 5 / -1; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-category-nav { grid-area: 5 / 1 / 6 / -1; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .catalog-layout { display: contents; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .catalog-layout > .desktop-filters {
    grid-area: 6 / 1 / 7 / 2;
    display: block;
    align-self: start;
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    border: 1px solid #dce5ee;
    border-radius: 18px;
    padding: 20px;
    min-width: 0;
    background: #f8fafc;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .desktop-filters .filters {
    gap: 8px;
    margin: 0;
    padding: 0;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .desktop-filters .filters > label {
    gap: 6px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .desktop-filters .dimension-range > div:first-of-type {
    margin-bottom: 0;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .desktop-filters .dimension-range legend {
    margin-bottom: 3px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .desktop-filters .filter-title {
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    margin: 0;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .desktop-filters .filter-title h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .desktop-filters .filter-title a {
    font-size: 12px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .desktop-filters select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 14px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .desktop-filters .availability-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .desktop-filters .btn {
    width: 100%;
    padding-inline: 12px;
    font-size: 13px;
    min-height: 46px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .catalog-layout > .catalog-results { grid-area: 6 / 2; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > .filter-trigger { display: none; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .catalog-faq { grid-area: 7 / 1 / 8 / -1; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .technical-resources { grid-area: 8 / 1 / 9 / -1; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-tools { grid-area: 9 / 1 / 10 / -1; }
}

@media (max-width: 999px) {
  body.everest-redesign .catalog-page:has(> .catalog-primary) .desktop-filters { display: none; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .page-heading {
    padding-bottom: 20px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-scenarios {
    margin-top: 14px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-category-nav {
    margin: 14px 0 20px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > .filter-trigger {
    grid-area: 1 / 2;
    display: inline-flex;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > span { grid-area: 1 / 1; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > form { grid-area: 2 / 1 / 3 / -1; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > .view-switch { grid-area: 3 / 1 / 4 / -1; }
}

@media (max-width: 767px) {
  body.everest-redesign .product-showcase .product-arc .product-card-compact {
    grid-template-rows: 140px 306px;
    height: 448px;
    min-height: 448px;
  }
  body.everest-redesign .product-showcase .product-arc .product-card-compact .product-image,
  body.everest-redesign .product-showcase .product-arc .product-card-compact .product-image > img {
    height: 140px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .page-heading h1 {
    font-size: clamp(30px, 7.5vw, 40px);
    line-height: 1.12;
    margin-bottom: 12px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .page-heading p {
    font-size: 14px;
    line-height: 1.5;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-scenarios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-scenarios :is(a, summary) {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 13px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) > .master-category-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 0;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > .filter-trigger {
    grid-area: 1 / 2;
    display: inline-flex;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > span { grid-area: 1 / 1; }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > form {
    grid-area: 2 / 1 / 3 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    gap: 6px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > form select {
    width: 100%;
    font-size: 12px;
    padding-inline: 10px 22px;
  }
  body.everest-redesign .catalog-page:has(> .catalog-primary) .catalog-toolbar > .view-switch { grid-area: 3 / 1 / 4 / -1; }
}
