/*
 * Header layout overrides.
 *
 * Kept outside stylesheet.css intentionally: that file is generated from SCSS
 * and previously erased these site-specific header rules during compilation.
 */

@media (min-width: 769px) {
  #top {
    min-height: 68px;
  }

  #top > .container-fluid {
    position: relative;
    min-height: 61px;
  }

  #top .head-mob {
    position: absolute;
    z-index: 20;
    top: 12px;
    right: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    width: calc(41.66666667% - 64px);
    min-width: 300px;
    height: 38px;
    margin: 0;
    padding: 0;
  }

  #top .head-mob > div {
    flex: 0 0 auto;
  }

  #top .head-mob > .search-box {
    position: relative;
    flex: 1 1 280px;
    width: auto;
    max-width: 360px;
    height: 36px;
  }

  #top .search-pos {
    display: block !important;
    width: 100%;
    height: 36px;
    padding: 7px 42px 7px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 13px;
    line-height: 20px;
  }

  #top .btn-search-forse {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 3px 3px 0;
    background: #f3641e;
    cursor: pointer;
  }

  #top .btn-search-forse::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 11px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
  }

  #top .btn-search-forse::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 21px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform: rotate(45deg);
    transform-origin: left center;
  }

  #top .head-mob .cart-top,
  #top .head-mob .language {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    float: none !important;
    margin: 0;
  }

  /* cart.tpl already contains its own SVG; remove the legacy background icon */
  #top .head-mob .cart-top .btn-cart {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    background: none !important;
  }

  #top .head-mob .cart-top .btn-cart svg {
    display: block;
    width: 28px;
    height: 28px;
    margin: 2px;
  }

  #top .head-mob .language .btn {
    padding: 7px 0;
    color: #fff;
    text-decoration: none;
  }

  #top > .container-fluid > #top-links {
    position: absolute;
    z-index: 21;
    top: 13px;
    right: 12px;
    width: 42px;
    padding: 0;
  }

  #top > .container-fluid > #top-links > ul {
    margin: 0;
  }

  #top .user {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    color: #fff;
    text-decoration: none;
  }

  #top .user::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 10px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
  }

  #top .user::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 5px;
    width: 20px;
    height: 12px;
    border: 2px solid #fff;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    box-sizing: border-box;
  }
}

@media (min-width: 769px) and (max-width: 1050px) {
  #top .head-mob {
    gap: 8px;
    min-width: 270px;
  }

  #top .head-mob > .search-box {
    flex-basis: 190px;
  }
}
