

*,
*::before,
*::after {
  box-sizing: border-box;
}



[data-mm-header] {
  --mm-bg: #faf7f2;
  --mm-text: #2a1219;
  --mm-primary: #5e1b2c;
  --mm-overlay-bg: rgba(36, 16, 22, 0.55);
}

[data-mm-header] { position: relative; }

[data-mm-toggle] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

[data-mm-toggle] span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mm-text);
}

[data-mm-menu] {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--mm-bg);
  transform: translateX(-100%);
  z-index: 1100;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding: 60px 24px 24px;
}

[data-mm-menu].mm-open { transform: translateX(0); }

[data-mm-menu] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

[data-mm-menu] ul li a {
  display: block;
  padding: 14px 0;
  color: var(--mm-text);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}

[data-mm-menu] ul li a:hover { color: var(--mm-primary); }

[data-mm-close] {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--mm-text);
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
}

[data-mm-overlay] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mm-overlay-bg);
  opacity: 0;
  visibility: hidden;
  z-index: 1050;
}

[data-mm-overlay].mm-visible {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 62.5rem) {
  [data-mm-toggle] { display: none !important; }
  [data-mm-menu] {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    background: transparent !important;
    transform: none !important;
    padding: 0 !important;
    overflow: visible !important;
    flex-direction: row !important;
  }
  [data-mm-menu] ul {
    flex-direction: row;
    gap: 0;
    align-items: center;
  }
  [data-mm-menu] ul li a {
    padding: 8px 16px;
    border-bottom: none;
    font-size: inherit;
  }
  [data-mm-close] { display: none !important; }
  [data-mm-overlay] { display: none !important; }
}
