/* Fonte Original ERP — identidade visual unificada
   Camada exclusivamente visual: não altera JavaScript, IDs, formulários ou integrações. */
:root{
  --fo-night:#041A45;
  --fo-ocean:#0A3F91;
  --fo-primary:#005FD4;
  --fo-royal:#1478FF;
  --fo-crystal:#29B9FF;
  --fo-water:#66D7FF;
  --fo-white:#FFFFFF;
  --fo-ice:#F4F9FF;
  --fo-whatsapp:#25D366;
  --fo-premium:#1FCB5B;
  --fo-gold:#FFD84A;
  --fo-yellow:#FFE34F;
  --fo-logo-width:260px;
  --fo-logo-height:82px;
  --fo-shadow:0 12px 32px rgba(4,26,69,.18);
}
html{accent-color:var(--fo-primary)}
body{background-color:var(--fo-ice)}

/* Logotipo padronizado em todas as páginas */
img[src*="/assets/brand/logo-oficial"],
img[src*="assets/brand/logo-oficial"],
img[src*="/assets/brand/logo-horizontal"],
img[src*="assets/brand/logo-horizontal"],
img[src*="/assets/brand/logo-white"],
img[src*="assets/brand/logo-white"]{
  width:var(--fo-logo-width) !important;
  height:var(--fo-logo-height) !important;
  max-width:100% !important;
  max-height:var(--fo-logo-height) !important;
  object-fit:contain !important;
  object-position:left center !important;
  background:transparent !important;
  flex:0 0 auto;
}
.brand-logo,.brand,.logo,.footbrand{min-width:0}
.brand-logo img{display:block}

/* Superfícies e barras principais */
.market-top,.topbar,.utility-bar,.app-topbar{
  background:var(--fo-white) !important;
  border-color:rgba(10,63,145,.16) !important;
  color:var(--fo-ocean) !important;
}
.market-main,.main-header,.app-header,.header-main{
  background:
    radial-gradient(circle at 50% 115%,rgba(41,185,255,.36),transparent 42%),
    linear-gradient(120deg,var(--fo-night),var(--fo-ocean) 56%,var(--fo-primary)) !important;
  color:var(--fo-white) !important;
}
.market-nav,.main-nav,.navbar,.app-nav{
  background:linear-gradient(90deg,var(--fo-night),#062B68 52%,var(--fo-ocean)) !important;
  color:var(--fo-white) !important;
  border-color:rgba(102,215,255,.22) !important;
}
.nav-link:hover,.nav-link.active,.nav a:hover,.nav a.active,
.menu a:hover,.menu a.active,[aria-current="page"]{
  border-color:var(--fo-crystal) !important;
}

/* ERP: menus laterais e cabeçalhos */
.sidebar,.side-nav,.app-sidebar,.admin-sidebar,aside[class*="sidebar"],nav[class*="sidebar"]{
  background:linear-gradient(180deg,var(--fo-night),#06265D 58%,var(--fo-ocean)) !important;
  color:var(--fo-white) !important;
}
.sidebar a,.side-nav a,.app-sidebar a,.admin-sidebar a{color:var(--fo-ice)}
.sidebar a:hover,.sidebar a.active,.side-nav a:hover,.side-nav a.active,
.app-sidebar a:hover,.app-sidebar a.active,.admin-sidebar a:hover,.admin-sidebar a.active{
  background:linear-gradient(90deg,rgba(20,120,255,.32),rgba(41,185,255,.14)) !important;
  border-color:var(--fo-crystal) !important;
  color:var(--fo-white) !important;
}
header:not(.market-main):not(.top):not(.bar),
.header,.top-header,.admin-header{
  border-color:rgba(10,63,145,.16);
}

/* Botões e estados */
button.primary,.btn-primary,.primary-button,a.btn-primary,
button[class*="primary"],a[class*="btn-primary"]{
  background:linear-gradient(180deg,var(--fo-royal),var(--fo-primary)) !important;
  border-color:var(--fo-royal) !important;
  color:var(--fo-white) !important;
  box-shadow:0 8px 22px rgba(0,95,212,.25);
}
button.primary:hover,.btn-primary:hover,.primary-button:hover,a.btn-primary:hover{
  background:linear-gradient(180deg,var(--fo-crystal),var(--fo-royal)) !important;
}
.whatsapp,[class*="whatsapp"]{
  background:linear-gradient(180deg,var(--fo-whatsapp),var(--fo-premium)) !important;
  color:var(--fo-white) !important;
}
.badge-warning,.badge-gold,.premium,.gold,[class*="reward"],[class*="premio"]{
  --accent:var(--fo-gold);
}

/* Campos, cartões e tabelas */
input:focus,select:focus,textarea:focus{
  border-color:var(--fo-crystal) !important;
  box-shadow:0 0 0 3px rgba(41,185,255,.18) !important;
  outline:none;
}
.card,.panel,.widget,.box,[class*="card"],[class*="panel"]{
  border-color:rgba(10,63,145,.14);
}
table thead th{
  background:rgba(10,63,145,.08);
  color:var(--fo-night);
}
a{--link-color:var(--fo-primary)}

/* Padrão oficial do cabeçalho de marketplace */
.fo-standard-header .utility{color:var(--fo-ocean)}
.fo-standard-header .utility-item svg{stroke:var(--fo-primary)}
.fo-standard-header .market-main{min-height:130px}
.fo-standard-header .brand-logo{display:flex;align-items:center}
.fo-standard-header .search-box{border:1px solid rgba(41,185,255,.35)}
.fo-standard-header .cart-count{background:var(--fo-yellow)!important;color:var(--fo-night)!important}
.fo-standard-header .nav-link.active{border-bottom-color:var(--fo-crystal)!important}

@media(max-width:1050px){
  :root{--fo-logo-width:230px;--fo-logo-height:72px}
}
@media(max-width:720px){
  :root{--fo-logo-width:220px;--fo-logo-height:68px}
  img[src*="logo-oficial"],img[src*="logo-horizontal"],img[src*="logo-white"]{object-position:center!important;margin-inline:auto}
}
/* Estrutura compartilhada do cabeçalho principal */
.fo-standard-header .shell{width:min(1440px,calc(100% - 36px));margin:auto;padding-inline:0}
.fo-standard-header .market-top{border-bottom:1px solid rgba(10,63,145,.14)}
.fo-standard-header .utility{height:42px;display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:13px}
.fo-standard-header .utility-left,.fo-standard-header .utility-right{display:flex;align-items:center;gap:24px}
.fo-standard-header .utility-item{display:flex;align-items:center;gap:8px;white-space:nowrap}
.fo-standard-header .utility-item svg{width:19px;height:19px;fill:none;stroke-width:1.8}
.fo-standard-header .promo-header-link{display:flex;align-items:center;gap:8px;font-weight:900;color:var(--fo-ocean)}
.fo-standard-header .promo-seal-mini{width:42px;height:42px;object-fit:contain}
.fo-standard-header .main-row{min-height:130px;display:grid;grid-template-columns:330px minmax(300px,1fr) 210px 175px;gap:22px;align-items:center;position:relative;z-index:1}
.fo-standard-header .search-box{height:58px;background:#fff;border-radius:14px;display:flex;align-items:center;box-shadow:0 10px 30px rgba(4,26,69,.18);overflow:hidden}
.fo-standard-header .search-box input{border:0;outline:0;width:100%;padding:0 22px;font-size:17px;color:var(--fo-night)}
.fo-standard-header .search-box button{width:62px;height:100%;border:0;background:#fff;cursor:pointer;color:var(--fo-primary);font-size:25px}
.fo-standard-header .location-box,.fo-standard-header .cart-box{height:64px;border:1px solid rgba(255,255,255,.55);border-radius:16px;display:flex;align-items:center;gap:12px;padding:10px 15px;background:rgba(4,26,69,.24);color:#fff}
.fo-standard-header .location-box svg,.fo-standard-header .cart-box svg{width:29px;height:29px;fill:none;stroke:#fff;stroke-width:1.8}
.fo-standard-header .location-box small,.fo-standard-header .cart-box small{display:block;opacity:.82}
.fo-standard-header .cart-box{position:relative}
.fo-standard-header .cart-count{position:absolute;right:-8px;top:-12px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:900;box-shadow:0 5px 15px rgba(0,0,0,.2)}
.fo-standard-header .nav-row{height:58px;display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none}
.fo-standard-header .nav-row::-webkit-scrollbar{display:none}
.fo-standard-header .nav-link{height:58px;padding:0 18px;display:flex;align-items:center;gap:10px;font-weight:800;white-space:nowrap;border-bottom:3px solid transparent;color:#fff}
.fo-standard-header .nav-link:hover,.fo-standard-header .nav-link.active{background:rgba(255,255,255,.08)}
.fo-standard-header .nav-link svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8}
@media(max-width:1050px){
 .fo-standard-header .utility-left .utility-item:nth-child(n+3){display:none}
 .fo-standard-header .main-row{grid-template-columns:230px 1fr 150px;min-height:110px}
 .fo-standard-header .cart-box{display:none}
 .fo-standard-header .nav-link{padding:0 13px;font-size:13px}
}
@media(max-width:720px){
 .fo-standard-header .shell{width:min(100% - 22px,1440px)}
 .fo-standard-header .utility{height:36px}
 .fo-standard-header .utility-left{display:none}
 .fo-standard-header .utility-right{width:100%;justify-content:space-between}
 .fo-standard-header .main-row{grid-template-columns:1fr;gap:12px;padding:14px 0 16px;min-height:auto}
 .fo-standard-header .location-box{display:none}
 .fo-standard-header .search-box{height:52px}
 .fo-standard-header .market-nav{position:sticky;top:0;z-index:100}
 .fo-standard-header .nav-row,.fo-standard-header .nav-link{height:52px}
}

/* === FONTE ORIGINAL GLOBAL OVERRIDE V4 === */
:root{
  --fo-night:#041A45;--fo-ocean:#0A3F91;--fo-primary:#005FD4;
  --fo-royal:#1478FF;--fo-crystal:#29B9FF;--fo-water:#66D7FF;
  --fo-white:#FFFFFF;--fo-ice:#F4F9FF;--fo-gray-light:#DDE8F5;
  --fo-gray:#9FB6D6;--fo-text-dark:#0E2E66;--fo-whatsapp:#25D366;
  --fo-premium:#1FCB5B;--fo-gold:#FFD84A;--fo-yellow:#FFE34F;
  --navy:var(--fo-night)!important;--deep:var(--fo-night)!important;
  --blue-dark:var(--fo-ocean)!important;--blue:var(--fo-primary)!important;
  --primary:var(--fo-primary)!important;--cyan:var(--fo-crystal)!important;
  --aqua:var(--fo-water)!important;--bg:var(--fo-ice)!important;
  --paper:var(--fo-white)!important;--white:var(--fo-white)!important;
  --ink:var(--fo-text-dark)!important;--text:var(--fo-text-dark)!important;
  --muted:#617A9E!important;--line:var(--fo-gray-light)!important;
  --green:var(--fo-premium)!important;--ok:var(--fo-premium)!important;
  --fo-brand-width:240px;--fo-brand-height:76px;
  --fo-brand-sidebar-width:218px;--fo-brand-sidebar-height:68px;
}
html{accent-color:var(--fo-primary)!important}
body{background:var(--fo-ice)!important;color:var(--fo-text-dark)}

img[src*="logo-oficial"],img[src*="logo-horizontal"],img[src*="logo-white"],
img[src*="logo-marketplace"],img[src*="logo-fonte-original-oficial"],
img[src*="drop-logo"],img[alt*="Fonte Original" i]{
  width:var(--fo-brand-width)!important;height:var(--fo-brand-height)!important;
  max-width:var(--fo-brand-width)!important;max-height:var(--fo-brand-height)!important;
  min-width:0!important;object-fit:contain!important;object-position:left center!important;
  display:block!important;background:transparent!important;filter:none!important;margin:0!important;
}
.brand,.brand-logo,.logo,.footbrand,.side-brand,
header a:has(> img[alt*="Fonte Original" i]){
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  min-width:var(--fo-brand-width)!important;min-height:var(--fo-brand-height)!important;
}
.sidebar .side-brand,.app-sidebar .side-brand,aside .side-brand{
  width:100%!important;min-width:0!important;height:92px!important;min-height:92px!important;
  padding:8px 8px 16px!important;justify-content:flex-start!important;
  border-bottom:1px solid rgba(102,215,255,.20)!important;
}
.sidebar .side-brand img,.app-sidebar .side-brand img,aside .side-brand img{
  width:var(--fo-brand-sidebar-width)!important;height:var(--fo-brand-sidebar-height)!important;
  max-width:var(--fo-brand-sidebar-width)!important;max-height:var(--fo-brand-sidebar-height)!important;
}
.sidebar .side-brand>div,.app-sidebar .side-brand>div,aside .side-brand>div{display:none!important}
.login-official-logo,#logoLogin{width:min(100%,320px)!important;max-width:320px!important;height:102px!important;max-height:102px!important;object-position:center!important;margin-inline:auto!important}
#logoTopo,#logoHero,.top-official-mark,.hero-official-mark{width:220px!important;height:70px!important;max-width:220px!important;max-height:70px!important;position:static!important;transform:none!important}
footer img[src*="logo"],.footer img[src*="logo"]{width:240px!important;height:76px!important;max-width:240px!important;max-height:76px!important}

.market-main,.main-header,.header-main,.app-header,.login-art,.auth-gate,.welcome-card,
header[class*="main"],section[class*="hero"]{
  background:radial-gradient(circle at 70% 115%,rgba(41,185,255,.30),transparent 42%),
  linear-gradient(120deg,var(--fo-night) 0%,var(--fo-ocean) 58%,var(--fo-primary) 100%)!important;
  color:var(--fo-white)!important;
}
.market-nav,.main-nav,.navbar,.app-nav,.sidebar,.side-nav,.app-sidebar,.admin-sidebar,
aside[class*="sidebar"],nav[class*="sidebar"]{
  background:linear-gradient(180deg,var(--fo-night) 0%,#06285F 55%,var(--fo-ocean) 100%)!important;
  color:var(--fo-white)!important;border-color:rgba(102,215,255,.20)!important;
}
.market-top,.utility-bar,.app-topbar,.topbar,.top-header{
  background:var(--fo-white)!important;border-color:rgba(10,63,145,.15)!important;
}
body.original-page .top{
  background:radial-gradient(circle at 70% 115%,rgba(41,185,255,.28),transparent 42%),
  linear-gradient(120deg,var(--fo-night),var(--fo-ocean) 58%,var(--fo-primary))!important;
  border-bottom:1px solid rgba(102,215,255,.22)!important;color:#fff!important;
}
body.original-page .nav{background:transparent!important}
body.original-page .nav a{color:#fff!important}
body.original-page .nav a:hover,body.original-page .nav a.active{
  background:rgba(255,255,255,.10)!important;color:#fff!important;border-color:var(--fo-crystal)!important;
}
.nav-item,.nav-link,.sidebar a,.side-nav a,.app-sidebar a,.admin-sidebar a{color:var(--fo-ice)!important}
.nav-item:hover,.nav-item.active,.nav-link:hover,.nav-link.active,
.sidebar a:hover,.sidebar a.active,.side-nav a:hover,.side-nav a.active,
.app-sidebar a:hover,.app-sidebar a.active,.admin-sidebar a:hover,.admin-sidebar a.active,[aria-current="page"]{
  background:linear-gradient(90deg,rgba(20,120,255,.34),rgba(41,185,255,.14))!important;
  color:var(--fo-white)!important;border-color:var(--fo-crystal)!important;
}
.nav-item.active::before{background:var(--fo-crystal)!important}
.primary-button,.primary-action,.btn-primary,button.primary,a.btn-primary,
button[class*="primary"],a[class*="btn-primary"]{
  background:linear-gradient(180deg,var(--fo-royal),var(--fo-primary))!important;
  border-color:var(--fo-royal)!important;color:#fff!important;
  box-shadow:0 8px 22px rgba(0,95,212,.24)!important;
}
.primary-button:hover,.primary-action:hover,.btn-primary:hover,button.primary:hover,a.btn-primary:hover{
  background:linear-gradient(180deg,var(--fo-crystal),var(--fo-royal))!important;
}
.action,.button:not(.secondary):not(.danger){background-color:var(--fo-primary)!important;color:#fff!important}
.whatsapp,[class*="whatsapp" i]{background:linear-gradient(180deg,var(--fo-whatsapp),var(--fo-premium))!important;color:#fff!important}
.cart-count,.badge-gold,.gold,[class*="reward" i],[class*="premio" i]{background-color:var(--fo-gold)!important;color:var(--fo-night)!important}
.card,.panel,.widget,.box,.metric,.product-card,[class*="card"],[class*="panel"]{border-color:rgba(10,63,145,.15)!important}
input,select,textarea{border-color:var(--fo-gray-light)}
input:focus,select:focus,textarea:focus{border-color:var(--fo-crystal)!important;box-shadow:0 0 0 3px rgba(41,185,255,.18)!important;outline:none!important}
table thead th,thead th{background:rgba(10,63,145,.08)!important;color:var(--fo-night)!important}
a:not(.nav-item):not(.nav-link){color:var(--fo-primary)}
.status-delivered,.status-paid,.status-ok,.badge-success,.in-stock{background:#E7FAEF!important;color:#08783A!important}
.market-main{background:radial-gradient(ellipse at 55% 120%,rgba(41,185,255,.34),transparent 48%),linear-gradient(120deg,var(--fo-night),var(--fo-ocean) 58%,var(--fo-primary))!important}
.market-nav{background:linear-gradient(90deg,var(--fo-night),#062B68 55%,var(--fo-ocean))!important}
.utility-item svg{stroke:var(--fo-primary)!important}
.promo-limited,.promo-header-link{color:var(--fo-ocean)!important}
.search-box{border:1px solid rgba(41,185,255,.38)!important;box-shadow:0 10px 30px rgba(4,26,69,.18)!important}
.location-box,.cart-box{background:rgba(4,26,69,.25)!important;border-color:rgba(255,255,255,.50)!important}

@media(max-width:1050px){
  :root{--fo-brand-width:220px;--fo-brand-height:70px;--fo-brand-sidebar-width:202px;--fo-brand-sidebar-height:64px}
}
@media(max-width:720px){
  :root{--fo-brand-width:210px;--fo-brand-height:66px}
  img[src*="logo"],img[alt*="Fonte Original" i]{object-position:center!important;margin-inline:auto!important}
}

/* === FONTE ORIGINAL REQUESTED REFINEMENTS V5 === */

/* Todos os links “Ver produto/Ver produtos” em branco. */
a.fo-view-products,
.hero-copy a[href="#produtos"],
a[href="#produtos"].fo-view-products{
  color:#FFFFFF!important;
}
a.fo-view-products:hover{color:#FFFFFF!important;opacity:.92}

/* Carrinho e total em Dourado Prêmios. */
.cart-box,.cart-box small,.cart-box b,#headerCartTotal{
  color:#FFD84A!important;
}
.cart-box .brand-action-icon{
  filter:brightness(0) saturate(100%) invert(89%) sepia(62%) saturate(1161%) hue-rotate(329deg) brightness(105%) contrast(102%)!important;
}

/* Localização com texto longo sem corte. */
.location-box{min-width:250px!important;height:auto!important;min-height:64px!important}
.location-box b{display:block;line-height:1.2;white-space:normal!important;font-size:13px}

/* Ícones dos quatro botões da página de produto: menores e dourados. */
.actions .brand-action-icon,
.actions button svg{
  width:21px!important;height:21px!important;max-width:21px!important;max-height:21px!important;
  flex:0 0 21px!important;object-fit:contain!important;
  filter:brightness(0) saturate(100%) invert(89%) sepia(62%) saturate(1161%) hue-rotate(329deg) brightness(105%) contrast(102%)!important;
}
.actions button svg{fill:none!important;stroke:#FFD84A!important;stroke-width:1.9!important;filter:none!important}
.actions .action-btn{gap:7px!important;padding:8px 12px!important;line-height:1.15!important;white-space:normal!important;text-align:center!important}
.actions .secondary{color:#0E2E66!important}

/* Selo oficial de Reserva Exclusiva na página do produto. */
.promo-seal-mini[src*="reserva-exclusiva-oficial"]{object-fit:contain!important;filter:none!important}

/* original.html: contraste de texto restaurado após a troca de paleta. */
body.original-page{color:#FFFFFF!important}
body.original-page .main,
body.original-page .section,
body.original-page .fo-section{color:#FFFFFF!important}
body.original-page .section p,
body.original-page .section small,
body.original-page .fo-section p,
body.original-page .fo-section small,
body.original-page .titleline span,
body.original-page .fo-lead,
body.original-page .fo-card p{
  color:#DCEEFF!important;
}
body.original-page .section h2,
body.original-page .section h3,
body.original-page .fo-heading,
body.original-page .fo-card h3,
body.original-page .metric b,
body.original-page .benefit b{
  color:#FFFFFF!important;
  text-shadow:0 2px 12px rgba(0,0,0,.22)!important;
}
body.original-page .metric,
body.original-page .benefit,
body.original-page .fo-card{
  color:#F4F9FF!important;
}
/* .market-card tem fundo claro (branco/azul-gelo), diferente dos outros
   cartões desta lista — por isso precisa de texto escuro, não branco. */
body.original-page .market-card h3{
  color:#082F65!important;
  text-shadow:none!important;
}
body.original-page .market-card p{
  color:#3A5A80!important;
}
body.original-page .market-card{
  color:#082F65!important;
}
body.original-page .market-link,
body.original-page .fo-eyebrow,
body.original-page .titleline span{color:#66D7FF!important}
body.original-page .hero-btn.secondary{color:#FFFFFF!important}
body.original-page .hero-btn.primary{color:#041A45!important}
body.original-page .main{background:linear-gradient(180deg,#041A45 0%,#06285F 44%,#0A3F91 100%)!important}

/* Footer da original.html em Azul Royal oficial. */
body.original-page .footer{
  background:#1478FF!important;
  border-top:1px solid rgba(255,255,255,.28)!important;
  color:#FFFFFF!important;
}
body.original-page .footer a,
body.original-page .footer .footslogan,
body.original-page .footer .tagline{color:#FFFFFF!important}

/* Aumenta mascotes e galão ao máximo seguro, mantendo seus blocos. */
body.original-page .hero-art{overflow:visible!important}
body.original-page .hero-art .gallon{
  width:min(680px,60vw)!important;height:500px!important;top:5%!important;left:51%!important;
}
body.original-page .drops-mascot{overflow:visible!important}
body.original-page .drops-mascot img{
  width:min(470px,100%)!important;max-height:520px!important;object-fit:contain!important;
}
body.original-page .referral-visual{overflow:hidden!important;min-height:390px!important}
body.original-page .referral-visual img{
  width:min(340px,88%)!important;max-height:350px!important;object-fit:contain!important;
}
body.original-page img[src*="mascote-gotinha"]{transform-origin:center bottom}

@media(max-width:1080px){
  body.original-page .hero-art .gallon{width:min(610px,72vw)!important;height:445px!important}
}
@media(max-width:720px){
  .location-box{min-width:0!important}
  body.original-page .hero-art .gallon{width:min(470px,110vw)!important;height:330px!important;left:50%!important}
  body.original-page .drops-mascot img{width:min(390px,100%)!important}
  body.original-page .referral-visual img{width:min(300px,90%)!important}
}

/* === CORREÇÕES PÓS-AUDITORIA V6 === */
:root{
  /* O selo anterior usava 78px. A versão oficial é 20% menor: 62.4px. */
  --fo-reserva-watermark-original-size:78px;
  --fo-reserva-watermark-size:62.4px;
}

/* Todos os CTAs com o texto Ver produto/Ver produtos */
a.fo-view-products,
a.fo-view-products:link,
a.fo-view-products:visited,
.product-actions a.fo-view-products,
.hero-btn.fo-view-products,
a.btn.fo-view-products,
a.btn-primary.fo-view-products{
  color:#FFFFFF!important;
}
a.fo-view-products:hover,
a.fo-view-products:focus{
  color:#FFFFFF!important;
  opacity:.92;
}

/* Contraste explícito na página institucional original.html */
body.original-page{
  --fo-original-heading:#FFFFFF;
  --fo-original-body:#EAF5FF;
  --fo-original-accent:#66D7FF;
}
body.original-page .hero-copy h1,
body.original-page .hero-copy h2,
body.original-page .hero-copy h3,
body.original-page .top h1,
body.original-page .top h2{
  color:var(--fo-original-heading)!important;
}
body.original-page .hero-copy p,
body.original-page .hero-copy small,
body.original-page .quick,
body.original-page .top,
body.original-page .nav{
  color:var(--fo-original-body)!important;
}
body.original-page .hero-copy em,
body.original-page .fo-eyebrow,
body.original-page .titleline span{
  color:var(--fo-original-accent)!important;
}

/* Rodapé da original.html no Azul Royal oficial. */
body.original-page .footer{
  background:#1478FF!important;
  color:#FFFFFF!important;
}
body.original-page .footer a,
body.original-page .footer .tagline,
body.original-page .footer .footslogan{
  color:#FFFFFF!important;
}

/* Escopos mais específicos para reduzir efeitos colaterais do tema global. */
.fo-marketplace .card,
.fo-admin .card,
body.original-page .card{
  border-color:rgba(10,63,145,.15)!important;
}

/* === AJUSTES VISUAIS E FUNCIONAIS V8 === */

/* CTA "Ver produtos": amarelo premium com texto azul Fonte Original. */
a.fo-view-products,
a.fo-view-products:link,
a.fo-view-products:visited,
.hero-copy a.fo-view-products,
.hero-btn.fo-view-products{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:48px!important;
  padding:0 24px!important;
  border:1px solid rgba(0,95,212,.18)!important;
  border-radius:12px!important;
  background-color:#FFE34F!important;
  background-image:none!important;
  background-attachment:scroll!important;
  background-clip:border-box!important;
  color:#005FD4!important;
  font-weight:900!important;
  box-shadow:0 10px 24px rgba(4,26,69,.14)!important;
}
a.fo-view-products:hover,
a.fo-view-products:focus{
  color:#005FD4!important;
  background-color:#FFD84A!important;
  transform:translateY(-1px);
}

/* Cabeçalho: impede sobreposição entre localização e carrinho. */
.market-main .main-row{
  grid-template-columns:minmax(220px,270px) minmax(300px,1fr) minmax(270px,300px) minmax(165px,185px)!important;
  gap:14px!important;
}
.market-main .location-box{
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
}
.market-main .cart-box{
  min-width:0!important;
  width:100%!important;
  overflow:visible!important;
}
.market-main .location-box > div,
.market-main .cart-box > div{
  min-width:0!important;
}
.market-main .location-box b{
  display:block!important;
  line-height:1.12!important;
  overflow-wrap:anywhere!important;
}
.market-main .cart-box{
  flex-shrink:0!important;
}
.market-main .cart-count{
  z-index:3!important;
}

@media(max-width:1220px) and (min-width:721px){
  .market-main .main-row{
    grid-template-columns:240px minmax(320px,1fr) 285px!important;
    grid-template-areas:
      "brand search search"
      "brand location cart"!important;
    padding:14px 0!important;
    row-gap:10px!important;
  }
  .market-main .brand-logo{grid-area:brand!important}
  .market-main .search-box{grid-area:search!important}
  .market-main .location-box{grid-area:location!important}
  .market-main .cart-box{
    grid-area:cart!important;
    display:flex!important;
    max-width:185px!important;
    justify-self:end!important;
  }
}

/* V3.21 — marca-d'água Reserva Exclusiva é um <img class="promo-watermark"> em produto.html.
   O pseudo-elemento antigo fica definitivamente desativado para evitar regras conflitantes. */
.sales-description::after,.sales-description:after{display:none!important;content:none!important}
.reserve-product-seal{display:none!important}

/* === MASCOTES OFICIAIS V9 === */
body.original-page img[src*="mascote-celular"]{
  width:min(39vw,590px)!important;max-width:590px!important;height:auto!important;
  max-height:720px!important;object-fit:contain!important;object-position:center bottom!important;
  filter:drop-shadow(0 22px 28px rgba(4,26,69,.24))!important;
}
body.original-page img[src*="mascote-beijinhos"]{
  width:min(34vw,520px)!important;max-width:520px!important;height:auto!important;
  max-height:680px!important;object-fit:contain!important;object-position:center bottom!important;
  filter:drop-shadow(0 22px 28px rgba(4,26,69,.22))!important;
}
body.fo-product-page img[src*="mascote-positividade"]{
  width:375px!important;max-width:none!important;max-height:300px!important;
  object-fit:contain!important;object-position:center bottom!important;
  filter:drop-shadow(0 16px 18px rgba(4,26,69,.20))!important;
}
@media(max-width:900px){
  body.original-page img[src*="mascote-celular"],
  body.original-page img[src*="mascote-beijinhos"]{width:min(62vw,430px)!important;max-height:560px!important}
}
@media(max-width:620px){
  body.original-page img[src*="mascote-celular"],
  body.original-page img[src*="mascote-beijinhos"]{width:min(88vw,360px)!important;max-height:470px!important}
  body.fo-product-page img[src*="mascote-positividade"]{width:165px!important;max-height:240px!important}
}


/* === SISTEMA INDEPENDENTE DE MASCOTES V11 === */
[data-fo-mascot]{
  width:calc(var(--fo-mascot-width, 400px) * var(--fo-mascot-scale, 1))!important;
  max-width:none!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  background:transparent!important;
  transform:translate(var(--fo-mascot-x, 0), var(--fo-mascot-y, 0))!important;
  filter:drop-shadow(0 20px 26px rgba(4,26,69,.22))!important;
  position:relative;
  z-index:5;
}
/* Somente mascotes; imagens de produto não herdam estas regras. */
.product-gallery img,
.main-media img,
.thumb img,
.rel-card img,
body.fo-product-page 
body.original-page .drops-mascot,
body.original-page .referral-visual{
  overflow:visible!important;
}
body.original-page [data-fo-mascot="original_rewards"]{
  --fo-mascot-width:520px;
}
body.original-page [data-fo-mascot="original_referral"]{
  --fo-mascot-width:500px;
}
body.fo-product-page .natural-banner,
body.fo-product-page .natural-inner,
body.fo-product-page .natural-visual{
  overflow:visible!important;
}
body.fo-product-page [data-fo-mascot="product_left"]{
  --fo-mascot-width:560px;
}
body.fo-product-page [data-fo-mascot="product_right"]{
  --fo-mascot-width:480px;
}
@media(max-width:900px){
  [data-fo-mascot]{max-width:70vw!important}
  body.fo-product-page [data-fo-mascot="product_left"]{--fo-mascot-width:390px}
  body.fo-product-page [data-fo-mascot="product_right"]{--fo-mascot-width:350px}
}
@media(max-width:620px){
  [data-fo-mascot]{max-width:88vw!important}
  body.fo-product-page [data-fo-mascot="product_left"]{--fo-mascot-width:250px}
  body.fo-product-page [data-fo-mascot="product_right"]{--fo-mascot-width:220px}
}

/* === CORREÇÃO DE IMAGENS DO ADMIN V12 === */

/* Regras públicas ficam restritas à página de produto. */
body.fo-product-page .product-gallery img,
body.fo-product-page .main-media img,
body.fo-product-page .thumb img,
body.fo-product-page .rel-card img,
body.fo-product-page .product-card img{
  transform:none!important;
  max-width:100%;
}

/* Área de imagem dos cartões no painel administrativo. */
body.fo-admin-page .product-photo,
body.fo-admin-page .product-card .product-photo,
body.fo-admin-page .product-media{
  position:relative!important;
  width:100%!important;
  height:230px!important;
  min-height:230px!important;
  max-height:230px!important;
  overflow:hidden!important;
  background:#EDF7FC!important;
  border-radius:14px 14px 0 0!important;
  z-index:1!important;
}

/* Imagem sempre contida no topo do card e incapaz de cobrir campos e botões. */
body.fo-admin-page .product-photo img,
body.fo-admin-page .product-card .product-photo img,
body.fo-admin-page .product-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  margin:0!important;
  z-index:auto!important;
}

/* Conteúdo administrativo fica sempre acima e separado da mídia. */
body.fo-admin-page .product-card{
  position:relative!important;
  overflow:hidden!important;
}
body.fo-admin-page .product-card > :not(.product-photo):not(.product-media){
  position:relative!important;
  z-index:2!important;
  background:inherit;
}

/* Previne regras de mascote nas imagens do catálogo. */
body.fo-admin-page .product-photo img[data-fo-mascot],
body.fo-admin-page .product-media img[data-fo-mascot]{
  width:100%!important;
  height:100%!important;
  transform:none!important;
}

/* === DIMENSÕES DINÂMICAS DAS MASCOTES V14 === */

/*
  As dimensões passam a ser aplicadas diretamente pelo JavaScript com !important.
  Isto neutraliza regras antigas vinculadas ao nome do arquivo da imagem.
*/
body.original-page img[data-fo-mascot],
body.fo-product-page img[data-fo-mascot],
img[data-fo-mascot]{
  width:var(--fo-mascot-width,400px)!important;
  height:var(--fo-mascot-height,auto)!important;
  max-width:none!important;
  max-height:none!important;
  min-width:0!important;
  min-height:0!important;
  object-fit:contain!important;
  object-position:center bottom!important;
}

/* Nenhum limite responsivo fixo pode anular o tamanho salvo no Admin. */
@media(max-width:900px){
  img[data-fo-mascot]{max-width:none!important}
}
@media(max-width:620px){
  img[data-fo-mascot]{max-width:none!important}
}

/* === CONTROLES AVANÇADOS DE MASCOTES V15 === */
img[data-fo-mascot]{
  transform:
    translate(var(--fo-mascot-x,0),var(--fo-mascot-y,0))
    rotate(var(--fo-mascot-rotation,0deg))
    scaleX(var(--fo-mascot-flip-x,1))!important;
}
img[data-fo-mascot][hidden]{display:none!important}

/* === PAINEL VISUAL V15 === */
[data-fo-visual]{
  background-color:#EAF6FF;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
}

/* === ORIGINAL.HTML: HERO CONFIGURÁVEL V16 === */
body.original-page [data-fo-visual="original_hero_background"]{
  position:relative!important;
  overflow:visible!important;
  isolation:isolate;
}
body.original-page [data-fo-visual="original_hero_background"]::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:-1;
}
body.original-page img[data-fo-mascot="original_hero"]{
  position:absolute!important;
  right:7%!important;
  top:18%!important;
  width:var(--fo-mascot-width,520px)!important;
  height:var(--fo-mascot-height,auto)!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  z-index:6!important;
  pointer-events:none;
}
@media(max-width:1100px){
  body.original-page img[data-fo-mascot="original_hero"]{
    right:2%!important;
    top:24%!important;
  }
}
@media(max-width:760px){
  body.original-page img[data-fo-mascot="original_hero"]{
    position:relative!important;
    right:auto!important;
    top:auto!important;
    display:block;
    margin:20px auto 0;
  }
}


/* V3.16 — SVGs padrão e legíveis */
.brand-action-icon.icon-on-light{filter:none!important}
.cart-box .brand-action-icon.icon-on-dark,.buy-now .brand-action-icon.icon-on-dark{filter:brightness(0) saturate(100%) invert(89%) sepia(62%) saturate(1161%) hue-rotate(329deg) brightness(105%) contrast(102%)!important}
.add-cart .brand-action-icon.icon-on-light,.secondary .brand-action-icon.icon-on-light,.product-actions .brand-action-icon.icon-on-light{filter:none!important}
