/* F4WEB — child theme for WHMCS 9 / Nexus */
:root {
    --f4-navy: #070d35;
    --f4-blue: #2634d7;
    --f4-blue-light: #4052eb;
    --f4-cyan: #12d7d2;
    --f4-soft: #f2f7ff;
    --f4-ink: #10152b;
    --f4-muted: #59617d;
    --f4-line: #dbe3f1;
    --f4-radius: 16px;
    --f4-shadow: 0 18px 55px rgba(7, 13, 53, .12);
    --bs-primary: #2634d7;
    --bs-primary-rgb: 38, 52, 215;
    --bs-body-color: #10152b;
    --bs-body-bg: #f2f7ff;
    --bs-link-color: #2634d7;
    --bs-link-hover-color: #172179;
    --bs-border-color: #dbe3f1;
    --bs-border-radius: 12px;
    --bs-font-sans-serif: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body {
    color: var(--f4-ink);
    background: var(--f4-soft);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--f4-blue); }
a:hover { color: #172179; }

/* Cabeçalho e navegação */
header,
.header,
.navbar,
.main-header {
    background-color: #fff;
    border-color: rgba(7, 13, 53, .08);
}
.navbar-brand img,
.logo-img { max-height: 42px; width: auto; }
.navbar .nav-link,
.navbar-nav .nav-link { color: var(--f4-ink); font-weight: 700; }
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar-nav .nav-link.active { color: var(--f4-blue); }
.dropdown-menu {
    border: 1px solid var(--f4-line);
    border-radius: 14px;
    box-shadow: var(--f4-shadow);
}
.dropdown-item:active,
.dropdown-item.active { background: var(--f4-blue); color: #fff; }

/* Conteúdo */
h1, h2, h3, h4, h5, h6 {
    color: var(--f4-navy);
    font-weight: 800;
    letter-spacing: -.025em;
}
.card,
.panel,
.list-group,
.modal-content,
.invoice-container {
    border: 1px solid var(--f4-line);
    border-radius: var(--f4-radius);
    box-shadow: 0 10px 34px rgba(7, 13, 53, .07);
}
.card-header,
.panel-heading {
    color: var(--f4-navy);
    background: #fff;
    border-color: var(--f4-line);
    font-weight: 800;
}
.card-footer,
.panel-footer { background: #fff; border-color: var(--f4-line); }

/* Botões */
.btn {
    min-height: 44px;
    border-radius: 11px;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary,
.btn-success {
    border-color: transparent;
    background: linear-gradient(135deg, var(--f4-blue), var(--f4-blue-light));
    box-shadow: 0 10px 24px rgba(38, 52, 215, .24);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus { border-color: transparent; background: #172179; }
.btn-outline-primary { color: var(--f4-blue); border-color: var(--f4-blue); }
.btn-outline-primary:hover { color: #fff; background: var(--f4-blue); }

/* Formulários */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    min-height: 46px;
    border-color: #c9d3e5;
    border-radius: 11px;
    background-color: #fff;
}
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--f4-blue);
    box-shadow: 0 0 0 .22rem rgba(64, 82, 235, .16);
}
label, .form-label { color: var(--f4-navy); font-weight: 700; }

/* Estados e tabelas */
.badge.bg-primary,
.label-primary { background-color: var(--f4-blue) !important; }
.alert { border: 0; border-radius: 12px; }
.table { --bs-table-striped-bg: rgba(242, 247, 255, .72); }
.table thead th { color: var(--f4-navy); font-weight: 800; border-bottom-color: var(--f4-line); }
.pagination .page-link { color: var(--f4-blue); border-color: var(--f4-line); }
.pagination .active > .page-link { color: #fff; background: var(--f4-blue); border-color: var(--f4-blue); }

/* Rodapé */
footer,
.footer {
    color: #bac3df;
    background: #050925;
}
footer a,
.footer a { color: #d7dcf3; }
footer a:hover,
.footer a:hover { color: var(--f4-cyan); }

/* Acessibilidade */
:focus-visible { outline: 3px solid rgba(18, 215, 210, .55); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Mobile first */
@media (max-width: 767.98px) {
    body { font-size: 15px; }
    .container, .container-fluid { padding-right: 16px; padding-left: 16px; }
    .card, .panel, .modal-content { border-radius: 14px; }
    .btn { width: 100%; }
    .btn-group .btn,
    .input-group .btn,
    .navbar .btn { width: auto; }
    .table-responsive { border-radius: 12px; }
}

/* F4WEB 0.2.0 — estrutura compartilhada com f4web.com */
.f4-skip-link {
    position: fixed;
    top: -80px;
    left: 18px;
    z-index: 9999;
    padding: 12px 18px;
    border-radius: 10px;
    background: #fff;
    color: var(--f4-navy);
    font-weight: 800;
}
.f4-skip-link:focus { top: 18px; }
.f4-header { position: sticky; top: 0; z-index: 1030; box-shadow: 0 1px 0 rgba(7, 13, 53, .08); }
.f4-brandbar { min-height: 80px; padding: 0; background: rgba(255, 255, 255, .97); }
.f4-brandbar > .container { min-height: 80px; }
.f4-brand { display: inline-flex; width: 154px; margin: 0; padding: 0; }
.f4-brand .logo-img { width: 100%; max-height: none; }
.f4-brand-actions { display: flex; align-items: center; gap: 14px; }
.f4-site-back { align-items: center; gap: 8px; color: var(--f4-navy); font-size: .84rem; font-weight: 800; }
.f4-site-back:hover { text-decoration: none; }
.f4-cta { min-height: 42px; padding: 0 17px; color: #fff !important; font-size: .83rem; }
.f4-toolbar { margin-left: 12px; }
.f4-toolbar .cart-btn { display: grid; place-items: center; min-width: 44px; padding: 0; }
.f4-portal-nav { min-height: 54px; padding: 0; border-top: 1px solid var(--f4-line); background: #fff; }
.f4-portal-nav .navbar-nav > li > a { color: var(--f4-ink); font-size: .87rem; font-weight: 750; }
.f4-portal-nav .navbar-nav > li > a:hover { color: var(--f4-blue); }
.master-breadcrumb { border: 0; background: #edf3ff; }
.master-breadcrumb .container { min-height: 48px; display: flex; align-items: center; }

#main-body { max-width: 100%; overflow-x: clip; padding-top: 0; }
#main-body > .container { max-width: none; padding: 0; }
#main-body > .container > .row { margin: 0; }
#main-body .primary-content.col-12 { padding: 0; }

.f4-portal-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    min-height: 520px;
    overflow: hidden;
    padding: 72px max(40px, calc((100vw - 1180px) / 2));
    background: linear-gradient(135deg, #070d35, #101a64);
    color: #fff;
}
.f4-portal-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .1;
    background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
    background-size: 55px 55px;
}
.f4-portal-hero-copy { position: relative; z-index: 2; max-width: 700px; }
.f4-eyebrow { display: inline-flex; color: var(--f4-cyan); font-size: .73rem; font-weight: 900; letter-spacing: .15em; }
.f4-portal-hero h1 { margin: 22px 0 20px; color: #fff; font-size: clamp(2.55rem, 4.4vw, 4.7rem); line-height: 1.06; }
.f4-portal-hero p { max-width: 650px; margin: 0; color: #c7cfeb; font-size: 1.1rem; }
.f4-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.f4-hero-actions .btn { min-width: 175px; }
.f4-portal-hero .btn-outline-primary { border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.06); color: #fff; }
.f4-portal-hero .btn-outline-primary:hover { border-color: #fff; background: #fff; color: var(--f4-blue); }
.f4-portal-visual { position: relative; min-height: 350px; }
.f4-orbit { position: absolute; inset: 45px; border: 1px solid rgba(18,215,210,.28); border-radius: 50%; }
.f4-orbit-two { inset: 5px 55px; transform: rotate(55deg); border-color: rgba(64,82,235,.7); }
.f4-visual-core { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; place-items: center; width: 235px; height: 165px; padding: 48px 32px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.25); border-radius: 34px; background: linear-gradient(145deg, rgba(64,82,235,.7), rgba(18,215,210,.13)); box-shadow: 0 0 70px rgba(18,215,210,.18); }
.f4-visual-core img { width: 100%; }

.f4-product-section,
.f4-help-section { padding: 88px max(40px, calc((100vw - 1180px) / 2)); }
.f4-product-section { background: var(--f4-soft); }
.f4-help-section { background: #fff; }
.f4-section-heading { max-width: 720px; margin-bottom: 38px; }
.f4-section-heading .f4-eyebrow { color: var(--f4-blue); }
.f4-section-heading h2 { margin: 14px 0; font-size: clamp(2rem, 3.5vw, 3.35rem); }
.f4-section-heading p { color: var(--f4-muted); font-size: 1.02rem; }
.f4-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.f4-product-card { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 28px; overflow: hidden; border: 1px solid var(--f4-line); border-radius: 22px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.f4-product-card:hover { transform: translateY(-4px); box-shadow: var(--f4-shadow); }
.f4-card-mark { color: var(--f4-blue); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.f4-product-card h3 { margin: 32px 0 12px; font-size: 1.42rem; }
.f4-product-card p { flex: 1; color: var(--f4-muted); }
.f4-product-card > a { display: inline-flex; align-items: center; gap: 9px; font-weight: 850; }
.f4-product-card > a:hover { text-decoration: none; }
.f4-help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.f4-help-grid > a { display: flex; flex-direction: column; min-height: 210px; padding: 25px; border: 1px solid var(--f4-line); border-radius: 18px; color: var(--f4-ink); }
.f4-help-grid > a:hover { border-color: var(--f4-blue); text-decoration: none; box-shadow: 0 12px 30px rgba(7,13,53,.08); }
.f4-help-grid i { margin-bottom: 28px; color: var(--f4-blue); font-size: 1.7rem; }
.f4-help-grid strong { margin-bottom: 8px; color: var(--f4-navy); font-size: 1.03rem; }
.f4-help-grid span { color: var(--f4-muted); font-size: .86rem; }
.f4-site-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 70px max(40px, calc((100vw - 1180px) / 2)); background: linear-gradient(135deg, var(--f4-blue), #172179); color: #fff; }
.f4-site-cta h2 { max-width: 760px; margin: 15px 0 0; color: #fff; font-size: clamp(2rem, 3.2vw, 3rem); }
.f4-site-cta .btn { flex: 0 0 auto; border-color: #fff; background: #fff; color: var(--f4-blue); }

.f4-footer { padding: 68px 0 22px; background: #050925; }
.f4-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 54px; }
.f4-footer-brand img { width: 190px; }
.f4-footer-brand p { max-width: 330px; margin: 20px 0 0; color: #aeb8db; }
.f4-footer-column h3 { margin-bottom: 15px; color: var(--f4-cyan); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.f4-footer-column a { display: block; margin: 9px 0; color: #bac3df; font-size: .88rem; }
.f4-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 25px; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.f4-footer-locale { order: 3; margin: 0 0 0 auto; }
.f4-footer-legal { order: 1; }
.f4-copyright { order: 2; color: #8994b9; font-size: .8rem; }

/* Catálogo WHMCS: mantém os cartões legíveis quando o produto possui uma cor
   escura cadastrada. O WHMCS aplica essa cor diretamente no cartão; por isso
   estes seletores precisam vencer o estilo inline sem afetar outras telas. */
body #order-standard_cart .cart-body .products {
    row-gap: 24px !important;
}
body #order-standard_cart .cart-body .products .product {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0 !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid var(--f4-line) !important;
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(7, 13, 53, .08);
}
body #order-standard_cart .cart-body .products .product header {
    padding: 20px 22px 16px;
    background: #fff !important;
    color: var(--f4-navy) !important;
    border-bottom: 1px solid var(--f4-line);
}
body #order-standard_cart .cart-body .products .product header,
body #order-standard_cart .cart-body .products .product header * {
    color: var(--f4-navy) !important;
}
body #order-standard_cart .cart-body .products .product .product-desc {
    display: block !important;
    flex: 1 1 auto;
    min-height: 0;
    padding: 22px !important;
    background: #fff !important;
    color: var(--f4-ink) !important;
    line-height: 1.5;
}
body #order-standard_cart .cart-body .products .product .product-desc :is(p, ul, ol, li, span, strong, em, b) {
    color: inherit !important;
}
body #order-standard_cart .cart-body .products .product .product-desc p {
    min-height: 0 !important;
    margin: 0 0 10px !important;
}
body #order-standard_cart .cart-body .products .product .product-desc p:empty,
body #order-standard_cart .cart-body .products .product .product-desc p:has(> br:only-child) {
    display: none !important;
}
body #order-standard_cart .cart-body .products .product .product-desc p:first-child {
    margin-bottom: 12px !important;
    color: var(--f4-navy) !important;
    font-size: 1rem;
}
body #order-standard_cart .cart-body .products .product .product-desc p:nth-child(2) {
    margin-bottom: 18px !important;
    color: var(--f4-muted) !important;
    font-size: .92rem;
}
body #order-standard_cart .cart-body .products .product .product-desc p:nth-child(n+3) {
    position: relative;
    padding-left: 0;
    font-size: .9rem;
}
body #order-standard_cart .cart-body .products .product .product-desc br {
    display: none;
}
body #order-standard_cart .cart-body .products .product .product-desc p:last-child,
body #order-standard_cart .cart-body .products .product .product-desc ul:last-child,
body #order-standard_cart .cart-body .products .product .product-desc ol:last-child {
    margin-bottom: 0;
}
body #order-standard_cart .cart-body .products .product footer {
    margin: auto 0 0;
    padding: 20px 22px 22px;
    background: #fff !important;
    color: var(--f4-navy) !important;
    border-top: 1px solid var(--f4-line);
}
body #order-standard_cart .cart-body .products .product footer .product-pricing,
body #order-standard_cart .cart-body .products .product footer .product-pricing * {
    color: var(--f4-navy) !important;
}
body #order-standard_cart .cart-body .products .product footer .product-pricing {
    margin-bottom: 14px;
    font-weight: 800;
}
body #order-standard_cart .cart-body .products .product footer .btn-order-now {
    background: var(--f4-blue) !important;
    border-color: var(--f4-blue) !important;
    color: #fff !important;
}
body #order-standard_cart .cart-body .products .product footer .btn-order-now:hover {
    background: var(--f4-blue-light) !important;
    border-color: var(--f4-blue-light) !important;
}

@media (max-width: 991.98px) {
    .f4-product-grid { grid-template-columns: repeat(2, 1fr); }
    .f4-help-grid { grid-template-columns: repeat(2, 1fr); }
    .f4-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .f4-header { position: relative; }
    .f4-brandbar, .f4-brandbar > .container { min-height: 70px; }
    .f4-brand { width: 132px; }
    .f4-toolbar { flex-direction: row; margin-left: 8px; }
    .f4-toolbar .btn { width: 42px; }
    .f4-portal-nav { padding: 8px 0; }
    .f4-portal-hero { grid-template-columns: 1fr; min-height: auto; padding: 66px 18px; }
    .f4-portal-hero h1 { font-size: 2.55rem; }
    .f4-portal-hero p { font-size: 1rem; }
    .f4-portal-visual { display: none; }
    .f4-hero-actions { display: grid; }
    .f4-hero-actions .btn { width: 100%; }
    .f4-product-section, .f4-help-section { padding: 66px 18px; }
    .f4-product-grid, .f4-help-grid, .f4-footer-grid { grid-template-columns: 1fr; }
    .f4-product-card { min-height: 220px; }
    .f4-site-cta { align-items: stretch; flex-direction: column; padding: 62px 18px; }
    .f4-site-cta .btn { width: 100%; }
    .f4-footer-grid { gap: 32px; }
    .f4-footer-bottom { align-items: flex-start; flex-direction: column; }
    .f4-footer-locale { margin-left: 0; }
    body #order-standard_cart .cart-body .products .product header,
    body #order-standard_cart .cart-body .products .product .product-desc,
    body #order-standard_cart .cart-body .products .product footer { padding-left: 18px !important; padding-right: 18px !important; }
    body #order-standard_cart .cart-body .products .product {
        height: auto !important;
        min-height: 0 !important;
        background: #fff !important;
    }
    body #order-standard_cart .cart-body .products .product > div,
    body #order-standard_cart .cart-body .products .product > section,
    body #order-standard_cart .cart-body .products .product .product-body,
    body #order-standard_cart .cart-body .products .product .product-info,
    body #order-standard_cart .cart-body .products .product .product-content,
    body #order-standard_cart .cart-body .products .product .product-desc,
    body #order-standard_cart .cart-body .products .product footer {
        min-height: 0 !important;
        background: #fff !important;
        color: var(--f4-ink) !important;
    }
    body #order-standard_cart .cart-body .products .product .product-desc {
        flex: none !important;
    }
    body #order-standard_cart .cart-body .products .product footer {
        margin-top: 0 !important;
    }
    body #order-standard_cart .cart-body .products .product :is(.product-body, .product-info, .product-content, .product-desc, footer) * {
        color: var(--f4-ink) !important;
    }
    body #order-standard_cart .cart-body .products .product footer .btn-order-now,
    body #order-standard_cart .cart-body .products .product footer .btn-order-now * {
        background: var(--f4-blue) !important;
        border-color: var(--f4-blue) !important;
        color: #fff !important;
    }
    body #order-standard_cart select {
        width: 100%;
        min-height: 48px !important;
        height: 48px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        font-size: 16px !important;
    }
}

/* F4WEB 0.3.0 — orcamentos e acabamento responsivo do catalogo */
body #order-standard_cart .f4-quote-price {
    color: var(--f4-navy) !important;
    font-size: 1.02rem;
    font-weight: 850;
}

body #order-standard_cart .f4-quote-summary {
    margin: 14px 0 20px;
    padding: 18px;
    border: 1px solid rgba(38, 52, 215, .18);
    border-radius: 14px;
    background: #fff;
    color: var(--f4-navy);
    text-align: center;
}

body #order-standard_cart .f4-quote-summary strong,
body #order-standard_cart .f4-quote-summary small {
    display: block;
}

body #order-standard_cart .f4-quote-summary small {
    margin-top: 5px;
    color: var(--f4-muted);
    font-size: .82rem;
}

/* Na configuracao do projeto, o briefing e o foco. A vitrine preserva a
   descricao completa, enquanto esta etapa mostra apenas a introducao. */
body.f4-quote-configure #order-standard_cart .product-info > ul,
body.f4-quote-configure #order-standard_cart .product-info > ol,
body.f4-quote-configure #order-standard_cart .product-info > p:nth-of-type(n+3),
body.f4-quote-configure #order-standard_cart .product-description > ul,
body.f4-quote-configure #order-standard_cart .product-description > ol,
body.f4-quote-configure #order-standard_cart .product-description > p:nth-of-type(n+3) {
    display: none !important;
}

/* Neutraliza marcadores que alguns formulários Nexus adicionam aos titulos e
   observacoes finais vindos da descricao HTML do produto. */
body #order-standard_cart .product-desc li > p,
body #order-standard_cart .product-desc li > strong:only-child {
    margin: 0 !important;
}

@media (max-width: 767.98px) {
    /* O Nexus remove a margem externa do carrinho. O respiro abaixo mantem
       titulo, texto, preco e CTA afastados da borda fisica do telefone. */
    body #order-standard_cart {
        width: auto !important;
        max-width: none !important;
        margin-right: 14px !important;
        margin-left: 14px !important;
    }

    body #order-standard_cart .cart-body,
    body #order-standard_cart .products,
    body #order-standard_cart .products .product {
        max-width: 100% !important;
    }

    body #order-standard_cart .cart-body .products .product header,
    body #order-standard_cart .cart-body .products .product .product-desc,
    body #order-standard_cart .cart-body .products .product footer {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    body #order-standard_cart .cart-body .products .product footer .btn-order-now {
        width: 100% !important;
    }
}

/* F4WEB 0.3.1 — gutters do carrinho e restauracao integral do rodape */
body.f4-cart-page #main-body > .container > .row {
    width: 100%;
    max-width: 1480px;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.f4-cart-page #main-body > .container > .row > .primary-content,
body:has(#order-standard_cart) #main-body > .container > .row > .primary-content {
    padding: 34px clamp(22px, 3vw, 48px) 72px !important;
}

body.f4-cart-page #order-standard_cart,
body:has(#order-standard_cart) #order-standard_cart {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.f4-cart-page #order-standard_cart .header-lined h1,
body:has(#order-standard_cart) #order-standard_cart .header-lined h1 {
    line-height: 1.08;
    overflow-wrap: anywhere;
}

/* O CSS do formulario de pedido e carregado depois do tema em algumas rotas.
   A especificidade e o !important abaixo preservam o rodape oficial. */
body footer#footer.footer.f4-footer {
    margin: 0 !important;
    padding: 68px 0 22px !important;
    border: 0 !important;
    background: #050925 !important;
    color: #bac3df !important;
}

body footer#footer.footer.f4-footer .container {
    width: 100% !important;
    max-width: 1180px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 24px !important;
    padding-left: 24px !important;
}

body footer#footer.footer.f4-footer .f4-footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) !important;
    gap: 54px !important;
}

body footer#footer.footer.f4-footer .f4-footer-brand img {
    display: block !important;
    width: 190px !important;
    max-width: 100% !important;
    height: auto !important;
}

body footer#footer.footer.f4-footer .f4-footer-brand p {
    max-width: 330px !important;
    margin: 20px 0 0 !important;
    color: #aeb8db !important;
}

body footer#footer.footer.f4-footer .f4-footer-column h3 {
    margin: 0 0 15px !important;
    color: #12d7d2 !important;
    font-size: .76rem !important;
    font-weight: 800 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
}

body footer#footer.footer.f4-footer a,
body footer#footer.footer.f4-footer .nav-link {
    color: #bac3df !important;
}

body footer#footer.footer.f4-footer .f4-footer-column a {
    display: block !important;
    margin: 9px 0 !important;
    padding: 0 !important;
    font-size: .88rem !important;
    text-decoration: none !important;
}

body footer#footer.footer.f4-footer a:hover,
body footer#footer.footer.f4-footer a:focus {
    color: #12d7d2 !important;
}

body footer#footer.footer.f4-footer .f4-footer-bottom {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px 25px !important;
    margin-top: 50px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, .12) !important;
}

body footer#footer.footer.f4-footer .f4-copyright {
    color: #8994b9 !important;
}

@media (max-width: 991.98px) {
    body footer#footer.footer.f4-footer .f4-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 38px !important;
    }
}

@media (max-width: 767.98px) {
    body.f4-cart-page #main-body > .container > .row > .primary-content,
    body:has(#order-standard_cart) #main-body > .container > .row > .primary-content {
        padding: 28px 18px 56px !important;
    }

    body.f4-cart-page #order-standard_cart .header-lined h1,
    body:has(#order-standard_cart) #order-standard_cart .header-lined h1 {
        margin-bottom: 10px !important;
        font-size: clamp(2.25rem, 11vw, 3rem) !important;
    }

    body.f4-cart-page #order-standard_cart .header-lined p,
    body:has(#order-standard_cart) #order-standard_cart .header-lined p {
        font-size: 1rem !important;
        line-height: 1.45 !important;
    }

    body footer#footer.footer.f4-footer {
        padding: 54px 0 22px !important;
    }

    body footer#footer.footer.f4-footer .container {
        padding-right: 24px !important;
        padding-left: 24px !important;
    }

    body footer#footer.footer.f4-footer .f4-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    body footer#footer.footer.f4-footer .f4-footer-bottom {
        align-items: flex-start !important;
        flex-direction: column !important;
        margin-top: 38px !important;
    }

    body footer#footer.footer.f4-footer .f4-footer-locale {
        margin-left: 0 !important;
    }
}

/* F4WEB 0.3.2 — menu colapsado compacto */
@media (max-width: 1199.98px) {
    body .f4-header {
        overflow: visible !important;
    }

    body .f4-portal-nav {
        position: relative !important;
        min-height: 0 !important;
        padding: 0 !important;
        border-top: 1px solid var(--f4-line) !important;
        background: #fff !important;
    }

    body .f4-portal-nav > .container {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        padding: 0 !important;
    }

    body .f4-portal-nav .navbar-collapse {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 1050 !important;
        max-height: calc(100vh - 92px) !important;
        padding: 18px 22px 22px !important;
        overflow-y: auto !important;
        border-top: 1px solid var(--f4-line) !important;
        border-bottom: 1px solid var(--f4-line) !important;
        background: #fff !important;
        box-shadow: 0 20px 42px rgba(7, 13, 53, .18) !important;
    }

    body .f4-portal-nav .navbar-collapse:not(.show) {
        display: none !important;
    }

    body .f4-portal-nav .navbar-collapse.collapsing {
        position: absolute !important;
        height: auto !important;
        transition: opacity .16s ease !important;
    }

    body .f4-portal-nav form {
        margin: 0 0 12px !important;
        padding: 0 !important;
    }

    body .f4-portal-nav form .input-group {
        margin: 0 !important;
    }

    body .f4-portal-nav .navbar-nav,
    body .f4-portal-nav .f4-primary-nav,
    body .f4-portal-nav .f4-account-nav {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body .f4-portal-nav .navbar-nav > li {
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(219, 227, 241, .75) !important;
    }

    body .f4-portal-nav .navbar-nav > li:last-child {
        border-bottom: 0 !important;
    }

    body .f4-portal-nav .navbar-nav > li > a,
    body .f4-portal-nav .navbar-nav > li > .nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 46px !important;
        margin: 0 !important;
        padding: 12px 2px !important;
        color: var(--f4-ink) !important;
        font-size: .94rem !important;
        font-weight: 750 !important;
        line-height: 1.25 !important;
    }

    body .f4-portal-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin: 0 0 8px !important;
        padding: 6px 0 6px 14px !important;
        border: 0 !important;
        border-left: 2px solid var(--f4-cyan) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body .f4-portal-nav .dropdown-item {
        min-height: 40px !important;
        padding: 9px 10px !important;
        font-size: .9rem !important;
    }

    body .f4-portal-nav .f4-account-nav {
        margin-top: 4px !important;
        padding-top: 4px !important;
        border-top: 2px solid var(--f4-line) !important;
    }
}

/* Reforco final do rodape. O estilo inline fixa a superficie e estas regras
   garantem contraste mesmo quando o order form injeta CSS posteriormente. */
html body footer#footer.f4-footer,
html body footer#footer.footer.f4-footer {
    background-color: #050925 !important;
    background-image: none !important;
}

html body footer#footer.f4-footer :is(p, span, li) {
    color: #aeb8db;
}

html body footer#footer.f4-footer .f4-footer-column h3 {
    color: #12d7d2 !important;
}

html body footer#footer.f4-footer a {
    color: #bac3df !important;
}

/* F4WEB 0.3.4 — iconografia exclusiva do menu suspenso */
body .dropdown-menu a .f4-menu-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    margin-right: 9px;
    color: var(--f4-blue) !important;
    font-size: .88rem;
    text-align: center;
}

body .dropdown-menu a:hover .f4-menu-icon,
body .dropdown-menu a:focus .f4-menu-icon,
body .dropdown-menu a.active .f4-menu-icon {
    color: inherit !important;
}

/* F4WEB 0.4.0 — catalogo em linhas comparaveis */
body #order-standard_cart .cart-body .products {
    display: flex !important;
    flex-direction: column;
    gap: 14px !important;
}

body #order-standard_cart .cart-body .products .product {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

@media (min-width: 992px) {
    body #order-standard_cart .cart-body .products .product {
        display: grid !important;
        grid-template-columns: minmax(170px, .8fr) minmax(360px, 2.4fr) minmax(190px, .85fr);
        align-items: stretch;
        min-height: 190px;
        border-radius: 14px;
        box-shadow: 0 9px 26px rgba(7, 13, 53, .065);
    }

    body #order-standard_cart .cart-body .products .product header {
        display: flex;
        align-items: flex-start;
        padding: 28px 22px !important;
        border-right: 1px solid var(--f4-line);
        border-bottom: 0;
    }

    body #order-standard_cart .cart-body .products .product .product-desc {
        padding: 26px 28px !important;
    }

    body #order-standard_cart .cart-body .products .product .product-desc ul,
    body #order-standard_cart .cart-body .products .product .product-desc ol {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px 26px;
        margin-top: 14px;
        padding-left: 20px;
    }

    body #order-standard_cart .cart-body .products .product footer {
        display: flex;
        align-items: stretch;
        justify-content: center;
        flex-direction: column;
        margin: 0;
        padding: 26px 22px !important;
        border-top: 0;
        border-left: 1px solid var(--f4-line);
    }

    body #order-standard_cart .cart-body .products .product footer .product-pricing {
        margin-bottom: 16px;
    }

    body #order-standard_cart .cart-body .products .product footer .btn-order-now {
        width: 100%;
        white-space: normal;
    }
}
