.zg-product .product-detail {
  background-color: rgba(var(--color-background, var(--color-page-background)));
  display: grid;
  width: 100%;
  grid-template-columns: calc(65% - 104px) 104px 35%;
  grid-template-areas: "left gap right";
}

.zg-product-media-wrapper {
  grid-area: left;
}

.product-detail__info {
  grid-area: right;
}

/* pc端隐藏富文本资源费下划线 */
/* .product-detail__info .rte a {
  text-decoration: none;
} */
/* 移动端隐藏富文本资源费下划线 */
/* .zg-product-media-wrapper .rte a {
  text-decoration: none;
} */

.product-detail-wrapper {
  background-color: rgba(var(--color-background, var(--color-page-background)));
  margin-top: 1rem;
  font-family: "Jost" !important;
}

.product-detail__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-detail__share, .product-detail__additional, .product-detail__sell-info {
  display: none;
}

.zg-product-detail-title__clearance-tag {
  font-weight: 400;
  font-size: 12px;
  line-height: 17px;
  color: #C02525;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.zg-product .product-detail__title {
  font-weight: 400;
  font-size: 32px;
  color: #000000;
  letter-spacing: 1px;
  line-height: 46px;
  word-break: break-word;
}

.zg-product .product-detail__title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.zg-product .product-detail__title-wrapper .wishlist-collect-icon-btn {
  position: unset!important;
  padding: 0;
}
.zg-product .product-detail__title-wrapper .zg-wishlist-text {
  font-size: 12px;
  white-space: nowrap;
}
.product-detail__title-wrapper .zg-wishlist__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zg-product .product-detail__title-wrapper .wishlist-collect-icon-btn .collect-btn-icon {
  font-size: 24px;
}

.zg-product-sku {
  font-weight: 400;
  font-size: 10px;
  line-height: 12px;
  color: #3F3F3F;
}

.zg-product-sku.hidden-desktop + .product-detail {
  margin-top: 10px;
}

.zg-dimension-info {
  flex-direction: column;
  gap: .2rem;
  margin-top: 1rem;
  display: flex;
}
.zg-dimension-info-title {
  font-weight: bold;
  font-size: 14px;
  color: #555555;
  line-height: 150%;
  font-style: normal;
}
.zg-dimension-info-value {
  font-weight: 400;
  font-size: 14px;
  color: #555555;
  line-height: 150%;
  font-style: normal;
  text-transform: none;
  padding: 0 0 4px 0;
  margin: 5px 0;
  font-feature-settings: "pnum" on, "lnum" on;
}

.sales-promotion-plugin {
  display: none!important;
}
.sales-promotion-plugin .zg-product-sku {
  padding-top: 4px;
}
/* 小样按钮距离顶部距离 */
#zg_detail_buy_sample_button {
  /* margin-top: 23px; */
  margin-bottom: 12px;
}

/* 这里不能去，不去，会有一段空白，去掉小样按钮会贴边 */
/* .product-detail__buy-buttons {
  margin-top: 12px;
} */

.product-detail__buy-buttons.hidden-height {
  margin-top: 0;
}

#sales__flash-sale-price-container {
  font-size: 18px;
  line-height: 120%;
  gap: 0;
}
.product-detail__price-inn #sales__flash-sale-price-container  {
  flex-wrap: nowrap;
}

.promotion-price-slot {
  display: none!important;
}

.custom-promotion-price .product-price__item--price {
  font-weight: 400;
  font-size: 16px;
  color: #3F3F3F;
}

.custom-promotion-price #sales__flash-sale-price-container .sales-promotion-price {
  padding-right: 20px;
}

@media (min-width: 960px) {
  .sales-promotion-plugin div {
    height: 96px;
  }
}

.sales-promotion-plugin>span>div>div>div {
  background-image: none;
}

.zg-product .block-product-card-coustom_title {
  padding-top: 0;
}

.zg-product .zg-you-may-like,
.zg-product .zg-recommended,
.zg-product .zg-recently-view {
  padding-inline: calc(var(--page-padding) + 106px);
  padding-block-start: 30px;
}

.shopline-payment-button-wrapper .pay-button-common-item.pay-button-common-item-express.pay-button-Paypal,
.shopline-payment-button-wrapper .pay-button-common-item.pay-button-common-item-express.pay-button-ApplePay {
  transform: scaleY(0.85);
}

klarna-placement {
  margin-top: 12px!important;
}

.zg-recently-view.slideshow .zg-recently-view_header,
.zg-recommended.slideshow .zg-recommended_header,
.zg-you-may-like.slideshow .zg-you-may-like_header {
  font-size: 20px;
  font-weight: 500;
}


@media (min-width: 1801px) {
  .zg-pdp-media .product-detail__media-gallery .media-gallery__thumbnail-list {
    height: 960px;
  }
}
@media (min-width: 960px) {
  .zg-product .page-width {
    padding-inline-end: 156px;
  }
  .zg-recently-view.slideshow .zg-recently-view_header,
  .zg-recommended.slideshow .zg-recommended_header,
  .zg-you-may-like.slideshow .zg-you-may-like_header {
    margin-top: 40px;
  }
  .zg-recently-view.slideshow,
  .zg-recommended.slideshow,
  .zg-you-may-like.slideshow {
    padding-left: calc(var(--page-padding) + 106px);
    padding-right: calc(var(--page-padding) + 106px);
  }
  .zg-product .product-detail__media-gallery .media-gallery__thumbnail-image {
    height: auto;
  }
 
  .product-detail__media-gallery {
    height: 100%;
  }

  .product-detail__media-gallery .media-gallery__content {
    position: sticky;
    top: 10px;
    transform: translateZ(0);
    backface-visibility: hidden;
  }
  .product-detail__col {
    width: 100%;
  }

  .product-detail[data-desktop-direction="row"] {
    z-index: var(--z-index-focus);
  }

  .product-detail[data-desktop-direction="row"] .product-detail__col {
    flex: 1 0 0;
  }

  .product-detail[data-desktop-direction="row"] .product-detail__col--small {
    width: 34%;
  }

  .product-detail[data-desktop-direction="row"]
    .product-detail__col--small
    + .product-detail__col {
    width: 66%;
  }

  .product-detail[data-desktop-direction="row"] .product-detail__col--medium {
    width: 50%;
  }

  .product-detail[data-desktop-direction="row"]
    .product-detail__col--medium
    + .product-detail__col {
    width: 50%;
  }

  .product-detail[data-desktop-direction="row"] .product-detail__col--large {
    width: 66%;
  }

  .product-detail[data-desktop-direction="row"]
    .product-detail__col--large
    + .product-detail__col {
    width: 34%;
  }

  .zg-product .product-detail[data-desktop-direction="row"]
    .product-detail__col--large
    + .product-detail__col {
    width: 35%;
    flex: none;
  }
  .zg-product .product-detail[data-desktop-direction="row"] .product-detail__col--medium + .product-detail__col {
    width: 35%;
    flex: none;
  }
}
@media (min-width: 960px) and (max-width: 1800px) {
  .zg-pdp-media .product-detail__media-gallery .media-gallery__thumbnail-list {
    height: 640px;
  }
}
@media (max-width: 959px) {
  .zg-you-may-like-inner {
    padding-top: 30px;
  }
  .zg-product-media-wrapper .product-detail__media-gallery .media-gallery__arrows {
    display: none;
  }
  .zg-product .media-gallery__sticky-wrapper .media-gallery__media {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
  }
  .zg-product .product-detail {
    display: flex;
    flex-direction: column;
  }
  .product-detail__info {
    --detai-info-width: 100%;
  }
  .sales-promotion-plugin-mobile {
    margin: 0;
    margin-bottom: 10px;
  }
  #zg_variant_picker {
    margin-top: 1rem;
  }
  .product-detail__media-gallery .media-gallery__thumbnail-list {
    height: auto;
  }
  body[data-page-type="product"] .zg-you-may-like,
  body[data-page-type="product"] .zg-recently-view,
  body[data-page-type="product"] .zg-recommended {
    padding-inline: var(--page-padding);
  }
  body[data-page-type="product"] .footer-copyright {
    padding-bottom: 60px;
  }
  .zg-product .product-detail__media-gallery .media-gallery__media {
    width: 100%;
  }
  body[data-page-type="product"] .hidden-mobile {
    display: none!important;
  }
  body[data-page-type="product"] .hidden-desktop {
    display: block!important;
  }
  .zg-product .product-detail__title {
    font-size: 20px;
    line-height: 28px;
  }
  .zg-recently-view.slideshow .zg-recently-view_header,
  .zg-recommended.slideshow .zg-recommended_header,
  .zg-you-may-like.slideshow .zg-you-may-like_header {
    font-size: 16px;
  }
}
@media (min-width: 992px) and (max-width: 1346px) {
  .zg-product .product-detail__title {
    font-size: 24px;
    line-height: 32px;
  }
}

@media screen and (max-width: 1280px) {
  .product-detail__price-inn #sales__flash-sale-price-container {
    /* 移动端，价格始终上下展示 */
    flex-direction: column;
    align-items: flex-start;
  }
}

.sales-promotion-plugin [class*=_sales__flash-sale-title] {
  display: none;
}