:root {
  --ink: #17150f;
  --muted: #6f6a5f;
  --line: #e6e2d8;
  --paper: #f6f4ee;
  --card: #fffdf8;
  --accent: #1f6f46;
  --accent-hover: #185737;
  --shadow: 0 18px 48px rgba(23, 21, 15, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; }

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
}
.brand-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 600; letter-spacing: 0.01em; }
.brand-tag { color: var(--muted); font-size: 13px; }

main { min-height: 70vh; }
.loading { padding: 80px; text-align: center; color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 40px 32px 72px; }

/* Gallery grid */
.hero { text-align: center; padding: 44px 20px 8px; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 42px; margin: 0; }
.hero p { color: var(--muted); margin: 8px 0 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 880px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 5; background: #efece3 center/cover no-repeat; }
.card-body { padding: 14px 16px 18px; }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; line-height: 1.15; }
.card-artist { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-price { margin-top: 10px; font-weight: 600; font-size: 15px; }

/* Product detail */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }
.product-img { border: 1px solid var(--line); border-radius: 10px; background: #efece3 center/cover no-repeat; aspect-ratio: 4 / 5; }
.product h1 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 34px; margin: 0; line-height: 1.1; }
.product .artist { color: var(--muted); font-style: italic; margin-top: 6px; }
.product .blurb { margin-top: 18px; }
.specs { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 14px; }
.specs .row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.specs .row span:last-child { color: var(--ink); }
.price-lg { font-size: 26px; font-weight: 600; margin: 22px 0 6px; }

label { display: block; font-size: 13px; color: var(--muted); margin-top: 12px; }
input {
  width: 100%; font: inherit; margin-top: 4px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
}
input:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  width: 100%; margin-top: 18px; padding: 13px 16px; font: inherit; font-weight: 600;
  border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--ink); }

.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.status { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 14px; background: #eef5f0; border: 1px solid var(--accent); color: #123c28; }
.status.warn { background: #fbf4e6; border-color: #d9a441; color: #6b4a12; }
.status.err { background: #fbeceb; border-color: #c0483f; color: #6b1f19; }

/* Order / confirmation */
.confirm { max-width: 680px; margin: 0 auto; }
.confirm .check { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px; }
.confirm h1 { font-family: 'Cormorant Garamond', serif; text-align: center; font-size: 32px; margin: 0 0 4px; }
.confirm .sub { text-align: center; color: var(--muted); }
.panel { margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 4px 18px; }
.panel .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.panel .row:last-child { border-bottom: none; }
.panel .row .k { color: var(--muted); }
.panel .row .v { text-align: right; font-weight: 500; }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 26px 0 6px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.ok { background: #e4f1ea; color: #1f6f46; }
.pill.pending { background: #f6efdc; color: #8a6a1a; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  background: #fff;
}
.site-footer strong { color: var(--ink); font-weight: 600; }

/* Header nav + cart */
.site-nav { display: flex; align-items: center; gap: 18px; }
.cart-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.cart-link:hover { border-color: var(--ink); }

/* Gallery card: link area + action row */
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-actions { padding: 0 16px 16px; margin-top: -4px; }

/* Small button variant */
.btn.small { width: auto; margin-top: 0; padding: 8px 14px; font-size: 13px; border-radius: 7px; }
.btn.secondary.small { background: #fff; }

/* When a page stacks two full-width buttons, space them */
.btn + .btn { margin-top: 10px; }

/* Cart rows */
.cart-row { align-items: center; gap: 12px; }
.cart-thumb {
  width: 44px; height: 52px; flex: none; border-radius: 5px;
  background: #efece3 center/cover no-repeat; border: 1px solid var(--line);
}
.cart-meta { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.cart-meta a { font-weight: 600; text-decoration: none; color: var(--ink); }
.cart-meta a:hover { text-decoration: underline; }
.cart-meta small { color: var(--muted); }
.cart-price { font-weight: 600; white-space: nowrap; }
.link-btn {
  background: none; border: none; padding: 0 0 0 6px; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline;
}
.link-btn:hover { color: var(--accent); }

/* Arta Pay "From $X/mo" price placement (product page). */
.arta-placement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.arta-placement:hover {
  background: #efece3;
  border-color: #d9d4c8;
}
.arta-placement strong {
  color: var(--ink);
  font-weight: 600;
}
.arta-placement sup {
  font-size: 0.65em;
  vertical-align: super;
}
.arta-wordmark {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Footer Arta Pay info-modal launchers (CTA widget demo). */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
}
.footer-cta {
  display: inline-flex;
  gap: 16px;
}
.footer-cta button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
}
.footer-cta button:hover {
  color: var(--accent-hover);
}
