:root {
  --bg: #0f1115;
  --card: #151922;
  --muted: #9aa3b2;
  --text: #e8ecf1;
  --accent: #4f8cff;
  --accent-2: #2ecc71;
  --danger: #ff6b6b;
  --border: #232a36;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
}

.nav-link:hover { color: var(--text); }

.hero {
  text-align: center;
  padding: 40px 0 8px;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 28px;
}

.hero-subtitle {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 16px;
  padding: 24px 0 48px;
}

.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 30%), var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-media {
  position: relative;
  width: 100%;
  padding-top: 66%;
  overflow: hidden;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.soldout-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
}

.product-body {
  padding: 14px 14px 16px;
}

.product-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.price { color: var(--text); font-weight: 700; }
.stock-ok { color: var(--accent-2); }
.stock-low { color: #f1c40f; }
.stock-out { color: var(--danger); }

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  border-color: transparent;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Utils */
.hidden { display: none !important; }

/* Product detail */
.detail { padding: 28px 0 16px; }
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 800px) {
  .detail-wrap { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
.detail-media { position: relative; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.detail-media img { width: 100%; height: auto; display: block; }
.detail-info { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.detail-desc { color: var(--muted); }
.detail-specs { margin: 10px 0 0; padding-left: 18px; }
.reviews { padding: 8px 0 48px; }
.review-list { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.review-item { border-top: 1px solid var(--border); padding: 12px 0; }
.review-item:first-child { border-top: none; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-stars { color: #ffd166; letter-spacing: 1px; }
.muted { color: var(--muted); }

/* Admin styles removed for single page storefront */


