.item-detail-sec {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
    gap: 2rem;
    /* margin: 6rem 0 0 0; */
    color: #F9f9f9;
}

#productPreview {
    max-width: 550px;
    max-height: 550px;
}

.item-detail {
    width: 100%;
    max-width: 700px;
}

.item-txt {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-txt>span:nth-of-type(1) {
    font-size: 1.5rem;
    font-weight: 600;
    color: #F9f9f9;
}

.item-txt>span:nth-of-type(2) {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFDF01;
}

.item-txt>span:nth-of-type(3) {
    font-size: 1rem;
    height: 100%;
    flex-grow: 1;
    color: #F9f9f9;
}

.id-btns {
    display: flex;
    justify-content: start;
    align-items: start;
    width: 100%;
    gap: 1rem;
    margin: 2rem 0;
}

.item-detail .id-btns>a {
    display: flex;
    flex: 1;
    max-width: 400px;
}

.item-detail .card-btn {
    height: 50px;
    width: 100%;
    max-width: 400px;
    font-size: .9rem;
    gap: .8rem;
    white-space: nowrap;
}

.item-detail .card-btn>img {
    height: 50%;
}

.product-preview-wrapper {
    width: 100%;
    max-width: 550px;
}

.carousel-indicators {
    position: relative;
}

.carousel-indicators [data-bs-target] {
    width: 60px;
    height: 60px;
}

#thumbnail-carousel {
    display: flex;
    width: 100%;
    overflow: auto;
    align-items: center;
    justify-content: start;
    gap: 1rem;
    margin: .5rem 0 0 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

#thumbnail-carousel::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 100px;
    height: 100px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.thumbnail.active {
    opacity: 1;
}

#main-image-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#main-image {
    max-width: 500px;
}

.more-item-detail {
    margin: 2rem auto;
    max-width: 1430px;
}

.nav-link {
    font-size: 1.3rem;
}

.nav-link:hover{
    color: #ffcc00;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background: #FFDF01;
    color: #222222;
}

.nav-link {
    color: #F9f9f9;
}

.moredetail-tab,
.reviews-wrapper,
.review-form,
.non-user-sec {
    background-color: #F9f9f9;
    border-radius: 1rem;
    padding: 1rem;
}

.moredetail-tab {
    flex-direction: column;
    width: 100%;

}

.moredetail-tab>span {
    padding: .5rem 1rem;
}

.moredetail-tab>span>span::after {
    content: ' : ';
}

.moredetail-tab>span:nth-of-type(odd) {
    background: #e1e1e1;
}

.tab-content>.active.moredetail-tab {
    display: flex;

}

.reviews-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card {
    display: flex;
    align-items: start;
    gap: .5rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 1rem;
    border-radius: 1rem;
}

.review-card:nth-of-type(odd) {
    background: #fffae4;
}

.user-detail>span:first-of-type {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-detail>span:last-of-type {
    font-size: .6rem;
    color: #c6c6c6;
}


.review-card>img {
    padding: .1rem;
    background: #ffcc00;
    border-radius: 50%;
}

.user-detail {
    display: flex;
    align-items: center;
    gap: .2rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-txt {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.star-rating {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.star {
    font-size: 24px;
    color: #ccc;
    margin-right: 1px;
    cursor: pointer;
}

.star.filled {
    color: #ffcc00;
}

.user-detail>.star-rating>.star {
    cursor: default;
    pointer-events: none;
}

.review-form {
    margin: 1rem 0 0 0;
}

.star-rate-wrapper {
    display: flex;
    flex-direction: column;
}

.star-rate-wrapper .star {
    font-size: 2rem;
}

.review-form>form>span:first-of-type {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
}

.no-review-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100px;
    font-size: 1.5rem;
}

.non-user-sec{
    margin: 1rem 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.non-user-btns button{
    padding: .5rem 1rem;
    background: #ffcc00;
    border-radius: .5rem;
    outline: none;
    border: none;
}

.item-price::after{
    content: ' บาท';
}
.item-txt span {
    color : #ffffff;
}
.carousel-item>img{
    max-width: 100%;
    max-height: 700px;
    object-fit: cover;
}