/* =========================================================
   IO PARFUM — REFINO SEGURO v3.6.1
   Mantém a estrutura do tema e só corrige proporções.
   ========================================================= */

:root{
  --pa-header-max: var(--pa-max);
  --pa-hero-max: var(--pa-max);
}

/* ---------------------------------------------------------
   HEADER DESKTOP — apenas correção de proporção
   --------------------------------------------------------- */
@media(min-width: 1025px){
  .site-header .pa-container{
    width:min(calc(100% - 40px), var(--pa-header-max)) !important;
    max-width:var(--pa-header-max) !important;
  }

  .site-header .pa-header-main{
    min-height:78px !important;
    padding-top:8px !important;
    padding-bottom:8px !important;
    gap:22px !important;
    align-items:center !important;
  }

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

  .site-header .pa-search{
    max-width:640px !important;
    width:100% !important;
  }

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

  .site-header .pa-search button{
    right:7px !important;
    width:32px !important;
    height:32px !important;
  }

  .site-header .pa-header-actions{
    gap:10px !important;
    align-items:center !important;
  }

  /* Perfil logado */
  body.logged-in .site-header .pa-account-menu{
    min-width:160px !important;
  }

  body.logged-in .site-header .pa-account-trigger{
    min-width:160px !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;
    height:36px !important;
    min-width:36px !important;
    flex:0 0 36px !important;
  }

  body.logged-in .site-header .pa-account-user__name{
    max-width:118px !important;
    font-size:13px !important;
    line-height:1.12 !important;
    font-weight:600 !important;
    letter-spacing:0 !important;
  }

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

  body.logged-in .site-header .pa-account-arrow.pa-ui-icon{
    --pa-icon-size:14px !important;
    width:14px !important;
    height:14px !important;
    min-width:14px !important;
    flex:0 0 14px !important;
  }

  /* Visitante */
  body:not(.logged-in) .site-header .pa-guest-account{
    min-width:164px !important;
    height:48px !important;
    min-height:48px !important;
    padding:6px 8px !important;
    gap:8px !important;
    border-radius:14px !important;
  }

  body:not(.logged-in) .site-header .pa-guest-account__avatar{
    width:36px !important;
    height:36px !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{
    font-size:10.5px !important;
    line-height:1.1 !important;
  }

  /* Carrinho */
  .site-header .pa-cart-action{
    width:46px !important;
    min-width:46px !important;
    height:46px !important;
    min-height:46px !important;
    border-radius:14px !important;
  }

  .site-header .pa-cart-action .count,
  .site-header .pa-cart-action .pa-cart-count,
  .site-header .pa-cart-badge{
    transform:scale(1) !important;
  }

  /* Navegação */
  .site-header .pa-nav-inner{
    min-height:44px !important;
  }

  .site-header .pa-menu{
    gap:26px !important;
  }

  .site-header .pa-menu > li > a{
    min-height:44px !important;
    font-size:12.5px !important;
    font-weight:600 !important;
    letter-spacing:.03em !important;
    padding:0 !important;
  }
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */
@media(min-width: 769px) and (max-width: 1024px){
  .site-header .pa-container{
    width:min(calc(100% - 40px), var(--pa-max)) !important;
  }

  .site-header .pa-logo .custom-logo{
    max-width:180px !important;
    max-height:50px !important;
  }

  .site-header .pa-search input[type="search"]{
    height:42px !important;
    font-size:13px !important;
  }
}

/* ---------------------------------------------------------
   MOBILE
   Mantém a estrutura atual, apenas evita aperto visual.
   --------------------------------------------------------- */
@media(max-width: 768px){
  .site-header .pa-header-main{
    padding-top:10px !important;
    padding-bottom:10px !important;
  }

  .site-header .pa-logo .custom-logo{
    max-width:136px !important;
    max-height:44px !important;
  }
}

/* ---------------------------------------------------------
   HERO / CARROSSEL — alinhado e com respiro sem exagero
   --------------------------------------------------------- */
body.home .pa-hero-carousel{
  width:min(calc(100% - 40px), var(--pa-hero-max)) !important;
  max-width:var(--pa-hero-max) !important;
  margin:14px auto 28px !important;
  border-radius:16px !important;
  border:1px solid rgba(59,46,38,.055) !important;
  box-shadow:none !important;
}

@media(min-width: 1025px){
  body.home .pa-hero-carousel{
    height:min(var(--pa-hero-carousel-desktop-height,500px), 430px) !important;
  }
}

body.home .pa-hero-carousel + #categorias{
  padding-top:52px !important;
}

@media(max-width: 768px){
  body.home .pa-hero-carousel{
    width:calc(100% - 20px) !important;
    margin:12px auto 20px !important;
    border-radius:13px !important;
    height:var(--pa-hero-carousel-mobile-height,330px) !important;
  }

  body.home .pa-hero-carousel + #categorias{
    padding-top:42px !important;
  }
}
