.catalog-hero {
  position: relative;
  min-height: clamp(360px, 31vw, 520px);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.catalog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .26) 48%, rgba(0, 0, 0, .06));
}

.catalog-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(360px, 31vw, 520px);
}

.catalog-hero-content {
  width: min(620px, 55%);
  color: #fff;
}

.catalog-hero-kicker {
  display: block;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, .86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.catalog-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}

.catalog-hero p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  line-height: 1.7;
}

.catalog-hero--brand::after {
  background: linear-gradient(110deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .28));
}

.catalog-hero--brand .catalog-hero-inner {
  justify-content: space-between;
  gap: clamp(28px, 6vw, 88px);
}

.catalog-hero--brand .catalog-hero-content { width: min(620px, 58%); }
.catalog-hero--brand .catalog-hero-kicker { color: #756c62; }
.catalog-hero--brand h1 { color: #242321; }
.catalog-hero--brand p { color: #5f5b56; }

.catalog-hero-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 390px;
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(39, 35, 30, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(45, 39, 34, .12);
}

.catalog-hero-brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

.catalog-reference-breadcrumb {
  border-bottom: 1px solid #e8e5df;
}

.catalog-reference-breadcrumb nav {
  min-height: 48px;
  padding: 8px 0;
}

.catalog-reference-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #8a8782;
  font-size: 12px;
}

.catalog-reference-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #c3beb7;
}

.catalog-reference-breadcrumb a {
  color: #252525;
  text-decoration: none;
}

/* Keep catalogue view controls, sorting and result totals on a shared grid. */
#products_list .shop-tab-menu {
  display: block;
  padding: 12px;
}

#products_list .shop-tab-menu > .row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  margin: 0;
}

#products_list .shop-tab-menu > .row::before,
#products_list .shop-tab-menu > .row::after { display: none; }

#products_list .shop-tab-menu > .row > div:first-child {
  width: auto;
  padding: 0;
  float: none;
}

#products_list .shop-tab-menu > .row > .text-right { display: contents; }
#products_list .shop-tab ul { display: flex; gap: 8px; margin: 0; padding: 0; }
#products_list .shop-tab ul li { margin: 0; }
#products_list .shop-tab ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
}

#products_list .toolbar-form { float: none; width: 100%; min-width: 0; margin: 0; }
#products_list #sort_filter_form { margin: 0; }
#products_list .toolbar-select {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

#products_list .toolbar-select label { margin: 0; font-size: 13px; font-weight: 400; white-space: nowrap; }
#products_list .toolbar-select .order-by {
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 8px;
  font-size: 13px;
}

#products_list .show-result { float: none; height: auto; margin: 0; line-height: 1.5; }
#products_list .show-result p { margin: 0; font-size: 13px; }

@media (max-width: 767px) {
  #products_list .shop-tab-menu > .row { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  #products_list .show-result { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid #ebebeb; text-align: left; }
  #products_list .toolbar-select .order-by { flex: 1 1 auto; width: 100%; }
  #products_list .shop-tab-menu { margin-bottom: 16px; }

  /* Cards render directly in these rows, without Bootstrap column gutters. */
  #products_list .shop-product-area .tab-pane > .row,
  #products_list .all-prodict-item-list > .row {
    margin-left: 0;
    margin-right: 0;
  }

  #products_list .all-prodict-item-list { padding-top: 0; }
  #products_list #list-view .tnb-product-card { max-width: none; margin-bottom: 16px; }
  #products_list #list-view .tnb-product-card__media { padding: 14px 16px; }
  #products_list #list-view .tnb-product-card__body { padding: 16px; }

  #products_list #grid-view .product-container {
    padding: 0 0 16px;
    gap: 10px;
  }

  #products_list #grid-view .tnb-product-card__media { padding: 6px; }
  #products_list #grid-view .tnb-product-card__toolbar { margin-bottom: 0; }
  #products_list #grid-view .tnb-product-card__body { padding: 8px; }
  #products_list #grid-view .tnb-product-card__features { gap: 4px; margin-bottom: 8px; }
  #products_list #grid-view .tnb-product-card__purchase { gap: 8px; padding-top: 6px; }
}

@media (max-width: 359px) {
  #products_list .toolbar-select { flex-wrap: wrap; justify-content: flex-start; gap: 4px; }
}

@media (max-width: 767px) {
  .catalog-hero,
  .catalog-hero-inner {
    min-height: 440px;
  }

  .catalog-hero-content {
    width: 90%;
  }

  .catalog-hero--brand .catalog-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .catalog-hero--brand .catalog-hero-content { width: 100%; }
  .catalog-hero-brand-logo { flex: 0 1 auto; width: min(100%, 340px); }
}
