/* Ajustes do clone estático.
   1) Carrossel de reels reconstruído (o CDN do app original está fora do ar).
   2) Pequenas correções para a página funcionar sem o backend da loja.
   3) Barra de promoção com contagem regressiva e pop-up de prova social. */

/* ------------------------------------------------------- performance */
/* As seções abaixo da dobra só são renderizadas quando entram na viewport.
   Numa página de ~7.000px com quase 100 imagens isso corta boa parte do
   custo de layout/paint inicial e deixa a rolagem mais fluida.
   O `auto` no contain-intrinsic-size faz o browser guardar a altura real
   depois da primeira renderização, então a barra de rolagem não salta. */
#influencer-reviews,
#shopify-section-template--26354143461656__kopstorm_why_it_works_fHYRhd,
#shopify-section-template--26354143461656__kopstorm_image_with_text_q7ejHU,
#shopify-section-template--26354143461656__premium_comparison_table_tpkVQa,
#shopify-section-template--26354143461656__kopstorm_ugc_Qw8EUF,
#shopify-section-template--26354143461656__1743431492fdbefe02,
#shopify-section-template--26354143461656__kopstorm_faq_HiLf9d,
#shopify-section-sections--26072453873944__footer {
  content-visibility: auto;
}

/* Altura real de cada seção como palpite inicial: com um valor genérico a
   barra de rolagem encolhe/estica no primeiro scroll. */
#shopify-section-template--26354143461656__kopstorm_why_it_works_fHYRhd { contain-intrinsic-size: auto 629px; }
#shopify-section-template--26354143461656__kopstorm_image_with_text_q7ejHU { contain-intrinsic-size: auto 562px; }
/* 616px de altura total menos os 100px de padding: contain-intrinsic-size
   descreve o content-box, não o border-box. */
#shopify-section-template--26354143461656__premium_comparison_table_tpkVQa { contain-intrinsic-size: auto 516px; }
#shopify-section-template--26354143461656__kopstorm_ugc_Qw8EUF { contain-intrinsic-size: auto 976px; }
#shopify-section-template--26354143461656__1743431492fdbefe02 { contain-intrinsic-size: auto 217px; }
#shopify-section-template--26354143461656__kopstorm_faq_HiLf9d { contain-intrinsic-size: auto 521px; }
#shopify-section-sections--26072453873944__footer { contain-intrinsic-size: auto 568px; }

/* ------------------------------------------------------------ header */
/* Com o menu, a busca, a conta e o carrinho removidos, sobrou só o logo:
   ele passa a ocupar a linha inteira e fica centralizado. */
.header__wrapper > .header__logo {
  grid-area: logo;
  justify-self: center;
}

/* ------------------------------------------------- barra de promoção */
/* Usa o azul da marca (#00489a) e o Space Mono dos números, as mesmas
   famílias já carregadas pela página. */
.promo-bar {
  background: #00489a;
  color: #fff;
}

.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 20px;
  text-align: center;
}

.promo-bar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.promo-bar__text {
  font-size: 13px;
  letter-spacing: 0.2px;
}

.promo-bar__timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Space Mono", ui-monospace, monospace;
}

.promo-bar__unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 34px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  line-height: 1.1;
}

.promo-bar__unit b {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.promo-bar__unit i {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.6px;
  opacity: 0.75;
}

.promo-bar__sep {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.5;
}

@media (max-width: 749px) {
  .promo-bar__inner { gap: 6px 10px; padding: 8px 14px; }
  .promo-bar__text { font-size: 12px; width: 100%; order: 3; }
  .promo-bar__label { font-size: 10px; }
}

/* ------------------------------------------------- medidor de estoque */
.stock-meter {
  margin-top: 10px;
  max-width: 320px;
}

.stock-meter__bar {
  height: 6px;
  border-radius: 3px;
  background: #e8ecf5;
  overflow: hidden;
}

.stock-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #fa8c18, #f5533d);
  transition: width 0.6s ease;
}

.stock-meter__label {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.stock-meter__label b {
  color: #f5533d;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------ animação do botão de compra */
/* Pulso discreto e intervalado: chama atenção sem virar distração.
   Desativado para quem pediu menos movimento no sistema. */
@keyframes cta-pulse {
  0%, 82%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 72, 154, 0.42); }
  88%           { transform: scale(1.018); box-shadow: 0 0 0 9px rgba(0, 72, 154, 0); }
  94%           { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 72, 154, 0); }
}

.product-info__buy-buttons button[type="submit"] {
  animation: cta-pulse 3.4s ease-in-out infinite;
  will-change: transform;
}

.product-info__buy-buttons button[type="submit"]:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .product-info__buy-buttons button[type="submit"] { animation: none; }
}

/* -------------------------------------- pop-up de compras recentes */
.buy-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 10px 34px 10px 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 30, 70, 0.16);
  border: 1px solid rgba(0, 72, 154, 0.12);
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.buy-popup[hidden] { display: flex; }

.buy-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.buy-popup__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2fc;
}

.buy-popup__body { min-width: 0; }

.buy-popup p { margin: 0; }

.buy-popup__title {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.35;
}

.buy-popup__title b { font-weight: 700; }

.buy-popup__product {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.35;
}

.buy-popup__product b { color: #00489a; font-weight: 700; }

.buy-popup__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
}

.buy-popup__meta svg { color: #00489a; flex: 0 0 auto; }

.buy-popup__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.buy-popup__close:hover { background: #f3f4f6; color: #374151; }

@media (max-width: 749px) {
  .buy-popup { left: 12px; bottom: 12px; width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .buy-popup { transition: opacity 0.2s ease; transform: none; }
}

/* ------------------------------- carrossel de reviews de influencers */
/* A seção só aparece quando existe pelo menos um vídeo na lista de
   INFLUENCER_REVIEWS (clone.js) — sem isso ela fica com `hidden`. */
.influencer-carousel {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}

.influencer-carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 4px 12px;
}

.influencer-carousel__track::-webkit-scrollbar { display: none; }

.influencer-card {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: start;
  cursor: pointer;
}

.influencer-card__media {
  position: relative;
  width: 260px;
  height: 462px;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1220;
}

.influencer-card__media video,
.influencer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.influencer-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #00489a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.influencer-card__play svg { width: 24px; height: 24px; margin-left: 3px; }

.influencer-card__info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 0;
}

.influencer-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #dfe6fb;
  flex: 0 0 auto;
}

.influencer-card__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.influencer-card__handle {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

.influencer-card__stars {
  display: flex;
  gap: 1px;
  color: #00489a;
  margin-top: 2px;
}

.influencer-card__stars svg { width: 12px; height: 12px; }

.influencer-carousel__nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #00489a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.influencer-carousel__nav--prev { left: -14px; }
.influencer-carousel__nav--next { right: -14px; }

@media (max-width: 749px) {
  .influencer-card, .influencer-card__media { width: 210px; }
  .influencer-card__media { height: 373px; }
  .influencer-carousel__nav { display: none; }
}

/* ---------------------------------------------- rodapé fixo de compra */
/* Reproduz o sticky ATC do app Kaching Bundles da página original: 80px,
   fundo roxo rgb(112,59,190), foto 48px e botão branco com texto roxo. */
.sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  height: 80px;
  background: rgb(112, 59, 190);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-atc[hidden] { display: block; }

.sticky-atc.is-visible { transform: translateY(0); }

.sticky-atc__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.sticky-atc__photo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 5px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.15);
}

.sticky-atc__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-atc__button {
  flex: 0 0 auto;
  padding: 10px 22px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: rgb(112, 59, 190);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.sticky-atc__button:hover { opacity: 0.88; }

/* o pop-up de prova social sobe para não ficar atrás da barra */
.sticky-atc.is-visible ~ .buy-popup { bottom: 96px; }

@media (max-width: 749px) {
  .sticky-atc { height: 72px; }
  .sticky-atc__inner { gap: 10px; padding: 0 12px; }
  .sticky-atc__photo { width: 42px; height: 42px; }
  .sticky-atc__title { font-size: 14px; }
  .sticky-atc__button { padding: 10px 16px; font-size: 14px; }
  .sticky-atc.is-visible ~ .buy-popup { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-atc { transition: none; }
}

/* -------------------------------------------- player de reel com som */
/* Os arquivos _short.mp4 do grid são mudos de propósito (autoplay só roda
   sem som). O vídeo com áudio é o _medium.mp4, carregado só no clique. */
.reel-player {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgba(8, 12, 24, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.reel-player[hidden] { display: flex; }

.reel-player.is-open { opacity: 1; visibility: visible; }

.reel-player__stage {
  position: relative;
  width: min(420px, calc(100vw - 120px));
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 40px);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.reel-player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.reel-player__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.reel-player__close:hover { background: rgba(255, 255, 255, 0.26); }

.reel-player__nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.reel-player__nav:hover { background: rgba(255, 255, 255, 0.26); }

/* indica que o card abre um vídeo com som */
.reelUp_card__sound {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  pointer-events: none;
}

.reelUp_card__sound svg { width: 16px; height: 16px; }

.reelUp_card { cursor: pointer; }

@media (max-width: 749px) {
  .reel-player { padding: 12px; gap: 6px; }
  .reel-player__nav { width: 34px; height: 34px; font-size: 20px; }
  .reel-player__stage { width: calc(100vw - 104px); }
}

@media (prefers-reduced-motion: reduce) {
  .reel-player { transition: opacity 0.15s ease, visibility 0.15s; }
}

/* ---------------------------------------------------------- reels */
.reelUp_playlist_slider_static {
  max-width: 100%;
  margin: 0 auto;
}

.reelUp_slider_heading {
  color: rgba(43, 43, 43, 1);
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 24px;
}

.reelUp_carousel_wrapper {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}

.reelUp_track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

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

.reelUp_slide {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
}

.reelUp_card {
  position: relative;
  width: 250px;
  height: 443.75px;
  border-radius: 12px;
  overflow: hidden;
  background: #e9edf7;
  cursor: pointer;
}

.reelUp_card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.reelUp_nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #00489a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.reelUp_carousel_wrapper:hover .reelUp_nav,
.reelUp_nav:focus-visible { opacity: 1; }

.reelUp_nav--prev { left: 6px; }
.reelUp_nav--next { right: 6px; }

@media (max-width: 749px) {
  .reelUp_slide, .reelUp_card { width: 200px; }
  .reelUp_card { height: 355px; }
  .reelUp_nav { display: none; }
}

/* --------------------------------------- widget de reviews da Amazon */
/* Na página original o app renderiza apenas este título (dentro de shadow
   DOM); as avaliações em si não carregam. */
.reputon-amazon-reviews-widget {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reputon-widget__title {
  margin: 0;
  font-family: "Saira Condensed", "Arial Narrow", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  color: #1c1c1c;
  text-align: center;
}

/* ----------------------------------------------- TrustBox do Trustpilot */
/* O widget original é um iframe de ~300px que exibe apenas o logotipo
   centralizado (96x24). Reproduzido com a mesma geometria. */
.product-info__trustpilot { min-height: 24px; }

.product-info__trustpilot .trustpilot-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: none !important;
  height: 24px;
}

.trustpilot-widget__logo {
  display: block;
  width: 96px;
  height: auto;
}
