/* seedz1 manufacturer detail */

.manufacturer-detail-page .md {
  padding: 40px 0 80px;
  background: #fff;
}

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

.md-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;
}

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

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

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

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

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

.md-intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 24px;
  border: 1px solid #EBEDF0;
  background: #F8FAFC;
  margin-bottom: 40px;
}

.md-intro__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 16px;
  background: #fff;
  border: 1px solid #EBEDF0;
}

.md-intro__logo-img {
  display: block;
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.md-intro__logo-placeholder {
  color: #91AFC9;
  font-size: 14px;
  font-weight: 600;
}

.md-intro__title {
  margin: 0 0 12px;
  color: #030305;
}

.md-intro__detail {
  margin: 0 0 20px;
  color: #3C404A;
  line-height: 1.7;
}

.md-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.md-cats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.md-cat {
  border: 1px solid #EBEDF0;
  background: #fff;
}

.md-cat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  background: #F8FAFC;
  border-bottom: 1px solid #EBEDF0;
}

.md-cat__head:hover .md-cat__head-title {
  text-decoration: underline;
}

.md-cat__head-title {
  color: #063363;
  font-weight: 700;
  font-size: 16px;
}

.md-cat__head-count {
  color: #6d7586;
  font-size: 13px;
  flex-shrink: 0;
}

.md-cat__children {
  list-style: none;
  margin: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.md-cat__child-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #EBEDF0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.md-cat__child-link:hover {
  border-color: #91AFC9;
  background: #F5F8FC;
}

.md-cat__child-name {
  color: #063363;
  font-weight: 600;
  word-break: break-word;
}

.md-cat__child-count {
  color: #6d7586;
  font-size: 13px;
  flex-shrink: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

@media (max-width: 768px) {
  .md-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .manufacturer-detail-page .md {
    padding: 24px 0 56px;
  }

  .md-cat__children,
  .md-products {
    grid-template-columns: 1fr;
  }
}
