/* Banner de Desconto com Countdown */
.discount-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.discount-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.discount-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.discount-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.discount-icon {
    font-size: 60px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.discount-info {
    flex: 1;
    min-width: 300px;
}

.discount-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.discount-message {
    font-size: 16px;
    margin: 0 0 15px 0;
    opacity: 0.95;
}

.discount-code-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.discount-label {
    font-size: 14px;
    opacity: 0.9;
}

.discount-code {
    background: white;
    color: #f5576c;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', monospace;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.discount-copy-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.discount-copy-btn:hover {
    background: white;
    color: #f5576c;
    transform: translateY(-2px);
}

.discount-copy-btn:active {
    transform: translateY(0);
}

.discount-timer {
    text-align: center;
}

.timer-label {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.countdown {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    min-width: 70px;
}

.countdown-value {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
    text-transform: uppercase;
}

.countdown-separator {
    font-size: 32px;
    font-weight: bold;
    opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
    .discount-banner {
        padding: 15px;
    }

    .discount-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .discount-icon {
        font-size: 40px;
    }

    .discount-title {
        font-size: 22px;
    }

    .discount-code {
        font-size: 20px;
        padding: 10px 20px;
    }

    .countdown-value {
        font-size: 24px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 8px 10px;
    }

    .discount-code-section {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .discount-banner {
        padding: 10px;
    }

    .discount-title {
        font-size: 18px;
    }

    .discount-message {
        font-size: 14px;
    }

    .discount-code {
        font-size: 18px;
        padding: 8px 15px;
        letter-spacing: 2px;
    }

    .countdown-value {
        font-size: 20px;
    }

    .countdown-item {
        min-width: 50px;
        padding: 6px 8px;
    }

    .countdown-label {
        font-size: 10px;
    }
}

/* Animação quando o banner fecha */
.discount-banner.closing {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Ajuste do conteúdo da página quando o banner está visível */
body.has-discount-banner {
    padding-top: 180px;
    transition: padding-top 0.5s ease;
}

@media (max-width: 768px) {
    body.has-discount-banner {
        padding-top: 250px;
    }
}

@media (max-width: 480px) {
    body.has-discount-banner {
        padding-top: 280px;
    }
}
