﻿/* === Kategorie === */
/* === Parametrické kategorie buttony === */


.bb-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}
.bb-cat-grid a.bb-cat-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  background: #f5f5f5;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  padding: 10px 16px 10px 10px;
  min-height: 56px;
  width: 300px;
  box-sizing: border-box;
  color: #001435;
  font-family: 'Exo 2', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.bb-cat-grid a.bb-cat-item:visited {
  color: #001435;
  text-decoration: none !important;
}
.bb-cat-grid a.bb-cat-item:hover,
.bb-cat-grid a.bb-cat-item:focus {
  text-decoration: none !important;
  background: #ececec;
  border-color: #D82951;
  color: #D82951;
  box-shadow: 0 2px 8px rgba(216, 41, 81, 0.12);
}
.bb-cat-grid a.bb-cat-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: multiply;
  flex-shrink: 0;
  margin: 0;
}
.bb-cat-item-label {
  flex: 1 1 auto;
  font-family: 'Exo 2', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-align: left;
  line-height: 1.3;
}
@media (max-width: 900px) {
  .bb-cat-grid a.bb-cat-item {
    width: calc(50% - 6px);
  }
}
@media (max-width: 600px) {
  .bb-cat-grid {
    gap: 8px;
    margin: 20px 0 24px;
  }
  .bb-cat-grid a.bb-cat-item {
    width: calc(50% - 4px);
    min-height: 48px;
    padding: 8px 10px 8px 8px;
    gap: 8px;
    font-size: 12px;
  }
  .bb-cat-grid a.bb-cat-item img {
    width: 30px;
    height: 30px;
  }
  .bb-cat-item-label {
    font-size: 12px;
  }
}


/* === Hlavní kategorie buttony === */


ul.subcategories.with-image {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}
ul.subcategories.with-image > li {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  width: 150px;
  max-width: 150px;
  flex: 0 0 150px;
}
ul.subcategories.with-image > li > a {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none !important;
  background: #f5f5f5;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  padding: 12px 10px 10px;
  width: 100%;
  min-height: 140px;
  box-sizing: border-box;
  color: #001435;
  font-family: 'Exo 2', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
ul.subcategories.with-image > li > a:visited {
  color: #001435;
  text-decoration: none !important;
}
ul.subcategories.with-image > li > a:hover,
ul.subcategories.with-image > li > a:focus {
  text-decoration: none !important;
  background: #ececec;
  border-color: #D82951;
  color: #D82951;
  box-shadow: 0 2px 8px rgba(216, 41, 81, 0.12);
}
ul.subcategories.with-image > li > a .image {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px 0;
  padding: 0;
  background: transparent;
}
ul.subcategories.with-image > li > a .image img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: multiply;
}
ul.subcategories.with-image > li > a .text {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  color: inherit;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 900px) {
  ul.subcategories.with-image > li {
    width: calc(25% - 8px);
    max-width: calc(25% - 8px);
    flex: 0 0 calc(25% - 8px);
  }
}
@media (max-width: 600px) {
  ul.subcategories.with-image {
    gap: 8px;
    margin: 20px 0 24px;
  }
  ul.subcategories.with-image > li {
    width: calc(33.333% - 6px);
    max-width: calc(33.333% - 6px);
    flex: 0 0 calc(33.333% - 6px);
  }
  ul.subcategories.with-image > li > a {
    min-height: 100px;
    padding: 8px 6px 6px;
    font-size: 11px;
  }
  ul.subcategories.with-image > li > a .image,
  ul.subcategories.with-image > li > a .image img {
    width: 40px;
    height: 40px;
  }
  ul.subcategories.with-image > li > a .image {
    margin-bottom: 6px;
  }
  ul.subcategories.with-image > li > a .text {
    font-size: 11px;
  }
}