/* Página da oferta para jogos/plataformas sem tema (body.mx-gx). Tokens --gx-* vêm de game-default.css.
   Mesma estrutura/IDs da página antiga (o fluxo de compra não muda), só a apresentação. */
body.mx-gx main > .container.my-5 { margin-top: 0 !important; padding-top: 24px !important; max-width: 1240px; }
@media (max-width: 991.98px) { body.mx-gx main > .container.my-5 { padding-top: 12px !important; } }

/* ---------- cabeçalho ---------- */
.gxo-head { margin: 0 0 18px; }
.gxo-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -.02em; color: var(--gx-text); margin: 6px 0 12px; overflow-wrap: anywhere; text-wrap: balance; }
.gxo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gxo-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--gx-line); background: var(--gx-card); color: var(--gx-text); font-size: .8rem; font-weight: 600; text-decoration: none; }
.gxo-chip i { color: var(--gx-accent); font-size: .72rem; }
.gxo-chip--game { padding-left: 4px; }
.gxo-chip--game img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.gxo-chip--game:hover { border-color: var(--gx-accent); color: var(--gx-accent); }
.gxo-chip--ok { background: rgba(22, 163, 74, .1); border-color: rgba(22, 163, 74, .25); color: #15803d; }
.gxo-chip--ok i { color: #16a34a; }
body.dark-theme .gxo-chip--ok { color: #4ade80; }

/* ---------- cartões ---------- */
body.mx-gx .mx-window, body.mx-gx .mx-shop, body.mx-gx .mx-seller { border-radius: 18px; border: 1px solid var(--gx-line); background: var(--gx-card); box-shadow: none; color: var(--gx-text); }
body.mx-gx .mx-window .section-title, body.mx-gx .mx-shop .section-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--gx-text); }
body.mx-gx .mx-window hr { border-color: var(--gx-line); opacity: 1; }
body.mx-gx .mx-window .card-body > .d-flex.my-3 { flex-wrap: wrap; font-size: .9rem; color: var(--gx-muted); }
body.mx-gx .mx-window .card-body > .d-flex.my-3 b, body.mx-gx .mx-window .card-body > span b { color: var(--gx-text); }
body.mx-gx .offer-badge { background: var(--gx-soft); color: var(--gx-accent); border-radius: 999px; font-weight: 600; padding: 5px 10px; }
body.mx-gx .mx-window .card-body > p { color: var(--gx-text); line-height: 1.7; font-size: .95rem; overflow-wrap: anywhere; }
body.mx-gx .mx-window h4.section-title.mt-5 { margin-top: 1rem !important; }

/* galeria */
body.mx-gx .offer-gallery__main { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 440px; border-radius: 14px; overflow: hidden; border: 1px solid var(--gx-line); background: var(--gx-surface); }
body.mx-gx .offer-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
body.mx-gx .offer-gallery__thumb { border-radius: 10px; overflow: hidden; border: 2px solid transparent; }
body.mx-gx .offer-gallery__thumb.active, body.mx-gx .offer-gallery__thumb:hover { border-color: var(--gx-accent); }

/* ---------- caixa de compra ---------- */
@media (min-width: 992px) and (min-height: 820px) {
    body.mx-gx .mx-shop-column { position: sticky; top: 96px; align-self: flex-start; }
}
body.mx-gx .mx-shop .card-body.text-center > p { font-size: .85rem; color: var(--gx-muted) !important; margin: 0; }
body.mx-gx .mx-shop .card-body.text-center > p b, body.mx-gx .mx-shop .card-body.text-center > p strong { color: var(--gx-text); }
body.mx-gx .input_add_rem { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border-radius: 14px; border: 1px solid var(--gx-line); background: var(--gx-surface); }
body.mx-gx .input_add_rem .btn-floating { width: 40px; height: 40px; border-radius: 10px !important; background: var(--gx-card) !important; color: var(--gx-text) !important; box-shadow: 0 1px 2px rgba(15, 23, 42, .12) !important; }
body.mx-gx .input_add_rem .btn-floating:hover { color: var(--gx-accent) !important; }
body.mx-gx .quantity_inp { width: 88px; height: 40px; border: 0; background: transparent; text-align: center; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--gx-text); outline: none; }
body.mx-gx .mx-shop hr.mx-5 { border-color: var(--gx-line); opacity: 1; margin: 0 20px !important; }
body.mx-gx #currentPrice { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.6rem !important; color: var(--gx-text); font-variant-numeric: tabular-nums; }
body.mx-gx .mx-shop .btn-dark { height: 54px; border-radius: 14px !important; border: 0; background: var(--gx-accent) !important; box-shadow: 0 14px 28px -14px var(--gx-accent) !important; text-transform: none; transition: filter .15s, transform .1s; }
body.mx-gx .mx-shop .btn-dark h5 { margin: 0; color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: 0; }
body.mx-gx .mx-shop .btn-dark:hover { filter: brightness(1.08); }
body.mx-gx .mx-shop .btn-dark:active { transform: translateY(1px); }

/* ---------- vendedor ---------- */
body.mx-gx .mx-seller .card-body { padding: 18px 20px; }
body.mx-gx .mx-seller .text-success { font-weight: 700; }
body.mx-gx .mx-seller hr { border-color: var(--gx-line); opacity: 1; }
body.mx-gx .mx-seller img.rounded-circle { object-fit: cover; }
/* botão Chat sempre verde (como era antes) */
body.mx-gx .mx-seller .btn-success, body.mx-gx .card_sell .btn-success { background: #16a34a !important; color: #fff !important; border: 0; box-shadow: none !important; border-radius: 10px !important; text-transform: none; font-weight: 600; }
body.mx-gx .mx-seller .btn-success:hover, body.mx-gx .card_sell .btn-success:hover { background: #15803d !important; color: #fff !important; }

/* ---------- outros vendedores ---------- */
body.mx-gx #other_sellers { max-width: 1240px; margin-bottom: 48px; }
body.mx-gx #other_sellers .section-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--gx-text); }
body.mx-gx .card_sell { margin-top: 10px; border-radius: 16px; border: 1px solid var(--gx-line); background: var(--gx-card); box-shadow: none; cursor: pointer; transition: border-color .15s, transform .15s; }
body.mx-gx .card_sell:hover { border-color: color-mix(in srgb, var(--gx-accent) 55%, var(--gx-line)); transform: translateY(-1px); }
body.mx-gx .card_sell .card-body { padding: 14px 18px; }
body.mx-gx .card_sell .small.text-muted { font-size: .72rem; }
body.mx-gx .card_sell .__price { font-family: 'Manrope', sans-serif; font-size: 1.05rem; }

/* celular: caixa de compra logo abaixo do título (antes das informações) */
@media (max-width: 991.98px) {
    body.mx-gx .mx-shop-column { order: -1; margin-bottom: 16px; }
    body.mx-gx .mx-seller { margin-top: 12px !important; }
}

/* ---------- barra de compra fixa (celular) ---------- */
.gxo-buybar { display: none; }
@media (max-width: 991.98px) {
    .gxo-buybar { position: fixed; z-index: 1030; left: 12px; right: 12px; bottom: var(--gxo-bottom, 12px); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--gx-card); border: 1px solid var(--gx-line); box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .35); transform: translateY(160%); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
    .gxo-buybar.is-on { transform: none; }
    .gxo-buybar__total small { display: block; font-size: .7rem; color: var(--gx-muted); }
    .gxo-buybar__total b { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--gx-text); font-variant-numeric: tabular-nums; }
    .gxo-buybar__total em { font-style: normal; font-size: .7rem; color: var(--gx-muted); font-weight: 700; }
    .gxo-buybar button { flex: 0 0 auto; height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--gx-accent); color: #fff; font-weight: 700; font-size: .95rem; }
    body.gxo-has-bar { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .gxo-buybar, body.mx-gx .card_sell { transition: none; } }
