/**
 * Brand search landing pages — hero, inventory header, catalogue layout.
 */

/* ---- Hero ---- */
.brand-search-hero.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d0d0d;
}

.brand-search-hero .page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 20, 20, 0.82) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.brand-search-hero .page-hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 60px;
  max-width: 700px;
}

.brand-search-hero .page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 128, 128, 0.15);
  border: 1px solid #00a3a3;
  color: #00a3a3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.brand-search-hero .page-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 60px;
  font-weight: 900;
  color: #f0f2f4;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.brand-search-hero .page-hero-title em {
  font-style: normal;
  color: #00a3a3;
  display: block;
}

.brand-search-hero .page-hero-sub {
  font-size: 15px;
  color: #c8d0d8;
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

.brand-search-hero .page-hero-logo {
  position: absolute;
  right: 60px;
  bottom: 36px;
  z-index: 2;
  width: 340px;
  max-width: 44%;
}

.brand-search-hero .page-hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Brand search page content (header + grid — brand-teal-parts.html mockup) ---- */
.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-page-content.page-content {
  /* max-width: 1380px; */
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .part-results-page > .container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.brand-search-inventory {
  margin: 0;
  padding: 0;
}

.brand-search-inventory .section-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #008080;
  margin-bottom: 6px;
  display: block;
}

.brand-search-page-content .section-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 38px;
  font-weight: 900;
  color: #f0f2f4;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.5px;
  margin: 0 0 24px;
}

.brand-search-page-content .section-title em {
  display: inline;
  font-style: normal;
  color: #008080;
}

/* ---- CTA panel (bottom) — brand-teal-parts.html mockup ---- */
.brand-search-cta.page-content {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px 40px;
  background: transparent;
}

.brand-search-page-content .cta-panel,
.brand-search-cta .cta-panel {
  background: #141a22;
  border: 1px solid #333;
  border-left: 3px solid #008080;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.brand-search-page-content--cta .cta-panel {
  margin-top: 8px;
}

.brand-search-page-content .cta-panel-text h3,
.brand-search-cta .cta-panel-text h3 {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 24px;
  font-weight: 900;
  color: #f0f2f4;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.brand-search-page-content .cta-panel-text p,
.brand-search-cta .cta-panel-text p {
  font-size: 13px;
  color: #c8d0d8;
  margin: 0;
}

.brand-search-page-content .ready-order-actions,
.brand-search-cta .ready-order-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.brand-search-page-content .ready-order-actions .hero-btn-primary,
.brand-search-page-content .ready-order-actions .hero-btn-secondary,
.brand-search-cta .ready-order-actions .hero-btn-primary,
.brand-search-cta .ready-order-actions .hero-btn-secondary {
  font-size: 16px;
}

.brand-search-page-content .hero-btn-primary,
.brand-search-cta .hero-btn-primary {
  background: #008080;
  color: #f0f2f4;
  border: none;
  padding: 16px 36px;
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.brand-search-page-content .hero-btn-primary:hover,
.brand-search-cta .hero-btn-primary:hover {
  background: #006666;
  transform: translateY(-2px);
  color: #f0f2f4;
}

.brand-search-page-content .hero-btn-secondary,
.brand-search-cta .hero-btn-secondary {
  background: transparent;
  color: #dde3e9;
  border: 1.5px solid #444;
  padding: 16px 36px;
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  white-space: nowrap;
}

.brand-search-page-content .hero-btn-secondary:hover,
.brand-search-cta .hero-btn-secondary:hover {
  border-color: #b8c0c8;
  color: #f0f2f4;
}

.brand-search-page-content .call-us,
.brand-search-cta .call-us {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1.5px solid #3d444b;
  border-radius: 4px;
  background: rgba(0, 163, 163, 0.06);
  text-decoration: none;
  color: inherit;
}

.brand-search-page-content .call-us svg,
.brand-search-cta .call-us svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #00a3a3;
}

.brand-search-page-content .call-us-label,
.brand-search-cta .call-us-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a939c;
}

.brand-search-page-content .call-us-num,
.brand-search-cta .call-us-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #00a3a3;
}

@media (max-width: 600px) {
  .brand-search-page-content .cta-panel,
  .brand-search-cta .cta-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
  }

  .brand-search-page-content .ready-order-actions,
  .brand-search-cta .ready-order-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .brand-search-page-content .ready-order-actions .hero-btn-primary,
  .brand-search-page-content .ready-order-actions .hero-btn-secondary,
  .brand-search-cta .ready-order-actions .hero-btn-primary,
  .brand-search-cta .ready-order-actions .hero-btn-secondary,
  .brand-search-page-content .ready-order-actions .call-us,
  .brand-search-cta .ready-order-actions .call-us {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    justify-content: center;
    text-align: center;
    white-space: normal;
    box-sizing: border-box;
  }
}

/* ---- Brand search catalogue layout ---- */
.path-catalogue.catalogue-brand-search .main-content__container,
.path-catalogue.catalogue-brand-search .layout-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}

/* .path-catalogue.catalogue-brand-search .brand-search-by-vehicle-wrap,
.path-catalogue.catalogue-brand-search .block-brand-search-hero,
.path-catalogue.catalogue-brand-search .brand-search-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
} */

.path-catalogue.catalogue-brand-search .block-brand-search-hero .block__content,
.path-catalogue.catalogue-brand-search .block-brand-search-hero > .block__content {
  padding: 0;
  margin: 0;
}

.path-catalogue.catalogue-brand-search .brand-search-by-vehicle-wrap {
  display: none !important;
}

.path-catalogue.catalogue-brand-search .catalogue-top-find-vehicle {
  display: block !important;
}

/* Sticky Find My Parts bar on scroll */
.catalogue-brand-search .top-find-vehicle.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); */
  border-bottom: 3px solid #008080 !important;
}

.part-type-search-browsing-wrap,
.brand-search-browsing-wrap {
  width: 100%;
}

.part-type-browsing-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: #30353b;
  border-bottom: 1px solid #2e2e2e;
}

.part-type-browsing-bar__label {
  font-size: 10px;
  font-weight: 800;
  color: #aeb6bf;
  text-transform: uppercase;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.part-type-browsing-bar__value {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 3px 10px;
  background: #303030;
  border: 1px solid #363636;
  font-size: 12px;
  font-weight: 600;
  color: #c8d0d8;
  line-height: 1.3;
}

.part-type-browsing-bar__link {
  color: #c8d0d8;
  text-decoration: none;
  font-weight: 600;
}

.part-type-browsing-bar__link:hover {
  color: #00a3a3;
}

.part-type-browsing-bar__sep {
  color: #c8d0d8;
  margin: 0 1px;
}

.part-type-browsing-bar__crumb,
.part-type-browsing-bar__current {
  color: #c8d0d8;
  font-weight: 600;
}

.path-catalogue.catalogue-ymm-results .brand-search-hero,
.path-catalogue.catalogue-ymm-results .part-type-search-hero,
.path-catalogue.catalogue-ymm-results .block-brand-search-hero,
.path-catalogue.catalogue-ymm-results .block-part-type-search-hero,
.path-catalogue.catalogue-ymm-results .brand-search-by-vehicle-wrap,
.path-catalogue.catalogue-ymm-results .part-type-search-by-vehicle-wrap,
.path-catalogue.catalogue-ymm-results .part-type-search-browsing-wrap,
.path-catalogue.catalogue-ymm-results .brand-search-browsing-wrap {
  display: none !important;
}

.path-catalogue.catalogue-ymm-results .catalogue-top-find-vehicle {
  display: block !important;
}

.path-catalogue.catalogue-brand-search #searchcatalog.catalog-mockup {
  padding-top: 0 !important;
}

.path-catalogue.catalogue-brand-search #searchcatalog.catalog-mockup > .container:first-of-type .page-title-container,
.path-catalogue.catalogue-brand-search #searchcatalog .webcategory_name,
.path-catalogue.catalogue-brand-search #searchcatalog .webcategory_btn {
  display: none !important;
}

/* Brand browse: skip category picker — show product grid directly (matches local). */
.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog > div[id$="_blk"] {
  display: none !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .cat-box-wrappper {
  display: none !important;
}

/* Hide left sidebar on pure brand browse — full-width product grid like mockup */
.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .catalog-sidebar {
  display: none !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .part-results-wrapper {
  display: block;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .catalog-results-main {
  width: 100%;
  max-width: none;
}

.path-catalogue.catalogue-brand-search #searchcatalog .catalogue-facet-brand,
.path-catalogue.catalogue-brand-search #searchcatalog #brand_blk {
  display: none !important;
}

/* Keep CTA below inventory / products / empty state */
.path-catalogue.catalogue-brand-search .brand-search-cta,
.path-catalogue.catalogue-brand-search .brand-search-page-content--cta {
  order: 99;
}

/* ---- Brand search product grid (brand-teal-parts.html mockup) ---- */
.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .catalog-results-header,
.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .results-data-list.result-grid-view,
.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .radio-group {
  display: none !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .catalog-results-main {
  max-width: none;
  margin: 0;
  /* padding: 0 0 40px; */
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid {
  display: block;
  margin-bottom: 8px;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 40px;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-card {
  background: #3d444b !important;
  border: 1px solid #333 !important;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
  min-width: 0;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-card:hover {
  border-color: #008080 !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-img {
  width: 100% !important;
  max-width: none !important;
  height: 160px !important;
  min-height: 160px !important;
  margin: 0 !important;
  background: #23282d !important;
  border-bottom: 1px solid #2e2e2e !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}

.path-catalogue.catalogue-brand-search .brand-search-parts-grid .part-condition-badge {
  display: none !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-img__photo {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #23282d;
  padding: 10px;
  box-sizing: border-box;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-img__placeholder {
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-align: center;
  padding: 0 12px;
  line-height: 1.3;
}

/* Beat global product-detail .part-info / .part-brand-tag rules in main.css */
.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 14px !important;
  margin: 0 !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-brand-tag {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  color: #008080 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #dde3e9 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  text-transform: none !important;
  font-family: 'Barlow', sans-serif !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-name:hover {
  color: #f0f2f4 !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-num {
  font-size: 11px !important;
  color: #aeb6bf !important;
  font-family: monospace !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-price {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #008080 !important;
  margin-top: auto !important;
  padding-top: 10px !important;
  background: transparent !important;
  border: none !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-atc {
  background: #008080 !important;
  color: #f0f2f4 !important;
  border: none !important;
  padding: 11px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
  border-top: 1px solid #2e2e2e !important;
  border-radius: 0 !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .part-atc:hover {
  background: #006666 !important;
}

/* Brand pagination — mockup: 5 page buttons centered (‹ 1 2 3 4 5 ›) */
.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .brand-search-pagination {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  padding-bottom: 40px;
  width: 100%;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .brand-search-pagination .page-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1.5px solid #333 !important;
  border-radius: 2px;
  background: #3d444b !important;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #b8c0c8 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .brand-search-pagination .page-btn:hover:not(:disabled):not(.active) {
  border-color: #008080 !important;
  color: #008080 !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .brand-search-pagination .page-btn.active {
  background: #008080 !important;
  color: #f0f2f4 !important;
  border-color: #008080 !important;
}

.path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) #searchcatalog .brand-search-pagination .page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .parts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .path-catalogue.catalogue-brand-search:not(.catalogue-brand-search--ymm) .brand-search-parts-grid .parts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .brand-search-hero .page-hero-title {
    font-size: 40px;
  }

  .brand-search-hero .page-hero-content {
    padding: 40px 24px;
  }

  .brand-search-hero .page-hero-logo {
    position: static;
    width: 180px;
    max-width: 60%;
    margin: 0 24px 24px;
  }
}
