/* ============================================================
   TAKEBAG — CAMPANHA PÁSCOA 2026
   Easter scarcity campaign — Cores TakeBag
   Páscoa: 5 de Abril de 2026
   ============================================================ */

:root {
    /* Paleta TakeBag (sem cores de carnaval) */
    --p-roxo:     #E31013;   /* TakeBag vermelho primário */
    --p-lilas:    #F93D40;   /* vermelho claro */
    --p-dourado:  #FFC107;   /* TakeBag yellow accent */
    --p-ambar:    #FFD60A;   /* amarelo mais claro */
    --p-mint:     #495057;   /* cinza médio TakeBag */
    --p-coral:    #C20C0F;   /* vermelho escuro TakeBag */
    --p-celeste:  #E31013;   /* vermelho (substitui azul celeste) */
    --p-creme:    #FFF9E6;   /* creme neutro */
    --p-escuro:   #212529;   /* TakeBag dark secondary */

    /* Flip counter — tema escuro neutro */
    --flip-bg:       #1A1E21;
    --flip-topo:     linear-gradient(180deg, #212529 0%, #1A1E21 100%);
    --flip-baixo:    linear-gradient(180deg, #1A1E21 0%, #111417 100%);
    --flip-border:   rgba(255, 193, 7, 0.25);
    --flip-glow:     rgba(227, 16, 19, 0.4);
}

/* ============================================================
   OVOS ANIMADOS — CSS particle system
   Substitui o confetti de carnaval por ovos de Páscoa
   Técnica: clip-path ellipse + keyframes customizados
   ============================================================ */
.pascoa-ovo {
    position: fixed;
    top: -40px;
    pointer-events: none;
    z-index: 9998;
    clip-path: ellipse(40% 50% at 50% 50%);
    animation: ovo-cair linear infinite;
    will-change: transform, opacity;
}

@keyframes ovo-cair {
    0%   {
        transform: translateY(-5vh)  rotate(0deg)   translateX(0px);
        opacity: 0.9;
    }
    20%  { transform: translateY(20vh)  rotate(72deg)  translateX(12px); }
    40%  { transform: translateY(40vh)  rotate(144deg) translateX(-8px); }
    60%  { transform: translateY(60vh)  rotate(216deg) translateX(16px); }
    80%  { transform: translateY(80vh)  rotate(288deg) translateX(-12px); }
    100% {
        transform: translateY(108vh) rotate(360deg) translateX(8px);
        opacity: 0.2;
    }
}

/* ============================================================
   HERO — BADGE PÁSCOA + OVERLAY SUAVE
   ============================================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 90% 10%, rgba(227,16,19,0.12), transparent 60%),
        radial-gradient(ellipse 40% 30% at 10% 80%, rgba(255,193,7,0.08), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Badge flutuante "Oferta de Páscoa" no hero */
.easter-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--p-coral), var(--p-roxo));
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 193, 7, 0.4);
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(227,16,19,0.4);
    animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
    0%,  100% { transform: translateY(0); }
    50%        { transform: translateY(-4px); }
}

/* ============================================================
   SEÇÃO CTA — PÁSCOA TAKEBAG
   ============================================================ */
.cta-section {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(227,16,19,0.20), transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 100%,  rgba(255,193,7,0.08), transparent 50%),
        radial-gradient(ellipse 60% 50% at 90% 100%,  rgba(194,12,15,0.08), transparent 50%),
        linear-gradient(160deg, #111417 0%, #212529 40%, #111417 100%);
    position: relative;
    border-top: 4px solid var(--p-dourado);
    overflow: hidden;
}

/* Padrão sutil de ovos no fundo via CSS */
.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 8px 10px at 5%  15%, rgba(227,16,19,0.05), transparent),
        radial-gradient(ellipse 8px 10px at 20% 70%, rgba(255,193,7,0.04), transparent),
        radial-gradient(ellipse 8px 10px at 35% 25%, rgba(194,12,15,0.04), transparent),
        radial-gradient(ellipse 8px 10px at 55% 80%, rgba(255,193,7,0.04),  transparent),
        radial-gradient(ellipse 8px 10px at 75% 20%, rgba(227,16,19,0.04), transparent),
        radial-gradient(ellipse 8px 10px at 90% 65%, rgba(249,61,64,0.04), transparent);
    background-size: 220px 180px;
    pointer-events: none;
    animation: bg-drift 20s linear infinite;
}

@keyframes bg-drift {
    0%   { background-position: 0 0; }
    100% { background-position: 220px 180px; }
}

/* Aura pulsante lateral */
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 15% 50%, rgba(255,193,7,0.07),  transparent 60%),
        radial-gradient(ellipse 55% 40% at 85% 50%, rgba(227,16,19,0.08), transparent 60%);
    pointer-events: none;
    animation: aura-easter 7s ease-in-out infinite alternate;
}

@keyframes aura-easter {
    0%   { opacity: 0.5; }
    100% { opacity: 1.0; }
}

/* ── TÍTULO CTA — Shimmer TakeBag ── */
.cta-section .section-title {
    background: linear-gradient(90deg,
        var(--p-dourado)  0%,
        var(--p-ambar)    15%,
        #fff              30%,
        var(--p-lilas)    50%,
        var(--p-dourado)  65%,
        #fff              80%,
        var(--p-dourado)  100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-easter 3.5s linear infinite;
    filter: drop-shadow(0 3px 10px rgba(227,16,19,0.4));
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.2;
}

@keyframes shimmer-easter {
    0%   { background-position:   0% center; }
    100% { background-position: 300% center; }
}

.blackfriday-header { background: none; margin-bottom: 1.5rem; }

/* ── BOTÃO CTA — TakeBag gradient ── */
.cta-section .btn-primary {
    background: linear-gradient(135deg,
        var(--p-coral)    0%,
        var(--p-roxo)     50%,
        var(--p-coral)    100%);
    background-size: 200% 200%;
    border: 2px solid var(--p-dourado);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow:
        0 6px 24px rgba(227,16,19,0.45),
        0 0  40px rgba(255,193,7,0.15);
    animation: btn-easter 3s ease infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes btn-easter {
    0%   { background-position:   0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}

.cta-section .btn-primary:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow:
        0 10px 36px rgba(227,16,19,0.55),
        0 0   60px rgba(255,193,7,0.25);
}

/* ── PREÇO — Glow dourado ── */
.cta-section .price-new,
.price-new {
    color: var(--p-dourado);
    text-shadow:
        0 0  8px rgba(255,193,7,0.9),
        0 0 24px rgba(255,193,7,0.5),
        0 0 48px rgba(255,214,10,0.3);
    animation: preco-easter 2.5s ease-in-out infinite alternate;
    position: relative;
}

@keyframes preco-easter {
    0%   { text-shadow: 0 0 8px rgba(255,193,7,0.7), 0 0 20px rgba(255,193,7,0.3); }
    100% { text-shadow: 0 0 16px rgba(255,193,7,1), 0 0 40px rgba(255,193,7,0.6), 0 0 70px rgba(255,214,10,0.3); }
}

.price-new::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse, rgba(255,193,7,0.15) 0%, transparent 65%);
    transform: translate(-50%,-50%);
    animation: sparkle-ovo 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sparkle-ovo {
    0%,100% { opacity: 0.4; transform: translate(-50%,-50%) scale(1.0); }
    50%      { opacity: 1.0; transform: translate(-50%,-50%) scale(1.4); }
}

/* ============================================================
   STOCK ALERT — Urgência Páscoa
   ============================================================ */
.stock-alert {
    background: linear-gradient(135deg,
        rgba(227,16,19,0.18),
        rgba(194,12,15,0.14));
    border: 2px solid var(--p-dourado);
    color: #fff;
    padding: 16px 24px;
    border-radius: 14px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: stock-pulse 3.5s ease-in-out infinite;
}

/* Linha de brilho deslizante */
.stock-alert::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 30%,
        rgba(255,193,7,0.1) 50%,
        transparent 70%);
    background-size: 200% 100%;
    animation: stock-shine 2s linear infinite;
}

@keyframes stock-pulse {
    0%,100% { box-shadow: 0 0 10px rgba(255,193,7,0.3); }
    50%      { box-shadow: 0 0 25px rgba(255,193,7,0.6), 0 0 50px rgba(227,16,19,0.25); }
}

@keyframes stock-shine {
    0%   { background-position:  200% 0; }
    100% { background-position: -200% 0; }
}

.stock-number {
    color: var(--p-ambar);
    font-size: 1.25em;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255,214,10,0.8);
    animation: num-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes num-pulse {
    0%   { transform: scale(1.0); }
    100% { transform: scale(1.06); }
}

/* ============================================================
   FLIP COUNTER — COUNTDOWN PÁSCOA
   Técnica: rotateX placar esportivo (igual ao arquivo de ref.)
   ============================================================ */
.contador-wrapper {
    margin: 0 auto 2.5rem;
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    position: relative;
    z-index: 2;
}


.contador-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--p-ambar);
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

/* Container principal */
.flip-container {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    perspective: 700px;
}

.flip-grupo { text-align: center; }

.flip-grupo__label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-top: 0.5rem;
}

.flip-digits { display: flex; gap: 3px; }

/* Separador ":" */
.flip-dois-pontos {
    font-family: 'Poppins', sans-serif;
    font-size: 2.9rem;
    font-weight: 800;
    color: var(--p-dourado);
    line-height: 1;
    padding: 0 0.1rem;
    align-self: flex-start;
    margin-top: 0.04rem;
    text-shadow: 0 0 14px rgba(255,193,7,0.7);
    animation: piscar-dp 1s step-end infinite;
}

@keyframes piscar-dp {
    0%,100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* Dígito flip */
.flip-digit {
    position: relative;
    width: 56px;
    height: 76px;
    background: var(--flip-bg);
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid var(--flip-border);
    box-shadow:
        0 6px 20px rgba(0,0,0,0.7),
        0 0  16px var(--flip-glow),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transform-style: preserve-3d;
}

/* Linha divisória central */
.flip-digit::after {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 100%; height: 1px;
    background: rgba(0,0,0,0.55);
    z-index: 10;
}

/* Reflexo sutil no canto */
.flip-digit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        140deg,
        rgba(227,16,19,0.06) 0%,
        transparent 55%
    );
    z-index: 5;
    pointer-events: none;
    border-radius: 11px;
}

/* Face do dígito */
.flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    backface-visibility: hidden;
    user-select: none;
}

.flip-face.topo  { background: var(--flip-topo); }
.flip-face.baixo { background: var(--flip-baixo); }

/* ── ANIMAÇÃO FLIP — rotateX estilo aeroporto ── */
.flip-digit.virando .flip-face.topo {
    animation: virar-topo 0.27s cubic-bezier(0.6, 0, 1, 0.4) forwards;
    transform-origin: center bottom;
}
@keyframes virar-topo {
    0%   { transform: rotateX(0deg); }
    100% { transform: rotateX(-90deg); }
}

.flip-digit.virando .flip-face.baixo {
    animation: virar-baixo 0.27s cubic-bezier(0, 0.6, 0.4, 1) 0.27s both;
    transform-origin: center top;
}
@keyframes virar-baixo {
    0%   { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

/* ── URGÊNCIA (<24h): dígitos ficam amarelo dourado ── */
.flip-digit.urgencia {
    border-color: rgba(255,193,7,0.5);
    box-shadow:
        0 6px 20px rgba(0,0,0,0.7),
        0 0  20px rgba(255,193,7,0.55),
        inset 0 1px 0 rgba(255,255,255,0.05);
}
.flip-digit.urgencia .flip-face { color: var(--p-ambar); }
.flip-dois-pontos.urgencia {
    color: var(--p-ambar);
    text-shadow: 0 0 14px rgba(255,214,10,0.9);
}

/* ============================================================
   FEATURE BOXES — Destaque TakeBag
   ============================================================ */
.feature-box {
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.feature-box:hover {
    border-bottom-color: var(--p-roxo);
    box-shadow: 0 6px 24px rgba(227,16,19,0.2);
}
.feature-icon {
    background: linear-gradient(135deg,
        rgba(227,16,19,0.10),
        rgba(255,193,7,0.08));
}
.trust-badge i { color: var(--p-dourado); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 600px) {
    .flip-digit { width: 44px; height: 60px; }
    .flip-face  { font-size: 2.4rem; }
    .flip-dois-pontos { font-size: 2.2rem; }
    .flip-container { gap: 0.2rem; }
    .cta-section .section-title { font-size: clamp(1.1rem, 5vw, 1.8rem); }
}
@media (max-width: 380px) {
    .flip-digit { width: 38px; height: 52px; }
    .flip-face  { font-size: 1.9rem; }
}
