* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
}
.logo-container {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 10px;
position: absolute; top: 10px; left: 10px;
}
.logo {
max-width: 500px; margin-bottom: 10px;
}
.top-bar {
background-color: transparent;
color: #33BC27;
padding: 10px 0;
text-align: center;
font-family: 'Roboto', sans-serif;
margin-top: 10px; }
.top-bar ul {
list-style: none;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.top-bar ul li {
margin: 0 15px;
}
.top-bar ul li a {
color: #33BC27;
text-decoration: none;
font-weight: bold;
font-size: 14px;
}
.search-bar {
padding: 10px;
text-align: center;
margin: 0;
}
.search-bar form {
display: flex;
justify-content: center;
max-width: 600px;
margin: 0 auto;
border: 1px solid #ccc;
border-radius: 10px;
padding: 5px;
background-color: white;
}
.search-bar input[type="text"] {
padding: 8px;
font-size: 16px;
flex: 1;
border: none;
border-radius: 10px 0 0 10px;
outline: none;
}
.search-bar input[type="text"]:focus {
border: 1px solid #ccc;
}
.search-bar button {
padding: 8px 16px;
background-color: #33BC27;
color: white;
border: none;
cursor: pointer;
border-radius: 0 10px 10px 0;
display: flex;
align-items: center;
justify-content: center;
}
.search-bar button i {
font-size: 16px;
}
.search-bar button:hover {
background-color: #138509;
}
.navbar {
background-color: #33BC27;
border-radius: 10px;
margin: 0 20px;
}
.navbar ul {
list-style: none;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.navbar ul li {
position: relative;
margin: 0 20px;
}
.navbar ul li a {
color: white;
text-decoration: none;
font-size: 14px;
padding: 10px;
display: block;
border-radius: 10px;
font-weight: bold;
}
.navbar ul li a:hover {
background-color: #138509;
}
.navbar ul li ul.dropdown {
display: none;
position: absolute;
top: 100%;
left: 0;
background-color: #33BC27;
padding: 0;
min-width: 200px;
border-radius: 0 0 10px 10px;
z-index: 1000;
}
.navbar ul li:hover ul.dropdown {
display: block;
}
.navbar ul li ul.dropdown li {
margin: 0;
}
.navbar ul li ul.dropdown li a {
padding: 10px 20px;
white-space: nowrap;
border-radius: 0;
}
.navbar ul li ul.dropdown li a:hover {
background-color: #138509;
} .right-side {
position: absolute;
top: 70px; right: 70px; display: flex;
flex-direction: row;
align-items: center;
gap: 20px;
}
.right-side .cart,
.right-side .favorites {
position: relative;
}
.right-side a {
color: #33BC27;
text-decoration: none;
font-weight: bold;
font-size: 16px;
}
.right-side a i {
font-size: 24px;
}
.right-side a:hover {
color: #138509;
}
.cart-dropdown,
.favorites-dropdown {
display: none;
position: absolute;
top: 30px; right: 0;
background-color: white;
border: 1px solid #ccc;
border-radius: 10px;
padding: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
z-index: 1000;
}
.cart:hover .cart-dropdown,
.favorites:hover .favorites-dropdown {
display: block;
}
.cart-count {
position: absolute;
top: -10px;
right: -10px;
background-color: red;
color: white;
border-radius: 50%;
padding: 2px 6px;
font-size: 12px;
}