:root {
  --bg: #ffffff;
  --text: #111;
  --card: #f4f4f4;
  --accent: #25d366;
  --shadow: rgba(0, 0, 0, 0.1);
}

body.dark {
  --bg: #121212;
  --text: #f9f9f9;
  --card: #1e1e1e;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  transition: background 0.3s ease;
}

/* Header */
.header {
  background: var(--card);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Sidebar */
.sidebar {
  background: var(--card);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem;
  max-width: 200px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  margin: 0.5rem 0;
  cursor: pointer;
}

/* Hero */
.hero {
  max-width: 1000px;
  margin: 1rem auto;
}
.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1rem;
  max-width: 1200px;
  margin: auto;
}
.product-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow);
  text-align: center;
}
.product-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
}
.product-card h3 {
  margin: 0.5rem 0;
}
.product-card span {
  font-weight: bold;
  display: block;
  margin: 0.5rem 0;
}
.product-card button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: var(--card);
  margin-top: 2rem;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .sidebar.active {
    display: block;
    position: absolute;
    left: 0;
    top: 60px;
    z-index: 100;
    background: var(--card);
    width: 100%;
  }
}
