/* VOKRUG CATEGORY GRID V2
   Layout only. One data source, one menu, all category filtering unchanged.
   This stylesheet loads AFTER vokrug-category-menu-v1.css and vokrug-menu-v4.css.
*/
html.v4-menu-active .site-header .category-bar.vcat-bar,
.site-header .category-bar.vcat-bar,
.category-bar.vcat-bar {
  display:grid !important;
  grid-template-columns:repeat(7,minmax(0,1fr)) !important;
  grid-auto-flow:row !important;
  align-items:stretch !important;
  justify-content:stretch !important;
  gap:9px !important;
  padding:12px 0 5px !important;
  width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:100% !important;
  overflow:visible !important;
  white-space:normal !important;
  box-sizing:border-box !important;
  scrollbar-width:none !important;
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
html.v4-menu-active .site-header .vcat-bar .category.vcat-category,
.site-header .vcat-bar .category.vcat-category,
.vcat-bar .category.vcat-category {
  display:flex !important;
  flex:initial !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:48px !important;
  height:auto !important;
  padding:7px 9px !important;
  gap:7px !important;
  text-align:left !important;
  font-family:inherit !important;
  font-size:12.5px !important;
  line-height:1.26 !important;
  white-space:normal !important;
  overflow-wrap:normal !important;
  box-sizing:border-box !important;
}
.vcat-bar .vcat-icon {
  flex:0 0 28px !important;
  width:28px !important;
  height:28px !important;
}
.vcat-bar .vcat-label {
  min-width:0 !important;
  flex:0 1 auto !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  text-wrap:pretty;
}
.vcat-bar .vcat-badge {
  flex:0 0 auto !important;
  margin-left:auto !important;
  white-space:nowrap !important;
}
.vcat-category:focus-visible,
.vcat-toggle:focus-visible {outline:3px solid #6eaaff !important;outline-offset:2px !important;}
.vcat-toggle {display:none !important;}
@media (min-width:1001px) and (max-width:1240px) {
  html.v4-menu-active .site-header .category-bar.vcat-bar,
  .site-header .category-bar.vcat-bar,
  .category-bar.vcat-bar {gap:6px !important;}
  html.v4-menu-active .site-header .vcat-bar .category.vcat-category,
  .site-header .vcat-bar .category.vcat-category,
  .vcat-bar .category.vcat-category {font-size:11px !important;gap:4px !important;padding:6px 5px !important;}
  .vcat-bar .vcat-icon {flex-basis:25px !important;width:25px !important;height:25px !important;}
  .vcat-bar .vcat-badge {font-size:8px !important;padding:0 3px !important;}
}
@media (max-width:1000px) {
  html.v4-menu-active .site-header .category-bar.vcat-bar,
  .site-header .category-bar.vcat-bar,
  .category-bar.vcat-bar {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
}
@media (max-width:640px) {
  html.v4-menu-active .site-header .category-bar.vcat-bar,
  .site-header .category-bar.vcat-bar,
  .category-bar.vcat-bar {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
    padding:9px 0 4px !important;
  }
  html.v4-menu-active .site-header .vcat-bar .category.vcat-category,
  .site-header .vcat-bar .category.vcat-category,
  .vcat-bar .category.vcat-category {
    flex-direction:row !important;
    justify-content:flex-start !important;
    text-align:left !important;
    font-size:12px !important;
    padding:7px 8px !important;
    min-height:48px !important;
  }
  .vcat-bar[data-vcat-collapsed="true"] > .vcat-category:nth-of-type(n+7) {
    display:none !important;
  }
  .vcat-toggle {
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:7px !important;
    width:100% !important;
    min-height:42px !important;
    margin:8px 0 0 !important;
    padding:8px 12px !important;
    border:1px solid #d7e5fb !important;
    border-radius:13px !important;
    background:#f4f8ff !important;
    color:#125ce4 !important;
    font:600 13px/1.3 inherit !important;
    font-family:inherit !important;
    font-size:13px !important;
    font-weight:650 !important;
    cursor:pointer !important;
    text-align:center !important;
  }
  .vcat-toggle:hover {background:#e8f2ff !important;}
  .vcat-toggle-icon {width:16px;height:16px;transition:transform .2s;}
  .vcat-toggle[aria-expanded="true"] .vcat-toggle-icon {transform:rotate(180deg);}
}
@media (prefers-reduced-motion:reduce) {
  .vcat-toggle-icon {transition:none;}
}
/* Keep the mobile collapsed view stronger than legacy !important category display. */
@media (max-width:640px) {
  html.v4-menu-active .site-header .vcat-bar[data-vcat-collapsed="true"] > button.category.vcat-category:nth-of-type(n+7),
  .site-header .vcat-bar[data-vcat-collapsed="true"] > button.category.vcat-category:nth-of-type(n+7),
  .vcat-bar[data-vcat-collapsed="true"] > button.category.vcat-category:nth-of-type(n+7) {
    display:none !important;
  }
}
