/* Brunetta Massas — Mega menu de Produtos v1.0.10 */
@media (min-width:1200px) {
  .bmmega-attached > ul.sub-menu,
  .bmmega-attached > .sub-menu,
  .bmmega-attached > .dropdown-menu,
  .bmmega-attached > .children,
  .bmmega-attached > .submenu,
  .bmmega-attached:hover > ul.sub-menu,
  .bmmega-attached:hover > .sub-menu { display:none!important; }
}

.bmmega-attached { position:relative; }

.bmmega-panel {
  --bmmega-green:#789a2b;
  --bmmega-green-dark:#557624;
  --bmmega-deep:#405d1d;
  --bmmega-gold:#d7a11a;
  --bmmega-cream:#fff9ef;
  --bmmega-cream-2:#f7f0e4;
  --bmmega-ink:#211f1c;
  --bmmega-muted:#756c61;
  --bmmega-line:#eadcc6;

  box-sizing:border-box;
  z-index:2147483000;
  position:fixed;
  top:var(--bmmega-top,95px);
  left:var(--bmmega-left,16px);
  width:var(--bmmega-width,min(1180px,calc(100vw - 32px)));
  max-height:calc(100dvh - var(--bmmega-top,95px) - 12px);
  background:#fff;
  color:var(--bmmega-ink);
  border:1px solid var(--bmmega-line);
  border-top:3px solid var(--bmmega-gold);
  border-radius:0 0 14px 14px;
  box-shadow:0 20px 48px rgba(56,44,25,.16);
  font-family:inherit;
  font-size:14px;
  line-height:1.4;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(5px);
  transition:opacity .12s ease,transform .12s ease,visibility .12s;
  overflow:hidden;
  text-align:left;
}

.bmmega-panel *, .bmmega-panel *:before, .bmmega-panel *:after { box-sizing:border-box; }
.bmmega-panel.bmmega-open { opacity:1; visibility:visible; pointer-events:auto; transform:none; }
.bmmega-panel a { text-decoration:none!important; box-shadow:none!important; }
.bmmega-panel :focus-visible { outline:2px solid var(--bmmega-green)!important; outline-offset:2px; }

.bmmega-body { display:block; min-height:0; }

/* Categorias: barra compacta de filtros */
.bmmega-categories {
  background:#fbf7ef;
  border-bottom:1px solid var(--bmmega-line);
  padding:10px 18px 11px;
  overflow:visible;
}

.bmmega-categories-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:8px;
}

.bmmega-categories-title {
  color:var(--bmmega-deep);
  font-size:13px;
  line-height:1.2;
  font-weight:850;
  margin:0;
}

.bmmega-shop-link {
  display:inline-flex!important;
  align-items:center;
  gap:5px;
  padding:0!important;
  margin:0!important;
  color:var(--bmmega-green-dark)!important;
  font-size:9.5px!important;
  font-weight:850!important;
  white-space:nowrap;
}

.bmmega-category-list {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:5px 6px;
}

.bmmega-category-entry {
  display:flex;
  align-items:center;
  min-width:0;
  min-height:30px;
  margin:0;
  border:1px solid #e6dac7;
  border-radius:999px;
  background:#fff;
  overflow:hidden;
  transition:background .1s ease,border-color .1s ease;
}

.bmmega-category-entry > a {
  width:100%;
  min-width:0;
  display:block!important;
  padding:7px 10px!important;
  color:#514a41!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-align:center!important;
  text-transform:uppercase!important;
  letter-spacing:.18px!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bmmega-category-name { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bmmega-category-entry:hover { border-color:#b9c98e; }
.bmmega-category-entry.bmmega-selected { background:var(--bmmega-green); border-color:var(--bmmega-green); }
.bmmega-category-entry.bmmega-selected > a { color:#fff!important; font-weight:850!important; }

/* Produtos */
.bmmega-products {
  background:#fff;
  padding:11px 18px 13px;
  overflow:visible;
}

.bmmega-products-group { display:none; }
.bmmega-products-group.bmmega-visible { display:block; }

.bmmega-products-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 1px 8px;
  margin-bottom:7px;
  border-bottom:1px solid #eee5d8;
}

.bmmega-products-head h3 {
  margin:0!important;
  color:var(--bmmega-ink)!important;
  font-size:17px!important;
  line-height:1.15!important;
  font-weight:850!important;
  text-transform:uppercase!important;
  letter-spacing:.15px!important;
}

.bmmega-products-head > a {
  color:var(--bmmega-green-dark)!important;
  font-size:12.5px!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:.1px!important;
  white-space:nowrap;
}
.bmmega-products-head > a:hover { color:var(--bmmega-green)!important; }

.bmmega-product-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px 8px;
}

.bmmega-product-card {
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr);
  gap:8px;
  align-items:center;
  min-width:0;
  min-height:58px;
  padding:6px!important;
  border:1px solid transparent;
  border-radius:9px;
  background:#fff;
  color:var(--bmmega-ink)!important;
  transition:background .1s ease,border-color .1s ease;
}
.bmmega-product-card:hover,
.bmmega-product-card:focus {
  background:var(--bmmega-cream)!important;
  border-color:#ead9bc;
}

.bmmega-product-image {
  width:46px;
  height:46px;
  border-radius:8px;
  overflow:hidden;
  background:var(--bmmega-cream-2);
  display:block;
}
.bmmega-product-image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  margin:0!important;
}

.bmmega-product-copy { min-width:0; display:block; }
.bmmega-product-copy strong {
  display:-webkit-box;
  color:var(--bmmega-ink)!important;
  font-size:13px!important;
  line-height:1.22!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.12px!important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.bmmega-price {
  display:block;
  margin-top:2px;
  color:var(--bmmega-green-dark)!important;
  font-size:13px!important;
  line-height:1.15!important;
  font-weight:900!important;
}
.bmmega-price del { color:#9c9488!important; font-weight:500!important; margin-right:4px; }
.bmmega-price ins { text-decoration:none!important; }
.bmmega-empty { color:var(--bmmega-muted); font-size:11px; margin:9px 2px; }

@media (max-width:1350px) and (min-width:1200px) {
  .bmmega-category-list { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .bmmega-product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

@media (max-width:1199px) {
  #bmmega-panel, .bmmega-panel { display:none!important; }
}

@media (prefers-reduced-motion:reduce) {
  .bmmega-panel, .bmmega-product-card { transition:none; }
}


/* Segurança: o submenu criado para o menu lateral mobile nunca pode vazar para o desktop. */
.bmmega-mobile-categories { display:none!important; }

/* Mobile: submenu leve de categorias dentro do item Produtos */
@media (max-width:1199px) {
  .bmmega-mobile-parent {
    position:relative!important;
  }

  /* A seta de PRODUTOS é fornecida pelo próprio Poco através de
     .menu-item-has-children, igual aos demais itens com submenu. */

  .bmmega-mobile-parent > .bmmega-mobile-categories {
    display:none!important;
    position:static!important;
    float:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    padding:3px 0 10px!important;
    background:#090909!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    overflow:visible!important;
  }

  .bmmega-mobile-parent.bmmega-mobile-open > .bmmega-mobile-categories {
    display:block!important;
  }

  .bmmega-mobile-parent > .bmmega-mobile-categories > li {
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }

  .bmmega-mobile-parent > .bmmega-mobile-categories > li > a {
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:11px 34px 11px 48px!important;
    color:#d8d8d8!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    font-size:15px!important;
    line-height:1.3!important;
    font-weight:500!important;
    text-transform:uppercase!important;
    letter-spacing:.15px!important;
    white-space:normal!important;
  }

  .bmmega-mobile-parent > .bmmega-mobile-categories > li > a:hover,
  .bmmega-mobile-parent > .bmmega-mobile-categories > li > a:focus {
    color:#96bf20!important;
    background:rgba(255,255,255,.035)!important;
  }

  .bmmega-mobile-parent > .bmmega-mobile-categories > li.bmmega-mobile-all {
    margin-top:5px!important;
    padding-top:5px!important;
    border-top:1px solid rgba(255,255,255,.09)!important;
  }

  .bmmega-mobile-parent > .bmmega-mobile-categories > li.bmmega-mobile-all > a {
    color:#f0910e!important;
    font-weight:700!important;
  }
}
