/* Current mobile navigation typography */
/* Typography of the native mobile navigation, Figma 6149:16204. */
@media (max-width:767px) {
 body .nav-sections .navigation .level0 > .level-top,
 body .nav-sections .navigation .level0 > .level-top span,
 body .nav-sections .navigation .submenu a,
 body .nav-sections .navigation .submenu a span {
  font-family:Montserrat,sans-serif!important;
  font-size:14px!important;
  font-style:normal!important;
  font-weight:400!important;
  line-height:20px!important;
  letter-spacing:0!important;
  text-transform:none!important;
 }
 body .nav-sections .navigation .level0 > .level-top {color:#141414!important;}
 body .nav-sections .navigation .submenu a {color:#fff!important;}
 body .nav-sections .navigation .submenu .all-category > a {
  font-weight:600!important;
 }
}

/* Current desktop header behavior */
/* Desktop header aligned with the approved component. */
@media (min-width: 768px) {
  /* The legacy theme opens the account dropdown on pointer hover. Keep the
     existing checkbox/focus interactions, but do not open it on hover alone. */
  body:not(.checkout-index-index) .page-header .customer-conta:hover .dropdown-content {
    display: none;
  }

  body:not(.checkout-index-index) .page-header .customer-conta #toggle-user-menu:checked ~ .dropdown-content,
  body:not(.checkout-index-index) .page-header .customer-conta:focus-within .dropdown-content {
    display: block;
  }

  /* No hover fill is defined for the cart in Figma. */
  body:not(.checkout-index-index) .page-header .minicart-wrapper:hover {
    background-color: transparent;
  }

  /* All three header labels use 12/400 on line one and 14/600 on line two. */
  body:not(.checkout-index-index) .page-header .df-header-copy > span,
  body:not(.checkout-index-index) .page-header .df-cart-label-first {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
  }

  body:not(.checkout-index-index) .page-header .df-header-copy > strong,
  body:not(.checkout-index-index) .page-header .df-cart-label-second {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
  }

  body:not(.checkout-index-index) .page-header .minicart-wrapper .action.showcart .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  body:not(.checkout-index-index) .page-header .df-cart-label-first,
  body:not(.checkout-index-index) .page-header .df-cart-label-second {
    display: block;
    color: inherit;
    white-space: nowrap;
  }
}

/* Drawer, breakpoint and complete categories panel fixes */
/* Mobile drawer, responsive navigation and complete category panel. */
@media (min-width: 768px) {
  /* The theme's legacy hover rule has high specificity. The account menu opens
     only through the existing checkbox or keyboard focus. */
  body:not(.checkout-index-index) .page-header .customer-conta:hover .dropdown-content {
    display: none !important;
  }

  body:not(.checkout-index-index) .page-header .customer-conta #toggle-user-menu:checked ~ .dropdown-content,
  body:not(.checkout-index-index) .page-header .customer-conta:focus-within .dropdown-content {
    display: block !important;
  }
}

@media (max-width: 767px) {
  html.nav-before-open,
  html.nav-open,
  body.nav-before-open,
  body.nav-open {
    overflow: hidden;
  }

  html.nav-before-open .page-wrapper,
  html.nav-open .page-wrapper,
  body.nav-before-open .page-wrapper,
  body.nav-open .page-wrapper,
  body .nav-before-open .page-wrapper,
  body .nav-open .page-wrapper {
    left: 0 !important;
    transform: none !important;
  }

  body .nav-sections {
    width: min(350px, calc(100vw - 40px));
    left: max(-350px, calc(-100vw + 40px));
  }

  html.nav-open body .nav-sections,
  body.nav-open .nav-sections {
    left: 0;
  }

  body .nav-sections .df-menu-foot img {
    display: none !important;
  }

  body .nav-sections .df-menu-foot::before {
    content: '\f618';
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #fff;
    font-family: 'bootstrap-icons';
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
  }
}

@media (min-width: 768px) {
  html.nav-before-open .page-wrapper,
  html.nav-open .page-wrapper,
  body.nav-before-open .page-wrapper,
  body.nav-open .page-wrapper,
  body .nav-before-open .page-wrapper,
  body .nav-open .page-wrapper {
    left: 0 !important;
    transform: none !important;
  }

  body .nav-sections .df-menu-top,
  body .nav-sections .df-menu-foot {
    display: none !important;
  }
}

/* Magento changes navigation modes at 768px. Keep that exact transition from
   inheriting the mobile drawer position while the viewport is resized. */
@media (min-width: 768px) and (max-width: 1023px) {
  body:not(.checkout-index-index) .nav-toggle {
    display: none !important;
  }

  body:not(.checkout-index-index) .nav-sections {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    transform: none !important;
  }

  body:not(.checkout-index-index) .nav-sections .nav-sections-items,
  body:not(.checkout-index-index) .nav-sections .nav-sections-item-content {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:not(.checkout-index-index) .nav-sections .df-category-nav {
    display: none !important;
  }

  body:not(.checkout-index-index) .nav-sections .df-native-navigation {
    display: block !important;
    position: relative !important;
    left: auto !important;
    width: 100% !important;
  }
}

@media (min-width: 1024px) {
  body:not(.checkout-index-index) .nav-sections {
    position: relative;
    z-index: 90;
  }

  body:not(.checkout-index-index) .nav-sections .df-category-nav {
    position: relative;
  }

  .df-category-nav .df-menu-all {
    position: static;
  }

  .df-category-nav .df-menu-all > .df-menu-panel {
    top: 60px;
    right: 0;
    left: 0;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: calc(100dvh - 160px);
    padding: 24px 28px 28px;
    overflow: auto;
    background: #e5e5e5;
    border: 0;
    border-radius: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
    color: #333;
  }

  .df-category-nav .df-menu-all-button[aria-expanded='true']::after {
    transform: rotate(180deg);
  }

  #df-all-categories > .df-menu-tree {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 24px 32px;
  }

  #df-all-categories > .df-menu-tree > li {
    min-width: 0;
    padding: 0;
  }

  #df-all-categories > .df-menu-tree > li > a {
    margin-bottom: 12px;
    color: #262626;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
  }

  #df-all-categories .df-menu-tree a {
    color: #555;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
  }

  #df-all-categories .df-menu-tree a:hover {
    color: #141414;
  }

  #df-all-categories .df-menu-tree details {
    margin: 0;
  }

  #df-all-categories .df-menu-tree summary {
    display: none;
  }

  #df-all-categories .df-menu-tree details > .df-menu-tree {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 0;
  }

  #df-all-categories .df-menu-tree details > .df-menu-tree > li {
    padding: 0;
  }
}


/* ============================================================
   v3.9 - O icone da conta deixa de abrir menu suspenso
   O painel some (logado e deslogado) e o alvo vira um link: o clique vai para
   Minha Conta ou para o Login, conforme a sessao (df-header.js). O <ul> do
   painel continua no HTML porque e dele que o JS tira os enderecos.
   ============================================================ */
body .page-header .customer-conta #df-account-menu,
body .page-header .customer-conta .dropdown-content,
body .page-header .customer-conta .df-account-chevron {
    display: none !important;
}

body .page-header .customer-conta #toggle-user-menu {
    display: none !important;
}

body .page-header .customer-conta label[for="toggle-user-menu"] {
    cursor: pointer !important;
}


/* ============================================================
   v4.0 - A caixa da conta deixa de ter largura fixa
   Com a setinha removida na v3.9, o bloco continuou reservando a largura de
   antes: 120px de coluna para 65px de conteudo, ou seja 55px de vazio entre
   "Ola Dev" e o carrinho - e era isso que deixava o cabecalho torto.
   Agora a coluna acompanha o conteudo (nomes maiores continuam cabendo, ate o
   limite de 86px que o tema ja impunha ao texto) e a sobra vai para o espaco
   neutro antes de "Central de Atendimento". Assim os tres blocos mantem a
   distancia entre si e o carrinho continua ancorado na margem direita.
   ============================================================ */
@media (min-width: 768px) {
    body:not(.checkout-index-index) .page-header .customer-conta {
        flex: 0 0 auto !important;
        width: max-content !important;
    }
}

@media (min-width: 1280px) {
    body:not(.checkout-index-index) .page-header .header.content {
        grid-template-columns: 145px 128px 317px minmax(92px, 1fr) 164px 15px max-content 16px 113px !important;
    }
}
