/* =============================================================
   coMra Megamenu — mm-style.css
   ============================================================= */

/* ── Custom properties ── */
:root {
  --mm-header-h: 64px;
  --mm-grey:      #aaa;
  --mm-grey-dark: #464646;
  --mm-badge-bg:   #ffffffaa;
  --mm-text:       #464646;
  --mm-text-muted: #666666;
  --mm-icon-fill:  #464646;
  --mm-footer-h:   70px;
  --mm-radius:     18px;
  --mm-gap0:       4px;
  --mm-gap1:       var(--gap0);
  --mm-gap2:       var(--gap1);
  --mm-gap3:       var(--gap2);
  --mm-gap4:       var(--gap3);
  --mm-gap5:       var(--gap4);
}


/* ── Overlay ── */
#mm-root .megamenu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 300ms ease;
}
#mm-root .megamenu-overlay.overlay-visible { opacity: 1; }

/* ── Container ── */
#mm-root .megamenu-container {
  position: fixed;
  top: var(--mm-header-h);
  left: 0;
  right: 0;
  transform: translateY(-40px);
  width: 100%;
  max-width: 100%;
  height: calc(90vh - var(--mm-header-h));
  background: #fff;
  z-index: 9999;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 500ms ease, transform 500ms ease;
  box-shadow: 0 8px 40px -8px rgba(70,70,70,0.3);
}

#mm-root .megamenu-container.megamenu-open {
  opacity: 1;
  transform: translateY(0);
}

/* ── Trigger buttons ── */
#mm-root [data-megamenu-trigger] {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
#mm-root [data-megamenu-trigger]:hover  { opacity: 0.7; }
#mm-root [data-megamenu-trigger]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
#mm-root [data-megamenu-trigger].active { font-weight: 700; }

/* ── Inner layout ── */
#mm-root .megamenu-inner {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  min-height: 0;
}

/* ── Main area ── */
#mm-root .megamenu-main {
  flex: 60 0 0%;
  min-width: 0;
  overflow-y: auto;
  padding: var(--mm-gap5);
  background: #eee;
}
#mm-root .megamenu-main-inner {
  width: 100%;
  max-width: calc(650px + 10vw);
  margin-left: auto;
  padding-right: var(--mm-gap3);
}

/* ── Feature panel ── */
#mm-root .megamenu-feature {
  flex: 40 0 0%;
  min-width: 260px;
  overflow-y: auto;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
}
#mm-root .megamenu-feature--shop      { background-image: url('/app/mu-plugins/comra-megamenu/assets/img/Shop/featured-shop-desktop.webp'); }
#mm-root .megamenu-feature--resources { background-image: url('/app/mu-plugins/comra-megamenu/assets/img/Resources/featured-resources-desktop.webp'); }
#mm-root .megamenu-feature--support   { background-image: url('/app/mu-plugins/comra-megamenu/assets/img/Support/featured-support-desktop.webp'); }
#mm-root .megamenu-feature--search    { background-image: url('/app/mu-plugins/comra-megamenu/assets/img/Search/featured-search-desktop.webp'); }

#mm-root .megamenu-feature-inner {
  padding: var(--mm-gap5);
  display: flex;
  flex-direction: column;
  gap: var(--mm-gap3);
  max-width: calc(650px - 10vw);
  box-sizing: border-box;
}

#mm-root #megamenu-shop .mm-feature-cta,
#mm-root #megamenu-resources .mm-feature-cta {
  margin-top: var(--mm-gap2);
}
#mm-root .mm-feat-card-wrap {
  margin-top: var(--mm-gap2);
}
#mm-root .mm-feat-card {
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,1);
  height: 260px;
}
#mm-root .mm-feat-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ── Footer ── */
#mm-root .megamenu-footer {
  flex: 0 0 var(--mm-footer-h);
  display: flex;
  align-items: stretch;
  background: #fff;
  box-shadow: 0 0 36px -24px #464646;
  z-index: 1;
}

#mm-root .megamenu-footer .megamenu-main {
  background: transparent;
  overflow-y: visible;
  padding-top: 0;
  padding-bottom: 0;
}
#mm-root .megamenu-footer .megamenu-main-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#mm-root .megamenu-footer .megamenu-feature {
  background-image: none !important;
  background-color: transparent;
  overflow-y: visible;
  padding-top: 0;
  min-width: 0;
}
#mm-root .mm-footer-tabs {
  display: flex;
  align-items: center;
  gap: var(--mm-gap4);
}
#mm-root .mm-footer-tab {
  display: flex;
  align-items: center;
  gap: var(--mm-gap1);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mm-text);
  cursor: pointer;
  transition: color 0.2s;
}
#mm-root .mm-footer-tab:hover { color: var(--mm-grey); }
#mm-root .mm-footer-tab .mm-footer-icon { width: auto; height: 1em; fill: var(--mm-icon-fill); }
#mm-root .mm-footer-cta {
  display: flex;
  align-items: end;
  gap: var(--mm-gap1);
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  line-height: 0.9;
}
#mm-root .mm-footer-cta:hover { text-decoration: underline; }

/* ── Badge ── */
#mm-root .mm-badge {
  display: inline-block;
  background: var(--mm-badge-bg);
  color: #fff;
  text-shadow: 0px 0px 1.5em #000;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 4px;
  width: fit-content;
}

#mm-root .mm-feature-headline {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.25;
}
#mm-root .mm-feature-body {
  font-size: 0.72rem;
  color: #000;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
#mm-root .mm-feature-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,1);
  text-decoration: underline;	
}
#mm-root .mm-feature-link:hover { color: #fff; }
#mm-root .mm-feature-cta {
  display: flex;
  align-items: end;
  line-height: 0.9;
  gap: var(--mm-gap1);
  font-size: 0.72rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  margin-top: auto;
  align-self: end;
}
#mm-root .mm-feature-cta:hover { text-decoration: underline; }
#mm-root .mm-arrow { width: 14px; height: auto; fill: currentColor; flex-shrink: 0; }

/* ── SHOP ── */
#mm-root .megamenu-main-inner.megamenu-main-inner--shop {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mm-gap4) var(--mm-gap4);
  align-content: flex-start;
  align-items: flex-start;
}
#mm-root .megamenu-shop-block {
  display: flex;
  flex-direction: column;
  gap: var(--mm-gap1);
  min-width: 280px;
  flex: 1 1 0;
}
#mm-root .megamenu-shop-block--specials { flex: 1 1 0; }
#mm-root .megamenu-shop-title { margin-bottom: var(--mm-gap0); }
#mm-root .shop-product-headline {
  font-family: 'RLT-extended', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: var(--gap1);
  color: var(--mm-text);
}
#mm-root .megamenu-shop-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 2px;
  border-radius: 0 var(--mm-radius) var(--mm-radius) 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
  margin-bottom: var(--mm-gap0);
}
#mm-root .megamenu-shop-card:hover { opacity: 0.85; }
#mm-root .mm-card-img { flex: 0 0 65px; }
#mm-root .mm-card-img picture, #mm-root .mm-card-img img { display: block; width: 65px; height: 65px; object-fit: cover; }
#mm-root .mm-card-text {
  flex: 1 1 auto;
  padding: var(--mm-gap0) var(--mm-gap2);
  display: flex;
  flex-direction: column;
  gap: var(--mm-gap0);
  justify-content: center;
}
#mm-root .mm-card-name { font-weight: 600; font-size: 0.72rem; line-height: 1; }
#mm-root .mm-card-text .text-fine { font-size: 0.72rem; line-height: 1.35; }
#mm-root .mm-specials-link {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mm-grey-dark);
  text-decoration: underline;
  padding: var(--mm-gap0) 0;
}
#mm-root .mm-specials-link:hover { color: var(--mm-grey); }

/* ── RESOURCES ── */
#mm-root .megamenu-main-inner.megamenu-main-inner--resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mm-gap3) var(--mm-gap3);
  align-content: start;
}
#mm-root .mm-res-block { display: flex; flex-direction: column; gap: var(--mm-gap1); }
#mm-root .mm-res-heading {
  display: flex; align-items: baseline; gap: var(--mm-gap2);
  font-family: 'RLT-extended', sans-serif; font-weight: 200; font-size: 1.2rem;
  line-height: 2; color: var(--mm-text);
}
#mm-root .mm-res-icon { display: inline-flex; flex-shrink: 0; height: 1em; width: auto; position: relative; top: 2px; }
#mm-root .mm-res-icon--lg  { height: 1.5em; right: 0px; top: 0.3em; }
#mm-root .mm-res-icon--xl  { height: 1.8em; right: 4px; top: 0.3em; }
#mm-root .mm-res-icon .mm-svg-fill { height: 100%; width: auto; fill: var(--mm-icon-fill); display: block; }
#mm-root .mm-res-item {
  display: flex; flex-direction: row; align-items: flex-start; gap: 2px;
  text-decoration: none; color: inherit; transition: opacity 0.2s;
}
#mm-root .mm-res-item:hover { opacity: 0.8; }
#mm-root .mm-res-thumb { flex: 0 0 65px; }
#mm-root .mm-res-thumb img { display: block; width: 65px; height: 65px; object-fit: cover; border-radius: 4px; }
#mm-root .mm-res-thumb--landscape { flex: 0 0 auto; }
#mm-root .mm-res-thumb--landscape img { width: 115px; height: 65px; }
#mm-root .mm-res-text { display: flex; padding: var(--mm-gap0) var(--mm-gap2); flex-direction: column; gap: var(--mm-gap0); min-width: 0; }
#mm-root .mm-res-title {
  font-weight: 600; font-size: 0.72rem; line-height: 1.3; color: var(--mm-text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
#mm-root .mm-res-text .text-fine {
  font-size: 0.72rem; color: var(--mm-text-muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#mm-root .mm-res-item--card { display: block; border-radius: var(--mm-radius); overflow: hidden; text-decoration: none; color: inherit; transition: opacity 0.2s; }
#mm-root .mm-res-item--card:hover { opacity: 0.85; }
#mm-root .mm-res-card-inner { padding: var(--mm-gap1) var(--mm-gap2) var(--mm-gap1) 0; display: flex; flex-direction: column; gap: 4px; }
#mm-root .mm-res-card-heading { font-weight: 700; font-size: 0.82rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mm-root .mm-res-card-body { font-size: 0.75rem; color: var(--mm-grey-dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#mm-root .mm-res-card-body .mm-res-more { font-weight: 600; text-decoration: underline; }
#mm-root .mm-res-item--testimonial .mm-res-card-inner { background: transparent; }
#mm-root .mm-res-item--testimonial .mm-res-card-heading { color: #e07b6a; }
#mm-root .mm-res-item--case-study .mm-res-card-inner { background: transparent; }
#mm-root .mm-res-item--case-study .mm-res-card-heading { color: #0098ce; }
#mm-root .mm-res-seeall {
  display: flex; align-items: end; gap: var(--mm-gap1); font-size: 0.72rem;
  font-weight: 400; color: #aaa; text-decoration: none; margin-top: auto;
  padding-top: var(--mm-gap1); align-self: flex-end; line-height: 0.9;
}
#mm-root .mm-res-seeall:hover { color: #666; text-decoration: underline; }
#mm-root .mm-more-grid { display: flex; gap: var(--mm-gap3); }
#mm-root .mm-more-col { display: flex; flex-direction: column; }
#mm-root .mm-more-link {
  display: flex; align-items: center; gap: 6px; font-size: 0.72rem;
  color: var(--mm-grey-dark); text-decoration: none; font-weight: 600; padding: var(--mm-gap0) 0;
}
#mm-root .mm-more-link span { text-decoration: underline; }
#mm-root .mm-more-icon { display: inline-flex; flex-shrink: 0; width: 1.1rem; height: 1.1rem; overflow: hidden; }
#mm-root .mm-more-icon svg { display: block; width: 100% !important; height: 100% !important; }
#mm-root .mm-more-link:hover { color: var(--mm-grey); }
#mm-root .mm-more-link--social { display: flex; align-items: center; gap: var(--mm-gap0); }
#mm-root .mm-social-icon { width: 18px; height: auto; }

/* ── SUPPORT ── */
#mm-root .megamenu-main-inner.megamenu-main-inner--support { display: grid; grid-template-columns: 1fr 1fr; gap: var(--mm-gap3) var(--mm-gap4); align-content: start; }
#mm-root .mm-support-block { display: flex; flex-direction: column; gap: var(--mm-gap1); }
#mm-root .mm-support-content { flex: 1; }
#mm-root .mm-support-heading {
  display: flex; align-items: baseline; gap: var(--mm-gap1);
  font-family: 'RLT-extended', sans-serif; font-weight: 200; font-size: 1.2rem;
  line-height: 2; margin: 0; color: var(--mm-text);
}
#mm-root .mm-support-content p { font-size: 0.72rem; color: var(--mm-text-muted); margin: 0 0 var(--mm-gap1); line-height: 1.35; }
#mm-root .mm-support-content p:first-of-type { font-weight: 500; }
#mm-root .mm-support-email { font-weight: 700; color: var(--mm-text); text-decoration: underline; font-size: 0.72rem; }
#mm-root .mm-support-email:hover { color: var(--mm-grey); }
#mm-root .mm-support-link { font-weight: 600; color: var(--mm-grey-dark); text-decoration: underline; font-size: 0.72rem; }
#mm-root .mm-support-link:hover { text-decoration: underline; }
#mm-root .mm-support-link--calendly { color: #006bff; }
#mm-root .mm-support-link--calendly:hover { color: #0052cc; }
#mm-root .mm-support-link--chat { color: #3dcc13 !important; font-size: 0.72rem !important; font-weight: 600 !important; }
#mm-root .mm-support-link--chat:hover { color: #2faa0f !important; }

/* Form Fields - CRITICAL PROTECTION */
#mm-root .mm-warranty-form { display: flex; flex-direction: column; gap: var(--mm-gap2); width: 100%; }
#mm-root .mm-form-field { display: flex; flex-direction: column; gap: 3px; }
#mm-root .mm-form-field label { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.9); }
#mm-root .mm-form-field input,
#mm-root .mm-form-field textarea {
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: var(--mm-radius);
  padding: 14px;
  font-size: 0.72rem;
  font-family: inherit;
  color: var(--mm-text);
  width: 100%;
  box-sizing: border-box;
}
#mm-root .mm-form-field input:focus,
#mm-root .mm-form-field textarea:focus { outline: 2px solid var(--mm-grey); outline-offset: 0; }
#mm-root .mm-tooltip { position: relative; display: inline-block; }
#mm-root .mm-tooltip-trigger { font-size: 0.68rem; color: rgba(255,255,255,0.7); text-decoration: underline; cursor: default; display: block; text-align: right; }
#mm-root .mm-tooltip-text {
  display: none; position: absolute; bottom: calc(100% + 6px); right: 0;
  background: rgba(30,30,30,0.92); color: #fff; font-size: 0.72rem;
  font-weight: 400; line-height: 1.4; padding: 7px 10px; border-radius: 6px;
  white-space: normal; width: 180px; pointer-events: none; z-index: 10;
}
#mm-root .mm-tooltip:hover .mm-tooltip-text,
#mm-root .mm-tooltip:focus-within .mm-tooltip-text { display: block; }
#mm-root .mm-form-optional { font-weight: 400; opacity: 0.7; }
#mm-root .mm-form-status { font-size: 0.82rem; padding: var(--mm-gap1); border-radius: var(--mm-radius); background: rgba(255,255,255,0.15); color: #fff; }
#mm-root .mm-form-status[data-ok="true"]  { background: rgba(76,175,80,0.4); }
#mm-root .mm-form-status[data-ok="false"] { background: rgba(231,76,60,0.4); }
#mm-root .mm-warranty-submit {
  background: #0097ce; color: #fff; border: none; border-radius: var(--mm-radius);
  padding: 12px 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; cursor: pointer; transition: background 0.2s;
  margin-top: var(--mm-gap0); align-self: flex-end;
}
#mm-root .mm-warranty-submit:hover { background: #2faa0f; }

/* ── SEARCH ── */
#mm-root .megamenu-main-inner.megamenu-main-inner--search { display: flex; flex-direction: column; gap: var(--mm-gap3); justify-content: flex-start; align-items: stretch; }
#mm-root .mm-search-bar { display: flex; align-items: center; gap: var(--mm-gap1); background: #ffd20044; border-radius: var(--mm-radius); border: 2px solid #ffd200; padding: var(--mm-gap2); width: 100%; }
#mm-root .mm-search-icon { width: 24px; height: auto; flex-shrink: 0; }
#mm-root .mm-search-icon .st0 {fill: #ffd200;}
#mm-root .mm-search-input { flex: 1; border: none; box-shadow: none; padding: 0px; background: transparent; font-size: 0.82rem; font-family: inherit; color: #000; outline: none; }
#mm-root .mm-search-input::placeholder { color: #aaa; }
#mm-root .mm-search-mic { background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center; display: none; }
#mm-root .mm-mic-icon { width: 18px; height: auto; }
#mm-root .mm-search-wrap { display: flex; flex-direction: row; gap: var(--mm-gap3); }
#mm-root .mm-aids-wrap { display: flex; flex-direction: column; gap: var(--mm-gap3); }
#mm-root .mm-search-results { display: flex; min-width: 60%; flex-direction: column; gap: var(--mm-gap1); background: #fff; border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.10); padding: var(--mm-gap2); }
#mm-root .mm-results-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--mm-text-muted); margin-bottom: 12px; }
#mm-root .mm-results-query { font-style: italic; }
#mm-root .mm-results-clear { background: none; border: none; cursor: pointer; font-size: 0.72rem; color: var(--mm-text-muted); padding: 0; }
#mm-root .mm-results-clear:hover { color: var(--mm-text); }
#mm-root .mm-result-bucket + .mm-result-bucket { margin-top: var(--mm-gap1); }
#mm-root .mm-result-bucket-heading { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mm-text-muted); margin: 0 0 4px; }
#mm-root .mm-result-item { display: block; font-size: 0.72rem; color: var(--mm-text); text-decoration: none; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
#mm-root .mm-result-item:hover { color: var(--mm-grey); }
#mm-root .mm-result-item > span:first-child { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
#mm-root .mm-result-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.72rem; color: var(--mm-text-muted); }
#mm-root .mm-results-viewall { display: flex; align-items: end; line-height: 0.9; gap: var(--mm-gap1); font-size: 0.72rem; font-weight: 600; color: var(--mm-grey-dark); text-decoration: none; margin-top: var(--mm-gap0); }
#mm-root .mm-results-viewall:hover { text-decoration: underline; }
#mm-root .mm-search-aids { display: flex; flex-direction: column; gap: var(--mm-gap2); }
#mm-root .mm-search-history, #mm-root .mm-search-popular { display: flex; flex-direction: column; gap: var(--mm-gap2); }
#mm-root .mm-search-aid-heading { display: flex; align-items: center; gap: var(--mm-gap1); font-size: 0.72rem; font-weight: 700; margin: 0; }
#mm-root .mm-aid-icon { width: 18px; height: auto; }
#mm-root .mm-aid-icon--history { fill: var(--mm-grey); }
#mm-root .mm-search-aid-heading--history { color: #3ad531; }
#mm-root .mm-search-aid-heading--popular { color: #0097ce; }
#mm-root .mm-history-tags { display: flex; flex-wrap: wrap; gap: var(--mm-gap0) var(--mm-gap2); }
#mm-root .mm-btn-unstyled { background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 0; outline: none; -webkit-appearance: none; }
#mm-root .mm-history-tag { display: inline-flex; align-items: flex-start; line-height: 1.25; gap: 4px; background: none; border-radius: 0; padding: 0; font-size: 0.72rem; font-weight: 500; cursor: pointer; border: none; color: #999; }
#mm-root .mm-history-tag:hover { color: var(--mm-grey); }
#mm-root .mm-history-remove { background: none; border: none; padding: 0; font-size: 1.5em; color: #bbb; cursor: pointer; line-height: 1; }
#mm-root .mm-history-remove:hover { color: var(--mm-text); }
#mm-root .mm-popular-list { display: flex; flex-wrap: wrap; gap: var(--mm-gap0); }
#mm-root .mm-popular-tag { background: none; border: none; font-size: 0.72rem; color: #999; cursor: pointer; padding: 0; font-weight: 500; }
#mm-root .mm-popular-tag:not(:last-child)::after { content: ' |'; color: #ccc; margin-left: 4px; }
#mm-root .mm-popular-tag:hover { color: var(--mm-grey); }
#mm-root .mm-categories { display: grid; grid-template-columns: 2fr 1fr; gap: var(--mm-gap3) var(--mm-gap2); width: 100%; }
#mm-root .mm-cat-group { display: flex; flex-direction: column; gap: 4px; }
#mm-root .mm-cat-heading { font-weight: 700; font-size: 0.82rem; color: #fff; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.05em; }
#mm-root .mm-cat-group a { line-height: 1.5; font-size: 0.62rem; font-weight: 600; color: rgba(0,0,0,0.85); text-decoration: underline; }
#mm-root .mm-cat-group a:hover { color: #fff; text-decoration: underline; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  #mm-root .mm-feat-card { height: 180px; }
  #mm-root .mm-search-wrap { flex-direction: column; }	
  #mm-root .mm-card-text .text-fine { line-height: 1.2; font-weight: 500; }
  #mm-root .mm-card-name { font-weight: 700; }
  #mm-root .megamenu-container {
    position: fixed; top: var(--mm-header-h); left: auto; right: 0; transform: translateX(100%);
    width: 90%; max-width: 420px; height: calc(100dvh - var(--mm-header-h));
    max-height: calc(100dvh - var(--mm-header-h)); overflow: hidden;
    transition: transform 400ms ease, opacity 400ms ease; box-shadow: -4px 0 24px rgba(0,0,0,0.2);
  }
  #mm-root .megamenu-container.megamenu-open { transform: translateX(0); opacity: 1; }
  #mm-root .megamenu-inner { flex-direction: column; overflow-y: auto; height: calc(100dvh - var(--mm-header-h) - var(--mm-footer-h)); }
  #mm-root .megamenu-feature { flex: 0 0 auto; min-height: 200px; background-image: none !important; order: 2; padding-top: 0px; }
  #mm-root .megamenu-feature--shop      { background-image: url('/app/mu-plugins/comra-megamenu/assets/img/Shop/featured-shop-mobile.webp') !important; }
  #mm-root .megamenu-feature--resources { background-image: url('/app/mu-plugins/comra-megamenu/assets/img/Resources/featured-resources-mobile.webp') !important; }
  #mm-root .megamenu-feature--support   { background-image: url('/app/mu-plugins/comra-megamenu/assets/img/Support/featured-support-mobile.webp') !important; }
  #mm-root .megamenu-feature--search    { background-image: url('/app/mu-plugins/comra-megamenu/assets/img/Search/featured-search-mobile.webp') !important; }
  #mm-root #megamenu-shop .megamenu-feature, #mm-root #megamenu-resources .megamenu-feature { order: 1; }
  #mm-root #megamenu-shop .megamenu-main, #mm-root #megamenu-resources .megamenu-main { order: 2; }
  #mm-root .megamenu-main { flex: 1 0 auto; order: 1; overflow-y: visible; }
  #mm-root .megamenu-main-inner { padding-right: 0; max-width: 100%; }
  #mm-root .megamenu-main-inner.megamenu-main-inner--shop { flex-direction: column; padding-top: 0px; }
  #mm-root .megamenu-shop-block { min-width: 0; flex: none; }
  #mm-root .mm-card-img { flex: 0 0 65px; }
  #mm-root .mm-card-img picture, #mm-root .mm-card-img img { width: 65px; height: 85px; }
  #mm-root .megamenu-main-inner.megamenu-main-inner--resources { grid-template-columns: 1fr; }
  #mm-root .mm-res-item--landscape { flex-direction: column; max-width: 100%; }
  #mm-root .mm-res-item--landscape .mm-res-thumb--landscape, #mm-root .mm-res-item--landscape .mm-res-text { width: 100%; }
  #mm-root .mm-res-thumb--landscape img { width: 100%; height: auto; aspect-ratio: 16/9; }
  #mm-root .mm-res-item--landscape + .mm-res-item--landscape { margin-top: var(--mm-gap2); }
  #mm-root .megamenu-main-inner.megamenu-main-inner--support { grid-template-columns: 1fr; }
  #mm-root .megamenu-footer { position: sticky; bottom: 0; flex: 0 0 var(--mm-footer-h); }
  #mm-root .megamenu-footer .megamenu-main { flex: 1 0 0%; }
  #mm-root .megamenu-footer .megamenu-main-inner { max-width: 100%; margin-left: 0; padding-right: 0; justify-content: space-around; }
  #mm-root .megamenu-footer .megamenu-feature { display: none; }
  #mm-root .mm-footer-cta { display: none; }
  #mm-root .mm-footer-tabs { gap: 0; width: 100%; justify-content: space-around; }
  #mm-root .mm-footer-tab { flex: 1; flex-direction: column; justify-content: center; gap: var(--mm-gap0); font-size: clamp(0.7rem, 3.5vw, 0.9rem); }
  #mm-root .mm-footer-tab .mm-footer-icon { width: 22px; }
}

/* ── HEADER BAR ── */
#mm-root .mm-header-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 10000; transition: background 300ms ease, box-shadow 300ms ease; background: transparent; color: #fff; font-family: inherit; }
.admin-bar #mm-root .mm-header-wrap { top: 32px; }
.admin-bar #mm-root .megamenu-container { top: calc(32px + var(--mm-header-h)); }
@media screen and (max-width: 782px) {
  .admin-bar #mm-root .mm-header-wrap { top: 46px; }
  .admin-bar #mm-root .megamenu-container { top: calc(46px + var(--mm-header-h)); }
}
#mm-root .mm-header-wrap * { box-sizing: border-box; }
#mm-root .mm-header-wrap a, #mm-root .mm-header-wrap button { color: inherit; font-family: inherit; }
#mm-root .mm-header-wrap.mm-header-scrolled { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,0.08); color: var(--mm-text); }
#mm-root .mm-header-wrap .mm-header-inner { display: flex; flex-direction: row; align-items: center; justify-content: space-between; height: var(--mm-header-h); padding: 0 var(--mm-gap4); gap: var(--mm-gap3); max-width: 1920px; width: 100%; box-sizing: border-box; }
#mm-root .mm-header-wrap .mm-header-logo { display: flex; align-items: center; margin-right: auto; }
#mm-root .mm-header-wrap .comra-logo { height: 22px; width: auto; align-self: center; filter: brightness(0) invert(1); transition: filter 300ms ease; }
#mm-root .mm-header-wrap.mm-header-scrolled .comra-logo { filter: none; }
#mm-root .mm-header-wrap .mm-header-nav { display: flex; flex-direction: row; align-items: center; height: 100%; gap: var(--mm-gap3); }
#mm-root .mm-header-wrap .mm-nav-btn { background: none; border: none; padding: 0; margin: 0; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; line-height: 1; }
#mm-root .mm-header-wrap .mm-nav-btn:hover { opacity: 0.7; }
#mm-root .mm-header-wrap .mm-nav-btn.active { font-weight: 700; }
#mm-root .mm-header-wrap .mm-header-actions { display: flex; align-items: center; gap: var(--mm-gap2); }
#mm-root .mm-header-wrap .mm-cart-btn { position: relative; display: flex; align-items: center; text-decoration: none; }
#mm-root .mm-header-wrap .mm-cart-icon { height: 2.4rem; width: auto; padding: 9px 6px; filter: brightness(0) invert(1); transition: filter 300ms ease; }
#mm-root .mm-header-wrap.mm-header-scrolled .mm-cart-icon { filter: none; }
#mm-root .mm-header-wrap .mm-cart-badge { display: none; position: absolute; top: 10px; left: 9px; width: 0.85rem; height: 0.85rem; background: #ffd200; border-radius: 50%; font-size: 0.55rem; font-weight: 700; line-height: 1.2; text-align: center; color: #333; padding: 0 2px; }
#mm-root .mm-header-wrap .mm-cart-badge.cart-counter--visible { display: block; }
#mm-root .mm-header-wrap .mm-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; padding: 6px; margin: 0; cursor: pointer; width: 36px; height: 36px; }
#mm-root .mm-header-wrap .mm-hamburger-line { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 250ms ease, opacity 250ms ease; transform-origin: center; }
#mm-root .mm-header-wrap .mm-hamburger--open .mm-hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#mm-root .mm-header-wrap .mm-hamburger--open .mm-hamburger-line:nth-child(2) { opacity: 0; }
#mm-root .mm-header-wrap .mm-hamburger--open .mm-hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  #mm-root .mm-header-wrap .mm-header-nav { display: none; }
  #mm-root .mm-header-wrap .mm-hamburger { display: flex; }
}
#mm-root .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
