@media (max-width: 640px) {
    .text-detail {
        text-align: justify;
    }

    .nav-pills {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .nav-item {
        margin-bottom: 1rem;
        /* Add some spacing between tabs */
    }

    .text-foot {
        font-size: 12px;
        top: 0 !important;
        left: 0 !important;
        position: relative !important;
        margin-top: 20px;
        padding: 0 10px 0 10px !important;
    }

    .text-foot2 {
        margin-top: 2rem !important;
    }

    .img-foot {
        width: 75% !important;
        height: 100% !important;
        margin-right: 4.6rem;
    }

    .img-foot2 {
        width: 100% !important;
    }

    .text-foot3 {
        margin-top: 0 !important;
        justify-content: end !important;
        align-items: end !important;
    }

    .img-foot3 {
        width: 45% !important;
    }

}

.text-foot3 {
    margin-top: 250px;
    justify-content: center;
    align-items: center;
}

.img-foot3 {
    width: 25%;
}

.img-foot2 {
    width: 25%;
}

.img-foot {
    width: 50%;
}

.text-foot2 {
    margin-top: 10rem;
}

.text-foot {
    top: 10rem;
    left: 300px;
    position: absolute;

}


.carousel-inner .carousel-item {
    justify-content: center;
    align-items: center;
}

.carousel-item .text-container.active {
    background-color: #a9576a;
    color: white;
    border-radius: 50px;
    cursor: pointer;
}

.carousel-inner .carousel-item .text-container:hover {
    background-color: #a9576a;
    color: white;
    border-radius: 50px;
    cursor: pointer;
}

.text-container {
    width: 120px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 10px;
}

@media (max-width: 640px) {
    .carousel-inner .carousel-item>div {
        display: none;
    }

    .carousel-inner .carousel-item>div:nth-child(-n+3) {
        display: block;
    }

    .images1 {
        height: 320px;
        width: 320px;
    }

    .carousel-images {
        height: 200px;
    }
}

.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-start,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
    display: flex;
}

@media (min-width: 640px) {

    .carousel-inner .carousel-item-right.active,
    .carousel-inner .carousel-item-next,
    .carousel-item-next:not(.carousel-item-start) {
        transform: translateX(25%) !important;
    }

    .carousel-inner .carousel-item-left.active,
    .carousel-item-prev:not(.carousel-item-end),
    .active.carousel-item-start,
    .carousel-item-prev:not(.carousel-item-end) {
        transform: translateX(-25%) !important;
    }

    .carousel-item-next.carousel-item-start,
    .active.carousel-item-end {
        transform: translateX(0) !important;
    }

    .carousel-inner .carousel-item-prev,
    .carousel-item-prev:not(.carousel-item-end) {
        transform: translateX(-25%) !important;
    }

    #myTabContent li {
        text-align: justify;
        text-justify: inter-word;
    }
}



@media (max-width: 640px) {

    .col-md-6.text-center {
        padding-top: 5vh !important;
        text-align: left !important;
    }

    .product .d-flex {
        display: block !important;
        /* Change from flex to block for mobile screens */
    }

    .custom-button-brown {
        margin-bottom: 10px;
    }

    .col-md-6.text-center {
        padding-top: 5vh !important;
        text-align: left !important;
    }
}