/* seedz1 product categories index (/categoryAll) */

.category-all-page .ca {
  padding: 4rem 0 8rem;
  background: #fff;
}

.ca-breadcrumb {
  margin-bottom: 2.4rem;
}

.ca-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0;
  color: #6d7586;
  font-size: 1.4rem;
}

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

.ca-breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin: 0 1rem;
  color: #91afc9;
}

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

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

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

.ca-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-bottom: 2.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #ebedf0;
}

.ca-toolbar__meta {
  margin: 0;
  color: #4a5568;
}

.ca-toolbar__count {
  font-weight: 700;
  color: #063363;
  margin-right: 0.4rem;
}

.ca-list {
  display: grid;
  gap: 2rem;
}

.ca-card {
  border: 1px solid #ebedf0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%);
  padding: 2.4rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ca-card:hover {
  border-color: #c5d4e4;
  box-shadow: 0 12px 32px rgba(6, 51, 99, 0.08);
}

.ca-card__head {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) auto;
  gap: 1.6rem 2rem;
  align-items: center;
}

.ca-card__media {
  width: 7.2rem;
  height: 7.2rem;
  border: 1px solid #ebedf0;
  background: #fff;
  overflow: hidden;
}

.ca-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.8rem;
  box-sizing: border-box;
}

.ca-card__img--empty {
  background:
    linear-gradient(135deg, rgba(6, 51, 99, 0.08) 0%, rgba(240, 218, 73, 0.2) 100%);
}

.ca-card__titles {
  min-width: 0;
}

.ca-card__title {
  margin: 0 0 0.6rem;
  font-size: 2.2rem;
  line-height: 1.25;
}

.ca-card__title a {
  color: #063363;
  text-decoration: none;
}

.ca-card__title a:hover {
  text-decoration: underline;
}

.ca-card__count {
  margin: 0;
  color: #6d7586;
}

.ca-card__count span {
  font-weight: 700;
  color: #030305;
  margin-right: 0.4rem;
}

.ca-card__cta {
  white-space: nowrap;
}

.ca-card__children {
  list-style: none;
  margin: 2rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid #ebedf0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem 1.2rem;
}

.ca-card__child-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid #ebedf0;
  color: #063363;
  text-decoration: none;
  min-height: 4.8rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ca-card__child-link:hover {
  border-color: #f0da49;
  background: #fffdf2;
  transform: translateY(-1px);
}

.ca-card__child-name {
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 600;
}

.ca-card__child-count {
  flex-shrink: 0;
  color: #91afc9;
  font-size: 1.3rem;
}

.ca-empty {
  margin: 4rem 0;
  color: #6d7586;
  text-align: center;
}

@media (max-width: 1023px) {
  .ca-card__head {
    grid-template-columns: 6.4rem minmax(0, 1fr);
  }

  .ca-card__cta {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .ca-card__children {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .category-all-page .ca {
    padding: 3rem 0 5rem;
  }

  .ca-card {
    padding: 1.6rem;
  }

  .ca-card__head {
    grid-template-columns: 5.6rem minmax(0, 1fr);
    gap: 1.2rem;
  }

  .ca-card__media {
    width: 5.6rem;
    height: 5.6rem;
  }

  .ca-card__title {
    font-size: 1.8rem;
  }

  .ca-card__children {
    grid-template-columns: 1fr;
  }
}

.is-rtl .ca-card__count span,
.is-rtl .ca-toolbar__count {
  margin-right: 0;
  margin-left: 0.4rem;
}
