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

:root {
  --bg: #0a0a0a;
  --card: #141414;
  --text: #f0f0f0;
  --muted: #888;
  --accent: #bb86fc;
  --price: #03dac6;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

header {
  padding: 1rem;
  background: #000;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 10;
}

h1 { font-size: 1.5rem; }

#loading { padding: 2rem; text-align: center; color: var(--muted); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.product-card {
  background: var(--card);
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.carousel {
  position: relative;
  aspect-ratio: 1;
  background: #000;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-controls {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.carousel:hover .carousel-controls {
  opacity: 1;
}

.btn-nav {
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
}

.btn-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.indicators {
  position: absolute;
  bottom: 0.5rem;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #444;
  border: none;
  cursor: pointer;
}

.dot.active { background: var(--accent); }

.product-info { padding: 1rem; }

.product-name { font-size: 1.1rem; margin-bottom: 0.5rem; }

.product-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--price);
}

.single-image .carousel-controls { display: none; }
.single-image .indicators { display: none; }

@media (min-width: 600px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}