/* Contador de Natal - Ofertas */
.christmas-countdown-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 998;
    animation: slideDown 0.6s ease-out;
    transition: all 0.3s ease;
}

/* Contador fixo quando rolar a página */
.christmas-countdown-wrapper.sticky {
    position: fixed;
    top: 74px; /* Altura do header .navb */
    left: 0;
    right: 0;
    z-index: 998;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: none;
}

/* Garantir que o header fique sempre acima */
header .navb {
    position: fixed !important;
    top: 0 !important;
    z-index: 1000 !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.christmas-countdown-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 55px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

/* Container compactado no modo sticky */
.christmas-countdown-wrapper.sticky .christmas-countdown-container {
    padding: 15px 20px;
    gap: 8px;
}

.countdown-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Título compactado no modo sticky */
.christmas-countdown-wrapper.sticky .countdown-title {
    font-size: 16px;
    letter-spacing: 1px;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-subtitle {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Subtítulo oculto no modo sticky */
.christmas-countdown-wrapper.sticky .countdown-subtitle {
    display: none;
}

.countdown-timer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Timer compactado no modo sticky */
.christmas-countdown-wrapper.sticky .countdown-timer {
    gap: 10px;
}

.countdown-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Item compactado no modo sticky */
.christmas-countdown-wrapper.sticky .countdown-item {
    padding: 8px 15px;
    min-width: 70px;
    border-radius: 8px;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c41e3a, #ff6b6b);
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.countdown-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #c41e3a;
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Arial', sans-serif;
    transition: font-size 0.3s ease;
}

/* Número compactado no modo sticky */
.christmas-countdown-wrapper.sticky .countdown-number {
    font-size: 24px;
    margin-bottom: 3px;
}

.countdown-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: font-size 0.3s ease;
}

/* Label compactado no modo sticky */
.christmas-countdown-wrapper.sticky .countdown-label {
    font-size: 10px;
}

/* Efeito de brilho nos números */
@keyframes shine {
    0% {
        text-shadow: 0 0 5px rgba(196, 30, 58, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(196, 30, 58, 0.8);
    }
    100% {
        text-shadow: 0 0 5px rgba(196, 30, 58, 0.5);
    }
}

.countdown-number {
    animation: shine 2s ease-in-out infinite;
}

/* Flocos de neve decorativos */
.christmas-countdown-wrapper::after {
    content: '❄';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.christmas-countdown-wrapper::before {
    content: '❄';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite 1.5s;
    transition: all 0.3s ease;
}

/* Ocultar flocos de neve no modo sticky */
.christmas-countdown-wrapper.sticky::after,
.christmas-countdown-wrapper.sticky::before {
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .christmas-countdown-container {
        padding: 120px 10px 60px 10px;
        gap: 10px;
    }

    .christmas-countdown-wrapper.sticky .christmas-countdown-container {
        padding: 8px 30px;
        gap: 5px;
    }

    .countdown-title {
        font-size: 18px;
        letter-spacing: 1px;
        text-align: center;
    }

    .christmas-countdown-wrapper.sticky .countdown-title {
        font-size: 14px;
    }

    .countdown-subtitle {
        font-size: 12px;
        text-align: center;
    }

    .countdown-timer {
        gap: 10px;
    }

    .christmas-countdown-wrapper.sticky .countdown-timer {
        gap: 8px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 12px 15px;
    }

    .christmas-countdown-wrapper.sticky .countdown-item {
        min-width: 55px;
        padding: 6px 10px;
    }

    .countdown-number {
        font-size: 28px;
    }

    .christmas-countdown-wrapper.sticky .countdown-number {
        font-size: 20px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .christmas-countdown-wrapper.sticky .countdown-label {
        font-size: 8px;
    }

    .christmas-countdown-wrapper::after,
    .christmas-countdown-wrapper::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .christmas-countdown-container {
        padding: 100px 10px 40px 10px;
    }

    .countdown-title {
        font-size: 16px;
    }

    .christmas-countdown-wrapper.sticky .countdown-title {
        font-size: 12px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 10px 12px;
    }

    .christmas-countdown-wrapper.sticky .countdown-item {
        min-width: 50px;
        padding: 5px 8px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .christmas-countdown-wrapper.sticky .countdown-number {
        font-size: 18px;
    }

    .countdown-label {
        font-size: 9px;
    }

    .christmas-countdown-wrapper.sticky .countdown-label {
        font-size: 7px;
    }
}

/* Espaçador para compensar o contador fixo */
body.countdown-sticky-active {
    padding-top: 0;
}

.countdown-spacer {
    height: 0;
    transition: height 0.3s ease;
    visibility: hidden;
}

.countdown-spacer.active {
    height: var(--countdown-height, 120px);
    visibility: visible;
}
