html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

main {
    height: 100vh;
    background: purple;
    display: flex;
    justify-content: center;
    align-items: center;
}

li {
    list-style: none;
}

.product__container {
    background: white;
    box-shadow: 0 5px 10px rgb(0 0 0 / 50%);
    outline: none;
    padding: 10px;
    border-radius: 5px;
    width: calc(100vw - 4%);
    max-width: 500px;
}

.product__form {
    border: 2px solid rgb(0 0 0 / 30%);
    display: flex;
    align-items: center;
    gap: 3px;
}

.product__form button {
    background: none;
    border: none;
    outline: none;
    margin: 6px;
}

.product__form button svg {
    display: block;
    width: 100%;
    width: 18px;
}

.product__form input[type="text"] {
    width: 100%;
    font-size: 15px;
    border: none;
    outline: none;
}

.product__form input[type="text"]::placeholder {
    font-size: inherit;
}

.product__product-img {
    min-width: 80px;
    max-width: 80px;
    display: block;
    object-fit: contain;
    height: 80px;
}

li.product__product {
    display: flex;
    gap: 13px;
    padding-block: 10px;
    padding-right: 10px;
}

.product__product-details h3 {
    font-size: 16px;
    line-height: 1.4;
    text-transform: capitalize;
    margin-bottom: 5px;
    word-break: break-word;
}

.product__product-details small {
    font-weight: 600;
}

ul.product__list {
    height: 85vh;
    overflow-y: scroll;
    margin-top: 10px;
}

@media(min-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
    }

    ::-webkit-scrollbar {
        background: rgb(0 0 0 / 20%);
    }

    ::-webkit-scrollbar-thumb {
        background: rgb(0 0 0 /40%);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: black;
    }
}

@media(max-width: 767px){
    ::-webkit-scrollbar {
        display: none;
    }
}