body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #422b38;
}



:root {
  --primary-bg-color: rgb(254, 254, 255);
  --danger-bg-color: #D10024;
  --text-color: black;
  --grey-bg-color: #B9BABC;
  --grey-line-color: #E4E7ED;
  --black-bg-color: black;
}


/* .text-dark-custom {
  color: var(--primary-bg-color) !important;
} */
.text-dark-custom {
  color: var(--black-bg-color);
}

.text-black-custom {
  color: var(--text-color) !important;
}

.text-blue-custom {
  color: blue !important;
}

.bg-primary-custom {
  background-color: #15161D !important;
  color: var(--text-color);
  border-radius: 40px;
}

.bg-primary-custom:hover {
  background-color: #c4762d !important;
  color: var(--text-color);
}
.bg-light-blue {
  background-color: #64a9d6 !important;
  color: var(--text-color);
  border-radius: 40px;
}
.btn-danger-custom {
  color: var(--text-color);
  background-color: var(--danger-bg-color);
  border-radius: 40px;
}

.btn-danger-custom:hover {
  color: var(--danger-bg-color);
  background-color: var(--text-color);
  box-shadow: 0 0 0 3px var(--danger-bg-color);
}

.btn-danger {
  background-color: var(--danger-bg-color);
}

.btn-outline-danger {
  outline: var(--danger-bg-color);
}

.btn-outline-danger:hover {
  background-color: var(--danger-bg-color);
}

.btn-primary-custom {
  background-color: var(--primary-bg-color);
  color: var(--danger-bg-color);
}



.text-light-custom {
  color: #FFF !important;
}

.text-danger-custom {
  color: var(--danger-bg-color) !important;
}

.bi-info-custom {
  color: #D10024 !important;
}

.header {
  padding: 15px 0;
  background-color: #ffffff;
  border-bottom: 3px var(--danger-bg-color) solid;
}

.header-search {
  padding: 5px 0px;
}

.header-search form .input-select {
  margin-right: -4px;
  border-radius: 40px 0px 0px 40px;
}

.header-search form .input {
  height: 30px;
  margin-right: -4px;
  border: solid 1px var(--grey-bg-color);
}

.header-search form .search-btn {
  height: 30px;
  background: #00d100;
  color: #FFF;
  font-weight: 500;
  border: none;
  border-radius: 0px 40px 40px 0px;
}

.bg-danger {
  background: var(--danger-bg-color) !important;
  color: var(--text-color) !important;
}

.header-ctn {
  padding: 15px;
}

.header-ctn>div>a {
  display: block;
  position: relative;
  width: 90px;
  text-align: center;
  color: var(--text-color);
}

.header-ctn>div>a>i {
  display: block;
  font-size: 18px;
}

.header-ctn>div>a>span {
  font-size: 12px;
}

.header-ctn>div>a>.qty {
  position: absolute;
  right: 15px;
  top: -10px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  font-size: 10px;
  color: var(--text-color);
  background-color: var(--danger-bg-color);
}

#footer {
  background: #d9dcdd;
  border-top: 2px var(--danger-bg-color) solid;
}

.footer h3,
.footer ul {
  color: #3245ee;
  font-size: 18px;
}

.footer p {
  color: #1713d1;
  font-size: 14px;
}

.footer ul li a {
  color: #022772;
  text-decoration: none;
  font-size: 14px;
}

.footer ul li a:hover {
  color: var(--danger-bg-color);
  text-decoration: none;
  font-size: 14px;
}

.footer ul li {
  margin: 15px 0 0;
  font-size: 14px;
}

.footer ul li i {
  color: #D10024;
  margin: 0 15px 0 0;
}

.footer-title {
  margin: 0 0 30px;
}


/* navbar */
.navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #eff3f5;
  padding: 1rem;
}

.nav-link:hover {
  color: red;
  /* Màu chữ khi hover */
}

nav {

  border-bottom: 2px solid var(--grey-line-color);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #D10024;
  transition: width 0.2s ease-in-out;
}

.nav-link:hover::after {
  width: 100%;
}

/* content  */
.content {
  padding: 30px 0 0 0;
}

.section-title {
  position: relative;
  margin-bottom: 30px;
  margin-top: 15px;
}

.title {
  display: inline-block;
  /* text-transform: uppercase; */
  margin: 0px;
  font-weight: 600;
}

.card {
  /* border: 3px solid transparent; */
  /* Thiết lập viền mặc định là trong suốt */
  transition: border-color 0.3s;
  /* Thêm hiệu ứng chuyển đổi cho viền */
}

.card-text {
  font-size: 18px;
  color: var(--danger-bg-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.product-name {
  font-size: 16px;
  /* text-transform: uppercase; */
  /* color: var(--text-color); */
  font-weight: 600;
  white-space: nowrap;
  /* ngăn chặn quá trình xuống dòng */
  overflow: hidden;
  /* ẩn nội dung vượt quá phạm vi của phần tử */
  text-overflow: ellipsis;
  /* hiển thị dấu "..." khi nội dung bị ẩn */
  display: inline-block;
  /* cho phép ngăn chặn quá trình xuống dòng và hiển thị dấu "..." */
  max-width: 100%;
  /* đảm bảo nội dung không vượt quá chiều rộng của phần tử cha */
}

.product-img {
  height: 200px;
}

.product-img>img {
  width: 100%;
  object-fit: contain;
  height: 100%;
}

.price-sale {
  color: var(--grey-bg-color);
  font-size: 12px;
}

.product-line {
  border-top: 1px solid #ccc;
  /* Thiết lập đường line màu xám */
  margin: 10px 0;
  /* Khoảng cách từ line đến các phần tử khác */
}

.product-widget-name {
  font-size: 16px;
  /* text-transform: uppercase; */
  font-weight: 600;
  white-space: nowrap;
  /* ngăn chặn quá trình xuống dòng */
  overflow: hidden;
  /* ẩn nội dung vượt quá phạm vi của phần tử */
  text-overflow: ellipsis;
  /* hiển thị dấu "..." khi nội dung bị ẩn */
  display: inline-block;
  /* cho phép ngăn chặn quá trình xuống dòng và hiển thị dấu "..." */
  max-width: 100%;
  /* đảm bảo nội dung không vượt quá chiều rộng của phần tử cha */
}

.product-details-name {
  font-size: 18px;
  /* text-transform: uppercase; */
  font-weight: 600;
  white-space: nowrap;
  /* ngăn chặn quá trình xuống dòng */
  overflow: hidden;
  /* ẩn nội dung vượt quá phạm vi của phần tử */
  text-overflow: ellipsis;
  /* hiển thị dấu "..." khi nội dung bị ẩn */
  display: inline-block;
  /* cho phép ngăn chặn quá trình xuống dòng và hiển thị dấu "..." */
  max-width: 100%;
  /* đảm bảo nội dung không vượt quá chiều rộng của phần tử cha */
}

.product-details-price {
  color: var(--danger-bg-color);
  font-size: 24px;
  font-weight: 700;
}

.rating-stars {
  cursor: pointer;
}

.rating-stars .star {
  color: #ffc107;
}

.rating-stars .star.active {
  color: #ffc107;
  /* Màu sao khi được chọn */
}

.menu-cart {
  width: 300px;
  /* Đặt kích thước chiều rộng tối đa */
  padding: 15px;
}

.text-user li a:hover {
  color: var(--danger-bg-color);
}

.form-control:focus {
  box-shadow: 0 0 0 0.05rem var(--danger-bg-color);
  /* Màu đỏ cho bóng khi tập trung */
  border-color: var(--danger-bg-color);
  /* Màu đỏ cho viền nếu cần */
}

.text-hover {
  color: var(--black-bg-color);
}

.text-hover:hover {
  color: var(--danger-bg-color);
}

/* .row {
  margin-left: 0px !important;
} */

.rounded-avatar img {
  border-radius: 50%;
}

.title-post {
  /* color: var(--primary-bg-color); */
  color: var(--text-dark-custom);
}

.title-post:hover {
  color: var(--danger-bg-color);
}

.truncate-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* Số hàng tối đa */
  -webkit-box-orient: vertical;
}

.breadcrumb {
  margin-top: 10px !important;
}

.option-group,
.color-option {
  display: inline-block;
  cursor: pointer;
  border: 0.5px solid #d1d5db;
  border-radius: 5px;
  text-align: center;
}

.option {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #d1d5db;
  padding: 5px;
  border-radius: 5px;
  text-align: center;
}

.option-group .option.selected,
.color-option.selected {
  border-color: red;
}

.attribute .btn-danger {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.product-price {
  font-weight: 600;
  color: var(--danger-bg-color);
}

.product-img {
  overflow: hidden;
}

.product-img img {
  transition: transform 0.3s ease;
}

.product-img:hover img {
  transform: scale(1.1);
}

.review-section {
  margin-bottom: 20px;
}

.review-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.star-rating {
  color: #ffc107;
}

.progress {
  height: 8px;
  border-radius: 4px;
}

.progress-bar {
  background-color: #ffc107;
}

.review-item {
  margin-bottom: 20px;
}

.review-item .avatar {
  width: 40px;
  height: 40px;
  background-color: #007bff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 10px;
}

.review-item .user-info {
  display: flex;
  align-items: center;
}

.review-item .username {
  font-weight: bold;
  margin-right: 5px;
}

.review-item .date {
  color: #6c757d;
}

.qa-section {
  margin-top: 40px;
}

.qa-item {
  margin-bottom: 20px;
}

.qa-item .question {
  font-weight: bold;
}

.qa-item .answer {
  margin-left: 20px;
  border-left: 2px solid #007bff;
  padding-left: 10px;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  /* Điều chỉnh kích thước phù hợp */
  display: inline-block;
}

.product-price-wrapper {
  min-height: 50px;
  /* Adjust this height according to your design */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.price-sale {
  margin-top: 5px;
}

.price-sale.empty-sale {
  visibility: hidden;
  /* This hides the empty sale div without affecting layout */
}

.owl-nav,
.owl-dots {
  text-align: end !important;
}

/* ---------------------------------------------- */
/* .container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
} */

.row {
  display: flex;
  /* Kích hoạt Flexbox cho hàng */
  flex-wrap: wrap;
  /* Cho phép các cột xuống hàng khi không đủ không gian */
  margin-bottom: 20px;
  border-radius: 10px;
  /* overflow: hidden; */
  /* Đảm bảo nội dung không tràn ra ngoài bo tròn */
  /* transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; */
}

.row:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Màu nền cho từng hàng */
.row-1 {
  background-color: #ffebee;
  /* Hồng nhạt */
}

.row-2 {
  background-color: #e8f5e9;
  /* Xanh lá cây nhạt */
}

.row-3 {
  background-color: #e3f2fd;
  /* Xanh dương nhạt */
}

.col {
  flex: 1;
  /* Các cột chiếm không gian bằng nhau trong Flexbox */
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 300px;
  /* Đảm bảo cột có kích thước tối thiểu trước khi xuống hàng */
}

.text-content {
  background-color: rgba(255, 255, 255, 0.85);
  /* Nền trắng trong suốt cho text */
  border-radius: 8px;
  padding: 25px;
  margin: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.text-content h2 {
  /* color: #2c3e50; */
  margin-top: 0;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.text-content p {
  /* color: #555; */
  line-height: 1.7;
  font-size: 1.1em;
}

.image-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------- */
@media (min-width: 576px) {
  .product-btn {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .table-responsive {
    overflow-x: auto;
  }

  .table thead th {
    font-size: 12px;
  }

  .table td,
  .table th {
    white-space: nowrap;
  }


  .align-content-center {
    text-align: center;
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-cart {
    margin-top: 1rem;
  }

  .nav-links {
    position: absolute;
    right: 0px;
    height: 92vh;
    top: 20vh;
    /* Điều chỉnh top để phù hợp với header */
    background-color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
  }

  .nav-links li {
    opacity: 0;
  }

  .burger {
    display: block;
  }

  /* ============================== */
  /* .dropdown-menu {
    background: #00000000 !important;
    border-width: 0 !important;
    position: unset !important;
    transform: none !important;
    
    margin: inherit !important;
    margin-top: 10px !important;
    padding: 0;
    margin-left: 0;
    width: min-content;
    min-width: 0 !important;
  }

  .dropdown-submenu>.dropdown-menu.show {
    width: 100% !important;
  }

  .dropdown-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: fit-content !important;
    float: left;
  }

  .dropdown-item:hover {
    background-color: #00000000 !important;
  }

  .dropdown-item:focus {
    background-color: #00000000 !important;
    color: #fff !important;
  }

  .dropdown-toggle::after {
    border-width: 0 !important;
    background-image: none;
    margin: 0 !important;
  }

  .dropdown-toggle {
    float: left;
  } */

  /* -------------------------------- */
  .row {
    flex-direction: column;
    /* Chuyển các cột thành hàng dọc trên màn hình nhỏ */
  }

  .col {
    width: 100%;
    /* Mỗi cột chiếm toàn bộ chiều rộng */
    padding: 20px;
    margin-bottom: 10px;
  }

  .text-content {
    margin: 5px;
    padding: 20px;
  }

  /* Đảo ngược thứ tự cho hàng 2 để hình ảnh lên trên */
  .row-2 .col.text-content {
    order: 1;
  }

  .row-2 .col.image-content {
    order: 0;
  }
}

.short-description {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Số dòng bạn muốn hiển thị */
  -webkit-box-orient: vertical;
}

.expanded-description {
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

@media (max-width: 767.98px) {
  .ft-cate {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ft-cate a {
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
    text-decoration: none;
    color: #000;
  }

  .ft-cate a.active {
    background-color: #dc3545;
    color: #fff;
  }

  .top-products {
    display: none;
    /* Ẩn phần top sản phẩm yêu thích trên điện thoại */
  }


}

@media (min-width: 768px) {
  .categories-vertical {
    display: block;
  }

  .categories-horizontal {
    display: none;
  }
}

@media (max-width: 480px) {
  /* .container {
    width: 95%;
    padding: 15px;
  } */

  .row {
    margin-bottom: 20px;
  }

  .col {
    padding: 15px;
  }

  .text-content h2 {
    font-size: 1.5em;
  }

  .text-content p {
    font-size: 1em;
  }
}

/* ------------------------- */
/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo img {
  height: 50px;
}

.contact-info p {
  margin: 0;
}

.search-cart {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  margin-right: 1rem;
}

.search-box input {
  padding: 0.5rem;
  border: 1px solid #ccc;
}

.search-box button {
  padding: 0.5rem 1rem;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
}

.zalo-icon {
  width: 30px;
  /* Điều chỉnh kích thước icon */
  height: 30px;
  cursor: pointer;
}