/* ══════════════════════════════════════════════════════════════
   Painel do Ceramista — tema "Clube Ceramista"
   Identidade: terracota #D85A30 + creme #FBF6EF (marca oficial)
   Tipografia: Fraunces (display) + Inter (corpo)
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #f6efe3;
  --paper: #fdfaf4;
  --cream: #fbf6ef;
  --ink: #2b241d;
  --muted: #83766a;
  --line: #e7dbc9;
  --soft: #f2e9d9;
  --strong: #59422e;
  --accent: #d85a30;
  --accent-hover: #c04a22;
  --accent-deep: #a63d18;
  --accent-soft: #fbe7dd;
  --chip: #f4ebdc;
  --danger: #a3492f;
  --ok: #4d6b4c;
  --radius: 20px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(55, 42, 31, 0.05), 0 2px 8px rgba(55, 42, 31, 0.05);
  --shadow-md: 0 4px 12px rgba(55, 42, 31, 0.08), 0 14px 36px rgba(55, 42, 31, 0.08);
  --shadow-lg: 0 10px 28px rgba(55, 42, 31, 0.13), 0 28px 64px rgba(55, 42, 31, 0.11);
  --speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23b45f3c' fill-opacity='0.05'%3E%3Ccircle cx='18' cy='26' r='1.3'/%3E%3Ccircle cx='64' cy='11' r='1'/%3E%3Ccircle cx='112' cy='34' r='1.5'/%3E%3Ccircle cx='143' cy='71' r='1.1'/%3E%3Ccircle cx='36' cy='88' r='1.4'/%3E%3Ccircle cx='87' cy='63' r='1'/%3E%3Ccircle cx='129' cy='118' r='1.3'/%3E%3Ccircle cx='53' cy='137' r='1.2'/%3E%3Ccircle cx='9' cy='112' r='1'/%3E%3Ccircle cx='98' cy='148' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 560px at 88% -12%, rgba(216, 90, 48, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 108%, rgba(141, 82, 50, 0.06), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.app {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: 100vh;
}

/* áreas públicas ganham um fundo próprio, mais quente e texturizado */
.app.public-mode {
  grid-template-columns: 1fr;
  background:
    var(--speckle),
    radial-gradient(1100px 480px at 50% -14%, rgba(216, 90, 48, 0.1), transparent 62%),
    linear-gradient(180deg, #f9f1e4 0%, var(--bg) 340px);
}

/* ── Sidebar ── */

aside {
  background:
    radial-gradient(420px 260px at 20% -8%, rgba(216, 90, 48, 0.18), transparent 60%),
    linear-gradient(178deg, #211710 0%, #322315 100%);
  color: #fff8ef;
  padding: 28px 18px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 248, 239, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 2px 6px 22px;
  border-bottom: 1px solid rgba(255, 248, 239, 0.12);
  margin-bottom: 18px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 5px 14px rgba(0, 0, 0, 0.35);
}

.brand-mark img,
.brand-mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-club {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e89a76;
  margin-bottom: 3px;
}

aside h1 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
  color: #fff8ef;
}

.nav { flex: 1; }

.nav button,
.nav a.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: transparent;
  color: rgba(255, 248, 239, 0.8);
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 2px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.nav-icon {
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-icon svg { width: 100%; height: 100%; }

.nav button:hover,
.nav a.nav-link:hover {
  background: rgba(255, 248, 239, 0.08);
  color: #fff8ef;
  transform: translateX(3px);
}

.nav button.active,
.nav a.nav-link.active {
  background: linear-gradient(120deg, #e2653a, var(--accent-deep));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(216, 90, 48, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav button.active .nav-icon,
.nav a.nav-link.active .nav-icon { opacity: 1; }

.nav-divider {
  border: 0;
  border-top: 1px solid rgba(255, 248, 239, 0.1);
  margin: 14px 6px;
}

.sidebar-version {
  margin: 18px 6px 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(216, 202, 187, 0.5);
  text-align: center;
}

/* ── Estrutura principal ── */

main {
  padding: 34px 36px 52px;
  max-width: 1260px;
  width: 100%;
}

.app.public-mode main {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 40px;
}

.public-panel-entry {
  font-size: 13px;
  opacity: 0.85;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.top h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  font-weight: 650;
  line-height: 1.06;
  position: relative;
  padding-bottom: 14px;
}

/* traço de argila sob o título */
.top h2::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #e8956b);
}

.top p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  font-size: 15px;
}

.frame {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--strong);
}

.menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.menu span,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
  color: var(--strong);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.content { padding: 28px; }

.grid {
  display: grid;
  gap: 18px;
}

.grid.two { grid-template-columns: 1.1fr 0.9fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin: 0 0 10px; font-size: 19px; }

.muted { color: var(--muted); font-size: 13px; }

/* ── Botões ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, #e26640, var(--accent) 55%, #cf5128);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(216, 90, 48, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn:hover {
  background: linear-gradient(180deg, #d55a32, var(--accent-hover) 55%, #b3431d);
  border-color: var(--accent-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 7px 18px rgba(216, 90, 48, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(216, 90, 48, 0.3);
}

.btn.secondary {
  background: #fff;
  color: var(--strong);
  border-color: #ddcfb9;
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  background: var(--cream);
  border-color: #cbb99d;
  box-shadow: 0 4px 12px rgba(55, 42, 31, 0.12);
}

.btn.ghost {
  background: transparent;
  color: var(--strong);
  border-color: transparent;
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--soft);
  transform: none;
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:focus-visible,
.filter-chip:focus-visible,
.nav a.nav-link:focus-visible,
.nav button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Formulários ── */

label {
  display: block;
  font-size: 12.5px;
  color: var(--strong);
  margin: 13px 0 5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(216, 90, 48, 0.14);
}

textarea { min-height: 88px; resize: vertical; }

/* ── Fotos e placeholders ── */

.photo {
  border: 2px dashed #dccfb8;
  background: var(--cream);
  border-radius: 16px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.photo.has-image {
  padding: 0;
  min-height: 0;
  height: clamp(240px, 42vw, 520px);
  border-style: solid;
}

.piece-main-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: var(--cream);
  display: block;
}

.piece-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.5s var(--ease);
}

.piece-card:hover .piece-card-photo {
  transform: scale(1.05);
}

.photo .piece-main-photo,
.big-photo .piece-main-photo,
.gallery-thumb .piece-main-photo,
.photo-thumb .piece-main-photo {
  position: absolute;
  inset: 0;
}

.thumb .piece-card-photo {
  position: absolute;
  inset: 0;
}

.thumb {
  background: var(--cream);
  border-radius: 0;
  aspect-ratio: 4 / 3;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* marca-d'água de vaso + textura nos placeholders */
.thumb--placeholder::after,
.big-photo--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2359422e' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6c0 1.8-.4 2.9-1 4.1 2.6 1.5 4 4.1 4 6.9a6 6 0 0 1-12 0c0-2.8 1.4-5.4 4-6.9-.6-1.2-1-2.3-1-4.1z'/%3E%3C/svg%3E"),
    var(--speckle);
  background-repeat: no-repeat, repeat;
  background-position: center 40%, 0 0;
  background-size: 74px, 160px;
  opacity: 0.2;
  pointer-events: none;
}

.thumb--placeholder {
  background: linear-gradient(140deg, #dcccb9, #f6ecdd 70%, #efdfc9);
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px;
}

.thumb-label {
  position: relative;
  z-index: 1;
  background: rgba(43, 36, 29, 0.78);
  backdrop-filter: blur(5px);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff6ec;
  box-shadow: var(--shadow-sm);
}

/* ── Cards de peça ── */

.piece-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}

.piece-card:hover {
  transform: translateY(-5px);
  border-color: #dcc4ab;
  box-shadow: var(--shadow-lg);
}

.piece-card .body { padding: 16px 18px 19px; }
.piece-card h3 { margin: 9px 0 2px; font-size: 17.5px; line-height: 1.28; }

.piece-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.piece-card-category {
  margin: 0;
  font-size: 13px;
}

.price-tag {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--accent-deep);
  white-space: nowrap;
}

.price-tag--consult {
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 12.5px;
}

.piece-card--catalog .body {
  padding-bottom: 17px;
}

.actions--card {
  margin-top: 13px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12.5px;
}

.btn-cta-subtle {
  font-weight: 600;
}

.bar-back {
  padding: 6px 13px !important;
  font-size: 12px !important;
}

/* ── Dashboard ── */

.stat-card {
  text-align: left;
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #eda275);
}

.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #5b8258, #94b78f); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #6c69ae, #a5a3d3); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #8a7663, #bcab97); }
.stat-card:nth-child(5)::before { background: linear-gradient(90deg, #a9a29a, #cfc9c2); }

.stat-card h3 {
  font-size: 44px;
  margin: 2px 0 0;
  color: var(--strong);
  font-weight: 650;
  line-height: 1.02;
}

.stat-card p {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.shortcut-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 4px;
}

.shortcut-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 20px;
  align-items: start;
}

.profile-preview-card {
  position: sticky;
  top: 24px;
}

.profile-form .form-section-title {
  margin: 0 0 12px;
  font-size: 16px;
}

.profile-tagline {
  margin: 12px 0 8px;
  font-size: 17px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--strong);
  max-width: 42ch;
  line-height: 1.45;
}

.profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.profile-social--compact {
  margin-top: 12px;
}

.piece-artist-block {
  margin-top: 4px;
}

.piece-artist-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--strong);
}

.piece-artist-location {
  margin: 4px 0 0;
  font-size: 13px;
}

.piece-artist-contact {
  margin-top: 10px;
}

.btn-interest-inline {
  margin-top: 4px;
}

.profile-tagline--compact {
  margin: 10px 0 0;
  font-size: 15px;
}

.dashboard-profile-card {
  margin-bottom: 22px;
  border-color: #e0d0b8;
  background:
    var(--speckle),
    radial-gradient(620px 210px at 100% 0%, rgba(216, 90, 48, 0.09), transparent 65%),
    linear-gradient(160deg, #fffdf8, var(--cream));
}

.dashboard-profile-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.piece-card-series {
  margin: 2px 0 4px;
  font-size: 13px;
  font-style: italic;
  color: var(--strong);
  opacity: 0.82;
}

.piece-series-label {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
}

.piece-series-label span {
  color: var(--strong);
  font-style: italic;
}

.vitrine-series-block {
  margin-bottom: 36px;
}

.vitrine-series-block:last-child {
  margin-bottom: 0;
}

.vitrine-series-title {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 600;
  color: var(--strong);
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vitrine-series-title::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #eda275);
  flex-shrink: 0;
}

.filter-bar--series {
  margin-top: -4px;
  margin-bottom: 16px;
  align-items: center;
}

.filter-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
  white-space: nowrap;
}

.portfolio-summary {
  margin: 12px 0 0;
  font-size: 13px;
}

.backup-teaser {
  margin-top: 26px;
}

.backup-layout {
  display: grid;
  gap: 16px;
}

.backup-card .form-section-title {
  margin: 0 0 8px;
}

.backup-meta {
  margin: 12px 0 16px;
  padding-left: 18px;
  font-size: 13px;
}

.backup-meta li {
  margin: 4px 0;
}

.backup-card--warn {
  border-color: #e8d4b8;
  background: #fffaf3;
}

.shortcut-card {
  display: block;
  padding: 19px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.shortcut-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 17px;
  color: var(--accent);
  font-weight: 600;
  font-size: 17px;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.shortcut-card:hover {
  transform: translateY(-3px);
  border-color: #dcc4ab;
  box-shadow: var(--shadow-md);
}

.shortcut-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.shortcut-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--strong);
  font-size: 15.5px;
  font-family: var(--font-display);
  font-weight: 600;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 18px;
}

.section-header h3 {
  margin: 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.section-header h3::before {
  content: "";
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #eda275);
  flex-shrink: 0;
}

.link-quiet {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.link-quiet:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Filtros ── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

button.filter-chip {
  appearance: none;
}

.filter-chip:hover {
  background: var(--soft);
  color: var(--strong);
  border-color: #d9cfc0;
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 9px rgba(216, 90, 48, 0.35);
}

.search-bar input {
  min-width: 220px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 38px 20px;
  border: 1px dashed #d8c8ae;
  border-radius: 18px;
  background: var(--cream);
  color: var(--muted);
}

.empty-state.card {
  margin-bottom: 16px;
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--strong);
}

.empty-state .actions {
  justify-content: center;
  margin-top: 16px;
}

/* ── Login ── */

.login-brand-hero {
  text-align: center;
  margin: 6px auto 30px;
  max-width: 560px;
}

.login-brand-logo {
  width: 92px;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 14px rgba(141, 82, 50, 0.25));
}

.login-brand-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.login-brand-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.6vw, 42px);
  font-weight: 650;
  line-height: 1.05;
}

.login-brand-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.login-frame {
  max-width: 920px;
  margin: 0 auto;
}

/* ── Vitrine pública ── */

.vitrine-frame .vitrine-hero {
  background:
    var(--speckle),
    radial-gradient(760px 340px at 6% -30%, rgba(216, 90, 48, 0.16), transparent 62%),
    radial-gradient(580px 320px at 102% 132%, rgba(141, 82, 50, 0.12), transparent 60%),
    linear-gradient(135deg, #fffaf1 0%, #f5e8d3 100%);
}

.vitrine-hero .avatar {
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(216, 90, 48, 0.45), var(--shadow-md);
}

.vitrine-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.vitrine-bio {
  margin: 14px 0 22px;
  max-width: 48ch;
  line-height: 1.62;
  color: #4d4238;
  font-size: 15px;
}

.vitrine-featured-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  transition: transform 0.25s var(--ease);
}

.vitrine-featured-link:hover {
  transform: translateY(-4px) scale(1.006);
}

.vitrine-featured-link .big-photo {
  box-shadow: var(--shadow-lg);
  border-color: #ddc9ad;
}

/* correção: dentro do destaque, só o rótulo "Em destaque · ..." aparece */
.vitrine-featured-link .big-photo-label {
  display: none;
}

.vitrine-featured-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  background: rgba(43, 36, 29, 0.84);
  backdrop-filter: blur(6px);
  color: #fff8ef;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.vitrine-empty-hero {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Página pública da peça ── */

.public-piece-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.piece-public-title {
  font-size: clamp(30px, 4.4vw, 44px);
  margin: 10px 0 8px;
  line-height: 1.08;
  font-weight: 650;
}

.piece-public-price {
  font-size: 27px;
  font-weight: 600;
  font-family: var(--font-display);
  margin: 0 0 16px;
  color: var(--accent-deep);
}

.piece-public-description {
  line-height: 1.65;
  margin: 0 0 18px;
  color: #4d4238;
  font-size: 15px;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 18px;
  margin: 0 0 16px;
  padding: 18px;
  background: var(--cream);
  border-left: 4px solid var(--accent);
  border-radius: 6px 14px 14px 6px;
}

.spec-item dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.spec-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.divider-soft {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.piece-artist {
  margin: 0;
  font-size: 14px;
}

.actions--public {
  margin-top: 22px;
}

.catalog-grid {
  gap: 20px;
}

.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ── Badges de status ── */

.status {
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--soft);
  color: var(--strong);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}

.status.ok { background: #e2efdd; color: #3c6039; }
.status.warn { background: #f8ecd2; color: #8a5f28; }
.status.sold { background: #ece5dc; color: #6b5c4c; }
.status.draft { background: #eeecea; color: #6f6a64; }
.status.reserved { background: #e6e4f4; color: #4c4a86; }
.status.ship { background: #e2edf5; color: #38566c; }
.status.archived { background: #ebebeb; color: #555; }
.status.exhibition { background: #f1e4f8; color: #71468a; margin-left: 4px; }

/* ── Hero (vitrine) ── */

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: center;
  padding: 40px 34px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

/* ── Avatares ── */

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4c1aa, #f1e7d8);
  border: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--line), var(--shadow-sm);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar--photo {
  background-size: cover;
  background-position: center;
}

.avatar--photo img,
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar--initials {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--strong);
  letter-spacing: 0.04em;
}

.avatar--sm {
  width: 44px;
  height: 44px;
  font-size: 14px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line);
}

.avatar--lg {
  width: 112px;
  height: 112px;
  font-size: 34px;
}

/* avatar da home pública: forma orgânica de "seixo" — identidade artesanal */
.avatar--xl {
  width: 136px;
  height: 136px;
  font-size: 40px;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(216, 90, 48, 0.45), var(--shadow-md);
}

.profile-avatar-editor {
  margin-bottom: 20px;
}

.actions--avatar {
  margin-top: 10px;
}

.slug-field {
  display: flex;
  align-items: center;
  gap: 4px;
}

.slug-prefix {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.slug-field input {
  flex: 1;
}

.piece-artist-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Home pública ── */

.public-home {
  display: grid;
  gap: 28px;
}

.public-home-hero {
  padding: 44px 40px;
  background:
    var(--speckle),
    radial-gradient(720px 320px at 0% -40%, rgba(216, 90, 48, 0.15), transparent 60%),
    radial-gradient(560px 300px at 100% 140%, rgba(141, 82, 50, 0.11), transparent 58%),
    linear-gradient(150deg, #fffdf7 0%, #f6ecd8 100%);
  border-color: #e0d0b8;
  border-radius: 22px;
}

.public-title--home {
  align-items: flex-start;
  gap: 26px;
}

.public-home-title {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.06;
  font-weight: 650;
}

.public-home-tagline {
  margin-top: 18px;
  font-size: 19px;
}

.home-series-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-series-chip {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: var(--strong);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.home-series-chip:hover {
  transform: translateY(-2px);
  border-color: #dcc4ab;
  background: var(--cream);
  box-shadow: var(--shadow-md);
}

.public-home-section {
  margin-top: 4px;
}

.public-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ── Foto grande ── */

.big-photo {
  width: 100%;
  min-height: 280px;
  height: clamp(280px, 42vw, 520px);
  border-radius: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.big-photo--featured {
  max-height: none;
}

.big-photo--placeholder {
  background: linear-gradient(140deg, #d6c5b0, #f9f0e0 68%, #eeddc4);
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  font-weight: 700;
  color: var(--strong);
  font-size: 20px;
}

.big-photo-label {
  position: relative;
  z-index: 1;
  background: rgba(43, 36, 29, 0.78);
  backdrop-filter: blur(5px);
  color: #fff6ec;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.empty {
  border: 1px dashed #d8c8ae;
  border-radius: 18px;
  padding: 24px;
  background: var(--cream);
  text-align: center;
  color: var(--muted);
}

.note {
  border-left: 4px solid var(--accent);
  background: #fdf3ea;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 14px;
  color: #6f5e4e;
  font-size: 13px;
}

/* ── Wizard ── */

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 11px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.step.done {
  background: #e2efdd;
  color: var(--ok);
  border-color: #c9dcc2;
}

.step.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(216, 90, 48, 0.35);
}

.wizard-card { max-width: 640px; margin: 0 auto; }

.price-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.price-row input { flex: 1; min-width: 140px; }

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
  font-weight: 400;
}

.checkline input { width: auto; }

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  margin: 12px 0 0;
}

.inline-check input { width: auto; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  gap: 8px;
  flex-wrap: wrap;
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 13px;
  background: #fbf3e6;
  border: 1px solid #ecd9b8;
  color: #7a552a;
  font-size: 13px;
  margin-bottom: 10px;
}

.alert.empty {
  background: var(--cream);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.alert.success {
  background: #e2efdd;
  border-color: #c9dcc2;
  color: var(--ok);
}

.preview-banner {
  font-weight: 600;
}

.unpublished-piece {
  text-align: center;
  padding: 32px 24px;
}

.unpublished-piece h3 {
  margin: 0 0 8px;
}

.wizard-screen { display: none; }
.wizard-screen.active { display: block; }

.form-section-title {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--strong);
}

.form-section {
  margin-bottom: 0;
}

.field-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 12px;
  line-height: 1.4;
}

.form-validation-errors {
  background: #fdf3f0;
  border: 1px solid #e8c9bf;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: #8a3f2f;
  font-size: 13px;
}

.form-validation-errors p {
  margin: 0 0 6px;
}

.form-validation-errors p:last-child {
  margin-bottom: 0;
}

.edit-layout .edit-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.15fr);
  gap: 20px;
  align-items: start;
}

.edit-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.readonly-field {
  background: #f5f0e8;
  color: var(--muted);
  cursor: not-allowed;
}

.form-actions {
  position: sticky;
  bottom: 12px;
  box-shadow: var(--shadow-md);
}

.form-actions .actions {
  margin-top: 0;
}

.visibility-note {
  background: var(--cream);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.photo-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.photo-thumb[data-edit-preview] {
  cursor: pointer;
}

.photo-thumb.is-main {
  border: 2px solid var(--accent);
}

.photo-thumb.is-preview {
  outline: 2px solid var(--strong);
  outline-offset: 2px;
}

.photo-thumb .remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 0.15s var(--ease);
}

.photo-thumb .remove-photo:hover {
  background: rgba(163, 73, 47, 0.9);
}

.set-main-photo {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 1;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
  font-family: inherit;
}

.main-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.gallery-thumb {
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--cream);
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.gallery-thumb:hover {
  transform: translateY(-2px);
}

.gallery-thumb.active {
  border-color: var(--accent);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2b241d;
  color: #fff8ef;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  animation: toastIn 0.3s var(--ease);
  box-shadow: var(--shadow-lg);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* entrada suave do conteúdo a cada troca de rota */
main > * {
  animation: fadeIn 0.35s var(--ease) both;
}

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsivo ── */

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  aside { position: relative; height: auto; padding: 18px 14px 14px; display: block; }
  .brand { padding-bottom: 14px; margin-bottom: 12px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
  .nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .nav button, .nav a.nav-link { margin: 0; padding: 11px 12px; }
  .nav-divider { display: none; }
  .sidebar-version { margin-top: 12px; }
  .grid.two, .grid.three, .grid.four, .hero { grid-template-columns: 1fr; }
  .hero { padding: 26px 20px; gap: 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .shortcut-grid { grid-template-columns: 1fr; }
  .shortcut-grid--four { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-preview-card { position: static; }
  .public-piece-layout { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-bar input { width: 100%; min-width: 0; }
  .edit-layout .edit-grid { grid-template-columns: 1fr; }
  .dimensions-grid { grid-template-columns: 1fr; }
  .form-actions { position: static; }
  main { padding: 20px 16px 36px; }
  .app.public-mode main { padding-top: 24px; }
  .content { padding: 18px; }
  .top { display: block; }
  .top h2 { font-size: 30px; }
  .top .chip { display: none; }
  .big-photo { min-height: 260px; }
  .public-home-hero { padding: 28px 22px; }
  .public-title--home { flex-direction: column; gap: 16px; }
  .steps { flex-wrap: wrap; }
  .step { min-width: 45%; }
  .login-brand-hero { margin-top: 2px; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card h3 { font-size: 32px; }
  .shortcut-grid--four { grid-template-columns: 1fr; }
  .avatar--xl { width: 104px; height: 104px; font-size: 32px; }
  .toast { left: 16px; right: 16px; bottom: 16px; text-align: center; }
  .login-brand-logo { width: 76px; }
}
