/* Custom Color Palette */
:root {
    --dark-brown: #3B2E2A;
    --gold: #C5A059;
    --gold-dark: #B08F4A;
    --light-beige: #F5E6D3;
    --white: #FFFFFF;
}

/* Custom Tailwind Classes */
.bg-dark-brown {
    background-color: var(--dark-brown);
}

.bg-gold {
    background-color: var(--gold);
}

.bg-gold-dark {
    background-color: var(--gold-dark);
}

.bg-light-beige {
    background-color: var(--light-beige);
}

.text-dark-brown {
    color: var(--dark-brown);
}

.text-gold {
    color: var(--gold);
}

.text-light-beige {
    color: var(--light-beige);
}

/* Custom Button Styles */
.quiz-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quiz-btn::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;
}

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

/* Quiz Specific Styles */
.quiz-question {
    transition: all 0.3s ease-in-out;
}

.quiz-question:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(59, 46, 42, 0.15);
}

.quiz-option {
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.quiz-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.15);
}

.quiz-option input[type="radio"] {
    accent-color: var(--gold);
    transform: scale(1.2);
}

.quiz-option input[type="radio"]:checked + span {
    color: var(--gold);
    font-weight: 600;
}

.quiz-option:has(input[type="radio"]:checked) {
    border-color: var(--gold);
    background-color: rgba(197, 160, 89, 0.05);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Progress Bar Animation */

/* Animações para os gatilhos da página de sucesso */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(197, 160, 89, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(197, 160, 89, 0.8);
        transform: scale(1.02);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes para os gatilhos */
.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

/* Efeitos de hover para botões */
.btn-urgency {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-urgency:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.3);
}

/* Status inativo com efeito de destaque */
.status-inactive {
    transition: all 0.3s ease;
    cursor: pointer;
}

.status-inactive:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}



/* Notificação de escassez */
.scarcity-alert {
    background: linear-gradient(45deg, #fef2f2, #fee2e2);
    border: 2px solid #fecaca;
    animation: fade-in-up 0.5s ease-out;
}

/* Removido o efeito de entrada da página pois estava causando problemas de exibição */

body.loaded {
    opacity: 1;
}
.progress-bar {
    transition: width 0.5s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Shadows */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(59, 46, 42, 0.25);
}

/* Hover Effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Focus States for Accessibility */
.quiz-btn:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.quiz-option:focus-within {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Loading State */
.quiz-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-beige);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Loading Page Specific Styles */
.loading-page {
    overflow-x: hidden;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    animation-delay: 0.4s;
    border-top-color: var(--gold-dark);
    border-width: 2.5px;
}

.spinner-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    animation-delay: 0.8s;
    border-top-color: var(--dark-brown);
    border-width: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.camarao-float {
    position: absolute;
    font-size: 24px;
    opacity: 0.7;
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

.camarao-1 { top: 20%; left: 10%; }
.camarao-2 { top: 30%; right: 15%; }
.camarao-3 { bottom: 25%; left: 20%; }
.camarao-4 { bottom: 35%; right: 25%; }
.camarao-5 { top: 50%; left: 50%; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

.circle-float {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    opacity: 0.1;
    z-index: 1;
}

.circle-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    right: 10%;
}

.circle-2 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 10%;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.2;
    }
}

/* Notification Styles */
.notification-item {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(59, 46, 42, 0.3);
}



/* Online Counter Styles */
.online-counter {
    background: linear-gradient(135deg, var(--light-beige) 0%, #f0e0c0 100%);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

/* Modal de Zoom Styles */
#galleryModal {
    /* Estado inicial - escondido */
    display: none;
    
    /* Posicionamento */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* Visual */
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
}

#galleryModal button {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

#galleryModal button:hover {
    transform: scale(1.1);
}

#galleryModal img {
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    max-height: 100%;
    cursor: default;
}

/* Review Image Styles */
.review-image-container {
    position: relative;
    overflow: hidden;
}

.review-image-container img {
    transition: transform 0.3s ease-in-out;
}

.review-image-container:hover img {
    transform: scale(1.05);
}

.expand-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(4px);
}

.expand-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.expand-button svg,
.expand-button i {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Botão Flutuante Mobile */
.floating-activate-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 32px);
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(197, 160, 89, 0.4);
    animation: floatUp 0.5s ease-out;
    will-change: box-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.floating-activate-btn:hover {
    box-shadow: 0 15px 50px rgba(197, 160, 89, 0.6);
    transform: translateX(-50%);
}

.floating-activate-btn:active {
    transform: translateX(-50%) scale(0.98);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.5);
}

/* Loader PIX Overlay - Limpo e Simples */
.pix-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(59, 46, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.pix-loader-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.simple-loader {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(197, 160, 89, 0.3);
    border-top-color: #C5A059;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pix-loader-overlay.hidden {
    display: none;
}

/* Animações para Notificações */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.3s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.3s ease-out;
}

/* Modal PIX - Formato igual ao carrinho/index */
.pix-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; /* Prevenir scroll da página de trás no mobile */
}

.pix-modal-overlay.active {
    display: flex;
}

/* Prevenir fechar ao clicar fora */
.pix-modal-overlay.active {
    pointer-events: auto;
}

.pix-modal-overlay.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border-radius: 0;
}

.pix-modal {
    background-color: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overscroll-behavior: contain; /* Prevenir scroll da página de trás */
    -webkit-overflow-scrolling: touch;
    border: none;
    outline: none;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pix-modal-header {
    padding: 12px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(197, 160, 89, 0.3);
    background: linear-gradient(135deg, #C5A059 0%, #B08F4A 100%);
    border-radius: 12px 12px 0 0;
    color: white;
}

.pix-logo {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
}

.pix-timer {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
}

.pix-timer span {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.pix-generating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.pix-generating-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.pix-generating.hide {
    display: none;
}

.pix-modal-body {
    padding: 16px;
}

.pix-code-container {
    background: #f8f9fa;
    border: 2px solid #C5A059;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    max-height: none;
    overflow: visible;
}

.pix-code-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #303030;
    word-break: break-all;
    line-height: 1.6;
    user-select: all;
    letter-spacing: 0.5px;
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    width: 100%;
}

.pix-code-label {
    position: absolute;
    top: -12px;
    left: 15px;
    background: #ffffff;
    color: #C5A059;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #C5A059;
}

/* Pix Loader */
.pix-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
    padding: 40px 20px;
}

.pix-loader.hide {
    display: none;
}

.pix-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.pix-loader-logo {
    margin-bottom: 10px;
    animation: logoPulse 2s ease-in-out infinite;
}

.pix-loader-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(197, 160, 89, 0.3));
}

.pix-loader-spinner-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(197, 160, 89, 0.1);
    border-top: 4px solid #C5A059;
    border-right: 4px solid #C5A059;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    will-change: transform;
    position: relative;
}

.pix-loader-spinner::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #B08F4A;
    animation: spin 0.8s linear infinite reverse;
}

.pix-loader-text {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.pix-loader-subtext {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-top: -5px;
}

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Resumo do Pedido - Estilos Profissionais */
#orderbumps-summary {
    margin-top: 8px;
}

#orderbumps-summary .fa-check-circle {
    animation: checkmarkAppear 0.3s ease-out;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#cupom-codigo {
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(197, 160, 89, 0.2);
}

#cupom-status {
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Animações de Notificação */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.3s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.3s ease-out;
}

.pix-code-content {
    display: none;
    width: 100%;
    margin-top: 10px;
}

.pix-code-content.show {
    display: block;
}

.pix-loader.hide {
    display: none;
}

.pix-copy-btn-modal {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #C5A059 0%, #B08F4A 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

.pix-copy-btn-modal:hover {
    background: linear-gradient(135deg, #B08F4A 0%, #C5A059 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.4);
}

.pix-copy-btn-modal:active {
    transform: scale(0.98);
}

.pix-copy-btn-modal.copied {
    background: #10b981;
}

.pix-instructions-modal {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.pix-instructions-modal strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
}

.pix-steps {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pix-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
}

.pix-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #C5A059;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pix-step-text {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    flex: 1;
}

.pix-mobile-link {
    text-align: center;
    margin-top: 20px;
}

.pix-mobile-link a {
    color: #C5A059;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.pix-mobile-link a:hover {
    text-decoration: underline;
}

.pix-qr-modal {
    display: none;
    text-align: center;
    padding: 5px 0;
    margin-bottom: 8px;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.pix-qr-modal.active {
    display: block;
}

.pix-qr-title {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.3;
}

.pix-qr-code-modal {
    background: #ffffff;
    border: 2px solid #C5A059;
    border-radius: 8px;
    padding: 8px;
    display: inline-block;
    text-align: center;
    width: auto;
    max-width: 200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.pix-qr-code-modal canvas {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 4px;
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
    min-width: 180px !important;
    min-height: 180px !important;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    background: #ffffff;
}

.pix-purchase-value {
    display: none;
}

@media (max-width: 640px) {
    .pix-modal {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }
    
    .pix-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .pix-code-text {
        font-size: 12px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animação de fade-in */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loader quando PIX aparece */
.pix-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}