/* ==========================================================================
   MYSELF: Produto em destaque (home) - foto com pins + informacoes na lateral
   ========================================================================== */
.mpd {
  --v: var(--my-green, #016738);
  --v2: var(--my-green-dark, #014a29);
  --tinta: #141414;
  --texto: #555;
  --linha: #e3ebe6;
  --ease: cubic-bezier(.2, .8, .2, 1);
  max-width: 1080px;
  margin: 48px auto 56px;
  padding: 0 15px;
  font-family: var(--my-font, inherit);
}
.mpd *, .mpd *::before, .mpd *::after { box-sizing: border-box; }
.mpd p { margin: 0; }
.mpd button { font-family: inherit; }

/* titulo no mesmo estilo de "Mais vendidos" */
.mpd-cab { margin-bottom: 24px; text-align: center; }
.mpd .mpd-cab h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 14px;
  color: var(--v);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.mpd .mpd-cab h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--v);
  transform: translateX(-50%);
}

/* cartao: foto + informacoes lado a lado (tambem no celular) */
.mpd-cartao {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 8%, rgba(63, 220, 127, .14), transparent 40%),
    linear-gradient(135deg, #f4f8f5 0%, #eaf3ed 100%);
}

/* ---------- foto com pins ---------- */
.mpd-foto {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: #fff;
}
.mpd-foto-link { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.mpd-foto img { display: block; width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; transition: transform 1.2s var(--ease); }
.mpd-foto:hover img { transform: scale(1.03); }

/* foto da cor escolhida: aparece por cima da foto em destaque */
.mpd .mpd-foto-cor {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100% !important;
  border-radius: inherit !important;
  background: #fff;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.mpd-foto.is-cor .mpd-foto-cor { opacity: 1; transform: none; }
.mpd-foto.is-cor .mpd-pin { opacity: 0; visibility: hidden; }
.mpd-pin { transition: opacity .3s ease, visibility .3s; }
.mpd-pin { position: absolute; z-index: 2; transform: translate(-50%, -50%); }
.mpd .mpd-pin-ponto {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: transform .25s var(--ease);
}
.mpd .mpd-pin-ponto span { width: 10px; height: 10px; border-radius: 50%; background: var(--v); }
.mpd .mpd-pin-ponto::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  animation: mpd-pulso 2.4s ease-out infinite;
  animation-delay: var(--atraso, 0ms);
}
@keyframes mpd-pulso { 0% { transform: scale(.7); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.mpd .mpd-pin-ponto:hover, .mpd .mpd-pin.is-on .mpd-pin-ponto { transform: scale(1.12); }
.mpd .mpd-pin-ponto:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.mpd-pin-info {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .25s ease, transform .25s var(--ease);
}
.mpd-pin-esq .mpd-pin-info { left: auto; right: calc(100% + 8px); }
.mpd-pin-info b { color: var(--tinta); font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.mpd-pin-info small { display: none; color: var(--texto); font-size: 11.5px; line-height: 1.3; }
.mpd-pin:hover .mpd-pin-info small, .mpd-pin.is-on .mpd-pin-info small { display: block; }
.mpd-pin:hover, .mpd-pin.is-on { z-index: 3; }

/* ---------- informacoes ---------- */
.mpd-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mpd .mpd-nome { margin: 0; font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; text-transform: none; }
.mpd .mpd-nome a { color: var(--tinta); text-decoration: none; transition: color .2s ease; }
.mpd .mpd-nome a:hover { color: var(--v); }
.mpd-preco { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.mpd-preco strong, .mpd-preco strong .amount { color: var(--v); font-size: 28px; font-weight: 800; line-height: 1; }
.mpd-preco del { color: #9aa19d; font-size: 15px; }
.mpd-preco small { flex-basis: 100%; margin-top: 4px; color: var(--texto); font-size: 13.5px; }
.mpd-preco small .amount { color: var(--tinta); font-weight: 700; }

.mpd-op { display: flex; flex-direction: column; gap: 9px; }
.mpd-op-rot { color: var(--tinta); font-size: 13.5px; font-weight: 700; }
.mpd-cor-nome { margin-left: 6px; color: var(--texto); font-weight: 500; }
.mpd-cor-nome:not(:empty)::before { content: "· "; }
.mpd-cores, .mpd-tams { display: flex; flex-wrap: wrap; gap: 8px; }
.mpd .mpd-cor {
  all: unset;
  box-sizing: border-box;
  width: 46px;
  height: 56px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--linha);
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s var(--ease);
}
.mpd .mpd-cor img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.mpd .mpd-cor:hover { transform: translateY(-2px); }
.mpd .mpd-cor.is-on { box-shadow: 0 0 0 2px var(--v); }
.mpd .mpd-cor:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; }
.mpd .mpd-tam {
  all: unset;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--linha);
  border-radius: 999px;
  background: #fff;
  color: var(--tinta);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.mpd .mpd-tam:hover { border-color: var(--v); }
.mpd .mpd-tam.is-on { border-color: var(--v); background: var(--v); color: #fff; }
.mpd .mpd-tam:disabled { color: #b8bdba; text-decoration: line-through; cursor: not-allowed; }
.mpd .mpd-tam:focus-visible { outline: 2px solid var(--v); outline-offset: 2px; }

.mpd .mpd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 240px;
  min-height: 54px;
  margin-top: 2px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--v);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(1, 103, 56, .25);
  transition: background-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.mpd .mpd-btn:hover { background: var(--v2); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(1, 103, 56, .3); }
.mpd .mpd-btn:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; }

/* entrada ao rolar */
.mpd-anima .mpd-cartao { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.mpd-anima.is-in .mpd-cartao { opacity: 1; transform: none; }

/* ---------- celular: continua lado a lado, mais compacto ---------- */
@media (max-width: 860px) {
  .mpd { margin: 36px auto 40px; padding: 0 12px; }
  .mpd-cab { margin-bottom: 18px; }
  .mpd-cartao { grid-template-columns: 54% minmax(0, 1fr); gap: 12px; align-items: stretch; padding: 10px; border-radius: 20px; }
  .mpd-foto { max-width: none; border-radius: 14px; }
  .mpd-info { justify-content: center; gap: 11px; padding: 4px 2px; }
  .mpd .mpd-nome { font-size: 16px; line-height: 1.2; }
  .mpd-preco strong, .mpd-preco strong .amount { font-size: 19px; }
  .mpd-preco del { font-size: 12px; }
  .mpd-preco small { margin-top: 2px; font-size: 11px; }
  .mpd-op { gap: 6px; }
  .mpd-op-rot { font-size: 11.5px; }
  .mpd-cor-nome { display: none; }
  .mpd-cores, .mpd-tams { gap: 5px; }
  .mpd .mpd-cor { width: 32px; height: 40px; border-radius: 8px; }
  .mpd .mpd-tam { min-width: 0; width: 32px; height: 30px; padding: 0; font-size: 11.5px; }
  .mpd .mpd-tam:nth-child(n) { flex: 0 0 auto; }
  .mpd .mpd-btn { align-self: stretch; min-width: 0; min-height: 40px; padding: 0 10px; font-size: 11.5px; letter-spacing: .04em; box-shadow: 0 6px 16px rgba(1, 103, 56, .22); }

  /* pins: so o ponto; a etiqueta aparece ao tocar */
  .mpd .mpd-pin-ponto { width: 22px; height: 22px; }
  .mpd .mpd-pin-ponto span { width: 8px; height: 8px; }
  .mpd-pin-info { opacity: 0; transform: translateY(-50%) scale(.92); }
  .mpd-pin.is-on .mpd-pin-info { opacity: 1; transform: translateY(-50%); }
  .mpd-pin-info b { font-size: 11px; }
  .mpd-pin-info small { font-size: 10px; white-space: normal; width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .mpd-anima .mpd-cartao { opacity: 1; transform: none; transition: none; }
  .mpd .mpd-pin-ponto::before { animation: none; }
}

/* 21/11: area de toque maior nos pins (o ponto continua do mesmo tamanho) */
.mpd .mpd-pin-ponto::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
