:root{
    --color-default: #e4332d;
}
body{
    font-size: 17px;
    font-family: Inter, sans-serif;
}

.mt10{
    margin-top: 10px;
}

.mt20{
    margin-top: 20px;
}

.mt30{
    margin-top: 30px;
}

.mt40{
    margin-top: 40px;
}

.mt50{
    margin-top: 50px;
}

.mt60{
    margin-top: 60px;
}

.mt70{
    margin-top: 70px;
}

.mt80{
    margin-top: 80px;
}

.mt90{
    margin-top: 90px;
}

.mt100{
    margin-top: 100px;
}

.font-10{
    font-size: 10px !important;
}

.font-12{
    font-size: 12px !important;
}

.font-14{
    font-size: 14px !important;
}

.font-16{
    font-size: 16px !important;
}

.font-18{
    font-size: 18px !important;
}

.font-20{
    font-size: 20px !important;
}

.font-22{
    font-size: 22px !important;
}

.font-24{
    font-size: 24px !important;
}

.font-26{
    font-size: 26px !important;
}

.font-28{
    font-size: 28px !important;
}

.font-30{
    font-size: 30px !important;
}

.text-center{
    text-align: center;
}

.text-left{
    text-align: left;
}

.text-right{
    text-align: right;
}

.text-justify{
    text-align: justify;
}

.popup, .popup-product{
    position: fixed;
    background: rgba(0,0,0,0.40);
    left: 0px;
    right: 0px;
    bottom: 0px;
    top: 0px;
    z-index: 10;
    display: none;
    font-family: Inter, sans-serif;
}

.popup-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0.5rem;
    width: 70%;
    height: 80%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    height: 30px;
    border-bottom: 1px solid #d7d7d7;
}

.popup-header .title, .popup-header .title_list{
    font-size: 24px;
    color: var(--color-default);
}

.close-popup{
    cursor: pointer;
}

.popup-body{
    background: transparent;
    display: flex;
    /*flex-direction: column;*/
    height: calc(100% - 90px);
}

.popup-body .content{
    width: 100%;
    height: 100%;
    padding: 0 20px;
    margin: 20px 0;
    color: #000000;
    line-height: 1.5;
}

.popup-body .content_info{
    overflow-x: hidden;
    overflow-y: auto;
}

.content_info img{
    max-width: 100%;
    max-height: max-content;
}

.content_info p:first-child{
    margin-top: 0;
}

.content_info p:last-child{
    margin-bottom: 0;
}

.content_video/*, .content_image*/{
    overflow: hidden !important;
}

.content_image{
    overflow: hidden !important;
}

.popup-body div.active{
    display: block;
}

.popup-footer{
    height: 60px;
    box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.btn_action{
    width: 40px;
    height: 40px;
    cursor: pointer;
}

#btn_video{
    background-image: url("../../external/images/video.svg");
}

#btn_image{
    background-image: url("../../external/images/image.svg");
}

#btn_info{
    background-image: url("../../external/images/info.svg");
}

#btn_video.active{
    background-image: url("../../external/images/video_active.svg");
}

#btn_image.active{
    background-image: url("../../external/images/image_active.svg");
}

#btn_info.active{
    background-image: url("../../external/images/info_active.svg");
}

.btn_action:hover{
    scale: 1.2;
}

.hidden{
    display: none !important;
}

/*.slick-prev{*/
/*    left: 0 !important;*/
/*    z-index: 1;*/
/*}*/

/*.slick-next{*/
/*    right: 0;*/
/*}*/

.slick-prev:before{
    content: url("../../external/images/prev.svg");
}

.slick-next:before{
    content: url("../../external/images/next.svg");
    opacity: 1;
}

.slick-slider{
    margin-bottom: 0;
}

.g_slider_img {
    width:100%;
    height: 100%;
    margin:0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.g_slider_img .slider-for, .g_slider_img .slick-list, .g_slider_img .slick-track{
    height: 100%;
}

.g_slider_img .slider-nav .slick-track{
    background: #8585856b;
    padding: 10px;}

.g_slider_img .slider-for{
    height: 80%;
    background: #9e9e9e2e;
}

.g_slider_img .slider-for img{
    height: 100%;
    object-fit: contain;
}

.g_slider_img .slider-nav{
    height: calc(100% - (80% + 20px));
    width: 90%;
    margin-left: 5%;
}

.g_slider_img .slider-nav img{
    /*height: 80px;*/
    object-fit: contain;
    background: #9E9E9E;
}


.info_received span{
    color: var(--color-default);
    text-transform: uppercase;
    font-weight: bold;
}

.info_received a{
    color: red !important;
    text-decoration: none;
}

.info_received{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info_received span:first-child{
    color: #000000;
    font-weight: 500;
}

.img-qrcode{
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.img-qrcode span{
    font-size: 12px;
}

/*Popup producs*/
.btn-list-product{
    position: fixed;
    top: 63px;
    left: 15px;
    background: red;    padding: 9px 13px 6px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 9;
}

.popup-product .popup-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0.5rem;
    width: 70%;
    height: 90%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.popup-product .popup-body{
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px);
}

.form-search{
    width: max-content;
    border: 1px solid #d9d9d9;
    margin: 10px auto;
}

.form-search input{
    border: 0;
    padding: 5px;
    outline: none;
}

.form-search i{
    background: var(--color-default);
    padding: 10px;
}

.content_list_product{
    height: calc(100% - 38px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 5px 20px;
}


/* card product */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.card {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-header{
    overflow: hidden;
}
.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    height: 220px;
    background: #e4e4e7;
    transition: .5s;
}
.card img:hover{
    transform: scale(1.2);
}
.card-body {
    padding: 10px;
    text-align: left;
}
.card-title {
    font-weight: bold;
    color: #222;
    display: -webkit-box;
    font-size: 16px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-text {
    color: #777;
    font-size: 13px;
}


.category-bar ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--color-default);
}

.category-bar li {
    padding: 8px 12px;
    cursor: pointer;
    color: #000000;
}

.category-bar li.active {
    background: #e0edff;
    font-weight: bold;
    color: var(--color-default);
}

.category-bar {
    margin: 10px 15px 0;
}

/* --- Mobile --- */
.menu-toggle {
    display: none;
    padding: 10px 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    cursor: pointer;
    margin-bottom: 10px;
}
/* end card product */

/*Chatbot*/
/* Icon mở chatbot */
.chat-popup-title-wrap{
    display: flex;
    flex-direction: column;
}

#chat-popup-title{
    text-transform: uppercase;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: .05px;
}

#chat-popup-subtitle{
    font-size: 14px !important;
    padding-top: 5px;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 20px;
    letter-spacing: .056px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Popup chat box */
#chat-popup {
    position: fixed;
    bottom: 55px;
    right: 20px;
    width: 350px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    font-family: Arial, Helvetica, sans-serif;}

#chat-popup:hover {
    box-shadow: 0 5px 10px 3px rgba(0, 0, 0, .2), 0 6px 20px 0 rgba(0, 0, 0, .19) !important;
}

#chat-popup.hidden {
    display: none;
}

/* Chat header */
.chat-header {
    padding: 10px;
    background-color: #ff7500;
    color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

#chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    max-height: 300px;
    min-height: 300px;
    border-bottom: 1px solid #ddd;
    overflow-x: hidden;
}

/* Input container */
.input-container {
    display: flex;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

#user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    color: #000000;
}

#send-btn {
    padding: 10px 15px;
    margin-left: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#send-btn:hover {
    background-color: #0056b3;
}

#send-btn i {
    font-size: 18px;
}

/* Tin nhắn */
.message {
    margin-bottom: 10px;
    max-width: 80%;
}

.message.user {
    margin-left: auto;
    text-align: right;
}

.message.bot {
    margin-right: auto;
    text-align: left;
}

.message p {
    display: inline-block;
    padding: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.message.user p {
    background-color: #007bff;
    color: #fff;
    border-radius: 10px 10px 0 10px;
    text-align: left !important;
}

.message.bot p {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #e6e8ec;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .1);
    border-radius: 10px 10px 10px 0;
}

/* Loading dots */
#loading-dots {
    display: inline-flex;
    gap: 3px;
    font-size: 18px;
    color: #007bff;
}

#loading-dots span {
    opacity: 1;
    animation: blink 1.4s infinite;
}

#loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

#loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.message.bot p * {
    color: #000 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0;
    padding: 0;
    text-decoration: none !important;
    box-shadow: none;
    border: none;
}

.message.bot a{
    color: #0056b3 !important;
}

.message li{
    list-style: none;
}

.btn-chatbot {
    position: absolute;
    right: 10px;
    bottom: 70px;
    z-index: 4;
    pointer-events: inherit;
    cursor: pointer;
    display: none;
}
/*end chatbot*/
