/* ======================================================
   CONVERSION-OPTIMIZED BUTTONS & ELEMENTS
   Focado em aumentar taxa de conversão
   ======================================================*/

/* Primary CTA Button - High Conversion */
.btn-cta-primary {
    background: linear-gradient(135deg, #500327 0%, #6b0436 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(80, 3, 39, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(80, 3, 39, 0.4);
}

.btn-cta-primary:hover::before {
    left: 100%;
}

.btn-cta-primary:active {
    transform: translateY(0);
}

/* Secondary CTA Button */
.btn-cta-secondary {
    background: white;
    color: #500327;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 2px solid #500327;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-secondary:hover {
    background: #500327;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(80, 3, 39, 0.2);
}

/* Urgency Button */
.btn-urgency {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    animation: pulse-urgency 2s infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse-urgency {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(220, 38, 38, 0.5);
    }
}

.btn-urgency:hover {
    transform: translateY(-2px) scale(1.02);
    animation: none;
}

/* Green Success Button */
.btn-success {
    background: linear-gradient(135deg, #4DB62F 0%, #5cc73d 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(77, 182, 47, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(77, 182, 47, 0.4);
}

/* Floating CTA for Mobile */
.btn-floating-cta {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: linear-gradient(135deg, #500327 0%, #6b0436 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(80, 3, 39, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

@media (max-width: 768px) {
    .btn-floating-cta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

.btn-floating-cta:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 15px 50px rgba(80, 3, 39, 0.5);
}

/* Sticky CTA Bar */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 90;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta-bar.visible {
    display: block;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .sticky-cta-bar.visible {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #166534;
}

.trust-badge i {
    font-size: 1rem;
}

/* Social Proof Counter */
.social-proof-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 999px;
    font-size: 1.125rem;
    font-weight: 800;
    color: #dc2626;
}

.countdown-timer i {
    font-size: 1.25rem;
    animation: pulse-clock 1s infinite;
}

@keyframes pulse-clock {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Stock Progress Bar */
.stock-progress {
    width: 100%;
    height: 8px;
    background: #fef3c7;
    border-radius: 999px;
    overflow: hidden;
}

.stock-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border-radius: 999px;
    transition: width 0.5s ease;
    animation: progress-pulse 2s infinite;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Hot Badge */
.badge-hot {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: badge-pulse 1.5s infinite;
}

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

/* New Badge */
.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #4DB62F 0%, #5cc73d 100%);
    color: white;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Best Seller Badge */
.badge-best-seller {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #500327 0%, #6b0436 100%);
    color: white;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-stars i.empty {
    color: #e5e7eb;
}

/* Price Display */
.price-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 900;
    color: #4DB62F;
    letter-spacing: -0.025em;
    line-height: 1;
}

.price-old {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.price-savings {
    padding: 0.25rem 0.75rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Micro-interactions */
.btn-cta-primary,
.btn-cta-secondary,
.btn-urgency,
.btn-success {
    position: relative;
}

.btn-cta-primary:active,
.btn-cta-secondary:active,
.btn-urgency:active,
.btn-success:active {
    transform: scale(0.98);
}

/* Focus States */
.btn-cta-primary:focus,
.btn-cta-secondary:focus,
.btn-urgency:focus,
.btn-success:focus {
    outline: 2px solid #500327;
    outline-offset: 2px;
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
