/* ========== Layout toggles ========== */
@media (max-width: 991px) {
  .main-nav { display: none; }          /* hide desktop nav on mobile */
  .mm-trigger {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1rem; border-radius: 999px; border: 1px solid #e5e7eb;
    background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06);
    font: 500 15px/1.2 system-ui, sans-serif;
  }
}
@media (min-width: 992px) {
  .mm-trigger, #mm-sheet { display: none !important; }
}

button.mm-trigger {
    padding: 4px;
    border-radius: 8px;
    /* width: 30px; */
    /* height: 37px; */
    background: transparent !important;
    color: var( --e-global-color-secondary ) !important;
    font-size: 20px !important;
}
button.mm-trigger .material-symbols-outlined {
    font-size: 30px;
}



/* ========== Bottom sheet container ========== */
.mm-sheet[hidden] { display: none !important; }
.mm-sheet { position: fixed; inset: 0; z-index: 9999; }
.mm-sheet__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.24); opacity: 0; transition: opacity .2s; }
.mm-sheet.open .mm-sheet__scrim { opacity: 1; }

.mm-sheet__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -100%;
    background: #fff;
    /* border-radius: 16px 16px 0 0; */
    box-shadow: 0 -8px 24px rgba(0,0,0,.18);
    min-height: 60vh;
    max-height: 100dvh;
    display: grid;
    grid-template-rows: auto auto 1fr;
    transition: bottom .24s ease;
    padding: 20px 0;
}
.mm-sheet.open .mm-sheet__panel { bottom: 0; }
.mm-sheet__handle {
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    margin: 10px auto 6px;
    display: none;
}

.mm-sheet__top {
    display: block;
    /* grid-template-columns: 1fr auto; */
    /* gap: .5rem; */
    padding: 0 16px 8px;
}
.mm-close {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.mm-search-wrap {
    border: 1px solid #c7d2fe;
    display: flex;
    border-radius: 20px;
    padding: 0px 5px 0 15px;
}
.mm-search {
    width: 95% !important;
    padding: 0 !important;
    /* border-radius: 999px; */
    border: none !important;
    /* background: #fafafa; */
    outline: none;
    height: 36px !important;
    box-shadow: none !important;
}
button.mm-clear {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.mm-search:focus { border-color: #c5c5c5; }

.mm-close:focus-visible { outline: 2px solid #333; }

/* ========== Tabs (chips) ========== */
.mm-chips {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: 10px 16px 10px;
    scrollbar-width: none;
    /* height: 6dvh; */
}
.mm-chips::-webkit-scrollbar { display: none; }
.mm-chip {
    white-space: nowrap;
    padding: 0px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font: 500 14px/1 system-ui, sans-serif;
    cursor: pointer;
    height: 30px;
}
.mm-chip[aria-selected="true"] { background: var( --e-global-color-secondary ); border-color: var( --e-global-color-secondary ); }
.mm-chip[aria-selected="false"] { background: #eef2ff; border-color: #c7d2fe; }
/* ========== Panels ========== */
.mm-panels { overflow: auto; padding: 8px 16px 20px; }
.mm-panel { display: none; }
.mm-panel.active { display: block; }

.mm-section {
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mm-section > a.mega-heading {
    font: 500 14px/1.2 Poppins;
    text-decoration: none;
    color: var(--e-global-color-primary);
    /*display: inline-flex;
     align-items: center;
    gap: 6px; */
    line-height: 1.4;
}
/*.mm-section > a.mega-heading::after {
  content: 'keyboard_arrow_down'; font-family: 'Material Symbols Outlined'; font-size: 18px; line-height: 1; opacity: .6;
}*/

.mm-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mm-links a {
    display: block;
    padding: 0 14px;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    text-decoration: none;
    color: #333;
}
.mm-links a:active { transform: scale(.98); }

/* Optional subtle separators between column groups */
.mm-col {
    /* padding-bottom: 10px; */
    border-bottom: 1px dashed #eee;
    margin-bottom: 10px;
}
