/*--------------------------------------------------------------
Header
--------------------------------------------------------------*/

// Navbar height
html {
  scroll-padding-top: 55px;
}

#wpstream_theme-navbar {
  flex-wrap: wrap;
}

.site-header {

  .fixed-top {
    height: 88px;
    background-color: var(--wpstream-header-background-rgba, var(--wpstream-header-bg-color, $eerie-black));
    transition: background-color 0.4s ease;
    max-width: 100vw;
  }

  .bg-light {
    background-color: var(--wpstream-header-background-rgba, var(--wpstream-header-bg-color, $eerie-black)) !important;
  }

  .wpstream_transparent_header {
    background-color: transparent;
    border-bottom-width: var(--wpstream-header-border-bottom-height, 0px);
    border-bottom-color: var(--wpstream-header-border-bottom-color, transparent);
    border-bottom-style: solid;
    box-sizing: content-box;
  }

  .bg-dark {
    background-color: var(--wpstream-header-background-rgba, var(--wpstream-header-bg-color, $eerie-black)) !important;
    border-bottom-width: var(--wpstream-header-border-bottom-height, 0px);
    border-bottom-color: var(--wpstream-header-border-bottom-color, transparent);
    border-bottom-style: solid;
    box-sizing: content-box;
  }

  .navbar {
    padding: unset;
    height: 100%;

    .container {
      height: inherit;
    }

    .wpstream-wide-container {
      max-width: 100%;
      width: 100%;
    }
  }

  .navbar-brand {
    padding: unset;
    --bs-navbar-brand-margin-end: 45px;
  }

  .logo {
    width: auto;
    height: auto;
    max-height: var(--wpstream-header-max-height-logo, 48px);
    max-width: var(--wpstream-header-max-width-logo, 120px);

    &.logo-retina {
      display: none;
    }

    @media (-webkit-min-device-pixel-ratio: 2),
    (min-device-pixel-ratio: 2),
    (min-resolution: 192dpi) {
      &:where(:not(.logo-retina)) {
        display: none;
      }
      &.logo-retina {
        display: block;
      }
    }
  }


  //Offcanvas Navbar
  #offcanvas-navbar {
    height: 100% !important;
  }

  .wpstream-offcanvas-body {
    height: inherit;
    justify-content: space-between;
  }

  .navbar-nav {
    align-items: stretch;

    > .nav-item {

      .nav-link {
        &:hover {
          color: var(--wpstream_theme_menu_font_color_hover,var(--argintinian-blue) );
          background-color: var(--wpstream_theme_menu_back_color_hover, transparent);
          border-radius: 8px;
          svg{
           
            path{
           
            }
          }

          &:focus, &:focus-visible {
            outline: none !important;
            box-shadow: none !important;
            border-color: transparent !important;
          }
        }

        &:hover:after  {
          background-color:var(--wpstream_theme_menu_font_color_hover,var(--argintinian-blue));
        }
        
    }

      &.current-menu-item {
        .nav-link,
        .dropdown-item {
          position: relative;

          &:before {
            content: "";
            display: block;
            width: 100%;
            height: 0px;
            background-color: var(--wpstream-header-menu-item-back-color-hover, $palatinate-blue);
            background-color: var(--argintinian-blue);
            position: absolute;
            bottom: 0;
            left: 0;
          }
        }

      }
    }

    .nav-link.show {
      &:after {
        transform: scale(-1);
      }
    }

    .nav-link {
      display: flex;
      align-items: center;
      height: 100%;
      padding: 0 20px;
      color: var(--wpstream-header-menu-font-color, var(--wpstream-header-menu-color));
      font-family: $font-family-roboto;
      font-size: var(--wpstream-header-menu-font-size, 16px);
      font-style: normal;
      font-weight: 500;
      line-height: 24px;
      letter-spacing: 0.5px;


      svg {
        max-width: 20px;
        height: 20px;
        margin-right: 5px;
     
        transition: all 0.15s ease-in-out;
        path {
          stroke: var(--wpstream-header-menu-font-color, var(--wpstream-header-menu-color));
        }
      }
    }


    .dropdown-toggle {
      &:after {
        //content: url("../img/icons/menu-arrow2.svg");
        content:"";
        display: block;
        vertical-align: unset;
        background-color: var(--wpstream-header-menu-font-color, var(--wpstream-header-menu-color));

        width: calc(var(--wpstream-header-menu-font-size, 20px) + 4px);
        height: calc(var(--wpstream-header-menu-font-size, 20px) + 4px);
        transition: all 200ms ease; 

        mask-image: escape-svg(url("data:image/svg+xml,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#67676B' xmlns='http://www.w3.org/2000/svg'><path d='M6 9L12 15L18 9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"));
        mask-size: calc(var(--wpstream-header-menu-font-size, 20px) + 4px);
        mask-repeat: no-repeat;
        border: unset; 
        margin-left: 5px;
        mask-repeat: no-repeat;
      }
    }

    .dropdown-menu {
      &.show {
        display: flex;
      }

      flex-direction: column;
      width: 100%;
      min-width: 250px;
      padding: 15px 0px;

      border-radius: 8px;
      background-color: var(--wpstream-header-submenu-background-color, var(--wpstream-header-search-dropdown-bg));
      box-shadow: 0 4px 7px rgba(0, 0, 0, .25);
      border: none;

      .dropdown-item {
        color: var(--wpstream-header-submenu-font-color, var(--wpstream-header-submenu-font-color-default));
        font-family: "Roboto", sans-serif;
        font-size: var(--wpstream-header-submenu-font-size, 16px);
        font-style: normal;
  
        letter-spacing: 0.5px;
        line-height: 22px;
        text-wrap: wrap;
        padding: 10px 15px;
        display: flex;
        align-items: center;

        &:focus,
        &.active:hover,
        &:hover {
          background-color: var(--wpstream-header-menu-item-back-color-hover,var(--argintinian-blue) );
          color: var(--wpstream-header-submenu-font-color-hover, var(--wpstream-header-submenu-font-color-hover-default));
        }

        &.active {
          background-color: unset;
        }

      svg{
        max-width: 20px;
        height: 20px;
        margin-right: 5px;
        fill: var(--wpstream-header-menu-font-color, var(--wpstream-header-menu-color));
        transition: all 0.15s ease-in-out;
      }


      }
    }


    .menu-item-has-children {
      position: relative;

      .dropdown-menu.depth_1 {
        top: -21px;
        left: 247px;
      }
    }
  }

  //Search form
  .wpstream-theme-top-search {
    max-width: 345px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 15px;

    .search-form {
      position: relative;
      display: flex;
      border-radius: 24px;
      border: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default));
      height: 48px;

      .dropdown-toggle {
        color: var(--wpstream-header-menu-font-color, var(--wpstream-header-menu-color));
        white-space: nowrap;
        width: 100%;
        text-align: left;
        background: transparent;
        border: none;
        height: 100%;
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: space-between;
        align-items: center;
        padding: 0px 10px;
      }

      .dropdown-toggle::after {
        //content: url("../img/icons/menu-arrow.svg");
        content:"";
        border: unset;
        margin-left: 12px;
        display: block;
        vertical-align: unset;
        background-color: var(--wpstream-header-menu-font-color, var(--wpstream-header-menu-color));
        mask-image: escape-svg(url("data:image/svg+xml,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#67676B' xmlns='http://www.w3.org/2000/svg'><path d='M6 9L12 15L18 9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"));
        mask-size: 24px;
        mask-repeat: no-repeat;
        width: 24px;
        height: 24px;
        transition: all 200ms ease; 
      }

      .dropdown-menu {
        background-color: var(--wpstream-header-submenu-background-color, var(--wpstream-header-search-dropdown-bg));
      }

      .dropdown-item {
        color: var(--wpstream-header-submenu-font-color, var(--wpstream-header-submenu-font-color-default));
      }

      .dropdown-item:hover, .dropdown-item:focus {
        color: var(--wpstream-header-submenu-font-color-hover, var(--wpstream-header-submenu-font-color-hover-default));
      }

      .dropdown {
        height: 100%;
        padding: 0 0 0 10px;
      }

      label.fildersec {
        display: inline-block;


        select {
          padding: 12px 30px 13px 15px;
          color: var(--bs-body-color);
          background-color: transparent;
          border-radius: unset;
          height: 100%;
          border: unset;
          border-right: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default));
          $form-select-indicator: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'> <path d='M6 9L12 15L18 9' stroke='#67676B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/> </svg>");
          background-image: escape-svg($form-select-indicator);
          background-position: right 7px center;
          background-size: 24px;
          font-family: $font-family-roboto;
          font-size: 16px;
          font-style: normal;
          font-weight: 400;
          line-height: 22px;
          letter-spacing: -0.32px;
        }

        :focus {
          box-shadow: none;
        }
      }

      label.search-field-label {
        position: relative;
        flex-grow: 1;

        input.search-field {
          font-family: $font-family-roboto;
          font-size: 16px;
          font-style: normal;
          font-weight: 400;
          line-height: 22px;
          letter-spacing: -0.32px;
          background-color: transparent;
          color: var(--wpstream-header-menu-font-color, var(--wpstream-header-menu-color));
          height: 100%;
          width: 100%;
          border: 0;
          border-left: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default));
          padding-left: 17px;

          &::-webkit-search-decoration,
          &::-webkit-search-cancel-button,
          &::-webkit-search-results-button,
          &::-webkit-search-results-decoration {
            display: none;
          }

          &::placeholder {
            color: var(--bs-body-color);
            opacity: 1;
          }

          &::-ms-input-placeholder {
            color: var(--bs-body-color);
          }


        }
      }

      button.btn-outline-secondary {
        border: 0;
        padding: 12px 20px 12px 16px;
        color: var(--wpstream_woocommerce_header_search_button_color, var(--wpstream-header-menu-color));
        &:hover {
          color: var(--wpstream_woocommerce_header_search_button_hover_color, var(--wpstream-header-menu-color));
          opacity: 0.8;
          background-color: transparent;
        }
      }

    }
  }


  &.header-3 {
    .offcanvas-body {
      .navbar-nav {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
      }
    }

    .wpstream-theme-top-search {
      position: absolute;
      top: 90px;
      right: auto;
      left: -250px;
      transform: inherit;
      display: none;
      width: 300px;
      padding: 0px;
      border-radius: 20px;
      background-color: var(--wpstream-header-submenu-background-color, var(--wpstream-header-search-dropdown-bg));
   

      &.toggled {
        display: flex;
      }


      .wpstream-theme-close-btn {
        width: 40px;
        height: 48px;
        border-radius: 0 24px 24px 0;
        background: var(--bs-body-bg);
        display: block;
        color: var(--bs-body-color);
        line-height: 20px;
        padding: 0;
        position: relative;
        border: 1px solid var(--wpstream-header-search-border-color, var(--wpstream-header-search-border-color-default));

        &:after {
          position: absolute;
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
          content: "\d7";
          font-size: 25px;
          color: currentColor;
          line-height: 48px;
          text-align: center;
        }
      }
    }


    .wpstream-theme-search-icon {
      width: 40px;
      height: 40px;
      color: var(--wpstream_woocommerce_header_search_button_color, var(--wpstream-header-menu-color)) !important;
      &:hover {
        background-color: var( --wpstream_theme_menu_back_color_hover, transparent) !important;
        color: var(--wpstream_woocommerce_header_search_button_hover_color, var(--wpstream-header-icon-hover-font-color)) !important;
      }
      font-size: 23px;
      background-color: transparent;
      border-radius: 100%;
      margin-left: auto;
      border: unset;
      padding: unset;
      display: flex;
      align-items: center;
      justify-content: center;
      align-self: center;


      &.toggled-search-button {

      }

      &:hover {
        background-color: var(--bs-body-color);
        color: var(--bs-body-bg);
      }
    }
  }

  .header-actions {
    gap: 10px;
    position: relative;
    height: 100%;

    .btn {
      border-radius: 24px;
      font-family: $font-family-roboto;
      font-size: 16px;
      font-style: normal;
      font-weight: 500;
      letter-spacing: 0.5px;
      line-height: 24px;
      padding: 0;

      span {
        display: inline-block;
      }
    }

    .wpstream-theme-login-btn {
      padding: 11px 23px;
      white-space: nowrap;

      &:hover {
        color: var(--bs-body-bg);
      }
    }

    .wpstream-theme-sign-up-btn {
      padding: 12px 24px;
      white-space: nowrap;
      border-radius: calc(var(--wpstream-type-1-button-border-radius, 24) * 1px);
    }

    .wp-stream-toggle-btn {
      width: 40px;
      height: 40px;
      background-color: transparent;

      &:hover {
        background-color: var(--bs-body-color);
        color: var(--bs-body-bg);
      }
    }

    .wpstream-theme-user-icon {
      width: 40px;
      height: 40px;
      background-color: transparent;
      color: var(--wpstream_woocommerce_header_account_button_color, var(--wpstream-header-menu-color));
      &:hover {
        background-color: var( --wpstream-header-icon-hover-back-color );
        color: var(--wpstream_woocommerce_header_account_button_hover_color, var(--wpstream-header-icon-hover-font-color)) !important;
      }
      border: 0;
    }

    .wp-stream-cart-btn {
      width: 40px;
      height: 40px;
      background-color: transparent;
      position: relative;
      color: var(--wpstream_woocommerce_header_cart_button_color, var(--wpstream-header-menu-color));
      border: none;
      &:hover {
        background-color: var( --wpstream_theme_menu_back_color_hover, transparent);
        color: var(--wpstream_woocommerce_header_cart_button_hover_color, var(--wpstream-header-icon-hover-font-color)) !important;
      }

      .cart-content {
        position: absolute;
        top: 0;
        right: 0;
        font-family: $font-family-roboto;
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 16px;
        letter-spacing: 0.06px;
        display: flex;
        min-width: 16px;
        min-height: 16px;
        padding: 0 5px;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
        background: $wpstream-success;
        color: $night;
      }
    }
  }

  @import "header-media";

  .offcanvas {
    background-color: var(--wpstream-header-background-rgba, var(--wpstream-header-bg-color, $eerie-black));
    color: var(--wpstream-header-menu-font-color, var(--wpstream-header-menu-color));

    .offcanvas-header {
      color: var(--wpstream-header-menu-font-color, var(--wpstream-header-menu-color));

      .btn-close {
 
        position: absolute;
        top: 25px;
        right: 20px;
        margin: 0px;
        background: none;
        width: auto;
        height: auto;
        padding: 0;

        &:hover {
          opacity: 1;
        }

       
      }
    }
  }
}


#page.page-for-header-type-2 {
  display: grid;
 // grid-template-columns: 240px auto;
//  grid-template-columns: minmax(240px, min-content) calc(100vw - 240px);
  grid-template-columns: 240px   minmax(0, 1fr);

  

  padding-top: 0px;
  height: 100%;
}

.page-template-wpstream-theme-dashboard #page.page-for-header-type-2 {
  display: block;
}

.top-nav-widget{
  height: 100%;

}

.header-2 {
  width: 240px;
  background-color: var(--wpstream-header-background-rgba, var(--wpstream-header-bg-color, $eerie-black));
  z-index: 99;
  grid-column: 1;
  height: 100%;
  position: fixed;
  top: 0;

  


  .wpstream-offcanvas-body {
      flex-direction: column;
      gap: 15px;
      flex-wrap: nowrap;
      justify-content: flex-start;
  }

  .top-nav-widget-2{
    padding: 0px 15px;
    margin: 0px !important;
  }


  .navbar-brand {
    padding: 20px 15px;
    margin-top: 20px;
  }



  .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 0;

  }

  #wpstream_theme-navbar {
    margin-top: 90px;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
   padding: 0px 10px 10px 10px;

    li {
      width: 100%;
    }


  }

  #offcanvas-navbar {
    width: 100% !important;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 10px 15px;
    svg{
      height: 25px;
      width: auto;
      
      margin-right: 10px; 
    }
  }

  .navbar-nav .dropdown-toggle:after {
    margin-right: 0px;
    margin-left: auto;
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }

  .navbar-nav .nav-link.show {
    &:after {
      -webkit-transform: rotate(-90deg);
      transform: rotate(-90deg);
    }
  }


  .navbar-nav .current-menu-item {

    .nav-link {
      position: relative;
      color: var(--argintinian-blue);
     
    }
  }



  .navbar-nav .dropdown-menu {
    right: -250px;
    left: auto;
    top: 0px;
  }

}

.top-nav-widget {
  .navbar-nav {
    flex-direction: row;
  }
}

.wpstream-header-type-2-search_wrapper.site-header{
  
    .wpstream-theme-user-icon {
      background-color: var( --wpstream-eerie-black);
      color: var(--wpstream_woocommerce_header_account_button_color, var(--wpstream-header-menu-color));
      &:hover {
        background-color: var( --argintinian-blue);
        color: var(--wpstream_woocommerce_header_account_button_hover_color, var(--wpstream-header-menu-color));
      }
    }

    .wp-stream-cart-btn {
      background-color: var( --wpstream-eerie-black);
      color: var(--wpstream-header-menu-font-color, var(--wpstream-header-menu-color));
      &:hover {
        background-color: var( --argintinian-blue);
        color: $anti-flash-white;
      }
    }

}













.page-for-header-type-2 {
  #content,
  #primary,
  .wpstream_section,
  footer,
  .elementor {
    grid-column: 2;
   
  }


  .wpstream-header-type-2-search_wrapper {
    top: 0;
    left: 0;
    grid-column: 2;
    position: fixed;
    width: 100%;
    text-align: center;
    z-index: 100;
    padding: 15px 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    background-color: var(--wpstream-header-background-rgba, var(--wpstream-header-bg-color, $eerie-black));
    border-bottom-width: var(--wpstream-header-border-bottom-height, 1);
    border-bottom-color: var(--wpstream-header-border-bottom-color, #0F0F0F);
    border-bottom-style: solid;


    .logo {
      max-height: 40px;
    }

    .header-actions {
      flex-direction: row;
      flex-wrap: nowrap;
      justify-content: flex-end;
      gap: 12px;

    }

    .wpstream-theme-sign-up-btn {
      padding: 7px 15px;
      font-size: 15px;
      font-weight: 500;
      border-radius: calc(var(--wpstream-type-1-button-border-radius, 24) * 1px);
    }
    
    .wpstream-theme-top-search{
      width: 500px;
      max-width: 500px;
    }

    .wp-stream-cart-btn {
    
      svg {
        width: 24px;
        height: 24px;
      }
    }

    .wpstream-theme-user-icon {
      color: var(--wpstream_woocommerce_header_account_button_color, var(--wpstream-header-menu-color));

      &:hover {
        color: var(--wpstream_woocommerce_header_account_button_hover_color, var(--wpstream-header-menu-color));
      }
 

      svg {
        width: 22px;
        height: 22px;
      }

    }

    .wpstream-theme-top-search {
      .search-form .dropdown-toggle {
        font-size: 14px;
      }

      .search-form button.btn-outline-secondary {
        padding: 9px 20px 9px 16px;
      }
    }

    .search-form {
      height: 40px;
    }


  }

}


.dropdown-menu.depth_0 .menu-item-has-children .dropdown-toggle:after {
  position: absolute;
  top: 12px;
  right: 8px;
  -webkit-transform: rotate(-90deg); /* Rotate pseudo-element for WebKit browsers */
  transform: rotate(-90deg); /* Standard rotation */
}

.admin-bar .header-2 #wpstream_theme-navbar {
  margin-top: 107px; // when we have admin bar
  margin-top: 120px; // to aling with blog content
}

.navbar-nav .current-menu-ancestor{
  .nav-link {
      color: var(--argintinian-blue);
      &:after{
          background-color: var(--argintinian-blue);
      }
  }
}

.wpstream_header_type2_menu3,
.wpstream_header_type2_menu2{
    margin-top: 0px;
    border-top: 1px solid var(--wpstream-header-border-bottom-color);
    padding: 10px;
    display: flex;
    flex-direction: column!important;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
   

}
.site-header .header-actions .btn span.wpstreamtheme-show-on-mobile{
  display: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}


/* Basic focus styles for all interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.menu-item a:focus {
    outline: 2px solid #4A90E2;  /* Visible outline */
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

/* Navigation menu focus styles */
.navbar-nav a:focus {
    background-color: rgba(74, 144, 226, 0.1);
    outline: 2px solid #4A90E2;
}

/* Form fields focus styles */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    outline: 2px solid #4A90E2;
}

/* Submit button focus styles */
.button:focus,
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Modal focus trap styles */
.modal.is-active {
    outline: none;
}

.modal-close:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Skip link focus */
.skip-link:focus {
    clip: auto !important;
    background-color: #fff;
    padding: 10px 20px;
    z-index: 100000;
    text-decoration: none;
}