/* Navigace kategorií */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 32px auto;
  padding: 0 12px;
}

.category-nav a {
  padding: 12px 20px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #8B0000;
  text-decoration: none;
  font-weight: 600;
  box-shadow: none;
  transition: all 0.2s ease;
}

.category-nav a:hover,
.category-nav a:focus {
  background: #e7c3c3;
  color: #000;
}

.category-nav a.active {
  background: #8B0000;
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 0, 0, 0.6);
}

/* Text pod nadpisem */
.sortiment-text {
  font-size: 1.1rem;
  margin-bottom: 32px;
  padding: 0 16px;
  text-align: center;
}

/* Mřížka tlačítek s obrázky */
.buttons-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 16px;
}

.buttons-grid a {
  display: block;
  width: 200px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.buttons-grid a:hover {
  transform: scale(1.03);
}

.buttons-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RESPONSIVITA */
@media (max-width: 768px) {
  .category-nav {
    gap: 12px;
  }

  .category-nav a {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .buttons-grid {
    gap: 16px;
  }

  .buttons-grid a {
    width: 160px;
    height: 120px;
  }
}

@media (max-width: 500px) {
  .category-nav {
    flex-direction: column;
    align-items: center;
  }

  .category-nav a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .buttons-grid a {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .buttons-grid img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
