@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    color: #1d1d1d;
}

body {
    font-family: 'Prompt', sans-serif;
    background: #8d8d8d;
    min-height: 100vh;
}

.main {
    min-height: 100vh;
    margin: 0;
    font-family: 'Prompt', sans-serif;
    padding: 3rem 1.5rem 1rem 1.5rem;
    /* background: linear-gradient(144deg, rgba(28, 28, 28, 1) 0%, rgba(70, 56, 29, 1) 100%); */
    background: linear-gradient(144deg, rgba(28, 28, 28, 1) 0%, rgb(19, 19, 19) 100%);
}

.content-sec {
    margin: 3rem 0 0 0;
}

.banners>img {
    width: 100%;
    height: 200px;
    max-width: 850px;
    border-radius: 1rem;
    object-fit: cover;
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.banners {
    width: 100%;
    overflow-x: auto;
    display: flex;
    gap: 1rem;
}

.pop-products {
    margin: 3rem 0 0 0;
}

.all-products {
    max-width: 1440px;
    margin: 3rem auto;
}

.all-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.all-header>a {
    color: #FFDF01;
}

.pop-header>span:nth-of-type(1),
.all-header>span:nth-of-type(1) {
    color: #F9F9F9;
    font-size: 1.5rem;
    font-weight: 500;
}

.cards-wrapper,
.all-cards-wrapper {
    margin: 1rem 0 0 0;
    padding: 1rem;
    width: 100%;
    overflow-x: auto;
    display: flex;
    gap: .7rem;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

.all-cards-wrapper {
    cursor: default;
}

.cards-wrapper::-webkit-scrollbar,
.banners::-webkit-scrollbar {
    display: none;
}

.product-card {
    width: 250px;
    height: 410px;
    background: #F9F9F9;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    cursor: pointer;
    transition: all .1s ease-in-out;
}

.product-card:hover {
    transform: scale(1.02);
}

.card-pics {
    width: 100%;
    height: 100%;
    max-height: 400px;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem;
    display: flex;
    align-items: flex-end;
    background: url(../img/product-placeholder.png) top center / cover;
}

.card-pics>img {
    width: 100%;
    min-height: 220px;

}

.card-pics>span {
    font-size: 1.3rem;
    font-weight: 600;
    background: #FFDF01;
    padding: .2rem .5rem;
    border-radius: .5rem;
    box-shadow: 3px 2px 5px #00000050;
}

.card-detail {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: 0 .5rem;
    width: 100%;
    flex: 1 1 auto;
}

.card-detail>span:nth-of-type(1) {
    margin-top: 8px;
    color: gray;
    font-size: .8rem;
}

.card-detail>span:nth-of-type(2) {
    font-size: 1rem;
    font-weight: 600;
    word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 3;
    -moz-line-clamp: 3;
    -ms-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.card-detail>span:nth-of-type(3) {
    font-size: .9rem;
    flex-grow: 2;
}

.card-btns-wrapper {
    display: flex;
    gap: .3rem;
    padding: .5rem;
    margin: auto 0 0 0;
}

.card-btns-wrapper>a {
    display: flex;
    flex: 1 1 auto;
}

.card-btn {
    display: flex;
    flex: 1 1 auto;
    font-size: .7rem;
    gap: .3rem;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    height: 36px;
    border-radius: .5rem;
    outline: none;
    border: none;
    color: #1b1b1b;
}

.addToCart-btn {
    color: #F9F9F9;
    background: #46381D;
    transition: all .1s ease-in-out;
}

.added-to-cart {
    background: #ff6f5c;
    transition: all .1s ease-in-out;
}

.buyNow-btn {
    background: #FFDF01;
}

.card-btn img {
    height: 20px;
}

.product-card.out-of-stock>.card-pics>span {
    background-color: #ff6f5c;
    color: #F9F9F9;
}

.view-all-btn {
    margin: 2rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-all-btn>a {
    padding: .5rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #46381D;
    background: #FFDF01;
    border-radius: .5rem;
}

.card-pics>span::after {
    content: ' THB';
}

.product-card.out-of-stock .card-pics>span::after {
    content: '';
}

.banner-sec {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item,
.carousel-inner {
    border-radius: 2rem;
}

#bannerCarousel {
    width: 100%;
    max-width: 1440px;
    max-height: 415px;
}


@media (min-width: 576px) {}

@media (min-width: 768px) {}

@media (min-width: 992px) {
    /* .banners>img {
        height: unset;
    } */
}

@media (min-width: 1200px) {
    .product-card {
        width: 400px;
        height: 560px;
    }

    .card-pics {
        height: 400px;
    }
}

@media (min-width: 1400px) {}

@media (min-width: 1600px) {}

@media (min-width: 1920px) {
    .banners {
        justify-content: space-evenly;
    }

    .all-products>.all-cards-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fill, 400px);
        justify-content: space-between;
        row-gap: 3rem;
    }

    /* .main {
        padding: 3rem 2rem 1rem 2rem;
    } */
}