﻿@charset "UTF-8";
/* Following media queries are based on Bootstrap 3.x breakpoints */
.toggle-compare {
  position: fixed;
  bottom: 0;
  display: block;
  width: 200px;
  background-color: #2196f3;
  right: 60px;
  z-index: 1000;
  color: #fff;
  border-radius: 34px 34px 0 0;
  font-size: 1.1em;
  cursor: pointer;
  border-radius: 34px 34px 0 0;
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition: -webkit-transform .2s;
  transition: -webkit-transform .2s;
  transition: transform .2s;
  transition: transform .2s, -webkit-transform .2s;
  -webkit-box-shadow: 0 -4px 4px rgba(0, 0, 0, 0.15);
          box-shadow: 0 -4px 4px rgba(0, 0, 0, 0.15); }
  .toggle-compare:before {
    content: "مقایسه (" attr(data-count) " مورد)";
    height: 34px;
    line-height: 34px;
    text-align: center;
    display: block; }
  .toggle-compare:after {
    border-right: 2px solid #eee;
    border-bottom: 2px solid #eee;
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
    content: '';
    width: 15px;
    height: 15px;
    width: 10px;
    height: 10px;
    position: absolute;
    left: 25px;
    top: 13px;
    -webkit-transition: -webkit-transform .2s;
    transition: -webkit-transform .2s;
    transition: transform .2s;
    transition: transform .2s, -webkit-transform .2s; }
  .toggle-compare + div {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    padding: 15px;
    z-index: 999;
    -webkit-box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
            box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
    -webkit-transform: translateY(100%);
            transform: translateY(100%);
    -webkit-transition: -webkit-transform .2s;
    transition: -webkit-transform .2s;
    transition: transform .2s;
    transition: transform .2s, -webkit-transform .2s;
    height: 200px; }
    .toggle-compare + div img {
      max-height: 140px; }
    .toggle-compare + div a {
      margin-top: 70px;
      background-color: #2196f3;
      color: #fff;
      display: block;
      width: 100px;
      height: 32px;
      line-height: 30px;
      text-align: center;
      color: #fff; }
      .toggle-compare + div a:hover {
        background-color: #0c7cd5;
        text-decoration: none; }
  .toggle-compare.active {
    -webkit-transform: translateY(-200px);
            transform: translateY(-200px); }
    .toggle-compare.active:after {
      -webkit-transform: rotate(-135deg);
              transform: rotate(-135deg); }
    .toggle-compare.active + div {
      -webkit-transform: translateY(0);
              transform: translateY(0); }

#compare__handlebars-results figure {
  position: relative; }

#compare__handlebars-results figcaption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
  font-size: 90%; }

#compare__handlebars-results img {
  border: 1px solid #ddd; }

#compare__handlebars-results i {
  position: absolute;
  top: -10px;
  right: -10px;
  cursor: pointer; }
  #compare__handlebars-results i:before {
    content: 'X';
    font-size: 15px;
    font-style: normal;
    cursor: pointer;
    background-color: #eee;
    width: 30px;
    display: block;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px; }
  #compare__handlebars-results i:hover:before {
    background-color: #ff6b6b;
    color: #fff; }

.product-list .product-box__item:hover .product-box__compare-label {
  display: block !important; }

.product-list .product-box__item.compare__selected .product-box__compare-label {
  display: block !important; }

.compare__list .fa-times {
  position: absolute;
  right: -5px;
  top: -5px;
  font-size: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ddd;
  line-height: 22px;
  cursor: pointer; }

@media (max-width: 767px) {
  #Body .compare-preview a {
    margin-top: 0;
    position: relative;
    top: -4px;
    right: -10px; }
  #Body #compare__handlebars-results figure {
    height: 30px; }
    #Body #compare__handlebars-results figure img {
      display: none; }
    #Body #compare__handlebars-results figure i {
      top: -2px; }
    #Body #compare__handlebars-results figure figcaption {
      text-align: right;
      padding-right: 30px; } }
