mkcart / frontend /src /components /Header.css
Kumar
updated
c2efbe6
.Premium-header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
transition: all 0.3s ease;
}
.Premium-navbar {
background: rgba(255, 255, 255, 0.021);
backdrop-filter: blur(30px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding: 10px 0;
min-height: 48px;
transition: all 0.3s ease;
}
.Premium-header.scrolled .Premium-navbar {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(40px);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding: 10px 0;
min-height: 40px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.navbar-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.brand-container {
position: relative;
}
.brand-link {
display: flex;
align-items: center;
gap: 15px;
text-decoration: none;
color: white;
}
.logo-wrapper {
position: relative;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
}
.brand-logo {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 0 20px rgba(246, 211, 101, 0.5));
transition: all 0.3s ease;
z-index: 2;
position: relative;
}
.logo-glow-effect {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80px;
height: 80px;
background: radial-gradient(circle, rgba(246, 211, 101, 0.3) 0%, transparent 70%);
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease;
animation: pulse 3s ease-in-out infinite;
}
.brand-container:hover .logo-glow-effect {
opacity: 1;
}
.logo-particles {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100px;
height: 100px;
pointer-events: none;
}
.particle {
position: absolute;
width: 4px;
height: 4px;
background: radial-gradient(circle, #f6d365, transparent);
border-radius: 50%;
opacity: 0;
animation: particleFloat 4s ease-in-out infinite;
}
.particle-1 {
top: 0;
left: 50%;
animation-delay: 0s;
}
.particle-2 {
top: 25%;
right: 0;
animation-delay: 0.5s;
}
.particle-3 {
bottom: 0;
left: 50%;
animation-delay: 1s;
}
.particle-4 {
top: 25%;
left: 0;
animation-delay: 1.5s;
}
.particle-5 {
top: 50%;
right: 25%;
animation-delay: 2s;
}
.particle-6 {
top: 50%;
left: 25%;
animation-delay: 2.5s;
}
@keyframes particleFloat {
0%,
100% {
opacity: 0;
transform: translateY(0) scale(0);
}
50% {
opacity: 1;
transform: translateY(-20px) scale(1);
}
}
.brand-text {
font-size: 1.8rem;
font-weight: 800;
letter-spacing: -0.5px;
text-shadow: 0 0 30px rgba(246, 211, 101, 0.5);
}
.desktop-nav {
display: flex;
align-items: center;
gap: 30px;
flex: 1;
justify-content: space-between;
margin-left: 40px;
}
.search-wrapper {
flex: 1;
max-width: 500px;
}
.nav-items {
display: flex;
align-items: center;
gap: 20px;
}
.nav-item-Premium {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 20px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 25px;
color: white;
text-decoration: none;
font-weight: 600;
font-size: 0.9rem;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.nav-item-Premium:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
color: white;
text-decoration: none;
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.nav-glow {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(246, 211, 101, 0.2));
border-radius: 25px;
opacity: 0;
transition: opacity 0.3s ease;
}
.nav-item-Premium:hover .nav-glow {
opacity: 1;
}
.notification-container {
position: relative;
}
.notification-btn {
position: relative;
width: 45px;
height: 45px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.notification-btn:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}
.notification-badge {
position: absolute;
top: -5px;
right: -5px;
background: linear-gradient(135deg, #ff6b6b, #ff5252);
color: white;
font-size: 11px;
font-weight: bold;
padding: 2px 6px;
border-radius: 10px;
min-width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
animation: pulse 2s infinite;
}
.notification-dropdown {
position: absolute;
top: 100%;
right: 0;
margin-top: 10px;
width: 320px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(30px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 20px;
overflow: hidden;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.notification-header {
padding: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.notification-header h4 {
color: white;
font-size: 1.1rem;
font-weight: 600;
margin: 0;
}
.notification-list {
max-height: 300px;
overflow-y: auto;
}
.notification-item {
padding: 15px 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
transition: background 0.2s ease;
}
.notification-item:hover {
background: rgba(255, 255, 255, 0.05);
}
.notification-item p {
color: white;
font-size: 0.9rem;
margin: 0 0 5px 0;
line-height: 1.4;
}
.notification-time {
color: rgba(255, 255, 255, 0.6);
font-size: 0.8rem;
}
.wishlit-btn {
position: relative;
width: 45px;
height: 45px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
box-sizing: border-box;
}
.wishlit-btn:hover {
background: rgba(255, 107, 107, 0.2);
border-color: rgba(255, 107, 107, 0.5);
color: #ff6b6b;
box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}
.wishlit-badge {
position: absolute;
top: -5px;
right: -5px;
background: linear-gradient(135deg, #ff6b6b, #ff5252);
color: white;
font-size: 11px;
font-weight: bold;
padding: 2px 6px;
border-radius: 10px;
min-width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
animation: pulse 2s infinite;
}
.wishlist-badge.hidden {
opacity: 0;
}
.user-menu .dropdown-toggle {
background: transparent !important;
border: none !important;
padding: 0 !important;
}
.user-dropdown-trigger {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 16px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 25px;
color: white;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.user-dropdown-trigger:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.user-avatar {
width: 32px;
height: 32px;
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}
.user-name {
font-weight: 600;
font-size: 0.9rem;
text-transform: capitalize;
}
.user-name-gradient {
font-weight: 700;
font-size: 1rem;
text-transform: capitalize;
background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
background-size: 200% 200%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: gradientShift 3s ease infinite;
letter-spacing: 0.5px;
text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
transition: all 0.3s ease;
position: relative;
}
.user-name-gradient:hover {
animation: gradientShift 1.5s ease infinite;
text-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
transform: scale(1.05);
}
.user-name-gradient::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
background-size: 200% 200%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
opacity: 0;
transition: opacity 0.3s ease;
animation: gradientShift 2s ease infinite;
filter: blur(1px);
}
.user-name-gradient:hover::before {
opacity: 0.3;
}
.user-glow {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(122, 117, 45, 0.685), rgba(12, 70, 103, 0.2));
border-radius: 25px;
opacity: 0;
transition: opacity 0.3s ease;
}
.user-dropdown-trigger:hover .user-glow {
opacity: 1;
}
.Premium-dropdown .dropdown-menu {
background: rgba(255, 255, 255, 0.1) !important;
backdrop-filter: blur(30px) !important;
border: 1px solid rgba(255, 255, 255, 0.2) !important;
border-radius: 20px !important;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
padding: 10px !important;
margin-top: 10px !important;
min-width: 200px !important;
}
.dropdown-item-Premium {
display: flex !important;
align-items: center !important;
gap: 12px !important;
padding: 12px 16px !important;
background: transparent !important;
border: none !important;
border-radius: 15px !important;
color: white !important;
transition: all 0.3s ease !important;
font-weight: 500 !important;
text-decoration: none !important;
}
.dropdown-item-Premium:hover {
background: rgba(255, 255, 255, 0.1) !important;
color: white !important;
transform: translateX(5px) !important;
}
.dropdown-item-Premium.logout:hover {
background: rgba(255, 107, 107, 0.2) !important;
color: #ff6b6b !important;
}
.login-btn-Premium {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 24px;
background: linear-gradient(135deg, #f6d365, #fda085);
color: #1a1a2e;
text-decoration: none;
border-radius: 25px;
font-weight: 600;
font-size: 0.9rem;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: 0 5px 20px rgba(246, 211, 101, 0.3);
}
.login-btn-Premium:hover {
color: #1a1a2e;
text-decoration: none;
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(246, 211, 101, 0.5);
}
.btn-shimmer {
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
transition: left 0.6s;
}
.login-btn-Premium:hover .btn-shimmer {
left: 100%;
}
.cart-wrapper {
position: relative;
}
.cart-link-Premium {
text-decoration: none;
color: white;
display: block;
}
.cart-icon-container {
position: relative;
width: 50px;
height: 50px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
overflow: visible !important;
}
.cart-icon-container:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}
.cart-icon {
color: white;
transition: all 0.3s ease;
z-index: 2;
}
.cart-badge-Premium {
position: absolute;
top: -5px;
right: -5px;
background: linear-gradient(135deg, #ff6b6b, #ff5252);
color: #fff;
font-size: 12px;
font-weight: bold;
padding: 2px 6px;
border-radius: 10px;
min-width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
z-index: 99;
pointer-events: none;
}
.cart-pulse {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
border-radius: 50%;
animation: cartPulse 2s ease-in-out infinite;
}
@keyframes cartPulse {
0%,
100% {
transform: translate(-50%, -50%) scale(1);
opacity: 0.7;
}
50% {
transform: translate(-50%, -50%) scale(1.2);
opacity: 0.3;
}
}
.mobile-menu-toggle {
display: none;
width: 45px;
height: 45px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
color: white;
cursor: pointer;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.mobile-menu-toggle:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}
.mobile-menu {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(30px);
border-top: 1px solid rgba(255, 255, 255, 0.1);
overflow: hidden;
}
.mobile-menu-content {
padding: 20px;
}
.mobile-search {
margin-bottom: 20px;
}
.mobile-nav-items {
display: flex;
flex-direction: column;
gap: 10px;
}
.mobile-nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 15px 20px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 15px;
color: white;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
cursor: pointer;
}
.mobile-nav-item:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
color: white;
text-decoration: none;
transform: translateX(5px);
}
@media (max-width: 1024px) {
.desktop-nav {
gap: 20px;
margin-left: 20px;
}
.nav-items {
gap: 15px;
}
.search-wrapper {
max-width: 400px;
}
}
@media (max-width: 768px) {
.Premium-navbar {
padding: 12px 0;
}
.navbar-container {
padding: 0 15px;
}
.desktop-nav {
display: none;
}
.mobile-menu-toggle {
display: flex;
}
.brand-text {
font-size: 1.5rem;
}
.logo-wrapper {
width: 40px;
height: 40px;
}
.logo-img {
width: 28px;
height: 28px;
}
.mobile-header-controls {
display: flex !important;
align-items: center;
gap: 8px;
position: absolute;
top: 12px;
right: 16px;
z-index: 1200;
}
.mobile-profile-dropdown {
display: none !important;
}
}
@media (min-width: 769px) {
.mobile-header-controls {
display: none !important;
}
}
@media (max-width: 576px) {
.brand-text {
display: none;
}
.notification-dropdown {
width: 280px;
right: -20px;
}
}
@keyframes pulse {
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.1);
opacity: 0.8;
}
}
@keyframes gradientShift {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes glow {
0%,
100% {
box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}
50% {
box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
}
}
.Premium-header::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: none !important;
opacity: 0 !important;
transition: opacity 0.3s ease;
pointer-events: none;
}
.Premium-header.scrolled::before {
opacity: 0 !important;
}
.nav-item-Premium::after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background: linear-gradient(90deg, #667eea, #f6d365);
transition: all 0.3s ease;
transform: translateX(-50%);
}
.nav-item-Premium:hover::after {
width: 80%;
}
.nav-item-Premium:focus,
.notification-btn:focus,
.wishlist-btn:focus,
.mobile-menu-toggle:focus {
outline: 2px solid rgba(102, 126, 234, 0.5);
outline-offset: 2px;
}
@media (prefers-contrast: high) {
.Premium-navbar {
background: rgba(0, 0, 0, 0.9);
border-bottom: 2px solid white;
}
.nav-item-Premium,
.notification-btn,
.wishlist-btn {
border: 2px solid white;
}
}
@media (prefers-reduced-motion: reduce) {
.particle,
.cart-pulse,
.logo-glow-effect {
animation: none;
}
.Premium-header,
.nav-item-Premium,
.cart-icon-container {
transition: none;
}
}
.notification-container, .wishlist-container {
display: flex;
align-items: center;
margin-right: 8px;
}
.logo-img {
width: 84px;
height: 40px;
object-fit: contain;
display: block;
}