/* /shop: katalog kategorija i brendova (hero je iz category.css) */

/* Kategorije: kartica sa slikom, nazivom i podkategorijama */
.gsm-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gsm-catalog__card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px;
  border: 1px solid #e9ebef;
  border-radius: 14px;
  background: var(--gsm-white);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.gsm-catalog__card:hover {
  border-color: var(--gsm-orange);
  box-shadow: 0 10px 28px rgba(255, 105, 0, 0.12);
}

.gsm-catalog__head {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding-bottom: 8px;
}

.gsm-catalog__img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #eceef2;
  box-shadow: 0 4px 12px rgba(9, 16, 23, 0.12);
  overflow: hidden;
}

.gsm-catalog__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gsm-catalog__img.is-product {
  background: #fff;
}

.gsm-catalog__img.is-product img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gsm-catalog__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--gsm-text);
  font-family: var(--gsm-font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.gsm-catalog__head:hover .gsm-catalog__name {
  color: var(--gsm-orange);
}

.gsm-catalog__count {
  color: #7a808a;
  font-family: var(--gsm-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.gsm-catalog__children {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.gsm-catalog__children li {
  margin: 0;
}

.gsm-catalog__children a {
  display: block;
  padding: 5px 10px;
  border-radius: 50px;
  background: var(--gsm-light);
  color: #3a3f47;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.gsm-catalog__children a:hover {
  background: #fff1e6;
  color: var(--gsm-orange-dark);
}

.gsm-catalog__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--gsm-orange);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.gsm-catalog__more img {
  transition: transform 0.2s;
}

.gsm-catalog__more:hover img {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .gsm-catalog {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .gsm-catalog__card {
    padding: 16px;
  }
}
