/* Module: showsubcategories (desktop only) */

/* На всяк випадок: на мобільних приховано CSS-ом.
   Але головне: на мобільних PHP взагалі не рендерить блок. */
.ssc {
  display: none;
  margin: 0 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 3px;
  padding: 12px;
}

.ssc__title {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 14px;
}


@media (min-width: 992px) {
  .ssc {
    display: block;
  }

  .ssc__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* shared styles */
.ssc__item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ssc__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f4f4;
}

.ssc__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ssc__img-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #e9e9e9;
}

.ssc__name {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}