﻿@charset "UTF-8";
.header__search-box {
  position: relative;
  margin-top: 15px;
}
.header__search-box > div:nth-child(1) {
  display: flex;
  align-items: center;
  width: 100%;
}
.header__search-box > div:nth-child(1) .search-box__categories {
  height: 50px;
  padding: 0 15px 0 20px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-inline-end: 1px solid #e8e8e8;
  color: #000;
  white-space: nowrap;
  font-size: 12px;
  user-select: none;
  background-color: #fff;
  border-radius: 0 4px 4px 0;
}
.header__search-box > div:nth-child(1) .search-box__categories:after {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1px solid #d30303;
  border-inline-start: 1px solid #d30303;
  transform: rotate(135deg);
  display: block;
  position: absolute;
  left: 8px;
}
.header__search-box > div:nth-child(1) .search-box__categories > div:first-child {
  width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header__search-box > div:nth-child(1) .search-box__categories > div:last-child {
  position: absolute;
  background-color: #fff;
  box-shadow: 0 3px 5px 2px rgba(0, 0, 0, 0.1);
  top: 52px;
  z-index: 9100;
  right: 0;
  max-height: 230px;
  overflow: auto;
}
.header__search-box > div:nth-child(1) .search-box__categories > div:last-child > div {
  padding: 10px 30px;
}
.header__search-box > div:nth-child(1) .search-box__categories > div:last-child > div:hover {
  background-color: #eee;
}
.header__search-box.search-box__open .search-box__result {
  visibility: visible;
}
.header__search-box.search-box__open .search-box__result #handlebars-result__header-search {
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0 8px 6px rgba(0, 0, 0, 0.2);
}
.header__search-box.search-box__open.search-box__empty #handlebars-result__header-search:before {
  content: "محصولی یافت نشد.";
  display: block;
  text-align: center;
  color: #E71516;
  position: relative;
  top: -10px;
}
.header__search-box.search-box__loading .search-box__button:after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border-top: 2px solid #999;
  border-inline-start: 2px solid transparent;
  animation: loading-spin 0.6s linear infinite;
  display: block;
  margin-inline-end: 5px;
  position: absolute;
  top: 9px;
  right: -20px;
  z-index: 9;
}
.header__search-box .search-box__result {
  position: absolute;
  width: 102%;
  right: -1%;
  overflow: hidden;
  z-index: 9000;
  visibility: hidden;
  top: 40px;
}
.header__search-box .search-box__result #handlebars-result__header-search {
  background-color: #fdfdfd;
  transform: translate3d(0, 0, 0);
  transform: translateY(-120%);
  transition: transform 0.4s, opacity 0.3s;
  opacity: 0;
  padding-top: 20px;
  margin: 0 1% 15px 1%;
}
.header__search-box .search-box__result #handlebars-result__header-search > div {
  max-height: 50vh;
  overflow: auto;
}
.header__search-box .search-box__result #handlebars-result__header-search .clearfix [class*=col-]:first-child {
  max-height: 60px;
  overflow: hidden;
}
.header__search-box .search-box__result #handlebars-result__header-search .clearfix [class*=col-] a {
  color: #ec8707;
}
.header__search-box .search-box__result #handlebars-result__header-search .clearfix small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  width: 100%;
}
@media (min-width: 768px) and (max-width: 991px) {
  .header__search-box .search-box__result #handlebars-result__header-search .clearfix small {
    display: none;
  }
}
.header__search-box .search-box__result i {
  position: absolute;
  width: 20px;
  height: 20px;
  cursor: pointer;
  left: 0;
  top: 0;
  z-index: 999;
}
.header__search-box .search-box__result i:before, .header__search-box .search-box__result i:after {
  position: absolute;
  top: 50%;
  left: 0px;
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background-color: #333;
}
.header__search-box .search-box__result i:before {
  transform: rotate(-45deg);
}
.header__search-box .search-box__result i:after {
  transform: rotate(45deg);
}
.header__search-box input {
  width: 90%;
  padding-inline-start: 12px;
  border: 1px solid #a6a4d6;
  line-height: 50px;
  height: 50px;
  font-size: 15px;
  border-radius: 0 15px 15px 0;
}
.header__search-box input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #ed8707;
  font-weight: 500;
}
.header__search-box input::-moz-placeholder { /* Firefox 19+ */
  color: #ed8707;
  font-weight: 500;
}
.header__search-box input:-ms-input-placeholder { /* IE 10+ */
  color: #ed8707;
  font-weight: 500;
}
.header__search-box input:-moz-placeholder { /* Firefox 18- */
  color: #ed8707;
  font-weight: 500;
}
.header__search-box .iconSearch {
  background: #09028c;
  width: 50px;
  height: 50px;
  border-radius: 15px 0 0 15px;
  background-image: url("/Portals/_default/Skins/FaraShop/assets/img/icon-serach.png");
  background-repeat: no-repeat;
  background-size: 36px;
  margin-inline-start: 3px;
  background-position: center;
}
.header__search-box .iconSearch:hover, .header__search-box .iconSearch:focus {
  background-color: rgb(212.231557377, 120.8913934426, 6.268442623);
}
.header__search-box .iconSearch span {
  font-size: 18px;
}
@media (max-width: 767px) {
  .header__search-box .iconSearch span {
    display: none;
  }
}
.header__search-box .search-box__button {
  cursor: pointer;
  border: 0 none;
  border-radius: 4px 0 0 4px;
  padding: 0 15px 0 5px;
  font-size: 17px;
  position: relative;
  line-height: 50px;
  color: #fff;
}
.header__search-box .search-box__button:before {
  transform: scaleX(-1);
}
.header__search-box img {
  font-size: 8px;
  text-align: center;
  color: #999;
}
.header__search-box img:hover, .header__search-box img:focus {
  text-decoration: none;
  color: #555;
}

@media (max-width: 767px) {
  .header__search-box {
    margin: 15px 0 2px 0;
  }
  .header__search-box .search-box__categories {
    display: none;
  }
  .header__search-box input {
    border: 1px solid #e4e6e5;
    border-radius: 0 4px 4px 0;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .header__search-box {
    margin-top: 0;
    margin-bottom: 15px;
  }
}
body.ltr .header__search-box > div:nth-child(1) .search-box__categories {
  padding: 0 20px 0 15px;
  border-radius: 4px 0 0 4px;
}
body.ltr .header__search-box > div:nth-child(1) .search-box__categories:after {
  transform: rotate(135deg);
  right: 8px;
  left: initial;
}
body.ltr .header__search-box > div:nth-child(1) .search-box__categories > div:last-child {
  right: initial;
  left: 0;
}
body.ltr .header__search-box.search-box__open.search-box__empty #handlebars-result__header-search:before {
  content: "محصولی یافت نشد.";
}
body.ltr .header__search-box.search-box__loading .search-box__button:after {
  right: initial;
  left: -20px;
}
body.ltr .header__search-box .search-box__result {
  right: initial;
  left: -1%;
}
body.ltr .header__search-box input {
  border-radius: 15px 0 0 15px;
}
body.ltr .header__search-box .iconSearch {
  border-radius: 0 15px 15px 0;
}
body.ltr .header__search-box .search-box__button {
  border-radius: 0 4px 4px 0;
  padding: 0 5px 0 15px;
}
body.ltr .header__search-box .search-box__button:before {
  transform: scaleX(1);
}

html[lang=ar-SA] .header__search-box.search-box__open.search-box__empty #handlebars-result__header-search:before {
  content: "لم يتم العثور على أي منتج.";
}

html[lang=en-US] .header__search-box.search-box__open.search-box__empty #handlebars-result__header-search:before {
  content: "No product found.";
}
