/* Peças que na página original vinham de app renderizado em runtime e aqui
   foram refeitas à mão: o carrossel de reels do ReelUp (mais o widget
   flutuante e o player em modal), o botão Shop Pay do checkout dinâmico, e os
   três elementos de conversão que substituem o carrossel/menu removidos
   (barra de promoção, medidor de estoque, pop-up de prova social).
   build.py copia este arquivo para assets/css/clone.css. */

:root {
    --brand-accent: #b8309c;
    --brand-accent-dark: #6a0953;
}

/* O tema escondia os links do rodapé (Contact Us / Terms / Privacy / Shipping
   & Return / Legal Notice) abaixo de 768px atrás de um acordeão cujo JS de
   abrir/fechar saiu no ENXUGAMENTO (menu-mobile) — sem ele, o bloco ficava
   inacessível no celular, que é a maior parte de quem chega por anúncio.
   Mantém sempre visível, em qualquer largura. */
.footer-block__mobile .footer-block__list {
    display: block !important;
}

/* logo sozinho no header, sem menu/ícones ao lado */
.header-navigation-wrapper .header-navigation .container-1770 {
    justify-content: center;
}

/* --------------------------------------------------- barra de promoção ---- */
.promo-bar {
    background: #000;
    color: #fff;
}

.promo-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    padding: 9px 16px;
    font-size: 13px;
    text-align: center;
}

.promo-bar__text {
    font-weight: 500;
}

.promo-bar__timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #ffb6ec;
}

.promo-bar__unit {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.promo-bar__unit b {
    font-variant-numeric: tabular-nums;
    color: #fff;
}

@media only screen and (max-width: 767px) {
    .promo-bar__inner {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ------------------------------------------------------- medidor de estoque */
/* Bloco próprio, largura total, logo acima da linha de compra. */
.stock-meter {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #f0dfe9;
    border-radius: 10px;
    background: #fdf7fb;
}

.stock-meter__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.stock-meter__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d8452a;
    font-weight: 700;
    letter-spacing: .01em;
}

/* seletor composto de propósito: uma <style> inline do tema declara
   `:empty { display: none }`, que apaga o ponto (é um span vazio) */
.stock-meter .stock-meter__dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d8452a;
    box-shadow: 0 0 0 0 rgba(216, 69, 42, .55);
    animation: stock-pulse 1.8s ease-out infinite;
}

@keyframes stock-pulse {
    70% { box-shadow: 0 0 0 7px rgba(216, 69, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(216, 69, 42, 0); }
}

.stock-meter__count {
    color: #6d6d6d;
}

.stock-meter__count b {
    color: var(--brand-accent-dark);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.stock-meter__bar {
    height: 7px;
    border-radius: 4px;
    background: #ecdde7;
    overflow: hidden;
}

.stock-meter__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand-accent-dark), var(--brand-accent));
    transition: width .4s ease;
}

@media only screen and (max-width: 480px) {
    .stock-meter__row {
        font-size: 13px;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stock-meter .stock-meter__dot { animation: none; }
}

/* ------------------------------------------------------------ botão BUY NOW */
.buy-now__button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 100%;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff5a3c, #e5341a);
    box-shadow: 0 6px 18px rgba(229, 52, 26, .32);
    color: #fff;
    cursor: pointer;
    /* o pulso chama atenção sem deslocar nada em volta */
    animation: buy-now-pulse 3.4s ease-in-out infinite;
}

.buy-now__button:hover {
    background: linear-gradient(180deg, #ff6a4e, #d92d13);
    animation-play-state: paused;
}

.buy-now__button:active {
    transform: scale(.99);
}

.buy-now__button:disabled {
    cursor: wait;
    opacity: .85;
    animation: none;
}

.buy-now__label {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.1;
}

.buy-now__sub {
    font-size: 12px;
    font-weight: 500;
    opacity: .92;
}

@keyframes buy-now-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(229, 52, 26, .32); }
    50% { transform: scale(1.018); box-shadow: 0 8px 26px rgba(229, 52, 26, .46); }
}

@media (prefers-reduced-motion: reduce) {
    .buy-now__button { animation: none; }
}

/* --------------------------------------------------- pop-up de prova social */
.buy-popup {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 250;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    max-width: calc(100vw - 32px);
    padding: 12px 30px 12px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

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

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

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

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

.buy-popup p {
    margin: 0;
}

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

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

.buy-popup__product b {
    color: var(--brand-accent-dark);
    font-weight: 700;
}

.buy-popup__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 12px;
    color: #8a8a8a;
}

.buy-popup__meta svg {
    color: var(--brand-accent);
    flex: 0 0 auto;
}

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

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

@media only screen and (max-width: 767px) {
    .buy-popup {
        left: 12px;
        bottom: 12px;
        width: 280px;
    }
}

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

/* ------------------------------------------------ carrossel "Tagged with Reels" */
#reelUp_playlist_product_page_reels {
    width: 100%;
}

#reelUp_playlist_product_page_reels .reelUp_slider_heading {
    color: rgb(15, 15, 15);
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 10px;
}

#reelUp_playlist_product_page_reels .reelUp_carousel_list {
    display: flex;
    gap: 15px;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 2px;
}

#reelUp_playlist_product_page_reels .reelUp_carousel_list::-webkit-scrollbar {
    display: none;
}

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

#reelUp_playlist_product_page_reels .reelUp_card {
    position: relative;
    height: 266.25px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: rgb(225, 225, 225);
}

#reelUp_playlist_product_page_reels .reelUp_card_video_wrapper,
#reelUp_playlist_product_page_reels .reelUp_video_elem {
    width: 100%;
    height: 100%;
    display: block;
}

#reelUp_playlist_product_page_reels .reelUp_video_elem {
    object-fit: cover;
}

@media only screen and (max-width: 767px) {
    #reelUp_playlist_product_page_reels .reelUp_slide {
        width: 120px;
    }

    #reelUp_playlist_product_page_reels .reelUp_card {
        height: 213px;
    }

    #reelUp_playlist_product_page_reels .reelUp_carousel_list {
        gap: 10px;
        justify-content: flex-start;
    }
}

/* --------------------------------------------- widget flutuante (ReelUp pops) */
#reelUp_pops_wrapper {
    position: fixed;
    right: 40px;
    bottom: 30px;
    z-index: 300;
    /* o wrapper só posiciona; quem recebe clique é o card (regra abaixo).
       Sem isso ele continuava capturando o toque sobre o BUY NOW mesmo com o
       card invisível, porque a caixa do wrapper permanece na frente. */
    pointer-events: none;
}

#reelUp_pops_wrapper[hidden] {
    display: none;
}

.reelUp_pops_card {
    position: relative;
    width: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
    background: #000;
    cursor: pointer;
}

/* Some enquanto o BUY NOW está na tela (ver IntersectionObserver em clone.js):
   o card é fixo e chegava a cobrir um terço do botão no celular, roubando o
   toque para o vídeo. pointer-events:none garante que nem invisível ele
   intercepte o clique durante a transição. */
.reelUp_pops_card.is-oculto-pelo-cta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(.96);
}

.reelUp_pops_card {
    pointer-events: auto;   /* volta a receber clique (o wrapper abre mão) */
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.reelUp_pops_card .reelUp_video_elem {
    display: block;
    width: 100%;
    aspect-ratio: 150 / 267;
    object-fit: cover;
}

/* o título do reel não aparece mais: os "títulos" que vêm do app são só IDs
   numéricos (ex.: "8908768620260716083950"), sem sentido para quem lê. Fica
   como aria-label no <video>, para leitor de tela. */

.reelUp_pops_close {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #191919;
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
}

.reelUp_mute_hint {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(4px);
    color: #191919;
    font-size: 11px;
    white-space: nowrap;
    z-index: 2;
}

.reelUp_mute_hint svg {
    width: 12px;
    height: 12px;
}

.reelUp_pops_card.is-unmuted .reelUp_mute_hint {
    display: none;
}

@media only screen and (max-width: 767px) {
    #reelUp_pops_wrapper {
        right: 12px;
        bottom: 70px;
    }

    .reelUp_pops_card {
        width: 112px;
    }
}

/* ------------------------------------------------------ player dos reels ---- */
.reel-player {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: rgba(0, 0, 0, .88);
}

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

.reel-player__stage {
    width: min(420px, 86vw);
    aspect-ratio: 9 / 16;
    max-height: 88vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

/* `display` explícito de propósito: uma <style> inline do tema declara
   `:empty { display: none }`, e um <video> sem filhos casa com :empty —
   sem isso o player abre como um retângulo preto vazio */
.reel-player__stage video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reel-player__close,
.reel-player__nav {
    border: 0;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
}

.reel-player__nav {
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 1;
}

.reel-player__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 1;
}

@media only screen and (max-width: 767px) {
    .reel-player {
        gap: 8px;
    }

    .reel-player__nav {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
}

/* A linha de compra agora tem só quantidade + BUY NOW. No tema os dois estão
   em ramos irmãos (.pvGroup-row e .productView-groupBottom), então o flex vai
   no pai: o seletor encolhe para o conteúdo e o botão fica com o resto. */
.productView-buttons .productView-group {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.productView-buttons .pvGroup-row {
    flex: 0 0 auto;
}

/* ficou vazio quando o "Add to cart" saiu */
.productView-buttons .productView-groupTop {
    display: none;
}

.productView-buttons .productView-groupBottom {
    flex: 1 1 auto;
    min-width: 0;
}

.productView-buttons .productView-groupItem,
.productView-buttons .productView-payment,
.productView-buttons .buy-now {
    height: 100%;
}

@media only screen and (max-width: 480px) {
    /* na tela estreita o botão ganha a largura toda em vez de dividir */
    .productView-buttons .productView-group {
        flex-wrap: wrap;
    }

    .productView-buttons .productView-groupBottom {
        flex: 1 0 100%;
    }
}

/* --------------------------------------------------- fim de página / rodapé */
/* a imagem do FAQ saiu da seção original com o CSS que centralizava e
   limitava .main-carousel a 1000px (era escopado pelo id daquela seção); sem
   isso ela esticava para a largura toda. Repõe aqui. */
.faq-section .main-carousel {
    width: 1000px;
    max-width: 100%;
    margin: 40px auto 0;
}

/* recorta o fundo cinza vazio no rodapé da imagem do FAQ (ver build.py) */
.faq-section__crop {
    aspect-ratio: 1200 / 2340;
    overflow: hidden;
}

.faq-section__crop img {
    display: block;
    width: 100%;
}

/* o tema deixa 80px de respiro antes do rodapé (.wrapper-body); some com a
   imagem do FAQ já cortada, essa sobra só alarga o vão em branco. Especifi-
   cidade de classe para vencer a regra original, também por classe. */
.wrapper-body {
    padding-bottom: 24px;
}

/* linha divisória antes do rodapé, como no site original — sem ela o cinza
   claro da imagem se funde com o cinza claro do rodapé e parece um vazio só */
.footer.footer-5 {
    border-top: 1px solid #e6e6e6;
}

/* -------------------------------------------- vão entre o box de compra e a
   primeira imagem da descrição ("Found solution to eye circle") */
/* 80px de respiro do tema abaixo do accordion (Official Store Guarantee/
   How to use) + 100px de margin-top da imagem = ~180px de branco sem nada
   por perto para justificar. !important: essas duas regras são inline no
   <body> (specificity por id) e vêm depois do <link> deste arquivo no
   <head> — sem isso, perdem a cascata e o gap volta. */
.productView.layout-3 {
    padding-bottom: 24px !important;
}

#shopify-section-template--28117804482900__custom_liquid_zRzGgc .main-carousel {
    margin-top: 24px !important;
}

/* ---------------------------------------------------------------- header ---- */
/* o tema esconde este header (o de desktop) em qualquer tela <=1024px,
   porque originalmente existia um header-mobile próprio para assumir nesse
   ponto. Removemos o header-mobile no ENXUGAMENTO (menu/busca/conta/carrinho
   — nada que fizesse falta aqui); sem esse !important, a logo desaparece em
   qualquer viewport de tablet/celular, sobrando só a barra de promoção. */
@media (max-width: 1024px) {
    .section-header-navigation:not(.section-header-nav-multi-site) {
        display: block !important;
    }
}
