/* Estilos Gerais do Checkout */
body {
    background: #1a1a1a;
    color: #fff;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* Header e Steps */
header {
    background: #2a2a2a;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
}

.step.active {
    color: #007bff;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step.active .step-number {
    background: #007bff;
    color: #fff;
}

/* Formulários */
.checkout-section {
    display: none;
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.checkout-section.active {
    display: block;
}

.checkout-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 1rem;
    background: #333;
    color: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* CEP Input */
.cep-input {
    display: flex;
    gap: 1rem;
}

.cep-input input {
    flex: 1;
}

.cep-input button {
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.cep-input button:hover {
    background: #0056b3;
}

/* Métodos de Pagamento */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    position: relative;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #444;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    background: #333;
}

.payment-method input[type="radio"]:checked + label {
    border-color: #007bff;
    background: rgba(0,123,255,0.1);
}

.payment-method i {
    font-size: 1.5rem;
    color: #999;
}

/* PIX e Boleto */
.pix-info, .boleto-info {
    text-align: center;
    padding: 2rem;
    background: #333;
    border-radius: 8px;
}

.pix-qrcode {
    margin: 2rem 0;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    display: inline-block;
}

.pix-code {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.pix-code input {
    flex: 1;
    background: #2a2a2a;
}

.btn-copy {
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Botões */
.btn-next {
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-next:hover {
    background: #0056b3;
}

/* Resumo do Pedido */
.order-summary {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: sticky;
    top: 2rem;
}

.summary-items {
    margin: 1.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #444;
}

.summary-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.summary-item-info {
    flex: 1;
}

.summary-item-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #fff;
}

.summary-item-price {
    color: #999;
}

.summary-totals {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #444;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #fff;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

/* Confirmação */
.confirmation-content {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.order-info {
    background: #333;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-home, .btn-print {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-home {
    background: #007bff;
    color: #fff;
}

.btn-print {
    background: #333;
    color: #fff;
    border: 1px solid #444;
}

.btn-home:hover {
    background: #0056b3;
}

.btn-print:hover {
    background: #444;
}

/* Responsividade */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        margin-top: 2rem;
    }

    .checkout-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
} 