.best-selling-wrapper {
    background-color: var(--bg-black);
}

.best-selling-container {
    max-width: 100%;
    padding:0 40px;
}

.best-selling-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 40px;
}

.best-selling-item.first{
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    gap: 10px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-gray);
    border-radius: 8px;
    justify-content: space-between;
    align-items: flex-start;
}

.best-selling-item{
    grid-column: 2 / 3;
    grid-row: auto;
    gap: 10px;
    display: flex;
    flex-direction: row-reverse;
    background-color: var(--bg-gray);
    border-radius: 8px;
    padding: 20px;
    justify-content: space-between;
    align-items: center;
}

.best-selling-item.first .product-image{
    flex: 1;
    height: 50%;
}

.best-selling-item.first .product-info{
    flex: 1;
    height: 50%;
}

.best-selling-item .product-image{
    flex: 1;
    height: 100%;
}

.best-selling-item .product-info{
    flex: 1;
    height: 100%;
}

.best-selling-item.first .product-image{
    display: flex;
    width: 100%;
    justify-content: center;
    height: 70%;
}

.best-selling-item .product-image{
    display: flex;
    justify-content: flex-end;
}

.best-selling-item .product-info{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.best-selling-item.first img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s;
}


.best-selling-item img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s;
}

.best-selling-item.first .product-info {
    justify-content: space-between;
    height: 30%;
}

.best-selling-item .product-info{
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.best-selling-item .product-info .product-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.best-selling-item .product-data h3 {
    color: var(--white);
    margin: 0;
}

.best-selling-item .product-data p {
    margin: 0;
    color: var(--white);
}

.best-selling-item .product-data .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--soft-yellow);
    margin: 0;
}

.best-selling-item .shopnow a{
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--soft-green);
    text-decoration: none;
}

@media (max-width: 1024px){
    .best-selling-display {
        grid-template-columns: repeat(1, 1fr);
    }
    .best-selling-item.first{
        grid-column: auto;
        grid-row: auto;
    }

    .best-selling-item.first{
        gap: 10px;
        display: flex;
        flex-direction: row-reverse;
        background-color: var(--bg-gray);
        border-radius: 8px;
        padding: 20px;
        justify-content: space-between;
        align-items: center;
    }

    .best-selling-item.first .product-info, .best-selling-item .product-info{
        flex: 1;
        height: 100%;
        justify-content: space-between;
    }
    .best-selling-item.first .product-image, .best-selling-item .product-image{
        flex: 1;
        height: 100%;
        justify-content: flex-end;
    }

    .best-selling-item{
        grid-column: auto;
        grid-row: auto;
    }

    .best-selling-item.first img {
        max-width: 100%;
        max-height: 300px;
        object-fit: contain;
        border-radius: 8px;
        transition: transform 0.2s;
    }

}

@media (max-width: 576px){
    .best-selling-item.first, .best-selling-item{
        gap: 10px;
        display: flex;
        flex-direction: column;
        background-color: var(--bg-gray);
        border-radius: 8px;
        padding: 20px;
        justify-content: space-between;
        align-items: flex-start;
    }

    .best-selling-item.first .product-image, .best-selling-item .product-image{
        flex: 1;
        height: 50%;
        width:100%;
        justify-content: center;
    }

}
