/* Header */
.header{
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.header .inner-logo img{
    max-height: 50px;
    max-width: 100%;
}

.header .inner-menu > ul{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.header .inner-menu > ul > li{
    margin-left: 20px;
}


/* Footer */
.footer{
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
}

/* Product */

/* box-head */
.box-head{
    margin-bottom: 30px;
}

.box-head .inner-title{
    margin-bottom: 0;
    font-size: 28px;
    font-weight: 600;
    color: palevioletred;
}

/* product-item */
.product-item{
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.product-item .inner-image{
    width: 100%;
    aspect-ratio: 4/3;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.product-item .inner-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item .inner-featured{
    position: absolute;
    top: 0;
    right: 0;
    background: green;
    color: white;
    padding: 3px 6px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
}

.product-item .inner-content{
    padding: 15px;
}

.product-item .inner-content .inner-title{
    font-size: 20px;
    font-weight: 600;
}

.product-item .inner-content .inner-price-new{
    font-size: 18px;
    font-weight: 600;
    color: green;
}

.product-item .inner-content .inner-price-old{
    font-size: 18px;
    font-weight: 600;
    color: red;
    text-decoration: line-through;
}

.product-item .inner-content .inner-discount{
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: red;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
}

/* Show alert */
[show-alert] {
    position: fixed;
    top: 70px;
    right: 15px;
    z-index: 9999;
}
    
[show-alert].alert-hidden {
    animation-name: alert-hidden;
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

@keyframes alert-hidden {
    from {
        right: 15px;
    }
    to {
        right: -100%;
        display: none;
    }
}

[show-alert] [close-alert]{
    background: #ffffffc4;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: 600;
    border-radius: 50%;
    cursor: pointer;
}

/* Sub Menu */
.sub-menu{
    position: relative;
    z-index: 999;
}

.sub-menu ul{
    position: absolute;
    right: 0;
    top: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #eae9e9;
    min-width: 180px;
    display: none;
}

.sub-menu ul li{
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.sub-menu:hover > ul{
   display: block;
}

.sub-menu ul li{
    position: relative;
}

.sub-menu ul li ul{
    right: 100%;
    top: 0;
}

.sub-menu ul li:hover > ul{
    display: block;
}

a{
    text-decoration: none;
}

/* /products/detail */
.product-detail .inner-thumb img{
    width: 100%;
    height: auto;
}

.product-detail .inner-title{
    font-size: 32px;
    margin-bottom: 15px;
}

.product-detail .inner-category{
    margin-bottom: 10px;
}

.product-detail .inner-price-new{
    color: green;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 10px;
}

.product-detail .inner-price-old{
    color: red;
    font-weight: 600;
    font-size: 20px;
    text-decoration: line-through;
    margin-bottom: 10px;
}


.product-detail .inner-percent{
    margin-bottom: 10px;
}

.product-detail .inner-percent span{
    color: #fff;
    background: red;
    font-weight: 600;
    display: inline-block;
    padding: 3px 6px;
    border-radius: 8px;
}

.product-detail .inner-stock{
    margin-bottom: 10px;
}

.product-detail .inner-stock span{
    color: #fff;
    background: green;
    font-weight: 600;
    display: inline-block;
    padding: 3px 6px;
    border-radius: 8px;
}

/* Order Quantity */
.order-quantity{
    display: flex;
}

.btn-light{
border: 1px solid #ddd;
}

.order-value{
text-align: center;
width: 45px;
padding-right: 0px;
}

/* Chat */
.chat {
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
}

.chat .inner-head {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.chat .inner-head .inner-avatar {
    background: #FE5DA3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    font-weight: 700;
    text-align: center;
    line-height: 32px;
    color: #fff;
}

.chat .inner-head .inner-name {
    display: inline-block;
    font-weight: 600;
    margin-left: 5px;
}

.chat .inner-body {
    padding: 10px;
    max-height: 450px;
    overflow-y: auto;
}

.chat .inner-body .inner-name {
    font-weight: 600;
}

.chat .inner-incoming,
.chat .inner-outgoing {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-direction: column;
}

.chat .inner-incoming .inner-name {
    color: #808080;
    font-size: 12px;
    margin-bottom: 3px;
    font-weight: bold;
}

.chat .inner-incoming .inner-content {
    background: #F1F1F1;
    margin-bottom: 10px;
    border-radius: 15px;
    max-width: 220px;
    line-height: 1.4;
    padding: 5px 10px;
    word-wrap: break-word;
}

/* .chat .inner-outgoing {
    flex-direction: row-reverse;
    align-items: flex-end;
} */

.chat .inner-outgoing .inner-content {
    background: #FE5DA3;
    padding: 5px 10px;
    border-radius: 15px;
    max-width: 60%;
    margin-left: auto;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat .inner-foot {
    border-top: 1px solid #ddd;
    padding: 10px;
}

.chat .inner-form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.chat .inner-form input {
    flex: 1;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 0 15px;
    outline: none;
    width: 100%;
}

.chat .inner-form button {
    border-radius: 15px;
    border: 1px solid #FE5DA3;
    background: #FE5DA3;
    color: #fff;
    height: 32px;
    padding: 0 10px;
    cursor: pointer;
}

.chat .inner-body .inner-images img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #efefef;
    padding: 10px;
    margin: 0 5px 5px 0;
    border-radius: 5px;
}

.chat .inner-body .inner-outgoing .inner-images {
    margin-left: auto;
    text-align: right;
}

.chat .inner-body .inner-outgoing .inner-images img {
    margin: 0 0 5px 5px;
}

.chat .inner-preview-images {
    position: relative;
    overflow: hidden; /* Ẩn phần thừa */
}

.chat .inner-preview-images .label-container {
    display: none;
}

.chat .inner-preview-images .input-container {
    display: none;
}

.chat .inner-preview-images .inner-preview {
    height: auto;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.chat .inner-preview-images .custom-file-container__image-multi-preview {
    width: 90px;
    background-size: contain;
}

.options-button {
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.options-button:focus {
    outline: none;
}

.options-menu {
    display: none;
    top: 30px;
    right: 10px;
    border: 1px solid #fff;
    border-radius: 5px;
    cursor: pointer;
}

.options-menu button {
    padding: 10px;
    cursor: pointer;
    border: none;
}

/* Emoji Picker */
.button-icon{
    cursor: pointer;
}
.tooltip {
    visibility: hidden;
}
.tooltip.shown {
    visibility: visible;
    opacity: 1;
}

/* box-typing */
.box-typing{
    position: relative;
}

.box-typing .inner-dots{
    position: relative;
    height: 20px;
    width: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #efefef;
    border-radius: 45px;
    margin-top: 2px;
}

.box-typing .inner-dots span{
    animation: blink 1.5s infinite;
    height: 5px;
    width: 5px;
    background: #252525;
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
}

.box-typing .inner-dots span:nth-child(2){
    animation-delay: 0.2s;
}

.box-typing .inner-dots span:nth-child(3){
    animation-delay: 0.4s;
}

@keyframes blink{
    0%{
        opacity: 0.1;
    }
    20%{
        opacity: 1;
    }
    100%{
        opacity: 0.1;
    }
}

/* Box User */
.box-user {
    display: flex;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.box-user .inner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #f2f2f2;
    margin-right: 10px;
}

.box-user .inner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-user .inner-info {
    flex: 1;
}

.box-user .inner-info .inner-name{
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

.box-user [btn-cancel-friend] {
    display: none;
}

.box-user.add [btn-add-friend] {
    display: none;
}

.box-user.add [btn-cancel-friend] {
    display: inline-block;
}

.box-user [btn-deleted-friend] {
    display: none;
}

.box-user.refuse [btn-accept-friend] {
    display: none;
}

.box-user.refuse [btn-refuse-friend] {
    display: none;
}

.box-user.refuse [btn-deleted-friend] {
    display: inline-block;
}

.box-user [btn-accepted-friend] {
    display: none;
}

.box-user.accepted [btn-accept-friend] {
    display: none;
}

.box-user.accepted [btn-refuse-friend] {
    display: none;
}

.box-user.accepted [btn-accepted-friend] {
    display: inline-block;
}

.box-user .inner-status {
    font-size: 12px;
    color: #00d800;
    opacity: 0;
}

.box-user .inner-status[status="online"] {
    opacity: 1;
}

/* box-room */
.box-room {
    display: flex;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.box-room .inner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #f2f2f2;
    margin-right: 10px;
}

.box-room .inner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-room .inner-info {
    flex: 1;
}

.box-room .inner-info .inner-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

