/* product thumbnails */

.product-thumbnails {
  overflow: hidden;
}
.product-thumbnail > a {
  margin-bottom: 0;
  padding: 10px;
}
.product-mainimg {
  margin-bottom: 5px;
  padding: 10px;
}
.product-mainimg > img {
  width: 400px;
}
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: 5px 0;
  font-size: 16px;
  font-family: var(--font-normal);
}

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: 35px;
  height: 35px;
  font-size: 13px;
  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: rgb(var(--primary-color));
}
#button-wishlist:hover {
  color: #e00;
}
#button-compare {
  color: rgb(var(--primary-color));
}
#button-compare:hover {
  color: rgb(var(--secondery-color));
}

.addthis_toolbox a.addthis_button_compact {
  padding: 0 20px;
  margin: 0;
  font-size: 12px;
  color: #fff;
  background-color: #888;
  text-align: center;
  line-height: 35px;
  display: block;
  cursor: pointer;
}
.addthis_toolbox a.addthis_button_compact:hover {
  background-color: #555;
}
.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) {
  .addthis_toolbox a.addthis_button_compact {
    width: 35px;
    padding: 0;
  }
}

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

/* Rating */
.rating p {
  margin: 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;
}

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

.prodprices {
  margin: 0;
}
.prodprices h2 {
  font-size: 22px;
  direction: ltr;
  color: var(--primary-color);
  margin: 0;
}
.prodprices h3 {
  font-size: 22px;
  direction: ltr;
  color: #cecece;
  text-decoration: line-through;
  margin: 0;
}

.quantity_cart {
  display: flex;
  align-items: center;
}
.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: 100px;
  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 {
  border: none;
  width: 160px;
  height: 45px;
  display: inline-block;
  color: #fff;
  background-color: var(--secondery-color);
  font-size: 14px;
}
#button-cart:hover,
#button-cart:focus {
  background-color: var(--primary-color);
}

.extrainfos {
  border-bottom: 1px solid #eee;
  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;
  }
}

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