/* =========================================================
   BuduProfi global header
   ========================================================= */

:root{
  --bp-white:#ffffff;
  --bp-ivory:#F3F1EA;
  --bp-black:#242328;
  --bp-deep-nude:#4B3831;
  --bp-border: rgba(36,35,40,.12);
  --bp-border-soft: rgba(36,35,40,.10);
  --bp-shadow: 0 18px 45px rgba(0,0,0,.10);
  --bp-logo-mobile-h: 40px;
  --bp-logo-mobile-maxw: 66vw;
  --bp-icon-size: 22px;
}

.bp-header,
.bp-header *{
  box-sizing:border-box;
}

.bp-header{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--bp-white);
  border-bottom:1px solid var(--bp-border-soft);
}

.bp-header-top{ position:relative; }

.bp-header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:14px;
}

.bp-logo{
  font-weight:800;
  font-size:20px;
  letter-spacing:.2px;
  white-space:nowrap;
  color:inherit;
  text-decoration:none;
}

.bp-logo img{
  display:block;
  max-width:100%;
  height:auto;
}

.bp-header-right{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.bp-phone{
  font-weight:700;
  opacity:.9;
  white-space:nowrap;
  color:inherit;
  text-decoration:none;
}

.bp-icon-btn{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:transparent;
  border:0;
  padding:0;
  cursor:pointer;
  color:inherit;
  text-decoration:none;
}

.bp-icon-btn:hover{ background:rgba(36,35,40,.04); }

.bp-icon-btn img{
  width: var(--bp-icon-size);
  height: var(--bp-icon-size);
  display:block;
}

.bp-cart-link{
  position: relative;
}

.bp-cart-count{
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #4B3831;
  color: #fff;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.bp-cart-count[hidden]{
  display: none !important;
}

.bp-search{
  flex: 0 1 620px;
  margin: 0 auto;
}

.bp-search form{
  position: relative;
  width: 100%;
}

.bp-header .bp-search form.woocommerce-product-search,
.bp-header .bp-search .woocommerce-product-search{
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
}

.bp-header .bp-search form.woocommerce-product-search::after,
.bp-header .bp-search .woocommerce-product-search::after{
  content: none !important;
  display: none !important;
}

.bp-header .bp-search label{
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.bp-search input[type="search"]{
  width: 100%;
  min-width: 0;
  font-size: 14px;
  line-height: 1.2;
  padding: 10px 60px 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--bp-border);
  outline: none;
  background: var(--bp-white);
}

.bp-header .bp-search .search-field,
.bp-header .bp-search input[type="search"].search-field{
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  padding: 10px 60px 10px 14px !important;
  border-radius: 999px !important;
  border: 1px solid var(--bp-border) !important;
  outline: none !important;
  background: var(--bp-white) !important;
  color: var(--bp-black) !important;
  font-weight: 400 !important;
}

.bp-search button[type="submit"],
.bp-search input[type="submit"]{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: var(--bp-deep-nude);
  color: #fff;
  cursor: pointer;
}

.bp-header .bp-search .search-submit,
.bp-header .bp-search button[type="submit"],
.bp-header .bp-search input[type="submit"]{
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: var(--bp-deep-nude) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  z-index: 2 !important;
  cursor: pointer !important;
}

.bp-header .bp-search .search-submit::before,
.bp-header .bp-search .search-submit::after,
.bp-header .bp-search button[type="submit"]::before,
.bp-header .bp-search button[type="submit"]::after{
  content: none !important;
  display: none !important;
}

.bp-search button[type="submit"]:hover,
.bp-search input[type="submit"]:hover{
  background:#3f2f29;
}

.bp-search--mobile{display:none}
.bp-search-toggle{display:none}

.bp-nav--desktop{
  display:flex;
  align-items:center;
  gap:18px;
  flex: 1 1 auto;
}

.bp-menu{
  list-style:none;
  display:flex;
  gap:18px;
  margin:0;
  padding:0;
  align-items:center;
}

.bp-menu > li{ position:relative; }

.bp-menu > li > a{
  font-weight:700;
  font-size:14px;
  opacity:.92;
  padding:10px 6px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:inherit;
  text-decoration:none;
}

.bp-menu > li > a:hover{ opacity:1; }

.bp-menu > li.menu-item-has-children > a{
  position:relative;
  padding-right:18px;
}

.bp-menu > li.menu-item-has-children > a::after{
  content:"";
  position:absolute;
  right:4px;
  top:50%;
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-55%) rotate(45deg);
  opacity:.55;
}

.bp-menu li.menu-item-has-children{ position:relative; }

.bp-menu li.menu-item-has-children > .sub-menu{
  list-style:none;
  position:absolute;
  left:0;
  top:100%;
  margin:0;
  padding:10px;
  min-width:220px;
  background:#fff;
  border:1px solid var(--bp-border-soft);
  border-radius:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  z-index:80;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .12s ease, visibility .12s ease;
  transform: translateY(-1px);
}

.bp-menu li.menu-item-has-children:hover > .sub-menu,
.bp-menu li.menu-item-has-children:focus-within > .sub-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.bp-menu li.menu-item-has-children > a{ position:relative; }

.bp-menu li.menu-item-has-children > a::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-14px;
  height:14px;
}

.bp-menu li.menu-item-has-children > .sub-menu::before{
  content:"";
  position:absolute;
  left:0;
  top:-14px;
  width:100%;
  height:14px;
}

.bp-menu .sub-menu li{ position:relative; }

.bp-menu .sub-menu li a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  font-weight:600;
  white-space:normal;
  line-height:1.25;
  overflow-wrap:anywhere;
  color:inherit;
  text-decoration:none;
}

.bp-menu .sub-menu li a:hover{ background:rgba(36,35,40,.04); }

.bp-menu .sub-menu .menu-item-has-children > .sub-menu{
  left:100%;
  top:0;
  transform: translate(-1px, 0);
}

.bp-menu .sub-menu .menu-item-has-children > a{
  padding-right:28px;
}

.bp-menu .sub-menu .menu-item-has-children > a::after{
  content:"";
  position:absolute;
  right:10px;
  top:50%;
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-50%) rotate(-45deg);
  opacity:.55;
}

.bp-dept{ position:relative; }

.bp-dept__toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid var(--bp-border);
  border-radius:999px;
  background:var(--bp-ivory);
  color:var(--bp-black);
  font-size:14px;
  font-weight:800;
  line-height:1.2;
  cursor:pointer;
  white-space:nowrap;
  text-transform:none;
  box-shadow:none;
  min-height:0;
  height:auto;
  appearance:none;
}

.bp-dept__toggle:hover{ background: #ECE7DC; }

.bp-dept__chev{
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform: rotate(45deg);
  margin-top:-2px;
  opacity:.75;
}

.bp-dept__panel{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  width:290px;
  max-width:320px;
  padding:12px 0;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(36,35,40,.10);
  box-shadow: var(--bp-shadow);
  z-index:999;
  transform: translateY(-1px);
  max-height: calc(100vh - 140px);
  overflow:visible;
  overscroll-behavior: contain;
}

@media (min-width: 769px){
  .bp-dept:hover .bp-dept__panel,
  .bp-dept:focus-within .bp-dept__panel{
    display:block;
  }
}

.bp-dept-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:block;
}

.bp-dept-menu > li{
  position:relative;
  margin:0;
}

.bp-dept-menu > li > a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 16px;
  font-weight:600;
  white-space:normal;
  line-height:1.25;
  overflow-wrap:anywhere;
  color:inherit;
  text-decoration:none;
}

.bp-dept-menu > li:hover > a{ background: rgba(36,35,40,.05); }

.bp-dept-menu > li.menu-item-has-children > a{
  padding-right:34px;
  position:relative;
}

.bp-dept-menu > li.menu-item-has-children > a:after{
  content:'';
  position:absolute;
  right:14px;
  top:50%;
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
  opacity:.6;
}

.bp-dept-menu > li.menu-item-has-children > .sub-menu{
  list-style:none;
  position:absolute;
  top:0;
  left:100%;
  margin:0;
  padding:10px;
  width:320px;
  max-width:40vw;
  background:#fff;
  border:1px solid rgba(36,35,40,.10);
  border-radius:14px;
  box-shadow: var(--bp-shadow);
  z-index:1000;
  display:none;
  transform: translateX(-1px);
  max-height: calc(100vh - 160px);
  overflow:auto;
  overscroll-behavior: contain;
}

.bp-dept-menu > li.menu-item-has-children:hover > .sub-menu{ display:block; }

.bp-dept-menu .sub-menu li{ margin:0; }

.bp-dept-menu .sub-menu a{
  display:block;
  padding:8px 10px;
  border-radius:10px;
  font-weight:500;
  white-space:normal;
  line-height:1.25;
  overflow-wrap:anywhere;
  color:inherit;
  text-decoration:none;
}

.bp-dept-menu .sub-menu a:hover{ background: rgba(36,35,40,.05); }

.bp-dept-menu > li.menu-item-has-children > a::before{
  content:"";
  position:absolute;
  right:-14px;
  top:0;
  width:14px;
  height:100%;
}

.bp-dept-menu > li.menu-item-has-children > .sub-menu::before{
  content:"";
  position:absolute;
  left:-14px;
  top:0;
  width:14px;
  height:100%;
}

.bp-dept-menu > li:nth-last-child(-n+4) > .sub-menu{
  top: auto !important;
  bottom: 0 !important;
}

.bp-burger{
  display:none;
  position:relative;
  width:40px;
  height:40px;
  border:0;
  background:transparent;
  border-radius:12px;
  cursor:pointer;
}

.bp-burger:hover{ background:rgba(36,35,40,.04); }

.bp-burger span{
  position:absolute;
  left:50%;
  width:22px;
  height:2px;
  background:var(--bp-black);
  border-radius:2px;
  transform:translateX(-50%);
  transition:transform .25s ease, opacity .2s ease;
}

.bp-burger span:nth-child(1){ top:11px; }
.bp-burger span:nth-child(2){ top:17px; }
.bp-burger span:nth-child(3){ top:23px; }

.bp-burger[aria-expanded="true"] span:nth-child(1){
  top:19px;
  transform:translateX(-50%) rotate(45deg);
}

.bp-burger[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}

.bp-burger[aria-expanded="true"] span:nth-child(3){
  top:19px;
  transform:translateX(-50%) rotate(-45deg);
}

.bp-nav--mobile{
  display:none;
  border-top:1px solid rgba(36,35,40,.10);
  background:var(--bp-white);
}

.bp-nav--mobile[hidden]{display:none}

.bp-nav-mobile-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 16px;
}

.bp-menu--mobile{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-start;
}

.bp-amazon-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  font-size:14px;
  line-height:1;
  text-decoration:none;
  color:inherit;
  margin-left:28px;
}

.bp-amazon-link span{
  display:inline-flex;
  align-items:center;
}

.bp-amazon-link img{
  height:18px;
  width:auto;
  display:block;
  position:relative;
  top:4px;
}

.bp-amazon-link:hover{ opacity:1; }

@media (max-width:1024px){
  .bp-search input[type="search"]{min-width:260px}
}

@media (max-width:768px){
  .bp-phone{display:none}

  .bp-search--desktop{display:none}
  .bp-search-toggle{display:inline-flex}

  .bp-search--mobile{
    display:block;
    border-top:1px solid rgba(36,35,40,.10);
    background:var(--bp-white);
  }

  .bp-search-mobile-inner{
    max-width:1200px;
    margin:0 auto;
    padding:10px 16px;
  }

  .bp-search--mobile[hidden]{display:none}

  .bp-nav--desktop{display:none}
  .bp-dept{display:none}

  .bp-burger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    width:40px;
    height:40px;
    border-radius:12px;
    margin:0;
  }

  .bp-nav--mobile{display:block}

  .bp-header-inner{
    padding: 10px 12px;
    gap: 10px;
    align-items: center;
  }

  .bp-logo{
    max-width: var(--bp-logo-mobile-maxw);
    flex: 0 1 auto;
  }

  .bp-logo img{
    height: var(--bp-logo-mobile-h);
    width: auto;
    max-width: 100%;
  }

  .bp-header-right{
    margin-left: auto;
    display:flex;
    align-items:center;
    gap: 6px;
  }

  .bp-icon-btn{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin:0;
    flex-direction: column;
  }

  .bp-header-inner--nav{
    display:none !important;
  }

  .bp-dept__panel{ display:none !important; }

  .bp-menu--mobile .sub-menu{
    display:none !important;
    padding:10px 0 0 14px;
    margin:0;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .bp-menu--mobile > li{
    width:100%;
    border-bottom:1px solid rgba(36,35,40,.12);
    position:relative;
  }

  .bp-menu--mobile > li > a{
    display:block;
    width:100%;
    padding:16px 56px 16px 16px;
    font-size:18px;
    line-height:1.2;
    font-weight:700;
    color:inherit;
    text-decoration:none;
  }

  .bp-menu--mobile .bp-sub-toggle{
    position:absolute;
    right:12px;
    top:12px;
    width:36px;
    height:36px;
    border:0;
    background:transparent;
    cursor:pointer;
    z-index:3;
  }

  .bp-menu--mobile .bp-sub-toggle::before,
  .bp-menu--mobile .bp-sub-toggle::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:18px;
    height:2px;
    background:rgba(36,35,40,.85);
    transform:translate(-50%,-50%);
    border-radius:2px;
  }

  .bp-menu--mobile .bp-sub-toggle::after{
    width:2px;
    height:18px;
  }

  .bp-menu--mobile li.is-open > .bp-sub-toggle::after{
    display:none;
  }

  .bp-menu--mobile li.is-open > .sub-menu{
    display:block !important;
  }

  .bp-nav--mobile .bp-menu--mobile > li.menu-item-has-children > a::before,
  .bp-nav--mobile .bp-menu--mobile > li.menu-item-has-children > a::after,
  .bp-nav--mobile .bp-menu--mobile .menu-item-has-children > a::before,
  .bp-nav--mobile .bp-menu--mobile .menu-item-has-children > a::after{
    content: none !important;
  }

  .bp-search--mobile{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    z-index:200;
    border-top:1px solid rgba(36,35,40,.10);
    background:var(--bp-white);
  }

  .bp-search--mobile input[type="search"],
  .bp-search--mobile input[type="text"]{
    font-size:16px !important;
    line-height:1.2;
    -webkit-text-size-adjust:100%;
  }

  .bp-header{ z-index: 9999 !important; }

  .bp-header-top{
    position: sticky;
    top: 0;
    z-index: 10000 !important;
    background: var(--bp-white);
  }

  .bp-nav--mobile{
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: 72px;
    z-index: 9000 !important;
    overflow: hidden !important;
    background: var(--bp-white);
  }

  .bp-nav-mobile-inner{
    height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding-bottom: 18px;
  }

  .bp-amazon-link{
    display:none;
  }
}

@media (min-width: 769px){
  .bp-nav--mobile{ display:none !important; }
}

body.bp-menu-open{
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
}
