:root {
  --cream: #faf6f1;
  --ink: #2b2622;
  --ink-soft: #6b6259;
  --terracotta: #b5643f;
  --terracotta-dark: #98502f;
  --line: #e7ddd2;
  --card-bg: #ffffff;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, sans-serif;
  line-height: 1.5;
}

h1, h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin: 0;
}

/* Header */
.site-header {
  text-align: center;
  padding: 56px 20px 32px;
}

.site-header h1 {
  font-size: 2.4rem;
  letter-spacing: 0.02em;
}

.tagline {
  color: var(--ink-soft);
  margin-top: 8px;
  font-size: 1rem;
}

/* Gallery */
.gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.art-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(43, 38, 34, 0.1);
}

.art-card-image-wrap {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #e9ddce, #d9c6ae);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.art-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-card-placeholder {
  font-family: "Playfair Display", serif;
  color: #8a7861;
  font-size: 1.1rem;
  text-align: center;
  padding: 16px;
}

.art-card-info {
  padding: 16px 18px 20px;
}

.art-card-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.art-card-price {
  color: var(--terracotta-dark);
  font-weight: 600;
  margin: 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 20px 56px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--terracotta-dark);
}

/* Overlay / Modal */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 34, 0.55);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.overlay.open {
  display: flex;
}

.modal {
  background: var(--cream);
  border-radius: 18px;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
}

.modal-narrow {
  max-width: 480px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}

@media (max-width: 640px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 24px 18px;
  }
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #e9ddce, #d9c6ae);
}

.process-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}

.process-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.process-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
}

.modal-info h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.detail-price {
  color: var(--terracotta-dark);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.detail-meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 16px;
}

.detail-description {
  margin-bottom: 24px;
}

.btn-primary {
  background: var(--terracotta);
  color: white;
  border: none;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--terracotta-dark);
  border: 1.5px solid var(--terracotta-dark);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

/* Order form */
.order-art-name {
  color: var(--ink-soft);
  margin-top: -4px;
  margin-bottom: 20px;
}

#orderForm label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 14px;
}

#orderForm input,
#orderForm textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
}

#orderForm input:focus,
#orderForm textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
}

.form-error {
  color: #b3261e;
  font-size: 0.88rem;
  margin-top: 10px;
  display: none;
}

.form-error.visible {
  display: block;
}

.hidden {
  display: none;
}

/* Pix / success */
.pix-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.pix-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.pix-key {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 14px;
  word-break: break-all;
}

.pix-instructions {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
