/* .available-product-wrapper {
    min-height: 370px;
} */
.more-available-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-gap: 5px;
    padding: 0 6px;
}

.show-more-also-available {
    cursor: pointer;
    user-select: none;
}

.show-more-also-available:hover {
    color: var(--secondary);
}

.available-product-wrapper .component-seemore {
    margin-left: auto;
    font-size: 16px;
    line-height: 16px;
    color: var(--secondary);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 500;
}

.available-product-wrapper .component-seemore:hover {
    text-decoration: underline;
}

.create-your-own-banner img {
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
}
.show-more-also-available svg {
    width: 12px;
    min-width: 12px;
    margin: 0 4px;
    transition: transform 300ms ease-in-out;
    vertical-align: middle;
}

@media (min-width: 1024px) {
    .sale-product-item img {
        transition: var(--trans);
    }

    .available-product-link:hover img,
    .sale-product-item:hover img {
        transform: scale(1.4) !important;
    }

    .list-product-also-available {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .list-product-also-available .also-available-on-box {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .more-available-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        padding: 0
    }

    .show-more-also-available {
        padding-right: 0;
    }

    .create-your-own-banner img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 760px) {

    .create-your-own-banner {
        padding-right: 6px;
    }

    .available-list-product-mobile {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }


    .more-available-list .available-product-item {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .available-product-wrapper .component-seemore {
        font-size: 14px;
        line-height: 14px;
        margin-bottom: 0 !important;
    }
}


@media (min-width: 900px) {
    .also-available-on-box:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    }
    .also-available-on-box:not(.swiper-initialized) .swiper-wrapper .available-product-item:nth-child(n + 5) {
        display: none;
    }
}
  

.also-available-on-tab1,
.also-available-on-tab2,
.also-available-on-tab3 {
    position: relative;
    overflow: hidden;
}

/* .also-available-on-tab-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
} */

.also-available-on-tab-wrapper .available-product-item-tab {
    padding: 6px;
}

.also-available-tablist {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.also-available-tablist:after,
.also-available-tablist label.active:after  {
    content: "";
    height: 2px;
    width: 100%;
    display: block;
    background: #eee;
    position: absolute;
    bottom: 0;
    left: 0;
}

.also-available-tablist label {
    display: inline-block;
    font-weight: 400;
    padding: 0 0 12px;
    border-radius: 0px;
    margin-right: 16px;
    white-space: nowrap;
    width: auto;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.also-available-tablist label.active:after {
    background: var(--pr-color-secondary);
}
.also-available-tablist label.active {
    /* background-color: var(--pr-color-secondary); */
    color: var(--pr-color-secondary);
}
  
.tabcontent {
    display: none;
    border-top: none;
    padding-top: 16px;
}

.available-product-link {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    background-color: #fff;
}

.available-product-link picture {
    margin-bottom: 10px;
    overflow: hidden;
    background-color: var(--multiply, #f8f8f8);
    border-radius: 5px;
}

.also-available-on-tab-wrapper .available-product-info {
    padding: 0;
}

#product-page .available-product-title {
    font-size: 14px;
    color: var(--primary);
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    white-space: normal;
    margin: 0;
    width: 100%;
}
  
@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.available-product-item-tab .available-product:hover img {
    transform: none;
}
@media (max-width: 1366px) {
    /* .also-available-on-tab-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    } */
    .also-available-on-tab-wrapper .animated-background-content:nth-child(n + 4) {
        display: none !important;
    }
}
@media (max-width: 767px) {
    /* .also-available-on-tab-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    } */
    .also-available-on-tab-wrapper .animated-background-content:nth-child(n + 3) {
        display: none !important;
    }
    
    .animated-background-content .animated-background {
        width: 160px !important;
    }
    .animated-background-content .animated-background.animated-image {
        height: 160px !important;
    }
    .tab-more-also-available-product .animated-background-content:nth-child(n + 4) {
        display: none !important;
    }
    .also-available-tablist::before {
        content: '';
        height: 100%;
        width: 50px;
        background: linear-gradient(0deg,rgba(255,255,255,0) 0%,#FFF 175.52%);
        background: -webkit-linear-gradient(0deg,rgba(255,255,255,0) 0%,#FFF 175.52%);
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 9;
        pointer-events: none;
    }

    .list-product-also-available .animated-item:nth-child(n + 3) {
        display: none !important;
    }
    .list-product-also-available .animated-item .animated-image.animated-background {
        width: 158px !important;
        height: 158px !important;
    }

    .available-product-item.create-your-own-banner {
        min-width: unset;
        max-width: unset;
        transition: unset;
    }
}

.loader-also-available {
    --width: 100%;
    --widthD: calc(0 - 100%);
    width: 100%;
    height: 100%;
    background: linear-gradient(0.75turn, transparent, transparent, transparent),                 
                linear-gradient(#ececec, #ececec),                 
                linear-gradient(#ececec, #ececec),                 
                linear-gradient(#ececec, #ececec);
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% calc(100% -  60px), 100% 15px, 50px 15px;
    background-position: var(--width) 0, 0 0, 0 calc(100% - 30px), 0 calc(100% - 10px);
    animation: loading-available 1.5s infinite;
    margin: 0;
}
.loader-also-available:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    background: #fff;
    background: linear-gradient(290deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0) 60%);
    background-size: 200% 100%;
    -webkit-animation: 1.5s shine linear infinite;
    animation: 1.5s shine linear infinite;
    width: 100%;
    height: 100%;
}

@keyframes loading-available {
  to {
    background-position: 100% 0, 0 0, 0 calc(100% - 30px), 0 calc(100% - 10px);
  }
}
@keyframes  shine {
    to {
        background-position-x: -200%
    }
}

.animated-background.animated-image {
    width: 100% !important;
    padding-top: 100%;
}

.tab-more-also-available-product {
    position: fixed !important;
    width: 900px;
    height: fit-content;
    background: #fff;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    border-radius: 20px;
    overflow: hidden;
}

.tab-more-also-available-product-bg {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

.also-available-on-tab-wrapper:not(.swiper-initialized) img {
    max-width: 200px;
    max-height: 200px;
}

.also-available-tablist:not(.swiper-initialized) .swiper-slide {
    max-height: 36px;
    max-width: 100px;
}

.tab-more-also-available-product-header {
    padding: 12px 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.also-available-product-header-title {
    font-size: 20px;
    color: #0A0A0A;
}

.tab-more-also-available-product-header svg {
    cursor: pointer;
    color: #aaa;
    transition: all 222ms ease-in-out;
}

.tab-more-also-available-product-header svg:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.tab-more-also-available-product .also-available-tablist {
    padding: 12px 16px 0;
}

.tab-more-also-available-product .tabcontent {
    padding: 16px 16px 8px;
}

.tabcontent .swiper-grid .swiper-wrapper {
    height: fit-content;
}

.also-available-pagination {
    --swiper-navigation-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-gap: 14px;
    width: 100%;
    margin: 10px auto 0;
}

.also-btn-pagination {
    display: block;
    position: static;
    margin: 0;
    width: fit-content;
}

.body-open-more-also {
    overflow: hidden;
    height: 100dvh;
}

.tab-more-also-available-product .also-available-on-tab-wrapper {
    overflow: hidden;
    display: block;
}

.also-available-on-tab-wrapper .available-product-item,
.also-available-on-tab-wrapper .available-product-item-tab {
    padding: 0;
    height: fit-content;
}

.also-available-pagination .also-btn-next,
.also-available-pagination .also-btn-prev,
.also-available-pagination .also-btn-pagination {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    box-shadow: none;
    transform: unset;
}

.also-loader-block {
    display: grid;
    padding: 10px 10px 32px;
    grid-template-columns: repeat(4, 1fr);
}

.body-open-more-also .product-right-wrapper {
    z-index: 0;
}

.tabcontent.show-product {
    display: block;
}

@media (max-width: 1366px) {
    .also-available-on-tab-wrapper .animated-background-content:nth-child(n + 4) {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .body-open-more-also .productCanvasMain .product-grid-layout .addtocart-button-wrapper.addtocart-fixed {
        z-index: 19;
    }
    .tab-more-also-available-product {
        position: fixed !important;
        width: 100%;
        max-width: 100vw;
        height: fit-content;
        background: #fff;
        top: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        border-radius: 21px 21px 0 0;
    }

    .also-loader-block {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .also-available-on-tab-wrapper .animated-background-content:nth-child(n + 5) {
        display: none !important;
    }
    .tab-more-also-available-product .animated-background-content:nth-child(n + 5) {
        display: none !important;
    }
    .list-product-also-available .animated-item:nth-child(n + 5) {
        display: none !important;
    }

    .tab-more-also-available-product .tabcontent {
        padding: 16px 16px 32px;
    }

    .js-also-available-on-title {
        margin-bottom: 10px;
    }

    .js-also-available-on-title .section-product-page-title {
        margin-bottom: 0;
    }

    .also-available-pagination .also-btn-next, .also-available-pagination .also-btn-prev {
        display: flex !important;
    }

    .product-left-wrapper .available-product-wrapper > .tab-more-also-available-product {
        padding: 0;
    }
}

@media(min-width: 768px) {
    .tab-more-also-available-product {
        overflow: hidden;
        max-height: 700px;
    }
}

.has-fancy-loading {
    transition: all 222ms ease-in-out;
}

@media (min-width: 900px) {
    .also-available-on-tab-wrapper:not(.swiper-initialized) .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 12px;
    }

    .also-available-on-tab-wrapper:not(.swiper-initialized) .has-fancy-loading {
        opacity: 0;
    }

    .also-available-on-tab-wrapper .available-product-item-tab {
        max-height: 262px;
        position: relative;
    }
}

@media (min-width: 760px) and (max-width: 1200px) and (orientation: landscape) {
    .tab-more-also-available-product {
        top: 50px
    }

    .body-open-more-also #main-header {
        z-index: 1;
    }

    .also-available-product-header-title {
        font-size: 19px;
    }

    .tab-more-also-available-product .also-available-tablist {
        padding-top: 0;
    }
}