/* Единый стиль для всех категорий */
.category-link {
  color: #2196f3;
  font-weight: 700;
  font-size: 1.13rem;
  text-decoration: none;
  padding: 11px 0;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-radius 0.18s, transform 0.18s;
  background: none;
  border: 2px solid #2196f3;
  min-width: 130px;
  width: 100%;
  max-width: 100%;
  text-align: center;
  outline: none;
  box-shadow: none;
  display: block;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* Скидки — только цвет текста и рамки */
.category-link.category-discount {
  color: #e53935 !important;
  border: 2px solid #e53935;
}

/* Ховер для всех категорий */
.category-link:hover {
  background: #e3f4fd;
  color: #2196f3;
  box-shadow: 0 2px 12px #3abeff33;
  border-radius: 10px;
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}
.category-link.category-discount:hover {
  background: #ffeaea;
  color: #e53935 !important;
  box-shadow: 0 2px 12px #e5393533;
}

/* Активная категория */
.category-link.active {
  background: linear-gradient(90deg, #2196f3 0%, #3ABEFF 100%);
  color: #fff !important;
  box-shadow: 0 4px 18px #3abeff44;
  font-weight: 800;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  outline: none;
  z-index: 2;
}
.category-link.category-discount.active {
  background: linear-gradient(90deg, #e53935 0%, #ff8a65 100%);
  color: #fff !important;
  box-shadow: 0 4px 18px #e5393555;
  border: none;
}

.category-link:focus {
  box-shadow: 0 0 0 2px #e3f4fd, 0 2px 8px #3abeff33;
  outline: none;
}

.category-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem 1.2rem;
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.2rem 0.7rem 1.2rem;
  box-shadow: 0 2px 8px 0 rgba(34, 42, 69, 0.04);
  margin: 0;
}

body {
  background: #f7f9fc;
}

@media (max-width: 900px) {
  .category-bar-inner {
    grid-template-columns: 1fr 1fr;
    gap: 8px 8px;
    padding: 10px 4px 8px 4px;
    border-radius: 12px;
  }
  .category-link {
    min-width: 90px;
    font-size: 1.01rem;
    padding: 8px 0;
    border-radius: 7px;
  }
}

@media (max-width: 800px) {
  .category-bar-inner {
    padding: 7px 0 7px 0;
    gap: 6px;
    border-radius: 8px;
  }
  .category-link {
    min-width: 80px;
    font-size: 0.97rem;
    padding: 7px 0;
    border-radius: 6px;
  }
}

@media (max-width: 600px) {
  .category-bar-inner {
    grid-template-columns: 1fr 1fr;
    gap: 6px 6px;
    padding: 7px 0 7px 0;
    border-radius: 8px;
  }
  .category-link {
    min-width: 70px;
    font-size: 0.95rem;
    padding: 6px 0;
    border-radius: 5px;
  }
}