:root {
  --bg: #f4f1ea;
  --bg-2: #ebe6db;
  --surface: #fffdf8;
  --ink: #1c1917;
  --mut: #6b6560;
  --line: #ddd6cb;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --ok: #15803d;
  --pix: #047857;
  --danger: #9f1239;
  --rad: 14px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 10px 28px rgba(28, 25, 23, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.muted { color: var(--mut); }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.85rem 1.4rem;
  color: #f3eee6;
  background: linear-gradient(180deg, #1c1917 0%, #141210 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(20, 18, 16, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-img {
  display: block;
  height: 104px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.search {
  flex: 1;
  display: flex;
  min-width: 220px;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.7rem 1rem;
  color: #faf7f2;
  outline: none;
}

.search input::placeholder {
  color: #a8a29e;
}

.search button,
.btn,
.btn-primary {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

.search button { border-radius: 0; }

.btn:hover,
.btn-primary:hover,
.search button:hover { background: var(--accent-hover); }

.btn-secondary {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  margin-left: auto;
  font-size: 0.95rem;
}

.nav a { color: #ebe4da; }
.nav a:hover { color: #fdba74; }
.nav a.admin { color: #fb923c; font-weight: 700; }
.nav-user { color: #a8a29e; font-size: 0.88rem; }

.flashes { padding: 0 1.4rem; }
.flash {
  margin: 0.7rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.flash.ok, .flash.success { background: #ecfdf3; border-color: #bbf7d0; color: #14532d; }
.flash.err, .flash.error, .flash.danger { background: #fff1f2; border-color: #fecdd3; color: var(--danger); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
  padding: 3rem 1.4rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero h1,
.section-head h2,
.page-box h1,
.auth-box h1,
.admin-wrap h1 {
  margin: 0 0 0.7rem;
  letter-spacing: -0.04em;
  line-height: 1.12;
  overflow-wrap: anywhere;
  font-size: clamp(1.7rem, 4vw, 3.15rem);
}

.hero-copy { min-width: 0; }

.lead {
  margin: 0 0 1.2rem;
  color: var(--mut);
  font-size: 1.08rem;
  max-width: 36rem;
  overflow-wrap: break-word;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 460px;
}

.hero-search input { flex: 1 1 180px; }
.hero-search .btn { flex: 0 0 auto; }

.hero-search input,
.product-buy input,
.product-buy textarea,
.product-buy select,
.auth-box input,
.admin-wrap input,
.admin-wrap textarea,
.admin-wrap select,
.price-modal input,
.price-modal textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }

.hero-studio {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 340px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.hero-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ece7dc;
  aspect-ratio: 4 / 3;
}

.hero-track { position: relative; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(12%);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: none;
  z-index: 1;
}

.hero-slide.is-leave {
  opacity: 0;
  transform: translateX(-12%);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.55);
  cursor: pointer;
}

.hero-dots button.is-on { background: #fff; }

.filament-row {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.filament-row i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: block;
}

.hero-studio p {
  margin: 0;
  text-align: center;
  color: var(--mut);
  font-size: 0.9rem;
}

.img-fallback {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--mut);
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  max-width: 1180px;
  margin: 0 auto 1rem;
  padding: 0 1.4rem;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.trust-item strong { display: block; }
.trust-item span { color: var(--mut); font-size: 0.88rem; }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.6rem 1.4rem 2.6rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.link-more {
  color: var(--accent);
  font-weight: 700;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.steps h3 { margin: 0.7rem 0 0.35rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--mut); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--rad);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card-admin {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: calc(100% - 0.9rem);
}

.btn-block,
.btn-feature,
.btn-price {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.btn-block { background: #1c1917; }
.btn-block:hover { background: #9a3412; }
.btn-feature { background: #c2410c; }
.btn-feature:hover { background: #9a3412; }
.btn-price { background: #0f766e; }
.btn-price:hover { background: #115e59; }

.btn-block-page { position: static; box-shadow: none; }

.promo-label {
  margin: 0;
  text-align: center;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.slide-price {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  left: auto;
  z-index: 2;
  width: auto;
  max-width: 70%;
  padding: 0.4rem 0.75rem;
  border-radius: 1rem;
  background: rgba(28, 25, 23, 0.72);
  color: #fff;
}

.slide-price strong {
  display: block;
  font-size: 1.02rem;
  color: #86efac;
}

.slide-price span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.92;
}

.hero-slide a { display: block; height: 100%; position: relative; }

.price-modal {
  border: 0;
  border-radius: 16px;
  padding: 1.2rem 1.3rem 1.3rem;
  width: min(480px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  overflow: auto;
  box-shadow: var(--shadow);
}

.photo-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.35rem 0 0.7rem; }
.photo-chips figure { position: relative; margin: 0; width: 64px; height: 64px; }
.photo-chips img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.photo-chips button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #1c1917;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
}

.gallery { position: relative; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}
.gal-prev { left: 0.6rem; }
.gal-next { right: 0.6rem; }

.price-modal::backdrop { background: rgba(28, 25, 23, 0.45); }
.price-modal h3 { margin: 0 0 0.35rem; }
.price-modal input { margin-bottom: 0.55rem; }

.card:hover {
  transform: translateY(-3px);
  border-color: #c4b8a5;
}

.card-media,
.card img { aspect-ratio: 1; object-fit: cover; background: var(--bg-2); }

.card-body { padding: 0.9rem; }
.card-body strong { display: block; letter-spacing: -0.02em; }
.card-body span, .card-body small { color: var(--mut); font-size: 0.86rem; }
.search-sentinel { height: 1px; }
.search-status { text-align: center; padding: 1rem 0 0; }

.btn-stl {
  display: block;
  margin: 0 0.9rem 0.9rem;
  text-align: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.price-block { margin: 0.35rem 0; }
.price-cta {
  margin: 0.45rem 0 0;
  color: var(--accent, #c2410c);
  font-size: 0.9rem;
  font-weight: 700;
}
.price-block .old {
  text-decoration: line-through;
  color: var(--mut);
  margin-right: 0.35rem;
}
.price-block .size,
.size-line {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}
.size-line { margin: 0.25rem 0 0; }
.pix, .pix-big { color: var(--pix); font-weight: 800; }

.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.4rem;
}

.preview-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.preview-wrap img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.tint-overlay {
  position: absolute;
  inset: 0;
  background: var(--tint, #c2410c);
  mix-blend-mode: multiply;
  opacity: 0.28;
  pointer-events: none;
}

.file-link { margin-top: 0.8rem; }

.product-buy {
  background: var(--surface);
  padding: 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-buy h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.product-buy label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  color: var(--mut);
  font-size: 0.85rem;
  font-weight: 600;
}

.swatches { display: flex; flex-wrap: wrap; gap: 0.7rem 0.65rem; }
.swatch { position: relative; cursor: pointer; text-align: center; width: 42px; }
.swatch input { position: absolute; opacity: 0; }
.swatch span {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--accent); }
.swatch small { display: block; font-size: 0.7rem; color: var(--mut); }

.price-live { margin: 1rem 0 0.2rem; }
.price-live p { margin: 0.15rem 0; }
.pix-big { font-size: 1.25rem; }
.pix-big em { font-style: normal; font-size: 0.85rem; font-weight: 600; }

.row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

.pay-opts { display: flex; gap: 0.6rem; }
.pay-opts label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.frete-box label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  border-radius: 12px;
  margin: 0.35rem 0;
  color: var(--ink);
}

.total-box {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg);
}
.grand { font-size: 1.2rem; margin-top: 0.4rem; }
.product-buy .btn-primary { width: 100%; margin-top: 0.4rem; }

.foot {
  margin-top: 1rem;
  padding: 2.4rem 1.4rem 1.4rem;
  border-top: 1px solid var(--line);
  background: #1c1917;
  color: #e7e5e4;
}

.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.8rem;
}

.foot a.foot-brand {
  display: inline-flex;
  margin-bottom: 0.7rem;
}

.foot-brand .logo-img { height: 144px; }
.foot .muted { color: #a8a29e; }
.foot a { display: block; color: #d6d3d1; margin: 0.28rem 0; }
.foot a:hover { color: #fff; }
.foot h4 { margin: 0 0 0.5rem; }
.partner a { display: inline; color: #fdba74; }
.copy {
  max-width: 1180px;
  margin: 1.6rem auto 0;
  color: #78716c;
  font-size: 0.85rem;
}

.auth-box,
.page-box,
.admin-wrap {
  max-width: 920px;
  margin: 2rem auto;
  padding: 1.4rem;
}

.auth-box {
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.auth-box label,
.admin-wrap label {
  display: block;
  margin: 0.75rem 0 0.3rem;
  color: var(--mut);
  font-size: 0.85rem;
  font-weight: 600;
}

.page-box p { color: #44403c; max-width: 42rem; }

.pay-select {
  min-width: 7.5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.sales-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 1rem 0 0;
}

.sales-pager-link,
.sales-pager-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
}

.sales-pager-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.sales-pager-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th, .table td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.92rem;
  vertical-align: top;
}

.order-expire-form {
  grid-template-columns: 1.6fr auto;
  align-items: end;
}
.order-expire-note {
  grid-column: 1 / -1;
  margin: 0;
}
.order-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.4rem;
}
.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}
.order-card.is-late {
  border-color: #f87171;
  background: #fff7f7;
}
.order-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.order-card-money {
  text-align: right;
}
.order-card-money b {
  display: block;
  color: var(--accent);
  font-size: 1.1rem;
}
.order-date {
  margin-top: 0.2rem;
  font-weight: 700;
}
.order-date.is-late {
  color: #b91c1c;
}
.order-card-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}
.order-addr {
  margin-top: 0.2rem;
  line-height: 1.35;
}
.order-wa {
  color: var(--pix);
  font-weight: 700;
  text-decoration: underline;
}
.order-track {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.order-track input {
  min-width: 120px;
  flex: 1;
}
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.order-actions form {
  display: inline-flex;
  margin: 0;
}
.order-actions .btn,
.order-actions .btn-secondary,
.order-actions .btn-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .order-card-grid { grid-template-columns: 1fr; }
  .order-expire-form { grid-template-columns: 1fr; }
}

.stock-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1.2rem;
  margin: 1rem 0 1.4rem;
  box-shadow: var(--shadow);
}
.stock-form h3 { margin: 0 0 0.6rem; }
.stock-form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.stock-form-grid select,
.stock-form-grid input { width: 100%; }
.dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line);
  vertical-align: middle;
  margin-right: 0.4rem;
}
.color-select { position: relative; }
.color-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  text-align: left;
}
.color-select-list {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
}
.color-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  margin: 0;
}
.color-opt:hover { background: var(--bg-2); }
.color-opt input { position: absolute; opacity: 0; pointer-events: none; }
.stock-table .stock-actions { min-width: 220px; }
.stock-line {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 0.4rem;
}
.stock-line input { width: 72px; margin: 0; }
.stock-line button { padding: 0.4rem 0.75rem; }

@media (max-width: 900px) {
  .stock-form-grid { grid-template-columns: 1fr 1fr; }
}

.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.chart-card {
  background: var(--surface);
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.chart-card b { font-size: 1.25rem; color: var(--accent); }

.month-chart-panel {
  margin: 1.2rem 0 1.6rem;
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.month-chart-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.month-chart-head h2 { margin: 0 0 0.25rem; }
.month-chart-head .muted { margin: 0; max-width: 40rem; }

.month-chart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.month-chart-filters label {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--mut);
  font-weight: 600;
}

.month-chart-filters select {
  min-width: 9.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.month-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--mut);
}

.month-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.month-chart-legend .swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  display: inline-block;
}

.swatch-gross { background: #c2410c; }
.swatch-net { background: #1c1917; }
.swatch-line {
  background: #15803d;
  border-radius: 999px !important;
  height: 0.28rem !important;
  width: 1.1rem !important;
}

.month-chart-canvas-wrap {
  overflow-x: auto;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf8 0%, #f7f3eb 100%);
  border: 1px solid var(--line);
  padding: 0.4rem 0.2rem 0.2rem;
}

#monthChartSvg {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
}

.month-chart-empty {
  margin: 0.8rem 1rem 1rem;
}

@media (max-width: 900px) {
  .month-chart-filters { width: 100%; }
  .month-chart-filters label { flex: 1; min-width: 8rem; }
}

.sale-form {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.7fr 0.85fr 1fr;
  gap: 0.8rem;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin: 0.6rem 0 1.4rem;
}
.sale-form label { margin: 0; }
.sale-form input { width: 100%; }
.sale-profit {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sale-profit strong { color: var(--accent); font-size: 1.1rem; }
.calc-form {
  grid-template-columns: 1.6fr 0.8fr 0.7fr 1.1fr;
}
#calcPrice { color: var(--pix); font-size: 1.15rem; }
@media (max-width: 800px) {
  .sale-form { grid-template-columns: 1fr 1fr; }
  .sale-profit { grid-column: 1 / -1; }
}

.quote-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}
.quote-main {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.quote-main .btn,
.quote-main .btn-secondary {
  display: inline-block;
  margin: 0.35rem 0.35rem 0 0;
}
.quote-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-2);
}
.quote-approve {
  margin: 0;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 0.85fr 0.9fr auto;
}
.quote-approve select {
  width: 100%;
  min-height: 2.5rem;
}
.quote-cost-box {
  min-width: 7rem;
}
@media (max-width: 800px) {
  .quote-approve { grid-template-columns: 1fr 1fr; }
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: lowercase;
  background: var(--bg-2);
}

.badge-paid, .badge-delivered { background: #dcfce7; color: #14532d; }
.badge-pending { background: #ffedd5; color: #9a3412; }

.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
}

.pay-page .pay-total { font-size: 1.15rem; }
.pay-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
  max-width: 28rem;
}
.pay-box h2 { margin-top: 0; }
.pix-qr {
  width: 240px;
  height: 240px;
  margin: 0.8rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pay-box textarea {
  width: 100%;
  resize: vertical;
  font-size: 0.85rem;
}

.mp-field {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 0.4rem;
}
#form-checkout .row { align-items: end; }
#form-checkout select,
#form-checkout input[type="text"],
#form-checkout input[type="email"] {
  width: 100%;
}
.addr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.addr-row label { width: 100%; }
#shippingFields[hidden],
#pickupHint[hidden] { display: none !important; }

@media (max-width: 640px) {
  .addr-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero, .product-page, .foot-grid, .steps, .trust {
    grid-template-columns: 1fr;
  }
  .top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand nav"
      "search search";
    align-items: center;
    gap: 0.5rem 0.7rem;
    padding: 0.55rem 0.85rem;
  }
  .brand {
    grid-area: brand;
    min-width: 0;
  }
  .logo-img {
    height: 48px;
  }
  .foot-brand .logo-img {
    height: 88px;
  }
  .nav {
    grid-area: nav;
    width: auto;
    max-width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a,
  .nav .btn {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .nav .btn {
    padding: 0.38rem 0.7rem;
    font-size: 0.78rem;
  }
  .nav-user {
    display: none;
  }
  .search {
    grid-area: search;
    order: unset;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .search input {
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
  }
  .search button {
    padding: 0.55rem 0.9rem;
  }
  .hero { padding-top: 1.4rem; gap: 1.4rem; }
  .hero-search { max-width: none; }
  .hero-search .btn { width: 100%; }
  .hero-studio { min-height: 0; }
  .nav-extra { display: none; }
}

@media (max-width: 640px) {
  .lead { font-size: 1rem; }
  .logo-img { height: 42px; }
  .top {
    gap: 0.45rem 0.55rem;
    padding: 0.45rem 0.7rem;
  }
  .nav {
    gap: 0.35rem;
    font-size: 0.76rem;
  }
  .nav .btn {
    padding: 0.32rem 0.58rem;
  }
}
