a {
  text-decoration: none !important;
}

.box-head {
  background-color: #ffffff;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.box-head .inner-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

h2.section-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 16px;
  color: darkorchid;
}

.home-banner img {
  object-fit: cover;
  width: 100%;
}

.product-card {
  transition: all 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card .price {
  font-size: 18px;
}


/* ===== RESET NHẸ ===== */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card.product-card a {
  text-decoration: none;
  color: linear-gradient(90deg, #fd0d85, #6610f2);;
}


/* ============================
   BOX HEAD
============================ */
.box-head {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: linear-gradient(90deg, #0d6efd, #6610f2);
  border-radius: 10px;
}

.box-head .inner-title {
  margin: 0;
  color: #3f2222;
  font-size: 26px;
  font-weight: 700;
}

/* ============================
   HEADER CLIENT
============================ */
.header {
  background: linear-gradient(135deg, #9adfff, #fad0c4);
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .inner-logo img {
  height: 48px;
  object-fit: contain;
}

.header .inner-menu > ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}

.header .inner-menu ul li a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #0f2741;

  padding: 6px 10px;
  border-radius: 6px;

  transition: all 0.25s ease;
}

.header .inner-menu ul li a:hover {
  background-color: #1e4279;
  color: #ffffff;
}

/* ============================
   FOOTER
============================ */
.footer {
  margin-top: 50px;
  padding: 18px 0;

  text-align: center;

  background: linear-gradient(135deg, #042a3b, #132e03);
  color: #ffffff;

  font-size: 14px;
}




/* ===== PRODUCT ITEM ===== */
.product-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ===== IMAGE ===== */
.product-item .inner-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative
}

.product-item .inner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card.product-card .inner-featured {
  position: absolute;
  top: 0;
  right: 0;
  background-color: green;
  color: wheat;
  padding: 3px 5px;
  font-weight: 650;
  font-size: 14px;
  border-radius: 8px;
}

/* ===== CONTENT ===== */
.product-item .inner-content {
  padding: 15px;
  text-align: center;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ===== PRICE ===== */
.inner-price {
  margin-bottom: 10px;
}

.inner-price-new {
  color: #dc3545;
  font-size: 18px;
  font-weight: 600;
  margin-right: 8px;
}

.inner-price-old {
  color: #6c757d;
  text-decoration: line-through;
  font-size: 14px;
}

/* ===== DISCOUNT ===== */
.inner-discount {
  display: inline-block;
  background-color: #198754;
  color: #fff;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 4px;
}


/* ===========================
   CLIENT PRODUCT DETAIL
=========================== */

.product-detail-image img {
  width: 100%;
  object-fit: cover;
}

.product-detail-info {
  padding-left: 10px;
}

.product-detail-info .price span:first-child {
  font-size: 28px;
}

.product-actions a {
  min-width: 160px;
}


/* 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;
  position: relative;
}

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

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

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



/* =========================
   PRODUCT DETAIL
========================= */

.product-detail img {
  width: 100%;
  border-radius: 8px;
}

.product-detail .inner-thumb {
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

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

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

.product-detail .inner-category a {
  color: #0d6efd;
  font-weight: 500;
}

.product-detail .inner-price-new {
  font-size: 26px;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 5px;
}

.product-detail .inner-price-old {
  font-size: 18px;
  color: #6c757d;
  text-decoration: line-through;
  margin-bottom: 10px;
}

.product-detail .inner-percent {
  background: #198754;
  color: #fff;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

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

.product-detail form input {
  max-width: 120px;
}

.product-detail .btn-success {
  font-weight: 600;
  padding: 10px;
}

/* description */

.inner-desc {
  line-height: 1.7;
  font-size: 15px;
}

/* show alert  */
[show-alert] {
  position: fixed !important;
  top: 70px;
  right: 20px;
  left: auto !important;
  z-index: 99999;
}


[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-color: #ddd;
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-weight: 600;
  border-radius: 50%;
  cursor: pointer;
}


/* CHAT */
.chat {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  height: 500px;
}

/* body chat */
.chat .inner-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f5f7fb;
  max-height: 450px;
}

/* tin nhắn */
.chat .inner-incoming,
.chat .inner-outgoing {
  margin-bottom: 12px;
  max-width: 70%;
}

/* tên người gửi */
.chat .inner-name {
  font-size: 13px ;
  color: rgb(196, 23, 52);
  margin-bottom: 3px;
  font-weight: 700;
}

/* bong bóng chat */
.chat .inner-content {
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 17px;
  line-height: 1.5;
  display: inline-block;
  background-color: #4fcdff;
}

/* tin nhắn nhận */
.chat .inner-incoming {
  text-align: left;
}

.chat .inner-incoming .inner-content {
  background: #fad0c4;
  border: 1px solid #eee;
}

/* tin nhắn gửi */
.chat .inner-outgoing {
  text-align: right;
  margin-left: auto;
}

.chat .inner-outgoing .inner-content {
  background: #4f7cff;
  color: white;
}

/* footer chat */
.chat .inner-foot {
  border-top: 1px solid #eee;
  background: #fff;
  padding: 10px;
}

/* form chat */
.chat .inner-form {
  display: flex;
  gap: 10px;
}

/* input */
.chat .inner-form input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 10px 15px;
  outline: none;
  font-size: 14px;
}

/* button */
.chat .inner-form button {
  width: 45px;
  border: none;
  border-radius: 50%;
  background: #4f7cff;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.chat .inner-form button:hover {
  background: #355fe5;
}


/* emoji Icon */
.tooltip {
  visibility: hidden;
  
}

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

.inner-foot .icons{
  font-size: 26px;
  color: #0d6efd;
  right: 18px;
}

/* 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-color: #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;
  }
}

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


 /* box-users  */

.box-user {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 16px;
  margin-bottom: 12px;

  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #925a4b;

  transition: all 0.25s ease;
}

.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: #19871e;
  opacity: 0;
}

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

.box-user:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* ===== LEFT SIDE ===== */
.box-user .inner-avatar {
  margin-right: 12px;
}

.box-user .inner-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

/* ===== INFO ===== */
.box-user .inner-info {
  flex: 1;
}

.box-user .inner-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* ===== BUTTONS ===== */
.box-user .inner-buttons {
  margin-top: 6px;
}

.box-user .inner-buttons .btn {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
}

/* primary */
.box-user .btn-primary {
  background: #0d6efd;
  border: none;
}

.box-user .btn-primary:hover {
  background: #0b5ed7;
}

/* secondary */
.box-user .btn-secondary {
  background: #e4e6eb;
  color: #333;
  border: none;
}

.box-user .btn-secondary:hover {
  background: #d8dadf;
}

/* ===== WRAP LAYOUT ===== */
.box-user {
  gap: 12px;
}

/* box room  */
/* ===== ROOM LIST ===== */
.box-room {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 16px;
  margin-bottom: 14px;

  background: #dee5e9;
  border-radius: 12px;
  border: 1px solid #4d575a;

  transition: all 0.25s ease;
}

.box-room:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* ===== IMAGE ===== */
.box-room img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #ddd;
}

/* ===== INFO ===== */
.box-room .inner-info {
  flex: 1;
}

.box-room .inner-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* ===== BUTTON ===== */
.box-room .inner-buttons {
  margin-top: 6px;
}

.box-room .btn {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 6px;
}

/* button hover */
.box-room .btn-primary {
  background: #0d6efd;
  border: none;
}

.box-room .btn-primary:hover {
  background: #0b5ed7;
}

/* ===== GRID FIX ===== */
.row .col-6 {
  margin-bottom: 10px;
}



/* CREATE ROOM */
.card {
  border-radius: 12px;
}

.card-body {
  padding: 24px;
}

.form-label {
  margin-bottom: 6px;
}

button.btn-success {
  padding: 8px 18px;
}
.image-preview {
  display: block;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}