﻿a {
    color: inherit;
    text-decoration: none;
}

    a:hover, a:focus, a:active {
        color: inherit;
        text-decoration: none;
        outline: none;
    }

.text-gray {
    color: #ececec;
}

.text-green {
    color: forestgreen !important;
}

.text-red {
    color: red !important;
}

.text-price {
    color: orangered;
    font-weight: 400;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.mini-scroll {
    overflow-y: auto;
}

    .mini-scroll::-webkit-scrollbar {
        width: 8px;
    }

    .mini-scroll::-webkit-scrollbar-track {
        background: #fff;
        border-bottom-right-radius: 10px;
        border-top-right-radius: 10px;
    }

    .mini-scroll::-webkit-scrollbar-thumb {
        background: #f1f1f1;
        border-radius: 5px;
    }

        .mini-scroll::-webkit-scrollbar-thumb:hover {
            background: #e9ecef;
        }

.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Giới hạn hiển thị 2 dòng */
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5; /* Độ cao dòng */
    max-height: calc(1.5em * 2); /* 2 dòng với chiều cao dòng là 1.5em */
}

.text-ellipsis-1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5; /* Độ cao dòng */
}

/*custom-scrollbar*/
.custom-scrollbar::-webkit-scrollbar {
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255,255,255,.34);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.34);
    border-radius: 10px;
    cursor: pointer;
}

    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,.44);
    }

.monospace {
    font-family: monospace;
}

.line-h-1 {
    line-height: 1;
}

.line-h-1-2 {
    line-height: 1.2;
}

/*content*/
.content-body {
    line-height: 2;
}

    .content-body img {
        max-width: 100% !important;
    }

.content-intro {
    line-height: 25px;
}

.content-detail img {
    max-width: 100% !important;
}

.relate-content {
    border: 1px solid #e5e5e5;
}

.control-icon {
    position: relative;
}

    .control-icon .icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translate(0, -50%);
        opacity: .5;
        font-size: 16px;
        color: rgb(0 0 0);
    }

    .control-icon input {
        padding-left: 30px;
    }

.border-trans {
    border-color: transparent;
}

.ui-autocomplete {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .content {
        padding-left: .5rem;
        padding-right: .5rem;
    }
}
