/* Sample storefront — live try-on playground */

.demo-shop-page {
  min-height: 100svh;
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(26, 86, 214, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 30% at 0% 20%, rgba(26, 86, 214, 0.04), transparent 50%),
    var(--background);
}

.demo-shop-page .site-header {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.demo-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.demo-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 640px;
}

.demo-hero h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.demo-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.demo-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.demo-notice.is-ok {
  border-color: color-mix(in srgb, #34d399 35%, var(--border));
  background: color-mix(in srgb, #ecfdf5 70%, white);
  color: #047857;
}

.demo-notice.is-error {
  border-color: color-mix(in srgb, #f43f5e 30%, var(--border));
  background: color-mix(in srgb, #fff1f2 75%, white);
  color: #be123c;
}

.demo-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-setup {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px dashed color-mix(in srgb, var(--primary-soft) 50%, var(--border));
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--primary-light) 35%, white);
}

.demo-setup.is-open {
  display: grid;
}

.demo-setup .field {
  margin: 0;
}

.demo-setup .field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.demo-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration) ease;
}

.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.demo-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: color-mix(in srgb, var(--surface-raised) 80%, white);
  overflow: hidden;
}

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

.demo-card-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-hover);
  font-size: 11px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.demo-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  flex: 1;
}

.demo-card-body h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.demo-card-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.demo-card-price {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.demo-card .btn {
  width: 100%;
  margin-top: auto;
  border-radius: 999px;
  font-weight: 800;
}

.demo-card .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.demo-footnote {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 720px) {
  .demo-setup {
    grid-template-columns: 1fr;
  }

  .demo-setup .btn {
    width: 100%;
  }

  .demo-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-notice-actions .btn {
    flex: 1;
  }
}
