:root {
    --font-main: 'Inter', sans-serif;
    --font-secondary: 'Inter', serif;
  
    --color-primary: #2E7D32;
    --color-secondary: #06428b;
    --color-tertiary: #CC0008;
    --color-link: #1a49ce;
    --color-danger: #cc0008;
    --color-toc-bg: #f5f5f5;
    --color-highlight: #008009;
    --color-start: #FFDA1A;
  
    --text-size: 16px;
  }
  

  body {
    font-family: var(--font-main);
    font-size: var(--text-size);
    font-weight: 400;
    letter-spacing: 0;
  }
  
  body * {
    outline: none;
    /* background-color: #f5f5f7; */
  }
  
  .font-main {
    font-family: var(--font-main) !important;
  }
  
  .font-secondary {
    font-family: var(--font-secondary) !important;
  }
  
  ::selection {
    color: #fff;
    background-color: var(--color-primary)
  }

  .shadow-sm {
    box-shadow: 0px 6px 34px rgba(215, 216, 222, 0.41) !important;
}
.rounded-bt {
  border-radius: 0 0 3rem !important;
}

  .colored,
  .colored-hover:hover,
  .colored-active.active {
    color: var(--color-primary) !important;
  }
  
  .colored1,
  .colored1-hover:hover,
  .colored1-active.active {
    color: var(--color-secondary) !important;
  }
  
  .colored2,
  .colored2-hover:hover,
  .colored2-active.active {
    color: var(--color-tertiary) !important;
  }
  .colored-link{
    color: var(--color-link) !important;
  }
  .colored-start{
    color: var(--color-start) !important;
  }
  .colored-random {
    background-image: linear-gradient(108deg, #0079d0 0, #9e52d8 32%, #da365c 84%, #d04901 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
  }
  

  .bg-colored,
  .bg-colored-hover:hover,
  .bg-colored-active.active,
  .bg-colored-hover-trigger:hover .bg-colored-hover-target,
  .underline-slide.underline-colored:before,
  .underline-slide.underline-colored:after {
    background-color: var(--color-primary) !important;
  }
  
  .bg-colored1,
  .bg-colored1-hover:hover,
  .bg-colored1-active.active,
  .bg-colored1-hover-trigger:hover .bg-colored1-hover-target {
    background-color: var(--color-link) !important;
  }
  
  .bg-colored2,
  .bg-colored2-hover:hover,
  .bg-colored2-active.active {
    background-color: var(--color-tertiary) !important;
  }

.b-colored,
.b-colored-hover:hover,
.b-colored-active.active {
  border-color: var(--color-primary) !important;
}

.b-colored1,
.b-colored1-hover:hover{
  border-color: var(--color-primary) !important;
}

.b-colored1-active.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary) !important;
}

.b-colored2,
.b-colored2-hover:hover,
.b-colored2-active.active {
  border-color: var(--color-danger) !important;
}

.text-highlight{
    background-image: linear-gradient(108deg, #006bb9 0, #903fcf 32%, #cf0f3c 84%, #b84100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.modern-nav .nav-links .nav-link {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: inherit;
  }
  
.modern-nav.dropdown-radius .nav-links .dropdown-menu {
border-radius: 8px;
}

.modern-nav .nav-links .dropdown-menu .nav-link {
font-weight: 600;
}


.suggestion-list {
  display: none;
  position: relative;
  width: 100%;
  background: #fff;
  z-index: 99;
  overflow-y: auto;
  border-radius: 8px;

}
.suggestion-list.show {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;   /* khoảng cách giữa các cột, có thể điều chỉnh */
  padding: 12px;
  animation: slideDown 0.35s cubic-bezier(0.32,0.72,0,1) both;
}
@keyframes slideDown {
  from {
      opacity: 0;
      transform: translateY(-24px) scaleY(0.96);
  }
  to {
      opacity: 1;
      transform: translateY(0) scaleY(1);
  }
}
.suggestion-item {
  background: #fff;
  border: 1px solid #f5f5f5;
  border-radius: 8px;
  padding: 12px 10px 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s;
  margin-top: 30px;
}

.suggestion-item:hover {
  background: #f7f7f7;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.suggestion-thumb {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.suggestion-info {
  flex: 1;
  width: 100%;
}

.suggestion-title {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 6px;
}

.suggestion-meta {
  color: #888;
  font-size: 13px;
}

/* Responsive: xuống 2 cột tablet và 1 cột mobile */
@media (max-width: 991px) {
  .suggestion-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .suggestion-list {
    grid-template-columns: 1fr;
  }
}
input:focus, .form-control:focus {
  box-shadow: none !important;
  outline: none !important;
  border-color: #ccc !important; /* hoặc màu bạn muốn */
}


.input-group-text {
  padding: .375rem 1.2rem;
  border-radius: 1rem;
}



.form-control {
  display: block;
  width: 100%;
  padding: 1rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 1rem 16px;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.category-scroll-wrapper {
  position: relative;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: #ccc; /* màu thanh nhỏ */
  transition: width 0.2s ease;
}

.category-scroll {
  display: flex;
  flex-wrap: nowrap;              /* Quan trọng: không để xuống dòng */
  overflow-x: auto;
  overflow-y: hidden;
  gap: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
}

/* Bắt buộc để hiển thị thanh kéo (nếu muốn) */
.category-scroll::-webkit-scrollbar {
  height: 3px;
}
.category-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 2px;
}

.category-item {
    flex: 0 0 auto;
    text-align: center;
    scroll-snap-align: start;
    box-shadow: 2px 23px 77px 5px rgba(0,0,0,0.04);
    -webkit-transform:scale(1) translateZ(0) perspective(1px);
    transform:scale(1) translateZ(0) perspective(1px);
    backface-visibility:hidden;
    -webkit-transition:transform 0.45s, box-shadow 0.45s;
    transition:transform 0.45s, box-shadow 0.45s;
}


.category-item:hover{
  box-shadow: 2px 13px 47px 5px rgba(0,0,0,0.1); 
  -webkit-transform: scale(0.96) translateZ(0) perspective(1px); 
  transform: scale(0.96) translateZ(0) perspective(1px);
}

.category-item img {
    width: 100%;
    max-width: 220px;
    display: block;
    margin-bottom: 20px;
    border-radius: 6px;
}

.category-count {
  z-index: 2;
  background: rgba(0, 0, 0, 0.40);
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.11);
  pointer-events: none;
}
.category-item.category-item-product {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 6px;
}
.category-item.category-item-product.active {
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: white !important;
}
.category-item.category-item-product img {
  width: auto;
  max-width: auto;
  height: 200px;
}

.category-item.active a,
.category-item-product.active a {
    font-weight: bold;
    border-bottom: 2px solid #000;
    color: var(--color-main);
}

.category-item span {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 0 0 8px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE, Edge */
  white-space: nowrap;
}
.breadcrumb-scroll::-webkit-scrollbar {
  display: none;                 /* Chrome, Safari */
}
.breadcrumb-scroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}
@media (min-width: 992px) {
  .breadcrumb-scroll {
      overflow-x: visible !important;
      white-space: normal;
      gap: 8px;
  }
}


.tab-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
  gap: 16px;
}

.tab-btn {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
  border: 0;
  border-bottom: 2px solid transparent;
}
.tab-btn.active {
  border-bottom: 2px solid var(--color-primary);
}

.tab-content {
  margin-top: 0;
}

.tab-panel {
  display: none;
  animation: fadeIn .3s;
}
.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px);}
  to   { opacity: 1; transform: translateY(0);}
}


/**/

.card-products {
  display: flex;
  flex-direction: column;
  height: 100%; /* Đảm bảo full chiều cao nếu bọc trong grid/flex cha */
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transition: box-shadow 0.18s;
}
.card-products.sales {
  border: 1px solid var(--color-tertiary) !important;
}
.card-products > .content-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.card-products > .note {
  flex-shrink: 0;
}
.card-products .note{
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;

}
.radius, .radius-hover:hover {
  border-radius: 8px !important;
}

#megaMenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
#megaMenu.showing {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
}
.parent-item.active {
  background: #f8f9fa;
  color: #1d1d1f;
}

.product-attribute-list {
  margin-top: 24px;
}
.product-attribute-item {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 15px;
}
.product-attribute-item.active {
  border: 1px solid var(--color-primary);
  background-color: #f9f9f9;
}

.attribute-title {
  font-size: 12px;
}
.list-group-item.active {
  z-index: 2;
  background-color: transparent;
  border-color: transparent !important;
  color: var(--color-primary) !important; 
}


  #content p,
  #content h1,
  #content h2,
  #content h3,
  #content h4,
  #content h5 {
    margin-bottom: 15px;
  }
  #content h1{
    font-size: 32px !important;
  }
  #content h2{
    font-size: 26px !important;
  }
  #content h3{
    font-size: 22px !important;
  }
  #content h4{
    font-size: 20px !important;
  }
  #content h5{
    font-size: 18px !important;
  }

  #content img {
    max-width: 100%;
    margin-bottom: 5px;
  }
  
  #content ul,
  #content ol {
    list-style: disc;
    padding-left: 0;
  }
  .box-table ul{
    list-style: none;

  } 
  .box-table ul li {
    display: block;
    overflow: hidden;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}
.box-table ul li li p span {
  display: block;
  overflow: hidden;
  font-size: 15px;
  line-height: 20px;
  color: #101010;
  font-weight: 400;
}
.box-table ul li p:first-child {
  float: left;
  width: 150px;
  margin-right: 30px;
}
.box-table ul li p:last-child {
  display: block;
  overflow: hidden;
}
.box-table ul li p strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: #101010;
}

  #showmore {
    display: none;
  }
  
  .showmore-wrapper {
    position: relative;
    margin-top: 30px;
    padding-top: 60px;
  }
  
  .showmore-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 100%);
    z-index: 1;
    pointer-events: none;
  }
  
  nav#toc {
    list-style: none;
  }
  
  .toc-link.active-toc {
    background-color: var(--color-primary);
    padding-left: 8px;
    border-left: 3px solid var(--color-primary);
  }
  
  #toc-toggle {
    display: flex;
    justify-content: space-between;
  }
  
  #toc-mobile {
    display: none;
    top: 100px;
    z-index: 9999;
    width: 100%;
  }
  
  #toc-list li.active a {
    color: var(--color-highlight);
    font-weight: 600;
    background-color: var(--color-toc-bg);
    border-radius: 4px;
  }
  
  @media (max-width: 991.98px) {
    #toc-mobile {
      display: block;
    }
  
    #toc-list li.active > a {
      color: var(--color-highlight);
      font-weight: bold;
    }
  }
  .rotate-icon {
    transition: transform 0.3s ease;
  }
  .rotate-icon.rotate {
    transform: rotate(180deg);
  }
  
  .form-check-input:checked + .form-check-label {
    font-weight: bold;
  }
  
  .form-check.border {
    transition: border-color 0.2s ease;
  }
  
  .form-check-input:checked ~ img {
    filter: brightness(1.2);
  }

  .slider-full-width {
    position: relative;
    width: 100%;
  }

  .carousel-products .card-products {
    display: flex;
    flex-direction: column;
    min-height: 480px;  /* fix tối thiểu  */
  }

.carousel-cell {
  width: calc((100% - (4 * 15px)) / 5); /* 4 khoảng trống margin giữa 5 item */
  min-width: 220px;
  max-width: 350px;
  margin-right: 15px;


}



@media (max-width: 991px) {
  .carousel-cell {
    width: 42vw;        /* 2.3 cell (42 * 2.3 = 96.6vw) */
    max-width: 360px;
    min-width: 180px;
  }
  .slider-btn {
    display: none;
  }
}

/* Mobile (1.3 cell) */
@media (max-width: 600px) {
  .carousel-cell {
    width: 42vw;        /* 2.3 cell (42 * 2.3 = 96.6vw) */
    max-width: 360px;
    min-width: 180px;
    margin-right: 10px;
  }
  .carousel-products .card-products {
    display: flex;
    flex-direction: column;
    min-height: 370px;  /* fix tối thiểu  */
  }
}
.flickity-progress-bar {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  width: 100%;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
.flickity-progress-bar-inner {
  background: var(--color-primary);          /* Màu thanh chạy */
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.28s cubic-bezier(.32,.72,0,1);
}
.flickity-progress-bar-inner.sales {
  background: var(--color-tertiary) !important;
}

/* .flickity-progress-bar {
  width: 100%;
  height: 8px;
  gap: 4px;
  display: flex;
  align-items: center;
  margin: 14px 0 8px 0;
  user-select: none;
}
.flickity-progress-segment {
  flex: 1 1 0;
  height: 100%;
  background: #eaeaea;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}
.flickity-progress-segment.active {
  background: var(--color-primary);  
} */


.slider-full-width .slider-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.3s, transform 0.3s;
}
.slider-full-width:hover .slider-btn {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

  
/*-- ARROW*/
.slick-arrow {
  font-size: 30px;
  color: white;
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  left: 0;
  z-index: 5;
  cursor: pointer;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  background: var(--color-primary);
   border-radius: 100%;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  border-radius: 100%;
  padding: 10px;
  z-index: 2;
  cursor: pointer;
}
.prev-btn {
  left: -25px;
}
.next-btn {
  right:-25px;
}

.slider-btn:hover svg path {
  fill: #fff;
}


/* .flickity-button {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  background: var(--color-primary);
  padding: 10px;
  border: none;
  color:  white !important;
}
   */


.rounded-circle {
    border-radius: 50%;
    display: inline-block;
}
.border {
    border: 1px solid #ccc;
}

.color-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color);
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.color-circle.active {
  border: 2px solid #007bff;
  box-shadow: 0 0 0 2px white; /* viền trắng giữa border xanh */
}

.thuoctinh-card {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 15px;
}

.thuoctinh-card.active {
  border: 2px solid #007bff;
}

.thuoctinh-label {
  font-size: 18px;
  font-weight: bold;
}

.thuoctinh-price {
  text-align: right;
  font-size: 14px;
  line-height: 1.5;
}

#image-product .carousel-cell {
  width: 100%;
  max-width: 100%;
  margin-right: 10px;
}
.flickity-slider-main .carousel-cell {
  width: 100%;
  display: flex;
  justify-content: center;
}


#image-product .flickity-slider-main img {
  display: block;
  width: 75%;
  margin: 0 auto;
}
@media (min-width: 992px) {
  #sticky-image {
    z-index: 3;
  }
}

.sticky-mini-header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  z-index: 1000;
  border-bottom: 1px solid #e8e8e8;
  padding: 0;
}
.sticky-mini-header .container {
  min-height: 56px;
}
.product-mini-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
}
.mini-price {
  color: #e53935;
  margin-left: 24px;
}
.mini-installment {
  color: #555;
}
.mini-benefit {
  color: #333;
  font-weight: 500;
}
/* .mini-right > * + * {
  margin-left: 18px !important;
} */
@media (max-width: 991px) {
  .sticky-mini-header .container {
      flex-direction: column !important;
      align-items: flex-start !important;
      min-height: unset;
      gap: 0.25rem;
  }
  .mini-right {
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 0px;
  }
  .product-mini-title {
      font-size: 18px;
  }
}

.carousel-cell-video .video-wrapper {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.carousel-cell-video .video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
}

.flickity-slider-thumb {
  /* KHÔNG set display:flex; */
  padding: 10px 8px 6px 8px;
  overflow-x: auto;
  margin-top: 30px;
}

.carousel-cell-thumb {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap:1em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.carousel-cell-thumb:hover,
.carousel-cell-thumb.active {
    border-color: #eee;   /* xanh nổi bật khi hover hoặc active */
    box-shadow: 0 4px 18px rgba(6,180,250,0.10);
    transform: translateY(-2px) scale(1.025);
}
.carousel-cell-thumb img {
  width: 140px;
  object-fit: contain;
  border-radius: 7px;
  display: block;
  margin: 0 auto;
  background: #fff;
}


.promo-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  /* box-shadow: 0 4px 16px rgba(60, 60, 60, 0.08); */
  padding: 32px 24px 56px 24px;
  min-height: 260px;
  transition: box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.promo-card:hover {
  box-shadow: 0 8px 32px rgba(60, 60, 60, 0.16);
}

.promo-icon {
  font-size: 2.2rem;
  color: #1d1d1f;
}

.promo-title {
  font-weight: 600;
  font-size: 1.15rem;
}

.promo-desc {
  margin-bottom: 0;
}

.promo-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: #222;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(40,40,40,0.07);
}

.promo-btn:hover {
  background: #444;
}

body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item.lg-complete .lg-object {
  border: 0px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}
.lg-outer .lg-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.lg-actions .lg-next, .lg-actions .lg-prev {
  background-color: #fff;
  border-radius: 100%;
  color: #000;
  cursor: pointer;
  display: block;
  font-size: 22px;
  width: 60px;
  height: 60px;
  padding: 8px 10px 9px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1080;
  border: none;
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}
.lg-actions .lg-next:hover, .lg-actions .lg-prev:hover {
  background-color:var(--color-primary);
  color: #fff;
}
.lg-backdrop {
  background-color: white;
}
.lg-toolbar {
  background-color: white;
}
.lg-toolbar .lg-icon, #lg-counter, .lg-outer .lg-thumb-outer, .lg-outer .lg-toogle-thumb {
  color: #111;
}
.lg-outer.lg-pull-caption-up.lg-thumb-open .lg-sub-html {
  bottom: 188px;
  color: #fff;
  font-weight: bold;
  /* border: 1px; */
  background: var(--color-primary);
}
.lg-toolbar .lg-icon {
  float: right;
  font-size: 32px;
  height: 47px;
  line-height: 32px;
  
}
.badge-flash-sale {
  /* position: absolute;
  bottom: 0;
  left: 10px; */
  width: 100%;
  z-index: 9;
  background: linear-gradient(90deg,#ff6a00 0%,#da365c 100%);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 5px 2px;
  border-radius: 2px;
  box-shadow: 0 1px 6px rgba(255,106,0,0.13);
  animation: flash-bounce 1.1s infinite alternate;
}
.animated-flash {
  animation: flash-bounce 1.1s infinite alternate;
}
@keyframes flash-bounce {
  0%   { filter: brightness(1.1);}
  60%  { filter: brightness(1.4);}
  100% { filter: brightness(1.1);}
}


  input[type="radio"]+label:hover svg{stroke: #a3a3a3 !important;}
  #not-satisfied:checked+label{ color: #EB4242 !important; } 
  #not-satisfied:checked+label svg{ stroke: #EB4242 !important; } 

  #undecided:checked+label{ color: #288CEF !important; } 
  #undecided:checked+label svg{ stroke: #288CEF !important; } 

  #satisfied:checked+label{ color: #34BF34 !important; } 
  #satisfied:checked+label svg{ stroke: #34BF34 !important; fill: #34BF34; } 

  .star-ratings:not(.clicked) li.star.hover svg polygon{ fill: #FBC531;}
  li.star.active svg polygon{ fill: #FBC531;}


  /* Wishbox */
  .wishbox{ border-bottom: 1px solid #E2E2E2; }
  .wishbox .wishbox-title{ color: #262626; letter-spacing: -0.8px; line-height: 46px; font-size: 32px; font-weight: 400; }
  .wishbox .wishbox-button{ display: inline-flex; display: -ms-inline-flexbox; padding: 10px 40px; color: white; font-size: 12px; font-weight: 700; }

  .hotnews-item { min-height: 85px; }
.hotnews-img {
    aspect-ratio: 2.2/1;
    object-fit: cover;
    border-radius: 16px;
    min-height: 58px;
    background: #f4f4f4;
    position: relative;
}
.hotnews-rank {
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-size: 1.5rem;
    color: #fff;
    /* background: linear-gradient(90deg, #D4145A 0%, #FBB03B 100%); */
    border-radius: 12px;
    padding: 0 16px 2px 10px;
    box-shadow: 0 2px 8px rgba(212,20,90,0.1);
    line-height: 1.1;
}
.hotnews-cat {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.hotnews-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hotnews-divider {
    opacity: 0.18;
}

/* Thanh tab trượt ngang */
.tab-scroll-x {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Ẩn mặc định trên Firefox */
  position: relative;
  border-bottom: 1px solid transparent;
  margin-bottom: 18px;
  padding-bottom: 4px;
}

/* Hiện thanh scroll khi bị tràn trên mobile */
@media (max-width: 991.98px) {
  .tab-scroll-x {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ddd #fff;
  }
  .tab-scroll-x::-webkit-scrollbar {
    height: 4px;
    background: #f3f3f3;
  }
  .tab-scroll-x::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
  }
}

/* Ẩn scrollbar trên desktop (tùy chọn) */
@media (min-width: 992px) {
  .tab-scroll-x {
    scrollbar-width: none !important;
  }
  .tab-scroll-x::-webkit-scrollbar {
    display: none !important;
  }
}

/* Đảm bảo các nav-item không xuống hàng */
.tab-scroll-x .nav-item {
  display: inline-block;
  float: none;
}

/* Tùy chỉnh thêm: Hiệu ứng khi trượt (optional) */
.tab-scroll-x {
  scroll-behavior: smooth;
}

/* Tab item giữ không xuống hàng */
.tab-scroll-x .nav-item {
  display: inline-block;
  float: none;
}

/* Link bên trong giữ không xuống hàng */
.tab-scroll-x .nav-link {
  display: inline-block;
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
  margin-right: 2px;
  font-size: 20px;
  font-weight: 500;
  padding: 12px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: border-bottom 0.2s, color 0.2s;
}

.tab-scroll-x .nav-link.active {
  border-bottom: 2.5px solid #1d1d1d;
  color: #1d1d1d;
  background: #fff;
}

@media (max-width: 991.98px) {
  .tab-scroll-x {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .tab-scroll-x .nav-link {
    font-size: 17px;
    padding: 8px 14px;
    min-width: 110px;
  }
}

/* Gợi ý mask mờ ở 2 bên để biết kéo ngang */
.tab-scroll-x::after,
.tab-scroll-x::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 26px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
}
.tab-scroll-x::before {
  left: 0;
  background: linear-gradient(to right, #fff 70%, transparent);
}
.tab-scroll-x::after {
  right: 0;
  background: linear-gradient(to left, #fff 70%, transparent);
}


  /* Footer */
  footer.footer{ padding: 0 0 80px;  position: relative; }
  footer.footer:after{ position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -2; display: block; content:''; background-size: cover; }
  footer.footer:before{ z-index: -1!important; }

  /* Button on footer */
  footer.footer .footer-button{ display: inline-flex; display: -ms-inline-flexbox; padding: 14px 55px; color: white; font-size: 12px; font-weight: 700; }

  /* Boxes on footer */
  footer.footer .footer-boxes{ margin-top: 60px; font-size: 16px; }
  footer.footer .footer-boxes .footer-box-title{  }
  footer.footer .footer-boxes .footer-box-text{ line-height: 25px; margin-top: 20px; }
  footer.footer .footer-boxes .footer-box-link{ color: #222222; display: inline-block; margin-top: 10px; margin-right: 20px; }
  footer.footer .footer-boxes .copyright{ margin-top: 40px; font-size: 12px; }

  .mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top: 1px solid #eee;
    padding: 0;
  }
  .mobile-bar-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mobile-bar-list li {
    flex: 1 1 0;
    text-align: center;
}
.mobile-bar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 5px 0;
    font-size: 16px;
    text-decoration: none;
    height: 48px; /* Tuỳ chỉnh chiều cao */
    transition: background 0.2s;
}

/* Thay màu từng nút: */
.mobile-bar-list li:nth-child(1) .mobile-bar-link {
    background: #f5faff; 
    color: #222;   /* Menu */
}
.mobile-bar-list li:nth-child(2) .mobile-bar-link {
    background: var(--color-primary); 
    color: #fff;   /* Hotline */
}
.mobile-bar-list li:nth-child(3) .mobile-bar-link {
  background: var(--color-secondary); 
  color: #fff;   /* Hotline */
}

/* Active hoặc hover tuỳ ý */
.mobile-bar-link:active,
.mobile-bar-link:focus {
    filter: brightness(0.95);
}
@media (max-width: 991.98px) {
  .navbar .logo-white {
    max-height: 40px;
    object-fit: contain;
  }
}

@keyframes shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-3px); }
  40%  { transform: translateX(3px); }
  60%  { transform: translateX(-3px); }
  80%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}
/* Gallery main slider */
.gallery-slider-main .main-carousel .carousel-cell {
  width: 100%;
  aspect-ratio: 4/3;            /* Đảm bảo tỷ lệ đẹp, hoặc tùy chọn */
  margin-right: 15px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-slider-main .main-carousel img {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
  border-radius: 18px;
  margin: 0 auto;
  display: block;
}

/* Gallery nav thumbnails */
.gallery-slider-nav .nav-carousel {
  padding-top: 8px;
}
.gallery-slider-nav .carousel-cell {
  width: 82px;
  height: 82px;
  margin-right: 10px;
  border-radius: 10px;
  background: #f3f3f3;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.gallery-slider-nav .carousel-cell img {
  max-width: 74px;
  max-height: 74px;
  object-fit: contain;
  margin: auto;
  background: #fff;
  border-radius: 8px;
}
.gallery-slider-nav .carousel-cell.is-selected {
  border: 2px solid #2563eb;  /* Blue-600 */
  box-shadow: 0 4px 20px 0 rgba(0,0,0,0.10);
  background: #fff;
}
