/* Brazilcomp theme component: catalog */

/* ================================================================
   Catalog redesign — light B2B storefront
   Scoped to the custom shop template so the next screens can be
   refined independently without visual side effects.
   ================================================================ */

body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag,
body.post-type-archive-product {
  color: #273543;
  background: #fff;
}

body.woocommerce-shop .site-header,
body.tax-product_cat .site-header,
body.tax-product_tag .site-header,
body.post-type-archive-product .site-header {
  color: var(--navy-950);
  background: rgba(255, 255, 255, .98);
  border-bottom-color: #e7eaed;
}

body.woocommerce-shop .site-header.is-scrolled,
body.tax-product_cat .site-header.is-scrolled,
body.tax-product_tag .site-header.is-scrolled,
body.post-type-archive-product .site-header.is-scrolled {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 30px rgba(7, 21, 39, .08);
}

body.woocommerce-shop .header-left .custom-logo,
body.tax-product_cat .header-left .custom-logo,
body.tax-product_tag .header-left .custom-logo,
body.post-type-archive-product .header-left .custom-logo {
  filter: none;
}

body.woocommerce-shop .header-logo-text,
body.woocommerce-shop .primary-menu > li > a,
body.woocommerce-shop .icon-button,
body.woocommerce-shop .menu-toggle,
body.tax-product_cat .header-logo-text,
body.tax-product_cat .primary-menu > li > a,
body.tax-product_cat .icon-button,
body.tax-product_cat .menu-toggle,
body.tax-product_tag .header-logo-text,
body.tax-product_tag .primary-menu > li > a,
body.tax-product_tag .icon-button,
body.tax-product_tag .menu-toggle,
body.post-type-archive-product .header-logo-text,
body.post-type-archive-product .primary-menu > li > a,
body.post-type-archive-product .icon-button,
body.post-type-archive-product .menu-toggle {
  color: #24384b;
}

.bc-shop-page {
  color: #273543;
  background: #fff;
}

.bc-shop-hero {
  position: relative;
  min-height: 250px;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(5, 13, 22, .94) 0%, rgba(5, 13, 22, .82) 42%, rgba(5, 13, 22, .25) 78%, rgba(5, 13, 22, .12) 100%),
    var(--bc-shop-hero);
  background-position: center;
  background-size: cover;
}

.bc-shop-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
  padding-block: 28px;
}

.bc-shop-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .67);
  font-size: .72rem;
}

.bc-shop-breadcrumb a {
  color: rgba(255, 255, 255, .86);
}

.bc-shop-breadcrumb a:hover {
  color: #fff;
}

.bc-shop-hero__eyebrow {
  margin: 0 0 8px;
  color: #f6a619;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.bc-shop-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.bc-shop-hero__description {
  max-width: 700px;
  margin-top: 15px;
  color: rgba(255, 255, 255, .76);
  font-size: .92rem;
}

.bc-shop-hero__description p {
  margin: 0;
}

.bc-shop-page .bc-shop {
  width: 100%;
  padding: 56px 0 96px;
  margin: 0;
  background: #fff;
}

.bc-catalog-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 38px;
  background: #fff;
  border: 1px solid #cfd6dc;
  box-shadow: 0 8px 24px rgba(16, 35, 51, .045);
}

.bc-catalog-search:focus-within {
  border-color: #58738c;
  box-shadow: 0 0 0 3px rgba(40, 69, 95, .08);
}

.bc-catalog-search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 15px;
  height: 15px;
  border: 1.8px solid #607080;
  border-radius: 50%;
  transform: translateY(-55%);
}

.bc-catalog-search__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 1.8px;
  background: #607080;
  border-radius: 2px;
  transform: rotate(45deg);
}

.bc-catalog-search input {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 22px 0 50px;
  color: #162738;
  background: transparent;
  border: 0;
  outline: 0;
}

.bc-catalog-search input::placeholder {
  color: #7a8792;
}

.bc-catalog-search button {
  min-width: 145px;
  padding: 0 24px;
  color: #fff;
  background: #294761;
  border: 0;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

.bc-catalog-search button:hover {
  background: #f29a0a;
}

.bc-catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.bc-catalog-sidebar {
  position: sticky;
  top: 96px;
}

.bc-catalog-filter {
  border-top: 3px solid #294761;
}

.bc-catalog-filter__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid #dce2e7;
}

.bc-catalog-filter__heading span {
  color: #162738;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.bc-catalog-filter__heading small {
  color: #8b969f;
  font-size: .65rem;
  text-transform: uppercase;
}

.bc-catalog-filter ul {
  padding: 12px 0 18px;
  margin: 0;
  list-style: none;
}

.bc-catalog-filter li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 7px 10px;
  color: #50606f;
  border-left: 2px solid transparent;
  font-size: .8rem;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.bc-catalog-filter li a small {
  color: #9ca5ad;
  font-size: .65rem;
}

.bc-catalog-filter li a:hover,
.bc-catalog-filter li.is-active a {
  color: #15283a;
  background: #f5f7f8;
  border-left-color: #f29a0a;
}

.bc-catalog-filter li.is-active a {
  font-weight: 800;
}

.bc-catalog-help {
  position: relative;
  padding: 25px 22px;
  margin-top: 28px;
  color: #fff;
  background: #203b53;
  overflow: hidden;
}

.bc-catalog-help::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}

.bc-catalog-help > span {
  color: #f6a619;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bc-catalog-help h2 {
  margin: 8px 0 11px;
  color: #fff;
  font-size: 1.23rem;
  line-height: 1.2;
}

.bc-catalog-help p {
  color: rgba(255, 255, 255, .68);
  font-size: .74rem;
  line-height: 1.6;
}

.bc-catalog-help a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.bc-catalog-help a span {
  color: #f6a619;
}

.bc-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 52px;
  margin-bottom: 20px;
}

.bc-catalog-toolbar .woocommerce-result-count,
.bc-catalog-toolbar .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
}

.bc-catalog-toolbar .woocommerce-result-count {
  color: #697784;
  font-size: .76rem;
}

.bc-catalog-toolbar select {
  min-width: 225px;
  min-height: 42px;
  padding: 0 38px 0 13px;
  color: #344554;
  background: #fff;
  border: 1px solid #d4dbe0;
  border-radius: 2px;
  font-size: .75rem;
}

.bc-shop-page .bc-shop ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  padding: 0;
  margin: 0 !important;
}

.bc-shop-page .bc-shop ul.products::before,
.bc-shop-page .bc-shop ul.products::after {
  display: none !important;
}

.bc-shop-page .bc-shop ul.products li.bc-product-card {
  display: flex;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  padding: 0;
  margin: 0 !important;
  background: #fff;
  border: 1px solid #dde3e7;
  border-radius: 3px;
  box-shadow: none;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.bc-shop-page .bc-shop ul.products li.bc-product-card:hover {
  border-color: #aebbc5;
  box-shadow: 0 15px 36px rgba(24, 45, 62, .1);
  transform: translateY(-3px);
}

.bc-shop-page .bc-product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .83;
  margin: 0;
  background:
    linear-gradient(rgba(9, 57, 82, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 57, 82, .035) 1px, transparent 1px),
    #eaf1f4;
  background-size: 18px 18px, 18px 18px, auto;
  border-bottom: 1px solid #d7e2e7;
  border-radius: 0;
  overflow: hidden;
}

.bc-shop-page .bc-product-card__media img {
  width: 100% !important;
  height: 100% !important;
  padding: 26px;
  margin: 0 !important;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.08) saturate(.96);
  transition: transform 420ms ease;
}

.bc-shop-page .bc-product-card__media img.bc-product-card__source-image {
  padding: 22px;
}

.bc-shop-page .bc-product-card:hover .bc-product-card__media img {
  transform: scale(1.035);
}

.bc-shop-page .bc-product-card__media .onsale {
  top: 12px !important;
  right: auto !important;
  left: 12px !important;
  min-width: 0;
  min-height: 0;
  padding: 6px 9px;
  color: #fff;
  background: #ef9200;
  border-radius: 2px;
  font-size: .57rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.bc-shop-page .bc-product-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.bc-shop-page .bc-product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 17px;
  margin-bottom: 10px;
}

.bc-shop-page .bc-product-card__meta > span {
  color: #607487;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.bc-shop-page .bc-product-card__meta small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #72808b;
  font-size: .58rem;
  white-space: nowrap;
}

.bc-shop-page .bc-product-card__meta small::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #98a2aa;
  border-radius: 50%;
}

.bc-shop-page .bc-product-card__meta small.is-available::before {
  background: #23a36d;
}

.bc-shop-page .bc-product-card .woocommerce-loop-product__title {
  min-height: 2.75em !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
  color: #162738;
  font-size: .96rem !important;
  line-height: 1.38;
  letter-spacing: -.015em;
}

.bc-shop-page .bc-product-card .woocommerce-loop-product__title a {
  color: #162738;
}

.bc-shop-page .bc-product-card .woocommerce-loop-product__title a:hover {
  color: #d98200;
}

.bc-shop-page .bc-product-card__sku {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 14px;
  color: #273d50;
  background: #fff8ec;
  border: 1px solid #f2dfbd;
  border-radius: 2px;
}

.bc-shop-page .bc-product-card__sku span {
  color: #93713d;
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bc-shop-page .bc-product-card__sku strong {
  max-width: 100%;
  overflow: hidden;
  font: 800 .7rem/1.2 "DM Sans", monospace;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-shop-page .bc-product-card__rating {
  min-height: 15px;
}

.bc-shop-page .bc-product-card__rating .star-rating {
  margin: 0;
  color: #e99a18;
  font-size: .68rem;
}

.bc-shop-page .bc-product-card__commercial {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 15px;
  margin-top: auto;
  border-top: 1px solid #e5e9ec;
}

.bc-shop-page .bc-product-card__price .price {
  display: block;
  min-height: 0 !important;
  margin: 0 !important;
  color: #172c3f !important;
  font: 800 1.08rem/1.25 "Manrope", sans-serif !important;
}

.bc-shop-page .bc-product-card__price .price del {
  margin-right: 5px;
  color: #89939b;
  font-size: .7em;
  font-weight: 500;
}

.bc-shop-page .bc-product-card__price .price ins {
  text-decoration: none;
}

.bc-shop-page .bc-product-card__commercial .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 0;
  min-height: 42px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  color: #fff !important;
  background: #294761 !important;
  border: 1px solid #294761 !important;
  border-radius: 2px !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.bc-shop-page .bc-product-card__commercial .button::before {
  display: none;
}

.bc-shop-page .bc-product-card__commercial .button:hover {
  color: #fff !important;
  background: #ef9200 !important;
  border-color: #ef9200 !important;
  transform: none;
}

.bc-shop-page .bc-product-card__commercial .added_to_cart {
  color: #294761;
  font-size: .68rem;
  font-weight: 800;
  text-align: center;
}

.bc-shop-page .woocommerce-pagination {
  margin-top: 42px;
}

.bc-shop-page .woocommerce-pagination ul.page-numbers {
  display: flex !important;
  justify-content: center;
  gap: 7px;
  padding: 0 !important;
  border: 0 !important;
}

.bc-shop-page .woocommerce-pagination ul.page-numbers li {
  border: 0 !important;
}

.bc-shop-page .woocommerce-pagination .page-numbers {
  display: grid !important;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px !important;
  color: #425566 !important;
  background: #fff !important;
  border: 1px solid #d5dce1 !important;
  border-radius: 2px;
}

.bc-shop-page .woocommerce-pagination .current,
.bc-shop-page .woocommerce-pagination a.page-numbers:hover {
  color: #fff !important;
  background: #294761 !important;
  border-color: #294761 !important;
}

.bc-catalog-empty {
  padding: 60px 30px;
  color: #657582;
  background: #f7f8f9;
  border: 1px solid #e1e5e8;
  text-align: center;
}

@media (max-width: 1080px) {
  .bc-catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  .bc-shop-page .bc-shop ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  body.woocommerce-shop .primary-nav,
  body.tax-product_cat .primary-nav,
  body.tax-product_tag .primary-nav,
  body.post-type-archive-product .primary-nav {
    background: #fff;
  }

  .bc-shop-hero,
  .bc-shop-hero__content {
    min-height: 220px;
  }

  .bc-shop-hero {
    background-image:
      linear-gradient(90deg, rgba(5, 13, 22, .92), rgba(5, 13, 22, .61)),
      var(--bc-shop-hero);
  }

  .bc-shop-page .bc-shop {
    padding: 38px 0 72px;
  }

  .bc-catalog-layout {
    grid-template-columns: 1fr;
  }

  .bc-catalog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .bc-catalog-help {
    margin-top: 0;
  }
}

@media (max-width: 580px) {
  .bc-shop-hero h1 {
    font-size: 2.15rem;
  }

  .bc-shop-breadcrumb {
    margin-bottom: 15px;
  }

  .bc-catalog-search {
    grid-template-columns: 1fr;
  }

  .bc-catalog-search input {
    min-height: 54px;
  }

  .bc-catalog-search button {
    min-height: 48px;
  }

  .bc-catalog-sidebar {
    grid-template-columns: 1fr;
  }

  .bc-catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .bc-catalog-toolbar select {
    width: 100%;
  }

  .bc-shop-page .bc-shop ul.products {
    grid-template-columns: 1fr !important;
  }

  .bc-shop-page .bc-product-card__media {
    aspect-ratio: 1.3 / 1;
  }
}
