/**
 * My Checkout - Estilos
 * Versão: 1.0.0
 */

/* ============================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevenir zoom no iOS ao focar em inputs */
@supports (-webkit-touch-callout: none) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

input, select, textarea, button {
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px 0;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.custom-checkout-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   CABEÇALHO DO CHECKOUT
   ============================================ */
.checkout-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
}

.checkout-header h1 {
    font-size: 36px;
    color: #1a202c;
    margin-bottom: 12px;
    font-weight: 700;
}

.checkout-header p {
    color: #718096;
    font-size: 18px;
}

/* ============================================
   SIDEBAR (RESUMO + ETAPAS)
   ============================================ */
.order-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

/* ============================================
   INDICADOR DE ETAPAS
   ============================================ */
.checkout-steps-container {
    background: white;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.checkout-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: default;
}

.checkout-steps .step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.checkout-steps .step-label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.checkout-steps .step.active .step-number {
    background: #1a202c;
    color: white;
    border-color: #1a202c;
    box-shadow: 0 4px 15px rgba(26, 32, 44, 0.3);
}

.checkout-steps .step.active .step-label {
    color: #1a202c;
}

.checkout-steps .step.completed .step-number {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

.checkout-steps .step.completed .step-label {
    color: #48bb78;
}

.checkout-steps .step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 12px;
    margin-bottom: 26px;
    transition: all 0.3s ease;
    min-width: 30px;
    max-width: 60px;
}

.checkout-steps .step-line.active {
    background: #48bb78;
}

/* ============================================
   LAYOUT GRID
   ============================================ */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    align-items: start;
}

/* ============================================
   FORMULÁRIO DE CHECKOUT
   ============================================ */
.checkout-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CONTEÚDO DAS ETAPAS
   ============================================ */
.checkout-step-content {
    display: none;
    animation: fadeInStep 0.4s ease-out;
}

.checkout-step-content.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   BOTÕES DE NAVEGAÇÃO
   ============================================ */
.btn-continue {
    width: 100%;
    padding: 18px 32px;
    background: #1a202c;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 25px;
}

.btn-continue:hover:not(:disabled) {
    background: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 32, 44, 0.3);
}

.btn-continue:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-back {
    padding: 10px 20px;
    background: transparent;
    color: #718096;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #f7fafc;
    color: #4a5568;
}

.step-navigation {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.step-navigation .btn-continue,
.step-navigation .submit-button {
    width: 100%;
    margin-top: 0;
    text-align: center;
}

.step-navigation .btn-back {
    order: 2;
}

/* ============================================
   CAMPOS DE ENDEREÇO OCULTOS
   ============================================ */
.address-fields-hidden {
    display: none;
    animation: slideDown 0.4s ease-out;
}

.address-fields-hidden.visible {
    display: block;
}

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

.cep-field-wrapper {
    max-width: 300px;
}

/* ============================================
   RESUMO DO PEDIDO
   ============================================ */
.order-summary {
    background: white;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.order-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px;
    cursor: pointer;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.order-summary-header:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
}

.order-summary-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-summary-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.order-summary-total {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-total-value {
    font-size: 24px;
    font-weight: 800;
    color: #48bb78;
}

.toggle-arrow {
    font-size: 20px;
    transition: transform 0.3s;
    color: #4a5568;
}

.toggle-arrow.open {
    transform: rotate(180deg);
}

.order-summary-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.order-summary-content.open {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.order-summary-inner {
    padding: 35px;
}

/* ============================================
   TÍTULOS DE SEÇÃO
   ============================================ */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 15px;
    color: #1a202c;
    padding-bottom: 12px;
    border-bottom: 3px solid #1a202c;
    text-align: center;
    display: block;
}

.section-title:first-of-type {
    margin-top: 0;
}

/* ============================================
   GRID DE FORMULÁRIO
   ============================================ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4a5568;
    display: block;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select,
.form-group textarea,
.checkout-form input:not([type="radio"]):not([type="checkbox"]),
.checkout-form textarea {
    display: block !important;
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #2d3748 !important;
    -webkit-text-fill-color: #2d3748 !important;
    background-color: #f9fafb !important;
    transition: all 0.3s;
    opacity: 1 !important;
    visibility: visible !important;
    /* Prevenir zoom no iOS */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
    background-color: white !important;
}

.form-group input::placeholder,
.checkout-form input::placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

/* Reset completo do select para garantir visibilidade */
.form-group select,
.checkout-form select,
select#billing_state {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 14px 40px 14px 18px !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #2d3748 !important;
    -webkit-text-fill-color: #2d3748 !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    vertical-align: middle !important;
    background-color: #f9fafb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
    overflow: visible !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.form-group select:focus,
.checkout-form select:focus,
select#billing_state:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
    background-color: white !important;
    outline: none !important;
}

.form-group select option,
.checkout-form select option,
select#billing_state option {
    color: #2d3748 !important;
    background-color: white !important;
    padding: 10px !important;
}

/* Status do CEP */
.cep-status {
    display: block;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
    min-height: 18px;
}


/* ============================================
   LISTA DE PRODUTOS
   ============================================ */
.product-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

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

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #f7fafc;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 15px;
}

.product-meta {
    font-size: 14px;
    color: #718096;
}

.product-quantity {
    background: #1a202c;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.product-price {
    font-weight: 700;
    color: #1a202c;
    font-size: 16px;
    white-space: nowrap;
}

/* ============================================
   TABELA DE TOTAIS
   ============================================ */
.totals-table {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    color: #4a5568;
}

.totals-row.total {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    padding-top: 20px;
    border-top: 3px solid #667eea;
    margin-top: 15px;
}

/* ============================================
   FORMULÁRIO DE CUPOM
   ============================================ */
.coupon-form {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.coupon-form input {
    flex: 1;
    padding: 14px 18px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #2d3748 !important;
    -webkit-text-fill-color: #2d3748 !important;
    background-color: #f9fafb !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.coupon-form input::placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

.coupon-form input:focus {
    outline: none !important;
    border-color: #48bb78 !important;
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.15) !important;
    background-color: white !important;
}

.coupon-form button {
    padding: 4px 24px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    white-space: nowrap;
}

.coupon-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.applied-coupon {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border: 2px solid #48bb78;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #22543d;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   MÉTODOS DE ENVIO E PAGAMENTO
   ============================================ */
.shipping-methods,
.payment-methods {
    margin-bottom: 20px;
}

/* Wrapper das opções de pagamento */
.payment-option-wrapper {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    background: white;
}

.payment-option-wrapper:hover {
    border-color: #48bb78;
}

.payment-option-wrapper.selected,
.payment-option-wrapper:has(input:checked) {
    border-color: #48bb78;
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.25);
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
}

/* Label de pagamento */
.payment-methods .method-option {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    border: none;
    margin-bottom: 0;
    gap: 12px;
}

.payment-option-wrapper:not(.selected) .method-option:hover {
    background: rgba(72, 187, 120, 0.05);
}

.payment-option-wrapper.selected .method-option {
    background: transparent;
}

.payment-methods .method-option input[type="radio"] {
    width: 22px !important;
    height: 22px;
    cursor: pointer;
    accent-color: #48bb78;
    flex-shrink: 0;
    margin: 0;
}

/* Ícone SVG de pagamento */
.payment-icon-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #4a5568;
}

/* Ícone do PIX - imagem */
.pix-icon-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Ícone do cartão muda de cor quando selecionado */
.payment-option-wrapper.selected .payment-icon-svg:not(.pix-icon),
.payment-option-wrapper:has(input:checked) .payment-icon-svg:not(.pix-icon) {
    color: #48bb78;
}

/* Label do método */
.payment-methods .method-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    flex: 1;
}

/* Badge de desconto */
.discount-badge {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Detalhes do PIX */
.payment-details.pix-details {
    display: none;
    padding: 24px;
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    border-top: 1px solid #c6f6d5;
}

.payment-option-wrapper:has(input:checked) .pix-details,
.payment-option-wrapper.selected .pix-details {
    display: block;
}

.payment-info-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 16px;
    margin-bottom: 10px;
}

.payment-info-text {
    color: #718096;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

.pix-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.pix-value strong {
    color: #48bb78;
    font-size: 18px;
    font-weight: 700;
}

/* Campos do Cartão */
.payment-fields.card-fields {
    display: none;
    padding: 24px;
    background: #f9fafb;
    border-top: 1px solid #e2e8f0;
}

.payment-option-wrapper:has(input:checked) .card-fields,
.payment-option-wrapper.selected .card-fields {
    display: block;
}

.card-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card-form-group {
    display: flex;
    flex-direction: column;
}

.card-form-group.full {
    grid-column: 1 / -1;
}

.card-form-group.half {
    grid-column: span 1;
}

.card-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.card-form-group input {
    padding: 14px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    background: white !important;
    color: #2d3748 !important;
    transition: all 0.3s;
}

.card-form-group input:focus {
    border-color: #48bb78 !important;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.15) !important;
    outline: none !important;
}

.card-form-group input::placeholder {
    color: #a0aec0 !important;
}

/* Opções de frete - novo design */
.shipping-option {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    gap: 15px;
}

.shipping-option:hover {
    border-color: #667eea;
}

.shipping-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #ebf4ff 0%, #e0e7ff 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.shipping-option input[type="radio"] {
    width: 22px !important;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
    margin: 0;
    flex-shrink: 0;
}

.shipping-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shipping-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}

.shipping-time {
    font-size: 14px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipping-time img {
    width: 20px;
    height: 20px;
}

.full-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a202c;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.shipping-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    white-space: nowrap;
}

.shipping-price.free {
    color: #48bb78;
}

/* Shipping methods antigo (manter compatibilidade) */
.shipping-methods .method-option {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s;
    gap: 15px;
}

.shipping-methods .method-option:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.shipping-methods .method-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #ebf4ff 0%, #e0e7ff 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.shipping-methods .method-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    margin: 0;
}

.method-label {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
}

.method-price {
    font-weight: 700;
    color: #667eea;
    font-size: 16px;
}

/* ============================================
   CAMPOS DE PAGAMENTO
   ============================================ */
.payment-fields {
    display: none;
    padding: 25px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    margin-top: 12px;
    border: 2px solid #e2e8f0;
}

.payment-fields.active {
    display: block;
}

/* ============================================
   TERMOS E CONDIÇÕES
   ============================================ */
.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #e2e8f0;
}

.terms-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.terms-checkbox label {
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
}

.terms-checkbox a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* ============================================
   BOTÃO FINALIZAR
   ============================================ */
.submit-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    display: block;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(72, 187, 120, 0.5);
}

.submit-button:active {
    transform: translateY(-1px);
}

/* ============================================
   CARRINHO VAZIO
   ============================================ */
.empty-cart {
    text-align: center;
    padding: 80px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.empty-cart h2 {
    margin-bottom: 15px;
    color: #2d3748;
    font-size: 28px;
}

.empty-cart p {
    color: #718096;
    font-size: 16px;
    margin-bottom: 25px;
}

.empty-cart a {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.empty-cart a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

/* ============================================
   MENSAGENS DO WOOCOMMERCE
   ============================================ */
.woocommerce-error,
.woocommerce-message {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce-error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #742a2a;
    border-left: 5px solid #fc8181;
}

.woocommerce-message {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    border-left: 5px solid #48bb78;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 1200px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .order-sidebar {
        order: -1;
        position: static;
    }
    
    .order-summary-header {
        padding: 20px 25px;
    }
    
    .order-summary-inner {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .custom-checkout-wrapper {
        padding: 15px;
    }
    
    .checkout-header {
        padding: 20px 15px;
        margin-bottom: 0;
    }
    
    .checkout-header h1 {
        font-size: 28px;
    }
    
    .checkout-steps-container {
        padding: 20px 15px;
    }
    
    .checkout-steps {
        gap: 0;
    }
    
    .checkout-steps .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .checkout-steps .step-label {
        font-size: 10px;
    }
    
    .checkout-steps .step-line {
        min-width: 20px;
        max-width: 40px;
        margin: 0 6px;
        margin-bottom: 24px;
    }
    
    .checkout-form {
        padding: 25px 20px;
    }
    
    .order-summary-header {
        padding: 18px 20px;
    }
    
    .order-summary-inner {
        padding: 20px;
    }
    
    .order-summary-title h2 {
        font-size: 16px;
    }
    
    .order-total-value {
        font-size: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .form-grid .form-group.full-width {
        grid-column: 1 / -1;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 14px !important;
        font-size: 16px !important;
    }
    
    .coupon-form {
        flex-direction: column;
    }
    
    .step-navigation {
        gap: 12px;
    }
    
    .cep-field-wrapper {
        max-width: 100%;
    }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.checkout-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.loading-content {
    position: relative;
    text-align: center;
    padding: 40px;
}

.loading-warning {
    color: #fbbf24;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loading-spinner {
    margin: 0 auto 25px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #48bb78;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   MODAL PIX
   ============================================ */
.pix-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pix-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.pix-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pix-modal-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.pix-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px;
}

.pix-modal-header p {
    color: #718096;
    font-size: 16px;
    margin: 0;
}

.pix-modal-header #pix-timer {
    color: #48bb78;
    font-weight: 700;
}

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

.pix-illustration {
    text-align: center;
    margin-bottom: 20px;
}

.pix-illustration img {
    width: 80px;
    height: 80px;
}

.pix-status {
    text-align: center;
    margin-bottom: 25px;
}

.pix-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.pix-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.pix-code-container {
    margin-bottom: 20px;
}

.pix-code-container input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    font-family: monospace;
    color: #718096;
    background: #f7fafc;
    margin-bottom: 12px;
    text-overflow: ellipsis;
}

.btn-copy-pix {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy-pix:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.btn-copy-pix.copied {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.pix-value-display {
    text-align: center;
    font-size: 18px;
    color: #1a202c;
    padding: 15px 0;
    border-top: 1px dashed #e2e8f0;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 25px;
    font-weight: 600;
}

.pix-value-display strong {
    color: #48bb78;
    font-size: 22px;
}

.btn-ja-paguei {
    display: block;
    width: auto;
    max-width: 200px;
    margin: 15px auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-ja-paguei:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    color: white;
}

.pix-instructions {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
}

.pix-instructions h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 15px;
}

.pix-instructions ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pix-instructions li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #4a5568;
    font-size: 14px;
}

.pix-instructions .step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.pix-modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.btn-continue-shopping {
    display: inline-block;
    padding: 14px 30px;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-continue-shopping:hover {
    background: #edf2f7;
    color: #2d3748;
}

/* Responsivo Modal */
@media (max-width: 540px) {
    .pix-modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
        margin-top: auto;
    }
    
    .pix-modal-header {
        padding: 25px 20px 15px;
    }
    
    .pix-modal-header h2 {
        font-size: 24px;
    }
    
    .pix-modal-body {
        padding: 20px;
    }
}

/* ============================================
   POPUP FALLBACK PIX
   ============================================ */
.pix-fallback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pix-fallback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.pix-fallback-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

.pix-fallback-icon {
    margin-bottom: 20px;
}

.pix-fallback-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 15px;
}

.pix-fallback-content p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 25px;
}

.pix-fallback-content p strong {
    color: #48bb78;
}

.pix-fallback-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-pagar-pix {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pagar-pix:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.btn-pagar-pix img {
    width: 24px;
    height: 24px;
}

.btn-tentar-novamente {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #718096;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-tentar-novamente:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #4a5568;
}
