/* Mega catalog: full-width luxury panel, black/white, no cascade scroll */
:root {
  --kb-mega-top: 140px;
  --kb-mega-ink: #161616;
  --kb-mega-muted: #5c5852;
  --kb-mega-line: #eceae4;
  --kb-mega-paper: #f6f5f1;
  --kb-mega-white: #ffffff;
}

.categories_heading {
  position: relative;
  z-index: 10045;
  min-width: 44px;
  overflow: visible;
}
.categories_heading .kb-mega__close-icon {
  display: none;
  width: 18px;
  height: 18px;
  margin: 0;
  vertical-align: middle;
  color: #fff;
}
.categories_heading.active .menu_icon {
  display: none;
}
.categories_heading.active .kb-mega__close-icon {
  display: inline-block;
}
@media (min-width: 544px) {
  .categories_heading.active .kb-mega__close-icon {
    margin-left: 12px;
  }
}

.categories_nav.kb-mega {
  display: none !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: var(--kb-mega-top) !important;
  width: 100% !important;
  min-width: 0 !important;
  height: calc(100vh - var(--kb-mega-top)) !important;
  max-height: none !important;
  background: var(--kb-mega-white) !important;
  color: var(--kb-mega-ink) !important;
  border: none !important;
  border-top: 1px solid var(--kb-mega-line) !important;
  box-shadow: 0 18px 40px rgba(22, 20, 16, 0.08);
  z-index: 10040;
  overflow: hidden !important;
  font-weight: 400;
  font-size: 13px;
}
.categories_nav.kb-mega.is-open {
  display: block !important;
}

.kb-mega-backdrop {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--kb-mega-top);
  background: rgba(18, 16, 14, 0.32);
  z-index: 10030;
}
.kb-mega-backdrop.is-show {
  display: block;
}

body.kb-mega-open {
  overflow: hidden;
}

.kb-mega__toolbar {
  display: none;
}
.kb-mega__inner {
  display: flex;
  position: relative;
  height: 100%;
  min-height: 0;
  background: var(--kb-mega-white);
}
.kb-mega__sidebar {
  flex: 0 0 268px;
  width: 268px;
  margin: 0;
  padding: 18px 12px;
  list-style: none;
  background: var(--kb-mega-white);
  border-right: 1px solid var(--kb-mega-line);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.kb-mega__sidebar::-webkit-scrollbar {
  display: none;
}
.kb-mega__root {
  display: block;
  position: relative;
}
.kb-mega__root-link {
  display: block;
  width: 100%;
  padding: 8px 14px;
  color: #3a3834 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 4px;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.kb-mega__root-link span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-mega__root.is-active > .kb-mega__root-link,
.kb-mega__root:hover > .kb-mega__root-link {
  background: #f3f2ee !important;
  color: #111 !important;
}

.kb-mega__panels {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: var(--kb-mega-white);
}
.kb-mega__panel {
  display: none;
  position: absolute;
  inset: 0;
  padding: 28px 36px 20px;
  flex-direction: column;
  min-height: 0;
}
.kb-mega__panel.is-active {
  display: flex;
}
.kb-mega__grid {
  flex: 1 1 auto;
  min-height: 0;
  column-width: 188px;
  column-gap: 28px;
  column-fill: auto;
  overflow: hidden;
}
.kb-mega__group {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 20px;
  display: inline-block;
  width: 100%;
  vertical-align: top;
}
.kb-mega__group:has(li:nth-child(14)) {
  break-inside: auto;
  -webkit-column-break-inside: auto;
  page-break-inside: auto;
}
.kb-mega__h {
  display: inline-block;
  margin: 0 0 10px;
  color: #111 !important;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none !important;
  background: none !important;
}
.kb-mega__h:hover {
  color: #000 !important;
  box-shadow: inset 0 -1px 0 #111;
}
.kb-mega__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kb-mega__list a {
  display: inline;
  color: #4a4742 !important;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  border: none !important;
  background: none !important;
}
.kb-mega__list li {
  margin: 0 0 3px;
}
.kb-mega__list a:hover {
  color: #000 !important;
  box-shadow: inset 0 -1px 0 #111;
}
.kb-mega__more {
  color: var(--kb-mega-muted) !important;
  font-weight: 500 !important;
}
.kb-mega__section-all {
  flex: 0 0 auto;
  display: inline-block;
  margin-top: 10px;
  padding-top: 14px;
  color: #111 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: none !important;
  border: none !important;
  border-top: 1px solid var(--kb-mega-line) !important;
}
.kb-mega__section-all:hover {
  color: #000 !important;
  box-shadow: inset 0 -1px 0 #111;
}

@media (min-width: 1400px) {
  .kb-mega__grid {
    column-width: 200px;
    column-gap: 32px;
  }
}
@media (max-height: 820px) {
  .kb-mega__grid {
    column-width: 168px;
    column-gap: 22px;
  }
  .kb-mega__list a {
    font-size: 12px;
    line-height: 1.35;
  }
}

@media (max-width: 991px) {
  .categories_nav.kb-mega {
    height: calc(100vh - var(--kb-mega-top)) !important;
  }
  .kb-mega__toolbar {
    display: none;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--kb-mega-line);
    background: var(--kb-mega-white);
  }
  .kb-mega.is-drill .kb-mega__toolbar {
    display: flex;
  }
  .kb-mega__back {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: none;
    padding: 0;
    color: #111;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
  }
  .kb-mega__toolbar-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .kb-mega__inner {
    height: 100%;
  }
  .kb-mega.is-drill .kb-mega__inner {
    height: calc(100% - 52px);
  }
  .kb-mega__sidebar {
    flex: 1 1 auto;
    width: 100%;
    padding: 10px 12px 24px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
  }
  .kb-mega__root-link {
    padding: 14px 12px;
    font-size: 16px;
    line-height: 1.35;
  }
  .kb-mega__panels {
    position: absolute;
    inset: 0;
    background: var(--kb-mega-white);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow: hidden;
  }
  .kb-mega.is-drill .kb-mega__panels {
    transform: translateX(0);
  }
  .kb-mega__panel {
    display: none !important;
    position: relative !important;
    inset: auto !important;
    height: 100%;
    padding: 8px 18px 28px;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .kb-mega__panel.is-active {
    display: block !important;
  }
  .kb-mega__grid {
    display: block !important;
    height: auto !important;
    columns: auto !important;
    column-width: auto !important;
    column-count: 1 !important;
    column-fill: unset !important;
    overflow: visible !important;
    flex: none !important;
  }
  .kb-mega__group {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 0 8px !important;
    padding: 16px 0 18px;
    border-bottom: 1px solid var(--kb-mega-line);
    overflow: visible !important;
    break-inside: auto;
  }
  .kb-mega__group:last-child {
    border-bottom: none;
  }
  .kb-mega__h {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
  }
  .kb-mega__list a {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    padding: 6px 0;
  }
  .kb-mega__list li {
    margin: 0;
  }
  .kb-mega__section-all {
    display: block;
    margin-top: 8px;
    padding: 16px 0 8px;
  }
}
