/*
 * Refinamentos de UI/UX Tecnofrutt
 * Camada complementar: preserva identidade, cores, fontes e conteúdos existentes.
 */

/* Ritmo tipográfico e leitura */
.h1 {
    line-height: 1.08;
    text-wrap: balance;
}

.h2 {
    line-height: 1.14;
    text-wrap: balance;
}

.h3 {
    line-height: 1.22;
    text-wrap: balance;
}

p {
    line-height: 1.55;
}

/* Evita deformação de marcas/replaced elements em flex/grid */
img.tf-preserve-ratio,
.tf-brand-logo {
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    flex: 0 0 auto;
}

/* Cabeçalho da home sobre o banner */
#menuPrincipal.home-overlay {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(38, 64, 147, .68) 0%, rgba(38, 64, 147, .22) 62%, rgba(38, 64, 147, 0) 100%);
}

#menuPrincipal.home-overlay > div {
    position: relative;
    z-index: 2;
}

/* Hero da home: banner realmente full bleed */
#banner-home {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-primary);
}

#banner-home .banners__swiper,
#banner-home .swiper-wrapper,
#banner-home .swiper-slide {
    width: 100%;
}

#banner-home .swiper-slide {
    padding: 0 !important;
}

#banner-home .swiper-slide > a {
    display: block;
    width: 100%;
}

#banner-home .swiper-slide img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
}

#banner-home .swiper-pagination {
    bottom: 22px !important;
    z-index: 8;
}

/* Cabeçalhos de seção com duas colunas: não permite sobreposição */
.tf-heading-row {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: start;
}

.tf-heading-row > * {
    min-width: 0;
}

.tf-heading-row .tf-heading-copy {
    max-width: 620px;
    margin: 0;
    justify-self: end;
}

/* Páginas de categoria */
.categoria-hero-card {
    align-items: stretch;
}

.categoria-hero-image {
    padding: clamp(18px, 3vw, 42px);
}

.categoria-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: contain !important;
}

.categoria-hero-content {
    min-width: 0;
}

.categoria-hero-content > .categoria-marca-logo {
    align-self: flex-start !important;
    display: block;
    object-fit: contain !important;
    margin-top: 24px;
}

.categoria-marca-logo.logo-bcs {
    width: auto !important;
    height: 82px !important;
    max-width: 150px !important;
    max-height: 82px !important;
}

.categoria-marca-logo.logo-wolfield {
    width: 270px !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 70px !important;
}

/* Cards e imagens de catálogo: exibe o produto inteiro */
.categoria-card-image img,
.produto-card-image img {
    object-fit: contain !important;
}

.categoria-card-image img {
    padding: 18px;
}

.produto-card-content h3 {
    line-height: 1.18;
}

/* Página de produto */
.produto-conteudo-card .produto-descricao {
    max-width: 78ch;
}

.produto-descricao p {
    line-height: 1.58;
}

.produto-descricao p + p {
    margin-top: 8px;
}

.produto-imagem-principal img {
    object-fit: contain !important;
}

/* Cards de marcas/linhas de tratores */
.trator-marca-card {
    border-radius: 32px;
    border: 1px solid rgba(38, 64, 147, .16);
    padding: clamp(24px, 4vw, 44px);
    background: #fff;
    box-shadow: 0 18px 48px rgba(18, 52, 126, .07);
}

.trator-marca-card .trator-marca-logo {
    display: block;
    object-fit: contain !important;
    width: auto !important;
    height: auto !important;
    margin-inline: auto;
}

.trator-marca-card .trator-marca-logo.logo-bcs {
    max-width: 120px;
    max-height: 84px;
}

.trator-marca-card .trator-marca-logo.logo-wolfield {
    max-width: 290px;
    max-height: 70px;
}

.trator-marca-card .trator-marca-thumb {
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin-block: 18px;
}

/* Ajustes responsivos */
@media (max-width: 1024px) {
    #menuPrincipal.home-overlay > div {
        padding: 24px 28px;
    }

    .tf-heading-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tf-heading-row .tf-heading-copy {
        justify-self: start;
        max-width: 680px;
    }
}

@media (max-width: 767px) {
    #menuPrincipal.home-overlay {
        background: linear-gradient(180deg, rgba(38, 64, 147, .78) 0%, rgba(38, 64, 147, .25) 72%, rgba(38, 64, 147, 0) 100%);
    }

    #banner-home .swiper-pagination {
        bottom: 12px !important;
    }

    #banner-home .banners__swiper .swiper-pagination-bullet {
        width: 30px;
        height: 12px;
    }

    .categoria-hero-image img {
        min-height: 240px;
    }

    .categoria-marca-logo.logo-bcs {
        height: 68px !important;
        max-height: 68px !important;
    }

    .categoria-marca-logo.logo-wolfield {
        width: 230px !important;
    }

    .trator-marca-card .trator-marca-thumb {
        height: 230px;
    }
}

/* Segurança de layout para textos longos em cards e headings */
.h1, .h2, .h3, .tag,
.produto-card-content,
.categoria-card-content {
    overflow-wrap: anywhere;
}

/* Espaço consistente entre etiqueta, título e parágrafo em blocos editoriais */
.tag + .h1,
.tag + .h2,
.tag + .h3 {
    margin-top: 8px;
}

.h1 + p,
.h2 + p,
.h3 + p {
    margin-top: 14px;
}

/* Ritmo vertical específico da página de categoria */
.categoria-section-selector {
    padding-top: 0 !important;
    padding-bottom: 28px !important;
    overflow: visible !important;
}

.categoria-section-hero {
    padding-top: 24px !important;
    padding-bottom: 56px !important;
}

.categoria-section-modelos {
    padding-top: 56px !important;
    padding-bottom: 80px !important;
}

@media (max-width: 767px) {
    .categoria-section-selector {
        padding-top: 24px !important;
    }

    .categoria-section-hero,
    .categoria-section-modelos {
        padding-top: 36px !important;
        padding-bottom: 52px !important;
    }
}

/* =========================================================
   HEADER: sempre azul + fixo no topo
   ========================================================= */
#menuPrincipal.site-header-over-banner {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: var(--color-primary) !important;
    box-shadow: 0 8px 24px rgba(8, 25, 66, .12);
    transition: box-shadow .28s ease, transform .28s ease;
}

/* Mantém o mesmo azul também na home, mesmo quando sobre o banner. */
#menuPrincipal.site-header-over-banner.home-overlay {
    background: var(--color-primary) !important;
}

#menuPrincipal.site-header-over-banner > div {
    position: relative;
    z-index: 2;
    transition: padding .28s ease;
}

#menuPrincipal.site-header-over-banner.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-primary) !important;
    box-shadow: 0 10px 28px rgba(8, 25, 66, .18);
}

#menuPrincipal.site-header-over-banner.is-scrolled > div {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

@media (max-width: 1024px) {
    #menuPrincipal.site-header-over-banner > div,
    #menuPrincipal.site-header-over-banner.home-overlay > div {
        padding: 24px 28px;
    }

    #menuPrincipal.site-header-over-banner.is-scrolled > div {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
}

/* =========================================================
   ASSINATURA DE RODAPÉ — Tech by NODE
   Identidade NODE: preto + verde ácido + tipografia geométrica
   ========================================================= */
.node-tech-signature {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    color: #101010;
    text-decoration: none;
    font-family: Geist, "Helvetica Neue", Helvetica, Arial, sans-serif;
    transition: opacity .22s ease;
}

.node-tech-signature:hover {
    opacity: .68;
}

.node-tech-by {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
}

.node-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.node-wordmark-name {
    color: #000;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.065em;
    line-height: 1;
}

.node-wordmark-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #C7FF18;
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .node-tech-signature {
        justify-content: center;
    }
}


/* =========================================================
   PATCH 08 — altura compacta e estável do menu fixo
   Mantém o header azul/fixo sem ocupar área excessiva do hero.
   ========================================================= */
@media (min-width: 1025px) {
    #menuPrincipal.site-header-over-banner > div,
    #menuPrincipal.site-header-over-banner.home-overlay > div,
    #menuPrincipal.site-header-over-banner.is-scrolled > div {
        padding: 20px 40px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #menuPrincipal.site-header-over-banner > div,
    #menuPrincipal.site-header-over-banner.home-overlay > div,
    #menuPrincipal.site-header-over-banner.is-scrolled > div {
        padding: 18px 28px !important;
    }
}

@media (max-width: 767px) {
    #menuPrincipal.site-header-over-banner > div,
    #menuPrincipal.site-header-over-banner.home-overlay > div,
    #menuPrincipal.site-header-over-banner.is-scrolled > div {
        padding: 14px 20px !important;
    }
}

/* =========================================================
   PATCH 09 — HERO 100% DA TELA
   Menu + banner ocupam exatamente uma viewport.
   Todos os slides compartilham a mesma altura.
   ========================================================= */
:root {
    /* fallback usado antes do JS medir a altura real do menu */
    --tf-header-height: 92px;
}

/* Como o menu é fixed, a home reserva exatamente a altura real dele. */
#banner-home {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--tf-header-height);
    box-sizing: border-box;
    overflow: hidden;
    background: var(--color-primary);
}

/* A área visual ocupa somente o espaço restante abaixo do menu. */
#banner-home .banners__swiper {
    width: 100%;
    height: calc(100vh - var(--tf-header-height));
    height: calc(100svh - var(--tf-header-height));
    min-height: 0;
}

#banner-home .banners__swiper .swiper-wrapper,
#banner-home .banners__swiper .swiper-slide,
#banner-home .banners__swiper .swiper-slide > a {
    width: 100%;
    height: 100%;
    min-height: 0;
}

#banner-home .banners__swiper .swiper-slide {
    overflow: hidden;
}

/* Todos os banners renderizam no mesmo quadro, independentemente do slide. */
#banner-home .banners__swiper .swiper-slide img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center;
    margin: 0 !important;
}

/* Evita que estilos internos do Swiper recalculem a altura durante o fade. */
#banner-home .banners__swiper.swiper-autoheight,
#banner-home .banners__swiper.swiper-autoheight .swiper-wrapper {
    height: calc(100vh - var(--tf-header-height)) !important;
    height: calc(100svh - var(--tf-header-height)) !important;
}

@media (max-width: 767px) {
    :root {
        --tf-header-height: 68px;
    }

    #banner-home .banners__swiper .swiper-pagination-bullet {
        width: 30px;
        height: 12px;
    }
}

/* =========================================================
   PATCH 10 — MENU MOBILE FULL SCREEN
   Mantém integralmente a identidade Tecnofrutt.
   ========================================================= */
.tf-mobile-menu-trigger{
    display:none;
    width:44px;
    height:44px;
    padding:9px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:14px;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.08);
    transition:transform .18s ease,background .18s ease;
    -webkit-tap-highlight-color:transparent;
}
.tf-mobile-menu-trigger:active{transform:scale(.94);background:rgba(255,255,255,.16)}
.tf-mobile-menu-trigger img{display:block;width:25px;height:25px;object-fit:contain}

body.tf-mobile-menu-open{overflow:hidden;touch-action:none}

.tf-mobile-menu{
    position:fixed;
    inset:0;
    z-index:9999;
    width:100%;
    height:100vh;
    height:100dvh;
    overflow:hidden;
    visibility:hidden;
    pointer-events:none;
    opacity:0;
    background:var(--color-primary);
    transition:opacity .28s ease,visibility 0s linear .28s;
    font-family:var(--font-LTMedium);
}
.tf-mobile-menu.is-open{
    visibility:visible;
    pointer-events:auto;
    opacity:1;
    transition:opacity .28s ease,visibility 0s linear 0s;
}
.tf-mobile-menu-bg{
    position:absolute;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    background:
        radial-gradient(circle at 92% 12%,rgba(73,173,50,.26) 0,rgba(73,173,50,0) 30%),
        radial-gradient(circle at 8% 88%,rgba(255,255,255,.08) 0,rgba(255,255,255,0) 33%),
        var(--color-primary);
}
.tf-mobile-menu-bg::before,
.tf-mobile-menu-bg::after{
    content:"";
    position:absolute;
    border:1px solid rgba(255,255,255,.08);
    border-radius:50%;
    width:min(72vw,520px);
    aspect-ratio:1;
    right:-30vw;
    top:-12vw;
}
.tf-mobile-menu-bg::after{
    width:min(48vw,360px);
    right:-16vw;
    top:1vw;
    border-color:rgba(73,173,50,.22);
}
.tf-mobile-menu-shell{
    position:relative;
    z-index:2;
    height:100%;
    max-width:760px;
    margin:0 auto;
    padding:clamp(22px,5vw,42px) clamp(22px,6vw,48px) max(22px,env(safe-area-inset-bottom));
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    gap:clamp(18px,4vh,34px);
    overflow-y:auto;
    overscroll-behavior:contain;
}
.tf-mobile-menu-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:48px;
    transform:translateY(-10px);
    opacity:0;
    transition:opacity .35s ease .04s,transform .35s cubic-bezier(.2,.8,.2,1) .04s;
}
.tf-mobile-menu.is-open .tf-mobile-menu-head{transform:none;opacity:1}
.tf-mobile-brand{display:flex;align-items:center;max-width:190px}
.tf-mobile-brand img{display:block;width:100%;height:auto;max-height:42px;object-fit:contain;object-position:left center}
.tf-mobile-close{
    width:48px;
    height:48px;
    border:1px solid rgba(255,255,255,.24);
    border-radius:50%;
    display:grid;
    place-items:center;
    position:relative;
    background:rgba(255,255,255,.08);
    -webkit-tap-highlight-color:transparent;
    transition:transform .2s ease,background .2s ease,border-color .2s ease;
}
.tf-mobile-close span{position:absolute;width:19px;height:2px;border-radius:2px;background:#fff}
.tf-mobile-close span:first-child{transform:rotate(45deg)}
.tf-mobile-close span:last-child{transform:rotate(-45deg)}
.tf-mobile-close:active{transform:rotate(8deg) scale(.92);background:var(--color-secondary);border-color:var(--color-secondary)}
.tf-mobile-close:active span{background:var(--color-primary)}

.tf-mobile-menu-content{align-self:center;width:100%;padding-block:6px}
.tf-mobile-menu-label{
    margin-bottom:12px;
    color:rgba(255,255,255,.52);
    font-family:var(--font-BeVietnamMedium);
    font-weight: 500;
    font-size:.7rem;
    line-height:1;
    letter-spacing:.18em;
    text-transform:uppercase;
    opacity:0;
    transform:translateY(12px);
    transition:opacity .32s ease .08s,transform .32s ease .08s;
}
.tf-mobile-menu.is-open .tf-mobile-menu-label{opacity:1;transform:none}
.tf-mobile-nav{display:flex;flex-direction:column;width:100%}
.tf-mobile-nav-link{
    position:relative;
    width:100%;
    min-height:58px;
    padding:13px 2px;
    border:0;
    border-bottom:1px solid rgba(255,255,255,.14);
    background:transparent;
    color:#fff;
    display:grid;
    grid-template-columns:34px minmax(0,1fr) 34px;
    gap:9px;
    align-items:center;
    text-align:left;
    text-decoration:none;
    font:inherit;
    text-transform:uppercase;
    font-style:italic;
    -webkit-tap-highlight-color:transparent;
    opacity:0;
    transform:translateY(18px);
    transition:
        opacity .38s ease calc(.09s + var(--item-index,1) * .045s),
        transform .38s cubic-bezier(.2,.8,.2,1) calc(.09s + var(--item-index,1) * .045s),
        padding-left .18s ease,
        background .18s ease,
        color .18s ease;
}
.tf-mobile-menu.is-open .tf-mobile-nav-link{opacity:1;transform:none}
.tf-mobile-nav-index{
    align-self:center;
    color:rgba(255,255,255,.42);
    font-family:var(--font-BeVietnamMedium);
    font-weight: 500;
    font-size:.68rem;
    font-style:normal;
    letter-spacing:.08em;
}
.tf-mobile-nav-text{
    font-family:var(--font-LTBlack);
    font-size:clamp(1.65rem,7vw,2.55rem);
    line-height:.96;
    letter-spacing:-.025em;
}
.tf-mobile-nav-arrow{
    justify-self:end;
    font-family:Arial,sans-serif;
    font-size:1.4rem;
    font-style:normal;
    transition:transform .18s ease;
}
.tf-mobile-nav-link.is-active,
.tf-mobile-nav-group.is-active > .tf-mobile-nav-link{color:var(--color-secondary)}
.tf-mobile-nav-link.is-active .tf-mobile-nav-index,
.tf-mobile-nav-group.is-active > .tf-mobile-nav-link .tf-mobile-nav-index{color:var(--color-secondary)}
.tf-mobile-nav-link:active{
    padding-left:12px;
    color:var(--color-secondary);
    background:rgba(255,255,255,.055);
}
.tf-mobile-nav-link:active .tf-mobile-nav-arrow{transform:translate(3px,-3px)}

.tf-mobile-nav-parent{cursor:pointer}
.tf-mobile-nav-chevron{
    justify-self:end;
    width:13px;
    height:13px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(45deg) translate(-3px,3px);
    transition:transform .25s ease;
}
.tf-mobile-nav-group.submenu-open .tf-mobile-nav-chevron{transform:rotate(225deg) translate(-2px,2px)}
.tf-mobile-submenu{
    display:grid;
    grid-template-rows:0fr;
    opacity:0;
    transition:grid-template-rows .3s cubic-bezier(.2,.8,.2,1),opacity .22s ease;
    background:rgba(0,0,0,.08);
}
.tf-mobile-submenu::before{content:"";min-height:0}
.tf-mobile-submenu > a{display:none}
.tf-mobile-nav-group.submenu-open .tf-mobile-submenu{
    grid-template-rows:auto;
    opacity:1;
    padding:5px 0 9px 43px;
}
.tf-mobile-nav-group.submenu-open .tf-mobile-submenu > a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 6px;
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,.08);
    font-family:var(--font-LTMedium);
    font-size:1rem;
    text-transform:uppercase;
    text-decoration:none;
    -webkit-tap-highlight-color:transparent;
}
.tf-mobile-nav-group.submenu-open .tf-mobile-submenu > a:active{color:var(--color-secondary);transform:translateX(6px)}

.tf-mobile-menu-foot{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:18px;
    align-items:center;
    opacity:0;
    transform:translateY(14px);
    transition:opacity .35s ease .32s,transform .35s ease .32s;
}
.tf-mobile-menu.is-open .tf-mobile-menu-foot{opacity:1;transform:none}
.tf-mobile-cta{
    min-height:54px;
    border-radius:18px;
    padding:13px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    background:var(--color-secondary);
    color:var(--color-primary);
    font-family:var(--font-LTMedium);
    text-transform:uppercase;
    text-decoration:none;
    -webkit-tap-highlight-color:transparent;
    transition:transform .18s ease,filter .18s ease;
}
.tf-mobile-cta strong{font-family:var(--font-LTBlack)}
.tf-mobile-cta:active{transform:scale(.975);filter:brightness(1.08)}
.tf-mobile-socials{display:flex;gap:9px;align-items:center}
.tf-mobile-socials a{
    width:39px;height:39px;border-radius:12px;display:grid;place-items:center;
    background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);
    -webkit-tap-highlight-color:transparent;transition:transform .18s ease,background .18s ease;
}
.tf-mobile-socials a:active{transform:scale(.9);background:rgba(255,255,255,.16)}
.tf-mobile-socials img{display:block;width:22px;height:22px;object-fit:contain}

@media(min-width:1280px){.tf-mobile-menu{display:none!important}}
@media(max-width:640px){
    .tf-mobile-menu-shell{padding-left:20px;padding-right:20px;gap:16px}
    .tf-mobile-menu-content{align-self:start;padding-top:4vh}
    .tf-mobile-nav-link{min-height:55px;padding-block:11px}
    .tf-mobile-nav-text{font-size:clamp(1.55rem,8vw,2.1rem)}
    .tf-mobile-menu-foot{grid-template-columns:1fr}
    .tf-mobile-socials{justify-content:center;order:2}
    .tf-mobile-cta{order:1}
}
@media(max-height:700px) and (max-width:1279px){
    .tf-mobile-menu-shell{gap:10px;padding-top:16px;padding-bottom:16px}
    .tf-mobile-menu-content{align-self:start}
    .tf-mobile-nav-link{min-height:47px;padding-block:8px}
    .tf-mobile-nav-text{font-size:clamp(1.35rem,6vh,1.8rem)}
    .tf-mobile-menu-label{margin-bottom:5px}
    .tf-mobile-menu-foot{gap:10px}
    .tf-mobile-cta{min-height:46px;padding-block:9px}
}
@media(prefers-reduced-motion:reduce){
    .tf-mobile-menu,.tf-mobile-menu *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}


/* PATCH 11 — garante o botão de abertura do menu mobile sem depender
   das utilities responsivas presentes no CSS compilado do projeto. */
@media (max-width:1279px){
    .tf-mobile-menu-trigger{
        display:flex !important;
        flex:0 0 44px;
        position:relative;
        z-index:10001;
    }
}
@media (min-width:1280px){
    .tf-mobile-menu-trigger{display:none !important;}
}

/* =========================================================
   TECNOFRUTT — ACESSO RÁPIDO ÀS CATEGORIAS
   ========================================================= */
.tf-quick-categories {
    margin-top: 42px;
    padding: 34px;
    border-radius: 34px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(38,64,147,.10);
    box-shadow: 0 18px 48px rgba(18,52,126,.07);
}

.tf-quick-categories-head {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(320px, 430px);
    gap: 32px;
    align-items: end;
    margin-bottom: 26px;
}

.tf-quick-categories-head h3,
.tf-quick-categories-head p { margin-bottom: 0; }
.tf-quick-categories-head p { margin-top: 8px; color: #667085; }

.tf-product-search { position: relative; z-index: 20; }
.tf-product-search-field {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(38,64,147,.18);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.tf-product-search-field:focus-within {
    border-color: #49ad32;
    box-shadow: 0 0 0 4px rgba(73,173,50,.10);
}
.tf-product-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #264093;
    font: inherit;
}
.tf-product-search-field input::placeholder { color: #8b93a5; }
.tf-product-search-field svg { width: 22px; height: 22px; color: #264093; flex: 0 0 22px; }
.tf-product-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    max-height: 370px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(38,64,147,.12);
    box-shadow: 0 20px 55px rgba(18,52,126,.16);
}
.tf-product-search-results a {
    display: grid;
    grid-template-columns: 82px minmax(0,1fr);
    column-gap: 12px;
    align-items: center;
    padding: 12px 13px;
    border-radius: 12px;
    color: #1f2937;
    text-decoration: none;
}
.tf-product-search-results a:hover { background: #f3f6fb; }
.tf-product-search-results a strong { min-width: 0; color: #264093; }
.tf-product-search-results a small { grid-column: 2; color: #7b8190; margin-top: -3px; }
.tf-search-type {
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #49ad32;
}
.tf-product-search-empty { padding: 16px; text-align: center; color: #6b7280; }

.tf-quick-categories-row {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 44px;
    gap: 14px;
    align-items: center;
}
.tf-quick-nav {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(38,64,147,.16);
    background: #fff;
    color: #264093;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.tf-quick-nav:hover { background: #264093; color: #fff; border-color: #264093; transform: translateY(-1px); }
.tf-quick-nav svg { width: 21px; height: 21px; }

.tf-quick-categories-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}
.tf-quick-categories-track::-webkit-scrollbar { display: none; }

.tf-quick-category-card {
    flex: 0 0 172px;
    min-height: 126px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 13px 13px;
    border-radius: 22px;
    border: 1px solid rgba(38,64,147,.11);
    background: #fff;
    text-decoration: none;
    color: #264093;
    scroll-snap-align: start;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.tf-quick-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(73,173,50,.45);
    box-shadow: 0 13px 28px rgba(18,52,126,.10);
    background: #49ad32;
    color: #fff;
}
.tf-quick-category-image {
    width: 72px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
    background: #f7f8fb;
    padding: 5px;
}
.tf-quick-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.tf-quick-category-name {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    line-height: 18px;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.tf-quick-categories-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.tf-quick-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 2px;
    border: 0;
    background: transparent;
    color: #264093;
    font-weight: 700;
    cursor: pointer;
}
.tf-quick-toggle svg { width: 18px; height: 18px; transition: transform .2s ease; }
.tf-quick-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.tf-all-categories {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 14px;
    padding-top: 22px;
    margin-top: 10px;
    border-top: 1px solid rgba(38,64,147,.10);
}
.tf-all-categories[hidden] { display: none !important; }
.tf-all-category-card {
    min-height: 76px;
    display: grid;
    grid-template-columns: 54px minmax(0,1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 17px;
    border: 1px solid rgba(38,64,147,.10);
    background: #fff;
    color: #264093;
    font-size: 13px;
    font-weight: 700;
    line-height: 17px;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.tf-all-category-card:hover { border-color: #49ad32; transform: translateY(-2px); background: #f9fcf8; }
.tf-all-category-image {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    overflow: hidden;
    background: #f7f8fb;
    padding: 4px;
}
.tf-all-category-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

@media (max-width: 1100px) {
    .tf-quick-categories-head { grid-template-columns: 1fr; gap: 20px; }
    .tf-all-categories { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 767px) {
    .tf-quick-categories { margin-top: 30px; padding: 25px 18px; border-radius: 27px; }
    .tf-quick-categories-head { margin-bottom: 20px; }
    .tf-quick-categories-head h3 { font-size: clamp(28px, 8vw, 38px); line-height: 1.03; }
    .tf-product-search-field { min-height: 52px; border-radius: 16px; }
    .tf-quick-categories-row { grid-template-columns: minmax(0,1fr); }
    .tf-quick-nav { display: none; }
    .tf-quick-categories-track { margin-right: -18px; padding-right: 18px; }
    .tf-quick-category-card { flex-basis: 148px; min-height: 118px; border-radius: 20px; }
    .tf-quick-category-image { width: 66px; height: 55px; }
    .tf-quick-categories-actions { justify-content: flex-start; }
    .tf-all-categories { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tf-all-category-card { grid-template-columns: 46px minmax(0,1fr); padding: 9px; }
    .tf-all-category-image { width: 46px; height: 46px; }
}

@media (max-width: 430px) {
    .tf-quick-category-card { flex-basis: 142px; }
    .tf-all-categories { grid-template-columns: 1fr; }
}

/* =========================================================
   TECNOFRUTT — ACESSO RÁPIDO MINIMAL / PATCH 15
   Uma linha de botões + navegação lateral + expansão total.
   ========================================================= */
.tf-quick-categories.tf-quick-categories-minimal {
    margin-top: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tf-quick-minimal-head {
    margin-bottom: 18px;
}
.tf-quick-minimal-head h3 {
    margin-bottom: 0;
}

.tf-quick-minimal-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: center;
}

.tf-quick-categories-minimal .tf-quick-nav {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(38,64,147,.20);
    background: transparent;
    color: #264093;
}
.tf-quick-categories-minimal .tf-quick-nav:hover {
    background: #264093;
    color: #fff;
    border-color: #264093;
    transform: scale(1.04);
}

.tf-quick-buttons-track {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    padding: 4px 3px 6px;
}
.tf-quick-buttons-track::-webkit-scrollbar {
    display: none;
}

.tf-quick-text-button {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 19px;
    border-radius: 999px;
    background: #264093;
    color: #fff !important;
    text-decoration: none !important;
    text-align: center;
    white-space: nowrap;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.15;
    scroll-snap-align: start;
    box-shadow: 0 4px 12px rgba(38,64,147,.10);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tf-quick-text-button:hover,
.tf-quick-text-button:focus-visible {
    background: #49ad32;
    color: #fff !important;
    transform: scale(1.04);
    box-shadow: 0 9px 20px rgba(73,173,50,.20);
    outline: none;
}

.tf-quick-expand-wrap {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 9px;
}
.tf-quick-expand-button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #264093;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease, background-color .2s ease;
}
.tf-quick-expand-button:hover,
.tf-quick-expand-button:focus-visible {
    color: #49ad32;
    background: rgba(73,173,50,.08);
    outline: none;
}
.tf-quick-expand-button svg {
    width: 24px;
    height: 24px;
    transition: transform .25s ease;
}
.tf-quick-expand-button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.tf-quick-expanded {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 54px 4px;
    animation: tfQuickExpand .22s ease both;
}
.tf-quick-expanded[hidden] {
    display: none !important;
}

@keyframes tfQuickExpand {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .tf-quick-categories.tf-quick-categories-minimal {
        margin-top: 28px;
        padding: 0;
        border-radius: 0;
    }
    .tf-quick-minimal-head {
        margin-bottom: 14px;
    }
    .tf-quick-minimal-head h3 {
        font-size: clamp(27px, 7.5vw, 35px);
        line-height: 1.05;
    }
    .tf-quick-minimal-row {
        grid-template-columns: 36px minmax(0,1fr) 36px;
        gap: 7px;
    }
    .tf-quick-categories-minimal .tf-quick-nav {
        display: inline-flex;
        width: 36px;
        height: 36px;
    }
    .tf-quick-categories-minimal .tf-quick-nav svg {
        width: 18px;
        height: 18px;
    }
    .tf-quick-buttons-track {
        gap: 8px;
        margin-right: 0;
        padding-right: 2px;
    }
    .tf-quick-text-button {
        min-height: 42px;
        padding: 9px 16px;
        font-size: 13px;
    }
    .tf-quick-expanded {
        justify-content: flex-start;
        padding: 9px 0 2px;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-quick-text-button,
    .tf-quick-expand-button,
    .tf-quick-expand-button svg,
    .tf-quick-categories-minimal .tf-quick-nav {
        transition: none !important;
    }
    .tf-quick-expanded {
        animation: none !important;
    }
}
