/**
 * TFISOFT CMS FREE 
 * www.tfisoft.com.br
 * @version 1.0.0
 * @author Moreira / DevKinG 
 * @copyright (c) 2026 TFISFOT, All Rights Reserved
 *
 */
/* TFI SOFT Web Shop v2 — escopo exclusivo, sem alterações no template */
.tfi-webshop-root {
    --ws-bg: #081524;
    --ws-surface: #102338;
    --ws-surface2: #152e46;
    --ws-border: #31536b;
    --ws-blue: #19b8f4;
    --ws-gold: #e5b768;
    --ws-text: #f1f7ff;
    --ws-muted: #abc1d2;
    display: block;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: clamp(10px, 2vw, 22px);
    border: 1px solid #26455c;
    border-radius: 20px;
    background: linear-gradient(145deg, #10273c 0%, #081524 56%, #0a1b2c 100%);
    color: var(--ws-text);
    font:
        400 14px/1.55 system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    box-shadow: 0 14px 42px #0003;
}
.tfi-webshop-root,
.tfi-webshop-root *,
.tfi-webshop-root *:before,
.tfi-webshop-root *:after {
    box-sizing: border-box !important;
}
.tfi-webshop-root :is(.container, .container-fluid) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.tfi-webshop-root .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}
.tfi-webshop-root [class*="col-"] {
    position: relative !important;
    min-width: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}
.tfi-webshop-root :is(h2, h3, h4, h5, p, label, span, strong) {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.tfi-webshop-root :is(.card, .panel) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 16px !important;
    background: var(--ws-surface) !important;
    border: 1px solid var(--ws-border) !important;
    border-radius: 16px !important;
    color: var(--ws-text) !important;
    box-shadow: 0 10px 25px #0002 !important;
    overflow: hidden !important;
}
.tfi-webshop-root :is(.card-body, .card-header, .card-footer, .panel-body) {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 14px !important;
    background: transparent !important;
    color: inherit !important;
}
.tfi-webshop-root .card-header {
    border-bottom: 1px solid var(--ws-border) !important;
}
.tfi-webshop-root .card-footer {
    border-top: 1px solid var(--ws-border) !important;
}
.tfi-webshop-root :is(.btn, button[type="submit"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    max-width: 100% !important;
    min-height: 38px !important;
    padding: 9px 14px !important;
    border-radius: 9px !important;
    border: 1px solid #3b7fa2 !important;
    background: #176c9e !important;
    color: #fff !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition:
        filter 0.15s,
        transform 0.15s !important;
}
.tfi-webshop-root :is(.btn, button[type="submit"]):hover {
    filter: brightness(1.16) !important;
    transform: translateY(-1px) !important;
}
.tfi-webshop-root :is(.btn-danger, .btn-outline-danger) {
    background: #a83446 !important;
    border-color: #c45a68 !important;
}
.tfi-webshop-root :is(.btn-success, .btn-outline-success) {
    background: #087d73 !important;
    border-color: #1a9f90 !important;
}
.tfi-webshop-root
    :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    max-width: 100% !important;
    min-width: 0 !important;
    border: 1px solid #42718c !important;
    border-radius: 9px !important;
    background: #0a1b2d !important;
    color: #f2f9ff !important;
    padding: 9px 12px !important;
    box-shadow: none !important;
}
.tfi-webshop-root :is(input, select, textarea):focus {
    outline: 2px solid #25b8ee !important;
    outline-offset: 1px !important;
}
.tfi-webshop-root :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: #26b8f0;
}
.tfi-webshop-root :is(.form-control, .form-select) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}
.tfi-webshop-root :is(img, video) {
    max-width: 100% !important;
    height: auto;
    object-fit: contain;
}
.tfi-webshop-root :is(.table, table) {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    overflow-wrap: anywhere !important;
}
.tfi-webshop-root hr {
    width: 100% !important;
    max-width: 100% !important;
    border-color: #31536b !important;
}
.tfi-webshop-root .alert {
    max-width: 100% !important;
    border: 1px solid #2c6485 !important;
    background: #143b54 !important;
    color: #e7f6ff !important;
    border-radius: 12px !important;
    padding: 16px !important;
    overflow-wrap: anywhere !important;
}
/* Os botões legados são ocultados; o select é o único menu de categorias */
.tfi-webshop-root .categoria_shop {
    display: none !important;
}
.tfi-webshop-root .tfi-shop-tools {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) !important;
    gap: 14px !important;
    align-items: end !important;
    margin: 18px 0 !important;
    padding: 18px !important;
    background: linear-gradient(125deg, #133c59, #102538) !important;
    border: 1px solid #37637d !important;
    border-radius: 16px !important;
}
.tfi-webshop-root .tfi-shop-field {
    width: 100% !important;
    min-width: 0 !important;
}
.tfi-webshop-root .tfi-shop-field label {
    display: block !important;
    margin: 0 0 7px !important;
    color: #b9e9ff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
}
.tfi-webshop-root .tfi-shop-field form {
    margin: 0 !important;
    width: 100% !important;
}
.tfi-webshop-root :is(.tfi-shop-select, .tfi-shop-search) {
    display: block !important;
    width: 100% !important;
    height: 45px !important;
    margin: 0 !important;
    background: #071b2c !important;
    color: #fff !important;
    border: 1px solid #4581a0 !important;
}
/* Catálogo responsivo sem afetar as colunas externas do template */
.tfi-webshop-root .categoria_shop_item {
    flex: 0 0 25% !important;
    width: 25% !important;
    max-width: 25% !important;
    padding: 7px !important;
}
.tfi-webshop-root .categoria_shop_item .card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
.tfi-webshop-root .categoria_shop_item .card-img-top {
    height: 168px !important;
    max-width: 100% !important;
    background-color: #091827 !important;
    overflow: hidden !important;
}
.tfi-webshop-root .categoria_shop_item .card-footer {
    margin-top: auto !important;
}
.tfi-webshop-root .categoria_shop_item .btn {
    width: 100% !important;
}
.tfi-webshop-root .tfi-shop-empty {
    display: none;
    width: 100%;
    padding: 25px;
    text-align: center;
    color: var(--ws-muted);
}
/* Página de compra: a grade é interna ao painel e não invade o menu lateral */
.tfi-webshop-root .tfi-shop-detail {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.tfi-webshop-root .tfi-shop-detail > .row > .col-md-12 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}
.tfi-webshop-root .tfi-shop-detail form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}
.tfi-webshop-root .tfi-shop-detail .card > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 38%) minmax(0, 62%) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
}
.tfi-webshop-root .tfi-shop-detail .card > .row > .col-md-5,
.tfi-webshop-root .tfi-shop-detail .card > .row > .col-md-7 {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px !important;
}
.tfi-webshop-root .tfi-shop-detail .card-body .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}
.tfi-webshop-root .tfi-shop-detail .card-body [class*="col-"] {
    flex: 1 1 145px !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 4px !important;
}
.tfi-webshop-root .tfi-shop-detail .card-img-top {
    max-width: 100% !important;
    overflow: hidden !important;
}
.tfi-webshop-root .tfi-shop-detail .tfi-set-art {
    max-height: 235px !important;
    object-fit: contain !important;
}
.tfi-webshop-root .tfi-shop-detail .btn-block {
    width: 100% !important;
}
@media (max-width: 1050px) {
    .tfi-webshop-root .categoria_shop_item {
        flex-basis: 33.333% !important;
        width: 33.333% !important;
        max-width: 33.333% !important;
    }
    .tfi-webshop-root .tfi-shop-detail .card > .row {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
@media (max-width: 650px) {
    .tfi-webshop-root {
        padding: 10px !important;
        border-radius: 12px !important;
    }
    .tfi-webshop-root .tfi-shop-tools {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 12px !important;
    }
    .tfi-webshop-root .categoria_shop_item {
        flex-basis: 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}
@media (max-width: 410px) {
    .tfi-webshop-root .categoria_shop_item {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* TFISOFT Marketplace v3: escopo local, sem sobrescrever o template pai */
.tfi-webshop-root .tfi-market-nav {
    background: linear-gradient(130deg, #131d32 0%, #192b47 65%, #17283e 100%);
    border: 1px solid #324b70;
    border-radius: 20px;
    padding: 24px;
    margin: 18px 0 26px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    color: #eaf1ff;
    max-width: 100%;
    min-width: 0;
}
.tfi-webshop-root .tfi-market-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.tfi-webshop-root .tfi-market-eyebrow {
    color: #8fb4ff;
    letter-spacing: 0.17em;
    font-size: 11px;
    font-weight: 800;
}
.tfi-webshop-root .tfi-market-heading h2 {
    color: #fff;
    margin: 6px 0 5px;
    font-size: clamp(21px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.2;
}
.tfi-webshop-root .tfi-market-heading p {
    color: #b1c1d9;
    margin: 0;
    font-size: 13px;
}
.tfi-webshop-root .tfi-market-currency {
    border: 1px solid #536ba0;
    border-radius: 30px;
    padding: 8px 15px;
    color: #d9e6ff;
    background: #223756;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.tfi-webshop-root .tfi-market-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    gap: 8px;
    padding: 3px 2px 13px;
    max-width: 100%;
}
.tfi-webshop-root .tfi-market-tab-form {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto;
}
.tfi-webshop-root .tfi-market-tab {
    appearance: none;
    background: #223450;
    border: 1px solid #395172;
    color: #c9d9f0;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.15s,
        transform 0.15s,
        border-color 0.15s;
}
.tfi-webshop-root .tfi-market-tab:hover {
    background: #304b73;
    color: #fff;
    transform: translateY(-1px);
}
.tfi-webshop-root .tfi-market-tab.is-active {
    background: linear-gradient(115deg, #6873ee, #8765dc);
    border-color: #9295ff;
    color: #fff;
    box-shadow: 0 5px 15px #5c61cc55;
}
.tfi-webshop-root .tfi-market-bottom {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(220px, 2fr);
    align-items: end;
    gap: 18px;
    border-top: 1px solid #354b6b;
    padding-top: 18px;
}
.tfi-webshop-root .tfi-market-current span {
    display: block;
    color: #a3b5d0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tfi-webshop-root .tfi-market-current strong {
    display: block;
    color: #fff;
    font-size: 17px;
    margin-top: 6px;
}
.tfi-webshop-root .tfi-market-search {
    margin: 0;
    min-width: 0;
}
.tfi-webshop-root .tfi-market-search label {
    color: #aabbd8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    display: block;
    margin-bottom: 7px;
}
.tfi-webshop-root .tfi-market-search input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #0e192c;
    color: #fff;
    border: 1px solid #455e84;
    border-radius: 11px;
    padding: 12px 14px;
    min-height: 44px;
}
.tfi-webshop-root .tfi-market-search input:focus {
    border-color: #969cff;
    outline: 2px solid #747cff33;
}
@media (max-width: 600px) {
    .tfi-webshop-root .tfi-market-nav {
        padding: 16px;
        border-radius: 14px;
    }
    .tfi-webshop-root .tfi-market-bottom {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tfi-webshop-root .tfi-market-tab {
        padding: 10px 13px;
    }
}

/* TFISOFT V7 - centralizacao exclusiva da configuracao de compra */
.tfi-webshop-root .tfi-shop-detail form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
}
.tfi-webshop-root .tfi-shop-detail form > .row {
    width: 100% !important;
    max-width: 590px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.tfi-webshop-root .tfi-shop-detail form > .row > [class*="col-"] {
    max-width: 100% !important;
}
.tfi-webshop-root .tfi-shop-detail form select.form-control {
    width: 100% !important;
    max-width: 400px !important;
}
.tfi-webshop-root .tfi-shop-detail form .form-group {
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.tfi-webshop-root .tfi-shop-detail form #comprarBtn {
    display: block !important;
    width: min(100%, 320px) !important;
    margin: 22px auto 18px !important;
    background: #168447 !important;
    border: 1px solid #33c77a !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    padding: 13px 20px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
    cursor: pointer !important;
}
.tfi-webshop-root .tfi-shop-detail form #comprarBtn:hover {
    background: #0d9b50 !important;
    border-color: #6ae9a1 !important;
}
.tfi-webshop-root .tfi-shop-detail form #confirmacao {
    width: min(100%, 540px) !important;
    margin: 12px auto !important;
    border-radius: 12px !important;
    background: #172b40 !important;
    border: 1px solid #41617b !important;
}
.tfi-webshop-root .tfi-shop-detail form #confirmacao input[name="comprar"] {
    background: #168447 !important;
    border-color: #33c77a !important;
    color: #fff !important;
    font-weight: 700 !important;
}
@media (max-width: 650px) {
    .tfi-webshop-root .tfi-shop-detail form > .row {
        max-width: 100% !important;
    }
    .tfi-webshop-root .tfi-shop-detail form #comprarBtn {
        width: 100% !important;
    }
}

/* V8: imagem e opcoes do detalhe centralizadas - Full e Semi */
.tfi-webshop-root .tfi-shop-detail .card {
    width: 100% !important;
    max-width: 680px !important;
    margin: 18px auto !important;
    overflow: hidden !important;
}
.tfi-webshop-root .tfi-shop-detail .card > .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: none !important;
    width: 100% !important;
    margin: 0 auto !important;
}
.tfi-webshop-root .tfi-shop-detail .card > .row > .col-md-5,
.tfi-webshop-root .tfi-shop-detail .card > .row > .col-md-7 {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 18px !important;
    text-align: center !important;
}
.tfi-webshop-root .tfi-shop-detail .card .card-img-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    min-height: 150px !important;
    text-align: center !important;
}
.tfi-webshop-root .tfi-shop-detail .card .card-img-top img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    max-height: 200px !important;
    object-fit: contain !important;
}
.tfi-webshop-root .tfi-shop-detail .card .card-body {
    width: 100% !important;
    text-align: center !important;
}
.tfi-webshop-root .tfi-shop-detail .card .card-body .row {
    justify-content: center !important;
    align-items: center !important;
}
.tfi-webshop-root .tfi-shop-detail form > .row {
    max-width: 680px !important;
    justify-content: center !important;
}
.tfi-webshop-root .tfi-shop-detail form .form-group {
    text-align: center !important;
    width: 100% !important;
    max-width: 440px !important;
}
.tfi-webshop-root .tfi-shop-detail form .form-group label {
    display: block !important;
    text-align: center !important;
}
.tfi-webshop-root .tfi-shop-detail form select.form-control {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.tfi-webshop-root .tfi-shop-detail form #comprarBtn {
    margin-left: auto !important;
    margin-right: auto !important;
}
@media (max-width: 650px) {
    .tfi-webshop-root .tfi-shop-detail .card {
        max-width: 100% !important;
    }
    .tfi-webshop-root .tfi-shop-detail .card > .row > .col-md-5,
    .tfi-webshop-root .tfi-shop-detail .card > .row > .col-md-7 {
        padding: 12px !important;
    }
}

/* ================================================================
   TFISOFT V34 - TEMA ADAPTAVEL PARA FULL E SEMI
   Compartilha a mesma API de cores usada nos Pacotes ALL.
   Defina --tfi-shop-* no template para personalizar sem editar a loja.
   ================================================================ */
.tfi-webshop-root {
    --ws-bg: var(
        --tfi-shop-panel-alt,
        var(--arena-bg, var(--bs-body-bg, #11151e))
    );
    --ws-surface: var(
        --tfi-shop-panel,
        var(--arena-panel, var(--bs-card-bg, #171b24))
    );
    --ws-surface2: var(
        --tfi-shop-panel-alt,
        var(--arena-bg, var(--bs-body-bg, #202632))
    );
    --ws-border: var(--tfi-shop-border, var(--bs-border-color, #555c68));
    --ws-gold: var(
        --tfi-shop-accent,
        var(--arena-gold, var(--bs-primary, #d9b177))
    );
    --ws-blue: var(--ws-gold);
    --ws-text: var(
        --tfi-shop-text,
        var(--arena-text, var(--bs-body-color, #f1eee8))
    );
    --ws-muted: var(--tfi-shop-muted, var(--bs-secondary-color, #b3bdca));
    --ws-success: var(--tfi-shop-price, var(--bs-success, #42c785));
    --ws-input: var(--tfi-shop-input, var(--ws-bg));
    --ws-danger: var(--tfi-shop-danger, var(--arena-red, #b94b56));
    background: var(--ws-bg) !important;
    border-color: var(--ws-border) !important;
    color: var(--ws-text) !important;
}
.tfi-webshop-root :is(.card, .panel) {
    background: var(--ws-surface) !important;
    border-color: var(--ws-border) !important;
    color: var(--ws-text) !important;
}
.tfi-webshop-root :is(.card-header, .card-footer) {
    border-color: var(--ws-border) !important;
}
.tfi-webshop-root :is(.btn, button[type="submit"]) {
    background: var(--ws-gold) !important;
    border-color: var(--ws-gold) !important;
    color: var(--tfi-shop-button-text, #11151e) !important;
}
.tfi-webshop-root :is(.btn-danger, .btn-outline-danger) {
    background: var(--ws-danger) !important;
    border-color: var(--ws-danger) !important;
    color: #fff !important;
}
.tfi-webshop-root :is(.btn-success, .btn-outline-success) {
    background: var(--ws-success) !important;
    border-color: var(--ws-success) !important;
    color: var(--tfi-shop-success-text, #09170f) !important;
}
.tfi-webshop-root
    :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    background: var(--ws-input) !important;
    border-color: var(--ws-border) !important;
    color: var(--ws-text) !important;
}
.tfi-webshop-root :is(input, select, textarea):focus {
    outline-color: var(--ws-gold) !important;
}
.tfi-webshop-root :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--ws-gold);
}
.tfi-webshop-root :is(input, textarea)::placeholder {
    color: var(--ws-muted) !important;
    opacity: 0.85;
}
.tfi-webshop-root hr {
    border-color: var(--ws-border) !important;
}
.tfi-webshop-root .alert {
    background: var(--ws-surface2) !important;
    border-color: var(--ws-border) !important;
    color: var(--ws-text) !important;
}
.tfi-webshop-root .tfi-shop-tools {
    background: var(--ws-surface) !important;
    border-color: var(--ws-border) !important;
}
.tfi-webshop-root .tfi-shop-field label {
    color: var(--ws-muted) !important;
}
.tfi-webshop-root :is(.tfi-shop-select, .tfi-shop-search) {
    background: var(--ws-input) !important;
    border-color: var(--ws-border) !important;
    color: var(--ws-text) !important;
}
.tfi-webshop-root .categoria_shop_item .card-img-top {
    background-color: var(--ws-bg) !important;
}
.tfi-webshop-root .tfi-shop-empty {
    color: var(--ws-muted) !important;
}
.tfi-webshop-root .tfi-market-nav {
    background: var(--ws-surface) !important;
    border-color: var(--ws-border) !important;
    color: var(--ws-text) !important;
}
.tfi-webshop-root .tfi-market-eyebrow {
    color: var(--ws-gold) !important;
}
.tfi-webshop-root .tfi-market-heading h2 {
    color: var(--ws-text) !important;
}
.tfi-webshop-root .tfi-market-heading p {
    color: var(--ws-muted) !important;
}
.tfi-webshop-root .tfi-market-currency {
    background: var(--ws-surface2) !important;
    border-color: var(--ws-border) !important;
    color: var(--ws-gold) !important;
}
.tfi-webshop-root .tfi-market-tab {
    background: var(--ws-surface2) !important;
    border-color: var(--ws-border) !important;
    color: var(--ws-text) !important;
}
.tfi-webshop-root .tfi-market-tab:hover {
    border-color: var(--ws-gold) !important;
    color: var(--ws-gold) !important;
}
.tfi-webshop-root .tfi-market-tab.is-active {
    background: var(--ws-gold) !important;
    border-color: var(--ws-gold) !important;
    color: var(--tfi-shop-button-text, #11151e) !important;
    box-shadow: none !important;
}
.tfi-webshop-root .tfi-market-bottom {
    border-color: var(--ws-border) !important;
}
.tfi-webshop-root .tfi-market-current span {
    color: var(--ws-muted) !important;
}
.tfi-webshop-root .tfi-market-current strong {
    color: var(--ws-text) !important;
}
.tfi-webshop-root .tfi-market-search label {
    color: var(--ws-muted) !important;
}
.tfi-webshop-root .tfi-market-search input {
    background: var(--ws-input) !important;
    color: var(--ws-text) !important;
    border-color: var(--ws-border) !important;
}
.tfi-webshop-root .tfi-market-search input:focus {
    border-color: var(--ws-gold) !important;
    outline-color: var(--ws-gold) !important;
}
.tfi-webshop-root .tfi-shop-detail form #comprarBtn,
.tfi-webshop-root .tfi-shop-detail form #confirmacao input[name="comprar"] {
    background: var(--ws-success) !important;
    border-color: var(--ws-success) !important;
    color: var(--tfi-shop-success-text, #09170f) !important;
}
.tfi-webshop-root .tfi-shop-detail form #comprarBtn:hover {
    filter: brightness(1.12) !important;
}
.tfi-webshop-root .tfi-shop-detail form #confirmacao {
    background: var(--ws-surface2) !important;
    border-color: var(--ws-border) !important;
}
/* Corrige as cores fixas do saldo que sao injetadas depois do CSS. */
.tfi-webshop-root .tfi-saldo-card {
    background: var(--ws-surface) !important;
    border-color: var(--ws-border) !important;
}
.tfi-webshop-root .tfi-saldo-label {
    color: var(--ws-gold) !important;
}
.tfi-webshop-root .tfi-saldo-valor {
    color: var(--ws-success) !important;
}
.tfi-webshop-root :is(.text-muted, .text-secondary) {
    color: var(--ws-muted) !important;
}
.tfi-webshop-root :is(.text-success) {
    color: var(--ws-success) !important;
}
/* Mantem imagens e grade responsiva existentes. */

/* ==========================================================
   TFISOFT - SALDOS CASH / GOLD - VINHO E DOURADO
   Escopo exclusivo do WebShop; preserva o tema adaptavel.
   ========================================================== */
.tfi-webshop-root .tfi-saldo-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #1a1019 0%,
        #30121e 65%,
        #451624 100%
    ) !important;
    border: 2px solid var(--ws-gold, #d9b177) !important;
    border-radius: 13px !important;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.25),
        0 5px 16px rgba(0, 0, 0, 0.18) !important;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.tfi-webshop-root .tfi-saldo-card:hover {
    border-color: #f3cf8c !important;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.2),
        0 0 14px rgba(217, 177, 119, 0.22) !important;
}
.tfi-webshop-root .tfi-saldo-label {
    color: var(--ws-gold, #d9b177) !important;
}
.tfi-webshop-root .tfi-saldo-valor {
    color: var(--ws-success, #00d977) !important;
    font-weight: 800 !important;
}

/* Extraido de modules/usercp/webshop.php - bloco 1 */

.tfi-shop {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 15px;
    color: #e5e7eb;
    box-sizing: border-box;
}

.tfi-shop * {
    box-sizing: border-box;
}

.tfi-shop-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    color: #f0bd62;
    margin-bottom: 25px;
}

.tfi-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tfi-shop-card {
    background: linear-gradient(145deg, #171018 0%, #30131f 65%, #451522 100%);
    border: 2px solid #d9b177;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    min-width: 0;
    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.25);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.tfi-shop-card:hover {
    border-color: #f4cf8b;
    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.25),
        0 0 15px rgba(217, 177, 119, 0.25);
    transform: translateY(-2px);
}

.tfi-shop-card h3 {
    color: #f0bd62;
    font-size: 22px;
    margin: 0 0 12px;
}

.tfi-shop-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

.tfi-shop-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 22px;
    background: #d9b177;
    color: #181019 !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: bold;
}

.tfi-shop-button:hover {
    background: #f4cf8b;
}

.tfi-shop-balance {
    font-size: 26px;
    font-weight: bold;
    color: #00d977;
}

.tfi-shop-message {
    text-align: center;
    padding: 20px;
    background: #3b1717;
    border-radius: 8px;
    color: #fecaca;
}

@media (max-width: 768px) {
    .tfi-shop-grid {
        grid-template-columns: 1fr;
    }

    .tfi-shop {
        padding: 10px;
    }

    .tfi-shop-title {
        font-size: 22px;
    }
}

/* V32 - imagens ilustrativas das lojas */
.tfi-shop-feature {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    margin: 14px auto 2px;
    border: 1px solid #8b6548;
    border-radius: 10px;
    background: #151018;
}
.tfi-shop-card .tfi-shop-feature + .tfi-shop-button {
    margin-top: 15px;
}

/* Extraido de modules/usercp/webshopfull.php - bloco 1 */
';
    echo file_get_contents($tfiCssFile);
    echo '

/* Extraido de modules/usercp/webshopfull.php - bloco 2 */

.tfi-webshop-root .tfi-saldo-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 9px;
    margin-bottom: 12px;
}
.tfi-webshop-root .tfi-saldo-col > .card.tfi-saldo-card,
.tfi-webshop-root .tfi-saldo-card.card,
.tfi-webshop-root .tfi-saldo-card {
    background: #30131f !important;
    background-image: linear-gradient(
        145deg,
        #171018 0%,
        #30131f 65%,
        #451522 100%
    ) !important;
    background-color: #30131f !important;
    border: 2px solid #d9b177 !important;
    border-radius: 12px !important;
    overflow: hidden;
    min-height: 110px;
    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.25);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}
.tfi-webshop-root .tfi-saldo-card:hover {
    border-color: #f4cf8b !important;
    box-shadow: 0 0 15px rgba(217, 177, 119, 0.25);
}
.tfi-webshop-root .tfi-saldo-card .tfi-saldo-label {
    color: #f0bd62 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    font-size: 17px !important;
    text-transform: none !important;
    padding: 15px 8px 5px !important;
}
.tfi-webshop-root .tfi-saldo-card .card-body {
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
}
.tfi-webshop-root .tfi-saldo-card .tfi-saldo-valor {
    color: #22c55e !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 4px 0 16px !important;
}
@media (max-width: 460px) {
    .tfi-webshop-root .tfi-saldo-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Extraido de modules/usercp/webshopsemi.php - bloco 1 */
';
    echo file_get_contents($tfiCssFile);
    echo '

/* Extraido de modules/usercp/webshopsemi.php - bloco 2 */

.tfi-webshop-root .tfi-saldo-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 9px;
    margin-bottom: 12px;
}
.tfi-webshop-root .tfi-saldo-col > .card.tfi-saldo-card,
.tfi-webshop-root .tfi-saldo-card.card,
.tfi-webshop-root .tfi-saldo-card {
    background: #30131f !important;
    background-image: linear-gradient(
        145deg,
        #171018 0%,
        #30131f 65%,
        #451522 100%
    ) !important;
    background-color: #30131f !important;
    border: 2px solid #d9b177 !important;
    border-radius: 12px !important;
    overflow: hidden;
    min-height: 110px;
    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.25);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}
.tfi-webshop-root .tfi-saldo-card:hover {
    border-color: #f4cf8b !important;
    box-shadow: 0 0 15px rgba(217, 177, 119, 0.25);
}
.tfi-webshop-root .tfi-saldo-card .tfi-saldo-label {
    color: #f0bd62 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    font-size: 17px !important;
    text-transform: none !important;
    padding: 15px 8px 5px !important;
}
.tfi-webshop-root .tfi-saldo-card .card-body {
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
}
.tfi-webshop-root .tfi-saldo-card .tfi-saldo-valor {
    color: #22c55e !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 4px 0 16px !important;
}
@media (max-width: 460px) {
    .tfi-webshop-root .tfi-saldo-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Extraido de modules/usercp/tfi_all_catalog.php - bloco 1 */

/* Tema adaptavel: prioriza variaveis do template; usa cores neutras como reserva.
   Para qualquer template futuro, defina --tfi-shop-* no CSS do tema. */
.tfi-all-catalog {
    --tfi-all-bg: var(
        --tfi-shop-panel,
        var(--arena-panel, var(--bs-card-bg, #171b24))
    );
    --tfi-all-bg-alt: var(--tfi-shop-panel-alt, var(--bs-body-bg, #11151e));
    --tfi-all-text: var(
        --tfi-shop-text,
        var(--arena-text, var(--bs-body-color, #f1eee8))
    );
    --tfi-all-muted: var(--tfi-shop-muted, var(--bs-secondary-color, #b3bdca));
    --tfi-all-accent: var(
        --tfi-shop-accent,
        var(--arena-gold, var(--bs-primary, #d9b177))
    );
    --tfi-all-border: var(--tfi-shop-border, var(--bs-border-color, #6b6255));
    --tfi-all-success: var(--tfi-shop-price, var(--bs-success, #42c785));
    margin: 18px 0 24px;
    color: var(--tfi-all-text);
}
.tfi-all-heading {
    font-size: 21px;
    margin: 0 0 14px;
    color: var(--tfi-all-accent);
}
.tfi-all-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
}
.tfi-all-card {
    min-width: 0;
    padding: 18px;
    background: var(--tfi-all-bg);
    color: var(--tfi-all-text);
    border: 1px solid var(--tfi-all-border);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}
.tfi-all-card h4 {
    font-size: 18px;
    color: var(--tfi-all-text);
    margin: 9px 0;
}
.tfi-all-mark {
    display: inline-block;
    color: var(--tfi-all-accent);
    border: 1px solid var(--tfi-all-accent);
    border-radius: 7px;
    padding: 3px 10px;
    font-weight: 700;
}
.tfi-all-price {
    font-size: 23px;
    font-weight: 800;
    color: var(--tfi-all-success);
}
.tfi-all-items {
    padding-left: 20px;
    color: var(--tfi-all-text);
    max-height: 170px;
    overflow: auto;
}
.tfi-all-pending {
    border: 1px solid var(--tfi-all-border);
    border-radius: 7px;
    padding: 9px;
    text-align: center;
    color: var(--tfi-all-muted);
    margin-top: 12px;
}
.tfi-all-note {
    font-size: 12px;
    color: var(--tfi-all-muted);
    margin: 10px 0 0;
}
.tfi-all-buy-form {
    margin-top: 14px;
}
.tfi-all-buy-form button {
    width: 100%;
    font-weight: 700;
}
.tfi-all-cover {
    position: relative;
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -5px -5px 14px;
    border: 2px solid var(--tfi-all-accent);
    border-radius: 12px;
    background: var(--tfi-all-bg-alt);
    overflow: hidden;
    box-shadow:
        inset 0 0 0 3px var(--tfi-all-bg),
        0 3px 12px rgba(0, 0, 0, 0.2);
}
.tfi-all-cover:before,
.tfi-all-cover:after {
    content: "✦";
    position: absolute;
    top: 5px;
    color: var(--tfi-all-accent);
    font-size: 15px;
    z-index: 1;
}
.tfi-all-cover:before {
    left: 9px;
}
.tfi-all-cover:after {
    right: 9px;
}
.tfi-all-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 9px;
    display: block;
}
.tfi-all-cover-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--tfi-all-accent);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
}
.tfi-all-cover-symbol {
    font-size: 46px;
    line-height: 1;
    color: var(--tfi-all-accent);
}
.tfi-all-cover-empty small {
    color: var(--tfi-all-muted);
    font-size: 11px;
    letter-spacing: 2px;
}
.tfi-all-period {
    margin: 12px 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--tfi-all-border);
    border-radius: 9px;
    background: var(--tfi-all-bg-alt);
    text-align: center;
}
.tfi-all-period span {
    display: block;
    color: var(--tfi-all-accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.tfi-all-period strong {
    display: block;
    color: var(--tfi-all-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

/* WebShop: category sidebar and exactly three products per desktop row. */
.tfi-webshop-root .tfi-market-layout {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start;
    width: 100%;
    min-width: 0;
}
.tfi-webshop-root .tfi-market-layout > .tfi-market-nav {
    min-width: 0;
    width: 100%;
    margin: 0 !important;
    padding: 16px !important;
    position: sticky;
    top: 18px;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-heading {
    display: block;
    margin: 20px 0 14px;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-heading h2 {
    font-size: 20px !important;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-heading p {
    font-size: 12px;
    line-height: 1.6;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-currency {
    display: inline-block;
    margin-top: 12px;
    white-space: normal;
    font-size: 10px;
    padding: 6px 10px;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-tabs {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible;
    gap: 6px;
    padding: 0 0 16px;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-tab-form {
    width: 100%;
    flex: none;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-tab {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    justify-content: flex-start !important;
    white-space: normal !important;
    font-size: 12px !important;
    padding: 10px 12px !important;
    line-height: 1.4 !important;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-bottom {
    display: block;
    padding-top: 14px;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-search {
    margin-top: 18px;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-search input {
    width: 100%;
    min-width: 0;
    font-size: 12px;
    padding: 10px !important;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-current strong {
    font-size: 14px;
}
.tfi-webshop-root .tfi-market-products {
    min-width: 0;
    width: 100%;
}
.tfi-webshop-root .tfi-market-products > hr {
    display: none;
}
.tfi-webshop-root .tfi-market-products > .card-body {
    padding: 0 !important;
}
.tfi-webshop-root .tfi-market-products > .card-body > .row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
    width: 100% !important;
}
.tfi-webshop-root .tfi-market-products .categoria_shop_item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    min-width: 0 !important;
}
.tfi-webshop-root .tfi-market-products .categoria_shop_item .card {
    margin: 0 !important;
    height: 100% !important;
}
.tfi-webshop-root .tfi-market-products .categoria_shop_item .card-body {
    padding: 10px !important;
}
.tfi-webshop-root .tfi-market-products .categoria_shop_item .card-title {
    font-size: 14px !important;
    overflow-wrap: anywhere;
}
.tfi-webshop-root .tfi-all-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}
.tfi-webshop-root .tfi-all-grid > .tfi-all-card {
    min-width: 0;
    width: 100%;
}
.tfi-webshop-root .tfi-market-products .tfi-shop-empty {
    grid-column: 1 / -1;
}
.tfi-shop-areas {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ws-border, var(--tfi-border, #432631));
}
.tfi-shop-areas .tfi-shop-area {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none !important;
    border: 1px solid var(--ws-border, var(--tfi-border, #432631));
    border-radius: 7px;
    background: var(--ws-surface2, var(--tfi-surface-raised, #25171d));
    color: var(--ws-text, var(--tfi-text, #fff));
    font-size: 12px;
    font-weight: 700;
    padding: 11px 12px;
}
.tfi-shop-areas .tfi-shop-area.is-active {
    border-color: var(--tfi-accent, var(--ws-gold, #d52c46));
    box-shadow: inset 3px 0 var(--tfi-accent, var(--ws-gold, #d52c46));
}
.tfi-shop-areas .tfi-shop-area:hover {
    border-color: var(--ws-gold, var(--tfi-accent-soft, #ff7184));
}
.tfi-shop-overview-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.tfi-shop-overview-menu {
    background: var(--tfi-surface, #141316);
    border: 1px solid var(--tfi-border, #432631);
    border-radius: 12px;
    padding: 16px;
}
.tfi-shop-overview-menu h2 {
    font-size: 20px !important;
    margin: 0 0 8px;
}
.tfi-shop-overview-menu p {
    font-size: 12px;
    color: var(--tfi-muted, #bbaab4);
}
.tfi-shop-overview-content {
    min-width: 0;
}
@media (max-width: 1050px) {
    .tfi-webshop-root .tfi-market-products > .card-body > .row,
    .tfi-webshop-root .tfi-all-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .tfi-webshop-root .tfi-market-layout,
    .tfi-shop-overview-layout {
        grid-template-columns: 165px minmax(0, 1fr) !important;
        gap: 12px !important;
    }
}
@media (max-width: 760px) {
    .tfi-webshop-root .tfi-market-layout,
    .tfi-shop-overview-layout {
        grid-template-columns: 1fr !important;
    }
    .tfi-webshop-root .tfi-market-layout > .tfi-market-nav {
        position: static;
    }
    .tfi-webshop-root .tfi-market-layout .tfi-market-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex-direction: initial !important;
    }
    .tfi-webshop-root .tfi-market-layout .tfi-market-heading {
        margin-top: 14px;
    }
    .tfi-shop-overview-menu .tfi-shop-areas {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .tfi-shop-overview-menu .tfi-shop-area {
        font-size: 10px;
        padding: 10px 7px;
    }
}
@media (max-width: 480px) {
    .tfi-webshop-root .tfi-market-products > .card-body > .row,
    .tfi-webshop-root .tfi-all-grid {
        grid-template-columns: 1fr !important;
    }
}

.tfi-webshop-root .tfi-market-products > .card-body > .row::before,
.tfi-webshop-root .tfi-market-products > .card-body > .row::after {
    content: none !important;
    display: none !important;
}

.tfi-webshop-root .tfi-market-layout .tfi-market-tab {
    background: var(--ws-surface2) !important;
    color: var(--ws-text) !important;
    border-color: var(--ws-border) !important;
}
.tfi-webshop-root .tfi-market-layout .tfi-market-tab.is-active {
    background: var(--tfi-accent, var(--ws-gold)) !important;
    color: var(--tfi-text, #fff) !important;
    border-color: var(--tfi-accent, var(--ws-gold)) !important;
}

/* Full/Semi detail stays inside its module; no fixed desktop container width. */
.tfi-webshop-root .tfi-shop-detail,
.tfi-webshop-root .tfi-shop-detail-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.tfi-webshop-root .tfi-shop-detail-preview,
.tfi-webshop-root .tfi-shop-detail-options {
    min-width: 0 !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
}
