/* =========================================
   MH TOPMENU — PILL MENU (GLOBAL)
========================================= */

.mh-topmenu{
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 18px 12px;
  position: relative;
  z-index: 60;
}

.mh-topmenu__pill{
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 10px 12px;
  border-radius: 999px;

  background: #ffffff;
  border: 1px solid #e6e6e6;
}

.mh-topmenu__link{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border-radius: 999px;

  text-decoration: none;
  color: #111;

  font-size: 15px;
  font-weight: 500;

  transition: background .2s ease, opacity .2s ease;
}

.mh-topmenu__link:hover{
  opacity: .85;
}

.mh-topmenu__link.is-active{
  background: #dce9e47c;
}

/* =========================================
   DROPDOWN COMPRAR (CENTRO DA TELA)
========================================= */

.has-dropdown{
  position: relative;
}

/* CENTRALIZA NO VIEWPORT */
.mh-topmenu__dropdown{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 210px; /* ajuste fino */
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;

  background: #ffffff;
  border-radius: 32px;
  padding: 24px;

  box-shadow: 0 30px 80px rgba(0,0,0,.15);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 9999;
}

/* ABRE NO HOVER */
.has-dropdown:hover .mh-topmenu__dropdown{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================================
   DESKTOP: GRID (5 CARDS)
========================================= */

.mh-products{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* CARD */
.mh-product-card{
  border-radius: 28px;
  padding: 20px 18px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.mh-product-card h3{
  font-size: 18px;
  font-weight: 700;
  color: #0e0e0e;
  margin-bottom: 12px;
}

.mh-product-card img{
  width: 140px;
  margin: 0 auto 14px;
}

/* =========================================
   PREÇOS (manual) — igual ao print
========================================= */

.mh-price{
  margin-top: 6px;
  margin-bottom: 12px;
  line-height: 1.15;
}

.mh-price__compare{
  display: block;
  font-size: 13px;
  color: #888;
  text-decoration: line-through;
  margin-bottom: 3px;
}

.mh-price__current{
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #000;
  margin-bottom: 4px;
}

.mh-price__installments{
  display: block;
  font-size: 13px;
  color: #666;
}

/* BOTÃO */
.mh-btn{
  margin-top: 15px;
  background: #F26949;
  color: #111;
  padding: 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: opacity .2s ease;
}

.mh-btn:hover{
  opacity: .85;
}

/* CORES DOS CARDS */
.bg-green{ background:#F0E9F0; }
.bg-peach{ background:#EDF3F0; }
.bg-yellow{ background:#E8F0F7; }
.bg-pink{ background:#E7E9F0; }
.bg-blue{ background:#FBECEE; }

/* =========================================
   CARROSSEL MOBILE/TABLET (2 cards + setas)
========================================= */

.mh-carousel{
  position: relative;
}

/* Setas escondidas no desktop */
.mh-carousel__btn{
  display: none;
}

@media (max-width: 1100px){

  /* vira carrossel horizontal */
  .mh-products.mh-products--carousel{
    display: flex;
    gap: 18px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    padding: 4px 44px; /* espaço pras setas */

    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mh-products.mh-products--carousel::-webkit-scrollbar{
    display: none;
  }

  /* 2 cards por “tela” */
  .mh-products.mh-products--carousel .mh-product-card{
    flex: 0 0 calc((100% - 18px) / 2);
    scroll-snap-align: start;
  }

  /* setas aparecem */
  .mh-carousel__btn{
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 34px;
    height: 34px;
    border-radius: 999px;

    border: 1px solid #e6e6e6;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);

    cursor: pointer;
    user-select: none;
    z-index: 5;
  }

  .mh-carousel__btn.is-prev{ left: 10px; }
  .mh-carousel__btn.is-next{ right: 10px; }
}

/* =========================================
   RESPONSIVO EXTRA
========================================= */

@media (max-width: 600px){

  .mh-topmenu__pill{
    gap: 10px;
  }

  .mh-topmenu__link{
    padding: 10px 12px;
    font-size: 14px;
  }

  .mh-topmenu__dropdown{
    top: 200px; /* pode ajustar no mobile também */
  }
}
