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



:root {
  --primary-bg-color: #15161D;
  --danger-bg-color: #D10024;
  --text-color: #FFF;
  --grey-bg-color: #B9BABC;
  --grey-line-color: #E4E7ED;
  --black-bg-color: #2B2D42;
}


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

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

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

.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-dark-custom {
  color: var(--black-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: var(--primary-bg-color);
  border-bottom: 3px var(--danger-bg-color) solid;
}

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

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

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

.header-search form .search-btn {
  height: 40px;
  background: #D10024;
  color: #FFF;
  font-weight: 700;
  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: #15161D;
  border-top: 2px var(--danger-bg-color) solid;
}

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

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

.footer ul li a {
  color: #B9BABC;
  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 */

.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;
  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: 12px;
  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);
}

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

.truncate-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-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;
}

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

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

.expanded-description {
  -webkit-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;
  }
}