/* PDV ARTE MIX 1.1.4.160 • acabamento global do site público
   Topo e rodapé fixos, paleta premium, favicon dinâmico e chat flutuante.
*/
:root{
  --amx160-p:var(--p,#2f8150);
  --amx160-s:var(--s,#173c29);
  --amx160-a:var(--a,#edca3e);
  --amx160-bg:var(--bg,#f7faf7);
  --amx160-surface:var(--surface,#fff);
  --amx160-text:var(--text,#17251d);
  --amx160-muted:var(--muted,#68756d);
  --amx160-line:var(--line,#dfe9e2);
  --amx160-header:var(--header,#173c29);
  --amx160-header-text:var(--header-text,#fff);
  --amx160-btn-text:var(--btn-text,#fff);
  --amx160-footer:var(--footer-bg,#132d20);
  --amx160-footer-text:var(--footer-text,#f4f7f5);
  --amx160-radius:var(--radius,20px);
  --amx160-header-h:76px;
  --amx160-footer-h:58px;
}

/* Reserva o espaço dos elementos fixos para nada ficar escondido. */
body{padding-top:var(--amx160-header-h)!important;padding-bottom:calc(var(--amx160-footer-h) + env(safe-area-inset-bottom,0px))!important}
body.amx160-header-unfixed{padding-top:0!important}
body.amx160-footer-unfixed{padding-bottom:0!important}

/* Topo premium e sempre legível. */
.amx159-header,.v33-catalog-header{
  position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:120!important;
  min-height:var(--amx160-header-h);
  background:linear-gradient(135deg,color-mix(in srgb,var(--amx160-header) 96%,#000),var(--amx160-header))!important;
  color:var(--amx160-header-text)!important;
  border-bottom:3px solid var(--amx160-a)!important;
  box-shadow:0 12px 34px rgba(9,31,19,.18)!important;
  backdrop-filter:blur(18px) saturate(1.1);
}
body.amx160-header-unfixed .amx159-header,body.amx160-header-unfixed .v33-catalog-header{position:sticky!important}
.amx159-header .amx159-brand-copy b,.amx159-header .amx159-brand-copy small,.amx159-header .amx159-menu a,.amx159-header .amx159-btn,.v33-catalog-header,.v33-catalog-header a,.v33-catalog-header button{color:var(--amx160-header-text)!important}
.amx159-header .amx159-brand-copy small{opacity:.78}
.amx159-header .amx159-logo,.v33-catalog-logo{background:var(--amx160-p)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--amx160-a) 78%,transparent),0 10px 24px rgba(0,0,0,.18)!important}
.amx159-header .amx159-menu a:hover,.amx159-header .amx159-menu a.is-active{background:color-mix(in srgb,var(--amx160-a) 17%,transparent)!important;color:#fff!important}
.amx159-header .amx159-menu a.is-active{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--amx160-a) 45%,transparent)}
.amx159-header .amx159-menu-toggle,.amx159-header .amx159-status,.v33-catalog-header .site-btn{
  border-color:rgba(255,255,255,.18)!important;background:rgba(255,255,255,.10)!important;color:#fff!important;
}
.amx159-header .amx159-status.is-open{background:rgba(70,190,112,.18)!important;color:#e9fff0!important}
.amx159-header .amx159-status.is-closed{background:rgba(210,77,65,.18)!important;color:#fff0ed!important}
.amx159-header .amx159-status.is-holiday{background:rgba(237,202,62,.18)!important;color:#fff8d3!important}
.amx159-header .amx159-btn.primary,.v33-catalog-header .site-btn.primary{background:var(--amx160-a)!important;border-color:var(--amx160-a)!important;color:#2a2510!important;box-shadow:0 10px 22px rgba(0,0,0,.15)}

/* Pequenos acentos de cor para o conteúdo sem poluir. */
.amx159-kicker,.site-tag{background:color-mix(in srgb,var(--amx160-p) 10%,#fff)!important;border-color:color-mix(in srgb,var(--amx160-p) 24%,var(--amx160-line))!important;color:color-mix(in srgb,var(--amx160-p) 82%,#102018)!important}
.amx159-btn.primary,.site-btn.primary{background:var(--amx160-p)!important;border-color:var(--amx160-p)!important;color:var(--amx160-btn-text)!important}
.amx159-btn.dark{background:var(--amx160-s)!important;border-color:var(--amx160-s)!important;color:#fff!important}
.amx159-portal-card:hover,.amx159-item-card:hover,.v33-card-shell:hover{border-color:color-mix(in srgb,var(--amx160-p) 30%,var(--amx160-line))!important;box-shadow:0 18px 42px rgba(28,68,43,.12)!important}

/* Rodapé compacto, fixo e padronizado em todas as páginas. */
.amx159-footer,.v33-catalog-footer{
  position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:110!important;
  min-height:var(--amx160-footer-h)!important;margin:0!important;padding:0!important;
  display:flex!important;align-items:center!important;
  background:linear-gradient(135deg,var(--amx160-footer),color-mix(in srgb,var(--amx160-footer) 86%,#000))!important;
  color:var(--amx160-footer-text)!important;border-top:2px solid color-mix(in srgb,var(--amx160-a) 70%,transparent)!important;
  box-shadow:0 -10px 28px rgba(8,28,17,.14)!important;
}
body.amx160-footer-unfixed .amx159-footer,body.amx160-footer-unfixed .v33-catalog-footer{position:static!important}
.amx159-footer .amx159-footer-grid,.v33-catalog-footer>.site-wrap{width:min(1380px,calc(100% - 32px));margin:auto;min-height:var(--amx160-footer-h);display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:7px 0!important;font-size:11px!important}
.amx159-footer a,.v33-catalog-footer a{color:var(--amx160-footer-text)!important;opacity:.84}.amx159-footer a:hover,.v33-catalog-footer a:hover{opacity:1;color:#fff!important}
.amx159-footer-links{display:flex!important;align-items:center;gap:13px!important;flex-wrap:nowrap!important;overflow:hidden}

/* Bolinha de chat fixa. */
.amx160-chat-launcher{
  position:fixed;right:20px;bottom:calc(var(--amx160-footer-h) + 18px + env(safe-area-inset-bottom,0px));z-index:145;
  width:58px;height:58px;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;
  background:linear-gradient(135deg,var(--amx160-p),color-mix(in srgb,var(--amx160-p) 72%,#0e3520));color:#fff;font-size:24px;
  box-shadow:0 16px 34px color-mix(in srgb,var(--amx160-p) 36%,transparent),0 0 0 4px #fff;
  transition:transform .18s ease,box-shadow .18s ease;
}
.amx160-chat-launcher:hover{transform:translateY(-3px) scale(1.03)}
.amx160-chat-launcher::after{content:"";position:absolute;right:2px;top:2px;width:13px;height:13px;border-radius:50%;background:#39c46a;border:3px solid #fff}
.amx160-chat-launcher span{position:absolute;right:68px;white-space:nowrap;background:var(--amx160-s);color:#fff;border-radius:999px;padding:8px 11px;font-size:11px;font-weight:850;box-shadow:0 9px 24px rgba(0,0,0,.14);opacity:0;transform:translateX(7px);pointer-events:none;transition:.18s ease}
.amx160-chat-launcher:hover span{opacity:1;transform:none}
.amx160-chat-panel{
  position:fixed;right:20px;bottom:calc(var(--amx160-footer-h) + 88px + env(safe-area-inset-bottom,0px));z-index:144;
  width:min(390px,calc(100vw - 28px));height:min(590px,calc(100vh - 170px));display:none;grid-template-rows:auto 1fr auto;
  overflow:hidden;border:1px solid color-mix(in srgb,var(--amx160-p) 18%,var(--amx160-line));border-radius:24px;
  background:#fff;box-shadow:0 28px 74px rgba(10,37,22,.25);
}
.amx160-chat-panel.show{display:grid;animation:amx160ChatIn .2s ease both}@keyframes amx160ChatIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.amx160-chat-head{display:flex;align-items:center;gap:11px;padding:14px 15px;background:linear-gradient(135deg,var(--amx160-s),var(--amx160-p));color:#fff}
.amx160-chat-head>i{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.13);font-size:18px}.amx160-chat-head>div{min-width:0;flex:1}.amx160-chat-head b,.amx160-chat-head small{display:block}.amx160-chat-head small{margin-top:2px;opacity:.78;font-size:10px}.amx160-chat-close{width:38px;height:38px;border:0;border-radius:12px;background:rgba(255,255,255,.12);color:#fff;cursor:pointer}
.amx160-chat-body{min-height:0;overflow:auto;padding:14px;background:linear-gradient(180deg,#f7faf7,#fff)}
.amx160-chat-message{max-width:86%;margin:0 0 9px;padding:10px 12px;border-radius:16px;background:#fff;border:1px solid var(--amx160-line);box-shadow:0 5px 14px rgba(0,0,0,.04);font-size:12px;line-height:1.45}.amx160-chat-message.in{margin-left:auto;background:color-mix(in srgb,var(--amx160-p) 10%,#fff);border-color:color-mix(in srgb,var(--amx160-p) 20%,var(--amx160-line))}.amx160-chat-message small{display:block;margin-top:5px;color:var(--amx160-muted);font-size:9px}.amx160-chat-message img{max-width:100%;border-radius:12px;margin-bottom:6px}
.amx160-chat-empty{text-align:center;padding:28px 14px;color:var(--amx160-muted)}.amx160-chat-empty i{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 10px;border-radius:18px;background:color-mix(in srgb,var(--amx160-p) 10%,#fff);color:var(--amx160-p);font-size:24px}.amx160-chat-empty b{display:block;color:var(--amx160-text);margin-bottom:5px}
.amx160-chat-lead{display:grid;gap:9px}.amx160-chat-lead label{display:grid;gap:4px;font-size:10px;font-weight:850;color:#4e5b52}.amx160-chat-lead input,.amx160-chat-lead textarea,.amx160-chat-compose textarea{width:100%;border:1px solid var(--amx160-line);border-radius:12px;padding:9px 10px;background:#fff;color:var(--amx160-text);outline:none}.amx160-chat-lead input:focus,.amx160-chat-lead textarea:focus,.amx160-chat-compose textarea:focus{border-color:var(--amx160-p);box-shadow:0 0 0 3px color-mix(in srgb,var(--amx160-p) 13%,transparent)}
.amx160-chat-compose{display:none;grid-template-columns:1fr 44px;gap:8px;padding:10px;border-top:1px solid var(--amx160-line);background:#fff}.amx160-chat-panel.ready .amx160-chat-compose{display:grid}.amx160-chat-compose textarea{min-height:44px;max-height:110px;resize:none}.amx160-chat-send{border:0;border-radius:13px;background:var(--amx160-p);color:#fff;cursor:pointer;font-size:17px}.amx160-chat-note{padding:8px 10px;border-radius:11px;background:#fff8dc;color:#725900;font-size:10px;line-height:1.4}

/* Favicon/paleta também deixam o catálogo com o mesmo acabamento. */
.v33-catalog-header .v33-catalog-secure{color:#fff!important}.v33-catalog-header .v33-catalog-secure small{color:rgba(255,255,255,.68)!important}.v33-catalog-footer{font-weight:700}

@media(max-width:900px){
  :root{--amx160-header-h:68px;--amx160-footer-h:54px}
  .amx159-nav{min-height:65px!important}.amx159-header .amx159-brand{min-width:0}.amx159-header .amx159-menu{top:68px!important;background:var(--amx160-s)!important;border-color:rgba(255,255,255,.12)!important;box-shadow:0 20px 38px rgba(0,0,0,.22)!important}.amx159-header .amx159-menu a{color:#fff!important}.amx159-header .amx159-nav-actions .amx159-status{display:none!important}
  .v33-catalog-header .v38-catalog-secure{display:none!important}
  .amx159-footer-links a:nth-child(-n+3){display:none}
  .amx160-chat-launcher{right:14px;bottom:calc(var(--amx160-footer-h) + 14px + env(safe-area-inset-bottom,0px));width:54px;height:54px}.amx160-chat-launcher span{display:none}.amx160-chat-panel{right:14px;bottom:calc(var(--amx160-footer-h) + 78px + env(safe-area-inset-bottom,0px));height:min(560px,calc(100vh - 145px))}
}
@media(max-width:560px){
  .amx159-footer .amx159-footer-grid,.v33-catalog-footer>.site-wrap{width:calc(100% - 20px);font-size:9px!important;gap:8px!important}.amx159-footer-links{gap:8px!important}.amx159-footer-links a{display:none}.amx159-footer-links a:last-child{display:inline-flex}
  .amx160-chat-panel{left:8px;right:8px;width:auto;bottom:calc(var(--amx160-footer-h) + 74px + env(safe-area-inset-bottom,0px));height:min(540px,calc(100vh - 135px))}
}

/* Elementos flutuantes respeitam o rodapé fixo. */
.amx159-privacy{bottom:calc(var(--amx160-footer-h) + 14px + env(safe-area-inset-bottom,0px))!important;z-index:142!important}
.amx159-toast,.dmk103-site-toast{bottom:calc(var(--amx160-footer-h) + 16px + env(safe-area-inset-bottom,0px))!important;z-index:150!important}
body.amx160-footer-unfixed .amx159-privacy{bottom:18px!important}
body.amx160-footer-unfixed .amx159-toast,body.amx160-footer-unfixed .dmk103-site-toast{bottom:22px!important}
