* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e7e7e7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.navbar-menu a {
    color: #555;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: #007bff;
}

/* Main Content */
.main-content {
    padding: 20px 0;
}

.page-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Buyer Data */
.buyer-data {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.buyer-data h2 {
    color: #1976D2;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1976D2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.payment-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.payment-section h3 {
    color: #1976D2;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-method {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fdfdfd;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method .payment-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.payment-icon {
    width: 40px;
    height: auto;
}

.payment-description {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    padding-left: 55px; /* Aligns with text next to icon */
}

.submit-btn {
    width: 100%;
    background: #1976D2;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #1565C0;
    transform: translateY(-1px);
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
}

.order-summary h2 {
    color: #1976D2;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.item-info h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.item-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 3px;
}

.item-date {
    color: #1976D2;
    font-weight: 500;
}

.item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.quantity {
    color: #666;
    font-size: 14px;
}

.price {
    color: #333;
    font-weight: 500;
}

.total {
    color: #1976D2;
    font-weight: 600;
    font-size: 16px;
}

.order-total {
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.final-total {
    font-weight: 600;
    font-size: 18px;
    color: #1976D2;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    margin-top: 10px;
}

/* PIX Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-header h3 {
    color: #1976D2;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f0f0f0;
    color: #333;
}

.pix-info {
    text-align: center;
}

.pix-info p {
    margin-bottom: 20px;
    color: #666;
}

.qr-code {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
}

.qr-placeholder i {
    font-size: 48px;
    color: #1976D2;
}

.pix-code {
    margin: 20px 0;
}

.pix-code label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.code-container {
    display: flex;
    gap: 10px;
}

.code-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
}

.copy-btn {
    background: #1976D2;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #1565C0;
}

.payment-status {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: center;
}

.payment-status p {
    margin: 0;
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-indicator {
    margin-top: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1976D2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* PIX Payment Styles */
.pix-payment-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.payment-header h2 {
    color: #1976D2;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-status {
    color: #FF9800;
    font-weight: 500;
    font-size: 16px;
}

.qr-code-section {
    text-align: center;
    margin-bottom: 30px;
}

.qr-code-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.qr-code-container {
    margin: 20px 0;
}

.qr-code-image {
    max-width: 250px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.qr-code-placeholder {
    width: 250px;
    height: 250px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    background: #f9f9f9;
}

.qr-code-placeholder i {
    font-size: 48px;
    color: #1976D2;
    margin-bottom: 10px;
}

.qr-code-placeholder .amount {
    font-size: 24px;
    font-weight: bold;
    color: #1976D2;
    margin-top: 10px;
}

.pix-code-section {
    margin-top: 30px;
}

.pix-code-section h4 {
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

.pix-code-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

#pix-code {
    flex: 1;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    resize: vertical;
    background: #f9f9f9;
}

.copy-btn {
    background: #1976D2;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #1565C0;
    transform: translateY(-1px);
}

.payment-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
    border-bottom: none;
}

.status-pending {
    color: #FF9800;
    font-weight: 500;
}

.status-paid {
    color: #4CAF50;
    font-weight: 500;
}

.payment-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.check-status-btn, .back-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-status-btn {
    background: #4CAF50;
    color: white;
}

.check-status-btn:hover {
    background: #45a049;
}

.back-btn {
    background: #6c757d;
    color: white;
}

.back-btn:hover {
    background: #5a6268;
}

/* Payment Success */
.payment-success {
    text-align: center;
    padding: 50px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 64px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.payment-success h2 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.payment-success p {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

.success-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.success-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .pix-payment-container {
        padding: 20px;
        margin: 10px;
    }
    
    .pix-code-container {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .qr-code-image, .qr-code-placeholder {
        max-width: 200px;
        width: 200px;
        height: 200px;
    }
}

/* Footer */
.footer {
    background: #212529;
    color: #f8f9fa;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
    color: #adb5bd;
}

.footer a {
    color: #fff;
    text-decoration: underline;
}




/* Aviso de Segurança no Checkout */
.checkout-security-notice {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    padding: 20px 0;
    margin-bottom: 20px;
}

.security-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.security-content h4 {
    color: #155724;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-content p {
    color: #155724;
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Footer do Checkout */
.footer-checkout-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.footer-checkout-content .footer-section h5 {
    color: #024ddf;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #024ddf;
    padding-bottom: 3px;
}

.footer-checkout-content .footer-section p {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
}

.footer-checkout-content .footer-section i {
    color: #28a745;
    margin-right: 8px;
    width: 16px;
}

.footer-checkout-content .footer-section a {
    color: #87ceeb;
    text-decoration: none;
}

.footer-checkout-content .footer-section a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsividade para elementos de checkout */
@media (max-width: 768px) {
    .footer-checkout-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .security-content {
        padding: 0 15px;
    }
    
    .checkout-security-notice {
        padding: 15px 0;
    }
}
