/* Variables */
:root {
  --primary-color: #4a90e2;
  --secondary-color: #ff6b6b;
  --light-color: #f5f5f5;
  --dark-color: #333;
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: var(--light-color);
  color: var(--dark-color);
}

/* Header */
header {
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: bold;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

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

#cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f5f7ff, #e8ecff);
  padding: 4rem 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
}

/* Sections */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

/* Products */
.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card img {
  width: 100%;
  border-radius: 10px;
}

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

.product-card p {
  font-size: 0.9rem;
  color: #555;
}

.product-card button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.product-card button:hover {
  background: var(--secondary-color);
}

/* Contact Form */
#contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact-form input,
#contact-form textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-family: inherit;
}

#contact-form button {
  padding: 0.8rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#contact-form button:hover {
  background: var(--secondary-color);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  padding: 2rem;
  text-align: center;
}

/* Responsive */
@media (max-width:768px){
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
}
