/*
 Theme Name:   Astra Child - Mundoseg
 Theme URI:    https://www.mundoseg.com.br
 Description:  Tema filho personalizado para a loja Mundoseg. Todas as customizacoes de CSS ficam aqui.
 Author:       Mundoseg
 Author URI:   https://www.mundoseg.com.br
 Template:     astra
 Version:      2.5.0
 Text Domain:  astra-child
*/

/* =============================================================
   IDENTIDADE VISUAL DA MARCA — CORES MUNDOSEG
   Cores extraidas do logotipo. Para ajustar a marca inteira,
   basta mudar os valores aqui embaixo.
   ============================================================= */

:root {
    --ms-laranja: #F07E1A;        /* MUNDO — acao / preco / oferta */
    --ms-laranja-hover: #d96d10;
    --ms-azul: #1C2B5E;           /* SEG — cabecalho / rodape / titulos */
    --ms-azul-hover: #15214a;
    --ms-vermelho: #E1251B;       /* promocao / desconto / urgencia */
    --ms-grafite: #1A1D24;        /* texto principal */
    --ms-cinza: #6B7280;          /* texto secundario */
    --ms-cinza-claro: #F4F5F7;    /* fundos de secao */
    --ms-verde-frete: #2d8a2d;    /* selo frete gratis */
}

/* =============================================================
   AVISO CARRINHO / CHECKOUT — estoque parceiros
   ============================================================= */

.mundoseg-store-notice {
    background: #f0f6ff;
    border: 1px solid #c5d9f5;
    border-left: 4px solid var(--ms-azul);
    border-radius: 6px;
    padding: 14px 18px;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ms-grafite);
}

.mundoseg-store-notice p {
    margin: 0 0 8px;
}

.mundoseg-store-notice p:last-child {
    margin-bottom: 0;
}

.mundoseg-store-notice a {
    color: var(--ms-azul);
    font-weight: 600;
}

/* =============================================================
   CUSTOMIZACOES GLOBAIS
   ============================================================= */

/* Botoes de compra e acao — LARANJA da marca */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce ul.products li.product .button,
.wc-block-components-button,
.wp-block-button__link {
    background-color: var(--ms-laranja) !important;
    color: #ffffff !important;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    transition: background-color 0.2s ease;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce ul.products li.product .button:hover,
.wc-block-components-button:hover,
.wp-block-button__link:hover {
    background-color: var(--ms-laranja-hover) !important;
    color: #ffffff !important;
    opacity: 1;
}

/* Botoes secundarios (ex: ver carrinho, continuar comprando) — AZUL */
.woocommerce a.button.wc-backward,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: var(--ms-azul) !important;
    color: #ffffff !important;
}

.woocommerce a.button.wc-backward:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--ms-azul-hover) !important;
}

/* Botao FINALIZAR COMPRA com destaque maximo — laranja grande */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: var(--ms-laranja) !important;
    font-size: 1.05em;
    padding: 16px;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--ms-laranja-hover) !important;
}

/* PRECOS em laranja e destacados */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce .price ins,
.woocommerce-Price-amount {
    color: var(--ms-laranja);
    font-weight: 700;
}

/* Preco antigo riscado em cinza */
.woocommerce del .woocommerce-Price-amount {
    color: var(--ms-cinza);
    font-weight: 400;
}

/* LINKS do site na cor da marca */
a {
    color: var(--ms-azul);
}
a:hover {
    color: var(--ms-laranja);
}

/* TITULOS de secao em azul marinho */
.woocommerce .products h2,
.entry-title,
.ast-archive-title,
h1.woocommerce-products-header__title,
.widget-title {
    color: var(--ms-azul);
}

/* CABECALHO — fundo branco com base azul no menu */
.main-header-menu .menu-link,
.ast-builder-menu .menu-item > .menu-link {
    color: var(--ms-azul);
    font-weight: 500;
}
.main-header-menu .menu-link:hover,
.ast-builder-menu .menu-item > .menu-link:hover,
.ast-builder-menu .current-menu-item > .menu-link {
    color: var(--ms-laranja);
}

/* CARRINHO no header — icone com numero em laranja (widget Astra) */
.ast-cart-menu-wrap .ast-count,
.ast-site-header-cart .ast-cart-menu-wrap .count {
    background-color: var(--ms-laranja);
    color: #ffffff;
    border-color: var(--ms-laranja);
}

/* Esconde menu textual antigo (Loja, Carrinho...) — usamos icones */
.ast-primary-header-bar .main-header-menu,
.ast-primary-header-bar .ast-flex.main-header-menu {
    display: none !important;
}

/* Barra de acoes do header — icones + legenda */
.mundoseg-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2px;
    margin-left: 8px;
    flex-shrink: 0;
}

.mundoseg-header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 48px;
    max-width: 58px;
    padding: 3px 3px 2px;
    text-decoration: none;
    color: var(--ms-azul);
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.mundoseg-header-action:hover,
.mundoseg-header-action.is-active {
    color: var(--ms-laranja);
    background: rgba(240, 126, 26, 0.08);
}

.mundoseg-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
}

.mundoseg-action-svg {
    display: block;
}

.mundoseg-action-label {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    letter-spacing: 0.01em;
}

.mundoseg-action-label--stack span {
    display: block;
}

.mundoseg-header-action--account {
    min-width: 58px;
}

.mundoseg-cart-count {
    position: absolute;
    top: -2px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--ms-laranja);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid #ffffff;
}

.mundoseg-cart-count--empty {
    display: none !important;
}

/* SELO DE PROMOCAO / OFERTA — badge vermelho */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
    background-color: var(--ms-vermelho);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    min-height: auto;
    min-width: auto;
    line-height: 1.4;
}

/* RODAPE em azul marinho */
.site-footer,
.ast-small-footer,
footer.site-footer {
    background-color: var(--ms-azul) !important;
    color: #e8ebf2;
}
.site-footer a,
.ast-small-footer a {
    color: #c9d2e8 !important;
}
.site-footer a:hover,
.ast-small-footer a:hover {
    color: var(--ms-laranja) !important;
}
.site-footer .widget-title,
.site-footer h2,
.site-footer h3 {
    color: #ffffff !important;
}

/* BARRA DE BUSCA com borda na cor da marca ao focar */
.woocommerce-product-search input[type="search"]:focus,
.search-field:focus,
input[type="search"]:focus {
    border-color: var(--ms-azul);
    outline: none;
}

/* =============================================================
   BARRA DE AVISOS NO TOPO (announcement bar)
   ============================================================= */

.mundoseg-topbar {
    background-color: var(--ms-azul);
    color: #ffffff;
    font-size: 13px;
    overflow: hidden;
}

.mundoseg-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px;
}

.mundoseg-topbar-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Separador em forma de ponto entre os avisos */
.mundoseg-topbar-item:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ms-laranja);
    margin-left: 28px;
}

/* No celular, mostra um aviso por vez de forma compacta */
@media (max-width: 768px) {
    .mundoseg-topbar-inner {
        gap: 16px;
        padding: 7px 12px;
        font-size: 11.5px;
    }
    .mundoseg-topbar-item:not(:last-child)::after {
        margin-left: 16px;
    }
}

/* Barra azul no meio da pagina (entre Novidades e Ofertas) */
.mundoseg-topbar--inline {
    margin: 32px 0;
    border-radius: 8px;
}

/* =============================================================
   CABECALHO FIXO — logo + busca + categorias (um bloco so)
   ============================================================= */

.mundoseg-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.mundoseg-sticky-header .site-header {
    margin-bottom: 0;
}

.mundoseg-sticky-header .mundoseg-header-toolbar {
    margin-top: 0;
}

.site-primary-header-wrap,
.ast-primary-header-bar,
.main-header-bar,
.mundoseg-header-toolbar {
    background-color: #ffffff;
}

body.admin-bar .mundoseg-sticky-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .mundoseg-sticky-header {
        top: 46px;
    }
}

/* =============================================================
   SELOS DE CONFIANCA NO CHECKOUT
   ============================================================= */

.mundoseg-trust-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.mundoseg-trust-badges .badge-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
}

.mundoseg-trust-badges .badge-item--mp {
    border-color: #b8e9fa;
    background: #f0f9fd;
    color: #007eb5;
    font-weight: 700;
}

/* Mercado Pago — selo de credibilidade */
.mundoseg-mp-trust {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 158, 227, 0.08);
    border: 1px solid rgba(0, 158, 227, 0.22);
}

.mundoseg-mp-trust--checkout {
    margin: 0 0 16px;
    padding: 14px 16px;
}

.mundoseg-mp-trust--cart {
    margin-top: 14px;
}

.mundoseg-mp-trust--footer {
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.mundoseg-mp-trust--footer .mundoseg-mp-trust-text strong,
.mundoseg-mp-trust--footer .mundoseg-mp-trust-text small {
    color: #e8f4fc;
}

.mundoseg-mp-trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}

.mundoseg-mp-trust-text strong {
    color: #007eb5;
    font-size: 13px;
}

.mundoseg-mp-trust-text small {
    color: #4a6578;
    font-size: 11.5px;
}

.mundoseg-mp-trust--checkout .mundoseg-mp-trust-text strong {
    font-size: 14px;
}

.mundoseg-mp-trust--checkout .mundoseg-mp-trust-text small {
    font-size: 12px;
}

.mundoseg-mp-logo-svg {
    flex-shrink: 0;
}

/* Oculta faixa branca do rodape Astra (copyright / Powered by) */
.ast-small-footer,
.ast-small-footer-wrap,
.site-below-footer-wrap,
.ast-footer-copyright {
    display: none !important;
}

/* =============================================================
   BARRA DE WHATSAPP FIXA
   ============================================================= */

.mundoseg-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #25D366;
    color: #fff !important;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    line-height: 1;
    transition: background 0.2s ease;
}

.mundoseg-whatsapp-btn:hover {
    background: #1da851;
    color: #fff !important;
}

/* =============================================================
   RODAPE — DADOS DA EMPRESA
   ============================================================= */

.mundoseg-footer-info {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    line-height: 1.7;
}

/* =============================================================
   PRODUTOS — IMAGENS UNIFORMES E CARDS ALINHADOS
   Produto inteiro visível (object-fit: contain), sem recorte.
   ============================================================= */

/* Área fixa da imagem — altura no container, não na img */
.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.woocommerce ul.products li.product a:has(> img),
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product > a:first-child {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    height: 200px;
    overflow: hidden !important;
    background-color: #f8f8f8;
    padding: 14px;
    box-sizing: border-box;
}

/* Imagem proporcional — redimensiona sem recortar (usa large/full via PHP) */
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product .mundoseg-product-image,
.woocommerce ul.products li.product a.woocommerce-loop-product__link img,
.woocommerce ul.products li.product img:not(.zoomImg) {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 172px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Card do produto — fundo branco e borda suave */
.woocommerce ul.products li.product {
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    overflow: hidden;
    padding-bottom: 12px !important;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Botao adicionar — mais compacto */
.woocommerce ul.products li.product .button {
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 12.5px;
}

.woocommerce ul.products li.product:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Titulo do produto */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
    line-height: 1.35;
    padding: 6px 12px 2px;
    min-height: 50px; /* garante altura minima igual para titulos curtos */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Categoria acima do titulo */
.woocommerce ul.products li.product .ast-woo-product-category {
    padding: 6px 12px 0;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Preco */
.woocommerce ul.products li.product .price {
    padding: 0 12px;
    font-size: 15px;
    font-weight: 700;
}

/* Botao adicionar ao carrinho — centralizado no card (sobrescreve Astra align-left) */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product.desktop-align-left .button,
.woocommerce ul.products li.product.desktop-align-right .button,
.woocommerce ul.products li.product.tablet-align-left .button,
.woocommerce ul.products li.product.mobile-align-left .button {
    display: block !important;
    float: none !important;
    margin: 10px auto 0 !important;
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    text-align: center !important;
}

/* Conteudo do card alinhado ao centro */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    text-align: center;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .price {
    text-align: center;
}

/* =============================================================
   AVISO DE FRETE GRATIS
   ============================================================= */

.mundoseg-frete-bar {
    background: #f0f7f0;
    border-top: 2px solid #2d8a2d;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2d8a2d;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* =============================================================
   PAGINA DE PRODUTO — DESTAQUE PARA PARCELAS
   ============================================================= */

.woocommerce-variation-price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 1.5em;
}

.mundoseg-parcelas {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

/* =============================================================
   PAGINA DE PRODUTO — GALERIA COMPACTA + MINIATURAS + ZOOM
   ============================================================= */

.single-product .site-content .ast-container {
    padding-top: 14px;
}

.single-product .woocommerce-breadcrumb {
    margin-bottom: 6px;
    font-size: 12px;
}

.single-product .product_title,
.single-product h1.product_title {
    font-size: 1.3em !important;
    line-height: 1.25;
    margin-bottom: 8px !important;
}

.single-product .woocommerce #content .ast-woocommerce-container div.product div.images,
.single-product .woocommerce .ast-woocommerce-container div.product div.images,
.single-product .woocommerce-page .ast-woocommerce-container div.product div.images,
.single-product .woocommerce div.product div.images {
    width: 34% !important;
    max-width: 320px !important;
    margin-bottom: 12px;
}

.single-product .woocommerce #content .ast-woocommerce-container div.product div.summary,
.single-product .woocommerce .ast-woocommerce-container div.product div.summary,
.single-product .woocommerce-page .ast-woocommerce-container div.product div.summary,
.single-product .woocommerce div.product div.summary {
    width: 62% !important;
}

.single-product .woocommerce-product-gallery,
.single-product .woocommerce div.product div.images {
    max-width: 300px !important;
}

.single-product .woocommerce-product-gallery .flex-viewport {
    height: auto !important;
    max-height: 240px !important;
    overflow: hidden !important;
}

.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image {
    max-height: 240px;
}

.single-product .woocommerce-product-gallery__image a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 0 !important;
    max-height: 230px !important;
    background: #f8f8f8;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
}

.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce div.product div.images img:not(.zoomImg) {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 210px !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto;
    display: block;
}

.single-product .woocommerce-product-gallery__image img {
    cursor: crosshair;
}

.single-product .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

/* Miniaturas para trocar a imagem */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0 !important;
    padding: 0;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 52px !important;
    float: none !important;
    margin: 0 !important;
    list-style: none;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    max-height: 48px !important;
    width: 100% !important;
    object-fit: contain !important;
    background: #f8f8f8;
    padding: 3px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    opacity: 0.75;
    cursor: pointer;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: var(--ms-laranja);
}

@media (max-width: 921px) {
    .single-product .woocommerce #content .ast-woocommerce-container div.product div.images,
    .single-product .woocommerce .ast-woocommerce-container div.product div.images,
    .single-product .woocommerce-page .ast-woocommerce-container div.product div.images,
    .single-product .woocommerce div.product div.images,
    .single-product .woocommerce #content .ast-woocommerce-container div.product div.summary,
    .single-product .woocommerce .ast-woocommerce-container div.product div.summary,
    .single-product .woocommerce-page .ast-woocommerce-container div.product div.summary,
    .single-product .woocommerce div.product div.summary {
        width: 100% !important;
        max-width: 100% !important;
    }

    .single-product .woocommerce-product-gallery,
    .single-product .woocommerce div.product div.images {
        max-width: 100% !important;
    }

    .single-product .woocommerce-product-gallery__image img,
    .single-product .woocommerce div.product div.images img:not(.zoomImg) {
        max-height: 240px !important;
    }
}

/* =============================================================
   CABECALHO — BUSCA (linha do logo) + CATEGORIAS (faixa abaixo)
   ============================================================= */

/* Cabecalho mais compacto — menos espaco vertical */
.site-primary-header-wrap,
.ast-primary-header-bar,
.main-header-bar {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.ast-primary-header-bar .site-branding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.custom-logo-link img,
.site-logo-img,
.ast-site-identity .site-logo-img {
    max-height: 46px !important;
    width: auto !important;
}

/* Busca entre logo e menu da direita */
.ast-primary-header-bar .ast-builder-grid-row {
    align-items: center !important;
}

.site-header-primary-section-right,
.site-header-primary-section-right-center {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    min-width: 0;
}

.mundoseg-search-header-wrap {
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 420px;
    margin-right: auto !important;
}

@media (max-width: 921px) {
    .mundoseg-header-actions {
        gap: 0;
        margin-left: 4px;
    }

    .mundoseg-header-action {
        min-width: 46px;
        max-width: 52px;
        padding: 4px 2px;
    }

    .mundoseg-action-label,
    .mundoseg-action-label--stack span {
        font-size: 9px;
    }

    .mundoseg-action-icon {
        width: 24px;
        height: 24px;
    }

    .mundoseg-action-svg {
        width: 20px;
        height: 20px;
    }
}

/* Estilos comuns da busca */
.mundoseg-product-search {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d0d5e0 !important;
    border-radius: 6px !important;
    overflow: hidden;
    background: #ffffff !important;
    box-shadow: none !important;
}

.mundoseg-product-search:focus-within {
    border-color: var(--ms-azul) !important;
}

.mundoseg-search-field {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    line-height: 34px !important;
    color: var(--ms-grafite) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mundoseg-search-field:focus {
    outline: none !important;
    box-shadow: none !important;
}

.mundoseg-search-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 68px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: none !important;
    border-radius: 0 !important;
    background: var(--ms-laranja) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: none !important;
    text-transform: none !important;
}

.mundoseg-search-submit:hover {
    background: var(--ms-laranja-hover) !important;
    color: #ffffff !important;
}

.mundoseg-search-icon {
    font-size: 14px;
    line-height: 1;
}

.mundoseg-search-label {
    font-size: 13px;
    font-weight: 700;
}

/* Faixa somente de categorias */
.mundoseg-header-toolbar {
    background: var(--ms-cinza-claro);
    border-bottom: 1px solid #e5e7eb;
}

.mundoseg-header-toolbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 16px;
}

.mundoseg-search-mobile-wrap {
    display: none;
}

.mundoseg-header-toolbar .mundoseg-cat-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.mundoseg-header-toolbar .mundoseg-cat-link {
    color: var(--ms-azul);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 3px 0;
    border-bottom: 2px solid transparent;
}

.mundoseg-header-toolbar .mundoseg-cat-link:hover,
.mundoseg-header-toolbar .mundoseg-cat-link.is-destaque {
    color: var(--ms-laranja);
    border-bottom-color: var(--ms-laranja);
}

@media (max-width: 921px) {
    .mundoseg-search-header-wrap {
        display: none !important;
    }
    .mundoseg-header-toolbar-inner {
        padding: 8px 16px;
    }
    .mundoseg-search-mobile-wrap {
        display: block;
        margin-bottom: 8px;
    }
    .mundoseg-header-toolbar .mundoseg-cat-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mundoseg-header-toolbar .mundoseg-cat-nav::-webkit-scrollbar {
        display: none;
    }
}

/* =============================================================
   FAIXA DE BENEFICIOS / SELOS DE CONFIANCA
   ============================================================= */

.mundoseg-benefits {
    background-color: #ffffff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.mundoseg-benefits-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap;
}

.ms-benefit {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
}

.ms-benefit-icon {
    color: var(--ms-laranja);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(240, 126, 26, 0.10);
    flex-shrink: 0;
}

.ms-benefit-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.ms-benefit-text strong {
    color: var(--ms-azul);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.ms-benefit-text small {
    color: var(--ms-cinza);
    font-size: 9.5px;
    white-space: nowrap;
}

/* Separador vertical entre os beneficios (desktop) */
.ms-benefit:not(:last-child) {
    border-right: 1px solid #eee;
    padding-right: 6px;
}

@media (max-width: 1100px) {
    .ms-benefit-text small {
        display: none;
    }

    .ms-benefit-text strong {
        font-size: 10px;
    }
}

@media (max-width: 992px) {
    .mundoseg-benefits-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px 12px;
    }

    .ms-benefit {
        flex: 1 1 40%;
        justify-content: flex-start;
        border-right: none !important;
        padding-right: 0;
    }

    .ms-benefit-text small {
        display: block;
    }

    .ms-benefit-text strong {
        font-size: 11px;
        white-space: normal;
    }
}

@media (max-width: 544px) {
    .mundoseg-benefits-inner {
        gap: 12px;
        padding: 14px 16px;
    }
    .ms-benefit {
        flex: 1 1 100%;
    }
}

/* =============================================================
   RODAPE INSTITUCIONAL
   ============================================================= */

.mundoseg-footer {
    background-color: var(--ms-azul);
    color: #d4daea;
    padding: 44px 20px 0;
    font-size: 14px;
}

.mundoseg-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr;
    gap: 36px;
}

.mundoseg-footer .ms-foot-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: 0.3px;
}

.mundoseg-footer .ms-foot-text {
    color: #b9c2db;
    line-height: 1.7;
    margin: 0 0 14px;
    font-size: 13px;
}

.mundoseg-footer .ms-foot-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mundoseg-footer .ms-foot-list li {
    margin-bottom: 9px;
    line-height: 1.5;
}

.mundoseg-footer .ms-foot-list a {
    color: #d4daea !important;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 13.5px;
}

.mundoseg-footer .ms-foot-list a:hover {
    color: var(--ms-laranja) !important;
}

.mundoseg-footer .ms-foot-contact li {
    color: #b9c2db;
    font-size: 13.5px;
}

/* Badges de pagamento */
.ms-pay-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ms-pay-badge {
    display: inline-flex;
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ms-pay-badge svg {
    display: block;
    width: 46px;
    height: 29px;
}

/* Badges de seguranca */
.ms-security-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ms-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d4daea;
    font-size: 12.5px;
    font-weight: 500;
}

.ms-security-badge svg {
    color: var(--ms-laranja);
    flex-shrink: 0;
}

/* Barra inferior do rodape */
.mundoseg-footer-bottom {
    max-width: 1200px;
    margin: 36px auto 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    color: #9aa6c4;
}

/* Responsivo — empilha as colunas no celular */
@media (max-width: 921px) {
    .mundoseg-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 544px) {
    .mundoseg-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .mundoseg-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================================
   BANNER DE COOKIES (LGPD)
   ============================================================= */

.ms-cookie-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: var(--ms-azul, #1C2B5E);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ms-cookie-bar.ms-cookie-show {
    opacity: 1;
    transform: translateY(0);
}

.ms-cookie-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    flex: 1 1 320px;
    color: #eef1f8;
}

.ms-cookie-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.ms-cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ms-cookie-btn {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 6px;
    padding: 10px 22px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: filter 0.15s ease, background 0.15s ease;
}

.ms-cookie-accept {
    background: var(--ms-laranja, #F07E1A);
    color: #ffffff;
}

.ms-cookie-accept:hover {
    filter: brightness(1.08);
}

.ms-cookie-link {
    background: transparent;
    color: #cdd4e8;
    padding: 10px 8px;
}

.ms-cookie-link:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    .ms-cookie-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }
    .ms-cookie-actions {
        justify-content: center;
    }
}
