/* Первый блок */
.product_page {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 40px;
}

.product_page-preview {
  width: calc(100% - 320px);
}

.product_page-image {
  position: relative;
}

.product_page-image img {
  width: 100%;
  max-height: 70vh;
  min-height: 300px;
  object-fit: cover;
  border-radius: 30px;
}

.product_page-image .video-duration {
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 1px 12px;
  background-color: #020617;
  border-radius: 30px;
  font-size: 20px;
}

.product-video {
  border-radius: 30px;
  overflow: hidden;
  max-height: 90vh;
  /* height: 70vh; */
  min-height: 150px;
  position: relative;
  background: #161d2f;
  aspect-ratio: 16 / 9;
}

.product_page-info > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.product_page-info > div:first-child {
  margin: 30px 0 20px;
}

.product_page-info h1 {
  font-size: 36px;
  margin: 0;
  font-weight: 400;
}

.product_page-info .product-publish-date {
  margin: 0;
  opacity: 0.7;
  font-size: 0.8em;
}

.product-coache {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2dd4bf;
}

.product-coache img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 50px;
  object-position: top center;
}

.product-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-labels .product-label {
  padding: 3px 12px;
  font-size: 21px;
  border-radius: 50px;
  display: inline-block;
}

.product-label.sale {
  background: #86efac;
  color: #115e59;
}

.product-label.tag {
  background: #2dd4bf;
  color: #115e59;
}

.product-label.tag:hover {
  opacity: 0.7;
}

.product-rating {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-rating_icon::before {
  content: "";
  width: 21px;
  height: 21px;
  display: block;
  background-image: url("/wp-content/themes/nt-theme/assets/svg/star-review.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left top;
}

/* .product_page-action_block {
  width: 400px;
  background: #d9d9d91a;
  box-shadow: 0px 24px 120px 0px #00000040;
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
}

.product_page-action_block {
  border: 1px solid #a4a2a2;
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-radius: 30px;
} */

.product_page-action_block {
  display: flex;
  gap: 20px;
  align-items: center;
}

.product_page-action_block .product-price {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 32px;
  font-weight: 500;
  color: #f1f5f9;
}

.product-price .free-price {
  color: #2dd4bf;
}

.product_page-action_block .product-price del {
  color: #475569;
  order: 2;
  font-size: 0.7em;
}

.product_page-action_block .product-price ins {
  text-decoration: none !important;
}

#product-page_add-to-cart form {
  margin: 0 !important;
}

#product-page_add-to-cart .single_add_to_cart_button, #product-page_add-to-cart .prp-remove-from-cart {
  padding: 10px 28px;
  font-weight: 500;
}

@media (max-width: 960px) {
  .product_page-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
  }
  
  .product_page-image img {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 70vh;
    min-height: 0;
    object-fit: cover;
    border-radius: 30px;
  }
}
@media (max-width: 1010px) {
  .product_page {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .product_page-info h1 {
    font-size: 24px;
  }
  .product_page-action_block {
    gap: 20px;
    margin: 20px 0;
  }
  .product-labels .product-label {
    font-size: 16px;
  }
  .product_page-action_block .product-price {
    font-size: 20px;
  }
  .product_page-image .video-duration {
    font-size: 16px;
  }
}

@media (max-width: 1100px) {
  .product_page > div {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .product_page-action_block {
    /* flex-direction: column;
    align-items: flex-start; */
    flex-wrap: wrap;
    gap: 16px;
  }

  .product-video {
    height: auto !important;
    min-height: auto !important;
    width: 100%;
    padding-top: 56.25%;
  }
}

/* Related Products */

.other_products-col {
  width: 300px;
  position: relative;
  max-height: 100%;
  height: 100%;
  position: absolute;
  right: 0;
}

.other_products-col .related-products {
  /* max-height: calc(90vh + 130px); */
  max-height: 100%;
  min-height: 300px;
  overflow-y: auto;
  scrollbar-width: none;
}

.other_products-col::-webkit-scrollbar {
  display: none;
}

/* Верхнее затемнение */
.fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, #020617, transparent);
  pointer-events: none; /* Чтобы затемнение не блокировало клики */
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10; /* Чтобы затемнение было над контентом */
}

/* Нижнее затемнение */
.fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to top, #020617, transparent);
  pointer-events: none; /* Чтобы затемнение не блокировало клики */
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10; /* Чтобы затемнение было над контентом */
}

ul.related-products {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-products > li.listing-product_el {
  width: 100%;
}

/* .product-list_top {
  display: flex;
  gap: 12px;
  align-items: center;
} */

.related-products .listing-product_image img {
  /* height: 70px;
  min-width: 90px;
  max-width: 90px; */
  margin-bottom: 4px;
}

.related-products .listing-product_el .product-name {
  font-size: 14px;
}
.related-products .listing-product_el .product-coache {
  font-size: 12px;
}

.related-products .listing-product_el .listing-product_add-to-cart a {
  font-size: 14px;
}

.related-products .product-rating.product-rating_icon {
  font-size: 12px;
}

.related-products .listing-product_el .product-rating_icon::before {
  width: 14px;
  height: 14px;
}

/* @media (min-width: 1100px) {
  .other_products-col{

  }
} */

@media (max-width: 1100px) {
  .other_products-col {
    display: none !important;
  }
}

/* Отзывы */
.product_page-reviews h2 {
  font-size: 30px;
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product_page-reviews .commentlist {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 60px;
  row-gap: 30px;
}

.product_page-reviews .commentlist::before,
.product_page-reviews .commentlist::after {
  content: none !important;
}

.product_page-reviews .commentlist > * {
  width: calc(100% / 2 - 30px);
}

.product_page-reviews .star-rating span::before {
  font-family: WooCommerce;
  color: #fdba74;
}

.product_page-reviews .star-rating {
  letter-spacing: 3px;
  width: 100% !important;
  float: none !important;
}

.product_page-reviews .star-rating::before {
  position: relative !important;
  float: none !important;
}

.review-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-author img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50px;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.review-content,
.review-date {
  color: #cbd5e1;
}

.review-content p {
  margin-top: 20px;
  margin-bottom: 0;
}

.reviews_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 18px;
  margin-top: 20px;
}

.reviews_actions > * {
  cursor: pointer;
  border-radius: 30px;
  transition: 0.3s;
  padding: 12px 18px;
  font-weight: 400;
}

.show-all-reviews {
  background: #f1f5f9;
  color: #0f172a;
}

.reviews_actions > *:hover {
  opacity: 0.7;
}

.modal.add-review .popup-window {
  background-color: #161d2f;
  border-radius: 30px;
  max-width: 90%;
}

.modal.add-review #reply-title {
  font-weight: 500;
  margin-bottom: 20px;
  display: block;
}

.modal.add-review input#submit {
  padding: 10px 24px !important;
  font-weight: 500 !important;
  border-radius: 99px !important;
  background-color: #ef4444 !important;
  color: white !important;
  cursor: pointer;
}

.modal.add-review input#submit:hover {
  opacity: 0.7;
}
.modal.add-review input,
.modal.add-review textarea {
  padding: 10px 20px;
  border-radius: 12px;
}

.modal.add-review label {
  margin-bottom: 8px !important;
  display: block !important;
}

@media (max-width: 1010px) {
  .product_page-reviews h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .product_page-reviews .commentlist {
    column-gap: 15px;
    row-gap: 15px;
  }
  .product_page-reviews .commentlist > * {
    width: 100%;
  }
  .reviews_actions {
    font-size: 16px;
    gap: 15px;
  }
}

@media (max-width: 820px) {
}

/* Cross Sells */

.cross-sells {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
}

.cross-sells .listing-product_el {
  width: calc(100% / 5 - 12.8px);
}

@media (max-width: 1600px) {
  .cross-sells .listing-product_el {
    width: calc(100% / 4 - 12px);
  }
}

@media (max-width: 1300px) {
  .cross-sells .listing-product_el {
    width: calc(100% / 3 - 10.7px);
  }
}

@media (max-width: 900px) {
  .cross-sells .listing-product_el {
    width: calc(100% / 2 - 8px);
  }
}

@media (max-width: 600px) {
  .cross-sells .listing-product_el {
    width: 100% !important;
  }
}


.add-to-cart,
.remove-from-cart {
    transition: all 0.3s ease;
}
