/*** Top-Navbar ***/
.top-navbar__left {
	display: flex;
	align-items: center;
	gap: 20px;
}

.top-navbar__logo {
	position: relative;
	display: inline-flex;
	overflow: hidden;
}

.top-navbar__logo::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -100%;
	width: 15px;
	height: 60px;
	background: hsla(0, 0%, 100%, .5);
	transform: skewX(-25deg);
	animation: logoFlash 1.5s ease-in-out infinite;
}

@keyframes logoFlash {
	0% {
		left: -100%;
	}
	
	100% {
		left: 100%;
	}
}

.top-navbar__logo img {
	max-height: 45px;
	height: 45px;
	width: auto !important;
}

.top-navbar__searchId {
	display: flex;
	align-items: center;
	position: relative;
}

.searchId-input {
	width: 250px;
	background-color: #f3f4f5;
	padding: 0 30px 0 10px;
	border: solid 1px #f3f4f5;
}

.searchId-icon {
	position: absolute;
	right: 10px;
	opacity: .6;
	transition: opacity 0.2s ease;
	cursor: pointer;
}

.searchId-icon:hover {
	opacity: 1;
}

.search-box:focus-within .searchId-icon {
  	opacity: 1;
}

.user-infor__avatar{
    position: relative;
          display: inline-flex;
          width: 35px;
          height: 35px;
          border-radius: 50%;
          font: 13px / 35px Helvetica, Arial, sans-serif;
          align-items: center;
          justify-content: center;
          text-align: center;
          user-select: none;
}

.top-navbar__icon {
    height: 35px;
    width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px #007991;
    border-radius: 100%;
}

.popup-default {
	position: absolute;
	background: #fff;
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	transform: translateY(40px);
	animation: _fadeIn_ ease 0.2s;
	transition: all ease-in-out 0.2s;
	overflow: hidden;
	padding: 5px 0;
	z-index: 99999;
}

.popup-default__title {
    font-size: 15px;
    padding: 5px 10px 10px;
    border-bottom: solid 1px rgba(0, 0, 0, .1);
    font-weight: 500;
    color: var(--maincolor);
}

.user-popup {
	display: none;
	min-width: 165px;
	inset: 0px 0px auto 0px;
}

.user-popup__balance {
    border-bottom: solid 1px #e6e6e6;
}

.user-popup .user-popup__item {
	display: flex; 
	align-items: center;
	padding: 5px 10px;
	transition: 0.2s all ease;
}

.user-popup .user-popup__item:hover {
	background-color: rgba(6,106,201,0.1);
	color: #096dd9;
}

.cart-popup {
    display: none;
    min-width: 350px;
    inset: 0px 0px auto auto;
}

.cart-popup__item {
    padding: 5px 0px;
    border-bottom: solid 1px rgba(0, 0, 0, .1);
}

.cart-popup__item img {
    width: 100px;
}

.cart-popup__button {
    background: var(--maincolor);
    color: #fff;
    line-height: 35px;
    margin: 10px 20px;
    text-align: center;
    
}

.nav-cart-badge {
   position: absolute;
	top: -3px;
	right: -3px;
	background: #ff4d4f;
	color: #fff;
	border-radius: 50%;
	font-size: 8px;
	font-weight: 500;
	display: flex;
	height: 16px;
	width: 16px;
	justify-content: center;
	align-items: center; 
}

.notify-count {
	position: absolute;
	top: -3px;
	right: -3px;
	background: #ff4d4f;
	color: #fff;
	border-radius: 50%;
	font-size: 10px;
	display: flex;
	height: 18px;
	width: 18px;
	justify-content: center;
	align-items: center;
}

.notify-popup {
	display: none;
	width: 320px !important;
	inset: 0px 0px auto auto;
}

.default-tab {
    position: relative;
    cursor: pointer;
    padding: 5px 0 10px;
  	text-align: center;
  	transition: all ease 0.2s;	
} 

.default-tab.active, .default-tab:hover {
	color: var(--maincolor);
}

.default-tab::after {
  	content: "";
  	position: absolute;
  	bottom: 0;
  	left: 0;
  	width: 100%;
  	height: 2px;
  	background: #007991;
  	transform: scaleX(0);
  	transform-origin: center;
  	transition: transform 0.25s ease, opacity 0.2s ease;
  	opacity: 0;
} 

.default-tab.active::after, .default-tab:hover::after {
  	transform: scaleX(1);
  	opacity: 1;
}

.default-content {
    display: none;
}

.default-content.active {
    display: block;
}

.notify-popup__tabs {
	display: flex;
	gap: 20px;
	font-size: 15px;
	padding: 0 10px;
	border-bottom: solid 1px rgba(0, 0, 0, .1);
	font-weight: 500;
}

.tab-count {
	background: #ff4d4f;
	color: #fff;
	font-size: 11px;
	padding: 3px 5px;
	border-radius: 3px;
}

.notify-item {
	padding: 5px 10px;
	border-bottom: solid 1px rgba(0, 0, 0, .1);
	transition: background 0.2s ease;
}

.notify-item:hover {
	background: #f3f3f3;
}

.notify-item__title {
	font-weight: 500;
	transition: color 0.2s ease;
}

.notify-item:hover .notify-item__title {
	color: #ff4d4f;
}

@media (max-width:1024px) {
	.user-infor__text {
		display: none;
	}
}

@media (max-width:768px) {
	.top-navbar {
		backdrop-filter: blur(25px);
		background: rgba(255, 255, 255, .5);
		position: sticky;
		top: 0;
		z-index: 2;
	}
	
	.top-navbar__left {
		justify-content: space-between;
		width: 100%;
	}
	
	.top-navbar__right {
		display: none;
	}
	
	.top-navbar__logo::before {
		display: none;
	}
	
	.main-row__mobi {
		top: 60px !important;
	}
}














/* Container quả chuông */
.noti-dropdown-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.noti-bell-btn {
    font-size: 20px;
    position: relative;
    padding: 8px;
}
/* Chấm đỏ đếm số thông báo */
.noti-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #f33e58;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
}
/* Hộp thoại dropdown */
.noti-dropdown-box {
    position: absolute;
    top: 40px;
    right: 0;
    width: 320px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    display: none; /* Ẩn mặc định */
    z-index: 999;
    overflow: hidden;
    font-family: Arial, sans-serif;
}
/* Class để kích hoạt hiển thị bằng JS */
.noti-dropdown-box.show {
    display: block;
}
.noti-dropdown-box h4 {
    margin: 0;
    padding: 12px;
    border-bottom: 1px solid #e4e6eb;
    font-size: 16px;
}
/* Danh sách item */
.noti-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    text-decoration: none;
    color: #1c1e21;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
    transition: background-color 0.2s;
}
.noti-item:hover {
    background-color: #f0f2f5 !important;
}
.noti-item-time {
    display: block;
    font-size: 11px;
    color: #65676b;
    margin-top: 4px;
}
/* Chấm xanh thông báo chưa đọc */
.unread-dot {
    width: 8px;
    height: 8px;
    background-color: #1877f2;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 8px;
}
.no-noti-text {
    text-align: center;
    color: #65676b;
    padding: 20px 0;
    margin: 0;
}