/* ANSEIO ÍNTIMO — 15.8.0 — experiência mobile consolidada e endurecida
   Autoridade final apenas para a área pública em telas pequenas. */

@media (max-width: 820px){
  :root{--anseio-nav-header-h:58px!important}
  html{overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body.anseio-public-page{overflow-x:hidden;min-width:0;padding-bottom:env(safe-area-inset-bottom)}
  body.anseio-public-page *,body.anseio-public-page *::before,body.anseio-public-page *::after{box-sizing:border-box}
  body.anseio-public-page :where(main,section,article,aside,nav,header,footer,form,fieldset,div){min-width:0}
  body.anseio-public-page :where(img,video,svg,canvas){max-width:100%}

  /* Header compacto, simétrico e sem sobreposição da marca. */
  #anseio-stable-shell{height:58px!important;z-index:5000}
  .anseio-v39-header{
    height:58px!important;min-height:58px!important;
    padding:8px max(10px,env(safe-area-inset-left))!important;
    gap:0!important;display:grid!important;
    grid-template-columns:92px minmax(88px,1fr) 92px!important;
    align-items:center!important;
    background:linear-gradient(90deg,rgba(255,224,233,.92),rgba(255,248,250,.90),rgba(255,224,233,.92))!important;
    -webkit-backdrop-filter:blur(16px) saturate(125%)!important;backdrop-filter:blur(16px) saturate(125%)!important;
  }
  html[data-theme="dark"] .anseio-v39-header{background:linear-gradient(90deg,rgba(8,3,5,.94),rgba(23,9,14,.92),rgba(8,3,5,.94))!important}
  .anseio-v39-header-left,.anseio-v39-header-right{gap:4px!important;width:92px!important;min-width:92px!important;position:relative;z-index:2}
  .anseio-v39-header-left{grid-column:1;justify-self:start}
  .anseio-v39-header-right{grid-column:3;justify-self:end}
  .anseio-v39-brand{
    grid-column:2!important;position:static!important;left:auto!important;top:auto!important;transform:none!important;
    justify-self:center!important;width:108px!important;min-width:0!important;max-width:108px!important;height:44px!important;
    z-index:1!important;padding:0!important;overflow:visible!important;
  }
  .anseio-v39-brand img{display:block!important;width:108px!important;max-width:108px!important;height:34px!important;max-height:34px!important;object-fit:contain!important;object-position:center!important;filter:none!important;opacity:1!important}
  html[data-theme="dark"] body.anseio-public-page .anseio-v39-brand img,
  html[data-theme="dark"] body.anseio-public-page .anseio-v39-drawer-logo,
  html[data-theme="dark"] body.anseio-public-page .anseio-footer-brand img{filter:none!important;opacity:1!important;mix-blend-mode:normal!important}
  .anseio-v39-header .anseio-v39-icon-btn,.anseio-v39-header .anseio-v39-theme-btn{
    width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
    border-radius:6px!important;background:rgba(255,255,255,.84)!important;
    box-shadow:0 5px 14px rgba(59,17,23,.10)!important;
  }
  html[data-theme="dark"] .anseio-v39-header .anseio-v39-icon-btn,
  html[data-theme="dark"] .anseio-v39-header .anseio-v39-theme-btn{background:rgba(27,13,18,.88)!important;color:#ffe5eb!important;border-color:rgba(255,219,227,.24)!important}
  .anseio-v39-header .anseio-v39-icon-btn svg,.anseio-v39-header .anseio-v39-theme-btn svg{width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important}
  .anseio-v39-header-right [data-shell-favorites]{display:none!important}
  .anseio-v39-badge{top:-4px!important;right:-4px!important;min-width:18px!important;height:18px!important;padding:0 4px!important;font-size:9px!important}
  .anseio-v39-quick-wrap{display:none!important}

  /* Drawers e pesquisa pensados para toque. */
  .anseio-v39-search-panel{top:64px!important;left:8px!important;right:8px!important;width:auto!important;max-height:calc(100svh - 72px)!important;padding:14px!important}
  .anseio-v39-search-form{grid-template-columns:minmax(0,1fr) auto!important}
  .anseio-v39-search-form input{min-height:48px!important;font-size:16px!important}
  .anseio-v39-search-form button{min-height:48px!important;padding-inline:14px!important}
  .anseio-v39-drawer,.anseio-v39-drawer.left,.anseio-v39-drawer.right{width:100vw!important;max-width:100vw!important;height:100svh!important;padding-top:env(safe-area-inset-top)!important}
  .anseio-v39-drawer-inner{padding:18px 16px max(18px,env(safe-area-inset-bottom))!important}
  .anseio-v39-drawer-logo{width:190px!important;max-width:58vw!important;max-height:44px!important;filter:none!important}
  .anseio-v39-drawer-nav a,.anseio-v39-account-link,.anseio-v39-auth-actions button{min-height:48px!important;font-size:14px!important}

  /* Home: hierarquia menor, elegante e mais legível. */
  body.home-page .hero-text-section{padding:58px 18px 52px!important}
  body.home-page .hero-content-below{width:min(100%,390px)!important;margin-inline:auto!important;text-align:center!important}
  body.home-page .hero-content-below h2{
    max-width:10ch!important;margin:0 auto!important;
    font-size:clamp(2.7rem,12.8vw,3.75rem)!important;line-height:.94!important;letter-spacing:-.025em!important;
    overflow-wrap:normal!important;word-break:normal!important;
  }
  body.home-page .hero-content-below p{max-width:28ch!important;margin:26px auto 0!important;font-size:clamp(1rem,4.7vw,1.18rem)!important;line-height:1.58!important}
  body.home-page .anseio-home-slogan-tan{max-width:100%!important;margin:30px auto 0!important;font-size:clamp(2rem,9vw,2.65rem)!important;line-height:1.05!important}
  body.home-page #anseio-size-shop.anseio2619-size-shop{padding:52px 16px!important}
  body.home-page #anseio-size-shop .section-title{margin-bottom:24px!important}
  body.home-page #anseio-size-shop .section-title h2{font-size:clamp(2rem,8.5vw,2.65rem)!important;line-height:1.08!important}
  body.home-page #anseio-size-shop .section-title p{font-size:.94rem!important;line-height:1.55!important}
  body.home-page #anseio-size-shop .anseio-size-buttons{gap:8px!important}
  body.home-page #anseio-size-shop .anseio-size-btn{min-width:54px!important;min-height:44px!important;height:44px!important;padding-inline:11px!important;font-size:.79rem!important}
  body.home-page #anseio-size-shop .anseio-size-btn[data-size-shop="Plus Size"]{min-width:106px!important}

  /* Vitrines: imagens específicas por categoria e leitura editorial. */
  body.home-page .home-vitrines{padding:52px 14px 60px!important}
  body.home-page .home-vitrines>.container{width:100%!important;max-width:720px!important;margin-inline:auto!important}
  body.home-page .home-vitrines .section-title{margin-bottom:24px!important}
  body.home-page .home-vitrines .section-title h2{font-size:clamp(2rem,8.6vw,2.65rem)!important;line-height:1.08!important}
  body.home-page .home-vitrine-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body.home-page .home-vitrine-card{aspect-ratio:3/4!important;min-height:0!important;padding:16px!important;border-radius:6px!important}
  body.home-page .home-vitrine-card::before{background-position:center 24%!important}
  body.home-page .home-vitrine-card::after{background:linear-gradient(180deg,rgba(12,0,4,.02) 30%,rgba(12,0,4,.2) 54%,rgba(12,0,4,.9) 100%)!important}
  body.home-page .home-vitrine-card small{font-size:.68rem!important;letter-spacing:.14em!important}
  body.home-page .home-vitrine-card h3{margin:6px 0 0!important;font-size:clamp(1.2rem,6vw,1.65rem)!important;line-height:1.05!important}
  body.home-page .home-vitrine-card p{display:none!important}
  body.home-page .home-vitrine-card[data-card="lingerie"]{--card-image:url("../images/vitrines/lingerie.webp")!important}
  body.home-page .home-vitrine-card[data-card="body"]{--card-image:url("../images/vitrines/body.webp")!important}
  body.home-page .home-vitrine-card[data-card="linha-noite"]{--card-image:url("../images/vitrines/linha-noite.webp")!important}
  body.home-page .home-vitrine-card[data-card="moda-praia"]{--card-image:url("../images/vitrines/moda-praia.webp")!important}
  body.home-page .home-vitrine-card[data-card="sex-shop"]{--card-image:url("../images/vitrines/sex-shop.webp")!important}
  body.home-page .home-vitrine-card[data-card="acessorios"]{--card-image:url("../images/vitrines/acessorios.webp")!important}

  /* Catálogo e cards: duas colunas úteis, sem texto esmagado. */
  body.anseio-public-page :where(.products-grid,.product-grid,.anseio-section-grid,.anseio-catalog-grid,.anseio-favorites7-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body.anseio-public-page :where(.product-card,.anseio-product-card,.anseio-catalog-card,.anseio-favorite7-card){min-width:0!important;border-radius:6px!important;overflow:hidden!important}
  body.anseio-public-page :where(.product-card h3,.anseio-product-card h3,.anseio-catalog-card h3){font-size:.96rem!important;line-height:1.25!important}
  body.anseio-public-page :where(.product-card p,.anseio-product-card p,.anseio-catalog-card p){font-size:.78rem!important;line-height:1.4!important}

  /* Carrinho, favoritos e checkout: uma coluna, imagens estáveis e ações alcançáveis. */
  .anseio-cart7-page,.anseio-favorites7-page{padding:24px 12px 44px!important}
  .anseio-cart7-layout{grid-template-columns:1fr!important;gap:16px!important}
  .anseio-cart7-item{grid-template-columns:82px minmax(0,1fr)!important;grid-template-areas:"image copy" "image price" "controls controls"!important;gap:8px 12px!important;padding:10px!important}
  .anseio-cart7-image{width:82px!important;height:110px!important;aspect-ratio:auto!important}
  .anseio-cart7-price{text-align:left!important;padding-top:0!important}
  .anseio-cart7-controls{grid-template-columns:40px 38px 40px minmax(0,1fr)!important;gap:7px!important}
  .anseio-cart7-controls .anseio-cart7-product{display:none!important}
  .anseio-cart7-controls .anseio-cart7-remove{padding-inline:10px!important}
  .anseio-cart7-summary{position:static!important;top:auto!important;padding:18px!important}
  .anseio-cart7-drawer{z-index:7200!important;width:100vw!important;max-width:100vw!important;height:100svh!important}
  .anseio-cart7-backdrop{z-index:7190!important}
  .anseio-cart7-drawer-head{padding:16px!important;padding-top:max(16px,env(safe-area-inset-top))!important}
  .anseio-cart7-drawer-items{padding:10px 14px!important}
  .anseio-cart7-mini{grid-template-columns:66px minmax(0,1fr)!important;grid-template-areas:"image copy" "image price" "controls controls"!important}
  .anseio-cart7-mini-image{width:66px!important;height:88px!important;aspect-ratio:auto!important}
  .anseio-cart7-mini-price{text-align:left!important}
  .anseio-cart7-drawer-summary{padding:14px 16px max(16px,env(safe-area-inset-bottom))!important}

  .anseio-checkout8-page{padding-inline:12px!important}
  .anseio-checkout8-layout,.anseio-checkout8-main,.anseio-checkout8-side{grid-template-columns:1fr!important;min-width:0!important}
  .anseio-checkout8-steps{overflow-x:auto!important;display:flex!important;gap:8px!important;padding-bottom:4px!important;scrollbar-width:none}
  .anseio-checkout8-steps::-webkit-scrollbar{display:none}
  .anseio-checkout8-steps>*{flex:0 0 auto!important;min-width:145px!important}
  .anseio-checkout8-review-item{grid-template-columns:62px minmax(0,1fr)!important}
  .anseio-checkout8-review-item img{width:62px!important;height:82px!important;object-fit:cover!important}

  /* Modais e formulários sem corte por teclado ou barras do navegador. */
  body.anseio-public-page :where(.anseio-modal-card,.anseio-product-panel,.anseio-product-detail,[role="dialog"]){max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 20px)!important;border-radius:6px!important}
  body.anseio-public-page .anseio-product-modal{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;inset:0!important}
  body.anseio-public-page :where(input,select,textarea){font-size:16px!important}
  .anseio-auth-modal,.anseio-customer-modal{width:calc(100vw - 16px)!important;max-height:calc(100svh - 20px)!important;overflow:auto!important}

  /* Lia: painel compacto e acima da barra segura do aparelho. */
  .anseio-support{right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;z-index:6900!important}
  .anseio-support-toggle{width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important}
  .anseio-support-panel{right:-4px!important;bottom:0!important;width:calc(100vw - 16px)!important;max-height:calc(100svh - 18px)!important}
  .anseio-support-panel[data-support-stage="active"] .anseio-support-chat{max-height:28svh!important}

  /* Rodapé: marca vetorial oficial sem duplicação nem filtro branco. */
  body.anseio-public-page .anseio-site-footer>.container{width:calc(100% - 28px)!important;padding:42px 0 24px!important}
  body.anseio-public-page .anseio-footer-trust{margin-bottom:34px!important}
  body.anseio-public-page .anseio-footer-trust>span{padding:15px 16px!important}
  body.anseio-public-page .anseio-footer-grid{grid-template-columns:1fr 1fr!important;gap:30px 22px!important}
  body.anseio-public-page .anseio-footer-brand{grid-column:1/-1!important}
  body.anseio-public-page .anseio-footer-brand img{display:block!important;width:min(260px,78vw)!important;height:auto!important;max-height:58px!important;object-fit:contain!important;object-position:left center!important;margin:0 0 18px!important;filter:none!important}
  body.anseio-public-page .anseio-footer-brand h2{display:none!important}
  body.anseio-public-page .anseio-footer-brand p{max-width:31ch!important;font-size:.96rem!important;line-height:1.65!important}
  body.anseio-public-page .anseio-footer-column h2{font-size:1.35rem!important}
  body.anseio-public-page .anseio-footer-column a{min-height:38px!important;display:flex!important;align-items:center!important}
  body.anseio-public-page .anseio-footer-bottom{gap:12px!important;padding-top:24px!important}
}

@media (max-width: 430px){
  body.anseio-public-page .anseio-footer-grid{grid-template-columns:1fr!important}
  body.anseio-public-page .anseio-footer-brand{grid-column:auto!important}
}

@media (max-width: 350px){
  .anseio-v39-header{grid-template-columns:86px minmax(76px,1fr) 86px!important;padding-inline:5px!important}
  .anseio-v39-header-left,.anseio-v39-header-right{width:86px!important;min-width:86px!important;gap:2px!important}
  .anseio-v39-header .anseio-v39-icon-btn{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
  .anseio-v39-brand,.anseio-v39-brand img{width:96px!important;max-width:96px!important}
  body.home-page .home-vitrine-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.home-page .home-vitrine-card{aspect-ratio:4/5!important}
}

@media (min-width: 821px){
  /* A correção do vetor vale também no tema escuro desktop. */
  html[data-theme="dark"] body.anseio-public-page .anseio-v39-brand img,
  html[data-theme="dark"] body.anseio-public-page .anseio-v39-drawer-logo,
  html[data-theme="dark"] body.anseio-public-page .anseio-footer-brand img{filter:none!important;opacity:1!important;mix-blend-mode:normal!important}
  body.anseio-public-page .anseio-footer-brand h2{display:none!important}
  body.home-page .home-vitrine-card[data-card="lingerie"]{--card-image:url("../images/vitrines/lingerie.webp")!important}
  body.home-page .home-vitrine-card[data-card="body"]{--card-image:url("../images/vitrines/body.webp")!important}
  body.home-page .home-vitrine-card[data-card="linha-noite"]{--card-image:url("../images/vitrines/linha-noite.webp")!important}
  body.home-page .home-vitrine-card[data-card="moda-praia"]{--card-image:url("../images/vitrines/moda-praia.webp")!important}
  body.home-page .home-vitrine-card[data-card="sex-shop"]{--card-image:url("../images/vitrines/sex-shop.webp")!important}
  body.home-page .home-vitrine-card[data-card="acessorios"]{--card-image:url("../images/vitrines/acessorios.webp")!important}
}
@media (max-width:820px){
  .anseio-v39-brand{width:clamp(112px,36vw,146px)!important;max-width:clamp(112px,36vw,146px)!important}
  .anseio-v39-brand img{width:100%!important;max-width:100%!important}
  body.home-page .hero-content-below h2{max-width:11.5ch!important}
  body.home-page .hero-content-below h2 br{display:none!important}
}
@media (max-width:820px){
  body.home-page .hero-carousel[data-has-mobile-media="false"]{
    height:clamp(148px,43.5vw,300px)!important;min-height:148px!important;max-height:300px!important;
    background:var(--anseio-theme-surface-muted)!important;
  }
  body.home-page :where(.carousel-slide,.secondary-slide)[data-has-mobile-media="false"] .anseio-banner-media :where(img,video),
  body.home-page :where(.carousel-slide,.secondary-slide)[data-has-mobile-media="false"]>img{object-fit:contain!important;object-position:center!important}
  body.home-page :where(.carousel-slide,.secondary-slide)[data-has-mobile-media="false"]::after{display:none!important}
  body.home-page .hero-carousel[data-has-mobile-media="false"] .carousel-dots{bottom:8px!important}
}

/* 15.6.12 — refinamentos finais da segunda auditoria mobile */
body.home-page .hero-content-below h2>span{display:block}

@media (max-width:820px){
  body.home-page .hero-content-below h2{
    width:100%!important;max-width:none!important;
    font-size:clamp(2.42rem,11.3vw,3.42rem)!important;
    line-height:.96!important;letter-spacing:-.03em!important;
  }
  body.home-page .hero-content-below h2>span{display:block!important;white-space:normal!important}

  .anseio-checkout8-progress{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;margin-bottom:18px!important;overflow:visible!important;
  }
  .anseio-checkout8-progress span{
    min-width:0!important;min-height:42px!important;padding:7px 5px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
    color:var(--anseio-theme-muted)!important;background:var(--anseio-theme-surface)!important;
    border:1px solid var(--checkout8-border)!important;border-radius:6px!important;
    font-size:clamp(.61rem,2.8vw,.74rem)!important;font-weight:700!important;line-height:1.1!important;
    white-space:nowrap!important;overflow:visible!important;
  }
  .anseio-checkout8-progress b{
    display:grid!important;place-items:center!important;flex:0 0 20px!important;
    width:20px!important;height:20px!important;font-size:.64rem!important;
  }
  .anseio-checkout8-progress span.is-active{
    color:#fff7f8!important;background:var(--anseio-theme-accent)!important;
    border-color:var(--anseio-theme-accent)!important;
  }
}

@media (max-width:350px){
  body.home-page .hero-content-below h2{font-size:clamp(2.22rem,11.4vw,2.58rem)!important}
  .anseio-checkout8-progress span{font-size:.58rem!important;gap:3px!important;padding-inline:3px!important}
  .anseio-checkout8-progress b{display:none!important}
}

@media (max-width:820px){
  body.anseio-public-page main{padding-bottom:max(82px,calc(66px + env(safe-area-inset-bottom)))}
  .anseio-support-toggle{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:5px!important}
  .anseio-support-panel{bottom:0!important}
  .anseio-account-nav{scroll-snap-type:x proximity!important;overscroll-behavior-inline:contain!important;padding-inline:1px 18px!important}
  .anseio-account-nav a{scroll-snap-align:start!important}
}


/* 15.6.12 — correções da segunda auditoria independente */
@media (max-width:820px){
  .anseio-v39-drawer-close{
    display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
    width:100%!important;min-height:46px!important;margin:0 0 18px!important;padding:10px 14px!important;
    border:1px solid var(--anseio-theme-border)!important;border-radius:6px!important;
    background:var(--anseio-theme-surface)!important;color:var(--anseio-theme-text)!important;
    font:700 .83rem/1 Poppins,Arial,sans-serif!important;letter-spacing:.02em!important;
  }
  .anseio-v39-drawer-close svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
  body.anseio-shell-lock .anseio-support,
  body.anseio-cart7-lock .anseio-support{display:none!important}
  body[data-page="carrinho"] .anseio-support,
  body[data-page="favoritos"] .anseio-support,
  body[data-page="pagamento"] .anseio-support,
  body[data-page="minha-conta"] .anseio-support,
  body[data-page="rastrear-pedido"] .anseio-support,
  body[data-page="contato"] .anseio-support,
  body[data-page="conheca-a-anseio"] .anseio-support,
  body[data-page="auth-callback"] .anseio-support,
  body[data-legal-slug] .anseio-support{display:none!important}
  body.anseio-support-open .anseio-support-toggle{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
  body.home-page .hero-content-below h2{max-width:12ch!important;margin-inline:auto!important}
  body.home-page .hero-content-below h2>span{white-space:nowrap!important}
}
@media (max-width:360px){
  body.home-page .hero-content-below h2>span{white-space:normal!important}
}

@media (max-width:430px){
  body.home-page .hero-content-below h2{font-size:clamp(2.2rem,10vw,2.75rem)!important;line-height:.98!important}
  body.home-page #anseio-size-shop .section-title{padding-inline:38px!important}
}

/* 15.9.9 — silhueta preservada com contorno branco fino no modo noturno. */
html[data-theme="dark"] body.anseio-public-page :is(.anseio-v39-brand img,.anseio-v39-drawer-logo,.anseio-footer-brand img){
  filter:drop-shadow(.6px 0 0 rgba(255,255,255,.82)) drop-shadow(-.6px 0 0 rgba(255,255,255,.82)) drop-shadow(0 .6px 0 rgba(255,255,255,.82)) drop-shadow(0 -.6px 0 rgba(255,255,255,.82)) drop-shadow(0 0 2px rgba(255,255,255,.3))!important;
}
