/* 商品详情页加入心愿单按钮位置调整 */
#wishlist-product-details {
    display: none;
}

.bundle-addOns-root .bundle-button {
    margin-top: 0 !important;
    background: #f31da5 !important;
    border-color: #f31da5 !important;
    color: #fff !important;
}
.bundle-addOns-root .bundle-button:after {
    box-shadow: none !important;
}

.bundle-addOns-root .bundle-button[class*="_buyNow"] {
    display: none !important;
}

.has-wishlist #wishlist-product-details {
    display: block; /* 如果需要支持原插件的弹性布局，也可以写成 flex */
    margin-left: 16px;
}
.has-wishlist .shopline-product-form {
    flex: 1;
}
.has-wishlist #wishlist-product-details .wishlist-collect-block-btn {
    margin-top: 0 !important;
    width: 43px !important;
    height: 43px !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(245, 245, 245) !important;
    border: 0;
    border-radius: 100%;
}

.has-wishlist #wishlist-product-details .wishlist-collect-block-btn path {
    fill: #f31ea6;
}

.has-wishlist {
    display: flex;
}


/*
    为什么会引入/plugin-ruler/2026010704034949/plugin-ruler-index.js ？？？
    导致尺码表插件弹窗的样式有问题，这里覆盖掉
*/
.parduct-size__table {
    display: block !important;
    min-width: auto !important;
}


/*
    移动端时 购物车页 & 购物车侧边栏 凑单插件位置调整到下方
*/  
@media (max-width: 959px) {
    .main-cart-items {
        display: flex;
        flex-direction: column;
    }
    #cart-upsell-plugin {
        margin-top: 16px;
        order: 1;
    }
}



/*
    列表页产品卡，快速加购、快速查看、心愿单按钮
*/
body .main-search__body.search-filter-con-container, body .main-collection-container.search-filter-con-container {
    grid-template: "search-filter content" / 240px 1fr !important;
}
.plugin-product-search-component-price-range .search-filter-price-input-con {
    min-width: auto !important;
}
.block-product-image__layer-image-wrapper {
    overflow: visible !important;
}
.block-product-card__custom-layer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;    
    right: -25px;
    top: -25px;
}
@media (min-width: 960px) {
    .block-product-card__custom-layer {
        display: none;
    }
    product-item:hover .block-product-card__custom-layer {
        display: flex;
    }
}
.block-product-image__image-wrapper > .block-product-image__image {
    transition: 200ms;
    /*transition: auto !important;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0, 0, .2, 1);*/
}
.product-list-collect-btn {
    display: none !important;
}
.block-product-card__custom-layer.list-has-wishlist .product-list-collect-btn {
    display: flex !important;
}
.block-product-card__custom-layer .product-list-collect-btn{
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.9) !important;
}
.block-product-card__custom-layer .product-list-collect-btn path {
    fill: #f9a4eb;
}
.block-product-card__custom-layer .block-product-card__quick-add {
    background: #f31da5;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    backface-visibility: hidden;
    will-change: transform;
}
.block-product-card__custom-layer .block-product-card__quick-add:hover {
    transform: scale(1.08);
    cursor: pointer;
}
.block-product-card__custom-layer .block-product-card__quick-add svg {
    width: auto;
    height: auto;
    color: #fff;
}
@media (max-width: 959px) { 
 .block-product-card__custom-layer {
    right: 0;
    top: 0;
 } 
 .block-product-card__custom-layer .product-list-collect-btn {
    width: 32px !important;
    height: 32px !important;
 } 
 .jy-modal-style-search {
    display: none;
 } 
}
.jy-modal-style-plus__details .quick-add-modal__modal-content-desktop {
    width: 560px;
}
.jy-modal-style-plus__details .product-detail__media-group {
    display: none;
}
.jy-modal-style-plus__details .product-detail__info {
    flex: 1 !important;
}
.jy-modal-style-plus__details .product-detail__info .product-detail__title, .jy-modal-style-plus__details .product-detail__info .product-detail__price, .jy-modal-style-plus__details .product-detail__info .jy-free-shipping-bar, .jy-modal-style-plus__details .product-detail__info .product-variant-sku{
    display: none !important;
}

/* 商品列表页促销板块样式覆盖 */
.promotion-card {
    height: auto !important;
}
.promotion-card__image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: var(--aspect-ratio) !important;
}
.promotion-card__image-wrapper > a {
    display: block;
    width: 100%;
    height: 100%;
}
.promotion-card__image {
    position: absolute !important;
}



/*
    商品列表页产品卡自定义文案区域内容，包含：倒计时、文字、描述等
*/
.jy-product-card-meta {
    display: none;
}
.main-collection__products .jy-product-card-meta {
    display: block;
}
.jy-countdown-wrapper {
    overflow: hidden;
}
.jy-countdown-wrapper jy-countdown-tag{
    display: block;
}
.jy-countdown-tag-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-countdown-bg-color);
  color: var(--color-countdown-text-color);
  border-radius: 4px;
  font-size: var(--font-countdown);
  font-weight: normal; 
  /*margin-bottom: 6px;*/
  white-space: nowrap; /* 强制不换行，文字长由运营自行调整 */
}

.jy-countdown-tag-container .jy-countdown-text {
    background: var(--color-countdown-bg-color);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 2px 4px;
    gap: 2px;
}
.jy-countdown-tag-container .jy-tag-svg {
  margin-top: -1px; /* 视觉微调，防止图标偏下 */
}

.jy-countdown-tag-container .jy-countdown-display {
  font-variant-numeric: tabular-nums; /* 防止数字跳动 */
  font-weight: 600; /* 仅对数字保持微加粗，如不需要改成 normal 即可 */
  padding-right: 4px;
}
.jy-info-text-container {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-description-color);
  font-size: var(--font-description);
  /*margin-bottom: 6px;*/
align-items: center;
max-width: 100%;
}

.jy-info-text-container > span {
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: inline-block;    
}

.jy-info-text-container .jy-tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.jy-info-text-container .jy-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background-color: #ccc;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
}

.jy-info-text-container .jy-tooltip-content {
  visibility: hidden;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-description-tips-bg-color);
  color: var(--color-description-tips-text-color);
  text-align: center;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: normal;
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.15);
}

.jy-info-text-container .jy-tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--color-description-tips-bg-color) transparent transparent transparent;
}

.jy-info-text-container .jy-tooltip-wrapper:hover .jy-tooltip-content {
  visibility: visible;
  opacity: 1;
}
.block-product-title {
    display: flex;
}
.jy-product-card-tags {
    flex-shrink: 0;
    align-items: center;
    max-width: calc(100% - 40px);
    display: none;
}
.jy-product-card-tags > span{
    display: flex !important;
    background: #0a8800;
    color: #fff;
    padding: 2px 3px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 3px;
    align-items: center;
    gap: 2px;
}
.main-collection__products .jy-product-card-tags {
   display: inline-flex; 
}

.jy-product-price-prefix {
    display: none;
    letter-spacing: 0;
    color: var(--color-text);
    font-size: var(--font-size);
}

.main-collection__products .jy-product-price-prefix {
    display: inline-block;
}

.product-detail__info .jy-product-price-prefix {
    display: none;
}

.product-badge-ribbon {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  
  background-color: var(--color-bg); 
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  
  padding: 8px 24px 8px 12px; 
  white-space: nowrap;
  clip-path: polygon(0% 0%, 100% 0%, calc(100% - 12px) 50%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, calc(100% - 12px) 50%, 100% 100%, 0% 100%);
}

/* 覆盖插件的标签 */
.productPromotionLabelContent {
    /* position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2; */
    padding: 6px 24px 8px 12px !important;
    white-space: nowrap;
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 12px) 50%, 100% 100%, 0% 100%);
    -webkit-clip-path: polygon(0% 0%, 100% 0%, calc(100% - 12px) 50%, 100% 100%, 0% 100%);
    max-width: max-content !important;
    border-radius: 0 !important;
}

@media (max-width: 959px) {
    .main-collection__products .block-product-title {
        display: block;
    }
    .main-collection__products .jy-product-card-tags {
        max-width: 100%;
    }
    .jy-countdown-tag-container .jy-countdown-display {
        display: none;
    }
    .productPromotionLabelContent {
        padding: 4px 20px 4px 6px !important;
    }
}


/*
    导航中倒计时
*/
/* ==========================================================================
   组件 3：顶部通知栏样式 (jy-announcement-bar)
   ========================================================================== */
.jy-announcement-bar-container {
  color: rgba(var(--color-text)); 
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.jy-announcement-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-wrap: wrap;
}

.jy-announcement-content > * {
    margin-right: 8px;
}

/* 粗体高亮部分 */
.jy-announcement-content .jy-announcement-highlight {
  font-weight: 800;
}

/* 普通文案部分 */
.jy-announcement-content .jy-announcement-text {
  font-weight: normal;
  opacity: 0.9;
  font-size: 12px;
}

/* 倒计时数字样式 */
.jy-announcement-content .jy-announcement-countdown {
  font-variant-numeric: tabular-nums; /* 防止数字跳动 */
  font-weight: 700;
}

/* Shop Now 链接样式 */
.jy-announcement-content .jy-announcement-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin: 0;
}

.jy-announcement-content .jy-announcement-link:hover {
  opacity: 0.8;
  color: #fff;
}

@media (max-width: 959px) { 
    .jy-announcement-content {
        font-size: 12px;
    }
    .jy-announcement-text {
        display: none;
    }
}


.section-recommended-product .block-product-image__image-wrapper {
    border-radius: 3px;
}

/*
    商品详情页包邮进度条
*/
.jy-free-shipping-bar {
  position: relative;
  width: 100%;
  padding: 10px 16px;
  border-radius: 4px;
  box-sizing: border-box;
  background: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
}

/* 进度填充层：默认宽度为 0，购物车为空时只露出底色 */
.jy-free-shipping-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  transition: width 1.2s ease;
  pointer-events: none;
}

/* 未达标：渐变色 + 斜纹动效 */
.jy-free-shipping-in-progress .jy-free-shipping-progress,
.jy-free-shipping-achieved .jy-free-shipping-progress {
  background: linear-gradient(to right, rgba(237, 0, 140, 1), rgba(0, 0, 0, 1));
}

.jy-free-shipping-in-progress .jy-free-shipping-progress::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .1) 75%, transparent 75%, transparent);
  background-size: 16px 16px;
  animation: 1s linear infinite free__shipping-progress-bar-stripes;
}

.jy-free-shipping-in-progress .jy-free-shipping-progress:dir(rtl)::before {
  animation-name: free__shipping-progress-bar-stripes-rtl;
}

@keyframes free__shipping-progress-bar-stripes {
  0% {
    background-position-x: -16px;
  }
}

@keyframes free__shipping-progress-bar-stripes-rtl {
  0% {
    background-position-x: 16px;
  }
}

.jy-free-shipping-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.jy-free-shipping-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.jy-free-shipping-icon svg {
  width: 18px;  
  height: 18px;
  display: block; 
}

/* 针对富文本生成的 p 标签进行样式复位 */
.jy-free-shipping-text, 
.jy-free-shipping-text p {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  margin: 0; /* 消除 richtext 默认的 p 标签上下外边距 */
  padding: 0;
}

.jy-free-shipping-text strong {
  font-weight: 700;
}

.product-plugin-comment-rate-star.plugin-product-comment-product-subTitle-start {
    margin: 0 !important;
}
.custom-commet-text {
    font-size: 14px;
    margin-left: 5px;
}
.custom-commet-text:hover {
    text-decoration: underline;
}


/*
    Order Tracking Page
*/
.main-order-tracking__wrapper {
    max-width: 1200px !important;
}
.jy-tracking {
    display: flex;
    gap: 30px;
}
.jy-tracking__main {
    width: 100%;
    max-width: 430px;
    flex-shrink: 0;
    display: block;
}
.jy-tracking__main-desc{
    padding: 16px 0;
}
.jy-tracking__main-desc a {
    text-decoration: underline;
}
.jy-tracking__imgs {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 16px;
}
.jy-tracking__imgs > a {
    display: block;
    flex: 1;
    width: 0;
    object-fit: cover;
}
.jy-tracking__imgs > a img {
    width: 100%;
}
@media (max-width: 959px) {
    .jy-tracking {
        flex-direction: column;
        gap: 16px;
    }
}


/*
    博客合集页面改造
*/
.jy-blog {
    display: flex;
}
.jy-blog__main {
    width: 70%;
}
.jy-blog__main .main-blog__title {
    margin-bottom: 32px;
}
.jy-blog__main .main-blog__item:first-child {
    grid-column: 1 / -1;
}
.jy-blog__slide {
    width: 30%;
    margin-left: 45px;
    padding-left: 45px;
    border-left: 1px solid rgb(232 232 225);
    margin-top: 60px;
}
.jy-blog__slide-title {
    font-size: 13px;
    margin-bottom: 20px;
}
.jy-blog__slide-post .main-blog__list {

}
.jy-blog__slide-post .main-blog__list .block-article-card {
    flex-direction: row;
    align-items: flex-start;
}
.jy-blog__slide-post .main-blog__list .block-article-card .block-article-card__cover {
    width: 40%;
}
.jy-blog__slide-post .main-blog__list .block-article-card .block-article-card__info {
    width: 60%;
    align-items: flex-start;
    gap: 8px;
}
.jy-blog__slide-post .main-blog__list .block-article-card .block-article-card__info .block-article-card__title {
    text-align: left;
}
.jy-blog__slide-post .main-blog__list .block-article-card .block-article-card__info .block-article-card__extra-info {
    font-size: 12px;
}
@media (max-width: 959px) {
    .jy-blog {
        flex-direction: column;
    }
    .jy-blog__main, .jy-blog__slide{
        width: 100%;
    }
    .jy-blog__slide {
        margin-left: 0;
        padding: 0;
        border: 0;
    }
}


/*
  解决精选商品模块在pc端会遮挡住快速加购图标的问题  
*/
@media (min-width: 960px) {
    .featured-collection__tabs .grid {
        overflow: visible;
    }
}


/* 列表页左侧stick */
@media (min-width: 960px) {
    .plugin-search-filter-container__main {
        position: -webkit-sticky;
        position: sticky;
        
        top: calc(
          var(--global-header-top, 0px) + 
          var(--global-header-height, 0px) + 
          10px
        );

        max-height: calc(
          100vh - 
          var(--global-header-top, 0px) - 
          var(--global-header-height, 0px) - 
          20px
        );
        
        overflow-y: auto;
        transition: top 0.3s ease, max-height 0.3s ease;
    }
}

/* 列表页颜色picker插件样式覆盖 */
.color-board__col {
    margin-top: 0 !important;
}

/*
    Footer 样式覆盖
*/
.footer__menu-title, .footer__custom-text-title {
    font-size: 16px;
    font-weight: 700;
}


.jy-footer-social {
    margin-top: 15px;
}
.jy-footer-social .footer__social-media-title {
    padding-bottom: 10px;
}
.jy-footer-payment {
    margin-top: 15px;
}

@media (min-width: 960px) {
    .footer__group .footer__menu, .footer__group .footer__custom-text{
        max-width: 210px;
        margin-left: 4.5rem;
    }
}

@media (max-width: 959px) {
    .jy-footer-payment {
        margin: 0;
    }
}


/* 
    详情页商品推荐插件二次定义
 */
 /* 强行隐藏原插件模块，不让用户看到 */
 .recommend__app-block, .product-recommend-plugin-wrapper {
     visibility: hidden !important;
     opacity: 0 !important;
     height: 0 !important;
     overflow: hidden !important;
     margin: 0 !important;
 }
 .section-jy-recommended-product .block-product-image__image-wrapper > .block-product-image__image {
    max-width: 100%;
 }
 
.section-jy-recommended-product .block-product-image__layer-image-wrapper.desktop-hover:hover .block-product-image__image:nth-of-type(1) {
    opacity: 1 !important;
}
