/* Store Builder styles */

.sb-hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
  background: var(--bg, #0a0a0f);
}

.sb-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.sb-title-accent { color: var(--accent, #e94560); }

.sb-subtitle {
  color: #8b8b9e;
  margin-top: 0.75rem;
  font-size: 1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.sb-section-label {
  color: #8b8b9e;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.5rem 1rem 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Product Grid */
.sb-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 0 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.sb-product-card {
  background: #13131f;
  border: 1px solid #1e1e30;
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.sb-product-card:hover {
  border-color: #e94560;
  transform: translateY(-2px);
  background: #1a1a2a;
}

.sb-product-card.sb-selected {
  border-color: #e94560;
  background: #1a1a2a;
  box-shadow: 0 0 0 1px #e94560;
}

.sb-product-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sb-score-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sb-product-cat {
  font-size: 0.7rem;
  color: #8b8b9e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sb-margin-pill {
  margin-left: auto;
  background: rgba(233, 69, 96, 0.15);
  color: #e94560;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
}

.sb-product-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.sb-product-price {
  font-size: 0.75rem;
  color: #6b6b7e;
  font-family: 'DM Mono', monospace;
}

.sb-select-hint {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: #e94560;
  opacity: 0;
  transition: opacity 0.15s;
}

.sb-product-card:hover .sb-select-hint { opacity: 1; }

/* Generator Panel */
.sb-generator-panel {
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}

.sb-product-selected {
  font-size: 0.9rem;
  color: #8b8b9e;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #13131f;
  border-radius: 8px;
  border: 1px solid #1e1e30;
}

.sb-product-selected strong { color: #fff; }

.sb-build-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sb-build-btn {
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: background 0.15s, transform 0.1s;
}

.sb-build-btn:hover:not(:disabled) { background: #d63652; transform: translateY(-1px); }
.sb-build-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.sb-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #8b8b9e;
  font-size: 0.85rem;
}

.sb-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #1e1e30;
  border-top-color: #e94560;
  border-radius: 50%;
  animation: sb-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes sb-spin { to { transform: rotate(360deg); } }

/* Results */
#resultsPanel {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.sb-result-card {
  background: #13131f;
  border: 1px solid #1e1e30;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.sb-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1e1e30;
}

.sb-result-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e94560;
}

.sb-json-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sb-copy-btn {
  background: #1e1e30;
  color: #8b8b9e;
  border: 1px solid #2a2a3d;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sb-copy-btn:hover { background: #2a2a3d; color: #fff; }

.sb-download-btn {
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}

.sb-download-btn:hover { background: #d63652; }

/* Brand Grid */
.sb-brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #1e1e30;
}

@media (max-width: 600px) {
  .sb-brand-grid { grid-template-columns: 1fr; }
}

.sb-field-group {
  display: contents;
}

.sb-field {
  background: #13131f;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1e1e30;
}

.sb-field-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a4a5e;
  margin-bottom: 0.4rem;
}

.sb-field-val {
  color: #d1d1e0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.sb-color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 0.4rem;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Product Copy */
#productCopySection .sb-field,
#aboutSection .sb-field {
  background: #13131f;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1e1e30;
}

#productCopySection .sb-field:last-child,
#aboutSection .sb-field:last-child {
  border-bottom: none;
}

.sb-bullets {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.sb-bullets li {
  color: #d1d1e0;
  font-size: 0.875rem;
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.sb-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #e94560;
  font-size: 0.8rem;
}

.sb-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.sb-faq-item {
  background: #0e0e1a;
  border-radius: 6px;
  padding: 0.75rem;
}

.sb-faq-q {
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.sb-faq-a {
  color: #8b8b9e;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* JSON Preview */
.sb-json-card { }

.sb-json-preview {
  padding: 1rem 1.25rem;
  overflow: auto;
  max-height: 500px;
}

.sb-json-code {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: #8b8b9e;
  line-height: 1.6;
  white-space: pre;
}

/* Reset */
.sb-reset-wrap {
  text-align: center;
  padding: 1.5rem 0;
}

.sb-reset-btn {
  background: transparent;
  color: #8b8b9e;
  border: 1px solid #1e1e30;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.sb-reset-btn:hover {
  border-color: #8b8b9e;
  color: #fff;
}