/* animation */

@-webkit-keyframes slide-top {
  0% {
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}
@keyframes slide-top {
  0% {
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}
/* animation */

/* this repeat for blog bage */
.pagination {
display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 1rem 0;
    width: 50%;
    margin: 0 auto;
    bottom: -14%;
    /* transform: translateX(-45%); */
    width: 100%;
}

.pagination--background {
  width: 2rem;
}
.pagination--background__orange {
  display: none;
}

.pagination--link:active .pagination--background__orange {
  display: block;
}
.pagination--link:active .pagination--background__gray {
  display: none;
}

.pagination--link {
  position: relative;
  margin: 0 0.3rem;
}

.pagination--position {
  position: absolute;
  right: 0;
  top: 11%;
}
.pagination--size > img {
  width: 0.8rem;
  height: 1.2rem;
}
/* pagination--left */
.pagination--left {
  display: flex;
}
.pagination--left__caret > img:first-child {
  transform: translate(-115%);
}
.pagination--left__caret > img:last-child {
  transform: translate(85%);
}
.pagination--left__arrow > img {
  transform: translate(-87%);
}

/* pagination--center */
.pagination--center {
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  margin: 0 1rem;
}
.pagination--number {
  position: absolute;
  left: 38%;
  top: 3%;
  color: var(--color-navy-blue);
}

/* pagination--right */
.pagination--right {
  display: flex;
  justify-content: flex-end;
}
.pagination--right__arrow > img {
  transform: translate(-65%);
}

.pagination--right__caret > img:first-child {
  transform: translate(-41%);
}
.pagination--right__caret > img:last-child {
  transform: translate(50%);
}
/* this repeat for blog bage */

/* this repeat for select */
.custom-select {
  position: relative;
  display: flex;
  flex-direction: column;

  /* this page: remove */
  /* margin: 0.5rem auto 0 auto; */
}
p.woocommerce-result-count {
  display: none;
}
select.orderby {
  border-top: none;
  border-right: none;
  border-left: none;
  border-bottom: var(--border-bottom-orange);
  background-color: var(--background-color-gray);
  font-size: 0.85rem;
  font-family: IRANSans;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 32%;

  /* this page: change */
  padding: 0.5rem;
}

.custom-options {
  position: absolute;
  display: block;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background-color-gray);
  border: 2px solid var(--color-orange);
  border-top: 0;
  transition: all 0.5s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
  text-align: right;
}
.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  text-align: right;
}

.custom-select.open .custom-select__trigger ::after {
  transform: rotateX(180deg);
  top: -45%;
}

.custom-option {
  position: relative;
  display: block;
  cursor: pointer;
  font-family: IRANSans;
  font-size: 0.85rem;
  transition: all 0.5s;

  /* this page: change */
  padding: 0.5rem;
}
.custom-option:hover {
  cursor: pointer;
  background-color: #b2b2b2;
}
.custom-option.selected {
  color: var(--color-gray);
  background-color: var(--background-color-navy-blue);
}
/* this reepeat for select */

.products--all, 
.singlepost{
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 5rem 0;
	width: 100%;
	height: 100%;
}

.singlepost{
	margin-top: 0;
	padding: 3rem 0;
	width: 100%;
	height: 100%;
	display: flex;
  	justify-content: space-between;
}

/* products--ShowCase */
.products--ShowCase{
  width: 70%;
  height: 100%;
  position: relative;
}

.postsingle{
	width: 100%;
	height: 100%;
  position: relative;
	overflow: hidden !important;
}

.products--ShowCase__title {
  display: flex;
  justify-content: space-between;
}

.products--ShowCase__select {
  width: 32.5%;
}
.products--ShowCase__compare {
  width: 66%;
  background-color: var(--background-color-orange);
  padding: 0 0.5rem;
  margin-right: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.products--ShowCase__compare__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-color-gray);
  padding: 0 0.35rem;
  margin: 0.35rem 0;
  width: 27%;
}

.products--ShowCase__compare__item > div > img {
  width: 1.5rem;
}

.products--ShowCase__compare__item > div > span {
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.products--ShowCase__compare__item > span {
  cursor: pointer;
  font-size: 1.25rem;
}

.products--ShowCase__compare__item__inner {
  display: flex;
  align-items: center;
}

.products--ShowCase__compare__text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 15%;
  font-size: 0.85rem;
}

#navbar {
  background-color: rgb(38, 38, 51) !important;
  border-bottom: 2px solid rgb(255, 131, 74) !important;
/*   padding: 0.75rem !important; */
}
.products--ShowCase__compare__text img {
  width: 0.45rem;
}
.products--ShowCase__cards{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  grid-gap: 1rem;
  margin-top: 2rem;
  /* padding: 5rem 0; */
}

ul.archivepost{
	width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  grid-gap: 1rem;
  margin-top: 2rem;
}

.products--card {
  background-color: var(--background-color-gray);
	padding: 1rem 0 3rem 0;
	position: relative;
	height: 100%;
}

.products--card:hover {
  background-color: var(--background-color-orange);
  transition: all 1s;
}

.products--card:hover .overlay {
  animation: slide-top 0.4s;
  opacity: 1;
  visibility: visible;
}

.products--compare {
  background-color: var(--background-color-navy-blue);
  padding: 0.5rem;
  width: 15%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 5%;
}
.products--card__discount {
  font-family: 'IRANSansPN';
}
.overlay--compare:active .compare--noneactive {
  display: none;
}

.overlay--compare:active .compare--active {
  display: block;
}

.products--card__header,
.products--card__footer {
  text-align: center;
  font-size: 0.8rem;
}

.products--card__discount img {
  width: 1.5rem;
  position: absolute;
  right: 0;
  top: 15%;
}

.products--card__discount span {
  display: block;
  position: absolute;
  right: 0.5%;
  top: 17%;
  line-height: 1.25;
}

.products--card__header h4,
.products--card__header span {
  color: var(--color-black);
}

.products--card__body {
  text-align: center;
}
.products--card__body img {
  width: 15rem;
  height: auto;
}
.products--card__footer {
  padding-top: 0.5rem;
}
.woocommerce-Price-amount {
  font-family: IRANSansPN;
}
.woocommerce-Price-currencySymbol {
  font-size: inherit;
}
.main-p {
  font-weight: bold;
  font-size: 15px;
	width: 100%;
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);

}
.overlay {
  background-color: var(--background-color-navy-blue);
  padding: 0.3rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
	    height: 40px;
}

.overlay > a {
  display: flex;
  align-items: center;
  background-color: var(--background-color-gray);
  border: none;
  border-bottom: var(--border-bottom-orange);
  padding: 0.2rem;
  font-size: 0.75rem;
  cursor: pointer;
}

a.overlay--interest {
  margin-left: 0;
} 
.overlay--interest img {
  width: 1rem;
  margin-left: 0.5rem;
}
.overlay--interest .yith-wcwl-add-to-wishlist {
  width: 1rem;
}
.yith-wcwl-add-to-wishlist svg {
	    width: 18px;
	margin-top: .5rem;
}
.overlay--image {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
}

.overlay--add span {
  color: var(--color-black);
}
.overlay--add img {
  width: 1rem;
  margin-left: 0.5rem;
}

.compare--noneactive,
.compare--active {
  width: 1.25rem;
  /* margin-right: 0.5rem; */
}

.compare--active {
  display: none;
}
/* products--ShowCase */

/* products--filter */
.products--filter {
  width: 30%;
  height: 100%;
  padding-right: 1rem;
}

.products--filter__title {
  text-align: center;
  margin-top: 30px;

}

.filter {
  background-color: var(--background-color-navy-blue);
  height: 90%;
  margin-top: 1rem;
  padding: 1rem;
}

.filter--title {
  color: var(--color-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-gray);
  padding: 0.5rem 0;
}

.filter--title span {
  font-size: 0.9rem;
  font-family: 'IRANSansPN';

}
.filter--title img {
  width: 0.8rem;
}

.filter--option {
  /* width: 50%; */
  margin: auto;
  /* border-radius: 4px; */
  overflow: hidden;
  /* border: 5px solid red; */
  border-bottom: 1px solid var(--color-gray);
  padding: 0.5rem 0;
}

.filter--option__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
}

.filter--option__title > span {
  color: var(--color-orange);
  font-size: 0.9rem;
}
/* .filter--option__title .chevron--noneactive {
  width: 0.5rem;
  transform: rotate(90%);
} */

.filter--option__title > img {
  width: 1rem;
	transition: transform .5s;
}

.filter--option__title > img.active{
  transform: rotateX(180deg);
}

.filter--option__items {
  width: 100%;
  margin-top: 0.5rem;
  overflow: hidden;
  transition: 0.4s;
  height: 0;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.filter--option__items input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

.filter--option__items .woocommerce-widget-layered-nav-list li a {
  display: inline-block;
  background-color: var(--background-color-gray);
  padding: 0.15rem 1rem;
  margin: 0.5rem 0.25rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  color: var(--color-black);
}

.filter--option__items input[type="radio"]:checked + label {
  background-color: var(--background-color-orange);
}

/* products--filter */

.price_slider {
  margin-bottom: 1em;
}

.price_slider_amount {
  text-align: center;
  line-height: 2.4em;
  font-size: 0.8em;
  font-family: 'IRANSansPN';
  color: var(--color-orange);
}
.filter--option__items form {
  width: 100%;
}
.price_slider_amount .button {
  font-size: 1.15em;
  color: white;
  background-color: var(--background-color-orange);
  padding: 1px 30px;
}

.ui-slider {
  position: relative;
  text-align: left;
}

.count {
  color: var(--color-gray);
  font-size: 14px;
}

.ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  border: solid 1px var(--background-color-orange);
  cursor: pointer;
  background: var(--background-color-orange);
  outline: none;
  top: -.2em;

}

.ui-slider .ui-slider-handle:last-child {
  margin-left: -.9em;

}

.ui-slider .ui-slider-range {
  position: absolute;
  z-index: 1;
  display: block;
  border: 0;
  background: var(--background-color-gray);
  -webkit-border-radius: 1em;
  -moz-border-radius: 1em;
  border-radius: 1em;
}

.price_slider_wrapper .ui-widget-content {
  -webkit-border-radius: 1em;
  -moz-border-radius: 1em;
  border-radius: 1em;
  background: var(--background-color-gray);
  margin-top: 20px;
}

.ui-slider-horizontal {
  height: .5em;
}

.ui-slider-horizontal .ui-slider-range {
  top: 0;
  height: 100%;
}

.ui-slider-horizontal .ui-slider-range-min {
  left: -1px;
}

.ui-slider-horizontal .ui-slider-range-max {
  right: -1px;
}
.product-categories {
  width: 100%;
}
.product-categories li a {
  color: var(--color-gray);
  display: block;
  margin-bottom: 5px;
}
.filter--option__items .woocommerce-widget-layered-nav-list li span {
  display: none;
}
.filter--option__items .woocommerce-widget-layered-nav-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.compare-button a.compare::after ,.woocommerce a.button.added::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url(../img/icons/compare.svg);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    background-color: transparent !important;
    right: -12px;
    top: -1px;
}

.woocommerce a.button:hover ,.woocommerce a.button{
	    background-color: transparent !important;
    color: white;
        margin-inline-start: 17px;

    font-size: 10px;
    padding: 0 12px 0 0;
}
.compare-button a.compare.added::after {
    background-image: url(../img/icons/compare-active.svg) !important;
	top: -11px !important;
}
/****************************************************** media-query ******************************************************/
@media (max-width: 1200px){
	.products--card__body img {
		width: 8rem;
	}

}

@media (max-width: 992px) {
  .products--ShowCase__cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .pagination {
    width: 100%;
  }

  .products--ShowCase__title {
    flex-direction: column;
  }

  .products--ShowCase__select {
    width: 50%;
  }

  .products--ShowCase__compare {
    margin-right: 0;
    margin-top: 1rem;
    width: 100%;
  }
	
	.products--card__body img {
    	width: 11rem;
	}
	
	select.orderby{
		width: 48%;
	}

  .filter {
    height: 92.5%;
  }
	
	ul.archivepost{
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	select.orderby {
		width:100%;
	}
  .products--all {
    flex-direction: column-reverse;
	  height: auto;
  }

  .products--filter {
    width: 100%;
    padding-right: 0;
    margin-bottom: 5rem;
  }

  .products--ShowCase {
    width: 100%;
    margin-top: 1rem;
  }

	ul.archivepost{
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 470px) {
  .products--ShowCase__cards {
    grid-template-columns: repeat(1, 1fr);
  }
	ul.archivepost{
		grid-template-columns: repeat(1, 1fr);
	}
/*   .pagination {
    bottom: -5%;
  } */
  .products--card__body img {
    width: 15rem;
  }

  .pagination--background {
    width: 1.92rem;
  }
  /* repeat in blog page for pagination */
  .pagination--link {
    margin: 0 0.1rem;
  }
  .pagination--right {
    justify-content: flex-start;
  }
  .pagination--left {
    justify-content: flex-end;
  }
  .pagination--center {
    margin: 0;
  }
  .input-position-img {
    width: 1.15rem;
  }
  /* repeat in blog page for pagination */
}

@media (max-width: 375px) {
  .products--ShowCase__select {
    width: 75%;
  }
}
/****************************************************** media-query ******************************************************/
