/* Category menu: drawer styles. Trigger lives in .zs-hdr__cat (right of utilities). */

#leafs-navigation_006_P_193-17515216537300 .leafs-el-container-14.h_head > .leafs-cbox-14-0.leafs-p-item {
  display: none !important;
}
#leafs-navigation_006_P_193-17515216537300 .zs-cat-nav-slot {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  vertical-align: middle;
}

.zs-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--color1, #284a9c);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(40, 74, 156, 0.28);
  transition:
    background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.45s ease,
    font-size 0.45s ease;
}
.zs-cat-btn:hover,
.zs-cat-btn:focus-visible {
  background: #1e3a7a;
  box-shadow: 0 6px 18px rgba(40, 74, 156, 0.34);
  outline: none;
  transform: translateY(-1px);
}
.zs-cat-btn:active {
  transform: translateY(1px);
}
.zs-cat-btn__ico {
  display: inline-flex;
  flex: 0 0 auto;
}
.zs-cat-btn__ico svg {
  display: block;
}
.zs-cat-btn__txt {
  display: inline-block;
}

/* Native chrome: keep with primary links */
.zs-bar__nav .zs-cat-btn {
  flex: 0 0 auto;
  margin-right: 8px;
}

/* Backdrop */
.zs-cat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.zs-cat-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.zs-cat-backdrop[hidden] {
  display: none !important;
}

/* Drawer */
.zs-cat-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  width: min(360px, 92vw);
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  background: #fff;
  box-shadow: 12px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(-105%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.zs-cat-drawer.is-open {
  transform: translateX(0);
}
.zs-cat-drawer[hidden] {
  display: none !important;
}
.zs-cat-drawer.is-open[hidden] {
  display: flex !important;
}

.zs-cat-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 20px 18px 14px;
  border-bottom: 1px solid #e8eef6;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.zs-cat-drawer__label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color1, #284a9c);
}
.zs-cat-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  transition:
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-cat-drawer__close:hover,
.zs-cat-drawer__close:focus-visible {
  background: #e2e8f0;
  color: var(--color1, #284a9c);
  outline: none;
  transform: rotate(90deg);
}

.zs-cat-drawer__nav {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 0 24px;
  -webkit-overflow-scrolling: touch;
}

.zs-cat-list,
.zs-cat-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zs-cat-item--top {
  border-bottom: 1px solid #eef2f7;
}
.zs-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 8px 0 14px;
  transition: background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-cat-item--top > .zs-cat-row:hover {
  background: #f5f8fc;
}
.zs-cat-item.is-current > .zs-cat-row,
.zs-cat-item.is-ancestor > .zs-cat-row {
  background: rgba(40, 74, 156, 0.08);
}
.zs-cat-item.is-current > .zs-cat-row .zs-cat-link {
  color: var(--color1, #284a9c);
  font-weight: 700;
}
.zs-cat-item--sub.is-current > .zs-cat-row .zs-cat-link {
  color: var(--color1, #284a9c);
  font-weight: 700;
}
.zs-cat-item--sub.is-current > .zs-cat-row::before {
  background: var(--color1, #284a9c);
  opacity: 1;
}
.zs-cat-item--sub .zs-cat-row {
  min-height: 40px;
  padding-left: 58px;
  padding-right: 16px;
  position: relative;
  transition:
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-cat-item--sub .zs-cat-row::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #cbd5e1;
  transition:
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-cat-item--sub .zs-cat-row:hover::before {
  background: var(--color1, #284a9c);
  transform: scale(1.25);
}
.zs-cat-item--sub .zs-cat-row:hover {
  background: #f1f5f9;
  transform: translateX(3px);
}

.zs-cat-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef3fa;
  position: relative;
  transition:
    background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-cat-ico::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-color: #475569;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='12' cy='12' r='7.5'/%3E%3Ccircle cx='12' cy='12' r='11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='12' cy='12' r='7.5'/%3E%3Ccircle cx='12' cy='12' r='11'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-cat-item--top > .zs-cat-row:hover .zs-cat-ico,
.zs-cat-item.is-open > .zs-cat-row .zs-cat-ico {
  background: rgba(40, 74, 156, 0.12);
  box-shadow: inset 0 0 0 1px rgba(40, 74, 156, 0.18);
  transform: scale(1.04);
}
.zs-cat-item--top > .zs-cat-row:hover .zs-cat-ico::before,
.zs-cat-item.is-open > .zs-cat-row .zs-cat-ico::before {
  background-color: var(--color1, #284a9c);
}

/* Optional per-item icons via Appearance → Menus → CSS Classes (e.g. zs-ico-gear) */
.zs-cat-item.zs-ico-gear .zs-cat-ico::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
}
.zs-cat-item.zs-ico-star .zs-cat-ico::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.3 5.9.9-4.3 4.2 1 5.9L12 16.5 6.8 19.3l1-5.9L3.5 9.2l5.9-.9L12 3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.3 5.9.9-4.3 4.2 1 5.9L12 16.5 6.8 19.3l1-5.9L3.5 9.2l5.9-.9L12 3z'/%3E%3C/svg%3E");
}
.zs-cat-item.zs-ico-spring .zs-cat-ico::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 4c4 0 4 4 8 4s4 4 8 4M7 12c4 0 4 4 8 4s4 4 8 4M7 20c4 0 4-2 6-2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 4c4 0 4 4 8 4s4 4 8 4M7 12c4 0 4 4 8 4s4 4 8 4M7 20c4 0 4-2 6-2'/%3E%3C/svg%3E");
}
.zs-cat-item.zs-ico-bend .zs-cat-ico::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18V8a4 4 0 0 1 4-4h4'/%3E%3Cpath d='M12 4h4a4 4 0 0 1 4 4v10'/%3E%3Cpath d='M8 18h8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18V8a4 4 0 0 1 4-4h4'/%3E%3Cpath d='M12 4h4a4 4 0 0 1 4 4v10'/%3E%3Cpath d='M8 18h8'/%3E%3C/svg%3E");
}
.zs-cat-item.zs-ico-weld .zs-cat-ico::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 10-14h-7l1-6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 10-14h-7l1-6z'/%3E%3C/svg%3E");
}
.zs-cat-item.zs-ico-rack .zs-cat-ico::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 4v16M16 4v16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 4v16M16 4v16'/%3E%3C/svg%3E");
}
.zs-cat-item.zs-ico-custom .zs-cat-ico::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4.5 4.5 0 0 0-6.4 6.4L4 17v3h3l4.3-4.3a4.5 4.5 0 0 0 6.4-6.4z'/%3E%3Cpath d='M12 8l4 4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4.5 4.5 0 0 0-6.4 6.4L4 17v3h3l4.3-4.3a4.5 4.5 0 0 0 6.4-6.4z'/%3E%3Cpath d='M12 8l4 4'/%3E%3C/svg%3E");
}
.zs-cat-item.zs-ico-fan .zs-cat-ico::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 4c2 2 3 4 3 5.5A3 3 0 0 1 12 12'/%3E%3Cpath d='M20 12c-2 2-4 3-5.5 3A3 3 0 0 1 12 12'/%3E%3Cpath d='M12 20c-2-2-3-4-3-5.5A3 3 0 0 1 12 12'/%3E%3Cpath d='M4 12c2-2 4-3 5.5-3A3 3 0 0 1 12 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 4c2 2 3 4 3 5.5A3 3 0 0 1 12 12'/%3E%3Cpath d='M20 12c-2 2-4 3-5.5 3A3 3 0 0 1 12 12'/%3E%3Cpath d='M12 20c-2-2-3-4-3-5.5A3 3 0 0 1 12 12'/%3E%3Cpath d='M4 12c2-2 4-3 5.5-3A3 3 0 0 1 12 12'/%3E%3C/svg%3E");
}

.zs-cat-link {
  flex: 1 1 auto;
  min-width: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-cat-item--sub .zs-cat-link {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}
.zs-cat-link:hover,
.zs-cat-link:focus-visible {
  color: var(--color1, #284a9c);
  outline: none;
}

.zs-cat-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition:
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-cat-toggle:hover,
.zs-cat-toggle:focus-visible {
  color: var(--color1, #284a9c);
  background: #f1f5f9;
  outline: none;
}
.zs-cat-item.is-open > .zs-cat-row .zs-cat-toggle {
  color: var(--color1, #284a9c);
  transform: rotate(180deg);
}
.zs-cat-item.is-open > .zs-cat-row .zs-cat-link {
  color: var(--color1, #284a9c);
}

/* Smooth expand/collapse (was display:none — felt abrupt) */
.zs-cat-sub {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0;
  background: #fafbfc;
  transform: translateY(-6px);
  transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.zs-cat-item.is-open > .zs-cat-sub {
  max-height: 720px;
  opacity: 1;
  padding: 0 0 8px;
  transform: translateY(0);
}
.zs-cat-item.is-open > .zs-cat-sub > .zs-cat-item {
  opacity: 0;
  transform: translateX(-6px);
  animation: zs-cat-sub-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.zs-cat-item.is-open > .zs-cat-sub > .zs-cat-item:nth-child(1) { animation-delay: 0.04s; }
.zs-cat-item.is-open > .zs-cat-sub > .zs-cat-item:nth-child(2) { animation-delay: 0.07s; }
.zs-cat-item.is-open > .zs-cat-sub > .zs-cat-item:nth-child(3) { animation-delay: 0.1s; }
.zs-cat-item.is-open > .zs-cat-sub > .zs-cat-item:nth-child(4) { animation-delay: 0.13s; }
.zs-cat-item.is-open > .zs-cat-sub > .zs-cat-item:nth-child(5) { animation-delay: 0.16s; }
.zs-cat-item.is-open > .zs-cat-sub > .zs-cat-item:nth-child(6) { animation-delay: 0.19s; }
.zs-cat-item.is-open > .zs-cat-sub > .zs-cat-item:nth-child(n+7) { animation-delay: 0.22s; }
@keyframes zs-cat-sub-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.zs-cat-empty {
  margin: 24px 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

body.zs-cat-lock {
  overflow: hidden;
}

/* Compact button when header scrolled */
#leafs-navigation_006_P_193-17515216537300.active .zs-cat-btn {
  padding: 8px 12px;
  font-size: 13px;
}
#leafs-navigation_006_P_193-17515216537300.active .zs-cat-btn__ico svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .zs-cat-btn__txt {
    display: none;
  }
  .zs-cat-btn {
    padding: 10px 12px;
  }
  #leafs-navigation_006_P_193-17515216537300 .leafs-el-container-14.h_head > .leafs-cbox-14-0.leafs-p-item {
    padding-right: 8px;
  }
}

@media (max-width: 768px) {
  .zs-cat-drawer {
    width: min(320px, 88vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zs-cat-btn,
  .zs-cat-backdrop,
  .zs-cat-drawer,
  .zs-cat-toggle,
  .zs-cat-row,
  .zs-cat-ico,
  .zs-cat-link,
  .zs-cat-sub,
  .zs-cat-drawer__close {
    transition: none !important;
    animation: none !important;
  }
  .zs-cat-item.is-open > .zs-cat-sub > .zs-cat-item {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
