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

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #060608;
  font-family: 'Inter', sans-serif;
}

#store-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ===========================
   LOADING SCREEN
=========================== */
#store-loading {
  position: fixed;
  inset: 0;
  background: #060608;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.6s;
}
#store-loading.fade-out { opacity: 0; pointer-events: none; }

.loading-inner { text-align: center; }

.loading-logo {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.loading-logo span { color: #f07200; }

.loading-sub {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.loading-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}
.loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f07200, #ffaa44);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ===========================
   HUD
=========================== */
.store-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(6,6,8,0.9), transparent);
  z-index: 100;
  pointer-events: none;
}
.store-hud[hidden] { display: none; }

.hud-back {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #aaa;
  text-decoration: none;
  pointer-events: all;
  transition: color 0.15s;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}
.hud-back:hover { color: #fff; border-color: rgba(255,255,255,0.18); }

.hud-logo {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.hud-logo span { color: #f07200; }

.hud-controls {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: #555;
}

/* ===========================
   INSPECT PANEL
=========================== */
.inspect-panel {
  position: fixed;
  top: 50%;
  right: -380px;
  transform: translateY(-50%);
  width: 340px;
  background: rgba(12, 12, 14, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 28px;
  z-index: 200;
  backdrop-filter: blur(24px);
  transition: right 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.inspect-panel.open { right: 24px; }

.inspect-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 8px;
  color: #aaa;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.inspect-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.inspect-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f07200;
  margin-bottom: 8px;
}

.inspect-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.inspect-desc {
  font-size: 0.87rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 20px;
}

.inspect-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}

.inspect-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #ccc;
}
.inspect-meta-row svg { color: #f07200; flex-shrink: 0; }

.inspect-colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  cursor: default;
  transition: transform 0.15s, border-color 0.15s;
}
.color-dot:hover { transform: scale(1.2); border-color: rgba(255,255,255,0.5); }

.inspect-cta {
  display: block;
  text-align: center;
  padding: 13px;
  background: linear-gradient(135deg, #f07200, #ff9a3c);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.inspect-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===========================
   PRODUCT NAV DOTS
=========================== */
.product-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.product-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.product-dot:hover { background: rgba(255,255,255,0.5); transform: scale(1.3); }
.product-dot.active { background: #f07200; transform: scale(1.2); }

/* ===========================
   TOOLTIP
=========================== */
.model-tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(10,10,12,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .inspect-panel { width: calc(100vw - 32px); right: -110%; }
  .inspect-panel.open { right: 16px; }
  .hud-controls { display: none; }
}
