* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #111;
  color: #fff;
  line-height: 1.6;
}

header {
  background: #000;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #c00;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  height: 80px;
  width: auto;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

nav a:hover {
  color: #c00;
}

.cart-icon {
  cursor: pointer;
  font-size: 1.5rem;
  position: relative;
}

#cart-count {
  background: #c00;
  color: white;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  position: absolute;
  top: -10px;
  right: -10px;
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero.jpg') center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px #000;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.btn {
  background: #c00;
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #a00;
}

.about, .shop, .contact {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  border-bottom: 3px solid #c00;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #222;
  border: 2px solid #333;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #c00;
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.4rem;
}

.product-card .price {
  color: #c00;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.product-card p {
  padding: 0 1rem;
  color: #ccc;
  font-size: 0.95rem;
}

.product-card button {
  margin: 1rem;
}

.contact form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input, .contact textarea {
  padding: 0.8rem;
  border: 1px solid #444;
  background: #222;
  color: #fff;
  border-radius: 5px;
}

footer {
  text-align: center;
  padding: 2rem;
  background: #000;
  border-top: 3px solid #c00;
  margin-top: 3rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.modal-content {
  background: #222;
  margin: 10% auto;
  padding: 2rem;
  border: 2px solid #c00;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}

.cart-total {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 1rem 0;
  text-align: right;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .logo {
    height: 60px;
  }
}
