/* product thumbnails */

.product-thumbnails {
  overflow: hidden;
}

.product-thumbnail > a {
  margin-bottom: 0;
  padding: 0;
}

.product-mainimg {
  margin-bottom: 5px;
  padding: 0;
}

.product-mainimg > img {
  width: 100%;
}

a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
  border-color: var(--primary-color);
}

html[dir="rtl"] .mfp-title {
  padding-right: 0;
  padding-left: 36px;
  text-align: right;
}

html[dir="rtl"] .mfp-counter {
  right: auto;
  left: 0;
  direction: ltr;
}

/* ================================ */

/* Head */
.productpage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.productpage-head h1 {
  margin: 10px 0;
  font-size: 16px;
  font-family: var(--font-normal);
}

.wishlist_compare.xs-wishlist_compare {
  display: none;
}

html[dir="rtl"] .wishlist_compare {
  margin-right: auto;
  margin-left: 5px;
}

html[dir="ltr"] .wishlist_compare {
  margin-left: auto;
  margin-right: 5px;
}

.wishlist_compare,
.addthis_toolbox {
  flex-shrink: 0;
}

#button-wishlist,
#button-compare {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
  background-color: #fff;
  border: 1px solid #f2f2f2;
}

html[dir="ltr"] #button-wishlist {
  margin-left: 10px;
}

html[dir="rtl"] #button-wishlist {
  margin-right: 10px;
}

#button-wishlist {
  color: var(--text-color);
}

#button-wishlist:hover {
  color: var(--primary-color);
}

#button-compare {
  color: var(--text-color);
}

#button-compare:hover {
  color: var(--primary-color);
}

.addthis_toolbox a.addthis_button_compact {
  padding: 0 20px;
  margin: 0;
  font-size: 12px;
  color: #fff;
  background-color: #e88102;
  text-align: center;
  line-height: 35px;
  display: block;
  cursor: pointer;
}

.addthis_toolbox a.addthis_button_compact:hover {
  background-color: #e88102b5;
}

.atm {
  margin-top: 5px !important;
}

html[dir="rtl"] .atm {
  margin-left: -20px !important;
}

html[dir="ltr"] .atm {
  margin-right: -20px !important;
}

.atm .atm-i {
  border: none;
  margin-top: 5px;
}

a.at-branding-logo.at-expanded-menu-branding,
.atm-f {
  display: none;
}

@media (max-width: 767px) {
  .productpage-head {
    position: relative;
  }

  .productpage-head > h1 {
    max-width: 95%;
  }

  .wishlist_compare {
    display: none;
  }

  .wishlist_compare.xs-wishlist_compare {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: absolute;
    top: 0;
  }

  html[dir="rtl"] .xs-wishlist_compare.wishlist_compare {
    margin: 0;
    left: 0;
  }

  html[dir="ltr"] .xs-wishlist_compare.wishlist_compare {
    margin: 0;
    right: 0;
  }

  html[dir="ltr"] #button-wishlist {
    margin: 0 0 10px;
  }

  html[dir="rtl"] #button-wishlist {
    margin: 0 0 10px;
  }
}

/* ================================ */

/* Rating */
.rating p {
  margin: 0 0 20px 0;
}

.rating i.fa {
  color: #dfdfdf;
  font-size: 12px;
}

.rating i.fa.active {
  color: #ffd537;
}

/*Product options*/
.product_options {
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.product_options .form-group {
  margin-bottom: 20px;
}

#product .control-label {
  display: table;
  font-weight: normal;
  font-size: 14px;
  margin: 10px 0;
  color: #878787;
}

.product_options .form-control,
.input-group.date,
.product_options .btn-block {
  max-width: 270px;
}

.product_options > h3 {
  width: 100%;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .product_options select.form-control {
    width: 100%;
    max-width: 100%;
  }
}

/* Price & buttons box */
.product_flexbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 20px 0 0;
  border-top: 1px solid #eee;
}

.prodprices {
  margin: 0;
}

.prodprices h2 {
  font-size: 22px;
  color: var(--primary-color);
  margin: 0;
}

.prodprices h3 {
  font-size: 22px;
  color: #cecece;
  text-decoration: line-through;
  margin: 0;
}

html[dir="ltr"] .prodprices h2,
html[dir="ltr"] .prodprices h3 {
  direction: ltr;
}

.quantity_cart {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.quantity_cart > div {
  display: flex;
  align-items: center;
  margin:10px 0;
}

.quantity_box {
  position: relative;
}

.quantity_control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 12px;
  padding: 5px;
}

html[dir="rtl"] #qbtn-plus {
  right: 20px;
}

html[dir="rtl"] #qbtn-min {
  left: 20px;
}

html[dir="ltr"] #qbtn-plus {
  left: 20px;
}

html[dir="ltr"] #qbtn-min {
  right: 20px;
}

#input-quantity {
  height: 40px;
  width: 174px;
  border: 1px solid #f2f2f2;
  color: #aaa;
  background-color: #fff;
  font-size: 16px;
  text-align: center;
  margin: 0 10px;
  padding: 0 10px;
  -webkit-box-shadow: none;
  box-shadow: none;
}

#input-quantity:focus {
  border-color: var(--primary-color);
}

#button-cart,
#ask-price
 {
  border: none;
  width: 189px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: var(--primary-color);
  font-size: 16px;
}

html[dir="ltr"] #button-cart span,
html[dir="ltr"] #button-cart i,
html[dir="ltr"] #ask-price span,
html[dir="ltr"] #ask-price i
{
  margin-right: 5px;
}

html[dir="rtl"] #button-cart span,
html[dir="rtl"] #button-cart i,
html[dir="rtl"] #ask-price span,
html[dir="rtl"] #ask-price i 
{
  margin-left: 5px;
}

#button-cart:hover,
#button-cart:focus,
#ask-price:hover,
#ask-price:focus
 {
  background-color: var(--secondery-color);
}

#xs-button-cart,
#xs-ask-price
 {
  display: none;
  height: auto;
  line-height: 60px;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
  position: sticky;
  bottom: 0;
  margin: 40px -15px 0;
  width: calc(100% + 30px);
  z-index: 10;
  border-radius: 0;
}

html[dir="ltr"] #xs-button-cart span,
html[dir="ltr"] #xs-button-cart i,
html[dir="ltr"] #xs-ask-price span,
html[dir="ltr"] #xs-ask-price i
 {
  margin-right: 5px;
}

html[dir="rtl"] #xs-button-cart span,
html[dir="rtl"] #xs-button-cart i,
html[dir="rtl"] #xs-ask-price span,
html[dir="rtl"] #xs-ask-price i 
 {
  margin-left: 5px;
}

@media (max-width: 767px) {
  #button-cart,
  #ask-price
   {
    display: none;
  }

  #xs-button-cart,#xs-ask-price {
    display: flex;
  }
}

.extrainfos {
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.product_data > li {
  margin-bottom: 5px;
  color: #878787;
}

.product_data span {
  font-family: var(--font-bold);
  display: inline-block;
  width: 100px;
}

.product-tabs {
  margin-top: 40px;
  border-color: #ebebeb;
}

.product-tabs > li.active > a,
.product-tabs > li.active > a:hover,
.product-tabs > li.active > a:focus {
  color: var(--primary-color);
  background-color: #fff;
  border-color: #ebebeb;
  border-bottom-color: transparent;
}

.product-tabs > li > a {
  color: #858585;
  background-color: #f2f2f2;
  border-color: #f2f2f2;
  margin: 0;
  min-width: 160px;
  text-align: center;
  font-size: 16px;
  font-family: var(--font-normal);
}

html[dir="rtl"] .product-tabs > li > a {
  margin-left: 5px;
}

html[dir="ltr"] .product-tabs > li > a {
  margin-right: 5px;
}

.product-tabs > li > a:hover,
.product-tabs > li > a:focus {
  color: var(--primary-color);
  background-color: #f2f2f2;
  border-color: #f2f2f2;
}

.tab-content.proddtls {
  padding: 30px 35px;
  border: 1px solid #f2f2f2;
  border-top: none;
  font-size: 15px;
  margin-bottom: 40px;
}

#tab-description {
  line-height: 1.9;
}

#tab-description * {
  font-family: var(--font-normal) !important;
}

#tab-description img {
  max-width: 100%;
}

#tab-specification thead td {
  background-color: #e5e5e5;
}

.product-tabs .tab-pane {
  padding: 20px 15px;
}

#product-product h1,
.product_options h3,
h3.relatedTitle,
.product-tabs > li > a {
  font-family: var(--font-bold);
}

/* ================================ */
/* Media query */

@media (max-width: 991px) {
  #product .control-label {
    display: block;
  }

  #input-quantity {
    text-align: center;
  }

  #button-cart {
    margin: 10px 0;
  }

  #product {
    margin-bottom: 30px;
  }

  .nav > li > a {
    width: auto;
    font-size: 14px;
  }

  .quantity_cart {
    flex-wrap: wrap;
    justify-content: center;
  }

  .product_flexbox {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .productpage-head {
    margin: 25px 0 0;
  }

  #product .control-label {
    display: block;
  }

  .product_options .form-group {
    width: 100%;
  }

  .prodprices {
    margin: 15px 0;
  }

  #input-quantity {
    text-align: center;
  }

  .cart_review {
    flex-direction: column;
  }

  #button-cart {
    margin: 10px 0;
  }

  #product {
    margin-bottom: 30px;
  }

  .nav > li > a {
    min-width: auto;
    font-size: 14px;
  }

  .quantity_cart {
    flex-wrap: wrap;
    justify-content: center;
  }

  .product_flexbox {
    flex-direction: column;
  }
}

@media (max-width: 479px) {
  .rating a {
    display: block;
  }
}

@media (max-width: 359px) {
  .product-tabs {
    display: flex;
    overflow: auto;
    white-space: nowrap;
    margin-bottom: -1px;
    border-bottom: none;
  }

  .product-tabs > li {
    margin-bottom: 0;
  }

  .product-tabs > li > a {
    font-size: 13px;
  }

  .tab-content.proddtls {
    border-top: 1px solid #f2f2f2;
  }
}

/* ================================ */
.advanced_radio input + span,
.advanced_checkbox input + span {
  background-color: #fff;
  border: 1px solid #dddd;
  line-height: 26px;
  margin: 0 3px;
}

ul.list-unstyled.list-inline.prodprices {
  margin: 25px 0;
}

#review span.fa.fa-stack {
  font-size: 11px;
}

#review .fa.fa-star.fa-stack-2x {
  color: #ffd537;
}

#review .fa.fa-star.fa-stack-2x + .fa.fa-star-o.fa-stack-2x {
  color: #ffd537;
}

#review .fa.fa-stack {
  color: #dfdfdf;
}

/* add this */

.custom_images {
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  padding: 20px 0 40px;
}

.custom_images > a {
  width: max-content;
  padding: 0 12px;
  height: 42px;
  color: #fff;
  background-color: var(--primary-color);
  margin: 0 2px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.custom_images > a:hover {
  transform: translateY(-3px);
}

.custom_images > a > i {
  font-size: 16px;
}

html[dir="ltr"] .custom_images > a > i {
  margin-left: 7px;
}

html[dir="rtl"] .custom_images > a > i {
  margin-right: 7px;
}

.custom_images > a.sh-btn-facebook {
  background-color: #3b5998;
}

.custom_images > a.sh-btn-twitter {
  background-color: #1da1f2;
}

.custom_images > a.sh-btn-whatsapp {
  background-color: #25d366;
}

.custom_images > a.sh-btn-telegram {
  background-color: #0088cc;
}

.custom_images > a.sh-btn-email {
  background-color: #333;
}

@media (max-width: 767px) {
  .custom_images > a {
    width: 42px;
    padding: 0 0;
  }

  .custom_images > a > span {
    display: none;
  }

  .custom_images > a > i {
    font-size: 20px;
  }

  html[dir="ltr"] .custom_images > a > i {
    margin-left: 0;
  }

  html[dir="rtl"] .custom_images > a > i {
    margin-right: 0;
  }
}

.relatedTitle {
  font-size: 24px;
  font-family: var(--font-bold);
  text-align: center;
  margin-bottom: 25px;
}

.default_products_slider {
  position: relative;
}

.default_products_slider .swiper-btn {
  position: absolute;
  z-index: 1;
  top: 130px;
  -webkit-transform: none;
  transform: none;
  width: auto;
  height: auto;
  background-color: transparent;
  display: none;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 15px;
  color: #000;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

@media (min-width: 1320px) {
  .default_products_slider .swiper-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}

.default_products_slider .swiper-btn:hover {
  color: var(--primary-color);
}

.default_products_slider .swiper-btn.swiper-btn-next {
  left: -30px;
}

.default_products_slider .swiper-btn.swiper-btn-prev {
  right: -30px;
}

.default_products_slider .swiper-pagination {
  position: relative;
  width: 100%;
  bottom: auto;
  display: none;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: 30px;
}

@media (max-width: 991px) {
  .default_products_slider .swiper-pagination {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}

.default_products_slider .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #000;
  opacity: 0.3;
  margin: 0 3px;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  outline: none !important;
  border-radius: 50%;
}

.default_products_slider .swiper-pagination .swiper-pagination-bullet:hover {
  background-color: var(--primary-color);
}

.default_products_slider
  .swiper-pagination
  .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--secondery-color);
  opacity: 1;
}

.post-navs {
  border: solid #f2f2f2;
  border-width: 0 0 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 35px 0 ;
  margin-bottom: 40px;
}

.nav-post {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  color: #b2b2b2;
  transition: all 0.3s ease-in-out;
}

.nav-post i {
  font-size: 16px;
}

.prev-post.nav-post {
  margin-inline-start: auto;
}

.next-post.nav-post {
  margin-inline-end: auto;
}

.prev-post.nav-post i {
  margin-inline-start: 7px;
}

.next-post.nav-post i {
  margin-inline-end: 7px;
}

.nav-post:hover {
  color: var(--primary-color);
}

@media (max-width: 767px) {
  .nav-post {
    font-size: 16px;
  }

  .nav-post i {
    font-size: 14px;
  }
}

/* ///////////////////////////////////////// */
#review {
  margin-top: 50px;
}

.rev-tit {
  font-size: 22px;
  color: var(--text-color);
  font-weight: bold;
  margin-bottom: 24px;
}

#review .table-bordered > tbody > tr > th {
  padding: 8px 19px;
}

#review .table-bordered > tbody > tr > td {
  padding: 18px 19px;
}

#review .date {
  font-size: 14px;
  color: var(--text-color);
  text-align: end;
}

#review p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.875;
  margin: 0;
  word-break: break-all;
}

#review .stars {
  font-size: 24px;
  color: #c8c8c8;
  margin-top: 10px;
}

#review .stars .active {
  color: #ffd537;
}

#form-review {
  margin-top: 45px;
}

#form-review label {
  font-size: 16px;
  color: var(--text-color);
  font-weight: 500;
}

#form-review .revstar {
  margin: 0 3px;
  font-size: 24px;
}

@media (max-width: 991px) {
  #review {
    margin-top: 40px;
  }

  .rev-tit {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
  }
}


.main-img .fancy-link {
  border: 2px solid #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-imgs {
  position: relative;
}
.main-imgs .swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: var(--text-color);
  transition: 0.3s;
}
.main-imgs .swiper-btn:hover {
  color: var(--secondery-color);
}
.main-imgs .swiper-btn:after {
  display: none;
}
.thumb-img .thumb-link {
  border: 2px solid #f2f2f2;
  cursor: pointer;
}
.thumbs-imgs {
  margin-top: 10px;
}