/* Modern mobile menu: light neutral canvas with white cards and homepage brand accents. */
.cd-nav.cd-nav--modern {
  --mm-bg: #f4f4f5;
  --mm-surface: #fff;
  --mm-surface-active: #f0efee;
  --mm-text: #2f2826;
  --mm-line: #ebe9e7;
  --mm-muted: #8a7d78;
  --mm-brand: #5e5351;
  --mm-green: #009600;
  --mm-orange: #ff7100;
  --mm-shadow: 0 1px 3px rgba(47, 40, 38, 0.08), 0 1px 2px rgba(47, 40, 38, 0.04);
  width: min(88%, 420px);
  background: var(--mm-bg);
  color: var(--mm-text);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
}

.cd-nav--modern .cd-navigation-wrapper {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

#cd-nav.cd-nav--modern a,
#cd-nav.cd-nav--modern a:visited,
#cd-nav.cd-nav--modern a:hover,
#cd-nav.cd-nav--modern a:active {
  color: inherit;
  text-decoration: none;
}

/* Header */
.mm-header {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 10px;
  padding: 10px 16px;
  background: var(--mm-brand);
  color: #fff;
}

.cd-nav--modern .mm-search,
.cd-nav--modern .mm-back,
.cd-nav--modern .cd-nav-close.mm-close {
  grid-row: 1;
}

.mm-back {
  display: none;
  grid-column: 1;
  justify-self: start;
  align-items: center;
  gap: 4px;
  margin-left: -6px;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.cd-nav--modern.has-submenu .mm-search {
  display: none;
}

.cd-nav--modern.has-submenu .mm-back {
  display: inline-flex;
}

.cd-nav--modern .cd-nav-close.mm-close {
  position: static;
  display: flex;
  grid-column: 2;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
}

.mm-search {
  display: flex;
  width: 100%;
  grid-column: 1;
  height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  border-radius: 21px;
  background: var(--mm-surface);
  color: var(--mm-muted);
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.mm-search span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Panels */
.mm-panels {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.mm-panel {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 16px 32px;
  visibility: hidden;
  transform: translateX(32px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease, visibility 0s 220ms;
  -webkit-overflow-scrolling: touch;
}

.mm-panel.is-active {
  visibility: visible;
  transform: translateX(0);
  opacity: 1;
  transition: transform 220ms ease, opacity 220ms ease;
}

#cd-nav .mm-panel-title {
  margin: 18px 4px 14px;
  color: var(--mm-text);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.mm-group-label {
  margin: 20px 4px 8px;
  color: var(--mm-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Cards and rows */
.mm-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--mm-surface);
  list-style: none;
  box-shadow: var(--mm-shadow);
}

.mm-card > li + li {
  border-top: 1px solid var(--mm-line);
}

.mm-row {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--mm-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mm-row:active {
  background: var(--mm-surface-active);
}

.mm-row[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--mm-orange);
}

.mm-label {
  flex: 1 1 auto;
}

.mm-chevron {
  flex: 0 0 18px;
  color: var(--mm-muted);
  transition: transform 200ms ease;
}

.mm-accordion-trigger .mm-chevron {
  transform: rotate(90deg);
}

.mm-accordion-trigger[aria-expanded="true"] .mm-chevron {
  transform: rotate(-90deg);
}

.mm-accordion-trigger[aria-expanded="true"] {
  font-weight: 700;
}

.mm-accordion {
  margin: 0;
  padding: 2px 0 10px 28px;
  list-style: none;
}

.mm-subrow {
  display: block;
  padding: 9px 14px 9px 0;
  color: var(--mm-text);
  font-size: 15px;
  line-height: 1.35;
}

.mm-card--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.mm-card--grid > li + li {
  border-top: 0;
}

.mm-card--grid .mm-row {
  min-height: 52px;
  border-radius: 12px;
  background: var(--mm-surface);
  font-weight: 600;
  box-shadow: var(--mm-shadow);
}

/* Primary call to action */
#cd-nav .mm-cta {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--mm-green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 150, 0, 0.25);
}

#cd-nav.cd-nav--modern a.mm-cta,
#cd-nav.cd-nav--modern a.mm-cta:visited,
#cd-nav.cd-nav--modern a.mm-cta:hover,
#cd-nav.cd-nav--modern a.mm-cta:active {
  color: #fff;
}

#cd-nav .mm-cta:active {
  background: #007a00;
}

#cd-nav .mm-cta .mm-chevron {
  color: #fff;
}

/* Partner shops */
.mm-partners {
  margin-top: 20px;
  text-align: center;
}

.mm-partners-title {
  margin: 0 0 10px;
  color: var(--mm-muted);
  font-size: 13px;
  font-weight: 700;
}

.mm-partner-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#cd-nav .mm-partner-links a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1.5px solid var(--mm-brand);
  border-radius: 12px;
  background: var(--mm-surface);
  color: var(--mm-brand);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Reviews */
#cd-nav .mm-review {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--mm-surface);
  color: var(--mm-text);
  box-shadow: var(--mm-shadow);
}

.mm-review-score {
  display: flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--mm-orange);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.mm-review-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.mm-review-stars {
  display: flex;
  gap: 2px;
}

.mm-review-stars img {
  display: block;
}

.cd-nav--modern button:focus-visible,
.cd-nav--modern a:focus-visible {
  outline: 2px solid var(--mm-orange);
  outline-offset: 2px;
}
