/* ============ FONTE POPPINS GLOBAL ============ */
html, body, .scope-header, .scope-header *,
.scope-global-footer, .scope-global-footer *,
.scope-tst, .scope-tst *, .scope-cmp, .scope-cmp *, .scope-secure, .scope-secure *,
.scope-topbar-green, .scope-topbar-green *,
.scope-topbar-black, .scope-topbar-black *,
.scope-strip-red, .scope-strip-red *,
.card, .card *, .product, .product *,
.lunare-faq, .lunare-faq *, .lunare-cd, .lunare-cd *,
.lunare-viewers, .lunare-rv, .lunare-rv *,
.lunare-exit, .lunare-exit *, .lunare-benefits, .lunare-benefits *,
.scope-contact, .scope-contact * {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif !important;
}

/* ============ ESCONDE HEADER ORIGINAL + FOOTER ORIGINAL ============ */
.shopify-section-group-header-group,
.shopify-section-group-footer-group { display: none !important; }

/* ============ ESTRELAS DE AVALIAÇÃO COM FILL PARCIAL ============ */
/* Uso: <span class="stars-rating" style="--star-pct:94%;">★★★★★</span>
   --star-pct = (rating / 5) * 100  (ex: 4.7/5 = 94%) */
.stars-rating {
  display: inline-block;
  background: linear-gradient(90deg, #ffd700 var(--star-pct, 100%), #d4d4d4 var(--star-pct, 100%)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-weight: 900;
  line-height: 1;
}

/* ============ TOPBAR VERDE ESTATICA (acima do header) ============ */
.scope-topbar-green {
  background: #1fa838;
  color: #fff;
  padding: 10px 16px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}
.scope-topbar-green__wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1;
}
.scope-topbar-green__item {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.scope-topbar-green__item svg {
  flex-shrink: 0;
  stroke: #fff;
  width: 18px;
  height: 18px;
  display: block;
}
.scope-topbar-green__divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.45);
  display: inline-block;
  vertical-align: middle;
}

/* ============ HEADER AZUL ============ */
.scope-header {
  background: #0c5cd2;
  color: #fff;
  padding: 18px 30px;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 70px;
  box-sizing: border-box;
  z-index: 50;
}
.scope-header__menu { display: flex; gap: 16px; align-items: center; flex: 1; }
.scope-header__link {
  color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  transition: opacity .2s;
  display: inline-flex; align-items: center;
  line-height: 1;
}
.scope-header__link:hover { opacity: .85; color: #fff; text-decoration: none; }
.scope-header__link.active { background: #000; color: #fff; }
.scope-header__logo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 24px; font-weight: 700;
  text-decoration: none;
  letter-spacing: .5px;
}
.scope-header__logo:hover { color: #fff; text-decoration: none; }
.scope-header__logo img { max-height: 50px; width: auto; display: block; }
.scope-header__icons {
  display: flex; gap: 14px; align-items: center;
  justify-self: end; margin-left: auto;
}
.scope-header__icons a {
  color: #fff; text-decoration: none;
  display: inline-flex; align-items: center;
  position: relative;
}
.scope-header__icons svg { stroke: #fff; }
.scope-header__cart-count {
  background: #fff;
  color: #0c5cd2;
  font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute;
  top: -6px; right: -8px;
  padding: 0 4px;
}

/* ============ CATALOGO CARDS ============ */
.card .price-item, .card-wrapper .price-item,
.card .price__regular .price-item, .card .price__sale .price-item {
  font-size: 17px !important; font-weight: 700 !important;
}
.card s, .card del, .card-wrapper s, .card-wrapper del,
.card__information s, .card__information .price__compare-price,
.card__information .price-item--regular,
.card .price__compare-price, .card .price__compare-price .price-item,
.card .compare-price, .price--on-sale .price-item--regular {
  color: #e02b2b !important; font-size: 17px !important; font-weight: 700 !important;
  text-decoration: line-through !important;
}
.card__badge .badge, .card__sale-badge, .card .badge, .card-wrapper .badge {
  background-color: #1fa838 !important; color: #fff !important;
  border: none !important; box-shadow: none !important; outline: none !important;
}
.scope-card-stars {
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 8px !important; margin: 10px 0 8px !important;
  font-family: 'Poppins', sans-serif !important;
}
.scope-card-stars .stars { color: #ffd700 !important; letter-spacing: 2px !important; font-size: 20px !important; }
.scope-card-stars .num { color: #444 !important; font-weight: 600 !important; font-size: 14px !important; }
.scope-card-buy {
  display: block !important; width: 100% !important;
  padding: 11px 14px !important;
  background: #1fa838 !important; color: #fff !important;
  text-align: center !important; border-radius: 8px !important;
  font-weight: 700 !important; font-size: 13px !important;
  text-decoration: none !important; text-transform: uppercase !important;
  letter-spacing: .5px !important; margin-top: 10px !important;
  font-family: 'Poppins', sans-serif !important;
}
.scope-card-buy:hover { opacity: .9 !important; color: #fff !important; }
.card-wrapper { transition: transform .2s ease; }
.card-wrapper:hover { transform: translateY(-2px); }

/* TITULOS UPPERCASE */
.scope-tst__title, .scope-cmp__title, .scope-secure__title { text-transform: uppercase !important; }
#shopify-section-scope_featured_products h2,
#shopify-section-scope_featured_products .title { text-transform: uppercase !important; }

/* Esconde titulo da featured-collection na home */
#shopify-section-scope_featured_products .title-wrapper-with-link,
#shopify-section-scope_featured_products h2.title { display: none !important; }

/* QUOTE testimonios sem circulo */
.scope-tst__quote {
  background: transparent !important;
  color: #1fa838 !important;
  border-radius: 0 !important;
  width: auto !important; height: auto !important;
  font-size: 56px !important;
  font-family: Georgia, serif !important;
  line-height: 1 !important;
  padding: 0 !important;
  top: 8px !important; right: 16px !important;
}

/* HOME espacamento */
.shopify-section[id*="scope_"] { margin: 0 !important; }

/* SCROLL REVEAL */
.scope-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.scope-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Forca Poppins no catalogo */
.template-collection h1, .template-collection h2,
.template-collection .title, .template-collection .collection-hero__title,
.main-collection-banner, .main-collection-banner *,
[id*="main-collection-banner"] *,
[id*="main-collection-product-grid"] h1,
[id*="main-collection-product-grid"] h2,
[id*="main-collection-product-grid"] .title {
  font-family: 'Poppins', system-ui, sans-serif !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  letter-spacing: .5px !important;
}

/* ============ MOBILE FIXES ============ */
@media (max-width: 749px){
  /* HEADER MOBILE em 2 LINHAS (estilo Shopify):
     Linha 1 (mais alta): [Logo CENTRO grande]  [Icones direita]
     Linha 2: [Inicio  Catalogo  Contato] */
  /* HEADER MOBILE — comparativo Shopify: logo maior, header mais compacto */
  .scope-header{
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 14px 8px !important;
    min-height: auto !important;
    gap: 4px !important;
    position: relative !important;
  }
  .scope-header__logo{
    position: static !important;
    transform: none !important;
    order: 1 !important;
    flex: 1 1 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 50px !important;
  }
  /* Logo BEM MAIOR (matching Shopify): 80px de altura */
  .scope-header__logo img{
    width: auto !important;
    max-width: 180px !important;
    max-height: 80px !important;
    height: auto !important;
  }
  .scope-header__icons{
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    order: 2 !important;
    gap: 12px !important;
    margin-left: 0 !important;
  }
  .scope-header:has(.scope-header__menu) .scope-header__icons{
    top: 26px !important;
    transform: none !important;
  }
  .scope-header__icons a svg{ width: 24px !important; height: 24px !important; }
  .scope-header__menu{
    order: 3 !important;
    flex: 0 0 100% !important;
    justify-content: center !important;
    gap: 16px !important;
    margin: 4px 0 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .scope-header__link{
    font-size: 14px !important;
    padding: 4px 6px !important;
    letter-spacing: .3px !important;
    font-weight: 700 !important;
    background: transparent !important;
  }
  .scope-header__link.active,
  .scope-header__link:hover{
    background: transparent !important;
    color: #fff !important;
  }

  /* Faixa verde mobile: SOMENTE "14 MIL CLIENTES SATISFECHOS" centralizado.
     Items na ordem: [item 14mil é o segundo .__item, mas no DOM eh nth-of-type(2)] */
  .scope-topbar-green{ padding: 14px 14px !important; }
  .scope-topbar-green__wrap{
    flex-direction: row !important;
    justify-content: center !important;
    gap: 0 !important;
    font-size: 12px !important;
    letter-spacing: .8px !important;
  }
  .scope-topbar-green__divider{ display: none !important; }
  /* esconde todos os items */
  .scope-topbar-green__item{ display: none !important; }
  /* mostra apenas "14 MIL CLIENTES SATISFECHOS" (3º span no DOM) */
  .scope-topbar-green__item:nth-of-type(3){
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .scope-topbar-green__item svg{ width: 16px !important; height: 16px !important; }
}

/* === EXTRAS PRO SITE ESTATICO === */
/* Regras GLOBAIS (padrao Shopify) — previnem 90% dos bugs mobile:
   1) box-sizing universal para padding nao quebrar widths
   2) overflow-x: hidden no html/body como safety net
   3) imagens nunca passam do container pai
   4) min-width: 0 em flex items pra encolherem corretamente */
* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; }
body { margin: 0; padding: 0; }
img, video, picture { max-width: 100%; height: auto; vertical-align: bottom; }
.product-grid { gap: 40px; }

.variant-option { transition: all .15s; }
.variant-option:hover { transform: scale(1.05); }

/* ============================================================
   MOBILE - CONSERTOS GERAIS (telas <= 749px)
   - Sem overflow horizontal
   - Producto page em 1 coluna
   - Containers ajustados ao viewport
   ============================================================ */
@media (max-width: 749px) {
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }

  /* PRODUCTO PAGE: forca 1 coluna + paddings menores */
  .product-page-container {
    padding: 12px 12px !important;
    max-width: 100% !important;
  }
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .product-gallery {
    position: static !important;
    max-width: 100% !important;
  }
  .product-gallery__main {
    max-width: 100% !important;
    width: 100% !important;
  }
  .product-thumbs {
    padding: 2px 32px !important;
  }
  .product-thumbs__btn {
    width: 26px !important; height: 26px !important;
    font-size: 14px !important;
  }
  .product-thumbs__btn--prev { left: 0 !important; }
  .product-thumbs__btn--next { right: 0 !important; }

  /* TIMELINE de entrega: empilha em coluna */
  .shipping-timeline { flex-direction: column !important; gap: 8px !important; }
  .shipping-timeline > div[style*="border-top"] { display: none !important; }

  /* DESCRICAO, FAQ, OFERTA: max-width: 100% pra nao estourar */
  .product-description,
  .lunare-faq,
  .lunare-rv {
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
  .product-description img,
  .product-description video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* OFERTA ESPECIAL: fontes maiores em mobile */
  .lunare-of__h { font-size: 24px !important; line-height: 1.3 !important; }
  .lunare-of__sub { font-size: 16px !important; line-height: 1.5 !important; }
  .lunare-of__benefit { font-size: 17px !important; line-height: 1.4 !important; }
  .lunare-of__last { font-size: 15px !important; line-height: 1.5 !important; }
  /* FAQ: fonte maior pra mobile (era 22, agora 26) */
  .lunare-faq__title { font-size: 28px !important; }
  .lunare-rv__title { font-size: 26px !important; }
  .lunare-faq__item summary { font-size: 15px !important; }
  .lunare-faq__ans { padding-left: 28px !important; font-size: 14px !important; }

  /* COUNTDOWN da oferta: cabe na tela */
  .lunare-cd { margin: 14px 0 !important; }
  .lunare-cd__title { font-size: 14px !important; }
  .lunare-cd__num { font-size: 22px !important; width: 56px !important; height: 44px !important; }

  /* OPINIONES mobile: cards CENTRALIZADOS (snap center) */
  .lunare-rv__track { scroll-snap-type: x mandatory !important; padding: 0 12% !important; }
  .lunare-rv__card { scroll-snap-align: center !important; flex: 0 0 76% !important; }

  /* SHIPPING TIMELINE mobile: icones em LINHA (HOY ▸ 1-2 ▸ 3-5) */
  .shipping-timeline {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
  }
  .shipping-timeline > div[style*="border-top"] {
    display: block !important;
    flex: 1 !important;
    margin: 20px 4px 0 !important;
    min-width: 10px !important;
  }
  .shipping-timeline > div[style*="text-align:center"] {
    flex: 0 0 auto !important;
  }

  /* BOTAO compra: fica no lugar normal. Um clone "floater" aparece via JS
     quando o original sai do viewport (scroll-aware). */
  .scope-buy-button {
    padding: 14px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
  }
  .scope-buy-button > span:first-child {
    font-size: 15px !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
  .scope-buy-button > span:last-child { font-size: 11px !important; }

  /* CLONE FLOATER — fixed no bottom apenas quando original sai da tela */
  .scope-buy-button--float {
    position: fixed !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    z-index: 900 !important;
    margin: 0 !important;
    padding: 14px 12px !important;
    box-shadow: 0 8px 24px rgba(31,168,56,.6) !important;
    /* Animacao de slide-in suave */
    animation: floatBtnSlideIn .25s ease-out !important;
  }
  @keyframes floatBtnSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  /* Containers que nao podem ultrapassar a tela */
  .product-info, .product-info > * { max-width: 100% !important; }
  .product-info * { min-width: 0 !important; }
  .lunare-of, .lunare-faq, .lunare-rv,
  .lunare-faq__item, .lunare-faq__item summary, .lunare-faq__ans,
  .lunare-rv__wrap, .lunare-rv__track, .lunare-rv__card,
  .product-description, .lunare-cd, .lunare-cd__wrap {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .lunare-faq__item summary { word-break: break-word !important; }
  .lunare-rv__track { overflow-x: auto !important; }

  /* PRECIO area: nao quebra/transborda */
  .product-page-price { gap: 8px !important; }
  .product-page-price .price-item { font-size: 20px !important; }
  .product-page-price .price__compare-price,
  .product-page-price s { font-size: 18px !important; }

  /* H1 do produto */
  .product-info h1 { font-size: 22px !important; }

  /* CARDS de produto na home e catalogo - garante 1 coluna */
  .scope-featured-products__grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .scope-cat-grid__inner { grid-template-columns: 1fr !important; gap: 18px !important; }

  /* CATALOGO: titulo PRODUCTOS menor + filtros nao estouram */
  .scope-cat-grid { padding: 12px 12px 40px !important; }

  /* CATALOGO: dropdowns de filtro nao podem extrapolar a tela */
  .scope-cat-grid + section details > div,
  section[style*="border-bottom"] details > div {
    right: 0 !important;
    left: auto !important;
    max-width: calc(100vw - 24px) !important;
  }

  /* MODAL COD: max-width adaptativo + paddings menores */
  .cod-modal__card {
    max-width: 96vw !important;
    margin: 8px !important;
  }
  .cod-modal__body { padding: 14px 12px 18px !important; }
  .cod-summary { padding: 12px 12px !important; }
  .cod-tier__header {
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto auto !important;
    row-gap: 4px !important;
    padding: 10px 12px !important;
  }
  .cod-tier__circle { grid-row: 1; grid-column: 1; }
  .cod-tier__title { grid-row: 1; grid-column: 2; font-size: 13px !important; }
  .cod-tier__badge {
    grid-row: 2; grid-column: 1 / span 2;
    justify-self: start;
    font-size: 9px !important;
    padding: 3px 7px !important;
  }
  .cod-tier__price {
    grid-row: 3; grid-column: 1 / span 2;
    align-items: flex-start !important;
    flex-direction: row !important;
    gap: 8px !important;
  }
  .cod-tier__price strong { font-size: 14px !important; }
  .cod-tier__price s { font-size: 11px !important; }
  .cod-tier__var-headers,
  .cod-tier__var-row {
    grid-template-columns: 28px 1fr 1fr !important;
    gap: 6px !important;
  }
  .cod-tier__var-row select { font-size: 12px !important; padding: 6px 8px !important; }

  /* CAMPOS form: label em cima do input em mobile */
  .cod-field--row {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 3px !important;
  }
  .cod-field--row > .cod-field__label {
    padding-top: 0 !important;
    font-size: 12px !important;
  }
  .cod-warning {
    padding-left: 0 !important;
    text-align: center !important;
    font-size: 11px !important;
  }
}

/* ============================================================
   MOBILE NARROW (telas <= 480px) - ainda mais compacto
   ============================================================ */
@media (max-width: 480px) {
  /* HEADER em telas pequenas — mantém proporção do mobile principal (logo grande) */
  .scope-header { padding: 8px 12px 6px !important; }
  .scope-header__logo img { max-width: 170px !important; max-height: 72px !important; }
  .scope-header__link {
    font-size: 13px !important;
    padding: 4px 6px !important;
    font-weight: 700 !important;
  }
  .scope-header__menu { gap: 14px !important; margin: 2px 0 0 !important; }
  .scope-header__icons { gap: 10px !important; }
  .scope-header__icons a svg { width: 22px !important; height: 22px !important; }

  /* TOPBAR verde compacta em mobile pequeno */
  .scope-topbar-green { padding: 13px 12px !important; }
  .scope-topbar-green__wrap { font-size: 11px !important; letter-spacing: .5px !important; }
  .scope-topbar-green__item svg { width: 14px !important; height: 14px !important; }

  /* PRODUCTO title catalogo */
  .scope-cat-grid h1, section h1 { font-size: 28px !important; }
}
