
@keyframes float {
  0%, 100% {
    transform: translateY(3px);
  }
  50% {
    transform: translateY(-3px);
  }
}
product-details{
  display: block;
}
.widget-header{
  font-size: 32px;
  font-weight: bold;
  margin-block-start: 0.5em;
  margin-block-end: 0.5em;
  padding: 10px 0;
}
.header-line{
  border-bottom: 1px solid #ccc;
}
.text-left{
  text-align: left;
}
.text-center{
  text-align: center;
}
.text-right{
  text-align: right;
}
.product-navigation{
  .product-nav{
    position: relative;
    z-index: 0;
    border-bottom: 1px solid #b5b5b5;
    &.sticky{
      position: fixed;
      top: 0px;
      left: 0;
      width: 100%;
      z-index: 100;
      background: #fff;
    }
    .product-nav-wrapper{
      position: relative;
      text-align: center;
    }
    
    .product-tab-list{
      display: inline-flex;
      justify-content: center;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .product-tab-item{
      margin: 0 3rem;
      color: #444;
      a{
        display: block;
        padding: 1.5rem 1.2rem;
        font-size: 2rem;
        line-height: 1;
        font-weight: 600;
        color: inherit;
        text-decoration: none;
      }
      &.tab-active,
      &.active{
        color: var(--main-color);
      }
    }
    .mover{
      position: absolute;
      z-index: 1;
      bottom: -1px;
      left: 0;
      display: block;
      width: 0;
      height: 0px;
      pointer-events: none;
      border: 4px solid transparent;
      border-left-width: 3px;
      border-right-width: 3px;
      border-bottom: 4px solid var(--main-color);
      transition: all 0.3s ease;
    }
  }
}
.tab-area{
  padding-top: 50px;
  background: var(--tab-content-background-color);
  .widget-container{
    margin-bottom: 50px;
    &:last-child{
      margin-bottom: 0;
    }
  }
  .tab-details {
    border-bottom: 1px solid #e0e0e0;

    .tab-summary {
      list-style: none;
      cursor: pointer;

      &::-webkit-details-marker {
        display: none;
      }

      .icon {
        width: 24px;
        height: 24px;
        transition: transform 0.3s ease;
      }
    }
  }
  .tab-area-header{
    display: flex;
    padding-top: 10px;
    padding-bottom: 10px;
    align-items: center;
    justify-content: space-between;
  }

  .summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
  }
  .icon-plus {
    .vertical,
    .horizontal {
      transition: all 0.3s ease;
      transform-origin: center;
    }
  }
  .tab-details[open] {
    .summary-content {
      border-bottom: 1px solid #e0e0e0;
    }
    .icon-plus {
      transform: rotate(180deg);
      .vertical {
        transform: scaleY(0);
      }
    }
  }
  .tab-content {
    padding: 20px 0;
  }
}
.widget-image-with-text{
  .container {
    &.horizontal{
      display: flex;
      gap: 5rem 3rem;
      flex-wrap: wrap;
      align-items: flex-start;
      .wrapper{
        width: 100%;
        &.col-item-2{
          width: calc((100% - 3rem) / 2);
        }
        &.col-item-3{
          width: calc((100% - 3rem * 2) / 3);
        }
        &.col-item-4{
          width: calc((100% - 3rem * 3) / 4);
        }
        &.col-item-5{
          width: calc((100% - 3rem * 4) / 5);
          .image{
            width: 128px !important;
          }
        }
        &.col-item-6{
          width: calc((100% - 3rem * 5) / 6);
        }
        &[class^="col-item-"] .inner{
          margin: 0;
          flex-direction: column-reverse;

          .text,
          .image{
            flex: 1;
            width: 100%;
            min-height: initial;
          }
          .text{
            justify-content: flex-start;
          }
          .image{
            display: flex;
            min-height: var(--image-max-height);
            align-items: flex-end;
            justify-content: center;
          }
          h3{
            margin-top: 0px;
          }
        }
      }
      &.column-2 {
        .wrapper:nth-child(1),
        .wrapper:nth-child(2){
          width: calc((100% - 3rem) / 2);
        }
      }
      &.column-3{
        .wrapper:nth-child(1),
        .wrapper:nth-child(2),
        .wrapper:nth-child(3){
          width: calc((100% - 3rem * 2) / 3);
        }
      }
      &.column-4{
        .wrapper:nth-child(1),
        .wrapper:nth-child(2),
        .wrapper:nth-child(3),
        .wrapper:nth-child(4){
          width: calc((100% - 3rem * 3) / 4);
        }
      }
      &.column-5{
        .wrapper:nth-child(1),
        .wrapper:nth-child(2),
        .wrapper:nth-child(3),
        .wrapper:nth-child(4),
        .wrapper:nth-child(5){
          width: calc((100% - 3rem * 4) / 5);
        }
      }
    }
  }
  .wrapper{
    margin-block-start: var(--block-margin);
    margin-block-end: var(--block-margin);
    background: var(--wrapper-background-color, #fff);
  }
  .inner{
    display: flex;
    width: 100%;
    align-items: center;
    overflow: hidden;
    background: var(--inner-background-color);
    &.image-on-left{
      flex-direction: row-reverse;
      .image{
      }
    }
    &[class^="text-on-"]{
      position: relative;
      .text{
        position: absolute;
        z-index: 2;
        width: initial;
        flex: initial;
        height: initial;
        max-width: 500px;
        background: var(--text-background-color);
      }
    }
    
    &.text-on-top-left .text{
      top: 3rem;
      left: 3rem;
    }
    
    &.text-on-top-center .text{
      top: 3rem;
      left: 50%;
      transform: translateX(-50%);
    }
    
    &.text-on-top-right .text{
      top: 3rem;
      right: 3rem;
    }
    &.text-on-center-left .text{
      top: 50%;
      left: 3rem;
      transform: translateY(-50%);
    }
    &.text-on-center-center .text{
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    &.text-on-center-right .text{
      top: 50%;
      right: 3rem;
      transform: translateY(-50%);
    }
    &.text-on-bottom-left .text{
      bottom: 3rem;
      left: 3rem;
    }
    
    &.text-on-bottom-center .text{
      bottom: 3rem;
      left: 50%;
      transform: translateX(-50%);
    }
    
    &.text-on-bottom-right .text{
      bottom: 3rem;
      right: 3rem;
    }
    h3{
      font-size: 32px;
      margin-top: 0px;
      color: var(--text-color);
    }
    .button{
      margin-top: 3.8rem;
    }
    
    .metafield-rich_text_field {
      h1, h2, h3, h4, h5, a{
        color: var(--text-color);
        margin-top: 0px;
      }
    }
    .metafield-rich_text_field a{
      text-underline-offset: 4px;
    }
    .small p{
      font-size: 14px;
    }
  }
  .inner-grid{
    display: flex;
    padding: 3rem 0;
    flex-direction: column;
    .text{
      padding-left: 0px;
      padding-right: 0px;
    }
  }
  .text{
    height: 100%;
    flex: 1 0 50%;
    padding: 2rem 4rem;
    line-height: 1.6;
    align-items: flex-start;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    p{
      margin: 0px;
    }
    p + p{
      margin: 2rem 0 0;
    }
  }
  .image-list{
    display: flex;
    gap: 3rem;
    width: 100%;
    .image{
      flex: 1;
    }
  }
  .image{
    height: 100%;
    flex: 1 0 50%;
    font-size: 0px;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: var(--image-background-color);
  }
  .inner.content-block{
    margin-top: 3rem;
    flex-direction: column;
    &.image-on-left .text{
      flex-direction: row-reverse;
    }
    .text{
      display: flex;
      flex-direction: row;
      align-items: unset;
      padding: 2rem 0rem;
      gap: 5rem;
    }
    &.blockright {
      .text{
        flex-direction: row-reverse;
      }
    }
    h3{
      width: 400px;
      background: #2796cd;
      color: #fff;
      padding: 3rem;
      border-radius: 10px;
      margin: 0px;
      display: flex;
      font-size: 50px;
      text-align: center;
      align-items: center;
      justify-content: center;
      & + div{
        flex: 1;
        padding: 3rem 0;
        display: flex;
        align-items: center;
      }
    }
    .small p{
      font-size: 18px;
    }
    .image{
      width: 100%;
      min-height: initial;
      margin-top: 1rem;
    }
  }
}
.widget-downloads{
  .file-list{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4rem;
    padding: 10px 0;
  }
  .file-item{
    display: inline-flex;
    align-items: center;
    &:hover{
      .icon-download{
        transform: translateY(3px);
        animation: float 1s ease-in-out .2s infinite;
      }
    }
    a{
      color: rgb(18, 18, 18);
    }
  }
  .file-name{
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    font-weight: bold;
  }
  .file-type-icon{
    margin-right: 4px;
  }
  .download-icon{
    line-height: 1;
    margin: 0 0 0 10px;
    transition: transform .2s;
  }
  
  .icon-download{
    width: 1em;
    height: 1em;
    font-size: 22px;
    transition: transform 0.3s ease;
  }
}
.widget-faq{
  .wrapper{
    display: flex;
    gap: 3rem 3.5rem;
  }
  .faq-intro{
    width: 45%;
    h2{
      font-size: 28px;
      margin: 0px;
      font-weight: bold;
    }
    p{
      font-size: 14px;
      margin: 30px 0 0;
    }
  }
  .faq-main{
    width: 55%;
  }
  .faq-support{
    font-size: 14px;
    line-height: 1.3;
    margin-top: 2.5rem;
    span{
      display: block;
      color: rgba(18,18,18, 0.4);
    }
    a{
      text-decoration: none;
      color: rgba(18,18,18, 0.4);
    }
  }
  .accordion-box{
    border-radius: 10px;
    padding: 1.25rem 3rem;
    background: rgba(26, 26, 26, 0.05);
  }
  .accordion{
    margin: 0;
    font-size: 15px;
    border: none;
    border-bottom: 1px solid rgba(26, 26, 26, .12);
    &:last-child {
      border: none;
    }
    &[open] .circle-chevron {
      transform: rotate(180deg);
    }
  }
  .circle-chevron{
    transition: all .3s;
    width: 24px;
    height: 24px;
    background: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    padding-top: 1px;
    justify-content: center;
  }
  .accordion__content,
  .accordion summary{
    padding: 0;
  }
  .accordion__toggle{
    display: flex;
    width: 100%;
    padding: 2rem 0;
    font-weight: bold;
    align-items: center;
    justify-content: space-between;
    &:hover{
      .circle-chevron{
        color: #fff;
        background: var(--main-color);
      }
    }
  }
  .accordion__content{
    margin-bottom: 1.25rem;
    p:first-child{
      margin-top: 0px
    }
    p:last-child{
      margin-bottom: 0px
    }
  }
}
.widget-recommendations{
  margin-top: 20rem;
  .recommendations-container{
    padding: 3rem 4rem 2rem;
    position: relative;
    border-radius: 10px;
    border: 1px solid var(--main-color);
    background: var(--gradient-background);
  }
  .widget-header{
    position: absolute;
    z-index: 2;
    top: 0;
    left: 4rem;
    color: #fff;
    font-size: 26px;
    line-height: 50px;
    margin: 0;
    padding: 0 20px;
    border-radius: 10px;
    background: var(--main-color);
    transform: translateY(-50%);
  }
  .compare-on-top{
    margin-top: 4.2rem;
  }
  .compare-button{
    position: absolute;
    z-index: 2;
    top: 1.6rem;
    right: 4rem;
    color: #fff;
    
    .button{
      min-height: 36px;
      padding: 0 2.2rem;
    }
  }
  .recommendations-list{
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    
    overflow-x: auto;
    &::-webkit-scrollbar {
      height: 8px; /* 滚动条高度 */
    }
    &::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.1); /* 滚动条轨道颜色 */
      border-radius: 4px;
    }
    &::-webkit-scrollbar-thumb {
      background-color: var(--main-color-\.7); /* 滚动条颜色 */
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    &::-webkit-scrollbar-thumb:hover {
      background-color: var(--main-color, #000); 
    }
  }
}
.widget-medias{
  .media-flex{
    display: flex;
    background: var(--text-background-color);
    &.media-left{
      flex-direction: row-reverse;
    }
    
    .deferred-media-wrapper,
    .video-text{
      width: 50%;
    }
    .deferred-media-wrapper{
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .deferred-media{
      width: 100%;
      background: var(--text-background-color);
    }
    .video-text{
      position: static;
      max-width: initial;
      display: flex;
      justify-content: center;
      flex-direction: column;
    }
  }
  .medias-inner{
    position: relative;
  }
  .qrcode-content{
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 0;
    width: 50%;
    height: 100%;
    padding: 2rem;
    transform: translateY(-50%);
  }
  .qrcode-list{
    display: flex;
    gap: 3rem 6rem;
    margin-top: 4rem;
    justify-content: center;
  }
  .qrcode-item{
    width: 145px;
  }
  .video-title{
    font-size: 32px;
    margin-top: 0px;
    color: var(--text-color, #000);
  }
  .video-text{
    position: absolute;
    z-index: 2;
    padding: 3rem;
    max-width: 450px;
    min-width: 300px;
    font-size: 15px;
    color: var(--text-color, #000);
    background: var(--text-background-color);
    h2,h3,h4,h5,h6{
      color: var(--text-color, #000);
    }
    &.above-the-video{
      position: static;
      padding: 3rem 0;
      max-width: initial;
    }
    &.top-left{
      top: 3rem;
      left: 3rem;
    }
    &.top-right{
      top: 3rem;
      right: 3rem;
    }
    &.top-center{
      top: 3rem;
      left: 50%;
      transform: translateX(-50%);
    }
    &.center-left{
      left: 3rem;
      top: 50%;
      transform: translateY(-50%);
    }
    
    &.center-center{
      top: 50%;
      left: 50%;
      transform: translate(-50%);
    }
    
    &.center-right{
      right: 3rem;
      top: 50%;
      transform: translateY(-50%);
    }
    &.bottom-left{
      bottom: 3rem;
      left: 3rem;
    }
    &.bottom-right{
      bottom: 3rem;
      right: 3rem;
    }
    &.bottom-center{
      bottom: 3rem;
      left: 50%;
      transform: translateX(-50%);
    }
  }
}
.widget-awards{
  .swiper-wrapper{
    align-items: center;
  }
  .awards-wrapper{
    margin: 6rem 0;
  }
  .awards-item{
    display: flex;
    align-items: center;
    color: rgba(18, 18, 18, 0.75);
    text-decoration: none;
  }
  .awards-item-image{
    flex: 0 0 20%;
    
    & > div{
      width: 60%;
      margin: 0 auto;
    }
  }
  .awards-item-content{
    flex: 1;
    font-size: 14px;
    text-align: center;
    padding: 0 3rem;
  }
  .awards-item-product{
    flex: 0 0 20%;
    
    & > div{
      width: 60%;
      margin: 0 auto;
    }
  }
  .awards-item-title{
    font-weight: bold;
    font-size: 24px;
    margin: 0;
  }
  .awards-item-text{
    margin: 2rem 0 0;
    font-size: 15px;
    line-height: 1.3;
  }
  .awards-item-metas{
    margin: 3rem 0 0;
    p{
      margin: 0.5rem 0 0;
      line-height: 1;
    }
  }
  .swiper-pagination{
    position: initial;
  }
  .swiper-button-prev{
    left: -20px;
  }
  .swiper-button-next{
    right: -20px;
  }
}
.widget-feature{
  .feature-list{
    display: flex;
    gap: 3rem 8rem;
  }
  .feature-item{
    flex: 1;
  }
  .feature-image{
    width: 40%;
    min-width: 126px;
    margin: 0 auto;
  }
  .content{
    margin-top: 2rem;
  }
  .title{
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 1rem;
  }
  .description{
    
  }
}

@media (min-width: 768px) {
  .tab-area {
    .tab-details {
      border-bottom: none;
    }

    .tab-content {
      display: block !important; 
    }
  }
  
  .widget-image-with-text{
    .container {
      &.horizontal111{
        display: flex;
        gap: 5rem 3rem;
        flex-wrap: wrap;
        align-items: flex-start;
      
        .wrapper{
          &.col-item-2{
            width: calc((100% - 3rem) / 2);
          }
        
          &.col-item-3{
            width: calc((100% - 3rem * 2) / 3);
          }
        
          &.col-item-4{
            width: calc((100% - 3rem * 3) / 4);
          }
        
          &.col-item-5{
            width: calc((100% - 3rem * 4) / 5);
          }
        
          &.col-item-6{
            width: calc((100% - 3rem * 5) / 6);
          }
        
          &[class^="col-item-"]{
            margin: 0;
            flex-direction: column-reverse;
          
            .text,
            .image{
              flex: 1;
              width: 100%;
              min-height: initial;
            }
          
            .text{
              justify-content: flex-start;
            }
          
            .image{
              display: flex;
              min-height: var(--image-max-height);
              align-items: flex-end;
              justify-content: center;
            }
          
            h3{
              margin-top: 0px;
            }
          }
        }
      
        &.column-2 {
          .wrapper:nth-child(1),
          .wrapper:nth-child(2){
            width: calc((100% - 3rem) / 2);
          }
        }
        &.column-3{
          .wrapper:nth-child(1),
          .wrapper:nth-child(2),
          .wrapper:nth-child(3){
            width: calc((100% - 3rem * 2) / 3);
          }
        }
        &.column-4{
          .wrapper:nth-child(1),
          .wrapper:nth-child(2),
          .wrapper:nth-child(3),
          .wrapper:nth-child(4){
            width: calc((100% - 3rem * 3) / 4);
          }
        }
        &.column-5{
          .wrapper:nth-child(1),
          .wrapper:nth-child(2),
          .wrapper:nth-child(3),
          .wrapper:nth-child(4),
          .wrapper:nth-child(5){
            width: calc((100% - 3rem * 4) / 5);
          }
        }
      }
    }
  }
}
@media (max-width: 768px){
  .widget {
    margin: 25px auto;
  }
  .product-nav{
    display: none;
  }
  .tab-area {
    padding-top: 0px;
    .tab-details {
      border-bottom: 1px solid #bdbdbd;
      &[open]{
        .tab-area-header{
          border-bottom: 1px solid #bdbdbd;
        }
      }
    }
    .tab-content{
      padding: 0px;
      padding: 3rem 0;
    }
    .widget-container{
      margin-bottom: 25px;
    }
  }
  .widget-image-with-text{
    .wrapper{
      margin-block-start: calc(var(--block-margin) / 2);
      margin-block-end: calc(var(--block-margin) / 2);
    }
    .inner{
      flex-wrap: wrap;
      flex-direction: initial !important;
      &+.wrapper{
        margin-top: 3rem;
      }
      h3{
        margin: 1.6rem 0;
      }
    }
    .text{
      flex: initial;
      width: 100%;
      padding: 2rem;
      position: static !important;
      transform: none!important;
      max-width: initial;
    }
    .image-list{
      flex-wrap: wrap;
      gap: 2rem;
      .image{
        width: 100%;
        flex: initial;
      }
    }
    .image{
      flex: initial;
      width: 100%;
      min-height: initial;
      margin-left: 0px;
    }
  }
  
  .widget-downloads{
    .file-list{
      gap: 2rem;
    }
  }
  .widget-recommendations{
    margin-top: 6rem;
    
    .recommendations-container{
      padding: 3rem 1rem 7rem;
      border-radius: 5px;
    }
    .widget-header{
      top: 0;
      left: 50%;
      font-size: 18px;
      line-height: 38px;
      margin: 0;
      padding: 0 22px;
      border-radius: 6px;
      white-space: nowrap;
      transform: translate(-50%, -50%);
    }
    .compare-on-top{
      margin-top: 1rem;
    }
    .compare-button{
      top: unset;
      right: unset;
      left: 50%;
      bottom: 1.5rem;
      transform: translateX(-50%);
      white-space: nowrap;
    }
  }
  .widget-awards{
    .awards-wrapper{
      margin: 3rem 0;
    }
    .swiper-wrapper{
      align-item: center;
    }
    
    .awards-item{
      flex-direction: column;
    }
    .awards-item-image,
    .awards-item-content,
    .awards-item-product{
      flex: initial;
      width: 100%;
    }
    .awards-item-image{
      & > div{
        width: 100%;
      }
    }
    .awards-item-content{
      margin-top: 2rem;
    }
    .awards-item-product{
      margin: 3rem 0 0;
      & > div{
        width: 100%;
      }
    }
    .swiper-button-prev{
      left: 0px;
    }
    .swiper-button-next{
      right: 0px;
    }
  }
  
  .widget-faq{
    .wrapper{
      row-gap: 1.5rem;
      flex-direction: column;
    }
    .faq-intro{
      width: 100%;
      p{
        margin-top: 15px;
      }
    }
    .faq-main{
      width: 100%
    }
    .accordion-box{
      padding: 1.25rem 1.5rem;
    }
    .accordion__toggle{
      padding: 1rem 0;
    }
    .faq-support{
      margin-top: 1.5rem;
    }
  }
  .widget-medias{
    .media-flex{
      flex-direction: column !important;
      
      .deferred-media-wrapper,
      .video-text{
        width: 100%;
      }
    }
    br + br{
      display: none;
    }
    .video-title{
      font-size: 16px;
    }
    .metafield-rich_text_field{
      p, h2, h3, h4, h5, h6{
        font-size: 14px; 
      }
    }
  }
}