/* seedz1 category branch page */

.category-branch-page .cb {
  padding: 40px 0 80px;
  background: #fff;
}

.cb-hero-count {
  font-family: Gilroy, Eina03, Helvetica, Arial, sans-serif;
  font-weight: 700;
  margin-right: 6px;
}

.cb-breadcrumb {
  margin-bottom: 28px;
}

.cb-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  color: #6d7586;
  font-size: 14px;
}

.cb-breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

.cb-breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: #91AFC9;
}

.cb-breadcrumb__item a {
  color: #063363;
  text-decoration: none;
}

.cb-breadcrumb__item a:hover {
  text-decoration: underline;
}

.cb-breadcrumb__item [aria-current="page"] {
  color: #030305;
  font-weight: 600;
}

.cb-intro {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid #EBEDF0;
  margin-bottom: 36px;
  background: #F8FAFC;
}

.cb-intro__media {
  width: 160px;
  height: 160px;
  background: #fff;
  border: 1px solid #EBEDF0;
  overflow: hidden;
}

.cb-intro__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
}

.cb-intro__img--empty {
  background: linear-gradient(135deg, #EBEDF0 0%, #F5F6F8 50%, #E4E8EE 100%);
  padding: 0;
}

.cb-intro__title {
  margin: 0 0 8px;
  color: #030305;
}

.cb-intro__meta {
  margin: 0 0 10px;
  color: #6d7586;
}

.cb-intro__count {
  font-weight: 700;
  color: #063363;
  margin-right: 4px;
}

.cb-intro__desc {
  margin: 0;
  color: #3C404A;
  line-height: 1.6;
}

.cb-section {
  margin-bottom: 40px;
}

.cb-section__title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #EBEDF0;
  color: #030305;
}

.cb-subgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cb-subgrid__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid #EBEDF0;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cb-subgrid__link:hover {
  border-color: #91AFC9;
  box-shadow: 0 6px 18px rgba(6, 51, 99, 0.08);
}

.cb-subgrid__name {
  color: #063363;
  font-weight: 600;
  word-break: break-word;
}

.cb-subgrid__count {
  flex-shrink: 0;
  color: #6d7586;
  font-size: 13px;
}

.cb-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cb-products__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #EBEDF0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cb-products__card:hover {
  border-color: #91AFC9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 51, 99, 0.08);
}

.cb-products__thumb {
  aspect-ratio: 1 / 1;
  background: #F5F6F8;
  overflow: hidden;
}

.cb-products__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
}

.cb-products__img--empty {
  background: linear-gradient(135deg, #EBEDF0 0%, #F5F6F8 50%, #E4E8EE 100%);
  padding: 0;
}

.cb-products__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cb-products__mpn {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #030305;
  word-break: break-word;
}

.cb-products__mfg {
  margin: 0;
  color: #6d7586;
  font-size: 14px;
}

.cb-products__price {
  margin: auto 0 0;
  padding-top: 8px;
  font-family: Gilroy, Eina03, Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #063363;
}

.cb-products__price--rfq {
  font-size: 14px;
}

.cb-mfg {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cb-mfg__link {
  display: block;
  padding: 12px 14px;
  border: 1px solid #EBEDF0;
  color: #063363;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  word-break: break-word;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cb-mfg__link:hover {
  border-color: #063363;
  background: #F5F8FC;
}

@media (max-width: 1024px) {
  .cb-subgrid,
  .cb-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-mfg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .category-branch-page .cb {
    padding: 24px 0 56px;
  }

  .cb-intro {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .cb-subgrid,
  .cb-products,
  .cb-mfg {
    grid-template-columns: 1fr;
  }
}
