/* Vopečbuřt 2.4.5 - compact category filter, remove redundant sorting, nav hover polish */

/* Hlavní menu: decentní animované podtržení, bez agresivního hoveru. */
.vb-nav__list > li > a,
.vb-nav a,
.site-header .main-navigation ul.menu > li > a {
  position: relative !important;
  transition: color .22s ease, opacity .22s ease !important;
}

.vb-nav__list > li > a::after,
.vb-nav a::after,
.site-header .main-navigation ul.menu > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -9px;
  height: 2px;
  background: #d89336;
  opacity: 0;
  transition: left .24s ease, right .24s ease, opacity .24s ease;
  pointer-events: none;
}

.vb-nav__list > li > a:hover,
.vb-nav__list > li.current-menu-item > a,
.vb-nav__list > li.current-menu-ancestor > a,
.vb-nav a:hover,
.site-header .main-navigation ul.menu > li > a:hover {
  color: #d89336 !important;
}

.vb-nav__list > li > a:hover::after,
.vb-nav__list > li.current-menu-item > a::after,
.vb-nav__list > li.current-menu-ancestor > a::after,
.vb-nav a:hover::after,
.site-header .main-navigation ul.menu > li > a:hover::after {
  left: 0;
  right: 0;
  opacity: 1;
}

/* Kategorie: kompaktnější, čitelnější a jasně oddělené od produktů. */
body.vb-shop-premium-layout .vb-shop-categories-242,
body.vb-shop-premium-layout .vb-shop-categories-245 {
  max-width: 1180px !important;
  margin: clamp(36px, 4vw, 58px) auto clamp(30px, 3vw, 44px) !important;
  padding: 18px 20px 16px !important;
  border: 1px solid rgba(132, 81, 26, .24) !important;
  background:
    linear-gradient(180deg, rgba(242,226,201,.72), rgba(242,226,201,.50)),
    radial-gradient(circle at 18% 0%, rgba(216,147,54,.13), transparent 34%) !important;
  box-shadow: 10px 14px 0 rgba(51,58,43,.055), 0 22px 46px rgba(51,58,43,.08) !important;
}

body.vb-shop-premium-layout .vb-shop-categories-242__head,
body.vb-shop-premium-layout .vb-shop-categories-245__head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 0 0 13px !important;
  padding: 0 0 11px !important;
  border-bottom: 1px solid rgba(132,81,26,.20) !important;
}

body.vb-shop-premium-layout .vb-shop-categories-242__head span,
body.vb-shop-premium-layout .vb-shop-categories-245__head span {
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 11px !important;
  letter-spacing: .24em !important;
  text-transform: uppercase !important;
  color: #84511a !important;
  font-weight: 900 !important;
}

body.vb-shop-premium-layout .vb-shop-categories-242__head strong,
body.vb-shop-premium-layout .vb-shop-categories-245__head strong {
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 11px !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: rgba(51,58,43,.72) !important;
  font-weight: 900 !important;
}

body.vb-shop-premium-layout .vb-product-cat-chips,
body.vb-shop-premium-layout .vb-product-cat-chips--245 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

body.vb-shop-premium-layout .vb-product-cat-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 34px !important;
  padding: 7px 8px 7px 12px !important;
  border: 1px solid rgba(132,81,26,.19) !important;
  background: rgba(255,250,240,.64) !important;
  color: #333a2b !important;
  box-shadow: 4px 5px 0 rgba(51,58,43,.055) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

body.vb-shop-premium-layout .vb-product-cat-chip span {
  display: inline-block !important;
  white-space: nowrap !important;
}

body.vb-shop-premium-layout .vb-product-cat-chip small {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  background: rgba(51,58,43,.10) !important;
  color: #84511a !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

body.vb-shop-premium-layout .vb-product-cat-chip:hover,
body.vb-shop-premium-layout .vb-product-cat-chip:focus-visible {
  transform: translateY(-2px) !important;
  background: #333a2b !important;
  border-color: #333a2b !important;
  color: #f2e2c9 !important;
  box-shadow: 6px 8px 0 rgba(132,81,26,.18) !important;
}

body.vb-shop-premium-layout .vb-product-cat-chip:hover small,
body.vb-shop-premium-layout .vb-product-cat-chip:focus-visible small,
body.vb-shop-premium-layout .vb-product-cat-chip.is-active small {
  background: #d89336 !important;
  color: #11170f !important;
}

body.vb-shop-premium-layout .vb-product-cat-chip.is-active {
  background: #333a2b !important;
  border-color: #333a2b !important;
  color: #f2e2c9 !important;
}

body.vb-shop-premium-layout .vb-product-cat-chip--all {
  border-color: rgba(216,147,54,.48) !important;
}

/* Řazení je pro malý katalog spíš šum. Schováváme ho, produkty a kategorie tak mají jasnější hierarchii. */
body.vb-shop-premium-layout .storefront-sorting,
body.vb-shop-premium-layout form.woocommerce-ordering,
body.vb-shop-premium-layout .woocommerce-result-count {
  display: none !important;
}

body.vb-shop-premium-layout .vb-shop-products-intro-242 {
  max-width: 1180px !important;
  margin: clamp(34px, 4vw, 54px) auto 24px !important;
  padding-top: 23px !important;
  border-top: 1px solid rgba(132,81,26,.20) !important;
}

body.vb-shop-premium-layout ul.products {
  margin-top: 0 !important;
}

/* Pokud se někde zobrazí Woo category tile, držíme nadpis mimo obrázek. */
body.vb-shop-premium-layout ul.products li.product-category a {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
}

body.vb-shop-premium-layout ul.products li.product-category img {
  flex: 0 0 auto !important;
}

body.vb-shop-premium-layout ul.products li.product-category .woocommerce-loop-category__title,
body.vb-shop-premium-layout ul.products li.product-category h2 {
  position: relative !important;
  z-index: 2 !important;
  margin-top: auto !important;
  padding: 18px 18px 20px !important;
  background: #f2e2c9 !important;
  color: #333a2b !important;
}
