body::-webkit-scrollbar {
  width: 15px;               /* Chiều rộng vùng chứa scrollbar */
}
body::-webkit-scrollbar-track {
  background: #ccc;        /* Màu nền ngoài của thanh scrollbar */
}
body::-webkit-scrollbar-thumb {
  background-color: black;    /* Màu của thanh cuộn (scroll thumb) */
  border-radius: 2px;       /* Bo góc scroll thumb */
 
}
body::-webkit-scrollbar-thumb:hover {
    background-color: black; /* Hiệu ứng di chuột đổi màu*/
}
body { /*cho Firefox*/
    scrollbar-width: thin;          /* "auto" hoặc "thin" */
    scrollbar-color: black #ccc;   /* scroll thumb and track */
}


ol {
  counter-reset: li;
  list-style: none;
  padding: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

ol a {
  position: relative;
  display: block;
  padding: .4em .4em .4em .8em;
  margin: .5em 0 .5em 2.5em;
  background: #D3D4DA;
  color: #444;
  text-decoration: none;
  transition: all .3s ease-out;
}

ol a:hover {
  background: #DCDDE1;
}

ol a:before {
  content: counter(li);
  counter-increment: li;
  position: absolute;
  left: -2.5em;
  top: 50%;
  margin-top: -1em;
  background: #f9dd94;
  height: 2em;
  width: 2em;
  line-height: 2em;
  text-align: center;
  font-weight: bold;
}

ol a:after {
  position: absolute;
  content: "";
  border: .5em solid transparent;
  left: -1em;
  top: 50%;
  margin-top: -.5em;
  transition: all .3s ease-out;
}

ol a:hover:after {
  left: -.5em;
  border-left-color: #f9dd94;
}

.thumbnail_zoom {
  margin: 0 auto;
}

.thumbnail_zoom:hover {
  transform: scale(10);
  /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
  position: absolute;
  z-index: 999;

}

.img_thumbnail_zoom {
  height: 100px;
  border-width: 0.5px;
}


/* CSS */
.nav-link {
  align-items: center;
  background: #252525;
  border: 0 solid #E2E8F0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  color: white;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  height: 60px;
  margin: 5px;
  justify-content: center;
  line-height: 24px;
  overflow-wrap: break-word;
  padding: 22px 25px;
  text-decoration: none;
  width: auto;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.nav-pills .nav-item a {
  color: white;
}

.badge2 {
  padding: 0.8em 0.8em;
  line-height: 1.3;
  text-transform: capitalize;
  border-radius: 5px;
}

.name-product {
  font-size: 15px;
}

.iq-sidebar-menu .side-menu li a {
  color: #e2e2e2;
}

.title-comm {
  color: #fff;
  font-size: 18px;
  position: relative;
  margin-top: 30px;
  margin-bottom: 30px;
  font-weight: 700;
  background-color: #fff;
  text-align: center;
}

h3.title-comm:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-top: 0;
  border-top: 2px solid #d0d2d3;
  z-index: 1;
  display: block;
}

.title-comm .title-holder {
  min-width: 350px;
  height: 45px;
  background-color: #56bbe7;
  height: auto;
  line-height: 45px;
  padding: 0px 20px;
  position: relative;
  z-index: 2;
  text-align: center;
  display: inline-block;
  min-width: 280px;
}

.title-holder:before {
  content: "";
  position: absolute;
  right: -15px;
  border-width: 0px;
  bottom: 0px;
  border-style: solid;
  border-color: #5c9efe transparent;
  display: block;
  width: 0;
  height: 0;
  border-top: 23px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 15px solid #56bbe7;
}

.title-holder:after {
  content: "";
  position: absolute;
  left: -15px;
  border-width: 0px;
  bottom: 0px;
  border-style: solid;
  border-color: #5c9efe transparent;
  display: block;
  width: 0;
  height: 0;
  border-top: 23px solid transparent;
  border-bottom: 22px solid transparent;
  border-right: 15px solid #56bbe7;
}

.table tr th {
  border: 2px white solid;
}

.dark .table tr th {
  border: 2px #181818 solid;
}

.thumbnail-mobile {
  width: 32px;
  height: 24px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}

.thumbnail-mobile img {
  width: 100%;
  height: 100%;
  transition-duration: 0.1s;
}

.thumbnail-mobile img:hover {
  position: absolute;
  width: 350px;
  height: 210px;
  right: -20px;
  border: 3px solid #00ac15;
  border-radius: 9px;
  z-index: 1000;
}
.modal-header {
  background-color: #f5f5f503;
}
.sidebar-default .iq-sidebar-menu .side-menu li.active .submenu li.active>a {
  color: #ffffff;
}
/* --- Khung card chính --- */
.product-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    margin-bottom: 20px; /* Thêm khoảng cách giữa các card */
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* --- Phần đầu card --- */
.product-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}
.category-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* --- Phần nội dung mô tả --- */
.product-content {
    margin-bottom: 15px;
    flex-grow: 1; 
}
.product-content p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}
.text-success {
    color: #28a745 !important;
}

/* --- Thông tin bổ sung --- */
.product-info {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
}
.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #6c757d;
}
.info-item strong {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.platform-icon {
    width: 24px;
    height: 24px;
}
.stock-badge {
    background-color: #007bff;
    color: white;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 50px;
}


/* --- Khu vực Giá và Mua hàng --- */
.product-purchase {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 15px;
}
.price {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.price span {
    font-size: 0.8rem;
    color: #6c757d;
}
.price strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545; 
}
.action-buttons .btn-action {
    border-radius: 10px;
    font-weight: bold;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
}
.btn-buy {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}
.btn-buy:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}
.btn-disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* --- Nút xem trước --- */
.product-preview-link {
    text-align: center;
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}
.product-preview-link a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.product-preview-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}