html Copy code
<!-- Header Section -->
<header class="header">
<div class="header-container">
<div class="logo">
<a href="/">
<img src="logo.svg" alt="Desire & Delight" width="180" height="40">
</a>
</div>
<nav class="main-nav">
<ul class="nav-links">
<li><a href="/shop">Shop</a></li>
<li><a href="/categories">Categories</a></li>
<li><a href="/collections">Collections</a></li>
<li><a href="/about">Our Story</a></li>
</ul>
</nav>
<div class="header-actions">
<div class="search-bar">
<input type="text" placeholder="Search toys...">
<button type="submit">🔍</button>
</div>
<div class="user-nav">
<a href="/account" class="icon-link">👤</a>
<a href="/cart" class="icon-link">🛒<span class="cart-count">2</span></a>
<a href="/wishlist" class="icon-link active">❤️<span class="wishlist-count">5</span></a>
</div>
</div>
</div>
</header>
<style>
.header {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
padding: 1rem 2rem;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.header-container {
max-width: 1400px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo img {
filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}
.nav-links {
display: flex;
gap: 2.5rem;
list-style: none;
}
.nav-links a {
color: #fff;
text-decoration: none;
font-size: 1.1rem;
position: relative;
transition: all 0.3s ease;
}
.nav-links a:hover {
color: #ff6b6b;
}
.nav-links a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 0;
background: linear-gradient(90deg, #ff6b6b 0%, #ff8e72 100%);
transition: width 0.3s ease;
}
.nav-links a:hover::after {
width: 100%;
}
.header-actions {
display: flex;
align-items: center;
gap: 1.5rem;
}
.search-bar {
position: relative;
}
.search-bar input {
padding: 0.6rem 1rem;
border-radius: 25px;
border: none;
width: 220px;
background: rgba(255,255,255,0.1);
color: white;
backdrop-filter: blur(5px);
transition: all 0.3s ease;
}
.search-bar input:focus {
outline: none;
background: rgba(255,255,255,0.15);
width: 260px;
}
.icon-link {
color: white;
font-size: 1.4rem;
position: relative;
transition: transform 0.2s ease;
}
.icon-link:hover {
transform: translateY(-2px);
}
.icon-link.active {
color: #ff6b6b;
}
.cart-count, .wishlist-count {
position: absolute;
top: -8px;
right: -8px;
background: #ff6b6b;
color: white;
font-size: 0.7rem;
padding: 0.2rem 0.5rem;
border-radius: 10px;
font-weight: bold;
}
@media (max-width: 1024px) {
.nav-links {
gap: 1.5rem;
}
.search-bar input {
width: 180px;
}
}
@media (max-width: 768px) {
.header {
padding: 1rem;
}
.nav-links {
display: none;
}
.header-container {
flex-wrap: wrap;
}
.header-actions {
order: 3;
width: 100%;
justify-content: space-between;
margin-top: 1rem;
}
}
</style>
The design balances sensuality with sophistication through color choices (deep blues with passionate red accents) and subtle animations. All interactive elements have smooth transitions for premium UX.