/* Panini Mundial 2026 — funil PT: cores e componentes partilhados */

:root {
    --wine: #6b0f1a;
    --wine-dark: #4a0810;
    --wine-light: #8b1f2d;
    --green: #0f9d58;
    --green-dark: #0a7a3f;
    --yellow: #ffbd17;
    --yellow-cta: #fdd835;
    --ink: #1a1a2e;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f5f5f4;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(26, 26, 46, 0.06);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Bebas Neue', Impact, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap');
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    /* Evita “flash” branco no overscroll (mobile) por trás do header */
    background-color: var(--wine-dark);
}

body {
    margin: 0;
    font-family: var(--font);
    background: #f4f4f6;
    color: var(--ink);
    line-height: 1.45;
    overflow-x: clip;
}

/* ── Top bar com contador oferta + social pills ───────────── */

.funnel-top {
    background: var(--wine);
    color: #fff;
    padding: max(22px, env(safe-area-inset-top, 0px)) 16px 22px;
    position: relative;
    /* Sem gradiente: em alguns telemóveis o topo ficava com mancha clara ao rolar */
}

.funnel-top-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 10px;
}

.funnel-logo {
    width: 100%;
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px 0 6px;
}

.funnel-logo img {
    height: clamp(104px, 30vw, 140px);
    width: auto;
    max-width: min(440px, 96vw);
    display: block;
    border-radius: 12px;
    object-fit: contain;
    object-position: center center;
}

.offer-timer {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.25;
    padding: 4px 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: 100%;
    flex: 0 1 auto;
    min-width: 0;
    justify-content: center;
}

.offer-timer .offer-ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fde68a;
}

.offer-timer .offer-ico svg {
    display: block;
}

.offer-timer__label {
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.92);
}

.offer-timer__digits {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: clamp(16px, 4.2vw, 19px);
    letter-spacing: 0.1em;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.social-pills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    gap: 6px 8px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

@media (min-width: 560px) {
    .funnel-top-inner {
        justify-content: space-between;
    }
    .offer-timer {
        flex: 1 1 200px;
        justify-content: flex-start;
    }
    .social-pills {
        width: auto;
        justify-content: flex-end;
    }
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 250, 235, 0.95);
    letter-spacing: 0.02em;
    border: 1px solid rgba(253, 224, 71, 0.4);
    background: rgba(0, 0, 0, 0.15);
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: none;
    white-space: nowrap;
}

.social-pill svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    opacity: 0.95;
    color: #fde047;
}

/* ── Faixa de confiança ───────────────────────────────────── */

.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
}

.trust-strip-inner {
    max-width: 480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

@media (min-width: 420px) {
    .trust-strip-inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-item span.ok {
    color: var(--green-dark);
    font-weight: 800;
}

/* ── Botões ─────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 16px 20px;
    font-size: 15px;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .15s ease;
}

.btn:active {
    transform: scale(.99);
}

.btn-cta {
    position: relative;
    overflow: visible;
    color: #14141f;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 15px 22px;
    border-radius: 999px;
    background: #ffc42a;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.45);
}

.btn-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 4px 14px rgba(26, 26, 46, 0.14);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(26, 26, 46, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .btn-cta {
        transition: none;
    }
}

/* Primário checkout — verde sólido, pílula, discreto (ref. funil) */

.btn-green {
    background: #10b981;
    color: #fff;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.28);
}

.btn-green:hover {
    transform: translateY(-1px);
    background: #059669;
    filter: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
}

.btn-green:active {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(16, 185, 129, 0.25);
}

.btn-outline {
    background: #fff;
    color: var(--ink);
    border: 2px solid var(--line);
    box-shadow: none;
    font-weight: 700;
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* ── Cards ─────────────────────────────────────────────────── */

.card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 12px;
}

/* ── Form ─────────────────────────────────────────────────── */

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #374151;
}

.req {
    color: #dc2626;
}

.form-input,
.form-select {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(15, 157, 88, .15);
}

.form-input.err {
    border-color: #dc2626;
}

.form-hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.err-msg {
    font-size: 11px;
    color: #dc2626;
    margin-top: 4px;
    display: none;
}

.err-msg.show {
    display: block;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Progress 3 passos ─────────────────────────────────────── */

.progress-3 {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 12px 6px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.progress-3::before {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    top: 22px;
    height: 3px;
    background: var(--line);
    z-index: 0;
}

.progress-3.done-mid::before {
    background: linear-gradient(90deg, var(--green) 50%, var(--line) 50%);
}

.progress-3.done-all::before {
    background: var(--green);
}

.p-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    max-width: 90px;
}

.p-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    background: var(--line);
    color: #9ca3af;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--line);
}

.p-dot.active {
    background: var(--wine);
    color: #fff;
    box-shadow: 0 0 0 2px var(--wine);
}

.p-dot.done {
    background: var(--green);
    color: #fff;
    box-shadow: 0 0 0 2px var(--green);
}

.p-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.p-label.on {
    color: var(--ink);
}

/* ── Produto resumo checkout ──────────────────────────────── */

.p-mini {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    border-color: rgba(15, 157, 88, 0.22);
}

.p-mini-img {
    width: 92px;
    height: 84px;
    object-fit: contain;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.p-mini-body {
    flex: 1;
    min-width: 0;
}

.promo-ribbon {
    position: absolute;
    top: 10px;
    right: -32px;
    background: var(--yellow);
    color: var(--ink);
    font-size: 10px;
    font-weight: 900;
    padding: 6px 36px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.stars {
    color: #fbbf24;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ── Order bump ───────────────────────────────────────────── */

.bump-wrap {
    border: 2px solid #bbf7d0;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.bump-head {
    background: linear-gradient(90deg, #ecfdf5, #d1fae5);
    padding: 10px 14px;
    font-weight: 800;
    font-size: 13px;
    color: #065f46;
    text-align: center;
}

.bump-row {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-top: 1px solid #d1fae5;
    align-items: flex-start;
    background: #fff;
}

.bump-row img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f4f6;
}

.bump-row .bump-meta {
    flex: 1;
    min-width: 0;
}

.bump-title {
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 4px;
}

.bump-desc {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}

.bump-price .old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 13px;
    margin-right: 6px;
}

.bump-price .now {
    font-size: 18px;
    font-weight: 900;
    color: var(--green-dark);
}

.badge-mini {
    display: inline-block;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-hot {
    background: #dc2626;
    color: #fff;
}

.badge-warn {
    background: var(--yellow);
    color: var(--ink);
}

.bump-actions {
    margin-top: 12px;
}

.bump-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #a7f3d0;
    background: #fff;
    color: #065f46;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.bump-btn:hover {
    border-color: #34d399;
    background: #f0fdf4;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.12);
}

.bump-btn:active {
    transform: scale(0.99);
}

.bump-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.45);
}

.bump-btn__icon {
    flex-shrink: 0;
    color: #059669;
}

.bump-btn--on {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 16px rgba(16, 185, 129, 0.38);
}

.bump-btn--on .bump-btn__icon {
    color: #fff;
}

.bump-btn--on:hover {
    background: linear-gradient(180deg, #0ea271 0%, #047857 100%);
    border-color: transparent;
    color: #fff;
}

.bump-btn__state-off,
.bump-btn__state-on {
    pointer-events: none;
}

.bump-btn--on .bump-btn__state-off {
    display: none;
}

.bump-btn:not(.bump-btn--on) .bump-btn__state-on {
    display: none;
}

/* ── Pagamento ────────────────────────────────────────────── */

.pay-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color .15s, background .15s;
}

.pay-row.selected {
    border-color: var(--green);
    background: #f0fdf4;
}

.pay-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
}

.pay-row.selected .pay-radio {
    border-color: var(--green);
    background: var(--green);
    box-shadow: inset 0 0 0 4px #fff;
}

.pay-txt strong {
    display: block;
    font-size: 14px;
}

.pay-txt small {
    color: var(--muted);
    font-size: 12px;
}

/* ── Freight box (step entrega) ───────────────────────────── */

.frete-box {
    border: 2px solid var(--green);
    background: #f0fdf4;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 14px;
    display: none;
}

.frete-box.show {
    display: block;
}

.frete-box .t {
    font-weight: 900;
    font-size: 15px;
    color: var(--green-dark);
}

.frete-box .s {
    font-size: 12px;
    color: #166534;
    margin-top: 2px;
}

.frete-price {
    margin-left: auto;
    font-weight: 900;
    color: var(--green-dark);
    font-size: 15px;
}

.hidden {
    display: none !important;
}

.wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 12px 40px;
}

/* Spinner */

.spin {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .75s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mbway-brand {
    font-weight: 900;
    color: #e3000b;
    letter-spacing: -0.5px;
    font-size: 14px;
}