body {
	background: #f8f8f8;
}
@media (max-width: 767px) {
	.mid-header:after {
		content: '';
		width: 100%;
		position: absolute;
		background: var(--header-background);
		height: 200px;
		z-index: -1;
		clip-path: ellipse(100% 55% at 48% 44%);
		margin-top: 0;
		transform-origin: center center;
	}
}
.home-banner-group {
	margin-top: 10px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: 10px;
}
.home-banner-left {
	grid-column: var(--grid-colum);
	max-width: 100%;
}
.sub_banner {
	flex-direction: column;
	display: flex;
	grid-gap: 10px
}
.sub_banner--bottom {
	grid-column: 1 / span 3;
	flex-direction: row;
}
.sub_banner--bottom .banner {
	flex: 1 1 auto;
}
@media (max-width: 1024px) {
	.sub_banner {
		grid-gap: 8px;
	}
}
@media (max-width: 992px) {
	.sub_banner {
		grid-gap: 10px;
		padding-left: 10px;
	}
}
@media (max-width: 767px) {
	.sub_banner {
		grid-template-columns: 1fr 1fr;
		grid-gap: 15px;
	}
}
.home-slider {
	display: flex;
	align-items: center;
	max-width: 100%;
	overflow: hidden;
}
.home-slider .items {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
	overflow: hidden;
}
.home-slider .items img {
	width: 100% !important ;
	height: auto !important ; /* hoặc 100% nếu muốn full chiều cao */
	object-fit: contain;
	image-rendering: -webkit-optimize-contrast !important ; /* tăng độ nét trên Chrome/Safari */
	image-rendering: crisp-edges !important ; /* tăng nét với trình duyệt khác */
  pointer-events: auto; /* đảm bảo ảnh vẫn bắt được sự kiện chạm */
    -webkit-touch-callout: default; /* iOS cho phép giữ lâu để lưu ảnh */
}

.home-slider .slick-arrow.slick-prev {
	left: 10px;
}
.home-slider .slick-arrow.slick-next {
	right: 10px;
}
@media (min-width: 768px) {
	.section_blog_right {
		max-height: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		border-left: 1px solid #f7f7f7;
		position: absolute;
		top: 0;
		padding: 0 10px;
	}
}
@media (max-width: 767px) {
	.flashsale .container {
		padding: 0;
	}
}
.section_product_top .tab-content.current .row, .flashsale .row {
	--limit-column: 5;
	--percent: 44.333%;
}

@media (max-width: 480px) {
  .section_product_top .tab-content.current .row::-webkit-scrollbar, .flashsale .row::-webkit-scrollbar, .section_product_tag .row.carousel::-webkit-scrollbar {
		//display: none;
	}
 
	.section_product_top .tab-content.current .row, .flashsale .row {
		//-ms-overflow-style: none;
		/* IE and Edge */
		//scrollbar-width: none;
		/* Firefox */
		//padding: 1px;
	}
}
@media (max-width: 991px) {
	.flashsale .row {
		display: grid;
		grid-template-rows: 1fr;
		grid-template-columns: repeat(var(--limit-column), 30%);
		overflow: auto;
		justify-content: start;
	}
	
	.section_product_top .tab-content.current .row .col-12, .flashsale .row .col-12 {
  background: var(--text-color) !important ;
		padding: 5px;
	}
}
@media (max-width: 767px) {
	.section_product_top .tab-content.current .row, .flashsale .row, .section_product_tag .row.carousel {
		display: grid;
		grid-template-rows: 1fr;
		overflow: auto;
		justify-content: start;
		grid-template-columns: repeat(var(--limit-column), var(--percent));
	}
	.section_product_top .tab-content.current .row.one-row, .flashsale .row.one-row, .section_product_tag .row.carousel {
		display: flex;
		flex-wrap: nowrap;
	}
	.section_product_top .tab-content.current .row.one-row .product-col, .flashsale .row.one-row .flashsale__item {
		flex: 0 0 46%;
		max-width: 46%;
	}
	.btn-outline-secondary {
		border-color: var(--border-color);
		color: #2F80ED
	}
}
.section_flashsale .row {
	margin-left: -5px;
	margin-right: -5px;
}
.section_flashsale .row.one-row {
flex-wrap: nowrap;
    display: flex;
    overflow: auto;
    justify-content: start;
}
.section_flashsale .flashsale__item {
	padding: 5px;
}
.section_flashsale .flashsale__item {
    padding: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1) !important ;
    border-radius: 2px !important ; /* Bo góc */
      transition: box-shadow 0.3s ease, transform 0.3s ease; /* Hiệu ứng chuyển động */
    z-index: 1; /* Đặt chỉ số z-index để đảm bảo phần tử nằm trên các phần tử khác */
  
}

.section_flashsale .flashsale__item:hover {
  border: 1px solid rgba(0, 0, 0, 0.2) !important ;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Tăng độ bóng khi hover */

    z-index: 2; /* Đặt chỉ số z-index cao hơn để đảm bảo bóng mờ không bị che khuất */
}












.slick-pro-banner {
	width: 100%;
}
.slick-pro-banner, .slick-new:not(.slick-slider) {
	display: flex;
	align-items: start;
	overflow-x: auto;
	flex-wrap: nowrap;
	white-space: nowrap;
}
.slick-pro-banner::-webkit-scrollbar, .slick-new:not(.slick-slider)::-webkit-scrollbar {
	display: none;
}
.slick-pro-banner, .slick-new:not(.slick-slider) {
	-ms-overflow-style: none;
	/* IE and Edge */
	scrollbar-width: none;
	/* Firefox */
}
.slick-pro-banner .col-5, .slick-new:not(.slick-slider) .col-5 {
	padding: 5px;
}
.flashsale__news-list {
	display: flex;
}
.flashsale__news a {
  background:var(--text-color)  !important ; 
	white-space: nowrap;
}
.section_banner_coll .row {
	overflow-x: auto;
	flex-wrap: nowrap;
}
.section_banner_coll .row::-webkit-scrollbar {
	display: none;
}
.section_banner_coll .row {
	-ms-overflow-style: none;
	/* IE and Edge */
	scrollbar-width: none;
	/* Firefox */
}
.banner_col {
	order: -1;
}
@media (min-width: 768px) {
	.banner_col.right {
		order: 1;
	}
}
@media (max-width: 991px) {
	.section_brand .item {
		flex: 0 0 170px;
		max-width: 170px;
		padding: 10px;
	}
	.section_brand .hrz-scroll {
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: initial !important;
	}
}
@media (max-width: 768px) {
	.section_brand .item {
		flex: 0 0 140px;
		max-width: 140px;
		padding: 5px;
	}
}
/* ==== SECTION COLLECTIONS 1 (SCROLLBAR NGANG LUÔN HIỂN THỊ) ==== */
.section_collections_1 {

 
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: scroll !important;   /* luôn bật scrollbar ngang */
  overflow-y: hidden !important;
  gap: 15px !important;
  padding-top:   0px !important ; 
  padding-bottom:  20px  !important  ;  
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important; /* iOS mượt */
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  box-sizing: border-box;

  /* Luôn hiển thị scrollbar trên Firefox */
  scrollbar-width: thin !important;
  scrollbar-color: var(--primary-color) #f0f0f0 !important;
}

/* Chrome, Edge, Safari */
.section_collections_1::-webkit-scrollbar {
  height: 8px !important;
  display: block !important; /* ép luôn hiển thị */
}
.section_collections_1::-webkit-scrollbar-thumb {
  background: var(--primary-color) !important;
  border-radius: 4px !important;
}
.section_collections_1::-webkit-scrollbar-track {
  background: #f0f0f0 !important;
}

/* ==== ITEM ==== */
.section_collections_1 .item {
  flex: 0 0 auto !important;    
  background: #fff;
  color: #fff;
  border-radius: 2px;
  text-align: center;
 margin-right:  10px   ;     
  margin-left:  10px   ;    
  cursor: pointer;
  max-width: max-content;
  overflow: hidden; 
  width: 200px !important;
}

/* Chỉ khung chữ */
.section_collections_1 .item h3 a {
  display: flex;                  /* dùng flex để căn giữa */
  justify-content: center;        /* căn ngang */
  align-items: center;            /* căn dọc */

  background: var(--text-color);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
  border-radius: 2px;

  width: 200px !important;        /* chiều rộng cố định */
  height: 40px;                   /* thêm chiều cao để căn giữa dọc */
                 /* padding ngang thôi, không cần padding dọc */
  box-sizing: border-box;         /* để tính luôn padding trong khung */
}

.section_collections_1 .item:hover img {
  animation: tada 2s infinite;
}

.section_collections_1 .item:hover h3 a {
  background: var(--primary-color);
  color: #fff;
}




/* ==== SECTION COLLECTIONS 1 (SCROLLBAR NGANG LUÔN HIỂN THỊ) ==== */
.section_collections_2 {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: scroll !important;   /* luôn bật scrollbar ngang */
  overflow-y: hidden !important;
  gap: 15px !important;
  padding-top:   0px !important ; 
  padding-bottom:  20px  !important  ;  
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important; /* iOS mượt */
  width: auto !important;
 max-width: 1180px !important;
  margin: 0 auto !important;
  box-sizing: border-box;

  /* Luôn hiển thị scrollbar trên Firefox */
  scrollbar-width: thin !important;
  scrollbar-color: var(--primary-color) #f0f0f0 !important;
}

/* Chrome, Edge, Safari */
.section_collections_2::-webkit-scrollbar {
  height: 8px !important;
  display: block !important; /* ép luôn hiển thị */
}
.section_collections_2::-webkit-scrollbar-thumb {
  background: var(--primary-color) !important;
  border-radius: 4px !important;
}
.section_collections_2::-webkit-scrollbar-track {
  background: #f0f0f0 !important;
}

/* ==== ITEM ==== */
.section_collections_2 .item {
  flex: 0 0 auto !important;    
  background: #fff;
  color: #fff;
  border-radius: 2px;
  text-align: center;
 margin-right:  10px   ;     
  margin-left:  10px   ;    
  cursor: pointer;
  max-width: max-content;
  overflow: hidden; 
  width: 200px !important;
}

/* Chỉ khung chữ */
.section_collections_2 .item h3 a {
  display: flex;                  /* dùng flex để căn giữa */
  justify-content: center;        /* căn ngang */
  align-items: center;            /* căn dọc */

  background: var(--text-color);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
  border-radius: 2px;

  width: 200px !important;        /* chiều rộng cố định */
  height: 40px;                   /* thêm chiều cao để căn giữa dọc */
                 /* padding ngang thôi, không cần padding dọc */
  box-sizing: border-box;         /* để tính luôn padding trong khung */
}

.section_collections_2 .item:hover img {
  animation: tada 2s infinite;
}

.section_collections_2 .item:hover h3 a {
  background: var(--primary-color);
  color: #fff;
}





@keyframes tada {
	0% {
		transform: scaleX(1);
	}
	10%, 20% {
		transform: scale3d(0.9, 0.9, 0.9) rotate(-3deg);
	}
	30%, 50%, 70%, 90% {
		transform: scale3d(1.1, 1.1, 1.1) rotate(3deg);
	}
	40%, 60%, 80% {
		transform: scale3d(1.1, 1.1, 1.1) rotate(-3deg);
	}
	to {
		transform: scaleX(1);
	}
}






.section_product_tag .menu {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
}
.section_product_tag .menu__link {
	flex: 0 0 auto;
	white-space: nowrap;
}
@media (max-width: 992px) {
	.tag-list {
		white-space: nowrap;
		overflow: auto;
	}
}
.tag-item {
	padding: 4px 8px;
	background: var(--tag-bg);
	color: var(--tag-color);
	margin-top: 10px;
	display: inline-block;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 400;
	transition: border 0.3s ease-out;
	border: 1px solid var(--tag-bg);
}
.tag-item + .tag-item {
	margin-right: 5px;
}
.tag-item:hover {
	border: 1px solid var(--tag-color);
	color: var(--tag-color);
}
.section_blog .blogwp.media .image-blog {
	width: 190px;
	flex: 0 0 190px;
	border-radius: 8px;
	overflow: hidden;
}
.blogwp h3, .blogwp h3 a.link {
	font-size: 18px;
	line-height: 1.5;
	font-weight: 500;
   
}
.section_blog .blogwp.media h3,
.section_blog .blogwp.media h3 a.link {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    padding-top: 0px;
    padding-bottom: -3px;

    display: -webkit-box;        /* Cho phép cắt nhiều dòng */
    -webkit-line-clamp: 2;       /* Giới hạn tối đa 2 dòng */
    -webkit-box-orient: vertical;/* Đặt hướng dọc */
    overflow: hidden;            /* Ẩn phần chữ thừa */
    text-overflow: ellipsis;     /* Thêm dấu ... */
}

.section_blog .blogwp.media .button_custome_35.link {
	display: none;
} 
.blogwp .card-body p {
	font-size: 14px;
	color: #727272;
}
.blogwp .media .media-body {
  display: none !important ;
 font-size: 12px !important ;
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: -5px;
}
.blogwp .button_custome_35.link {
	display: block;
	margin-top: 10px;
}
/*
.blogwp .content_blog a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
*/
.blogwp .content_blog .art-summary {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.section_brand .item {
	transition: transform .3s ease;
}
.section_brand .item:hover {
	transform: scale(1.1);
}
@media (max-width: 991px) {
	.home-banner-group {
		display: block;
	}
}
@media (max-width: 767px) {	
	.blog-list {
		//display: grid;
		//grid-template-columns: 1fr 1fr;
		//grid-gap: 10px;
	}
	.blogwp {
		display: block;
	}
	.blogwp.media + * {
		margin-top: 0;
		border-top: none;
		padding-top: 0;
	}
	.section_blog .blogwp.media .image-blog {
		width: 100%;
		flex: 0 0 100%;
		display: block;
		margin-bottom: 5px;
	}
}
@media (max-width: 320px) {
	.section_product_top .tab-content.current .row, .flashsale .row {
		--percent: 70%;
	}
} 

.section_product_tag .slick-list {
  background: #fff !important ;
  padding: 10px ;  
 
}
.section_product_tag .product-list {
	margin-left: -9px!important;
	margin-right: -12px!important;
}
@media (max-width: 991px) {
	.flashsale .row.one-row {
		flex-wrap: nowrap;
		display: flex;
		overflow: auto;
		justify-content: start;
	}
	.flashsale .row:not(.one-row) .flashsale__item {
		-ms-flex: 0 0 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}
	.flashsale .row:not(.one-row) {
		grid-template-columns: repeat(4, 25%);
	}
}
@media (max-width: 767px) {
	.flashsale .row:not(.one-row) {
		grid-template-columns: repeat(2, 50%);
	}
}

.heading-bar__title, .heading-bar__title a {
	font-size: 24px !important ;
	font-weight: bold;
  line-height: 1.2;
 margin-bottom:  0px  !important  ;  
  display: block; /* Ensure the anchor tag behaves like a block element */
 


  
}

.blogwp.clearfix.media {
    flex-wrap: wrap;
}

.section_blog .blogwp.media .image-blog{
    width: 100%;
    flex: 0 0 100%;
    overflow: initial;
}
.section_blog .heading-bar__title, .section_blog .heading-bar__title a {
	font-size: 24px !important ;
	font-weight: bold;
  line-height: 1.2;
  
}


.main-wrapper {
  display: flex;
  flex-direction: column;
}

.blog-aside-container {
  order: 1;
  background: #f9f9f9;
  padding: 20px;
  z-index: 10;
}

.right-content {
  order: 2;
  padding: 20px;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
}

.blog-aside-container {
  order: 1;
  background: #f9f9f9;
  padding: 20px;
  z-index: 10;
}

.right-content {
  order: 2;
  padding: 20px;
}



<style>  
/* ================= Scrollbar tuỳ chỉnh cho flashsale / promo-box ================= */
.section_flashsale .category-products,
.promo-box-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;  /* mượt trên iOS */
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: #ff0 #f0f0f0;     /* thumb vàng, track xám */
}

/* Chrome, Edge, Safari */
.section_flashsale .category-products::-webkit-scrollbar,
.promo-box-wrapper::-webkit-scrollbar {
  height: 6px;
}
.section_flashsale .category-products::-webkit-scrollbar-thumb,
.promo-box-wrapper::-webkit-scrollbar-thumb {
  background-color: #ff0;
  border-radius: 3px;
}
.section_flashsale .category-products::-webkit-scrollbar-track,
.promo-box-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
}
</style>  

