mkcart / frontend /src /styles /Header.css
Kumar
updated
c2efbe6
.modern-header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
}
.modern-navbar {
background: rgba(255, 255, 255, 0.1) !important;
backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding: 15px 0;
transition: all 0.3s ease;
}
.modern-navbar::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
z-index: -1;
}
.logo-container {
position: relative;
display: inline-block;
}
.logo-img {
height: 80px;
width: auto;
filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
transition: all 0.3s ease;
}
.logo-glow {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(255, 107, 107, 0.3) 0%, transparent 70%);
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease;
}
.logo-container:hover .logo-glow {
opacity: 1;
}
.modern-toggler {
border: none;
background: none;
padding: 10px;
position: relative;
width: 40px;
height: 40px;
}
.toggler-line {
display: block;
width: 25px;
height: 3px;
background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
margin: 5px auto;
border-radius: 2px;
transition: all 0.3s ease;
}
.modern-toggler:not(.collapsed) .toggler-line:nth-child(1) {
transform: rotate(45deg) translate(6px, 6px);
}
.modern-toggler:not(.collapsed) .toggler-line:nth-child(2) {
opacity: 0;
}
.modern-toggler:not(.collapsed) .toggler-line:nth-child(3) {
transform: rotate(-45deg) translate(6px, -6px);
}
.search-container {
flex: 1;
max-width: 500px;
margin: 0 20px;
}
.modern-search-container {
width: 100%;
}
.search-form {
display: flex;
gap: 10px;
align-items: center;
}
.search-input-container {
position: relative;
flex: 1;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 25px;
padding: 12px 20px;
transition: all 0.3s ease;
}
.search-input-container.focused {
border-color: rgba(255, 107, 107, 0.5);
box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}
.search-icon {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: rgba(255, 255, 255, 0.7);
transition: color 0.3s ease;
}
.search-input {
width: 100%;
background: none;
border: none;
outline: none;
color: white;
font-size: 14px;
padding-left: 35px;
}
.search-input::placeholder {
color: rgba(255, 255, 255, 0.5);
}
.search-glow {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
border-radius: 25px;
opacity: 0;
transition: opacity 0.3s ease;
}
.search-input-container:hover .search-glow {
opacity: 1;
}
.search-btn {
background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
color: white;
border: none;
padding: 12px 20px;
border-radius: 25px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.search-btn::before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}
.search-btn:hover::before {
left: 100%;
}
.view-all-btn {
background: linear-gradient(135deg, #45b7d1, #96ceb4);
color: white;
}
.login-btn {
background: linear-gradient(135deg, #ffeaa7, #fab1a0);
color: #2d3436;
}
.modern-dropdown .dropdown-toggle {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 25px;
color: white;
padding: 10px 20px;
}
.user-dropdown-title {
display: flex;
align-items: center;
gap: 8px;
}
.dropdown-item-modern {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 20px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: none;
color: white;
transition: all 0.3s ease;
}
.dropdown-item-modern:hover {
background: rgba(255, 107, 107, 0.2);
color: white;
}
.cart-link {
text-decoration: none;
color: white;
}
.cart-container {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 50%;
transition: all 0.3s ease;
}
.cart-icon {
color: white;
transition: all 0.3s ease;
}
.cart-badge {
position: absolute;
top: -5px;
right: -5px;
background: linear-gradient(135deg, #ff6b6b, #ff5252);
color: white;
font-size: 12px;
font-weight: bold;
padding: 4px 8px;
border-radius: 50%;
min-width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 10px rgba(255, 107, 107, 0.5);
}
.cart-glow {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(255, 107, 107, 0.3) 0%, transparent 70%);
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease;
}
.cart-container:hover .cart-glow {
opacity: 1;
}
.cart-container:hover {
transform: translateY(-2px);
box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}
@media (max-width: 768px) {
.modern-navbar {
padding: 10px 0;
}
.search-container {
margin: 15px 0;
order: 3;
width: 100%;
}
.navbar-nav {
flex-direction: column;
gap: 10px;
width: 100%;
}
.modern-btn {
width: 100%;
justify-content: center;
}
.cart-container {
width: 45px;
height: 45px;
}
}
@media (max-width: 576px) {
.logo-img {
height: 40px;
}
.search-input-container {
padding: 10px 15px;
}
.search-btn {
padding: 10px 15px;
font-size: 14px;
}
}