﻿@charset "UTF-8";
/* Following media queries are based on Bootstrap 3.x breakpoints */
/* @extend */
.header__search-box {
  position: relative;
  /*margin-top: 25px;*/
  margin-bottom: 0;
  /*padding: 0 40px;*/
}
@media (max-width: 992px) {
  .header__search-box {
    padding: 0;
    margin-top: 0px;
  }
}
.header__search-box > .input-group {
  display: flex;
  flex-direction: row-reverse;
  border-radius: 6px;
  border: 1px solid #c4c4c4;
}
.header__search-box input {
  width: 100%;
  border-right-color: transparent;
  padding-right: 12px;
  border: unset;
  border-right: 0;
  line-height: 44px;
  height: 44px;
  font-size: 0.8em;
  border-radius: 0px 6px 6px 0px;
  color: #000;
}
.header__search-box input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #b7b7b7;
  font-size: 12px;
}
.header__search-box input::-moz-placeholder { /* Firefox 19+ */
  color: #b7b7b7;
  font-size: 12px;
}
.header__search-box input:-ms-input-placeholder { /* IE 10+ */
  color: #b7b7b7;
  font-size: 12px;
}
.header__search-box input:-moz-placeholder { /* Firefox 18- */
  color: #b7b7b7;
  font-size: 12px;
}
.header__search-box span.input-group-addon {
  cursor: pointer;
  border: 0 none;
  padding: 0 1px;
  width: 42px;
  background-color: transparent;
  border-radius: 6px 0 0 6px;
}
.header__search-box span.input-group-addon i {
  font-size: 1.2em;
  position: relative;
  cursor: pointer;
  line-height: 44px;
  color: #a3a3a3;
  transform: scale(-1, 1);
}
.header__search-box span.input-group-addon:hover, .header__search-box span.input-group-addon:focus {
  background-color: #cc0000;
}
.header__search-box span.input-group-addon:hover i, .header__search-box span.input-group-addon:focus i {
  color: #fff;
}
.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__result #handlebars-result__header-search .items__container {
  display: grid;
  grid-template-columns: 100px 1fr;
}
@media (max-width: 768px) {
  .header__search-box.search-box__open .search-box__result #handlebars-result__header-search .items__container {
    grid-template-columns: 70px 1fr;
    margin: 15px 0;
  }
}
.header__search-box.search-box__open .search-box__result #handlebars-result__header-search .items__container .items__info .items__info-title {
  display: block;
  margin-top: 10px;
  color: #cc0000;
}
@media (max-width: 768px) {
  .header__search-box.search-box__open .search-box__result #handlebars-result__header-search .items__container .items__info .items__info-title {
    font-size: 12px;
    margin-top: 0px;
  }
}
.header__search-box.search-box__open .search-box__result #handlebars-result__header-search .items__container .items__info .items__info-price {
  margin-top: 10px;
  font-weight: 600;
  color: #26347b;
}
@media (max-width: 768px) {
  .header__search-box.search-box__open .search-box__result #handlebars-result__header-search .items__container .items__info .items__info-price {
    margin-top: 0px;
  }
}
.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:before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border-top: 2px solid #999;
  border-right: 2px solid transparent;
  animation: loading-spin 0.6s linear infinite;
  display: inline-block;
  margin-left: 5px;
  position: absolute;
  top: 9px;
  left: 40px;
  z-index: 9;
}
.header__search-box .search-box__result {
  position: absolute;
  width: 102%;
  right: -1%;
  overflow: hidden;
  z-index: 9999;
  visibility: hidden;
}
.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: #E71516;
}
.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%;
  text-align: left;
  direction: ltr;
}
@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 img {
  width: 100%;
  height: auto;
}
