Experiment 1
Experiment 1
styles.css
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
header {
background-color: #131921;
color: white;
}
.header-top {
display: flex;
align-items: center;
padding: 10px 20px;
gap: 20px;
}
.logo {
font-size: 24px;
font-weight: bold;
color: white;
}
.search-bar {
flex: 1;
display: flex;
max-width: 700px;
}
.search-bar input {
width: 100%;
padding: 10px;
border: none;
border-radius: 4px 0 0 4px;
}
.search-bar button {
padding: 0 10px;
background: #febd69;
border: none;
border-radius: 0 4px 4px 0;
cursor: pointer;
}
.header-right {
display: flex;
gap: 20px;
align-items: center;
}
.nav-item {
display: flex;
flex-direction: column;
font-size: 12px;
}
.nav-item strong {
font-size: 14px;
}
.cart {
display: flex;
align-items: center;
gap: 5px;
}
.header-bottom {
background-color: #232f3e;
padding: 8px 20px;
display: flex;
gap: 20px;
}
.header-bottom a {
color: white;
text-decoration: none;
font-size: 14px;
}
.hero {
width: 100%;
height: 600px;
overflow: hidden;
position: relative;
}
.hero img {
width: 100%;
height: 100%;
object-fit: cover;
}
.product-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
padding: 20px;
margin-top: -200px;
position: relative;
}
.product-card {
background: white;
padding: 20px;
border-radius: 4px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.product-card h2 {
font-size: 21px;
margin-bottom: 15px;
}
.product-card img {
width: 100%;
height: 200px;
object-fit: cover;
margin-bottom: 15px;
}
.product-card a {
color: #007185;
text-decoration: none;
font-size: 14px;
}
.product-card a:hover {
color: #c7511f;
text-decoration: underline;
}
.header-right {
display: none;
}
}
footer {
background-color: #232f3e;
color: white;
padding: 30px 0;
margin-top: 40px;
}
.footer-content {
max-width: 1000px;
margin: 0 auto;
text-align: center;
}
.footer-links {
margin-bottom: 10px;
}
.footer-links a {
color: white;
text-decoration: none;
margin: 0 10px;
font-size: 14px;
}
.footer-links a:hover {
text-decoration: underline;
}
.footer-copyright {
font-size: 12px;
color: #ddd;
}