/* ANSEIO ÍNTIMO — ETAPA 1
   Implementação oficial única do header, menu rápido, drawers, busca e shell público. */
:root{
  --anseio-nav-header-h:72px;
  --anseio-nav-wine:#780007;
  --anseio-nav-wine-strong:#57000a;
  --anseio-nav-rose:#ffdce4;
  --anseio-nav-text:#2a1015;
  --anseio-nav-muted:#765b62;
  --anseio-nav-line:rgba(120,0,7,.16);
  --anseio-nav-floating:rgba(255,255,255,.58);
  --anseio-nav-floating-hover:rgba(255,255,255,.82);
  --anseio-nav-header:linear-gradient(90deg,rgba(255,222,231,.68),rgba(255,245,248,.56),rgba(255,222,231,.68));
  --anseio-nav-drawer:#fff;
  --anseio-nav-panel:#fffafb;
  --anseio-nav-shadow:0 18px 48px rgba(59,17,23,.16);
  --anseio-nav-control-shadow:0 9px 24px rgba(59,17,23,.10);
}
body.anseio-shell-lock{overflow:hidden!important;touch-action:none;}
#anseio-stable-shell{position:relative;z-index:5000;height:var(--anseio-nav-header-h);}
/* Header único */
.anseio-v39-header{
  position:fixed;
  inset:0 0 auto;
  z-index:5000;
  height:var(--anseio-nav-header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px clamp(14px,2.6vw,34px);
  background:var(--anseio-nav-header);
  border-bottom:1px solid var(--anseio-nav-line);
  box-shadow:0 7px 24px rgba(59,17,23,.06);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
  backdrop-filter:blur(18px) saturate(125%);
  transition:background .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.anseio-v39-header.is-scrolled{box-shadow:0 12px 34px rgba(59,17,23,.12);}
.anseio-v39-header-left,.anseio-v39-header-right{display:flex;align-items:center;gap:9px;min-width:0;}
.anseio-v39-header-left{justify-content:flex-start;}
.anseio-v39-header-right{justify-content:flex-end;}
.anseio-v39-brand{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  width:min(218px,32vw);
  max-width:calc(100% - 330px);
  min-width:120px;
  text-decoration:none;
  line-height:0;
}
.anseio-v39-brand img{display:block;width:auto;height:auto;max-width:100%;max-height:43px;object-fit:contain;object-position:center;transform:none;}
/* Controles flutuantes */
.anseio-v39-icon-btn,.anseio-v39-theme-btn{
  position:relative;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid var(--anseio-nav-line);
  border-radius:6px;
  background:var(--anseio-nav-floating);
  color:var(--anseio-nav-text);
  box-shadow:var(--anseio-nav-control-shadow);
  -webkit-backdrop-filter:blur(11px) saturate(120%);
  backdrop-filter:blur(11px) saturate(120%);
  cursor:pointer;
  text-decoration:none;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.anseio-v39-icon-btn:hover,.anseio-v39-icon-btn:focus-visible,
.anseio-v39-theme-btn:hover,.anseio-v39-theme-btn:focus-visible{
  transform:translateY(-2px);
  background:var(--anseio-nav-floating-hover);
  border-color:color-mix(in srgb,var(--anseio-nav-wine) 38%,var(--anseio-nav-line));
  outline:none;
}
.anseio-v39-icon-btn[aria-expanded="true"]{background:rgba(120,0,7,.9);color:#fff;border-color:rgba(120,0,7,.9);}
.anseio-v39-icon-btn svg,.anseio-v39-theme-btn svg{display:block!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;flex:0 0 20px!important;overflow:visible!important;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.anseio-v39-icon-btn[data-shell-account].has-photo{padding:3px;overflow:hidden;}
.anseio-v39-icon-btn[data-shell-account] img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;border-radius:50%;}
.anseio-v39-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  z-index:2;
  min-width:20px;
  height:20px;
  display:grid;
  place-items:center;
  padding:0 5px;
  border:2px solid #fff5f8;
  border-radius:6px;
  background:#780007;
  color:#fff;
  font:800 10px/1 var(--anseio-font-body);
  box-shadow:0 4px 12px rgba(42,0,10,.24);
}
/* Menu rápido sem faixa: somente botões individuais flutuam. */
.anseio-v39-quick-wrap{
  position:fixed;
  left:0;
  right:0;
  top:calc(var(--anseio-nav-header-h) + 8px);
  z-index:4980;
  display:flex;
  justify-content:center;
  padding:0 12px;
  background:transparent;
  border:0;
  box-shadow:none;
  pointer-events:none;
  transform:translateY(0);
  opacity:1;
  transition:transform .28s cubic-bezier(.2,.75,.25,1),opacity .2s ease;
}
#anseio-stable-shell.submenu-hidden .anseio-v39-quick-wrap{transform:translateY(-140%);opacity:0;pointer-events:none;}
.anseio-v39-quick-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  max-width:min(1180px,calc(100vw - 24px));
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow-x:auto;
  scrollbar-width:none;
  pointer-events:auto;
}
.anseio-v39-quick-nav::-webkit-scrollbar{display:none;}
.anseio-v39-quick-nav a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:39px;
  padding:9px 14px;
  border:1px solid var(--anseio-nav-line);
  border-radius:6px;
  background:var(--anseio-nav-floating);
  color:var(--anseio-nav-text);
  box-shadow:var(--anseio-nav-control-shadow);
  -webkit-backdrop-filter:blur(11px) saturate(120%);
  backdrop-filter:blur(11px) saturate(120%);
  font:700 12.5px/1 var(--anseio-font-body);
  text-decoration:none;
  white-space:nowrap;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.anseio-v39-quick-nav a:hover,.anseio-v39-quick-nav a:focus-visible{transform:translateY(-2px);background:var(--anseio-nav-floating-hover);outline:none;}
.anseio-v39-quick-nav a[aria-current="page"]{background:rgba(120,0,7,.9);color:#fff;border-color:rgba(120,0,7,.9);}
/* Busca integrada */
.anseio-v39-search-panel{
  position:fixed;
  top:calc(var(--anseio-nav-header-h) + 10px);
  left:clamp(14px,2.6vw,34px);
  z-index:5250;
  width:min(520px,calc(100vw - 28px));
  max-height:min(640px,calc(100vh - var(--anseio-nav-header-h) - 24px));
  overflow:auto;
  padding:17px;
  border:1px solid var(--anseio-nav-line);
  border-radius:6px;
  background:var(--anseio-nav-panel);
  color:var(--anseio-nav-text);
  box-shadow:var(--anseio-nav-shadow);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-8px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
.anseio-v39-search-panel.open{opacity:1;visibility:visible;pointer-events:auto;transform:none;}
.anseio-v39-search-form{display:grid;grid-template-columns:1fr auto;gap:8px;}
.anseio-v39-search-form input{
  width:100%;
  min-width:0;
  min-height:46px;
  padding:0 14px!important;
  border:1px solid var(--anseio-nav-line)!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#2a1015!important;
  -webkit-text-fill-color:#2a1015!important;
  font:500 15px/1 var(--anseio-font-body)!important;
  box-shadow:none!important;
}
.anseio-v39-search-form input:focus{outline:3px solid rgba(120,0,7,.12)!important;border-color:#780007!important;}
.anseio-v39-search-form button{min-height:46px;padding:0 16px;border:0;border-radius:6px;background:#780007;color:#fff;font:700 13px/1 var(--anseio-font-body);cursor:pointer;}
.anseio-v39-search-hint{display:block;margin:10px 1px 0;color:var(--anseio-nav-muted);font:500 12px/1.45 var(--anseio-font-body);}
.anseio-v39-search-results{display:grid;gap:8px;margin-top:13px;}
.anseio-v39-search-empty{padding:18px 12px;text-align:center;border:1px dashed var(--anseio-nav-line);border-radius:6px;color:var(--anseio-nav-muted);font:500 13px/1.5 var(--anseio-font-body);}
.anseio-v39-search-result{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:56px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:8px;
  border:1px solid var(--anseio-nav-line);
  border-radius:6px;
  background:rgba(255,255,255,.62);
  color:var(--anseio-nav-text);
  text-align:left;
  cursor:pointer;
}
.anseio-v39-search-result:hover,.anseio-v39-search-result:focus-visible{border-color:#780007;outline:none;}
.anseio-v39-search-result img{width:56px;height:70px;display:block;object-fit:cover;border-radius:6px;background:#f5e9ec;}
.anseio-v39-search-result-copy{min-width:0;display:grid;gap:3px;}
.anseio-v39-search-result-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;font:700 13px/1.3 var(--anseio-font-body);}
.anseio-v39-search-result-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--anseio-nav-muted);font:500 11px/1.3 var(--anseio-font-body);}
.anseio-v39-search-price{color:#780007;font:800 12px/1 var(--anseio-font-body);white-space:nowrap;}
/* Drawers */
.anseio-v39-backdrop{position:fixed;inset:0;z-index:5100;background:rgba(0,0,0,.56);opacity:0;pointer-events:none;transition:opacity .2s ease;}
.anseio-v39-backdrop.open{opacity:1;pointer-events:auto;}
.anseio-v39-drawer{
  position:fixed;
  top:0;
  bottom:0;
  z-index:5200;
  width:min(370px,92vw);
  overflow-y:auto;
  overscroll-behavior:contain;
  border:1px solid var(--anseio-nav-line);
  background:var(--anseio-nav-drawer);
  color:var(--anseio-nav-text);
  box-shadow:var(--anseio-nav-shadow);
  transition:transform .25s cubic-bezier(.2,.75,.25,1);
}
.anseio-v39-drawer.left{left:0;transform:translateX(-104%);border-left:0;}
.anseio-v39-drawer.right{right:0;transform:translateX(104%);border-right:0;width:min(420px,94vw);}
.anseio-v39-drawer.open{transform:translateX(0);}
.anseio-v39-drawer-inner{min-height:100%;display:flex;flex-direction:column;padding:22px;}
.anseio-v39-drawer-logo{display:block;width:auto;height:auto;max-width:220px;max-height:52px;object-fit:contain;margin:0 auto 18px;}
.anseio-v39-drawer-nav,.anseio-v39-account-links{display:grid;gap:9px;}
.anseio-v39-account-links[hidden]{display:none!important;}
.anseio-v39-drawer-nav a,.anseio-v39-account-link,.anseio-v39-auth-actions button{
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 15px;
  border:1px solid var(--anseio-nav-line);
  border-radius:6px;
  background:color-mix(in srgb,var(--anseio-nav-floating) 88%,var(--anseio-nav-drawer));
  color:var(--anseio-nav-text);
  box-shadow:0 7px 20px rgba(59,17,23,.07);
  font:700 13.5px/1.35 var(--anseio-font-body);
  text-decoration:none;
  text-align:left;
  cursor:pointer;
  transition:transform .17s ease,border-color .17s ease,background .17s ease;
}
.anseio-v39-drawer-nav a:hover,.anseio-v39-drawer-nav a:focus-visible,
.anseio-v39-account-link:hover,.anseio-v39-account-link:focus-visible,
.anseio-v39-auth-actions button:hover,.anseio-v39-auth-actions button:focus-visible{transform:translateY(-1px);border-color:#780007;outline:none;}
.anseio-v39-drawer-foot{margin-top:auto;padding-top:20px;color:var(--anseio-nav-muted);font:500 12px/1.55 var(--anseio-font-body);}
.anseio-v39-account-top{display:grid;place-items:center;text-align:center;gap:8px;margin-bottom:16px;}
.anseio-v39-avatar-btn{width:88px;height:88px;display:grid;place-items:center;overflow:hidden;padding:0;border:1px solid var(--anseio-nav-line);border-radius:50%;background:rgba(255,239,244,.88);color:var(--anseio-nav-muted);box-shadow:0 10px 26px rgba(59,17,23,.09);cursor:pointer;}
.anseio-v39-avatar-btn img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;border-radius:50%;}
.anseio-v39-avatar-btn svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.7;}
.anseio-v39-theme-btn{border-radius:6px;}
.anseio-v39-account-name{font:700 1.08rem/1.25 var(--anseio-font-display);color:var(--anseio-nav-text);}
.anseio-v39-account-email{max-width:100%;overflow-wrap:anywhere;color:var(--anseio-nav-muted);font:500 .83rem/1.4 var(--anseio-font-body);}
.anseio-v39-auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 14px;}
.anseio-v39-auth-actions button{justify-content:center;}
.anseio-v39-auth-actions button.primary{background:#780007;color:#fff;border-color:#780007;}
/* Diálogos e toast usados pelo shell */
.anseio-stable-toast{position:fixed;left:50%;bottom:24px;z-index:6000;min-width:min(420px,calc(100vw - 30px));padding:13px 18px;border-radius:6px;background:#24070d;color:#fff;text-align:center;font:700 14px/1.35 var(--anseio-font-body);box-shadow:0 18px 50px rgba(0,0,0,.3);opacity:0;transform:translate(-50%,12px);transition:.2s;}
.anseio-stable-toast.open{opacity:1;transform:translate(-50%,0);}
.anseio-dialog-overlay{position:fixed;inset:0;z-index:6500;display:grid;place-items:center;padding:18px;background:rgba(7,2,4,.72);}
.anseio-dialog-card{width:min(560px,94vw);padding:24px 22px;border:1px solid var(--anseio-nav-line);border-radius:6px;background:var(--anseio-nav-panel);color:var(--anseio-nav-text);box-shadow:0 36px 120px rgba(30,0,7,.32);}
.anseio-dialog-brand{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--anseio-nav-line);}
.anseio-dialog-brand img{width:min(235px,62vw);height:54px;object-fit:contain;object-position:left center;display:block;}
.anseio-dialog-brand span{padding:6px 9px;border:1px solid var(--anseio-nav-line);border-radius:6px;background:rgba(255,240,243,.72);color:#780007;font:800 10px/1 var(--anseio-font-body);letter-spacing:.06em;}
.anseio-dialog-card h3{margin:0 0 8px;color:#780007;font:700 28px/1.1 var(--anseio-font-body);}
.anseio-dialog-card p{margin:0;color:var(--anseio-nav-muted);font:500 16px/1.55 var(--anseio-font-body);}
.anseio-dialog-field{display:grid;gap:7px;margin-top:18px;text-align:left;}
.anseio-dialog-field span{color:var(--anseio-nav-muted);font:700 12px/1.4 var(--anseio-font-body);}
.anseio-dialog-field input{width:100%;min-height:46px;padding:0 13px!important;border:1px solid var(--anseio-nav-line)!important;border-radius:6px!important;background:#fff!important;color:#3b1117!important;-webkit-text-fill-color:#3b1117!important;font:700 15px/1 var(--anseio-font-body)!important;box-shadow:none!important;}
.anseio-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;}
.anseio-dialog-actions button{min-width:104px;min-height:44px;padding:0 18px;border:1px solid var(--anseio-nav-line);border-radius:6px;background:transparent;color:var(--anseio-nav-text);font:700 15px/1 var(--anseio-font-body);cursor:pointer;}
.anseio-dialog-actions button.primary{background:#780007;color:#fff;border-color:#780007;}
.anseio-dialog-actions button:disabled{opacity:.45;cursor:not-allowed;}
/* Loader oficial preservado sem duplicações */
.anseio-experience-loader{position:fixed;inset:0;z-index:120000;display:grid;place-items:center;padding:24px;background:linear-gradient(180deg,#fffdfd 0%,#fff6f8 58%,#ffedf2 100%);transition:opacity .45s ease,visibility .45s ease;}
.anseio-experience-loader.is-hidden{opacity:0;visibility:hidden;pointer-events:none;}
.anseio-experience-loader__inner{width:min(560px,92vw);display:grid;place-items:center;gap:18px;padding:34px 34px 30px;border:1px solid var(--anseio-nav-line);border-radius:6px;background:rgba(255,255,255,.8);box-shadow:0 28px 90px rgba(59,17,23,.16);text-align:center;}
.anseio-experience-loader__lotus{width:min(330px,72vw);line-height:0;}
.anseio-experience-loader__lotus img{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 12px 28px rgba(155,11,36,.12));}
.anseio-experience-loader__inner strong{color:#7d0015;font:400 clamp(1.35rem,3vw,1.9rem)/1.1 var(--anseio-font-display);}
.anseio-experience-loader__inner span{color:#6d5559;font:500 .96rem/1.6 var(--anseio-font-body);}
@media (max-width:720px){
:root{--anseio-nav-header-h:66px;}
.anseio-v39-header{padding:9px 10px;gap:7px;}
.anseio-v39-header-left,.anseio-v39-header-right{gap:6px;}
.anseio-v39-brand{width:min(126px,33vw);max-width:126px;min-width:96px;}
.anseio-v39-brand img{max-height:35px;}
.anseio-v39-icon-btn,.anseio-v39-theme-btn{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:6px;}
.anseio-v39-icon-btn svg,.anseio-v39-theme-btn svg{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;flex-basis:18px!important;}
.anseio-v39-header-right [data-shell-favorites]{display:none;}
.anseio-v39-quick-wrap{display:none;}
.anseio-v39-search-panel{top:calc(var(--anseio-nav-header-h) + 7px);left:10px;right:10px;width:auto;max-height:calc(100vh - var(--anseio-nav-header-h) - 18px);}
.anseio-v39-search-result{grid-template-columns:48px minmax(0,1fr);}
.anseio-v39-search-result img{width:48px;height:60px;}
.anseio-v39-search-price{grid-column:2;}
.anseio-v39-drawer,.anseio-v39-drawer.left,.anseio-v39-drawer.right{width:100vw;max-width:100vw;border:0;}
.anseio-v39-drawer-inner{padding:18px 16px;}
.anseio-v39-drawer-logo{max-height:45px;margin-bottom:13px;}
.anseio-v39-account-top{grid-template-columns:64px minmax(0,1fr) 40px;grid-template-rows:auto auto;place-items:initial;align-items:center;column-gap:12px;row-gap:4px;text-align:left;padding-bottom:14px;border-bottom:1px solid var(--anseio-nav-line);}
.anseio-v39-account-top>[data-shell-avatar]{grid-column:1;grid-row:1/span 2;}
.anseio-v39-account-top>[data-shell-theme]{grid-column:3;grid-row:1;justify-self:end;}
.anseio-v39-account-name{grid-column:2;grid-row:1;align-self:end;}
.anseio-v39-account-email{grid-column:2/4;grid-row:2;align-self:start;}
.anseio-v39-avatar-btn{width:64px;height:64px;}
.anseio-v39-drawer-nav a,.anseio-v39-account-link{min-height:45px;padding:12px 14px;font-size:.91rem;}
.anseio-experience-loader__inner{width:min(94vw,460px);padding:28px 20px 25px;border-radius:6px;}
.anseio-experience-loader__lotus{width:min(285px,78vw);}
}
@media (max-width:380px){
.anseio-v39-brand{width:105px;max-width:105px;}
.anseio-v39-icon-btn,.anseio-v39-theme-btn{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;}
.anseio-v39-header-left,.anseio-v39-header-right{gap:4px;}
}
@media (prefers-reduced-motion:reduce){
.anseio-v39-header,.anseio-v39-icon-btn,.anseio-v39-theme-btn,.anseio-v39-quick-wrap,.anseio-v39-quick-nav a,.anseio-v39-drawer,.anseio-v39-backdrop,.anseio-v39-search-panel,.anseio-experience-loader{transition:none!important;}
}


/* ETAPA 15.6 — contraste determinístico dos controles do header. */
.anseio-v39-header .anseio-v39-icon-btn,
.anseio-v39-header .anseio-v39-theme-btn{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  padding:0!important;
  background:rgba(255,255,255,.92)!important;
  color:#3b0c15!important;
  border-color:rgba(120,0,7,.28)!important;
  box-shadow:0 7px 18px rgba(59,17,23,.13)!important;
  opacity:1!important;
  filter:none!important;
}
.anseio-v39-header .anseio-v39-icon-btn>span[aria-hidden="true"]{display:grid!important;place-items:center!important;width:100%;height:100%;color:inherit!important}
.anseio-v39-header .anseio-v39-icon-btn svg,
.anseio-v39-header .anseio-v39-theme-btn svg{
  display:block!important;
  stroke:currentColor!important;
  color:inherit!important;
  opacity:1!important;
  filter:none!important;
}
.anseio-v39-badge[hidden]{display:none!important}
html[data-theme="dark"] .anseio-v39-header .anseio-v39-icon-btn,
html[data-theme="dark"] .anseio-v39-header .anseio-v39-theme-btn{
  background:#13090d!important;
  color:#ffe8ee!important;
  border-color:rgba(255,219,227,.38)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.46)!important;
}
html[data-theme="dark"] .anseio-v39-header .anseio-v39-icon-btn:hover,
html[data-theme="dark"] .anseio-v39-header .anseio-v39-icon-btn:focus-visible,
html[data-theme="dark"] .anseio-v39-header .anseio-v39-theme-btn:hover,
html[data-theme="dark"] .anseio-v39-header .anseio-v39-theme-btn:focus-visible{background:#2a131b!important;border-color:#ffdbe3!important}
