/* assets/css/mobile_menu.css */

/* Overlay */
.mm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 9998;
}

/* Drawer */
.mm-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;

  /* чуть компактнее по ширине */
  width: min(84vw, 360px);

  background: #fff;
  transform: translateX(-102%);
  transition: transform .22s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Open state */
body.mm-open .mm-overlay {
  opacity: 1;
  pointer-events: auto;
}
body.mm-open .mm-drawer {
  transform: translateX(0);
}

/* Top bar inside menu */
.mm-topbar {
  background: #0b0b0b;
  color: #fff;

  /* было 52px -> компактнее */
  height: 48px;

  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  flex: 0 0 auto;
}

.mm-close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: transparent;
  border: 0;

  /* компактнее кликабельная зона */
  padding: 8px 6px;

  font: inherit;
  cursor: pointer;
}

.mm-close .mm-arrow {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: 2px;
}

/* Panels container */
.mm-panels {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.mm-panels__track {
  height: 100%;
  display: flex;
  width: 100%;
  transform: translateX(0%);
  transition: transform .22s ease;
}

.mm-panel {
  width: 100%;
  flex: 0 0 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

/* Header line in panel (like "Main menu" + burger icon) */
.mm-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;

  /* было 14px 14px -> компактнее */
  padding: 10px 12px;

  border-bottom: 1px solid #e9e9e9;
}

.mm-panel__head .mm-burger {
  width: 18px;
  height: 14px;
  position: relative;
}
.mm-panel__head .mm-burger:before,
.mm-panel__head .mm-burger:after,
.mm-panel__head .mm-burger i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #7aa600; /* фирменный зеленый */
  border-radius: 2px;
}
.mm-panel__head .mm-burger:before { top: 0; }
.mm-panel__head .mm-burger i { top: 6px; }
.mm-panel__head .mm-burger:after { top: 12px; }

.mm-panel__head .mm-headtitle {
  color: #7aa600;
  font-weight: 600;

  /* было 15px -> компактнее */
  font-size: 14px;
}

/* Panel title (center like "Bongs") */
.mm-panel__title {
  /* было 16px 14px 10px -> компактнее */
  padding: 12px 12px 8px;

  font-weight: 700;
  text-align: center;
  font-size: 14px;
}

/* Back row */
.mm-back {
  display: flex;
  align-items: center;
  gap: 8px;

  /* было 12px 14px -> компактнее */
  padding: 10px 12px;

  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #e9e9e9;
  background: #fff;
  cursor: pointer;
  user-select: none;
}
.mm-back .mm-back__icon {
  width: 16px;
  height: 16px;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  margin-left: 2px;
}
.mm-back span {
  font-weight: 600;
  font-size: 14px;
}

/* Links list */
.mm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------------
   IMPORTANT DESIGN RULE:
   - No dividers between list items (system / categories / info)
   - Dividers ONLY around section titles ("Категории", "Информация")
   ------------------------------------------------------------------ */
.mm-item {
  border: 0;
}

.mm-link,
.mm-next {
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* было gap 12 -> компактнее */
  gap: 10px;

  /* было 14px 14px -> компактнее */
  padding: 10px 12px;

  text-decoration: none;
  color: #111;
  background: #fff;

  /* было 14.5px -> компактнее */
  font-size: 14px;

  border: 0;
  box-shadow: none;

  /* легкая плотность строки */
  line-height: 1.2;
}

.mm-next {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

/* =========================================================
   NEW: "dash + arrow" icon (—>)
   заменяет старую "галочку" (chevron)
   + делаем не таким чёрным
   ========================================================= */
.mm-chevron {
  width: 20px;
  height: 14px;
  flex: 0 0 20px;
  position: relative;

  /* было .85 -> мягче */
  opacity: .55;
}

/* горизонтальная черта */
.mm-chevron::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  border-radius: 2px;
}

/* наконечник стрелки */
.mm-chevron::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* активный пункт: чуть контрастнее */
.mm-link.is-active .mm-chevron,
.mm-next.is-active .mm-chevron {
  opacity: .75;
}

/* Green "Show ..." line */
.mm-showlink {
  background: #7aa600;
  color: #fff;
  font-weight: 700;
}

/* Active highlight */
.mm-link.is-active,
.mm-next.is-active {
  background: #f4f8ea;
  color: #6e9800;
  font-weight: 700;
}

/* на зелёной строке — стрелка белая и яркая */
.mm-showlink .mm-chevron {
  opacity: 1;
}

/* Section separator ("Категории", "Информация") — две черточки: сверху и снизу */
.mm-section-title {
  /* было margin-top 10 -> компактнее */
  margin-top: 8px;

  /* было 12px 14px -> компактнее */
  padding: 10px 12px;

  font-size: 12.5px;
  font-weight: 800;
  text-transform: none;
  color: #111;
  background: #fff;
  text-align: center;

  border-top: 1px solid #e9e9e9;
  border-bottom: 1px solid #e9e9e9;
}

/* Lock scroll while menu open */
body.mm-open {
  overflow: hidden;
  touch-action: none;
}

/* "Главное меню" выглядит как обычный текст, но кликабельно */
.mm-headtitle[data-mm-home]{
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  line-height: inherit;
}

/* фокус */
.mm-headtitle[data-mm-home]:focus{
  outline: none;
}

.mm-headtitle[data-mm-home]:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}
