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

/* CSS tối ưu cho mô tả sản phẩm */
.product-description {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2c3e50;
  text-align: justify;
  word-wrap: break-word;
  hyphens: auto;
  letter-spacing: 0.3px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.product-description p {
  margin-bottom: 1.2em;
  text-indent: 0;
}

.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4,
.product-description h5,
.product-description h6 {
  color: #34495e;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

.product-description h1 { font-size: 1.8em; }
.product-description h2 { font-size: 1.6em; }
.product-description h3 { font-size: 1.4em; }
.product-description h4 { font-size: 1.2em; }
.product-description h5 { font-size: 1.1em; }
.product-description h6 { font-size: 1em; }

.product-description ul,
.product-description ol {
  margin: 1em 0;
  padding-left: 2em;
}

.product-description li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.product-description strong,
.product-description b {
  font-weight: 600;
  color: #2c3e50;
}

.product-description em,
.product-description i {
  font-style: italic;
  color: #7f8c8d;
}

.product-description a {
  color: #3498db;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.product-description a:hover {
  color: #2980b9;
  border-bottom-color: #2980b9;
}

.product-description blockquote {
  border-left: 4px solid #3498db;
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background-color: #f8f9fa;
  font-style: italic;
  color: #5a6c7d;
}

.product-description code {
  background-color: #f1f2f6;
  color: #e74c3c;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.product-description pre {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1em 0;
}

.product-description pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.product-description table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

.product-description th,
.product-description td {
  border: 1px solid #ddd;
  padding: 0.75em;
  text-align: left;
}

.product-description th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.product-description tr:nth-child(even) {
  background-color: #f8f9fa;
}

.product-description tr:hover {
  background-color: #e9ecef;
}

/* Responsive cho mô tả sản phẩm */
@media (max-width: 768px) {
  .product-description {
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.2px;
  }
  
  .product-description h1 { font-size: 1.6em; }
  .product-description h2 { font-size: 1.4em; }
  .product-description h3 { font-size: 1.2em; }
  .product-description h4 { font-size: 1.1em; }
  .product-description h5 { font-size: 1em; }
  .product-description h6 { font-size: 0.95em; }
  
  .product-description ul,
  .product-description ol {
    padding-left: 1.5em;
  }
  
  .product-description blockquote {
    padding: 0.8em 1.2em;
    margin: 1.2em 0;
  }
  
  .product-description table {
    font-size: 0.9em;
  }
  
  .product-description th,
  .product-description td {
    padding: 0.5em;
  }
}

@media (max-width: 480px) {
  .product-description {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .product-description h1 { font-size: 1.4em; }
  .product-description h2 { font-size: 1.3em; }
  .product-description h3 { font-size: 1.1em; }
  .product-description h4 { font-size: 1em; }
  .product-description h5 { font-size: 0.95em; }
  .product-description h6 { font-size: 0.9em; }
  
  .product-description ul,
  .product-description ol {
    padding-left: 1.2em;
  }
  
  .product-description blockquote {
    padding: 0.6em 1em;
    margin: 1em 0;
  }
}

/* Breadcrumb styling */
.breadcrumb {
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #dee2e6;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
  font-weight: bold;
}

.breadcrumb-item a {
  color: #007bff;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #0056b3;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #495057;
  font-weight: 500;
}

/* Product title optimization */
.product-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  margin-bottom: 1rem;
  word-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 768px) {
  .product-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .product-title {
    font-size: 1.5rem;
  }
}

/* Enhanced card styling for global market */
.card {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-header {
  border-bottom: 1px solid #e9ecef;
  border-radius: 12px 12px 0 0 !important;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

/* Button styling for global market */
.btn-primary {
  background: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
  background: linear-gradient(45deg, #6c757d, #545b62);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badge styling */
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5em 0.75em;
  border-radius: 6px;
}

/* Modal styling */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

/* Form styling */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* List group styling */
.list-group-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.list-group-item:last-child {
  border-bottom: 1px solid #e9ecef;
}

/* Loading animation */
#loading-center {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .breadcrumb {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .card-body {
    padding: 0.75rem;
  }
  
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .breadcrumb {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}