.home-cats{
  margin: 8px 0 22px;
}

.home-cats__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.home-cats__title{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:0;
}

.home-cats__all{
  text-decoration:none;
  color:#111;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  opacity:.75;
}

.home-cats__all:hover{
  opacity:1;
}

/* MOBILE: roller */
.home-cats__grid{
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
  padding:2px 2px 8px;
}

.home-cats__grid::-webkit-scrollbar{
  height:6px;
}

.home-cats__grid::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.14);
  border-radius:999px;
}

.home-cats__grid::-webkit-scrollbar-track{
  background:rgba(0,0,0,.05);
  border-radius:999px;
}

.home-cat-card{
  flex:0 0 43%;
  min-width:140px;
  max-width:165px;
  scroll-snap-align:start;
  display:block;
  text-decoration:none;
  color:#111;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-cat-card__media{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  background:rgba(0,0,0,.04);
}

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

.home-cat-card__body{
  display:block;
  padding:9px 10px 10px;
}

.home-cat-card__title{
  display:block;
  font-size:13px;
  line-height:1.15;
  font-weight:900;
  margin-bottom:3px;
}

.home-cat-card__meta{
  display:block;
  font-size:11px;
  line-height:1.25;
  color:rgba(0,0,0,.62);
  font-weight:600;
}

@media (hover:hover){
  .home-cat-card:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(0,0,0,.10);
    border-color:rgba(0,0,0,.12);
  }
}

/* very small phones */
@media (max-width:380px){
  .home-cat-card{
    flex-basis:46%;
    min-width:132px;
    max-width:150px;
  }

  .home-cat-card__body{
    padding:8px 9px 9px;
  }

  .home-cat-card__title{
    font-size:12px;
  }

  .home-cat-card__meta{
    font-size:10px;
  }
}

/* tablet: grid again */
@media (min-width:768px){
  .home-cats__grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:12px;
    overflow:visible;
    padding:0;
  }

  .home-cat-card{
    flex:unset;
    min-width:0;
    max-width:none;
  }

  .home-cat-card__title{
    font-size:15px;
  }

  .home-cat-card__body{
    padding:12px 12px 13px;
  }
}

/* desktop */
@media (min-width:1200px){
  .home-cats__grid{
    grid-template-columns:repeat(6, minmax(0, 1fr));
  }

  .home-cat-card__media{
    aspect-ratio:1/1;
  }

  .home-cat-card__body{
    padding:10px 10px 12px;
    text-align:center;
  }

  .home-cat-card__title{
    font-size:13px;
  }

  .home-cat-card__meta{
    font-size:11px;
  }
}