
.purefun-toplist__container.desktop {
    max-width: 1440px;
    padding: 16px;
}
.purefun-toplist__products-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-template-rows: 1fr 1fr 1fr;
    grid-gap: 16px;
    grid-auto-flow: column;
    grid-row: minmax(230px, 230px) 1fr;
  }
.purefun-toplist__product:first-of-type {
    grid-row: 1/-1;
    display: flex;
    flex-direction: column;
    max-height: unset;
}
.purefun-toplist__product:first-of-type > a {
    max-width: 100%;
    display: flex;
    flex-direction: column !important;
    background-color: #fff;
    height: 100%;
    width: 100%;
    border-radius: 8px;
}
.purefun-toplist__product a {
    text-decoration: none;
    color: #000 !important;
}
.purefun-toplist__product a:hover {
    text-decoration: none;
}

.purefun-toplist__product:first-of-type > a > .purefun-toplist__product-info {
    max-width: 100%;
}
.purefun-toplist__product:first-of-type .purefun-toplist__product-img {
    height: 300px !important;
    width: 100% !important;
}
.purefun-toplist__product:first-of-type .purefun-toplist__product-img img {
    width: 250px;
    height: 300px;
    object-fit: contain;
}
.purefun-toplist__product-bullets {
    overflow: hidden;
    max-width: 100%;
    padding: 5px 0;
}
.purefun-toplist__product-bullets ul {
    margin: 0 !important;
    padding: 0 !important;
}.purefun-toplist__product-bullets ul li {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap; 
    width: 100%;
    box-sizing: border-box;
}
.purefun-toplist__product {
    border-radius: 8px;
    max-height: 164px;
    overflow: hidden;
}
.purefun-toplist__product a {
    max-width: calc(100% - 48px);
    display: flex;
    background-color: #fff;
    height: 100%;
    width: 100%;
    border-radius: 8px;
    padding: 12px;
    gap: 16px;
}

.purefun-toplist__product-img {
    height: 115px !important;
    object-fit: cover;
    background-color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    padding: 8px;
    position: relative;
    min-width: 30%;
}

.purefun-toplist__product-img > img {
    border-radius: 8px;
    width: 64px;
    mix-blend-mode: multiply;
    object-fit: cover;

}
.purefun-toplist__product-img_position {
    position: absolute;
    top: 5px;
    left: 5px;
    border-radius: 50%;
    color: black;
    width: 27px;
    height: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    line-height: 13px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;   
}
.purefun-toplist__product:first-of-type .purefun-toplist__product-img_position {
    font-weight: 800;
}


.purefun-toplist__product a .purefun-toplist__product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 70%;
}
.purefun-toplist__product a .purefun-toplist__product-info .purefun-toplist__product-info__wrapper > p {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

.purefun-toplist__product-info {
    width: 100%;
}

.purefun-toplist__product-title{
    font-size: 12px;
    font-weight: 700;
    height: 36px;
    overflow: hidden;
    margin-bottom: 8px !important;
}

.purefun-toplist__product-attr, .purefun-toplist__product-attr2{
    font-size: 12px !important;
    color: rgba(0,0,0, 0.5)
}
.purefun-toplist__product-price {
    align-self: flex-end;
}
.purefun-toplist__product-price > span {
    font-weight: 700;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}
.purefun-toplist__product-price > ins > span > bdi {
    font-size: 16px;
    color: red;
    font-weight: 700;
}

.toplist-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;

}
.purefun-toplist .toplist-tabs .nav  {
    margin: 0 !important;
}
.tab-content {
    display: flex;
    justify-content: center;
}
.top-list__tab {
font-size: 12px;
border-radius: 4px;
border: 1px solid #dddddd;
line-height: 18px;
letter-spacing: .64px;
font-weight: 400;
font-family: Inter, sans-serif;
padding: 6px 8px;
margin-right: 8px;
background-color: #ffffff;
color: #000;
cursor: pointer;
-webkit-font-smoothing: antialiased;
}

.top-list__tab.active {
background-color: #000 !important;
color: #ffffff !important;
-webkit-font-smoothing: antialiased !important;
font-style: normal !important;
}

.purefun-toplist__container.mobile {
    display: none;
}
.purefun-toplist__container.desktop {
    display: flex;
}
@media screen and (min-width: 769px) and (max-width: 1198px) {
    .tab-pane {
        width: 100%;
    }

    .tab-content {
        width: 100%;
        display: flex !important;
        justify-content: center;
    }
    .purefun-toplist__container.mobile {
        display: none !important;
    }
    .purefun-toplist__container.desktop {
        display: flex !important;
    }
    .tab-content {
        padding: 0;
    }

    .purefun-toplist__products-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(5, minmax(0, 139px));
        grid-gap: 16px;
        grid-auto-flow: column;
    }
    .purefun-toplist__product {
        height: 139px;
    }
    
    .purefun-toplist__product:first-of-type {
        grid-row: auto;
        display: flex;
        flex-direction: row; 
        max-height: unset;
    }
    .purefun-toplist__product:first-of-type > a {
        max-width: calc(100% - 48px);
        display: flex;
        flex-direction: row !important;
        background-color: #fff;
        border-radius: 8px;
    }

    .purefun-toplist__product:first-of-type .purefun-toplist__product-img {
        height: 115px !important;
        object-fit: cover;
        background-color: #FFF;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
        padding: 8px;
        flex: 0.5;
    }
    .purefun-toplist__product:first-of-type .purefun-toplist__product-img img {
        width: 64px !important;
        height: unset !important;
        object-fit: contain;
    }
    .purefun-toplist__container .swiper-button-next, .purefun-toplist__container .swiper-button-prev {
        top: 50% !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24) !important;
        background-color: #FFF !important;
    }
    
    .purefun-toplist__container .swiper-button-next::after, .purefun-toplist__container .swiper-button-prev::after {
        font-size: 20px !important;
        color: black !important;
    }

    .purefun-toplist__product a {
        text-decoration: none;
        color: #000;
    }

    .purefun-toplist__product {
        margin-bottom: 16px;
    }
    .purefun-toplist__container.mobile {
        display: flex;
        padding: 16px;
        margin-left: -15px;
        margin-right: -15px;

    }
    .purefun-toplist__container.desktop {
        display: none;
    }
}
@media screen and (max-width: 768px){
    .toplist-tabs {
        justify-content: center;
        margin: 0;
    }
    .purefun-toplist .toplist-tabs .nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        max-width: 100%;
        overflow-x: scroll;
        padding: 0;
        margin: 0;
        padding-bottom: 16px;
    }
    .purefun-toplist .toplist-tabs .nav .nav-item a {
        white-space: nowrap;
    }

    .tab-content {
        padding: 0;
        display: block !important;
    }
    
    .swiper-slide > .purefun-toplist__product:last-child {
        margin-bottom: 0 !important;
    }
    .purefun-toplist__product a .purefun-toplist__product-info {
        height: unset;
    }
    .purefun-toplist__product:first-of-type > a {
        max-width: calc(100% - 48px);
        display: flex;
        flex-direction: row !important;
        background-color: #fff;
        border-radius: 8px;
    }
    .purefun-toplist__product a .purefun-toplist__product-info .purefun-toplist__product-info__wrapper > .purefun-toplist__product-title{
        margin-bottom: 8px !important;
    }    
    .purefun-toplist__product a .purefun-toplist__product-info .purefun-toplist__product-info__wrapper > p {
        margin: 0 !important;
        padding: 0 !important;
        font-family: 'Montserrat', sans-serif !important;
    }

    .purefun-toplist__product:first-of-type .purefun-toplist__product-img {
        height: 115px !important;
        width: unset !important;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
        padding: 8px;
    }

    .purefun-toplist__product .purefun-toplist__product-img {
        height: 115px !important;
        background-color: #FFF;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
        padding: 8px;
    }
    .purefun-toplist__product .purefun-toplist__product-img img {
        object-fit: cover;
        height: unset !important;
    }
    .purefun-toplist__product:first-of-type .purefun-toplist__product-img img {
        max-height: 139px !important;
        width: 120px !important;
        object-fit: contain;
    }
    .purefun-toplist__container .swiper-button-next, .purefun-toplist__container .swiper-button-prev {
        top: 50% !important
    }
    .purefun-toplist__container .swiper-button-next:after, .purefun-toplist__container .swiper-button-prev:after {
        font-size: 20px !important;
        color: black !important;
    }
    
    .purefun-toplist__product a {
        text-decoration: none;
        color: #000;
        max-height: 139px;
    }

    .purefun-toplist__product {
        margin-bottom: 16px;
        height: 100%;
    }
    .purefun-toplist__container.mobile {
        display: flex;
        padding: 16px;
        max-width: 100vw;
    }
    .purefun-toplist__container.desktop {
        display: none;
    }
    .purefun-toplist__container .swiper-button-next, .purefun-toplist__container .swiper-button-prev {
        top: 50% !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24) !important;
        background-color: #FFF !important;
        border-radius: 50%;
        padding: 21px;
        font-weight: bold;
    }
}