.navbar-brand img {
  height: 40px; /* Điều chỉnh chiều cao logo */
}

.navbar-nav .nav-link {
  font-size: 16px; /* Cỡ chữ menu */
  font-weight: 500; /* Độ đậm của chữ */
  color: #55161b; /* Màu chữ */
  margin: 0 10px; /* Khoảng cách giữa các mục menu */
}

.navbar-text {
  font-size: 14px; /* Cỡ chữ cam kết */
  font-weight: bold; /* Độ đậm của chữ */
  color: #55161b; /* Màu chữ */
}

.navbar {
  background-color: #f5c808 !important; /* Màu nền mới */
}

.dangnhap-a {
  color: #55161b; /* Màu chữ phù hợp */
  font-size: 14px;
  margin-top: 14px;
  margin-left: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: bold;
}

.dangnhap-a:hover {
  color: white;
}

/*nút truy vấn đơn hàng*/
.query-orders-btn {
  position: fixed;
  bottom: 75px;
  right: 23px;
  background: #f5c808;
  color: white !important;
  padding: 10px 15px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 600px !important;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.input-field {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.btn-search {
  background: #55161b;
  color: white;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  margin-top: 10px;
}

.btn-search:hover {
  background: #742020;
}

#error-message {
  color: red;
  margin-top: 10px;
}

/* Thiết kế chung */
.icon-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;

  color: #55161b !important; /* Màu của icon */
  border: 2px solid #f5c808;
}

/* Badge giỏ hàng */
.cart-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  background: red;
  color: white;
  font-size: 10px;
  font-weight: bold;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  padding: 10px 15px;
  background-color: #f5c808;
  color: white !important;
  border-radius: 50%;
  text-align: center;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background-color 0.3s, transform 0.3s;
}

.back-to-top:hover {
  background-color: #e0b307;
  transform: scale(1.1);
}

.back-to-top.show {
  display: block;
}

/* Banner Section */
.banner-section {
  margin-top: 20px;
}

.banner-section img {
  width: 100%;
  height: auto;
}

/* Hero Section */
.hero-section {
  background: url("/images/hero-bg.jpg") no-repeat center center/cover;
  padding: 100px 0;
}

/* Categories Section */
.categories-section img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* Product Card */
.product-card img {
  height: 200px;
  object-fit: cover;
}

/* Carousel Section */
.carousel {
  margin-top: 20px;
}

.carousel-item img {
  width: 100%;
  height: 400px; /* Điều chỉnh chiều cao banner */
  object-fit: cover;
}

/* Điều chỉnh vị trí nút điều hướng */
.carousel-control-prev,
.carousel-control-next {
  width: 5%; /* Điều chỉnh độ rộng của nút */
  opacity: 1; /* Đảm bảo nút luôn hiển thị */
}

.carousel-control-prev {
  left: 30px; /* Đẩy nút "prev" ra gần rìa trái */
}

.carousel-control-next {
  right: 30px; /* Đẩy nút "next" ra gần rìa phải */
}

/* Tùy chỉnh container */
.category {
  width: 40%; /* Điều chỉnh width theo ý muốn */
  max-width: 1200px; /* Giới hạn chiều rộng tối đa */
  margin: 0 auto; /* Căn giữa container */
  padding: 0 15px; /* Thêm padding nếu cần */
}

/* Style cho danh mục sản phẩm */
.category-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #ddd; /* Thêm border xung quanh hình ảnh */
  border-radius: 8px; /* Bo góc border */
  padding: 10px; /* Tạo khoảng cách 5px giữa hình ảnh và border */
}

/* Điều chỉnh kích thước hình ảnh */
.category-card img {
  width: 80px; /* Giảm kích thước xuống 80px */
  height: 300px; /* Chiều cao cố định */
  margin: 0 auto; /* Căn giữa hình ảnh */
  display: block; /* Đảm bảo hình ảnh được hiển thị đúng cách */
  transition: transform 0.3s ease; /* Hiệu ứng phóng to khi hover */
  border-radius: 6px;
}

.category-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-overlay p {
  font-size: 15px;
}

.category-card:hover .category-overlay {
  opacity: 1;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card:hover {
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2); /* Shadow ở dưới và bên phải */
  border-color: #888; /* Đổi màu border khi hover */
}

/* Danh sách sản phẩm */
/* Thiết kế chung */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
}

.product-list {
  width: 70%; /* Giảm width xuống 80% */
  max-width: 1000px; /* Giới hạn chiều rộng tối đa */
  margin: 0 auto; /* Căn giữa danh sách sản phẩm */
  padding: 20px; /* Thêm padding nếu cần */
  margin-top: -40px;
  margin-bottom: 50px;
}

.tabs {
  display: flex;
  margin-bottom: 20px;
}

/*.tab-content {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    width: 70%;
}*/

.tab-button {
  background-color: #f1f1f1;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  flex: 1;
  text-align: center;
  font-size: 16px;
}
/*    .tab-button:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }*/

.tab-button.active {
  background-color: #ddd;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cột trên mỗi hàng */
  gap: 20px; /* Khoảng cách giữa các sản phẩm */
  justify-content: center;
}

/*.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 23%;
    text-align: center;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}*/
.product {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  width: 220px;
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}
.product:hover {
  color: #f5c808;
}

.product-card img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #ddd;
}

.product-card h3 {
  font-size: 16px;
  margin: 10px 0;
}

.product-card .price {
  font-size: 14px;
  color: #e74c3c;
  font-weight: 500;
}
.product-card .price:hover {
  font-size: 14px;
  color: #f5c808;
  font-weight: 500;
}

.ngu-hanh {
  width: 100%;
  max-width: 1000px;
  display: flex;
  margin-left: 250px;
}

.ng-hanh .bang-ngu-hanh {
  width: 60%;
}
.ngu-hanh img {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  width: 150px;
  height: auto;
}
.ngu-hanh .ngu-hanh-content1 {
  width: 40%;
  margin-top: 20px;
}
.ngu-hanh .ngu-hanh-tieu-de {
  margin-left: 140px;
}
.ngu-hanh .text-center {
  font-size: 13px;
}

.ngu-hanh .nhom:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

.ngu-hanh .nhom::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*    background: rgba(0, 0, 0, 0.3);
    opacity: 0;*/
  transition: opacity 0.3s ease-in-out;
}

.ngu-hanh :hover::after {
  opacity: 1;
}

.ngu-hanh .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ngu-hanh .nhom {
  height: 150px;
}

.ngu-hanh .nhom img {
  height: 100%;
  object-fit: cover;
}

/* Footer */
.footer-section {
  background-color: #55161b; /* Màu nền mới */
  color: #f0f0f0; /* Màu chữ mới (trắng nhạt) */
  padding: 20px 0; /* Thêm padding để cân đối khoảng cách */
}

/* Giảm khoảng cách giữa các cột */
.footer-section .row {
  margin-left: -5px; /* Giảm khoảng cách bên trái */
  margin-right: -5px; /* Giảm khoảng cách bên phải */
}

.footer-section .col-md-4 {
  padding-left: 5px; /* Giảm padding bên trái */
  padding-right: 5px; /* Giảm padding bên phải */
}

.footer-section img {
  width: 170px;
  margin-bottom: 20px;
}

.footer-section p {
  font-size: 11px;
}

.footer-section ul {
  padding-left: 0; /* Xóa padding mặc định của list */
  margin-bottom: 20px; /* Khoảng cách giữa các phần tử */
}

.footer-section ul li {
  font-size: 11px; /* Giảm cỡ chữ xuống 13px */
  margin-bottom: 8px; /* Khoảng cách giữa các mục */
  color: #f0f0f0; /* Màu chữ mới (trắng nhạt) */
}

.footer-section a {
  color: #f0f0f0; /* Màu chữ liên kết */
  text-decoration: none; /* Bỏ gạch chân */
  font-size: 11px; /* Giảm cỡ chữ liên kết */
}

.footer-section a:hover {
  color: #f5c808; /* Màu chữ khi hover (vàng) */
  text-decoration: underline; /* Gạch chân khi hover */
}

.footer-section .text-center {
  font-size: 11px; /* Giảm cỡ chữ phần bản quyền */
  color: #f0f0f0; /* Màu chữ mới (trắng nhạt) */
  margin-top: 20px; /* Khoảng cách trên phần bản quyền */
}

.chat-box {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 300px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.chat-header {
  background: #007bff;
  color: white;
  padding: 10px;
  text-align: center;
  border-radius: 10px 10px 0 0;
}

.chat-messages {
  height: 200px;
  overflow-y: auto;
  padding: 5px;
  border-bottom: 1px solid #ccc;
}

.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
}

/* Định dạng sản phẩm */

/* Blog Section Styles */
.blog-section {
  /* background-color: #f8f9fa; */
  padding: 40px 0;
}

.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card .card-title {
  color: #55161b;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-card .card-text {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-card .btn-outline-primary {
  border-color: #55161b;
  color: #55161b;
}

.blog-card .btn-outline-primary:hover {
  background-color: #55161b;
  border-color: #55161b;
  color: white;
}

/* Blog Post Detail Styles */
.blog-post {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-meta {
  font-size: 0.9rem;
}

.blog-meta span {
  margin-right: 15px;
}

.blog-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-gallery {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Comments Section */
.comments-section {
  margin-top: 3rem;
}

.comment-form {
  background: #f8f9fa;
  border-radius: 10px;
}

.comment-item {
  border-left: 3px solid #55161b;
}

.comment-item .card-body {
  padding: 1rem;
}

/* Admin Blog Management */
.admin-sidebar li a[href*="Posts"] {
  background-color: #55161b;
  color: white;
}

.admin-sidebar li a[href*="Posts"]:hover {
  background-color: #742020;
}

/* Responsive Blog */
@media (max-width: 768px) {
  .blog-card {
    margin-bottom: 1.5rem;
  }

  .blog-post {
    padding: 20px;
  }

  .blog-meta span {
    display: block;
    margin-bottom: 5px;
  }
}

/* Posts Management Styles */
.post-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: #55161b;
}

.post-card .card-img-top {
  transition: transform 0.3s ease;
}

.post-card:hover .card-img-top {
  transform: scale(1.05);
}

.post-card .card-title {
  color: #55161b;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.post-card:hover .card-title {
  color: #742020;
}

.post-card .card-text {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Statistics Cards */
.statistics-card {
  border-radius: 12px;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.statistics-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.statistics-card .card-body {
  padding: 1.5rem;
}

.statistics-card h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.statistics-card p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.statistics-card i {
  opacity: 0.8;
}

/* Search and Filter Section */
.search-filter-card {
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-filter-card .card-body {
  padding: 1.5rem;
}

.input-group-text {
  background-color: #55161b;
  border-color: #55161b;
  color: white;
}

.form-control:focus,
.form-select:focus {
  border-color: #55161b;
  box-shadow: 0 0 0 0.2rem rgba(85, 22, 27, 0.25);
}

/* Status Badges */
.badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
}

.badge.bg-success {
  background-color: #28a745 !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

/* Quick Action Buttons */
.btn-group-vertical .btn {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-group-vertical .btn:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-group-vertical .btn i {
  font-size: 0.8rem;
}

/* Meta Information */
.meta-info {
  font-size: 0.8rem;
  color: #6c757d;
}

.meta-info i {
  width: 14px;
  text-align: center;
  margin-right: 0.25rem;
}

/* Tags */
.tag-badge {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  display: inline-block;
}

/* Action Buttons */
.btn-outline-primary {
  border-color: #55161b;
  color: #55161b;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #55161b;
  border-color: #55161b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(85, 22, 27, 0.3);
}

/* Empty State */
.empty-state {
  padding: 4rem 2rem;
  text-align: center;
}

.empty-state i {
  color: #dee2e6;
  margin-bottom: 1.5rem;
}

.empty-state h4 {
  color: #6c757d;
  margin-bottom: 1rem;
}

.empty-state p {
  color: #adb5bd;
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .statistics-card .card-body {
    padding: 1rem;
  }

  .statistics-card h4 {
    font-size: 1.5rem;
  }

  .search-filter-card .card-body {
    padding: 1rem;
  }

  .post-card {
    margin-bottom: 1.5rem;
  }

  .btn-group-vertical {
    position: static !important;
    margin-top: 1rem;
  }

  .btn-group-vertical .btn {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0;
  }
}

/* Animation for cards appearing */
.post-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.post-item:nth-child(1) {
  animation-delay: 0.1s;
}
.post-item:nth-child(2) {
  animation-delay: 0.2s;
}
.post-item:nth-child(3) {
  animation-delay: 0.3s;
}
.post-item:nth-child(4) {
  animation-delay: 0.4s;
}
.post-item:nth-child(5) {
  animation-delay: 0.5s;
}
.post-item:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Smooth transitions for filtering */
.post-item {
  transition: all 0.3s ease;
}

.post-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Custom scrollbar for comments */
.comments-container::-webkit-scrollbar {
  width: 6px;
}

.comments-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.comments-container::-webkit-scrollbar-thumb {
  background: #55161b;
  border-radius: 3px;
}

.comments-container::-webkit-scrollbar-thumb:hover {
  background: #742020;
}
