﻿@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

*,
*:before,
*:after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    font: inherit;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
}

input,
select,
textarea {
    background-color: transparent;
    outline: none;
}

button {
    cursor: pointer;
    background-color: transparent;
    outline: none;
    border: 0;
}
em {
    font-style: italic;
}
strong {
    font-weight: bold;
}
body {
    min-height: 100vh;
    font-weight: 400;
    font-size: 16px;
    top: 0px !important;
    line-height: 1;
    font-family: "Times New Roman";
    background: url(./img/bg.svg);
}

.container {
    max-width: 1440px;
    margin: 60px auto;
    padding: 0 25px;
}

.main-title {
    padding-top: 23px;
    display: flex;
    justify-content: space-between;
}

    .main-title h2 {
        font-size: 32px;
        font-weight: 500;
    }

    .main-title span {
        font-size: 20px;
        font-weight: 500;
        text-align: center;
    }

.product-list {
    margin-top: 15px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 25px;
}
.product-listdt {
    margin-top: 15px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 25px;
}

.product-item {
    width: 300px;
    height: 100%;
    padding: 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: white;
}

    .product-item .product-item-img {
        width: 100%;
   height: 250px;
        margin: 0 auto;
    }

        .product-item .product-item-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    .product-item .product-item-imgdt {
        width: 100%;
   /*     height: 200px;*/
        margin: 0 auto;
    }

        .product-item .product-item-imgdt img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    .product-item .product-item-body {
        margin-top: 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .product-item .product-item-body span {
            color: #888;
            font-size: 16px;
            font-weight: 500;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .product-item .product-item-body h3 {
            font-size: 20px;
            font-weight: 500;
        }

    .product-item .product-item-footer {
        margin-top: 24px;
        display: flex;
        justify-content: space-between;
    }

        .product-item .product-item-footer .product-item-price {
            color: #dc3d1d;
            font-size: 20px;
            font-weight: 500;
        }

.separator {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: black;
    margin: 10px 0;
    margin-top: 6px;
}

#slogan {
    font-family: 'Dancing Script', cursive;
    font-size: 12px;
    font-weight: bold;
    color: #b22222; /* Màu đỏ đậm */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    text-align: center;
}

@keyframes wave-text {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(2deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

#slogan {
    /*    display: inline-block;
    animation: wave-text 2s infinite ease-in-out;*/
}

/* animation icon contact */

.icon-contact {
    position: fixed;
    right: 35px;
    bottom: 53px;
    width: 100px;
    height: 100px;
    animation: shake 2s infinite;
    display: flex;
    flex-direction: column; /* Sắp xếp theo chiều dọc: icon trên, sdt dưới */
    align-items: center; /* Căn giữa theo chiều ngang */
}
.phonemobile {
    border-radius: 16px;
    background-color: #432F25;
    padding: 5px 10px;
    margin-top: 5px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}
/* Thêm hiệu ứng rung lắc */
@keyframes shake {
    0%, 100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-3px);
    }

    50% {
        transform: translateY(3px);
    }

    75% {
        transform: translateY(-3px);
    }
}

/* Tạo hiệu ứng lan tỏa */
.icon-contact::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: #1976d2;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: pulse 1.5s infinite;
    z-index: -1; /* Đảm bảo hiệu ứng lan tỏa nằm dưới hình ảnh */
}

/* chatbot */
.chat-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 350px;
    height: 450px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.chat-header {
    background: #3469db;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    color: white;
}

.chat-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-avatar {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
}

    .support-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.support-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .support-details h3 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .support-details p {
        color: #d9d9d9;
    }

.chat-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-button {
    cursor: pointer;
    padding: 5px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.message-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 17px;
    margin-bottom: 15px;
    flex-wrap: wrap; 
    word-break: break-word; 
}

    .message-wrapper.sent {
        justify-content: flex-end;
    }

.message.received {
    background: #f3f4f5;
    padding: 15px;
    border-radius: 15px;
    margin-right: auto;
}

.message.sent {
    background: #f3f4f5;
    padding: 15px;
    border-radius: 15px;
    margin-left: auto;
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
    flex-shrink: 0;
}

    .message-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
}

    .chat-input input {
        flex: 1;
        padding: 8px;
        border: none;
        outline: none;
        font-size: 17px;
        margin-right: 10px;
    }

        .chat-input input::placeholder {
            color: #1976d2;
            font-size: 14px;
        }

.send-button {
    cursor: pointer;
}
/* chatbot-mobile */
    @media screen and (max-width: 768px) {
        .chat-container {
            width: 100%;
            height: 100%;
            bottom: 0;
            right: 0;
            border-radius: 0;
        }

        .chat-header {
            border-radius: 0;
        }

        .breadcrumb a {
            flex-shrink: 0;
            font-size: 10px;
        }
    }

    @keyframes pulse {
        0% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 0.6;
        }

        50% {
            transform: translate(-50%, -50%) scale(1.5);
            opacity: 0.3;
        }

        100% {
            transform: translate(-50%, -50%) scale(2);
            opacity: 0;
        }
    }
