/*Begin class margin, padding Quyen dinh nghia */

.text_shadow {
text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}



@media (max-width: 767px) {
  /* Quyền thêm vào */
  .text-center-xs {
	text-align:center;
  }
}

.glow {
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
  }
}

.slide-xoay {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  background: -webkit-linear-gradient(to right, #2c5364, #203a43, #0f2027);
  overflow: hidden;
}

.scope {
  position: relative;
  width: 180px;
  height: 200px;
  transform-style: preserve-3d;
  animation: slid 120s linear infinite;
}

.scope span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 30deg)) translateZ(520px);
}
.scope span img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity:0.97;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  transition: 2s;
}
.scope span:hover img {
  transform: translateY(-5px) scale(1.2);
  opacity:1;
}
@keyframes slid {
  0% {
    transform: perspective(1200px) rotateY(0deg);
  }
  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}

.scope:hover{
    animation-play-state: paused;
}
/*scroll ticky che khuat*/
.anchor:target::before {
    content: "";
    display: block;
    height: 60px;
    margin: -60px 0 0;
}


@media (min-width: 576px) {
  .col-2half {
    flex: 0 0 auto;
    width: 20%;
  }

  .col-9half {
    flex: 0 0 auto;
    width: 80%;
  }

}


@media (min-width: 768px) {
  .col-md-2half {
    flex: 0 0 auto;
    width: 20%;
  }

  .col-md-9half {
    flex: 0 0 auto;
    width: 80%;
  }

}




.navbar .has-megamenu{position:static!important;}
.navbar .megamenu{left:0; right:0; width:100%; margin-top:0;  }

.current {
 background:yellow;
}

.current > a {
	background:#e6e6e6;
}

.carousel-indicators {
    position: relative;
}


.carousel-indicators [data-bs-target] {
    transition: opacity 0.3s ease;
	width:100%;
	height:auto;
}

.carousel-item {
    transition: transform 0.3s ease-in-out;
}

.tskt_border {
	
	border:1px solid #bbbbbb;
}

.video-san-pham {
	position:relative;
	width:100%;
	height:0;
	padding-bottom:56.25%;
}

.nav-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media screen and (max-width: 767px) {
	.dropdown-menu {

		display: block;
	}
	
	.mobile_an	{

		display: none;
	}
	
}

.list-group-item {
	padding-left:0px;
	padding-right:0px;
}
a:link {
  text-decoration: none;
}

input[type=text].search_input {
	float:right;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  background-image: url('searchicon.png');
  background-position: 10px 6px; 
  background-repeat: no-repeat;
  padding: 6px 0px 6px 40px;
  -webkit-transition: width 0.4s ease-in-out;
  transition: width 0.4s ease-in-out;
}

input[type=text].search_input:focus {
  width: 80%;
  position:absolute;
  top: 50px;
  right:50px;
  
}

.togglesearch{
  background: #E8E8E4;
  position: absolute;
  top: 54px;
  right:0px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  border-top:4px solid grey;
  display: none;
}

.togglesearch:before{
  content: "";
  position: absolute;
  top: -30px;
  right: 13px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 14px solid transparent;
  border-bottom: 14px solid grey;
}

.togglesearch input[type="text"]{

}

.togglesearch input[type="button"]{
  width: 280px;
  padding: 5px 0;
  background: #D80B15;
  color: #fff;
  margin-left: -6px;
  border: 1px solid #D80B15;
  outline: none;
  cursor: pointer;

}



.sidebar_shadow {
 box-shadow: 0 2px 4px 0 rgb(0 0 0 / 20%), 0 2px 4px 0 rgb(0 0 0 / 19%);
}

.product_info {
	border: 1px solid #FFF;
    overflow: hidden;
    text-align: center;
    background-color: white;
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 20%), 0 2px 4px 0 rgb(0 0 0 / 19%);
    margin-bottom: 25px;
	position:relative;
}

.product_info:hover {
    background: #ccc;
    box-shadow: 0 0 3px 0 #ccc;
}

.form-check-input[disabled] ~ .form-check-label, .form-check-input:disabled ~ .form-check-label {
    opacity: 1;
}

.video_youtube_1 {
	position: relative; 
	width: 100%; 
	height: 0; 
	padding-bottom: 56.25%;
}

.iframe_video_1 {
	position: absolute; 
	top: 0; 
	left: 0; 
	width: 100%; 
	height: 100%;
}

.icon_thuonghieu {
	position:absolute; 
	top:0; 
    left:0;
	opacity:0.8;
}

.gia_sp {
	color:brown;
}

.thong-so-ky-thuat {
	border: 1px solid grey;
	background: #f3f3f3
}

img {
	max-width:100%;
	height:auto;
}

.ratio-16x9 {
  @include media-breakpoint-up(md) {
    --bs-aspect-ratio: 250%; // 2x1
  }
}

@media (max-width: 576px) {
.ratio-16x9 {
    --bs-aspect-ratio: 133%; // 2x1
}
}

/* Tùy chỉnh tổng thể Sidebar */
.custom-sidebar {
  background: #ffffff;
}

/* Định dạng các nút tiêu đề lớn */
.sidebar-trigger {
  padding: 14px 18px;
  background-color: #f8f9fa;
  border: none;
  border-radius: 0;
  font-size: 0.88rem;
  color: #212529;
  letter-spacing: 0.3px;
  text-align: left;
  transition: background-color 0.2s ease;
}

.sidebar-trigger:hover,
.sidebar-trigger:focus {
  background-color: #f1f3f5;
  color: #212529;
  box-shadow: none;
}

/* Hiệu ứng xoay icon mũi tên khi collapse Đóng / Mở */
.sidebar-trigger .toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  color: #adb5bd;
}
.sidebar-trigger[aria-expanded="false"] .toggle-icon {
  transform: rotate(-90deg);
}

/* Định dạng các đường dẫn danh mục con */
.custom-sidebar .list-group-item {
  padding: 9px 20px;
  font-size: 0.9rem;
  color: #495057;
  border: none;
  background-color: transparent;
  transition: all 0.2s ease-in-out;
}

/* Hiệu ứng Hover lướt sang nhẹ */
.custom-sidebar .list-group-item:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
  padding-left: 24px;
}

/* Tạo thanh cuộn tinh tế riêng cho cột Thương Hiệu quá dài */
.sidebar-scrollable {
  max-height: 280px;
  overflow-y: auto;
}

/* Làm thanh cuộn mỏng đẹp trên Chrome/Safari */
.sidebar-scrollable::-webkit-scrollbar {
  width: 4px;
}
.sidebar-scrollable::-webkit-scrollbar-track {
  background: #f1f3f5;
}
.sidebar-scrollable::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 10px;
}

/* Phá bỏ position và chiều cao cố định của khung cũ để triệt tiêu khoảng trắng */
#bannerCarousel, 
#bannerCarousel .carousel-inner,
#bannerCarousel .carousel-item {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* Định dạng ảnh tự co giãn theo tỷ lệ gốc - KHÔNG BỊ CẮT */
.clean-banner-img {
  width: 100% !important;
  height: auto !important;
  max-height: 400px; /* Khống chế chiều cao tối đa trên Desktop để vừa vặn tầm mắt */
  object-fit: contain !important; /* Giữ nguyên toàn bộ khung ảnh, không cắt góc */
  background-color: #f8f9fa; /* Nền sáng nhẹ nếu ảnh chưa khít tỷ lệ khung */
}

/* Ép menu và slide chạm sát nhau */
.navbar {
  margin-bottom: 0 !important;
}
#bannerCarousel {
  margin-top: 0 !important;
}

/* Tùy chỉnh nút điều hướng tinh tế */
.custom-nav-btn {
  width: 5% !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#bannerCarousel:hover .custom-nav-btn {
  opacity: 0.7;
}

/* Tối ưu responsive cho màn hình nhỏ */
@media (max-width: 767.98px) {
  .clean-banner-img {
    max-height: 220px;
  }
}

/* Khung chứa tiêu đề danh mục - Thêm nền xám nhẹ và viền đậm bên trái */
.custom-section-header {
  border-left: 4px solid #0d6efd; /* Vạch xanh định vị thương hiệu phía bên trái */
  border-top: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  margin-top: 20px;
}

/* Riêng khối sản phẩm mới sẽ có vạch màu đỏ bắt mắt */
.custom-section-header:has(.text-danger) {
  border-left-color: #dc3545 !important;
}

/* Định kích cỡ chữ vừa vặn, không bị quá to */
.custom-section-header .section-title {
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

/* Nút Xem tất cả tinh giản dạng text link cao cấp */
.btn-view-all {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0d6efd;
  padding: 4px 10px;
  transition: all 0.2s ease-in-out;
}

.btn-view-all:hover {
  color: #0a58ca;
  text-decoration: underline !important;
}

.btn-view-all i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}
.btn-view-all:hover i {
  transform: translateX(3px); /* Mũi tên nhích nhẹ sang phải khi hover */
}

/* Hiệu ứng nhấp nháy cho icon tia sét Sản phẩm mới */
@keyframes pulseEffect {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
.animate-pulse {
  animation: pulseEffect 1.5s infinite ease-in-out;
}

/* Tùy chỉnh khung thẻ sản phẩm */
.product-card {
  transition: all 0.25s ease-in-out;
  background-color: #ffffff;
}

/* Hiệu ứng bay lên nhẹ và đậm bóng khi người dùng rê chuột vào */
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: #0d6efd !important; /* Đổi viền sang xanh công nghệ */
}

/* Khống chế khung ảnh cố định tỷ lệ chuẩn */
.product-img-wrapper {
  height: 180px; /* Chiều cao cố định chuẩn cho ảnh */
  overflow: hidden;
}

.custom-product-img {
  max-height: 165px;
  object-fit: contain; /* Giữ nguyên tỉ lệ ảnh gốc, không bóp méo, không mất góc */
  transition: transform 0.3s ease;
}

/* Phóng to ảnh nhẹ khi hover */
.product-card:hover .custom-product-img {
  transform: scale(1.04);
}

/* Tên sản phẩm: Giới hạn tối đa 2 dòng, nếu dài hơn tự động hiện dấu ... */
.product-title {
  font-size: 0.92rem;
  line-height: 1.4;
  height: 2.6rem; /* Khống chế chiều cao chữ để các ô luôn thẳng hàng nhau */
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card:hover .product-title a {
  color: #0d6efd !important; /* Tên khóa đổi sang màu xanh khi hover */
}

/* Định dạng tiền tệ nhỏ gọn */
.price-currency {
  font-size: 0.75rem;
  vertical-align: super;
  text-decoration: underline;
}

/* Tối ưu hiển thị trên màn hình điện thoại nhỏ */
@media (max-width: 575.98px) {
  .product-img-wrapper {
    height: 140px;
  }
  .custom-product-img {
    max-height: 125px;
  }
  .product-title {
    font-size: 0.85rem;
    height: 2.4rem;
  }
}