*{ min-width: 0; }
.main-collection-wrap__inner { width: 100%; }

.proLoop {
  .productImg {
    overflow: hidden;
    img { transition: transform 0.3s ease; width: 100%; }
    &:hover img { transform: scale(1.05); }
  }

  .proLoop-wrap {
    margin: 0 0.5px;
    background: #fff;
  }

  .proLoop-wrap-info {
    padding: 0 10px 10px;

    .proLoop-labels-row,
    .proLoop-vendor-row {
      display: flex; align-items: center;
      justify-content: space-between;
      margin-top: 10px; gap: 6px;
      margin-bottom: 5px;
    }
    .proLoop-labels {
      display: flex; flex-wrap: wrap; gap: 5px;
      span {
        display: inline-flex; align-items: center; justify-content: center;
        color: #fff; font-size: 9px;
        padding: 2px 4px; border-radius: 15px; line-height: 18px;
        @media (max-width: 767px) { font-size: 8px; }
        @media(max-width: 640px){ padding: 2px; line-height: 1; white-space: nowrap; }
      }
      .proLoop-label-freeship { background: #002351; border: 1px solid #002351; }
      .proLoop-label-new      { background: #fe2d05; border: 1px solid #fe2d05; }
      .proLoop-label-hot      { background: #ff4500; border: 1px solid #ff4500; }
    }
    .proLoop-cart-icon {
      display: inline-flex; align-items: center; justify-content: center;
      width: 32px; height: 32px; min-width: 32px;
      border-radius: 50%; background: #820813; color: #fff;
      cursor: pointer; transition: background 0.2s;
      &:hover { background: #a00a18; }
      svg { width: 16px; height: 16px; }
      @media(max-width: 640px){ display: none; }
    }

    .loopvendor {
      margin: 2px 0;
      a {
        font-size: 12px; line-height: 15px;
        letter-spacing: 0.05em; text-transform: uppercase; color: #212121;
      }
    }

    .productName {
      font-size: 14px; color: #212121;
      overflow: hidden; text-overflow: ellipsis;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      margin-bottom: 4px; white-space: initial; height: 42px;
      @media (max-width: 767px) { height: 37px; font-size: 13px; }
    }

    .productPrice-wrap {
      display: flex; flex-wrap: wrap;
      justify-content: space-between; align-items: flex-end; height: 38px;
      .productPrice {
        font-size: 12px; color: #828282; margin-bottom: 0;
        del { display: block; margin-right: 5px; @media (max-width: 767px) { font-size: 10px; } }
        b   { display: block; font-size: 13px; color: #820813; font-weight: bold; @media (max-width: 767px) { font-size: 12px; } }
      }
      .productLabelTags span {
        display: inline-flex; align-items: center; justify-content: center;
        width: 30px; height: 30px; border-radius: 50%;
        color: #fff; font-size: 10px; font-weight: 500;
        background: rgba(159, 206, 24, 0.8); position: relative; z-index: 2;
      }
    }

    .flsalevariant {
      margin-top: 10px;
      .flsalevariant-bar {
        position: relative; height: 22px; border-radius: 11px;
        background: #ffbda6;
      }
      .percenvariant {
        position: absolute; top: 0; left: 0; bottom: 0; width: 0;
        background: linear-gradient(270deg,#ffb000 0%,#eb1717 100%);
        border-radius: 11px; transition: width 0.3s ease;
      }
      .flsalevariant-text {
        position: absolute; inset: 0;
        display: flex; align-items: center; justify-content: center;
        font-size: 12px; font-weight: 700; color: #fff;
        text-transform: uppercase; letter-spacing: 0.03em; z-index: 1;  
        text-shadow: 0 1px 2px rgba(0,0,0,0.18);
      }
      .flsalevariant-fire { width: 30px; height: 30px; margin-right: 3px; object-fit: contain; position: absolute; left: 5px; bottom: 0; }
    }
  }
}

#index-flashsale {
  padding: 30px 0;
  .index-flashdeal-products { margin-top: 15px; }
  .index-flashdeal-list-bc {
    background: #f5f5f5; padding: 1px 0 1px 1px;
    display: flex; flex-wrap: wrap;
    .proLoop { flex: 0 0 auto; }
    &.slick-initialized {
      display: block; padding: 0;
      .proLoop     { flex: none; }
      .slick-slide { padding: 0 1px; }
    }
    @media (max-width: 1199px) { display: block; padding: 0; }
  }
  .index-flashdeal-products {
    @media (max-width: 1199px) { margin: 0; overflow: visible; white-space: normal; }
  }
}

#khungCounHotDeal-bc {
  margin: 0; padding: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  @media (max-width: 767px) { justify-content: center; }
}
#wrapImgHot-bc {
  padding-left: 6px;
  img { max-height: 48px; width: auto; }
}
#wrapCountDown-bc {
  display: flex; align-items: center; color: #232323; gap: 6px;
}
.khungTime {
  padding: 2px 14px; background: #000; color: #fff;
  font-size: 19px; border-radius: 8px; font-weight: 600; margin-top: 5px;
}
.dau2chamgio { font-size: 25px; font-weight: 700; color: #232323; line-height: 1; }

.flashsale-viewall,
.flashsale-viewall-mobile { margin-top: 10px; }
.flashsale-viewall {
  @media (max-width: 767px) { text-align: right; }
}
.flashsale-viewall-mobile {
  @media (max-width: 767px) { text-align: center; }
}
.flashsale-viewall__link {
  font-size: 16px; font-weight: 700; color: #990000;
  text-decoration: underline; text-decoration-style: double;
}
.flashsale-empty { margin: 10px 0; color: #212121; font-size: 14px; }

.flashsale-slider {
  position: relative;
  .slick-arrow {
    position: absolute; top: calc(50% - 90px);
    background: none; border: none; box-shadow: none; outline: 0;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center; z-index: 2;
    svg { width: 18px; height: 18px; path { stroke: #999 !important; } }
    &.slick-disabled { visibility: hidden; }
  }
  .slick-prev { left: 5px;  @media (min-width: 1200px) { left: -30px; } }
  .slick-next { right: 5px; @media (min-width: 1200px) { right: -30px; } }
}

.home-award {
  padding: 18px 0 10px;

  .home-award-head {
    margin-bottom: 10px;

    h2 {
      margin: 0;
      font-size: 32px;
      line-height: 1.2;
      font-weight: 700;

      a {
        color: inherit;
      }
    }
  }

  .home-award-slider {
    .home-award-item {
      padding: 0 6px;

      img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 14px;
      }
    }

    .slick-list {
      margin: 0 -6px;
    }

    .slick-arrow {
      display: none !important;
    }
    .slick-dots{
      bottom: 15px;
    }
  }

  @media (max-width: 767px) {
    .home-award-head {
      h2 {
        font-size: 24px;
      }
    }
  }
}

.home-cert {
  padding: 18px 0 36px;

  .home-cert-slider {
    padding-bottom: 15px;
    .home-cert-item {
      padding: 0 10px;
      text-align: center;

      img {
        width: 100%;
        max-width: 120px;
        height: auto;
        display: block;
        margin: 0 auto;
      }
    }

    .slick-list {
      margin: 0 -10px;
    }

    .slick-arrow {
      display: none !important;
    }

    .slick-dots{
      bottom: -30px;
    }
  }
}

.main-product {
  .main-product-short-description {
    margin-top: 8px;
  }

  .main-product-cta {
    display: flex;
    gap: 10px;

    > button {
      flex: 1 1 0;
      background-color: #F00 !important;
      margin: 0 !important;
    }
  }

  .product-deliverly {
    margin-top: 12px;

    .infoList-deliverly {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 14px;

      @media (max-width: 767px) {
        grid-template-columns: 1fr;
      }
    }

    .deliverly-item {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #374151;
      font-size: 13px;
      line-height: 1.4;

      span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        min-width: 30px;
      }

      img {
        width: 30px;
        height: 30px;
        object-fit: contain;
      }
    }
  }

  .main-product-video-section {
    margin-top: 20px;
  }

  .main-product-video-content {
    margin-top: 10px;

    iframe,
    video,
    embed {
      width: 100%;
      max-width: 100%;
      border: 0;
      border-radius: 8px;
      aspect-ratio: 9 / 16;
      object-fit: cover;
    }
  }

  .main-product-video-slider {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;

    .slick-list {
      margin: 0 -8px;
    }

    .slick-slide {
      padding: 0 8px;
    }
  }

  .main-product-video-slide {
    width: 100%;
  }

  .main-product-video-slider.is-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;

    .main-product-video-slide {
      min-width: calc(25% - 8px);
      scroll-snap-align: start;

      @media (max-width: 1199px) {
        min-width: calc(33.333% - 7px);
      }

      @media (max-width: 991px) {
        min-width: calc(50% - 5px);
      }

      @media (max-width: 767px) {
        min-width: 100%;
      }
    }
  }

  .main-product-video-section--tab3 {
    .main-product-video-content {
      iframe,
      video,
      embed {
        aspect-ratio: 9 / 16;
      }
    }

    .main-product-video-slider.is-scroll {
      .main-product-video-slide {
        min-width: calc(50% - 8px);

        @media (max-width: 767px) {
          min-width: 100%;
        }
      }
    }
  }
}

.home-letter {
  .home-letter-countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 0 0 12px;
  }

  .home-letter-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 34px;
  }

  .home-letter-countdown-item b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    background: var(--home-letter-countdown-bg, #bf4b34);
    color: var(--home-letter-countdown-number, #fff);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    border-radius: 0;
    padding: 0 4px;
  }

  .home-letter-countdown-item span {
    margin-top: 3px;
    color: var(--home-letter-countdown-label, #fff);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
  }
}

.home-letter {
    *{ border-radius: .25rem; }
    .home-letter-wrap {
        .home-letter-left {
            background: linear-gradient(to bottom, #bf4b34);
            padding: 1rem;
            .subtitle-fstyle1 { display: none; }
            .title-fstyle1 { display: none; }
            .home-letter-countdown {
                .home-letter-countdown-item {
                    b { padding: 1rem; display: block; height: auto; border-radius: .25rem; background: linear-gradient(to bottom, #ff2900; color: #ffffff; );
                    min-width: 75px; text-align: center; }
                    span { font-size: 1rem; color: #ffffff;  }
                }
            }
            form{
                margin-top: 0;
                border: 10px solid #DbDbDb;
                padding: 1rem;
                background: #C4A484;
                display: block !important;
                grid-template-columns: 1fr !important;
            }
            .home-letter-form-group {
                display: block;
                width: 100%;
                margin-bottom: 1rem;
                text-align: left !important;
                input { 
                    &:not([type="radio"]){  background: #FFF !important; width: 100%;  }
                    &[type="radio"]{
                        display: inline-block; width: 20px; height: 20px; padding: 0; 
                        &:before{ top: 2px; left: -6px; }
                        &:after{ margin: 0; top: 3px; }
                    }
                }
                br{ display: none; }
                strong{
                    background: #F30; color: yellow; padding: 0 2.5px;
                }
                label{ cursor: pointer; }
                i{ display: none; }
                &.full-span {
                    border-radius: .25rem;
                    overflow: hidden;
                    .home-letter-form-radios {
                        label {
                            border-radius: 0;
                            background: #FFF;
                            display: block;
                            width: 100%;
                            padding: .5rem 1rem;
                            margin: 0;
                            input {}
                            span {
                                strong {}
                            }
                        }
                    }
                }
            }
            .home-letter-form-actions {
                &.full-span {
                    button {
                        background: #bf4b34;
                        width: 100%;
                        clip-path: inherit;
                        border: 1px solid #bf4b34;
                        color: #FFF;
                        font-size: 1.25rem;
                        padding: .5rem;
                    }
                }
            }
        }
        .home-letter-right {
            height: 100%;
            img {
                height: 100%;
                object-fit: cover;
            }
        }
    }
}

.home-tiktok-embed{
  iframe{
    border-radius: 10px !important;
    overflow: hidden;
  }
}
.main-product-description-item-data img{ height: auto !important; }
.starbap-all-reviews-widget, .starbap-rev-widg{
  @media(max-width: 360px){ padding: 10px !important; }
  .starbap-histogram{
    @media(max-width: 360px){ padding: 10px 0 !important; margin: 0 !important; border-left: none !important; border-right: none !important; }
  }
}