﻿html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  background: #f5f7fa;
  color: #1f2937;
}

main {
  padding-bottom: 3rem;
}

.card {
  border-radius: 1rem;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.dashboard-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.dashboard-primary-action {
  min-width: 12rem;
}

.dashboard-empty-state {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.wizard-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wizard-step-badge {
  min-width: 4rem;
  color: #1d4ed8;
}

.wizard-upload-tile {
  min-height: 18rem;
  padding: 2rem;
  border: 2px dashed #93c5fd;
  border-radius: 1.5rem;
  background: #eff6ff;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.wizard-upload-tile:hover {
  border-color: #2563eb;
  background: #dbeafe;
  transform: translateY(-1px);
}

.wizard-upload-tile-sm {
  min-height: 14rem;
}

.wizard-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 1.5rem;
}

.wizard-preview-frame {
  display: inline-flex;
  width: min(100%, 22rem);
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.wizard-preview-frame-sm {
  width: min(100%, 18rem);
}

.wizard-preview-image {
  width: 100%;
  height: auto;
  max-height: 14rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.wizard-placeholder {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.wizard-choice-panel {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.wizard-section-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

.wizard-option-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.wizard-option-grid-six {
  max-width: calc((180px * 6) + (1rem * 5));
  margin: 0 auto;
}

.wizard-option-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.wizard-option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  padding: 1rem;
  min-height: 5.5rem;
  border-radius: 1rem;
  border: 2px solid #dbeafe;
  background: #f8fbff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.wizard-option-card:hover {
  border-color: #60a5fa;
  background: #eff6ff;
  transform: translateY(-1px);
}

.btn-check:checked + .wizard-option-card {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.wizard-review-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.wizard-review-image {
  width: 100%;
  height: auto;
  max-height: 18rem;
  object-fit: cover;
  border-radius: 1rem;
}

.wizard-review-image-sm {
  max-height: 14rem;
}

@media (max-width: 1199.98px) {
  .wizard-option-grid-six {
    max-width: calc((180px * 3) + (1rem * 2));
  }
}

@media (max-width: 767.98px) {
  .wizard-option-grid {
    gap: 0.75rem;
  }

  .wizard-option-grid-six {
    max-width: calc((140px * 2) + 0.75rem);
  }

  .wizard-option-card {
    width: 140px;
  }
}

.product-edit-card {
  max-width: 1000px;
  margin: 0 auto;
}

.product-edit-photo-section {
  padding: 1rem;
}

.product-edit-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.product-edit-photo-card {
  padding: 0.75rem;
  border-radius: 1rem;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

.product-edit-photo-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 0.75rem;
}
