/* Gallery */
.product-single-gallery {
  display: flex;
  flex-direction: row-reverse;
  align-items: start;
  justify-content: start;
  gap: 20px;
  padding-bottom: 100px;
}
.main-image {
  position: relative;
  display: inline-block;
  border: 1px solid var(--greyBorder1);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 600px;
}
.main-image img {
  width: 100%;
  height: 100%;
  display: block;
  /* object-fit: cover; */
  object-fit: contain;
  object-position: center;
  touch-action: none;

  transition: transform 0.4s ease;
}
#main-gallery-video {
  width: 100%;
  height: 600px;
  max-width: 100%;
  display: block;
  background-color: black;
}
.thumbnail-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 600px;
  min-width: 110px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  /* margin-top: 10px; */
  /* overflow: auto; */
}
.thumb-image-wrapper {
  width: 100px;
  height: 100px;
}
.thumb-image {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  object-fit: contain;
  object-position: center;
  /* overflow: hidden; */
  transition: border-color 0.4s ease;
}
.thumb-image img {
  border-radius: 4px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}
.thumb-image.active,
.thumb-image:hover {
  border-color: var(--yellow1);
  /* box-shadow: 0 0 5px rgba(0, 115, 170, 0.5); */
}
/* galerry navigation */
.gallery-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 100px;
}

#prev-thumbnail,
#next-thumbnail {
  height: 45px;
  width: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white1);
  border: 1px solid var(--blue1);
  border-radius: 8px;
  color: var(--blue1);
  transition: background-color 0.4s ease, border-color 0.4s ease,
    color 0.4s ease, height 0.4s ease, width 0.4s ease;
}
#prev-thumbnail svg,
#next-thumbnail svg {
  height: 16px;
  width: 18px;
  margin: auto;
}
#prev-thumbnail:hover,
#next-thumbnail:hover {
  background: var(--blue1);
  color: var(--white1);
  border-color: var(--blue1);
  cursor: pointer;
}

/* modal image/video */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}
.lightbox-image,
#lightbox-video {
  max-width: 90%;
  max-height: 90%;
  /* width: 80%; */
  background: var(--white1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  display: none;
}
/* button play */
.thumb-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  pointer-events: none;
}
/* expand button */
.expand-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--white1);
  border: 1px solid var(--greyBorder1);
  padding: 13px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.4s ease;
}
.expand-button img {
  width: 24px;
  height: 24px;
  transition: all 0.4s ease;
}
.expand-button:hover {
  border-color: var(--blue1);
}
/* Sale badge / Out of stock badge */
.out-of-stock-badge {
  position: absolute;
  top: 20px;
  padding: 10px;
  border-radius: 0 6px 6px 0;
  color: var(--white1);
  background: var(--red1);
}
.discount-badge {
  position: absolute;
  top: 20px;
  padding: 10px;
  border-radius: 0 6px 6px 0;
  background: var(--yellow1);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}
.lightbox-image {
  object-fit: contain;
  max-width: 90%;
  max-height: 90%;
  /* min-width: 50%; */
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}
/* Page css */
/* .single-product-upper {
  display: flex;
} */

/* .single-product-left,
.single-product-right {
  width: 50%;
} */

.value-div select,
.reset_variations {
  display: none;
}
/* main content */
.single-product-upper {
  max-width: 1440px;
  padding: 0 50px 50px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(460px, 810px) minmax(300px, 500px);
  gap: 30px;
  color: var(--black1);
  /* grid-template-columns: 3fr 2fr; */
}
.single-product-lower {
  padding: 0 50px 50px;
  max-width: 1440px;
  margin: auto;
}
/* single product right side */
/* right side logo */
.single-product-brand-image {
  height: 23px;
  width: auto;
}
.single-product-right-title {
  padding-top: 24px;
  padding-bottom: 16px;
  transition: all 0.4s ease;
}
.single-product-right-description {
  color: var(--greyText1);
  padding-bottom: 24px;
}
/* price */
.single-product-right-price {
  display: flex;
  gap: 40px;

  .body3 {
    padding-bottom: 10px;
  }
}
.single-product-price-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 32px;

  .sale-price,
  .custom-discount-price {
    color: var(--red1);
  }
  .sale-price .body4,
  .custom-discount-price .body4 {
    color: var(--greyText1);
  }
  .regular-price,
  .custom-price {
    color: var(--greyText1);
    text-decoration: line-through;
  }
  .regular-price .body4,
  .custom-price .body4 {
    color: var(--greyText1);
  }
  .regular-price.body10,
  .custom-price.body10 {
    color: var(--black1);
    text-decoration: none;
  }
}
.variation-options.custom-variation-options.button1 {
  display: flex !important;
  flex-wrap: wrap !important;
}

.variations-column {
  display: flex !important;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  padding: 0 0 32px !important;
  background: var(--white1) !important;
  width: 100%;
}
.custom-variation-options {
  display: flex;
  gap: 12px;
}
.custom-variation-option {
  color: var(--greyText1);
  background: var(--white1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--greyBorder1);
  height: 45px;
  border-radius: 8px;
  transition: all 0.4s ease;
}
.custom-variation-option.selected {
  color: var(--white1);
  background: var(--blue1);
}
.custom-variation-option:hover {
  color: var(--white1);
  background: var(--blue1);
}
.configure-qnt {
  display: flex;
  gap: 8px;
}
#quantity-plus,
#quantity-minus {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 50px;
  width: 30px;
}

.custom-quantiti-input-buttons,
.custom-simple-qnt-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 12px;
}

/* button */
.single-product-btn-primary {
  border: none;
  color: var(--white1);
  background: var(--blue1);
  border-radius: 8px;
  height: 50px;
  width: 100%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all 0.4s ease;
}
.single-product-btn-primary:hover {
  background: var(--hoverBlue1);
}
/* continue content */
.min-purchase {
  color: var(--greyText1);
  padding-bottom: 16px;

  .body3 {
    color: var(--blue1);
  }
}
.loyalty-points {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--black1);
  padding-bottom: 32px;

  img {
    height: 24px;
    width: 24px;
  }

  span {
    color: var(--greyText1);
  }

  .loyalty-points-content {
    display: flex;
    gap: 4px;
  }
}
.warehouse-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--greyBorder1);
}
.warehouse-info-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.warehouse-info-title img {
  height: 20px;
  width: 20px;
}
.warehouses-info-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.warehouse-qnt {
  display: flex;
  align-items: center;
}
.warehouses > .warehouses-container:not(:last-child) {
	margin-bottom: 5px;
}
.warehouses-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

}
.delivery-info {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  border-bottom: 1px solid var(--greyBorder1);
}
.delivery-info-title {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-bottom: 16px;
}
.delivery-info-title img {
  width: 30px;
  height: 30px;
}
.delivery-info-post,
.delivery-info-self {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 24px;

  .body2 {
    color: var(--greyText1);
  }
}
.help-info {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 16px;
  border-bottom: 1px solid var(--greyBorder1);
}
.help-info-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.help-info-contacts {
  display: flex;
  gap: 40px;
}
.help-info-container {
  display: flex;
  flex-direction: column;
  gap: 6px;

  .body2 {
    color: var(--greyText1);
  }
}
/* product page tabs */
.product-page-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-single-tab {
  display: flex;
  flex-direction: column;
  /* scroll-margin-top: 200px; */
}
.product-tab-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border: 1px solid var(--greyBorder1);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s ease;
}
.product-tab-title:hover {
  border-color: var(--blue1);
}
.product-tab-title::after {
  content: "";
  background-image: url(../../icons/arrow_down_passive_black.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 24px;
  width: 24px;
  display: block;
  transition: transform 0.4s ease;
}
.product-single-tab.active .product-tab-title {
  background: var(--blue1);
  border-color: var(--blue1);
  color: var(--white1);
}
.product-single-tab.active .product-tab-title::after {
  background-image: url(../../icons/arrow_down_active_white.svg);
  transform: rotate(180deg);
}

.product-tab-content {
  /* display: none; */
  opacity: 0;
  visibility: hidden;
  height: 0;
  pointer-events: none;
  text-align: left;
  transition: all 0.4s ease;
}
.product-single-tab.active .product-tab-content {
  /* display: block; */
  opacity: 1;
  visibility: visible;
  padding-top: 30px;
  padding-bottom: 14px;
  height: fit-content;
  pointer-events: auto;
}
.product-single-tab.active .product-tab-content a {
  color: var(--black1);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.4s ease;
}
.product-single-tab.active .product-tab-content a:hover {
  color: var(--blue1);
}
.product-single-tab.active .product-tab-content a::after {
  content: "";
  background-image: url("../../icons/download.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 24px;
  height: 24px;
  display: block;
}

.woocommerce-custom-tab {
  overflow-y: hidden;
  overflow-x: auto;
  scrollbar-width: thin;
}
.woocommerce-custom-tab p:has(> a) {
  display: flex;
  flex-direction: column;
  /* gap: 16px; */
}
.woocommerce-custom-tab a {
  width: fit-content;
  margin: 8px 0;
}

/* related products */
.related-products-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 50px;
}
.single-product-related-products ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  padding-top: 30px;
}

.single-product-related-products ul li {
  /* width: 323px; */
  width: 100%;
  flex-shrink: 0;

  .single-product-img a {
    width: 100%;
  }
}
/* description */
table {
  width: 100%;
}
tbody tr:nth-child(odd) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 20px;
  background-color: var(--greyBackground1);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  font-family: "Inter";
}
tbody tr:nth-child(even) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 20px;
  background-color: var(--white1);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  font-family: "Inter";
}

.woocommerce-variation-price,
.product_meta,
.stock,
.reset_variations {
  display: none !important;
}

.points-wrapper {
  display: flex;
  margin-bottom: 32px;
}

.points-worth,
.real-worth {
  border-radius: 8px;
  padding: 12px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  white-space: nowrap;
}

.real-worth .body4 {
  color: var(--greyText1);
}

.points-worth {
  background-color: var(--blue2);
}

/* Similar peoducts */
.similar-qty-controls.disabled {
  pointer-events: none;
  opacity: 0.4;
}
/* extra products proposal wrapper */
.similar-products-wrapper {
  margin: 50px 0 16px;
  transition: margin 0.4s ease;

  .h3 {
    color: var(--black1);
    margin-bottom: 30px;
    transition: margin-bottom 0.4s ease;
  }

  .similar-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .basket-single-item {
    border: 1px solid var(--greyBorder1);
    border-radius: 6px;
    padding: 16px 20px !important;
    display: flex;
    gap: 0px;
    justify-content: start;
    position: relative;
    transition: padding 0.4s ease, border-color 0.4s ease;
  }
  .basket-single-item:hover {
    border-color: var(--blue1);
  }
  .basket-single-item:has(.similar-checkbox:checked) {
    border-color: var(--blue1);
  }
  .basket-left-side {
    margin-right: 24px;
    .product-image-name {
      .product-thumbnail {
        height: 100px;
        width: 100px;
      }
      .product-thumbnail a {
        height: 100px;
        width: 100px;
      }
      .product-thumbnail a img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
      }
    }
  }
  .basket-right-side {
    margin-left: auto;
    display: flex;
  }
  .similar-checkbox-cont {
    position: absolute;
    top: 16px;
    left: 16px;
    /* width: 16px; */
    height: 16px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;

    label {
      display: none;
    }

    .similar-checkbox {
      width: 16px;
      height: 16px;
      appearance: none;
      border: 2px solid var(--greyText1);
      border-radius: 3px;
      cursor: pointer;
      transition: all 0.4s ease;
    }
    .similar-checkbox:hover {
      border-color: var(--blue1);
    }
    .similar-checkbox:checked {
      width: 16px;
      height: 16px;
      background-color: var(--blue1);
      border-color: var(--blue1);
    }
    .similar-checkbox:checked::after {
      content: "";
      position: relative;
      display: block;
      width: 4px;
      height: 8px;
      border: solid var(--white1);
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
      left: 25%;
    }
  }
}
.similar-products-controler {
  display: flex;
  justify-content: center;

  .single-product-btn-primary {
    padding: 0 32px;
    width: max-content;
  }
}

.woocommerce-variation.single_variation {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 17px;
  font-weight: 500;
  font-family: "Inter";
}

.choose-variation-hint {
  margin-bottom: 25px;
}

.variable-price-container {
  margin-bottom: 25px;
}

.free-products-page #total-price-cart {
  display: none;
}

/* responsive */
@media (max-width: 1350px) {
  .single-product-related-products ul {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 1250px) {
  .custom-quantiti-input-buttons,
  .custom-simple-qnt-buttons {
    flex-direction: column;
    gap: 24px;
  }
  .configure-qnt {
    margin-right: auto;
  }
  .loyalty-points-content {
    flex-wrap: wrap;

    span {
      flex: 1 0 100%;
    }
  }
  /* extra products proposal wrapper */
  .similar-products-wrapper {
    .basket-single-item {
      flex-direction: column;
    }
    .basket-left-side {
      margin-right: 0;
    }
    .basket-right-side {
      margin-top: 16px;
      margin-left: 0;
      flex-direction: row;
      gap: 8px;
      justify-content: start;

      .similar-qty-controls {
        width: 100%;
      }
    }
    .similar-checkbox-cont {
      position: relative;
      left: unset;
      right: unset;
      cursor: pointer;

      label {
        display: block;
        width: max-content;
      }
    }
  }
}

@media (max-width: 1050px) {
  .single-product-related-products ul {
    grid-template-columns: 1fr 1fr;
  }
  /* Gallery */
  .product-single-gallery {
    gap: 16px;
    flex-direction: column;
  }
  .thumbnail-gallery {
    flex-direction: row;
    gap: 12px;
    overflow-y: hidden;
    overflow-x: auto;
    height: 115px;
    width: 100%;
    /* padding: 0 20px; */
  }
  .single-product-right-price {
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
  }
  .single-product-price-container {
    padding-bottom: 0;
  }

  .choose-variation-hint {
    margin-top: -25px;
  }
}
@media (max-width: 900px) {
  .single-product-upper {
    padding: 0;
    gap: 32px;
    /* grid-template-columns: 1fr; */
    display: flex;
    flex-direction: column;
  }
  .single-product-lower {
    padding: 50px 20px 0;
  }
  .single-product-related-products ul {
    padding-bottom: 50px;
  }
  /* Gallery */
  .main-image {
    border-radius: unset;
    border: none;
  }
  .product-single-gallery {
    padding-bottom: 0;
  }
  /* single product upper right */
  .single-product-right {
    padding: 0 20px;
  }
  .main-image {
    height: 400px;
  }
  .variations-column {
    gap: 8px;
    padding: 0 0 24px !important;
  }
  .thumb-image-wrapper {
    width: 70px;
    height: 70px;
  }
  .thumb-image {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
  }
  .thumbnail-gallery {
    width: 100%;
    height: 85px;
    overflow-y: hidden;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: thin;
  }
  .warehouse-info {
    padding: 0 0 16px;
  }
  .delivery-info {
    padding: 20px 0;
  }
  .help-info {
    padding: 16px 0;
  }
  .product-tabs {
    padding: 24px 0 0;
  }
  .single-product-right-price {
    flex-direction: row;
    justify-content: space-between;
  }
  .related-products-title {
    padding-top: 0;
  }
  .custom-simple-qnt-buttons,
  .custom-quantiti-input-buttons {
    gap: 0;

    .configure-qnt {
      order: 1;
    }
    .min-purchase {
      order: 2;
      margin-right: auto;
      padding-top: 8px;
      padding-bottom: 24px;
    }
    .single-product-btn-primary {
      order: 3;
    }
    .mini-cart-qty-input {
      width: 100px;
    }
    #quantity-plus,
    #quantity-minus {
      height: 45px;
    }
  }
  /* extra products proposal wrapper */
  .similar-products-wrapper {
    margin: 40px 0 24px;

    .h3 {
      margin-bottom: 24px;
    }
    .basket-single-item {
      padding: 12px !important;
    }
  }
}
@media (max-width: 767px) {
  .woocommerce-variation.single_variation {
    font-size: 12px;
    line-height: 15px;
    font-weight: 500;
    font-family: "Inter";
  }

  #main-gallery-image {
    touch-action: auto; /* allow scrolling */
  }
  .single-product-related-products ul {
    display: flex;
    gap: 16px;
    padding-top: 30px;
    overflow-y: hidden;
    overflow-x: auto;
    padding-bottom: 120px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .single-product-related-products ul li {
    width: 280px;
  }
  .related.products {
    position: relative;
  }
  .absolute-button {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    z-index: 1;
  }
  /* single upper */
  .points-worth,
  .real-worth {
    padding: 10px 32px;
  }

  /* expand button */
  .expand-button {
    padding: 10px;
  }
  .expand-button img {
    width: 20px;
    height: 20px;
  }
  /* single product upper right */
  /* .single-product-right {
    padding: 0 20px;
  } */
  .main-image {
    height: 300px;
  }
  .single-product-right-title {
    padding-top: 16px;
  }
  .single-product-right-price {
    gap: 8px;
  }
  /* product page tabs */
  .product-tab-title {
    padding: 12px 16px;
  }
  /* Sale badge */
  .discount-badge,
  .out-of-stock-badge {
    top: 16px;
  }
  .loyalty-points {
    img {
      height: 22px;
      width: 22px;
    }
  }
  /* table */
  tbody tr:nth-child(odd) {
    font-size: 14px;
    line-height: 17px;
  }
  tbody tr:nth-child(even) {
    font-size: 14px;
    line-height: 17px;
  }

  /* galerry navigation */
  .gallery-navigation {
    padding: 0 20px;
  }

  #prev-thumbnail,
  #next-thumbnail {
    width: 40px;
    height: 40px;
  }
  #prev-thumbnail svg,
  #next-thumbnail svg {
    height: 14px;
    width: 16px;
  }
  /* extra products proposal wrapper */
  .similar-products-wrapper {
    .basket-right-side {
      align-items: unset;
    }
  }
}
