/* ===========================
   Полиця категорій-"сторіз" над банерами головної
   =========================== */
.cat-shelf {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 4px 2px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.cat-shelf::-webkit-scrollbar { display: none; }

.cat-story {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 86px;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
}
.cat-story:hover { color: #fff; text-decoration: none; }

.cat-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, #ffe066, #ff5f6d, #c86dd7, #ffe066);
  transition: transform .2s ease;
}
.cat-story:hover .cat-ring { transform: scale(1.07); }

.cat-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
  overflow: hidden;
}
.cat-disc img { display: block; width: 82%; height: 82%; min-width: 0; object-fit: contain; }

.cat-story--hot .cat-ring { background: conic-gradient(#ff5f6d, #ffb020, #ff5f6d); }
.cat-disc--text {
  background: linear-gradient(140deg, #ff5f6d, #c2185b);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.cat-story-name {
  max-width: 86px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cat-story:focus-visible { outline: 3px solid #ffe066; outline-offset: 3px; border-radius: 12px; }

@media (max-width: 991px) {
  .cat-shelf { justify-content: flex-start; gap: 12px; margin-bottom: 12px; }
  .cat-story { width: 68px; }
  .cat-ring { width: 62px; height: 62px; }
  .cat-story-name { font-size: 11px; max-width: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-ring { transition: none; }
  .cat-story:hover .cat-ring { transform: none; }
}
