:root {
    --navy-primary: #0A2A4E;
    --navy-dark: #071D35;
    --gold-primary: #FACC15;
    --gold-vibrant: #FFD700;
    --cream-bg: #FFFDF5;
    --white: #FFFFFF;
    --gray-soft: #F8FAFC;
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream-bg);
}

/* --- ESTILOS PREMIUM --- */
.text-gradient-gold {
    background: linear-gradient(135deg, #EAB308 0%, #FACC15 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-premium-navy {
    background: linear-gradient(135deg, #0A2A4E 0%, #071D35 100%);
}

.btn-premium-gold {
    background: linear-gradient(135deg, #FACC15 0%, #EAB308 100%);
    box-shadow: 0 10px 20px -5px rgba(234, 179, 8, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(234, 179, 8, 0.5);
    filter: brightness(1.05);
}

.card-premium {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-premium);
    transition: all 0.4s ease;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 40px -10px rgba(0, 0, 0, 0.08);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- ANIMAÇÕES --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-premium-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

.cart-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    overflow-y: auto;
    padding: 10px;
}

.cart-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cart-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 1000px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 95vh;
}

.cart-modal-header {
    background: #0A2A4E;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.cart-modal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background-color: #f8fafc;
    overflow-y: auto;
}

.checkout-form-column {
    padding: 25px;
    background: white;
    border-right: 1px solid #e2e8f0;
}

.checkout-summary-column {
    padding: 25px;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
}

.form-section { margin-bottom: 25px; }

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0A2A4E;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group { margin-bottom: 15px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s;
    background-color: #fff;
}

.form-input:focus {
    border-color: #0A2A4E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 42, 78, 0.1);
}

#btn-geo {
    width: 100%;
    background-color: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 20px;
}

#btn-geo:hover { background-color: #bae6fd; }

.payment-options-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* --- CORREÇÃO CRÍTICA DO ERRO DE CONSOLE --- */
/* Substituímos 'display: none' por propriedades que escondem visualmente mas mantêm acessível para validação */
.payment-radio-label input[type="radio"] { 
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    color: #64748b;
}

.payment-card i { font-size: 1.5rem; margin-bottom: 5px; }
.payment-card span { font-size: 0.8rem; font-weight: 600; }

.payment-radio-label input:checked + .payment-card {
    border-color: #0A2A4E;
    background-color: #f0f9ff;
    color: #0A2A4E;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.payment-radio-label input[value="Pix"]:checked + .payment-card i { color: #32BCAD; }
.payment-radio-label input[value="Cartão"]:checked + .payment-card i { color: #2563eb; }
.payment-radio-label input[value="Dinheiro"]:checked + .payment-card i { color: #16a34a; }

.summary-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.summary-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #64748b;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #e2e8f0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0A2A4E;
}

.btn-finalize {
    width: 100%;
    background-color: #25D366;
    color: white;
    padding: 16px;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-finalize:hover { background-color: #1ebc57; transform: translateY(-2px); }


@media (max-width: 900px) {
    .cart-modal { padding: 0; }
    .cart-modal-content { height: 100%; border-radius: 0; max-height: 100vh; }
    .cart-modal-body { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .checkout-form-column { order: 1; padding: 20px; border-right: none; border-bottom: 1px solid #e2e8f0; }
    .checkout-summary-column { order: 2; padding: 20px; }
    .cart-modal-header { padding: 15px; position: sticky; top: 0; z-index: 10; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.field-error {
    border: 2px solid #ef4444 !important;
    animation: shake 0.4s ease-in-out;
    border-radius: 12px;
    padding: 5px;
    background-color: #fef2f2;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }