﻿/* ==========================================================================
   components.css â€” peÃ§as reutilizÃ¡veis
   BotÃµes Â· Badges Â· Carrossel Â· Card de produto Â· Tiles Â· Blocos promo
   ========================================================================== */

/* --------------------------------------------------------------------------
   BotÃµes
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  background: var(--grey-900);
  color: var(--text-inverse);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  transition: background var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn:hover {
  background: var(--grey-700);
  color: var(--text-inverse);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand-500);
}

.btn--primary:hover {
  background: var(--brand-600);
}

.btn--block {
  width: 100%;
  padding-block: var(--sp-4);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  border-radius: 0;
}

.btn--ghost {
  background: transparent;
  border: 1.5px solid currentColor;
  color: var(--text-strong);
}

.btn--ghost:hover {
  background: var(--grey-900);
  border-color: var(--grey-900);
  color: var(--text-inverse);
}

/* BotÃ£o redondo sÃ³ com Ã­cone (carrinho, setas, coraÃ§Ã£o). */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-circle);
  color: var(--text-muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.icon-btn:hover {
  background: var(--grey-50);
  color: var(--text-strong);
}

.icon-btn--cart {
  background: var(--brand-500);
  color: var(--text-inverse);
  flex: 0 0 auto;
}

.icon-btn--cart:hover {
  background: var(--brand-600);
  color: var(--text-inverse);
}

/* ConfirmaÃ§Ã£o visual ao adicionar â€” o contador no header sobe ao mesmo tempo. */
.icon-btn--cart.is-added {
  background: var(--success);
  transform: scale(1.12);
}

.icon-btn--fav.is-active {
  color: var(--danger);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Badges e etiquetas
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px var(--sp-2);
  border-radius: var(--r-sm);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  white-space: nowrap;
}

/* "3x sem juros" â€” informativo, discreto. Cinza neutro em vez de rosa: nÃ£o Ã©
   a mensagem que converte, por isso nÃ£o rouba atenÃ§Ã£o ao preÃ§o e ao botÃ£o. */
.badge--pay {
  background: var(--grey-100);
  color: var(--grey-600);
}

.badge--discount {
  background: var(--accent-500);
  color: var(--text-inverse);
}

/* Ãcones de destaque do produto: trofÃ©u, estrela, Ãºltimas unidades. */
.flags {
  display: flex;
  gap: var(--sp-2);
  min-height: 22px;
}

.flag {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--grey-600);
}

.flag svg {
  width: 100%;
  height: 100%;
}

.flag--last {
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   Carrossel
   Scroll nativo com scroll-snap: arrastar com o dedo funciona sem JS.
   O JS sÃ³ trata das setas e da sincronizaÃ§Ã£o dos pontinhos.
   -------------------------------------------------------------------------- */

.carousel {
  --gap: var(--sp-4);
  --per: 1;             /* quantos slides visÃ­veis; aceita fracÃ§Ãµes (ex.: 1.4) */
  position: relative;
}

.carousel__viewport {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.carousel__viewport::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  min-width: 0;   /* sem isto, um conteÃºdo largo faz o slide crescer alÃ©m da base */
  scroll-snap-align: start;
}

/* Pontinhos: o ativo Ã© uma barra azul mais larga. */
.carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.carousel__dot {
  width: 22px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--grey-200);
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}

.carousel__dot.is-active {
  width: 34px;
  background: var(--brand-500);
}

/* Setas do carrossel.
   No TELEMÃ“VEL escondem-se: sobrepunham-se aos cards (cara de amador) e o
   swipe jÃ¡ resolve a navegaÃ§Ã£o. SÃ³ aparecem no DESKTOP, onde hÃ¡ rato e nÃ£o hÃ¡
   toque â€” e aÃ­ ficam fora da zona dos cards, nÃ£o por cima. */
.carousel__arrow {
  display: none;
}

.carousel__arrow svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 1024px) and (hover: hover) {
  .carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: var(--z-sticky);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-circle);
    background: var(--bg-surface);
    color: var(--grey-900);
    box-shadow: var(--sh-lg);
    transform: translateY(-50%);
    transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
  }
  .carousel__arrow:hover {
    background: var(--grey-900);
    color: #fff;
  }
  /* Puxadas para fora da zona dos cards (a --container-pad do lado). */
  .carousel__arrow--prev { left: calc(var(--sp-5) * -1); }
  .carousel__arrow--next { right: calc(var(--sp-5) * -1); }
}

.carousel__arrow[disabled] {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

/* Densidade por tipo de carrossel ---------------------------------------- */

/* O `0px` tem de levar unidade: `calc(100% - (0 * 0))` com zero sem unidade Ã©
   invÃ¡lido, e um calc invÃ¡lido faz cair a declaraÃ§Ã£o `flex` inteira. */
.carousel--hero    { --per: 1; --gap: 0px; }
.carousel--campaign{ --per: 1; --gap: var(--sp-3); }
.carousel--promo   { --per: 1; --gap: var(--sp-4); }
.carousel--reviews { --per: 1.1; --gap: var(--sp-3); }
.carousel--tiles   { --per: 3.2; }
/* Mobile: 2 cards por vista + um espreitar do 3.Âº. Cards mais pequenos =
   vÃª-se mais produto de uma vez, que Ã© o que interessa no telemÃ³vel. */
.carousel--products{ --per: 2.2; --gap: var(--sp-2); }

@media (min-width: 480px) {
  .carousel--products { --per: 2.6; }
}

@media (min-width: 600px) {
  .carousel--tiles    { --per: 4; }
  .carousel--products { --per: 3.2; }
}

@media (min-width: 600px) {
  .carousel--reviews { --per: 2.1; }
}

@media (min-width: 700px) {
  /* Banner vertical sozinho num ecrÃ£ largo ficaria gigante â€” mostramos dois. */
  .carousel--campaign { --per: 2; }
}

@media (min-width: 900px) {
  .carousel--reviews { --per: 3.1; }
}

@media (min-width: 900px) {
  .carousel--promo    { --per: 2; }
  .carousel--tiles    { --per: 6; }
  .carousel--products { --per: 3.4; }
}

@media (min-width: 1100px) {
  .carousel--campaign { --per: 2.4; }
}

@media (min-width: 1200px) {
  .carousel--promo    { --per: 3; }
  .carousel--tiles    { --per: 8; }
  .carousel--products { --per: 5; }
}

/* --------------------------------------------------------------------------
   Banner de campanha
   A imagem Ã© mostrada INTEIRA (contain), nunca cortada â€” o texto gravado nela
   fica sempre legÃ­vel. O vazio Ã  volta Ã© preenchido pela prÃ³pria imagem
   desfocada e ampliada, por isso nÃ£o hÃ¡ barras pretas seja qual for a
   proporÃ§Ã£o. Funciona igual com banner vertical ou horizontal.
   -------------------------------------------------------------------------- */

.campaign {
  position: relative;
  display: block;
  width: 100%;
  /* ProporÃ§Ã£o EXATA dos banners verticais (781x1400). Com o slot a bater
     certo com a imagem, o `cover` preenche tudo â€” sem barras, sem corte. */
  aspect-ratio: 781 / 1400;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--grey-900);      /* rede de seguranÃ§a antes de a imagem carregar */
}

/* Fundo desfocado: sÃ³ aparece se algum banner nÃ£o bater certo com a proporÃ§Ã£o.
   Com banners 9:16 no slot 9:16 fica coberto e nunca se vÃª. */
.campaign__bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.88);
  transform: scale(1.06);
  z-index: 0;
}

.campaign__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;                /* preenche o slot todo â€” sem barras */
  transition: transform var(--dur-slow) var(--ease);
}

.campaign:hover .campaign__img { transform: scale(1.02); }

/* No desktop os banners verticais mostram-se como cartÃµes em pÃ©, vÃ¡rios por
   linha (--per no bloco de densidade), mantendo a mesma proporÃ§Ã£o. */

/* --------------------------------------------------------------------------
   Slide do hero
   -------------------------------------------------------------------------- */

.hero-slide {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 230px;
  padding: var(--sp-6);
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--grey-900);
}

.hero-slide__body {
  position: relative;
  z-index: 1;
}

.hero-slide--pink { background: linear-gradient(115deg, #ffc9dd 0%, #ffb3ce 55%, #ff9ec2 100%); }
.hero-slide--blue { background: linear-gradient(115deg, var(--brand-300) 0%, var(--brand-500) 60%, var(--brand-600) 100%); color: var(--text-inverse); }
.hero-slide--teal { background: linear-gradient(115deg, #9ae6d8 0%, #4fc9b4 55%, #22a58f 100%); }

/* Duas formas decorativas sobrepostas em vez de uma. DÃ£o profundidade e
   evitam que o lado direito do banner fique um vazio de cor chapada. */
.hero-slide::before,
.hero-slide::after {
  content: '';
  position: absolute;
  border-radius: var(--r-circle);
  pointer-events: none;
}

.hero-slide::after {
  right: -90px;
  top: -90px;
  width: 330px;
  height: 330px;
  background: rgba(255, 255, 255, 0.20);
}

.hero-slide::before {
  right: 40px;
  bottom: -120px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.13);
}

/* A ilustraÃ§Ã£o sÃ³ entra quando hÃ¡ largura para ela respirar; abaixo disso
   roubava espaÃ§o ao texto, que Ã© o que interessa no telemÃ³vel. */
.hero-slide__art {
  display: none;
}

@media (min-width: 700px) {
  .hero-slide {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--sp-8);
  }
  .hero-slide__art {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 260px;
    justify-self: center;
    filter: drop-shadow(0 12px 24px rgba(18, 22, 28, 0.18));
  }
}

.hero-slide__eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.hero-slide__title {
  margin-top: var(--sp-2);
  color: inherit;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
}

.hero-slide__text {
  margin-top: var(--sp-3);
  max-width: 34ch;
  font-size: var(--fs-md);
  opacity: 0.85;
}

.hero-slide__cta {
  align-self: flex-start;
  margin-top: var(--sp-5);
}

@media (min-width: 900px) {
  .hero-slide {
    /* Encurtado de propÃ³sito: cada pixel de banner Ã© um pixel a empurrar os
       produtos para fora do primeiro ecrÃ£. */
    min-height: 300px;
    padding: var(--sp-10);
  }
  .hero-slide__title {
    font-size: var(--fs-4xl);
  }
}

/* --------------------------------------------------------------------------
   Bloco de categoria em destaque ("Ver mais +")
   -------------------------------------------------------------------------- */

/* Card de promoÃ§Ã£o com FOTO grande (quadrada) em cima e rodapÃ© com tÃ­tulo +
   botÃ£o. A foto vive em assets/img/promo/; sem ela, cai na ilustraÃ§Ã£o. */
.promo-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--grey-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.promo-block:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }

.promo-block__pic {
  display: block;
  aspect-ratio: 1;
  background: var(--grey-50);
  overflow: hidden;
}
.promo-block__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur-slow) var(--ease);
}
.promo-block:hover .promo-block__pic img { transform: scale(1.04); }

.promo-block__foot {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-4);
}
.promo-block__text { flex: 1; }
.promo-block__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.promo-block__subtitle {
  margin-top: 4px;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   Tile de categoria (quadrado com legenda por baixo)
   -------------------------------------------------------------------------- */

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}

.tile__frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;              /* nÃ£o deixa a imagem esticar a moldura */
  padding: var(--sp-2);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.tile:hover .tile__frame {
  border-color: var(--brand-300);
  transform: translateY(-2px);
}

/* A imagem CABE dentro do quadrado (max-*), em vez de o preencher a 100% e o
   obrigar a crescer. Assim retrato e paisagem ficam no mesmo quadrado. */
.tile__frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  /* Esbate os 12% finais da foto para o branco do cartÃ£o. Nas fotos com fundo
     branco nÃ£o se nota; nas que trazem um cinza-claro de estÃºdio, o rebordo
     funde-se em vez de aparecer como um retÃ¢ngulo colado. */
  -webkit-mask-image: radial-gradient(circle at center, #000 76%, transparent 100%);
  mask-image: radial-gradient(circle at center, #000 76%, transparent 100%);
}

.tile__label {
  /* altura de 2 linhas fixa: tiles com legenda de 1 ou 2 linhas ficam com a
     mesma altura total, alinhados na fila. */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(2 * var(--fs-sm) * var(--lh-snug));
  color: var(--text-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

/* --------------------------------------------------------------------------
   Card de produto
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Blocos de quebra ("breakers") â€” cartÃ£o vertical premium
   Foto no topo MESCLADA num gradiente (nÃ£o flutua numa caixa Ã  parte),
   badge, texto e CTA cheio de cor por baixo. Pensado mobile-first: Ã© a
   mesma estrutura em qualquer largura, como um cartÃ£o de produto grande.
   -------------------------------------------------------------------------- */

.breaker {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.breaker:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }

/* Palco da foto: gradiente que nasce mais claro no topo e escurece atÃ© Ã 
   MESMA cor do painel de texto por baixo â€” a foto "derrete" no cartÃ£o em
   vez de ficar numa caixa separada. */
.breaker__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
}

.breaker__stage img {
  max-width: 68%;
  max-height: 230px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(18, 22, 28, 0.16));
  /* As fotos tÃªm fundo BRANCO opaco (nÃ£o transparente) â€” sem isto, ficam num
     retÃ¢ngulo branco colado em cima do gradiente. O fade comeÃ§a mais cedo
     que nos cards porque aqui o contraste com o fundo escuro Ã© maior. */
  -webkit-mask-image: radial-gradient(circle at center, #000 58%, transparent 92%);
  mask-image: radial-gradient(circle at center, #000 58%, transparent 92%);
}

/* Azul reservado sÃ³ a este bloco (destaques/editorial) â€” o resto do site
   usa preto (aÃ§Ãµes) e laranja (desconto/urgÃªncia); este Ã© o 3Âº tom, para os
   cartÃµes "vitrina" se distinguirem sem voltar a encher o site de cor. */
.breaker__badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px 6px 11px;
  border-radius: var(--r-pill);
  background: #0d87e0;
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(13, 135, 224, 0.32);
}
.breaker__badge--accent {
  background: linear-gradient(135deg, #17a0f0, #0a6cb8);
}
/* âœ“ dentro de um disco branco â€” dÃ¡ o ar de "selo", nÃ£o de autocolante. */
.breaker__badge--accent::before {
  content: "âœ“";
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  color: #0a6cb8;
  font-size: 10px;
  line-height: 1;
}

.breaker__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
}

.breaker__eyebrow {
  color: #0d87e0;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.breaker__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.breaker__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

/* CTA cheio de cor, maiÃºsculas, largura total â€” "aperta aqui", nÃ£o um link
   discreto. Azul, nÃ£o laranja: aqui Ã© destaque editorial, nÃ£o desconto. */
.breaker__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  background: #0d87e0;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 4px 12px rgba(13, 135, 224, 0.28);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.breaker__btn:hover { background: #0a6cb8; box-shadow: 0 6px 16px rgba(13, 135, 224, 0.36); }

@media (min-width: 460px) {
  .breaker__btn { width: auto; align-self: center; padding-inline: var(--sp-8); }
}

/* As duas variantes sÃ£o agora cartÃµes BRANCOS â€” nada de fundo escuro. O
   palco da foto leva sÃ³ um vÃ©u azul muito tÃ©nue que esvai para branco, para
   a foto "derreter" no cartÃ£o sem precisar de um fundo escuro para isso. */
.breaker--dark {
  border: 1px solid var(--grey-100);
}
.breaker--dark .breaker__stage {
  background: radial-gradient(120% 100% at 50% 0%, #eaf4fd 0%, #ffffff 68%);
}
.breaker--dark .breaker__panel { background: var(--bg-surface); color: var(--text); }
.breaker--dark .breaker__title { color: var(--text-strong); }
.breaker--dark .breaker__text { color: var(--text); }

.breaker--light {
  border: 1px solid var(--grey-100);
}
.breaker--light .breaker__stage {
  background: linear-gradient(160deg, #eaf4fd 0%, #ffffff 62%);
}
.breaker--light .breaker__panel { background: var(--bg-surface); }
.breaker--light .breaker__title { color: var(--text-strong); }
.breaker--light .breaker__text { color: var(--text); }

.product {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-3);
  background: var(--bg-surface);
  border: 1px solid var(--grey-100);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);        /* card levanta-se do fundo branco */
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.product:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh-lg);
  transform: translateY(-2px);
}

.product__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 24px;
}

/* Sem padding: as ilustraÃ§Ãµes jÃ¡ trazem o seu prÃ³prio fundo circular, por isso
   o espaÃ§o tem de vir de dentro do SVG e nÃ£o daqui â€” assim ocupam o card todo
   em vez de flutuarem pequenas no meio de branco. */
.product__media {
  position: relative;               /* Ã¢ncora da etiqueta de desconto/mais vendido */
  display: grid;
  place-items: center;
  margin-block: var(--sp-2);
  aspect-ratio: 1;
  min-height: 0;                    /* a imagem nÃ£o pode esticar a moldura */
  overflow: hidden;
}

/* A foto CABE dentro do quadrado (max-*), nunca o obriga a crescer â€” assim
   fotos retrato e paisagem ocupam todas a mesma altura e os cards alinham. */
.product__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease);
  /* mesma vinheta suave dos tiles â€” funde fundos de estÃºdio nÃ£o-brancos. */
  -webkit-mask-image: radial-gradient(circle at center, #000 76%, transparent 100%);
  mask-image: radial-gradient(circle at center, #000 76%, transparent 100%);
}

.product:hover .product__media img {
  transform: scale(1.04);
}

.product__sku {
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product__name {
  margin-top: var(--sp-1);
  min-height: 2.6em;
  color: var(--text-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
}

/* Grupo de preÃ§o encostado ao fundo do card: garante que o botÃ£o "Adicionar"
   e a linha de stock ficam SEMPRE Ã  mesma altura em todos os cards da fila. */
.product__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--sp-2);
  margin-top: auto;               /* empurra preÃ§o+botÃ£o+stock para baixo */
  padding-top: var(--sp-3);
}

/* Linha 1 reservada (preÃ§o antigo + poupanÃ§a). Fica sempre com a mesma altura,
   com ou sem desconto, para o preÃ§o grande alinhar entre cards. */
.product__price-old {
  order: 1;
  color: var(--price-old);
  font-size: var(--fs-xs);
  text-decoration: line-through;
}

.product__save {
  order: 2;
}

.product__price {
  order: 3;
  flex-basis: 100%;              /* preÃ§o grande numa linha sÃ³ */
  color: var(--price);
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.product__price-store {
  order: 4;
  flex-basis: 100%;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: var(--fs-2xs);
}

/* --------------------------------------------------------------------------
   AvaliaÃ§Ãµes
   -------------------------------------------------------------------------- */

.reviews__summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.reviews__score {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  color: var(--text-strong);
  line-height: 1;
}

.reviews__score small {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

.reviews__stars { color: var(--grey-200); }
.reviews__stars .star svg { width: 18px; height: 18px; }
.reviews__stars .star.is-full { color: #f5a623; }

.reviews__count {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.review {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  height: 100%;
  padding: var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.review__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.review__name {
  font-weight: var(--fw-bold);
  color: var(--text-strong);
}

.review__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  color: var(--success);
}

.review__badge svg { width: 13px; height: 13px; }

.review__stars .star svg { width: 15px; height: 15px; }
.review__stars .star.is-full { color: #f5a623; }
.review__stars { color: var(--grey-200); }

.review__text {
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.review__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

.review__prod {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  color: var(--brand-600);
}

.review__date {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Barra de confianÃ§a
   Faixa de garantias logo abaixo do hero. Em telemÃ³vel desliza na horizontal
   (nÃ£o parte para 5 linhas); em desktop Ã© uma linha sÃ³, distribuÃ­da.
   -------------------------------------------------------------------------- */

/* Faixa PRETA â€” o look agressivo/premium tipo aktive. Alto contraste, Ã­cones
   a azul de marca. Desliza na horizontal no telemÃ³vel. */
.trustbar {
  padding-block: var(--sp-3);
  background: var(--grey-900);
}

.trustbar__list {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.trustbar__list::-webkit-scrollbar { display: none; }

.trust {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-2);
}

.trust__ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--brand-300);
}

.trust__ico svg { width: 20px; height: 20px; }

.trust b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1.2;
}

.trust small {
  display: block;
  font-size: var(--fs-2xs);
  color: var(--grey-400);
}

@media (min-width: 1024px) {
  .trustbar__list {
    justify-content: space-between;
    overflow-x: visible;
  }
}

/* --------------------------------------------------------------------------
   Banner de campanha a SANGRAR atÃ© Ã s margens no telemÃ³vel (edge-to-edge).
   No desktop volta a ficar contido, que fica melhor com dois cards.
   -------------------------------------------------------------------------- */
#campaigns-section { padding: 0; }
#campaigns-section .container { max-width: none; padding-inline: 0; }
#campaigns-section .campaign { border-radius: 0; }
#campaigns-section .carousel__arrow--prev { display: none; }  /* sem margem onde caber */

/* Pontinhos SOBREPOSTOS ao fundo do banner (nÃ£o empurram para baixo), para a
   barra preta colar diretamente por baixo do banner, sem folga. */
#campaigns-section .carousel { position: relative; }
#campaigns-section .carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 4;
  margin: 0;
}
#campaigns-section .carousel__dot { background: rgba(255, 255, 255, 0.5); }
#campaigns-section .carousel__dot.is-active { background: #fff; }

@media (min-width: 1024px) {
  #campaigns-section { padding-block: var(--sp-5); }
  #campaigns-section .container {
    max-width: var(--container);
    padding-inline: var(--container-pad);
  }
  #campaigns-section .campaign { border-radius: var(--r-md); }
}

/* Etiqueta de canto na foto: desconto (vermelho, urgÃªncia) ou "Mais vendido". */
.product__discount,
.product__hot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 6px 11px;
  border-radius: var(--r-sm) 0 var(--r-md) 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* O desconto Ã© o gatilho psicolÃ³gico nÂº1 do card â€” maior, com sombra prÃ³pria
   para saltar mesmo por cima da foto, nÃ£o sÃ³ mais uma etiqueta plana. */
.product__discount {
  background: var(--accent-500);
  color: #fff;
  font-size: var(--fs-md);
  box-shadow: 0 4px 10px rgba(255, 90, 31, 0.35);
}

.product__hot {
  background: var(--grey-900);
  color: #fff;
  text-transform: uppercase;
  font-size: var(--fs-2xs);
  letter-spacing: 0.04em;
}

/* Estrelas de avaliaÃ§Ã£o (sÃ³ aparece com dados reais â€” ver estrelas() no JS). */
.rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.rating__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--grey-200);
}

.rating__stars .star svg {
  width: 14px;
  height: 14px;
}

.rating__stars .star.is-full,
.rating__stars .star.is-half { color: #f5a623; }

.rating__count {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

/* "Poupa Xâ‚¬" â€” o ganho concreto, no mesmo acento quente do desconto (nÃ£o a
   verde): uma sÃ³ cor de conversÃ£o em todo o card. */
.product__save {
  align-self: center;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: #fff1ea;
  color: var(--accent-600);
  font-size: var(--fs-xs);
  font-weight: var(--fw-black);
  white-space: nowrap;
}

/* BotÃ£o "Adicionar" com texto â€” chama o dedo muito mais que o Ã­cone sozinho.
   Sombra prÃ³pria: sem ela, um preto sÃ³lido sobre fundo branco fica achatado
   e sem "peso" â€” a sombra devolve-lhe profundidade de botÃ£o fÃ­sico. */
.btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--brand-500);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1;
  box-shadow: 0 2px 6px rgba(13, 135, 224, 0.28);
  transition: background var(--dur) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn-add svg { width: 18px; height: 18px; }
.btn-add:hover { background: var(--brand-600); color: #fff; box-shadow: 0 4px 12px rgba(13, 135, 224, 0.36); }
.btn-add:active { transform: translateY(1px); box-shadow: 0 1px 3px rgba(13, 135, 224, 0.28); }
.btn-add.is-added {
  background: var(--success);
}

/* Aviso honesto por baixo do preÃ§o (ex.: extraÃ§Ã£o real medida pela DECO,
   diferente da anunciada pelo fabricante). */
.product__note {
  margin-top: var(--sp-2);
  padding: var(--sp-2);
  background: var(--brand-50);
  border-radius: var(--r-sm);
  color: var(--brand-700);
  font-size: var(--fs-2xs);
  line-height: var(--lh-snug);
}

/* Disponibilidade por loja â€” bolinha verde/cinzenta + nome. */
.product__stock {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: var(--fs-2xs);
}

.stock__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-circle);
  background: var(--grey-300);
}

.stock.is-on .stock__dot {
  background: var(--success);
}

.stock.is-on {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Faixa de vantagens
   -------------------------------------------------------------------------- */

.benefits {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-8) var(--sp-5);
  background: var(--bg-surface);
  border-radius: var(--r-md);
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.benefit__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--grey-800);
}

.benefit__icon svg {
  width: 100%;
  height: 100%;
}

.benefit__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

@media (min-width: 900px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6) var(--sp-10);
  }
}

/* --------------------------------------------------------------------------
   Faixa de marca com redes sociais
   -------------------------------------------------------------------------- */

.brand-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-10) var(--sp-6);
  background: linear-gradient(120deg, var(--brand-400), var(--brand-600));
  border-radius: var(--r-md);
  color: var(--text-inverse);
  text-align: center;
}

.brand-strip__title {
  color: inherit;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
}

.brand-strip__title small {
  display: block;
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  opacity: 0.85;
}

/* Captura de email na faixa de marca. Campo + botÃ£o lado a lado; no telemÃ³vel
   empilham para o botÃ£o nÃ£o ficar espremido. */
.news {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  width: min(460px, 100%);
}
.news input {
  flex: 1 1 200px;
  min-width: 0;
  height: 46px;
  padding: 0 var(--sp-4);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--text-strong);
  font-size: 16px;
  outline: none;
}
.news.is-error input { border-color: #ffd5cc; box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.35); }
.news__btn {
  flex: 0 0 auto;
  height: 46px;
  padding-inline: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--grey-900);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  transition: background var(--dur) var(--ease);
}
.news__btn:hover { background: #000; color: #fff; }
.news__note {
  flex-basis: 100%;
  font-size: var(--fs-2xs);
  color: rgba(255, 255, 255, 0.75);
}
.news__ok {
  flex-basis: 100%;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.15);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.socials {
  display: flex;
  gap: var(--sp-3);
}

.socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-circle);
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
  transition: background var(--dur) var(--ease);
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.38);
  color: var(--text-inverse);
}

.socials svg {
  width: 17px;
  height: 17px;
}

@media (min-width: 900px) {
  .brand-strip {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding-inline: var(--sp-12);
  }
}

/* --------------------------------------------------------------------------
   Cookie banner (RGPD)
   -------------------------------------------------------------------------- */

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-modal) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg-inverse);
  color: var(--text-inverse);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  box-shadow: var(--sh-up);
}

.cookie-bar p {
  margin: 0;
  max-width: 640px;
}

.cookie-bar a {
  color: var(--brand-300);
  text-decoration: underline;
}

.cookie-bar a:hover {
  color: var(--brand-200);
}

.cookie-bar__btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-bar {
    flex-direction: column;
    text-align: center;
    padding: var(--sp-4);
    gap: var(--sp-3);
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MODAL DE PAGAMENTO â€” Full-screen mobile Â· Centrado desktop Â· Premium
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.payment-modal-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: pmFadeIn 0.3s ease forwards;
}
@media (min-width: 520px) {
  .payment-modal-overlay {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

@keyframes pmFadeIn { to { opacity: 1; } }

.payment-modal {
  background: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  animation: pmReveal 0.4s 0.05s ease forwards;
}
@media (min-width: 520px) {
  .payment-modal {
    width: 100%;
    max-width: 440px;
    height: auto;
    max-height: 92vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.04);
    transform: translateY(16px) scale(0.98);
    animation: pmPop 0.4s 0.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes pmReveal { to { opacity: 1; } }
@keyframes pmPop { to { transform: translateY(0) scale(1); opacity: 1; } }

/* â”€â”€ Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pm-header {
  background: #fff;
  padding: 40px 24px 24px;
  text-align: center;
  flex-shrink: 0;
}
@media (min-width: 520px) {
  .pm-header { padding: 32px 24px 20px; }
}

.pm-header-logo {
  display: block;
  height: 36px;
  max-width: 120px;
  object-fit: contain;
  margin: 0 auto 16px;
}
.pm-header-icon {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #334155;
}
.pm-header-icon svg { width: 22px; height: 22px; }

.pm-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.pm-header p {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.pm-header p svg { width: 12px; height: 12px; color: #10b981; }

/* â”€â”€ Separador â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pm-header::after {
  content: '';
  display: block;
  margin: 20px auto 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #10b981, #3b82f6);
}

/* â”€â”€ Body â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pm-body {
  flex: 1;
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 520px) {
  .pm-body { padding: 24px; }
}

.pm-mbway-amount {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pm-mbway-amount-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.pm-mbway-amount-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.pm-mbway-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.pm-step {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  gap: 12px;
  position: relative;
}
.pm-step--done {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.pm-step--active {
  background: #f0fdf4;
  border-color: #86efac;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.pm-step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f1f5f9;
  color: #475569;
}
.pm-step-num--active {
  background: #10b981;
  color: #ffffff;
}
.pm-step-num svg { width: 18px; height: 18px; }

.pm-step-text {
  font-size: 0.9rem;
  color: #334155;
  flex: 1;
  line-height: 1.35;
}
.pm-step-text b { color: #0f172a; font-weight: 700; }

.pm-step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pm-step-badge--done {
  width: 22px;
  height: 22px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
}
.pm-step-badge--pending {
  padding: 4px;
}

.pm-pulsing-dot--sm {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pmDotPulse 1.5s infinite;
}

.pm-mbway-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 14px;
  color: #047857;
  font-weight: 600;
  font-size: 0.9rem;
}

.pm-pulsing-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pmDotPulse 1.5s infinite;
}

@keyframes pmDotPulse {
  0%   { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 8px rgba(16,185,129,0);  }
  100% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(16,185,129,0);   }
}

.pm-timer {
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
  font-weight: 500;
}
.pm-timer svg { width: 15px; height: 15px; color: #0284c7; }

.pm-ref-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.pm-ref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.pm-ref-row:last-child { border-bottom: none; }
.pm-ref-row:hover { background: #f8fafc; }
.pm-ref-row:active { background: #f1f5f9; }

.pm-ref-row--total {
  background: #fafafa;
}

.pm-ref-info { display: flex; flex-direction: column; gap: 3px; }

.pm-ref-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.pm-ref-val {
  font-family: 'SF Mono', 'Roboto Mono', 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 1.5px;
}
.pm-ref-val--big {
  font-size: 1.35rem;
  color: #047857;
  letter-spacing: 0.5px;
}

.pm-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s;
}
.pm-ref-row:hover .pm-copy-btn {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.pm-copied {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #047857;
}

.pm-ref-expire {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 16px;
}
.pm-ref-expire svg { color: #0284c7; }

.pm-trust-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 8px;
  margin: 18px 0;
}
.pm-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.pm-help-text {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin: 0;
  line-height: 1.45;
}

.pm-redirect { text-align: center; padding: 16px 0; }
.pm-redirect-icon {
  width: 48px; height: 48px; background: #f1f5f9; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: #334155;
}
.pm-redirect-icon svg { width: 24px; height: 24px; }
.pm-redirect p { color: #334155; font-size: 0.92rem; line-height: 1.55; margin-bottom: 16px; }

.pm-progress-bar {
  height: 4px; background: #e5e5e5; border-radius: 2px;
  overflow: hidden; margin-bottom: 16px;
}
.pm-progress-value {
  height: 100%; background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: 2px; animation: pmProgress 2s ease-in-out infinite;
}
@keyframes pmProgress {
  0%   { width: 5%;  margin-left: 0; }
  50%  { width: 55%; margin-left: 22%; }
  100% { width: 5%;  margin-left: 95%; }
}

.pm-fallback-text { text-align: center; color: #334155; font-size: 0.92rem; line-height: 1.55; }

.pm-btn {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px;
  background: #0f172a; color: #fff; border: none;
  padding: 16px 24px; border-radius: 14px;
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s;
}
.pm-btn:hover { background: #1e293b; }
.pm-btn:active { transform: scale(0.98); }
.pm-btn.green {
  background: linear-gradient(135deg, #10b981, #059669);
}
.pm-btn.green:hover { background: linear-gradient(135deg, #34d399, #10b981); }

.pm-btn-outline {
  background: #fff; border: 1.5px solid #e5e5e5; color: #334155;
  box-shadow: none; font-weight: 600; padding: 14px 24px;
}
.pm-btn-outline:hover { background: #fafafa; border-color: #ccc; }
.pm-btn svg { width: 18px; height: 18px; }

.pm-footer {
  padding: 16px 24px;
  text-align: center;
  font-size: 0.73rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 500;
  flex-shrink: 0;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}
@media (min-width: 520px) {
  .pm-footer { border-radius: 0 0 20px 20px; }
}
.pm-footer svg { width: 13px; height: 13px; color: #10b981; }

/* Estrelas de avaliação: preenchidas por dentro, não só o contorno. */
.star.is-full svg path,
.star.is-half svg path {
  fill: currentColor;
}
