﻿/* ==========================================================================
   MAKESOLUTIONS — Carrinho + Checkout
   Author: Eng. Cesário Monteiro | JNSOFT Engenharia
   ========================================================================== */

/* ── HEADER ── */
.ms-cart-header {
    background: linear-gradient(135deg, #0A0E17 0%, #1a252f 100%);
    border-bottom: 3px solid #E07B00;
    padding: 36px 0;
    padding-top: 86px;
}
.ms-cart-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.ms-cart-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.ms-cart-title .fa { color: #E07B00; margin-right: 10px; }
.ms-cart-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin: 0;
}
.ms-cart-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.65);
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s;
}
.ms-cart-back:hover { color: #fff; border-color: rgba(255,255,255,0.5); text-decoration: none; }

/* ── BODY ── */
.ms-cart-body { background: #f4f4f2; padding: 40px 0 60px; min-height: 60vh; }

/* ── EMPTY STATE ── */
.ms-cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    max-width: 540px;
    margin: 0 auto;
}
.ms-empty-cart-icon {
    font-size: 64px;
    color: #ddd;
    display: block;
    margin-bottom: 20px;
}
.ms-cart-empty h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    color: #2c3e50;
    margin: 0 0 10px;
}
.ms-cart-empty p { color: #718096; font-size: 15px; margin: 0 0 24px; }
.ms-empty-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.ms-btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E07B00;
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 2px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.ms-btn-orange:hover { background: #c96f00; }
.ms-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #E07B00 !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 2px;
    border: 2px solid #E07B00;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}
.ms-btn-outline:hover { background: #E07B00; color: #fff !important; }

/* ── CART ITEMS TABLE ── */
.ms-cart-items-header {
    display: grid;
    grid-template-columns: 1fr 100px 60px 100px 36px;
    gap: 12px;
    padding: 10px 16px;
    background: #2c3e50;
    border-radius: 3px 3px 0 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.ms-cart-item {
    display: grid;
    grid-template-columns: 1fr 100px 60px 100px 36px;
    gap: 12px;
    align-items: center;
    padding: 18px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.ms-cart-item:last-of-type { border-bottom: none; border-radius: 0 0 3px 3px; }
.ms-cart-item:hover { background: #fffaf6; }

.ms-cart-item-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ms-cart-item-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #E07B00, #f0a030);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}
.ms-cart-item-tipo {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #E07B00;
    margin-bottom: 2px;
}
.ms-cart-item-nome {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0f1923;
    margin: 0 0 2px;
}
.ms-cart-item-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

.ms-cart-item-preco,
.ms-cart-item-qtd,
.ms-cart-item-subtotal {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}
.ms-cart-item-subtotal { font-weight: 700; color: #0f1923; }

.ms-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f8f0f0;
    color: #e74c3c;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.2s, color 0.2s;
}
.ms-remove-btn:hover { background: #e74c3c; color: #fff; }

.ms-cart-clear {
    padding: 16px 0 0;
    text-align: right;
}
.ms-btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.ms-btn-clear:hover { color: #e74c3c; }

/* ── ORDER SUMMARY ── */
.ms-order-summary {
    background: #fff;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 120px;
}
.ms-summary-title {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0f1923;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}
.ms-summary-title .fa { color: #E07B00; margin-right: 8px; }

.ms-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #5c6b7a;
}
.ms-summary-taxa { color: #27ae60; font-size: 12px; font-style: italic; }
.ms-summary-divider { height: 1px; background: #e9ecef; margin: 12px 0; }
.ms-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f1923;
    margin-bottom: 20px;
}
.ms-total-val { color: #E07B00; font-size: 24px; }

.ms-pix-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0faf4;
    border: 1px solid #a8d5b5;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.ms-pix-badge .fa {
    font-size: 22px;
    color: #27ae60;
}
.ms-pix-badge strong { display: block; color: #1a5c30; font-size: 14px; }
.ms-pix-badge small { color: #27ae60; font-size: 12px; }

.ms-btn-finalizar {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #1a9e4a, #27ae60);
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px;
    border-radius: 3px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: filter 0.2s;
    margin-bottom: 12px;
}
.ms-btn-finalizar:hover { filter: brightness(1.1); }

.ms-secure-note {
    text-align: center;
    color: #aaa;
    font-size: 12px;
    margin: 0;
}
.ms-secure-note .fa { margin-right: 4px; color: #27ae60; }

.ms-accepted-payment {
    background: #fff;
    border-radius: 4px;
    padding: 14px 18px;
    margin-top: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    text-align: center;
}
.ms-payment-label { display: block; font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.ms-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
}
.ms-pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.ms-pay-pix { background: #e8f9ef; color: #27ae60; border: 1px solid #a8d5b5; }
.ms-pay-boleto { background: #eef3ff; color: #3b82f6; border: 1px solid #93b4f6; }
.ms-pay-credito { background: #fff4e6; color: #E07B00; border: 1px solid #f0c78a; }
.ms-pay-debito { background: #f3e8ff; color: #8b5cf6; border: 1px solid #c4a8f0; }

.ms-payment-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 6px;
}
.ms-brand-item {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ms-pix-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f9ef;
    color: #27ae60;
    border: 1px solid #a8d5b5;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ── CHECKOUT ── */
.ms-checkout-section { margin-bottom: 28px; }
.ms-checkout-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f1923;
    margin: 0 0 14px;
}
.ms-step-num {
    width: 28px;
    height: 28px;
    background: #E07B00;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.ms-checkout-card {
    background: #fff;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.ms-form-label {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    display: block;
}
.ms-form-input {
    border: 1px solid #dde3e9;
    border-radius: 2px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #333;
    padding: 10px 14px;
    transition: border-color 0.2s;
}
.ms-form-input:focus { border-color: #E07B00; box-shadow: 0 0 0 3px rgba(224,123,0,0.12); outline: none; }

/* PIX card */
.ms-pix-card { border-left: 4px solid #27ae60; }
.ms-pix-info-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ms-pix-logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.ms-pix-bolt { font-size: 28px; color: #27ae60; }
.ms-pix-logo-area strong { display: block; color: #0f1923; font-size: 16px; margin-bottom: 2px; }
.ms-pix-logo-area small { color: #718096; font-size: 13px; }

.ms-btn-gerar-pix {
    width: 100%;
    background: linear-gradient(135deg, #1a9e4a, #27ae60);
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s;
}
.ms-btn-gerar-pix:hover { filter: brightness(1.1); }

/* QR Code area */
.ms-qr-area { margin-top: 20px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.ms-qr-wrapper { text-align: center; margin-bottom: 20px; }
.ms-qr-img { width: 200px; height: 200px; border: 2px solid #e0e0e0; border-radius: 4px; padding: 8px; }
.ms-copiacola-group { display: flex; gap: 0; }
.ms-copiacola-input { flex: 1; border-radius: 2px 0 0 2px; font-family: monospace; font-size: 12px; }
.ms-copiacola-btn {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s;
}
.ms-copiacola-btn:hover { background: #1a252f; }
.ms-pix-timer { color: #E07B00; font-size: 13px; margin: 10px 0 0; font-family: 'Barlow', sans-serif; }
.ms-pix-status { text-align: center; color: #27ae60; font-size: 14px; margin-top: 16px; font-family: 'Barlow', sans-serif; }

/* Checkout summary */
.ms-checkout-summary { position: static; }
.ms-checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.ms-checkout-item:last-of-type { border-bottom: none; }
.ms-ci-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #E07B00, #f0a030);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}
.ms-ci-body { flex: 1; }
.ms-ci-tipo { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #E07B00; }
.ms-ci-nome { font-family: 'Barlow', sans-serif; font-size: 14px; color: #0f1923; font-weight: 600; }
.ms-ci-preco { font-family: 'Oswald', sans-serif; font-size: 16px; color: #0f1923; font-weight: 700; white-space: nowrap; }

.ms-summary-note {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #718096;
    background: #f8f9fa;
    border-radius: 3px;
    padding: 12px;
    margin-top: 16px;
    line-height: 1.55;
}
.ms-summary-note .fa { color: #E07B00; margin-right: 4px; }

/* Checkout success */
.ms-checkout-success {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    max-width: 540px;
    margin: 0 auto;
}
.ms-success-icon { font-size: 72px; color: #27ae60; margin-bottom: 20px; }
.ms-checkout-success h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: #0f1923;
    margin: 0 0 12px;
}
.ms-checkout-success p { font-size: 15px; color: #718096; line-height: 1.6; margin: 0 0 8px; }

/* ── CHECKOUT STEPS BAR ── */
.ms-checkout-header-bar { padding: 18px 0; }
.ms-checkout-steps {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ms-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.ms-step.active { color: #E07B00; }
.ms-step.done { color: rgba(255,255,255,0.7); }
.ms-step-arrow { color: rgba(255,255,255,0.2); font-size: 11px; }

/* ── CHECKOUT CLIENTE INFO ── */
.ms-checkout-cliente-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #718096;
}
.ms-checkout-cliente-info .fa { font-size: 28px; color: #E07B00; }
.ms-checkout-cliente-info span { display: block; font-size: 12px; color: #aaa; margin-bottom: 2px; }
.ms-checkout-cliente-info strong { color: #0f1923; font-size: 16px; }

/* ── PIX INSTRUCTIONS ── */
.ms-pix-instructions {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 14px 18px;
    margin-top: 16px;
}
.ms-pix-instructions h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
}
.ms-pix-instructions h5 .fa { color: #E07B00; margin-right: 6px; }
.ms-pix-instructions ol { margin: 0; padding-left: 20px; }
.ms-pix-instructions li { font-size: 13px; color: #5c6b7a; line-height: 1.6; margin-bottom: 4px; }

/* ── TOTAL DESTAQUE ── */
.ms-total-destaque {
    text-align: center;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    color: #718096;
    margin-bottom: 14px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 4px;
}
.ms-total-destaque strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: #E07B00;
    font-weight: 700;
    margin-top: 4px;
}

/* ── PIX MANUAL FALLBACK ── */
.ms-pix-manual {
    text-align: center;
    padding: 20px 0 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}
.ms-manual-icon { font-size: 48px; color: #27ae60; margin-bottom: 12px; display: block; }
.ms-pix-manual h4 { font-family: 'Oswald', sans-serif; font-size: 22px; color: #0f1923; margin: 0 0 8px; }
.ms-pix-manual p { color: #718096; font-size: 14px; margin: 0 0 16px; }
.ms-manual-pix-key { text-align: left; margin-bottom: 14px; }
.ms-manual-valor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    color: #5c6b7a;
    margin-bottom: 12px;
}
.ms-manual-valor strong { font-family: 'Oswald', sans-serif; font-size: 26px; color: #E07B00; font-weight: 700; }
.ms-manual-note {
    background: #fffaf0;
    border: 1px solid #f0d080;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 13px;
    color: #7c6500;
    text-align: left;
    line-height: 1.55;
}
.ms-manual-note .fa { margin-right: 6px; }

/* ── SEGURANÇA BOX ── */
.ms-seguranca-box {
    background: #0f1923;
    border-radius: 4px;
    padding: 20px;
    margin-top: 16px;
}
.ms-seguranca-box h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin: 0 0 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ms-seguranca-box h5 .fa { color: #27ae60; margin-right: 8px; }
.ms-seguranca-box ul { list-style: none; padding: 0; margin: 0; }
.ms-seguranca-box li {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ms-seguranca-box li .fa { color: #27ae60; font-size: 12px; flex-shrink: 0; }

/* ── ALERT ── */
.ms-alert { margin-bottom: 20px; }

/* ── ADSENSE SPOT ── */
.ms-adsense-spot {
    margin-top: 40px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}
.ms-adsense-spot ins { max-width: 100%; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .ms-cart-items-header { display: none; }
    .ms-cart-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        row-gap: 8px;
    }
    .ms-cart-item-info { grid-column: 1 / 2; }
    .ms-cart-item-remove { grid-column: 2 / 3; grid-row: 1; }
    .ms-cart-item-preco,
    .ms-cart-item-qtd,
    .ms-cart-item-subtotal {
        font-size: 13px;
        grid-column: 1 / 3;
    }
    .ms-cart-header-inner { flex-direction: column; align-items: flex-start; }
    .ms-order-summary { position: static; margin-top: 24px; }
}
