﻿#bestsellers-container {
    width: 100%;
    aspect-ratio: 5 / 1;
    /* background-color: #ff000038;*/ /*DEBUG*/
    /* margin-top: 2.8vw;*/ /*DEBUG*/
    font-size: 0;
    display: flex;
    background-color: #20905a;
    padding-bottom: 0.15vw;
}

    #bestsellers-container > div {
        height: 100%;
        /*display: inline-block;*/
    }

        #bestsellers-container > div:nth-child(1), #bestsellers-container > div:nth-child(3) {
           /* background-color: #20905a;*/
        }

        #bestsellers-container > div:nth-child(1) {
            width: 5.5vw;
        }

        #bestsellers-container > div:nth-child(3) {
            width: 5.8vw;
        }

        #bestsellers-container > div:nth-child(2) {
            background-image: url(../../../images/BoxMaker/Desktop/bestsellers.png);
            background-repeat: no-repeat;
            background-size: cover;
            /*opacity: 0.5;*/
            /* margin-right: 5.5vw;
        margin-left: 5.8vw;*/
            width: calc(100% - 5.5vw - 5.8vw);
        }

            #bestsellers-container > div:nth-child(2) > div:nth-child(1) {
                height: 22%;
            }

            #bestsellers-container > div:nth-child(2) > div:nth-child(2) {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                column-gap: 0.3vw; /* فقط فاصله افقی */
                row-gap: 0.3vw; /* فاصله عمودی دلخواه */
                margin-right: 3vw;
                margin-left: 2.5vw;
                height: 66%;
                box-sizing: border-box;
            }

.bestseller {
    width: calc(25% - 0.3vw);
    height: calc(50% - 0.3vw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*background-color: #f0f0f0;*/ /*DEBUG*/
    box-sizing: border-box;
    /* padding: 0.5vw;*/
    border-radius: 0.5vw;
}

    .bestseller:nth-child(odd) {
        /* background-color: #ff00002e;*/ /*DEBUG*/
    }

    .bestseller:nth-child(even) {
        /*background-color: #0000ff4d;*/ /*DEBUG*/
    }

.bestseller-number {
    color: #00b262;
    font-size: 3.2vw;
    width: 10%;
    flex-shrink: 0;
    font-weight: 400;
}

.bestseller-img-container {
    width: 30%;
    height: 100%;
    overflow: hidden;
    /* display: flex;*/
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 1vw;
}

    .bestseller-img-container img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

.bestseller-title {
    width: 54%;
    font-size: 1.2vw;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    font-weight: bold;
}

    .bestseller-title a {
        text-decoration: none;
        color: #282828;
    }
