/* =============================================================================
   BCG Megamenu — megamenu.css

   Layout:
   - Horizontal nav bar
   - Full-width panel: LEFT = horizontal image+label cards, RIGHT = link columns
   - Cards: square image on left, label text on right (like WebstaurantStore)

   Customise by overriding CSS variables:
   .mm-wrapper { --mm-bar-bg: #cc0000; }
   ============================================================================= */

/* ── Variables ────────────────────────────────────────────────────────────── */
.mm-wrapper {
  /* Nav bar */
  --mm-bar-bg: transparent;
  --mm-bar-height: 48px;
  --mm-bar-text: #1e48c0;
  --mm-bar-text-hover: #fff;
  --mm-bar-active-bg: #1e48c0;
  --mm-bar-font-size: 13.5px;
  --mm-bar-font-weight: 600;
  --mm-bar-font-family: inherit;
  --mm-bar-max-width: 1500px;

  /* Panel */
  --mm-panel-bg: #ffffff;
  --mm-panel-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
  --mm-panel-border: 1px solid #dde0e4;
  --mm-panel-z: 99999;
  --mm-panel-max-width: 1500px;

  /* Panel header */
  --mm-panel-title-color: #222222;
  --mm-panel-title-size: 16px;
  --mm-shop-all-color: #1e48c0;
  --mm-shop-all-hover: #1e48c0;

  /* Cards (horizontal: square image left + label right) */
  --mm-card-img-size: 72px; /* square image width & height — change freely */
  --mm-card-border: #dde0e4;
  --mm-card-radius: 4px;
  --mm-card-bg: #ffffff;
  --mm-card-bg-hover: #f5f9f5;
  /* --mm-card-bg-hover: rgba(47, 70, 146, 0.237); */
  --mm-card-img-bg: #f5f5f5;
  --mm-card-label-color: #1e48c0;
  --mm-card-label-hover: #026ef4;
  --mm-card-label-size: 13px;
  --mm-card-label-weight: 700;
  --mm-cards-columns: 2; /* how many cards per row */
  --mm-cards-gap: 5px;

  /* Right panel */
  --mm-right-width: 320px;
  --mm-right-bg: #f7f8fa;
  --mm-right-border: #dde0e4;
  --mm-right-heading-color: #222222;
  --mm-right-link-color: #333333;
  --mm-right-link-hover: #2d6235;
  --mm-right-font-size: 13px;
  --mm-right-columns: 3;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
.mm-wrapper,
.mm-wrapper * {
  box-sizing: border-box;
}
/* .mm-wrapper ul, */
.mm-wrapper li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mm-wrapper a {
  text-decoration: none;
  color: inherit;
}
.mm-wrapper button {
  font-family: var(--mm-bar-font-family);
  cursor: pointer;
}
.mm-wrapper img {
  display: block;
  max-width: 100%;
}

/* ── Outer wrapper ────────────────────────────────────────────────────────── */
.mm-wrapper {
  position: relative; /* panels are position:absolute relative to this */
  width: 100%;
  font-family: var(--mm-bar-font-family);
  font-size: var(--mm-bar-font-size);
  background-color: var(--mm-bar-bg);
  padding: 0 0.5em;
  /* padding: 0; */
}

/* ── Nav bar ──────────────────────────────────────────────────────────────── */
.mm-bar {
  display: flex;
  gap: 0.5em;
  flex-wrap: nowrap;
  max-width: var(--mm-bar-max-width);
  margin: 0 auto;
  align-items: stretch;
  background-color: var(--mm-bar-bg);
  min-height: var(--mm-bar-height);
  padding: 0.5em 0;
}

/* ── Nav item ─────────────────────────────────────────────────────────────── */
.mm-item {
  display: flex;
  align-items: stretch;
  position: static;
}

/* Tab button (has panel) or plain link */
.mm-bar .mm-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 15px;
  height: 100%;
  background: none;
  border: none;
  border-radius: 0;
  /* color: var(--mm-bar-text); */
  font-size: var(--mm-bar-font-size);
  font-weight: var(--mm-bar-font-weight);
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
}

/* Megamenu text color on homepage: Blue Text */
body.home .mm-bar .mm-tab {
  color: var(--mm-bar-text);
}
/* Megamenu text color on subpages: White Text */
.mm-bar .mm-tab {
  color: #fff;
}

#ele-shrink-header.scrolled .mm-bar .mm-tab {
  background: #fff;
  color: #1e48c0;
}
#ele-shrink-header.scrolled .mm-bar .mm-tab:hover,
#ele-shrink-header.scrolled .mm-bar .mm-tab:focus,
#ele-shrink-header.scrolled .mm-bar .mm-tab:focus-visible,
#ele-shrink-header.scrolled .mm-bar .mm-item--open > .mm-tab {
  background: var(--mm-bar-active-bg);
  color: #fff;
}

.mm-bar .mm-tab:hover,
.mm-bar .mm-tab:focus,
.mm-bar .mm-tab:focus-visible,
.mm-bar .mm-item--open > .mm-tab {
  background: #fff;
  color: #1e48c0;
  border-radius: 3px;
  border: none;
  outline: none;
}

body.home .mm-bar .mm-tab:hover,
body.home .mm-bar .mm-tab:focus,
body.home .mm-bar .mm-tab:focus-visible,
body.home .mm-bar .mm-item--open > .mm-tab {
  background: var(--mm-bar-active-bg);
  color: #fff;
  border-radius: 3px;
  border: none;
  outline: none;
}

.mm-tab--link {
  text-decoration: none;
}

.mm-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.15s;
  opacity: 0.8;
}

.mm-item--open > .mm-tab .mm-chevron {
  transform: rotate(180deg);
}

/* ── Panel ────────────────────────────────────────────────────────────────── */
/*
   Hidden by default.
   JS adds .mm-item--open to the parent .mm-item to show it.
   position:absolute — overlays the page, never pushes content down.

   If the panel clips inside Elementor, add to the containing section's
   Advanced → Custom CSS:
       selector { overflow: visible !important; }
*/
.mm-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-width: var(--mm-panel-max-width);
  margin: 0 auto;
  background: var(--mm-panel-bg);
  border: var(--mm-panel-border);
  border-radius: 0 0 6px 6px;
  border-top: none;
  box-shadow: var(--mm-panel-shadow);
  z-index: var(--mm-panel-z);
}
#ele-shrink-header.scrolled .mm-panel {
  margin: 8px auto 0 auto;
}

.mm-item--open > .mm-panel {
  display: block;
}

.mm-panel__inner {
  display: flex;
  align-items: flex-start;
}

/* ── Panel header (title + Shop All) ──────────────────────────────────────── */
.mm-panel__header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8eaed;
}

.mm-panel__title {
  font-size: var(--mm-panel-title-size);
  font-weight: 700;
  color: var(--mm-panel-title-color);
  line-height: 1;
}

.mm-panel__shop-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--mm-shop-all-color);
  text-decoration: none;
  transition: color 0.12s;
}

.mm-panel__shop-all:hover {
  color: var(--mm-shop-all-hover);
  text-decoration: underline;
}

/* ── Left panel ───────────────────────────────────────────────────────────── */
.mm-left {
  width: 50%;
  flex: none;
  padding: 20px 24px;
  border-right: 1px solid var(--mm-right-border);
  min-width: 0;
}

/* Card grid */
.mm-cards {
  display: grid;
  grid-template-columns: repeat(var(--mm-cards-columns), 1fr);
  gap: var(--mm-cards-gap);
}

/* ── Card: horizontal layout (square image left, label right) ─────────────── */
.mm-card {
  /* display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--mm-card-border);
  border-radius: var(--mm-card-radius);
  background: var(--mm-card-bg);
  text-decoration: none;
  transition:
    background 0.13s,
    border-color 0.13s,
    box-shadow 0.13s;
  padding: 8px;
  overflow: hidden; */
}

.mm-card:hover {
  /* background: var(--mm-card-bg-hover);
  border-color: #b5c9b8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07); */
  color: var(--mm-card-label-hover);
}

/* Square image — fixed size, never stretches or shrinks */
.mm-card .mm-card__img {
  width: var(--mm-card-img-size);
  height: var(--mm-card-img-size);
  flex-shrink: 0;
  flex-grow: 0;
  background: var(--mm-card-img-bg);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mm-card .mm-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.18s;
}

.mm-card:hover .mm-card__img img {
  transform: scale(1.05);
}

.mm-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: #e8e8e8;
}

/* Label */
.mm-card__label {
  flex: 1;
  font-size: var(--mm-card-label-size);
  font-weight: var(--mm-card-label-weight);
  color: var(--mm-card-label-color);
  line-height: 1.3;
  transition: color 0.12s;
}

.mm-card:hover .mm-card__label {
  color: var(--mm-card-label-hover);
}

/* ── Right panel ──────────────────────────────────────────────────────────── */
.mm-right {
  width: 50%;
  min-width: 50%;
  /* width: var(--mm-right-width); */
  /* min-width: var(--mm-right-width); */
  flex-shrink: 0;
  background: var(--mm-right-bg);
  border-radius: 0 0 6px 0;
  padding: 7px;
  align-self: stretch;
}
.mm-right img {
  /* border-radius: 0 0 6px 0; */
}

.mm-right__heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--mm-right-heading-color);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mm-right-border);
}

.mm-links {
  column-count: var(--mm-right-columns);
  column-gap: 14px;
  padding-left: 0;
}

.mm-links li {
  break-inside: avoid;
  margin-bottom: 2px;
}

.mm-links__link {
  display: block;
  padding: 4px 0;
  font-size: var(--mm-right-font-size);
  color: var(--mm-right-link-color);
  line-height: 1.4;
  transition: color 0.12s;
}

.mm-links__link:hover {
  color: var(--mm-right-link-hover);
  text-decoration: underline;
}
