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

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

.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 {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
}

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

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

.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-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;
}

/* start 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;
}

/* end sub-menu */

/* start product 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;
}

/* end product detail */

/* Show Alert */

[show-alert] {
  position: fixed !important;
  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;
}

/* End Show Alert */


/* start chat */
/* Đặt kích thước và viền cho khu vực chat */
.chat {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background-color: #f8f8f8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 650px;
  overflow: hidden;
}

/* Định dạng phần nội dung chat */
.inner-body {
  flex-grow: 1;
  overflow-y: auto;
}

/* Định dạng cho các tin nhắn */
.inner-incoming,
.inner-outgoing {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Tin nhắn outgoing căn phải */
.inner-outgoing {
  align-items: flex-end;
}

/* Định dạng tên người gửi */
.inner-incoming .inner-name,
.inner-outgoing .inner-name {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 14px;
  color: #555;
  /* Màu chữ cho tên người gửi */
}

/* Định dạng nội dung tin nhắn */
.inner-incoming .inner-content,
.inner-outgoing .inner-content {
  display: block;
  padding: 10px;
  border-radius: 15px;
  max-width: 80%;
  /* Đảm bảo tin nhắn không chiếm hết chiều rộng */
  word-wrap: break-word;
}

/* Tin nhắn đến (nền xám) */
.inner-incoming .inner-content {
  background-color: #ebebeb;
  color: black;
}

/* Tin nhắn đi (nền hồng) */
.inner-outgoing .inner-content {
  background-color: #ff99cc;
  color: white;
  text-align: left;
  /* Canh trái cho nội dung tin nhắn outgoing */
}

/* Định dạng cho phần input */
.inner-foot {
  display: flex;
  padding: 10px 0;
  border-top: 1px solid #ddd;
}

.inner-foot form {
  display: flex;
  width: 100%;
}

.inner-foot input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  border-radius: 25px;
  border: 1px solid #ddd;
  outline: none;
  max-height: 45px;
}

.inner-foot button {
  background-color: #ff99cc;
  border: none;
  padding: 0 15px;
  margin-left: 5px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  max-height: 45px;
}

.inner-foot button i {
  font-size: 20px;
}

.button-icon {
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 0 5px;
  max-height: 45px;
}

.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;
}

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

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

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

}

.chat .inner-preview-images .image-preview-item {
  width: 90px;
  background-size: contain;
}

/* end chat */

/* -start emoji icon */
.tooltip {
  visibility: hidden;
}

.tooltip.shown {
  visibility: visible;
  opacity: 1;
}

/* -end emoji icon */

/* start 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;
  }
}

/* end box typing */

/*  */