body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
  }
  
  a {
    text-decoration: none;
  }
  
  .logo {
    color: #FF6F00;
  }
  
  .logo:hover {
    color: #e55b00;
  }
  nav {
    background-color: #ff6600;
    padding: 12px 0;
    text-align: center;
  }
  
  nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 40px;
  }
  
  nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
  }
  
  nav ul li a:hover {
    background-color: white;
    color: #ff6600;
  }
  .featured-books {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff8f0;
  }
  
  .featured-books h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ff6600;
  }
  
  .book-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .book {
    width: 200px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: white;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .book img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }
  
  .book h3 {
    font-size: 18px;
    margin: 10px 0 5px;
    color: #333;
  }
  
  .book p {
    font-size: 14px;
    color: #666;
  }
  
  .book:hover {
    transform: translateY(-5px);
  }
 
  .shop {
    padding: 40px 20px;
    text-align: center;
    background-color: #fffefc;
  }
  
  .shop h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ff6600;
  }
  
  .book-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .book {
    width: 200px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: white;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .book img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }
  
  .book h3 {
    font-size: 18px;
    margin: 10px 0 5px;
    color: #333;
  }
  
  .book p {
    font-size: 14px;
    color: #666;
  }
  
  .book button {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .book button:hover {
    background-color: #e65700;
  }
  
  .nav-menu .active {
    font-weight: bold;
    border-bottom: 2px solid white;
  }
  .shop-container {
    display: flex;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .sidebar {
    width: 200px;
    background-color: #fff7f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .sidebar h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ff6600;
  }
  
  .sidebar ul {
    list-style: none;
    padding: 0;
  }
  
  .sidebar ul li {
    margin: 10px 0;
  }
  
  .sidebar ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .sidebar ul li a:hover {
    color: #ff6600;
  }
  
  .book-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
  .sidebar ul li a.active {
    font-weight: bold;
    color: #ff6600;
  }
  .contact {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background: #fff4e6;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
  }
  
  .contact h2 {
    text-align: center;
    color: #ff6600;
  }
  
  .contact label {
    display: block;
    margin: 15px 0 5px;
  }
  
  .contact input,
  .contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
  }
  
  .contact textarea {
    height: 120px;
    resize: vertical;
  }
  
  .contact button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
  }
  
  .contact button:hover {
    background-color: white;
    color: #ff6600;
    border: 1px solid #ff6600;
  }
  
  .contact-success {
    text-align: center;
    padding: 60px;
    color: #333;
  }
  
  .contact-success .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #ff6600;
    color: white;
    border-radius: 8px;
    text-decoration: none;
  }
  
  .contact-success .btn:hover {
    background: white;
    color: #ff6600;
    border: 1px solid #ff6600;
  }

  
  #cartItems {
    margin-bottom: 20px;
  }
  
  .cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  .cart-item span {
    margin-right: 10px;
  }
  
  button {
    padding: 10px;
    background-color: orange;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
  }
  
  button:hover {
    background-color: darkorange;
  }
  .footer .widget-body {
    font-size: 15px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*, ::after, ::before {
    box-sizing: border-box;
}
user agent stylesheet
div {
    display: block;
    unicode-bidi: isolate;
}  
footer.footer {
  background-color: #1f2327;
  color: #ffffff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.newsletter {
  text-align: center;
  margin-bottom: 30px;
}

.newsletter h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.newsletter p {
  font-size: 16px;
  margin-bottom: 15px;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.subscribe-form input[type="email"] {
  padding: 10px;
  width: 300px;
  border: none;
  border-radius: 4px;
}

.subscribe-form button {
  padding: 10px 20px;
  background-color: #ff6600;
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 20px;
}

.about, .info {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.logo {
  width: 60px;
  margin-bottom: 10px;
}

.info ul {
  list-style: none;
  padding: 0;
}

.info li {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  margin-top: 20px;
  padding-top: 15px;
  font-size: 14px;
  color: #ccc;
}
/* ----- Theme Colors ----- */
:root {
  --primary-orange: #ff6600; /* Cam chủ đạo (tươi) */
  --primary-orange-dark: #ff6600; /* Cam đậm hơn cho hover */
  --primary-orange-light: #FFF0E1; /* Cam rất nhạt cho nền */
  --primary-orange-border: #FFDAB9; /* Cam nhạt cho viền */
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --text-secondary: #555555;
  --card-bg: #FFFFFF;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --card-hover-shadow: rgba(255, 102, 0, 0.2); /* Bóng cam khi hover */
}

/* ----- General Section Styling ----- */
.labs {
  background-color: var(--primary-orange-light); /* Nền cam nhạt cho cả khu vực */
  padding-top: 40px; /* Thêm padding nếu my-5 chưa đủ */
  padding-bottom: 40px;
}

/* ----- Card Styling ----- */
.labs .card {
  border: 1px solid var(--primary-orange-border); /* Viền cam nhạt */
  background-color: var(--card-bg);
  box-shadow: 0 4px 8px var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; /* Đảm bảo flex hoạt động đúng như mong đợi của h-100 */
  flex-direction: column;
}

.labs .card:hover {
  transform: translateY(-5px); /* Hiệu ứng nhấc lên khi hover */
  box-shadow: 0 8px 16px var(--card-hover-shadow); /* Bóng cam đậm hơn */
}

.labs .card-body {
  /* Bootstrap d-flex flex-column justify-content-between đã xử lý tốt việc này */
  /* Nếu cần tùy chỉnh thêm khoảng cách, có thể thêm padding ở đây */
  padding: 1.25rem; /* Padding chuẩn của Bootstrap card-body */
}

/* ----- Card Content Styling ----- */
.labs .card-title a {
  color: var(--primary-orange-dark); /* Màu cam đậm cho tiêu đề lab */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.labs .card-title a:hover {
  color: var(--primary-orange); /* Màu cam sáng hơn khi hover */
  text-decoration: underline;
}

.labs .card-text a {
  color: var(--text-secondary); /* Màu xám cho các link bài tập */
  text-decoration: none;
  font-size: 0.9em; /* Nhỏ hơn một chút */
  transition: color 0.3s ease;
  display: block; /* Để mỗi link chiếm 1 dòng nếu muốn */
  margin-bottom: 5px; /* Khoảng cách giữa các link bài tập */
}

.labs .card-text a:hover {
  color: var(--primary-orange); /* Màu cam khi hover */
  text-decoration: underline;
}

/* ----- Button Styling ----- */
.labs .btn-primary {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
  color: var(--text-light);
  font-weight: bold;
  padding: 0.5rem 1rem; /* Tùy chỉnh padding nút */
  transition: background-color 0.3s ease, border-color 0.3s ease;
  margin-top: 15px; /* Đảm bảo nút luôn có khoảng cách với nội dung phía trên */
}

.labs .btn-primary:hover,
.labs .btn-primary:focus,
.labs .btn-primary:active {
  background-color: var(--primary-orange-dark);
  border-color: var(--primary-orange-dark);
  color: var(--text-light);
  box-shadow: none; /* Loại bỏ box-shadow mặc định của Bootstrap khi focus/active nếu muốn */
}

/* ----- Back to Top Button Styling ----- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-orange);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px var(--card-shadow);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000; /* Đảm bảo nút nổi lên trên */
}

.back-to-top:hover {
  background-color: var(--primary-orange-dark);
  transform: scale(1.1); /* Phóng to nhẹ khi hover */
}

.back-to-top i { /* Giả sử bạn dùng Bootstrap Icons hoặc Font Awesome */
  font-size: 20px;
}

/* ----- Responsive Adjustments (Bootstrap xử lý phần lớn, nhưng có thể thêm) ----- */
@media (max-width: 767.98px) { /* md breakpoint */
  .labs .card-title {
    font-size: 1.1rem; /* Giảm kích thước tiêu đề trên mobile */
  }
  .labs .card-text a {
    font-size: 0.85em;
  }
}

@media (max-width: 575.98px) { /* sm breakpoint */
    /* col-6 sẽ áp dụng, mỗi hàng 2 card */
}
/* CSS tùy chỉnh thêm cho trang này nếu cần */
.about-us-section {
  background-color: #f8f9fa; /* Màu nền nhẹ nhàng */
}
.about-us-section .team-member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}
.about-us-section h3 {
    color: #ff6600; /* Màu cam cho tiêu đề phụ */
}


.book-cover-detail {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.book-info h1 {
  font-size: 2.5rem;
  color: #333;
}

.book-info .author {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 15px;
}

.book-info .price {
  font-size: 1.8rem;
  color: #ff6600;
  font-weight: bold;
  margin-bottom: 20px;
}

.book-info .description {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.book-details-list {
  list-style: none;
  padding: 0;
}

.book-details-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.book-details-list li:last-child {
  border-bottom: none;
}

.book-details-list strong {
  color: #333;
}

.quantity-selector {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.quantity-selector input {
  width: 60px;
  text-align: center;
  margin: 0 10px;
}

.add-to-cart-detail-btn {
    padding: 10px 20px;
    font-size: 1.1rem;
}



.book {
 
  display: flex; 
  flex-direction: column;
 
}

.book.book-hidden {
  display: none !important; 
}


.sidebar-shop {
  background-color: #f9f9f9; /* Nền xám rất nhạt, hoặc #fff nếu muốn trắng hoàn toàn */
  padding: 25px 20px;      /* Tăng padding */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Bóng đổ mềm mại hơn */
  /* Nếu không dùng Bootstrap grid, bạn có thể đặt width, ví dụ: width: 250px; */
}

.sidebar-shop h3 {
  font-size: 1.75rem; /* Kích thước lớn hơn cho "Danh Mục" (khoảng 28px) */
  font-weight: 600;   /* Đậm vừa */
  color: var(--header-text-dark, #212529); /* Màu đen cho tiêu đề (dùng biến nếu có) */
  margin-bottom: 1.5rem; /* Khoảng cách lớn hơn dưới tiêu đề */
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0; /* Viền dưới mảnh mai hơn */
  text-align: left; /* Căn trái nếu trước đó bị căn giữa */
}

.sidebar-shop ul#category-list {
  list-style: none;
  padding: 0;
  margin: 0; /* Bỏ margin mặc định của ul */
}

.sidebar-shop ul#category-list li {
  margin-bottom: 8px; /* Khoảng cách giữa các mục danh mục */
}

.sidebar-shop ul#category-list li a {
  display: block; /* Để chiếm toàn bộ chiều rộng và dễ click */
  color: #ff6600; /* Màu xanh dương cho các mục (Bootstrap primary color) */
  text-decoration: none;
  font-size: 1.1rem; /* Kích thước chữ lớn hơn một chút (khoảng 17-18px) */
  padding: 10px 15px; /* Padding để mục trông rộng rãi hơn */
  border-radius: 6px; /* Bo góc cho hiệu ứng hover */
  transition: background-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease, transform 0.2s ease;
  position: relative; /* Cho pseudo-elements nếu cần */
  border-left: 4px solid transparent; /* Viền trái trong suốt ban đầu */
}

.sidebar-shop ul#category-list li a:hover {
  background-color: #e9ecef; /* Nền xám nhạt khi hover */
  color: #ff6600; /* Màu xanh dương đậm hơn khi hover */
  padding-left: 20px; /* Di chuyển chữ sang phải một chút khi hover */
  border-left-color: #ff6600; /* Hiện viền trái màu xanh khi hover */
  /* transform: translateX(3px); */ /* Hoặc hiệu ứng di chuyển nhẹ */
}

.sidebar-shop ul#category-list li a.active {
  background-color: #ff6600; /* Nền xanh dương cho mục active */
  color: #fff !important;           /* Chữ trắng cho mục active */
  font-weight: 600;       /* Chữ đậm hơn cho mục active */
  padding-left: 20px;
  border-left-color: #ff6600; /* Viền trái đậm hơn cho active */
}

/* ./css/dangnhap.css */

#user-auth-section .dropdown-menu {
  min-width: auto; /* Điều chỉnh độ rộng menu dropdown nếu cần */
}

#user-auth-section .dropdown-item {
  cursor: pointer;
}

/* Trong file css/style.css hoặc css/giohang.css */

#cartModal .modal-dialog {
  max-width: 800px; /* Tăng chiều rộng modal để có không gian hơn */
}

#cartModal .modal-body {
  padding: 1rem 1.5rem; /* Thêm padding cho modal body */
}

#cartModal .table {
  margin-bottom: 1rem; /* Khoảng cách dưới bảng */
}

#cartModal th {
  font-weight: 600;
  white-space: nowrap; /* Ngăn tiêu đề cột xuống dòng */
}

#cartModal td {
  vertical-align: middle; /* Căn giữa các cell theo chiều dọc */
}

#cartModal .cart-item-image {
  width: 70px;
  height: 90px; /* Điều chỉnh kích thước ảnh */
  object-fit: contain; /* Đảm bảo ảnh không bị méo */
  margin-right: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
}

#cartModal .cart-item-details {
  display: flex;
  align-items: center;
}

#cartModal .cart-item-name {
  font-weight: 500;
  display: block; /* Cho phép tên sản phẩm dài xuống dòng */
  margin-bottom: 0.25rem;
  color: #333;
  text-decoration: none; /* Nếu tên sản phẩm là link */
}
#cartModal .cart-item-name:hover {
  color: #007bff; /* Màu khi hover nếu là link */
}

#cartModal .cart-item-price {
  font-size: 0.9em;
  color: #555;
}


#cartModal .quantity-controls {
  display: flex;
  align-items: center;
  width: 120px; /* Điều chỉnh độ rộng cụm số lượng */
}

#cartModal .quantity-controls .btn {
  min-width: 30px; /* Đảm bảo nút +/- có độ rộng tối thiểu */
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
}

#cartModal .quantity-controls .form-control-sm {
  text-align: center;
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: none !important;
  width: 40px; /* Độ rộng ô input số lượng */
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}
#cartModal .quantity-controls .form-control-sm:focus {
  border-color: #ced4da; /* Giữ màu border khi focus */
}


#cartModal .btn-remove-item {
  color: #dc3545;
  background-color: transparent;
  border: none;
  padding: 0.3rem 0.6rem;
}
#cartModal .btn-remove-item:hover {
  color: #fff;
  background-color: #dc3545;
}

#cartModal .cart-summary {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

#cartModal .cart-summary h5 {
  margin-bottom: 1rem;
}
#cartModal .cart-summary .summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
#cartModal .cart-summary .summary-item span:first-child {
  color: #555;
}
#cartModal .cart-summary .summary-total {
  font-size: 1.2rem;
  font-weight: bold;
  color: #dc3545; /* Màu đỏ cho tổng tiền */
}

#cartModal .modal-footer .btn {
  padding: 0.5rem 1.5rem; /* Tăng padding cho nút ở footer */
}

/* Thêm một chút hiệu ứng khi hover vào hàng sản phẩm */
#cartModal #cart-items tr:hover {
  background-color: #f8f9fa;
}

/* Responsive cho bảng */
@media (max-width: 767px) {
  #cartModal .modal-dialog {
      max-width: 95%;
  }
  #cartModal .table thead {
      display: none; /* Ẩn a_header trên mobile nếu cần thiết kế kiểu card */
  }
  
}

button {
  padding: 10px;
  background-color: orange;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  background-color: darkorange;
}

:root {
  /* Các biến màu hiện có */
  --primary-orange: #ff6600;       /* Cam chủ đạo cho các thành phần khác */
  --primary-orange-dark: ##ff6600;
  --primary-orange-light: #fff7f0;
  /* ... các biến khác ... */

  /* THÊM HOẶC SỬA BIẾN NÀY CHO THANH NAV */
  --nav-bg-orange: #ff6600; /* Màu cam từ hình ảnh (ước lượng, bạn có thể điều chỉnh) */
  --nav-text-light: #FFFFFF;
  --nav-text-hover-bg: #FFFFFF; /* Nền khi hover mục nav */
  --nav-text-hover-color: #ff6600; /* Màu chữ khi hover (giống màu nền nav) */

  --header-bg: #FFFFFF; /* Nền header */
  --header-text-dark: #212529; /* Màu chữ đen cho header (Bootstrap default dark) */
  --search-button-bg: #212529; /* Nền nút tìm kiếm */
  --search-button-icon: #FFFFFF; /* Màu icon tìm kiếm */
}

/* Bổ sung biến CSS để các đoạn dùng var(--*) hoạt động */
:root {
  --primary-orange: #ff6600;
  --primary-orange-dark: #ff6600;
  --primary-orange-light: #FFF0E1;
  --primary-orange-border: #FFDAB9;

  --text-dark: #333333;
  --text-light: #FFFFFF;
  --text-secondary: #555555;

  --card-bg: #FFFFFF;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --card-hover-shadow: rgba(255, 102, 0, 0.2);

  --nav-bg-orange: #ff6600;
  --nav-text-light: #FFFFFF;
  --nav-text-hover-bg: #FFFFFF;
  --nav-text-hover-color: #ff6600;

  --header-bg: #FFFFFF;
  --header-text-dark: #212529;
  --search-button-bg: #212529;
  --search-button-icon: #FFFFFF;
}