/* =========================================================
   IO PARFUM — HEADER DESKTOP GLOBAL v3.9.8
   O desktop usa exatamente a mesma estrutura em Home, loja,
   produto, carrinho, checkout, páginas e conta logada.
   Mobile/tablet não são alterados aqui.
   ========================================================= */

@media(min-width:1025px){

  /* O cabeçalho não muda conforme classes do WooCommerce/página. */
  body .site-header{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    background:rgba(250,247,242,.97) !important;
    border-bottom:1px solid var(--pa-border) !important;
  }

  /* Mesmo eixo horizontal da Home em qualquer página. */
  body .site-header .pa-header-main,
  body .site-header .pa-nav-inner{
    width:min(calc(100% - 80px), 1220px) !important;
    max-width:1220px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  /* Linha principal: logo | busca | conta + carrinho */
  body .site-header .pa-header-main{
    min-height:78px !important;
    height:78px !important;
    display:grid !important;
    grid-template-columns:220px minmax(320px,640px) auto !important;
    grid-template-rows:78px !important;
    gap:22px !important;
    align-items:center !important;
    justify-content:space-between !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
  }

  body .site-header .pa-logo{
    grid-column:1 !important;
    grid-row:1 !important;
    justify-self:start !important;
    align-self:center !important;
    width:220px !important;
    min-width:220px !important;
    max-width:220px !important;
    margin:0 !important;
    padding:0 !important;
  }

  body .site-header .pa-logo .custom-logo-link{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:auto !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
  }

  body .site-header .pa-logo .custom-logo{
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-width:205px !important;
    max-height:56px !important;
    margin:0 !important;
  }

  /* Busca sempre com o mesmo tamanho da Home. */
  body .site-header .pa-search{
    grid-column:2 !important;
    grid-row:1 !important;
    justify-self:center !important;
    align-self:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:640px !important;
    margin:0 !important;
  }

  body .site-header .pa-search input[type="search"]{
    width:100% !important;
    height:44px !important;
    min-height:44px !important;
    margin:0 !important;
    padding:0 46px 0 18px !important;
    border-radius:999px !important;
    font-size:13px !important;
  }

  body .site-header .pa-search button{
    top:6px !important;
    right:7px !important;
    width:32px !important;
    height:32px !important;
    margin:0 !important;
    padding:0 !important;
  }

  /* Ações sempre na mesma posição e proporção. */
  body .site-header .pa-header-actions{
    grid-column:3 !important;
    grid-row:1 !important;
    justify-self:end !important;
    align-self:center !important;
    min-width:220px !important;
    height:48px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:10px !important;
    margin:0 !important;
    padding:0 !important;
  }

  body .site-header .pa-header-actions > .pa-account-menu,
  body .site-header .pa-header-actions > .pa-guest-account{
    order:1 !important;
    align-self:center !important;
    margin:0 !important;
  }

  body .site-header .pa-header-actions > .pa-cart-action{
    order:2 !important;
    align-self:center !important;
    margin:0 !important;
  }

  /* Visitante — mesma aparência da Home. */
  body:not(.logged-in) .site-header .pa-guest-account{
    width:auto !important;
    min-width:164px !important;
    max-width:none !important;
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    padding:6px 8px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    border-radius:14px !important;
  }

  body:not(.logged-in) .site-header .pa-guest-account__icon.pa-ui-icon{
    width:36px !important;
    min-width:36px !important;
    max-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    max-height:36px !important;
    flex:0 0 36px !important;
    background-size:20px 20px !important;
  }

  body:not(.logged-in) .site-header .pa-guest-account__copy strong{
    font-size:13px !important;
    line-height:1.1 !important;
  }

  body:not(.logged-in) .site-header .pa-guest-account__copy small{
    margin-top:3px !important;
    font-size:10.5px !important;
    line-height:1.1 !important;
  }

  /* Usuário logado — mesmas dimensões. */
  body.logged-in .site-header .pa-account-menu{
    min-width:164px !important;
    height:48px !important;
  }

  body.logged-in .site-header .pa-account-trigger{
    min-width:164px !important;
    height:48px !important;
    min-height:48px !important;
    padding:6px 8px !important;
    gap:8px !important;
    border-radius:14px !important;
  }

  body.logged-in .site-header .pa-account-avatar{
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    flex:0 0 36px !important;
  }

  body.logged-in .site-header .pa-account-user__name{
    font-size:13px !important;
    line-height:1.1 !important;
  }

  body.logged-in .site-header .pa-account-user__label{
    margin-top:3px !important;
    font-size:10.5px !important;
    line-height:1.1 !important;
  }

  /* Carrinho igual em qualquer página. */
  body .site-header .pa-cart-action{
    position:relative !important;
    width:46px !important;
    min-width:46px !important;
    max-width:46px !important;
    height:46px !important;
    min-height:46px !important;
    max-height:46px !important;
    display:grid !important;
    place-items:center !important;
    padding:0 !important;
    border-radius:14px !important;
  }

  body .site-header .pa-cart-action .pa-cart-icon{
    position:relative !important;
    display:grid !important;
    place-items:center !important;
    width:24px !important;
    height:24px !important;
  }

  body .site-header .pa-cart-action .pa-cart-icon svg{
    width:21px !important;
    height:21px !important;
  }

  /* Menu inferior também permanece idêntico à Home. */
  body .site-header .pa-nav{
    width:100% !important;
    min-height:44px !important;
    margin:0 !important;
    padding:0 !important;
    border-top:1px solid var(--pa-border) !important;
  }

  body .site-header .pa-nav-inner{
    min-height:44px !important;
    height:44px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  body .site-header .pa-mobile-drawer{
    width:100% !important;
  }

  body .site-header .pa-menu{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:center !important;
    gap:26px !important;
    margin:0 !important;
    padding:0 !important;
  }

  body .site-header .pa-menu > li > a{
    min-height:44px !important;
    display:flex !important;
    align-items:center !important;
    padding:0 !important;
    font-size:12.5px !important;
    line-height:1 !important;
    font-weight:600 !important;
    letter-spacing:.03em !important;
    white-space:nowrap !important;
  }

  /* Botão mobile nunca interfere no desktop. */
  body .site-header .pa-header-mobile-toggle{
    display:none !important;
  }
}
