:root { --dec-black: #111; --dec-red: #d10000; }

/* Scroll lock only while overlay is open */
body.dec-cat-no-scroll { overflow: hidden; }

.dec-cat-nav { position: relative; color: var(--dec-black); }
.dec-cat-nav a { text-decoration: none; color: var(--dec-black); }
.dec-cat-nav ul { list-style: none; margin: 0; padding: 0; }

.dec-cat-nav .dec-cat-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  align-items: center; gap: 8px; font-size: 16px; color: var(--dec-black);
}
.dec-cat-toggle .dec-cat-toggle-bars {
  width: 22px; height: 22px; display: inline-block;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}

/* Sidebar */
.dec-cat-sidebar { display: block; }
.dec-cat-menu > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; position: relative; min-height: 40px; width: 100%; font-weight: 600;;
}
.dec-cat-menu .dec-cat-label { pointer-events: auto; }
.dec-cat-menu .dec-caret {
  margin-left: 10px; width: 20px; height: 20px; flex: 0 0 20px;
  background-repeat: no-repeat; background-position: center; background-size: 14px 14px;
  transform: rotate(-90deg); transition: transform .15s ease;
}
.dec-cat-menu .menu-item.is-open > a .dec-caret { transform: rotate(0deg); }

.dec-cat-menu .sub-menu { display: none; padding-left: 14px; }

/* Active: left border only on current item */
.dec-cat-menu .menu-item.current-menu-item > a .dec-cat-label { font-weight: 700; color: var(--dec-red); }
.dec-cat-menu .menu-item.current-menu-item > a::before {
  content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 3px; background: var(--dec-red);
}

/* Hover/focus */
.dec-cat-menu a:hover .dec-cat-label,
.dec-cat-menu a:focus .dec-cat-label { color: var(--dec-red); }

/* Overlay — isolate with massive z-index and no pointer events unless visible */
.dec-cat-overlay { position: fixed; inset: 0; display: none; background: rgba(0,0,0,.5); z-index: 100000; }
.dec-cat-overlay[aria-hidden="false"] { display: block; }
.dec-cat-overlay-panel {
  position: absolute; inset: 0; background: #fff; display: grid;
  grid-template-rows: auto 1fr;
  animation: dec-slide-in .2s ease forwards; transform: translateY(4%); opacity: 0;
}
@keyframes dec-slide-in { to { transform: translateY(0); opacity: 1; } }
@keyframes dec-slide-out { to { transform: translateY(6%); opacity: 0; } }

.dec-cat-header {
  position: sticky; top: 0; background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,.06);
}
.dec-cat-header h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--dec-black); }
.dec-cat-close { width: 28px; height: 28px; background: transparent; border: 0; cursor: pointer; padding: 0; }
.dec-cat-close .dec-close-icon {
  width: 100%; height: 100%; display: inline-block;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}

.dec-cat-overlay-scroll { overflow: auto; -webkit-overflow-scrolling: touch; }
.dec-cat-overlay-list .dec-cat-menu > li > a { padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,.06); }
.dec-cat-overlay-list .sub-menu > li > a { padding-left: 28px; }
.dec-cat-overlay-list .sub-menu .sub-menu > li > a { padding-left: 42px; }

/* Responsive */
@media (max-width: 1024px) {
  .dec-cat-nav .dec-cat-toggle { display: inline-flex; }
  .dec-cat-nav .dec-cat-sidebar { display: none; }
}
