body.woocommerce-shop #main.site-main {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  column-gap: 30px;
  align-items: start;
}

body.woocommerce-shop #main.site-main > .woocommerce-products-header,
body.woocommerce-shop #main.site-main > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

body.woocommerce-shop #main.site-main > .kadence-shop-top-row,
body.woocommerce-shop #main.site-main > ul.products,
body.woocommerce-shop #main.site-main > .woocommerce-pagination,
body.woocommerce-shop #main.site-main > .woocommerce-no-products-found {
  grid-column: 2;
  min-width: 0;
}

body.woocommerce-shop #main.site-main > .woocommerce-no-products-found {
  grid-row: 4;
}
body.woocommerce-shop #main.site-main > .ideal-series-filter {
  grid-column: 1;
  grid-row: 3 / span 3;
  min-width: 0;
  border: 1px solid var(--global-palette7, #e2e5e8);
  border-radius: 4px;
  padding: 18px 15px;
  background: var(--global-palette9, #fff);
}

.ideal-series-filter h2 {
  margin: 0 0 12px;
  padding: 0 8px;
  font-size: 17px;
  line-height: 1.4;
}

.ideal-series-filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ideal-series-filter li + li {
  margin-top: 2px;
}

.ideal-series-filter a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 3px;
  color: var(--global-palette3, #222);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.ideal-series-filter a:hover,
.ideal-series-filter a:focus-visible {
  background: var(--global-palette8, #f4f5f6);
}

.ideal-series-filter a[aria-current="page"] {
  background: var(--global-palette8, #f4f5f6);
  color: var(--global-palette1, #187b90);
  font-weight: 700;
}

.ideal-series-count {
  flex: none;
  color: var(--global-palette5, #555);
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 767px) {
  body.woocommerce-shop #main.site-main {
    display: block;
  }

  body.woocommerce-shop #main.site-main > .woocommerce-no-products-found {
  grid-row: 4;
}
body.woocommerce-shop #main.site-main > .ideal-series-filter {
    margin-bottom: 20px;
    padding: 12px;
  }

  .ideal-series-filter h2 {
    margin-bottom: 8px;
  }

  .ideal-series-filter ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .ideal-series-filter li {
    flex: none;
    max-width: 170px;
  }

  .ideal-series-filter li + li {
    margin-top: 0;
  }

  .ideal-series-filter a {
    height: 100%;
    border: 1px solid var(--global-palette7, #e2e5e8);
  }
}

body.woocommerce-shop #main.site-main > .ideal-product-search {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  width: 100%;
  max-width: 520px;
  margin: 0 0 18px;
}

.ideal-product-search label {
  display: block;
  margin-bottom: 9px;
  color: var(--global-palette3, #222);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.ideal-product-search-controls {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.ideal-product-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #cbd4df;
  border-radius: 4px;
  background: #fff;
  color: var(--global-palette3, #222);
  font-size: 14px;
}

.ideal-product-search input[type="search"]:focus-visible {
  outline: 2px solid var(--global-palette1, #1768a4);
  outline-offset: 2px;
}

.ideal-product-search button[type="submit"] {
  flex: none;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--global-palette1, #1768a4);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 44px;
  cursor: pointer;
}

.ideal-product-search button[type="submit"]:hover,
.ideal-product-search button[type="submit"]:focus-visible {
  background: var(--global-palette2, #115987);
}

.ideal-product-search-clear {
  align-self: center;
  padding: 6px 2px;
  white-space: nowrap;
  font-size: 14px;
}

@media (max-width: 767px) {
  body.woocommerce-shop #main.site-main > .ideal-product-search {
    max-width: none;
    margin-bottom: 20px;
  }
}
/* Kadence uses a generic archive hero when a product search has zero results. */
body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .entry-hero-container-inner {
  background: #edf1f4 url("../../uploads/2026/11/subpage-hero-products.webp") center / cover no-repeat !important;
  min-height: 540px !important;
  display: flex;
  align-items: center;
  padding-top: 120px !important;
  box-sizing: border-box;
}

body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .hero-section-overlay {
  background: linear-gradient(180deg, rgba(5, 20, 38, .55), transparent 38%),
    linear-gradient(90deg, rgba(5, 20, 38, .97) 0%, rgba(5, 20, 38, .87) 33%, rgba(5, 20, 38, .51) 58%, rgba(5, 20, 38, .08) 88%) !important;
  opacity: 1 !important;
}

body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .hero-container {
  width: 100%;
}

body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .entry-header {
  display: block !important;
  max-width: 560px;
  min-height: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  transform: translateY(-39px);
}

body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .entry-header::before {
  content: "MEASUREMENT EQUIPMENT";
  display: block;
  margin-bottom: 16px;
  color: #72c7ff;
  font: 700 13px/1.4 Arial, Helvetica, sans-serif;
}

body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .entry-header::after {
  content: "Explore optical, vision and coordinate measuring systems for precise inspection.";
  display: block;
  margin-top: 22px;
  color: rgba(255, 255, 255, .88);
  font: 18px/1.6 Arial, Helvetica, sans-serif;
}

body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .page-title {
  margin: 0 !important;
  color: #fff !important;
  font: 700 58px/1.1 Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
}

@media (max-width: 767px) {
  body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .entry-hero-container-inner {
    min-height: 520px !important;
    background-position: 70% center !important;
    padding-top: 120px !important;
  }

  body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .hero-section-overlay {
    background: linear-gradient(180deg, rgba(5, 20, 38, .85), rgba(5, 20, 38, .66)),
      linear-gradient(90deg, rgba(5, 20, 38, .94), rgba(5, 20, 38, .35)) !important;
  }

  body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .entry-header {
    max-width: 100%;
    transform: translateY(-139px);
  }

  body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .page-title {
    font-size: 38px !important;
  }

  body.ideal-product-search-active .entry-hero:not(.product-archive-hero-section) .entry-header::after {
    font-size: 16px;
  }
}