.home-design {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.home-design[hidden], .lookup-active .home-design {
  display: none;
}

.home-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 16px;
}

.home-search, .home-cyclon {
  min-height: 245px;
  border-radius: 18px;
  overflow: hidden;
}

.home-search {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4vw, 46px);
  background: linear-gradient(135deg, #f8f8fa, #e9eaee);
}

.home-search h2 {
  margin: 0 0 22px;
  color: #9d1333;
  font-size: clamp(1.45rem, 2.8vw, 2.5rem);
  line-height: 1.25;
}

.home-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-segments button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 13px;
  color: #2e2731;
  background: white;
  border: 1px solid #d8d5db;
  border-radius: 8px;
  cursor: pointer;
}

.home-segments button[aria-pressed="true"] {
  color: #9d1333;
  border-color: currentColor;
  background: #fff0f3;
}

.home-cyclon {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 8px;
  padding: 22px clamp(16px, 3vw, 34px);
  background: linear-gradient(151deg, #08182f 72%, #ffd224 72%);
  color: white;
  text-decoration: none;
}

.home-cyclon-copy {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.home-cyclon-copy img { width: min(160px, 100%); height: auto; }
.home-cyclon-copy strong { font-size: clamp(1.15rem, 2.1vw, 1.8rem); }
.home-cyclon-copy span { color: #ffd224; font-weight: 700; }
.home-cyclon:hover .home-cyclon-copy span { text-decoration: underline; }
.home-oil-pack { width: 100%; height: 205px; object-fit: contain; filter: drop-shadow(0 9px 10px #020c1d80); }

.home-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-categories a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  align-items: center;
  min-height: 99px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid #e7e7eb;
  border-radius: 12px;
  color: #2e2731;
  background: #f7f7f9;
  text-decoration: none;
  font-weight: 750;
}

.home-categories a:hover { color: #9d1333; border-color: #9d1333; }
.home-categories img { width: 100%; height: 80px; object-fit: contain; }

@media (max-width: 760px) {
  .home-panels { grid-template-columns: 1fr; }
  .home-search, .home-cyclon { min-height: 0; }
  .home-oil-pack { height: 155px; }
  .home-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .home-categories a { display: flex; flex-direction: column-reverse; justify-content: center; gap: 5px; }
  .home-categories img { height: 55px; }
}

/* The logo header stays in its existing layout. */
.search-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: var(--content-gutter);
}

.search-toolbar-inner {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
}

.search-toolbar .shop-menu {
  order: -1;
  flex: none;
  padding: 0;
  margin: 0;
}

.search-toolbar .shop-list {
  left: 0;
  width: min(310px, calc(100vw - 2 * var(--content-gutter)));
}

main { padding-top: 14px; }

.home-design { gap: 10px; margin-bottom: 10px; }
.home-panels { gap: 10px; }
.home-search, .home-cyclon { min-height: 0; border-radius: 14px; }

.home-search {
  padding: clamp(16px, 2.6vw, 30px);
  border: 1px solid #ebe5e7;
  background: linear-gradient(115deg, #fbf7f8, #f3ecef);
}

.home-search h2 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
}

.home-search #shop-entry { gap: 6px; margin-bottom: 8px; }
.home-search #shop-entry .btn, .home-segments button { min-height: 38px; }
.home-segments button { font-size: .875rem; }
.home-cyclon { padding-block: 12px; }
.home-cyclon-copy { gap: 5px; }
.home-cyclon-copy img { width: min(112px, 100%); }
.home-oil-pack { height: 126px; }

.home-categories { gap: 8px; }
.home-categories a {
  grid-template-columns: minmax(0, 1fr) minmax(24px, .55fr);
  min-height: 54px;
  padding: 5px 10px;
  border-radius: 9px;
  background: white;
}
.home-categories img { height: 44px; }

main:has(.home-design:not([hidden])) > .page-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#search-view > .photo-actions {
  padding: 0;
  margin: 0 0 8px;
  gap: 6px;
}

#search-view > .photo-actions .btn {
  flex: none;
  min-height: 36px;
  padding: 6px 10px;
  color: #8b1530;
  border: 1px solid #ebdce0;
  background: white;
}

#search-view > .photo-actions .btn:hover { background: #fff0f3; }

@media (max-width: 760px) {
  .home-search h2 { margin-bottom: 9px; }
  .home-cyclon { grid-template-columns: minmax(0, 1fr) 85px; padding-block: 8px; }
  .home-oil-pack { height: 86px; }
}

@media (max-width: 520px) {
  .search-toolbar { gap: 3px; }
  .search-toolbar .shop-menu summary { width: 36px; }
  .search-toolbar-inner { gap: 4px; }
  .search-input-wrap { min-height: 44px; }
  .home-categories a { display: grid; gap: 4px; min-width: 0; font-size: .875rem; }
}

body { background: #fff; }
.home-panels { grid-template-columns: minmax(0, 1.66fr) minmax(0, 1fr); }
.home-search, .home-cyclon { min-height: 276px; }
.home-search {
  justify-content: center;
  padding: clamp(18px, 3vw, 38px);
  background: linear-gradient(90deg, #f4f5f7 18%, #f4f5f7d9 48%, #f4f5f700 100%), #eff1f4;
}
.home-search h2 { font-size: clamp(1.45rem, 2.8vw, 2.5rem); }
.home-search #shop-entry .btn { min-width: 125px; }
.home-segments { margin-bottom: 12px; }
.home-segments button { background: #ffffffbb; }
#home-search-slot { max-width: 610px; }
#home-search-slot .search-toolbar-inner { flex-wrap: wrap; gap: 5px; padding: 0; }
#home-search-slot #search-form { flex-basis: 100%; }
#home-search-slot .search-input-wrap { background: #fff; }
#home-search-slot .search-submit { background: #aa1032; }
#home-search-slot .search-filter-toggle, #home-search-slot .batch-toggle { min-height: 30px; font-size: .75rem; padding: 4px 8px; background: #fff; }
.home-cyclon { background: linear-gradient(155deg, #061d38 73%, #ffd222 73%); }
.home-cyclon-copy img { width: min(160px, 100%); border-radius: 5px; }
.home-oil-pack { height: clamp(145px, 19vw, 235px); }
.home-categories a { min-height: 88px; padding-inline: 14px; background: #f5f6f8; border-color: transparent; }
.home-categories img { height: 74px; }
.home-featured-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 10px; }
.home-featured-heading h2 { margin: 0; font-size: clamp(1.125rem, 2vw, 1.55rem); }
.home-featured-heading h2::before { content: ""; display: inline-block; width: 9px; height: .9em; margin-right: 8px; background: #ac1233; transform: skew(-20deg); vertical-align: -.06em; }
.home-featured-heading a { color: #9d1333; font-size: .875rem; font-weight: 700; }
.home-featured-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-product { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid #eee5e8; border-radius: 12px; }
.home-product img { width: 100%; height: clamp(100px, 13vw, 158px); object-fit: contain; }
.home-product h3 { margin: 0; font-size: 1rem; }
.home-product-code { color: #55515a; font-size: .875rem; }
.home-product p { margin: 6px 0; color: #9d1333; font-size: 1.1rem; font-weight: 800; }
.home-product .cart-add { padding-inline: 10px; }

@media (max-width: 760px) {
  .home-panels { grid-template-columns: 1fr; }
  .home-search, .home-cyclon { min-height: 0; }
  .home-search { background-size: auto, 95% auto; }
  .home-cyclon { grid-template-columns: minmax(0, 1fr) 105px; }
  .home-oil-pack { height: 110px; }

}
@media (max-width: 520px) {
  #home-search-slot .search-submit { font-size: .875rem; }
  #home-search-slot .search-submit svg { display: none; }
  .home-categories a { min-height: 60px; }
  .home-categories img { height: 49px; }
}

.search-toolbar:not(:has(.search-toolbar-inner:not([hidden]))) { justify-content: flex-start; }
.search-toolbar .shop-menu summary {
  width: auto;
  min-height: 36px;
  gap: 7px;
  margin-block: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #a91335;
  color: #fff;
}
@media (max-width: 620px) {
  .search-toolbar:has(.search-toolbar-inner:not([hidden])) .shop-menu summary { padding-inline: 8px; }
  .search-toolbar:has(.search-toolbar-inner:not([hidden])) .shop-menu summary span { display: none; }
}

#home-featured { min-width: 0; }
.home-design { grid-template-columns: minmax(0, 1fr); }
.home-featured-items { align-items: stretch; gap: 12px; }
.home-product {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  padding: clamp(12px, 1.4vw, 22px);
  gap: 12px;
  background: linear-gradient(110deg, #f7f8fa, white 58%);
  border-color: #e3e4e8;
}
.home-product img { height: clamp(125px, 12vw, 180px); mix-blend-mode: multiply; }
.home-product h3 { line-height: 1.35; }
.home-product p { font-size: 1.4rem; margin: 10px 0 6px; }
.home-product .cart-add { color: white; background: #a50e30; border-color: #a50e30; }
@media (max-width: 960px) {
  .home-featured-items {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(185px, 38%, 260px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
  }
  .home-product {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    scroll-snap-align: start;
    padding: 12px;
    gap: 8px;
    background: white;
  }
  .home-product img {
    height: clamp(116px, 18vw, 158px);
    background: #f7f8fa;
    padding: 6px;
    border-radius: 8px;
  }
  .home-product > div { flex: 1; display: flex; flex-direction: column; align-items: start; }
  .home-product-code { margin-bottom: 6px; }
  .home-product p { margin: auto 0 6px; }
  .home-product .cart-add { width: 100%; justify-content: center; }
}

.home-search {
  background: linear-gradient(90deg, rgb(5 20 46 / .90), rgb(5 20 46 / .56) 43%, transparent 72%), url("brand/cyclon-53.webp") center 58% / cover;
}
.home-search h2 { color: #fff; max-width: 18ch; text-shadow: 0 2px 14px #041224; }
.home-search #shop-entry { justify-content: flex-start; align-items: flex-start; }
.home-search #hero-photo-search { background: #ffca28; color: #10223b; border-color: #ffca28; }
.home-categories a { background: #f4f5f7; }
.home-categories img { mix-blend-mode: multiply; object-fit: contain; border-radius: 7px; }
.main-shell { background: linear-gradient(#f3f5f8, #fff 32rem); }
#vehicles-view .vehicle-intro {
  padding: clamp(16px,3vw,30px);
  border-radius: 12px;
  max-width: none;
  background: linear-gradient(110deg,#eaf0f6,#fff 78%);
  border-inline-start: 4px solid #f4c425;
}
#search-toolbar { position: sticky; top: var(--topbar-height); z-index: 25; }
#open-photo-search { min-height: 44px; align-self: center; white-space: nowrap; }
.shop-list #search-filter-toggle, .shop-list #batch-toggle { width: 100%; justify-content: flex-start; margin-top: 5px; }
@media(max-width: 620px) {
  #open-photo-search span { display: none; }
  #open-photo-search { padding: 6px 10px; }
  .home-search { min-height: 185px; background-position: center, 56% 60%; }
}

.search-toolbar .store-nav-row {
  display: flex;
  align-items: center;
  gap: 6px;
  order: -1;
  flex: none;
  margin: 0;
}
.search-toolbar .store-nav-row .language-choice {
  position: static;
  transform: none;
}
@media (max-width: 620px) {
  .search-toolbar { flex-wrap: wrap; gap: 0; }
  .search-toolbar .store-nav-row { width: 100%; justify-content: space-between; }
  .search-toolbar-inner { width: 100%; flex-basis: 100%; }
}
