/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0c0b0f;
}

.btn-primary:hover {
  background: #e6b85c;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--bg-elevated);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-buy {
  background: var(--accent);
  color: #0c0b0f;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.btn-buy:hover {
  background: #e6b85c;
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 1rem;
}

/* ===== HERO ACTIONS (landing page) ===== */
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ===== APP NAV ===== */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 11, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-elevated);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent);
  color: #0c0b0f;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  font-weight: 500;
}

.nav-cta:hover {
  background: #e6b85c;
  color: #0c0b0f;
}

/* ===== PAGE COMMON ===== */
.page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-inner--wide {
  max-width: 1200px;
}

.page-header {
  margin-bottom: 3rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--fg-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

/* ===== ALERT ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.alert-error {
  background: var(--bad);
  color: #e8c4c4;
  border: 1px solid rgba(107, 74, 74, 0.5);
}

/* ===== UPLOAD FORM ===== */
.upload-form {
  max-width: 640px;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.required { color: var(--accent); }
.optional { font-weight: 300; text-transform: none; letter-spacing: 0; }

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--bg-elevated);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  line-height: 1.7;
}

/* File drop zone */
.file-drop {
  border: 2px dashed var(--bg-elevated);
  border-radius: 4px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s;
}

.file-drop:hover,
.file-drop.drag-over {
  border-color: var(--accent);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-drop-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.file-drop-icon { color: var(--fg-muted); }
.file-drop-text { font-size: 0.95rem; color: var(--fg-muted); }
.file-drop-hint { font-size: 0.8rem; color: var(--fg-muted); opacity: 0.6; }

.file-preview {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.file-preview img {
  max-height: 300px;
  max-width: 100%;
  border-radius: 2px;
  object-fit: contain;
  background: var(--bg-surface);
}

.remove-file {
  background: none;
  border: 1px solid var(--bg-elevated);
  color: var(--fg-muted);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-file:hover { border-color: var(--bad); color: #e8c4c4; }

/* Pricing preview */
.pricing-preview {
  background: var(--bg-surface);
  border: 1px solid var(--bg-elevated);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.pricing-tier {
  padding: 1rem;
  background: var(--bg-elevated);
  border-radius: 2px;
  text-align: center;
}

.pricing-tier.featured {
  border: 1px solid var(--accent);
}

.tier-size {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tier-dims {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

/* ===== GALLERY ===== */
.page-gallery { min-height: 80vh; }

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
}

.gallery-title-group {}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.25s, transform 0.25s;
}

.gallery-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-card:hover .card-image img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.card-cta {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.gallery-empty {
  text-align: center;
  padding: 6rem 2rem;
}

.gallery-empty-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.gallery-empty h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.gallery-empty p {
  color: var(--fg-muted);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ARTWORK DETAIL ===== */
.artwork-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 4rem;
  align-items: start;
}

.artwork-image-frame {
  background: var(--bg-surface);
  border: 1px solid var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.artwork-full-image {
  width: 100%;
  height: auto;
  display: block;
}

.artwork-meta-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.artwork-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.artwork-description {
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.product-section {
  margin-bottom: 2rem;
}

.product-section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--bg-elevated);
  background: var(--bg-surface);
  gap: 1rem;
}

.product-row:last-child { border-bottom: none; }
.product-row:hover { background: var(--bg-elevated); }

.product-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.artwork-guarantee {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--bg-elevated);
  border-radius: 4px;
}

.guarantee-item {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ===== SUCCESS PAGE ===== */
.page-success {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.success-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--bg-elevated);
  border-radius: 8px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--good);
  color: #c4e8cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}

.success-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.success-text {
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.success-artwork {
  margin-bottom: 2rem;
}

.success-thumb {
  max-width: 200px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.success-artwork-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.success-actions { display: flex; justify-content: center; gap: 1rem; }

/* ===== ERROR/404 ===== */
.page-error {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-message {
  color: var(--fg-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .artwork-layout {
    grid-template-columns: 1fr;
  }
  .artwork-image-frame { position: static; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .page-inner { padding: 2.5rem 1.25rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-header { flex-direction: column; align-items: flex-start; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 1.25rem; }
  .nav-links { gap: 1rem; }
}
