/* =============================================================================
   home.css — estilos especificos da home v2 (carregado so em /v2/index.php)
   ============================================================================= */

/* =============================================================================
   Hero banner rotativo (usa cache_banners.json)
   ============================================================================= */
.cw-hero-banner {
    position: relative;
    border-radius: var(--raio-xl);
    overflow: hidden;
    margin-bottom: var(--espaco-6);
    background: var(--cor-fundo-suave);
    aspect-ratio: 1200 / 400;
    max-height: 400px;
}

.cw-hero-banner__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 600ms ease;
    pointer-events: none;
}
.cw-hero-banner__slide.is-ativo {
    opacity: 1;
    pointer-events: auto;
}
.cw-hero-banner__slide a,
.cw-hero-banner__slide picture,
.cw-hero-banner__slide img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Setas laterais (prev/next manual) */
.cw-hero-banner__seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--sombra-md);
    opacity: 0;
    transition: opacity var(--transicao-rapida), background var(--transicao-rapida), transform var(--transicao-rapida);
}
.cw-hero-banner__seta--esquerda { left:  var(--espaco-3); }
.cw-hero-banner__seta--direita  { right: var(--espaco-3); }
.cw-hero-banner:hover .cw-hero-banner__seta,
.cw-hero-banner:focus-within .cw-hero-banner__seta { opacity: 1; }
.cw-hero-banner__seta:hover {
    background: var(--cor-fundo-esc);
    transform: translateY(-50%) scale(1.08);
}

/* Em touch-devices as setas ficam sempre visiveis (nao tem hover) */
@media (hover: none) {
    .cw-hero-banner__seta { opacity: 0.8; }
}

.cw-hero-banner__dots {
    position: absolute;
    bottom: var(--espaco-3);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--espaco-3);
    z-index: 2;
}
/* Botao com tap area de 28x28 (Lighthouse exige >=24x24); o circulo visivel
   fica em ::before pra preservar o look anterior. */
.cw-hero-banner__dot {
    width: 28px; height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.cw-hero-banner__dot::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: background var(--transicao-rapida), border-color var(--transicao-rapida);
}
.cw-hero-banner__dot.is-ativo::before {
    background: var(--cor-marca-clara);
    border-color: #fff;
}

@media (max-width: 720px) {
    .cw-hero-banner { aspect-ratio: 9 / 16; max-height: none; }
    .cw-hero-banner__slide img { object-fit: contain; }
}

/* =============================================================================
   Stories — modal tela cheia (clique numa bolinha do .cw-stories)
   ============================================================================= */
.cw-stories-modal {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
}
.cw-stories-modal[hidden] { display: none; }

.cw-stories-modal__close {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cw-stories-modal__feed {
    width: 100%;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    opacity: 1;
    transition: opacity 200ms ease;
}
.cw-stories-modal__feed.is-fade { opacity: 0; }
.cw-stories-modal__feed::-webkit-scrollbar { display: none; }

.cw-stories-modal__vazio {
    color: #fff;
    text-align: center;
    padding-top: 45dvh;
}

.cw-stories-modal__slide {
    width: 100%;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    background: #000;
}

.cw-stories-modal__slide-bg {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.3);
    z-index: 1;
}

.cw-stories-modal__slide-img {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center 40%;
    background-repeat: no-repeat;
    z-index: 2;
    cursor: pointer;
}

.cw-stories-modal__heart {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 120px; height: 120px;
    color: #ef4444;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}
.cw-stories-modal__heart.is-ativo { animation: cw-stories-heart-pop 1s ease-out forwards; }

@keyframes cw-stories-heart-pop {
    0%   { transform: translate(-50%, -50%) scale(0);   opacity: 0; }
    15%  { transform: translate(-50%, -50%) scale(1.2); opacity: .9; }
    30%  { transform: translate(-50%, -50%) scale(1);   opacity: .9; }
    70%  { transform: translate(-50%, -50%) scale(1.1); opacity: .9; }
    100% { transform: translate(-50%, -50%) scale(2);   opacity: 0; }
}

.cw-stories-modal__overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 80px 15px 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 3;
    pointer-events: none;
}

.cw-stories-modal__info {
    max-width: 75%;
    color: #fff;
    pointer-events: auto;
}
.cw-stories-modal__info h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cw-stories-modal__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.cw-stories-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin: 0 30px 10px 0;
    pointer-events: auto;
}

.cw-stories-modal__action {
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s;
}
.cw-stories-modal__action:active { transform: scale(0.9); }
.cw-stories-modal__action svg { width: 34px; height: 34px; }
.cw-stories-modal__action span { font-size: 13px; margin-top: 6px; font-weight: 600; }

.cw-stories-modal__action.is-curtido { color: #ef4444; }
.cw-stories-modal__action.is-curtido svg { fill: #ef4444; }

@keyframes cw-stories-heart-bump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.cw-stories-modal__action svg.is-anim { animation: cw-stories-heart-bump 0.4s ease forwards; }

/* =============================================================================
   Combos promocionais (cw_pacotes)
   ============================================================================= */
.cw-combos {
    margin-bottom: var(--espaco-6);
    padding: var(--espaco-5) 0;
}

.cw-combos__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--espaco-3);
    margin-bottom: var(--espaco-4);
    flex-wrap: wrap;
}
.cw-combos__titulo {
    font-size: var(--texto-2xl);
    font-weight: 800;
    color: var(--cor-texto);
}

.cw-combos__trilho {
    display: flex;
    gap: var(--espaco-4);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: var(--espaco-3) var(--espaco-1) var(--espaco-4);
    scrollbar-width: none;
}
.cw-combos__trilho::-webkit-scrollbar { display: none; }

.cw-combo {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--cor-borda);
    border-radius: var(--raio-lg);
    box-shadow: var(--sombra-sm);
    padding-top: 170px; /* espaco pro leque de imagens */
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform var(--transicao-media), box-shadow var(--transicao-media), border-color var(--transicao-rapida);
}
.cw-combo:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-lg);
    border-color: var(--cor-borda-forte);
}

.cw-combo__desconto {
    position: absolute;
    top: var(--espaco-3);
    right: var(--espaco-3);
    background: var(--cor-alerta);
    color: #fff;
    font-weight: 800;
    font-size: var(--texto-sm);
    padding: 4px var(--espaco-2);
    border-radius: var(--raio-sm);
    z-index: 2;
}

.cw-combo__leque {
    position: absolute;
    top: var(--espaco-3);
    left: 50%;
    transform: translateX(-50%);
    display: grid;              /* 1 celula — as 3 imgs se sobrepoem no centro e sao abertas via transform */
    place-items: end center;
    height: 150px;
    width: 240px;
    pointer-events: none;
}
.cw-combo__leque img {
    grid-area: 1 / 1;           /* todas na mesma celula do grid */
    width: 90px; height: 110px;
    object-fit: cover;
    border-radius: var(--raio-md);
    box-shadow:
        0 4px 6px  rgba(15, 23, 42, 0.35),
        0 1px 2px  rgba(15, 23, 42, 0.25);
    border: 3px solid #fff;
    transition: transform var(--transicao-media), box-shadow var(--transicao-media);
    transform-origin: bottom center;
}
.cw-combo:hover .cw-combo__leque img {
    box-shadow:
        0 6px 10px rgba(15, 23, 42, 0.45),
        0 2px 3px  rgba(15, 23, 42, 0.30);
}
/* Estado fechado (leque levemente aberto) */
.cw-combo__leque img:nth-child(1) { transform: rotate(-12deg) translateX(-26px); z-index: 1; }
.cw-combo__leque img:nth-child(2) { transform: translateY(-6px);                 z-index: 3; }
.cw-combo__leque img:nth-child(3) { transform: rotate( 12deg) translateX( 26px); z-index: 2; }
/* Estado aberto (leque bem aberto no hover) */
.cw-combo:hover .cw-combo__leque img:nth-child(1) { transform: rotate(-22deg) translateX(-52px) translateY(-4px); }
.cw-combo:hover .cw-combo__leque img:nth-child(2) { transform: translateY(-12px); }
.cw-combo:hover .cw-combo__leque img:nth-child(3) { transform: rotate( 22deg) translateX( 52px) translateY(-4px); }

.cw-combo__body {
    padding: var(--espaco-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--espaco-2);
}
.cw-combo__titulo {
    font-size: var(--texto-md);
    font-weight: 700;
    color: var(--cor-texto);
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cw-combo__preco-antigo {
    font-size: var(--texto-xs);
    color: var(--cor-texto-suave);
    text-decoration: line-through;
}
.cw-combo__preco-label {
    font-size: var(--texto-xs);
    color: var(--cor-texto-suave);
}
.cw-combo__preco {
    font-size: var(--texto-2xl);
    font-weight: 800;
    color: var(--cor-marca);
    line-height: 1;
}
.cw-combo__btn {
    margin-top: auto;
    background: var(--cor-marca);
    color: #fff;
    padding: var(--espaco-3);
    border-radius: var(--raio-md);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--texto-sm);
    transition: background var(--transicao-rapida);
}
.cw-combo:hover .cw-combo__btn { background: var(--cor-marca-escura); }

.cw-combos__ver-todos {
    text-align: center;
    margin-top: var(--espaco-3);
}
.cw-combos__ver-todos a {
    display: inline-block;
    background: var(--cor-destaque);
    color: #fff;
    padding: var(--espaco-3) var(--espaco-6);
    border-radius: var(--raio-pill);
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transicao-rapida), transform var(--transicao-rapida);
}
.cw-combos__ver-todos a:hover {
    background: var(--cor-texto);
    transform: translateY(-2px);
}

/* =============================================================================
   Depoimentos (cache_avaliacoes_recentes.json)
   ============================================================================= */
.cw-depoimentos {
    margin-bottom: var(--espaco-6);
}

.cw-depoimentos__header {
    text-align: center;
    margin-bottom: var(--espaco-5);
}
.cw-depoimentos__titulo {
    font-size: var(--texto-2xl);
    font-weight: 700;
    color: var(--cor-texto);
}

.cw-depoimentos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--espaco-3);
}

.cw-depoimento {
    background: var(--cor-fundo-suave);
    border: 1px solid var(--cor-borda);
    border-radius: var(--raio-lg);
    padding: var(--espaco-4);
    display: flex;
    gap: var(--espaco-3);
    align-items: flex-start;
    transition: border-color var(--transicao-rapida), box-shadow var(--transicao-rapida);
}
.cw-depoimento:hover {
    border-color: var(--cor-marca-clara);
    box-shadow: var(--sombra-sm);
}

.cw-depoimento__foto {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: var(--raio-md);
    object-fit: cover;
}

.cw-depoimento__corpo {
    flex: 1;
    min-width: 0;
}
.cw-depoimento__texto {
    font-size: var(--texto-sm);
    color: var(--cor-texto);
    line-height: 1.5;
    margin-bottom: var(--espaco-2);
    font-style: italic;
}
.cw-depoimento__autor {
    font-size: var(--texto-xs);
    font-weight: 700;
    color: var(--cor-texto);
}
.cw-depoimento__produto {
    font-size: var(--texto-xs);
    color: var(--cor-texto-suave);
}
/* cor-marca-escura aqui pra passar AA (cor-marca em fundo-suave fica em 4.48:1) */
.cw-depoimento__produto a { color: var(--cor-marca-escura); }
.cw-depoimento__produto a:hover { color: var(--cor-marca); text-decoration: underline; }

/* =============================================================================
   Banner de Assinatura (Clube VIP)
   ============================================================================= */
.cw-vip {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    border-radius: var(--raio-xl);
    padding: var(--espaco-7) var(--espaco-5);
    margin-bottom: var(--espaco-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cw-vip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(138,43,226,0.25), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(16,185,129,0.2), transparent 50%);
    pointer-events: none;
}

.cw-vip__badge {
    display: inline-block;
    background: rgba(138, 43, 226, 0.25);
    color: var(--cor-destaque);
    padding: var(--espaco-2) var(--espaco-4);
    border-radius: var(--raio-pill);
    font-size: var(--texto-sm);
    font-weight: 700;
    margin-bottom: var(--espaco-4);
    position: relative;
    z-index: 1;
}

.cw-vip__titulo {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--espaco-3);
    position: relative;
    z-index: 1;
}

.cw-vip__subtitulo {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--texto-lg);
    max-width: 620px;
    margin: 0 auto var(--espaco-5);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.cw-vip__beneficios {
    display: flex;
    gap: var(--espaco-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--espaco-5);
    position: relative;
    z-index: 1;
}
.cw-vip__beneficio {
    display: inline-flex;
    align-items: center;
    gap: var(--espaco-2);
    font-weight: 600;
    color: #fff;
}
.cw-vip__check {
    width: 22px; height: 22px;
    background: var(--cor-marca-clara);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cw-vip__check svg { fill: #fff; width: 14px; height: 14px; }

.cw-vip__btn {
    display: inline-block;
    background: var(--cor-destaque);
    color: #fff;
    padding: var(--espaco-4) var(--espaco-6);
    border-radius: var(--raio-pill);
    font-weight: 800;
    font-size: var(--texto-lg);
    text-decoration: none;
    transition: background var(--transicao-rapida), transform var(--transicao-rapida);
    position: relative;
    z-index: 1;
}
.cw-vip__btn:hover {
    background: #6a1bb1;
    transform: translateY(-2px);
}
