:root {
  --primary-color: #000000;
  --secondary-color: #f8f8f8;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --light-text-color: #777;
  --border-color: #e1e1e1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

ul {
  list-style: none;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  margin-left: 0.5rem;
  font-weight: 600;
}

nav ul {
  display: flex;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  padding: 0.5rem;
  transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--primary-color);
}

.cart {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Hero section */
.hero {
  height: 500px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600" viewBox="0 0 1200 600"><rect width="1200" height="600" fill="%232e8b57"/><path d="M0 400 Q 300 300, 600 400 T 1200 400 L 1200 600 L 0 600 Z" fill="%231e5b37"/></svg>');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #ff5252;
}

/* Featured products section */
.featured {
  padding: 4rem 5%;
}

.featured h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  height: 200px;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image svg {
  width: 100px;
  height: 100px;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-description {
  color: var(--light-text-color);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.add-to-cart {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover {
  background-color: #3a80d2;
}

/* Newsletter section */
.newsletter {
  background-color: var(--secondary-color);
  padding: 4rem 5%;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.newsletter p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

#newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

#newsletter-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
}

#newsletter-form button:hover {
  background-color: #3a80d2;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 3rem 5% 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
  font-size: 0.9rem;
  color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    margin-bottom: 1rem;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  #newsletter-form {
    flex-direction: column;
  }
  
  #newsletter-form input {
    border-radius: 4px;
    margin-bottom: 1rem;
  }
  
  #newsletter-form button {
    border-radius: 4px;
  }
}

@media (max-width: 480px) {
  nav ul li {
    margin: 0 0.5rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

