:root {
  --ink: #111b23;
  --muted: #627079;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #dfe4df;
  --green: #d2ae6d;
  --green-dark: #be9a59;
  --lime: #ffeccc;
  --lime-soft: rgba(255, 236, 204, 0.15);
  --orange: #f56f46;
  --radius: 16px;
  --shadow-sm: 0 8px 24px rgb(17 27 35 / 5%);
  --shadow: 0 16px 48px rgb(17 27 35 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-inter), Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── Contact bar ── */

.contact-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  background: #111b23;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
}

.contact-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding-block: 4px;
}

.contact-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d9e2de;
  text-decoration: none;
  transition: color 160ms ease;
  white-space: nowrap;
}

.contact-bar-link svg {
  color: var(--green);
  flex-shrink: 0;
}

.contact-bar-link:hover {
  color: #ffffff;
}

.contact-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.contact-bar-social a:not(.store-login-link) {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  text-decoration: none;
  line-height: 0;
  transition: transform 160ms ease, background 160ms ease;
}

.contact-bar-social a:not(.store-login-link):hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.contact-bar-social a svg {
  display: block;
  width: 15px;
  height: 15px;
}

.contact-bar-login {
  font-size: 0.72rem;
  font-weight: 500;
  color: #8899a0;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgb(255 255 255 / 14%);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
  white-space: nowrap;
  line-height: 1.2;
}

.contact-bar-login:hover {
  color: #c0d0d0;
  border-color: rgb(255 255 255 / 30%);
  background: rgb(255 255 255 / 6%);
  transform: none;
}

/* ── Login link (user icon + text) ── */
.store-login-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8899a0;
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 160ms ease, color 160ms ease;
  white-space: nowrap;
  line-height: 1.2;
}
.store-login-link:hover {
  opacity: 0.7;
  color: #b0b8b5;
}

/* ── Header ── */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(17 27 35 / 8%);
  background: rgb(247 248 245 / 92%);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 190px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav > a {
  position: relative;
  color: #48575f;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--green);
  transition: transform 180ms ease;
}

.nav > a:not(.nav-cta):hover,
.nav > a.active {
  color: var(--green);
}

.nav .nav-cta:hover {
  background: var(--store-primary-dark);
  color: var(--white);
}

.nav > a.active::after {
  transform: scaleX(1);
}

.nav .nav-cta {
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
}

.menu-button {
  display: none;
}

/* ── Buttons ── */

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--lime);
  color: var(--green-dark);
  gap: 8px;
}

.button-ghost {
  border: 1px solid rgb(255 255 255 / 26%);
  background: rgb(255 255 255 / 8%);
  color: var(--white);
}

.button-dark {
  background: var(--green);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--green);
}

.button-cancel {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.button-cancel:hover {
  background: #f3f4f3;
  color: var(--ink);
  transform: translateY(-2px);
}

.button-delete-confirm {
  background: #c53030;
  border: 1px solid #c53030;
  color: #ffffff;
}

.button-delete-confirm:hover,
.button-delete-confirm:focus,
.button-delete-confirm:active {
  background: #a02828;
  border-color: #a02828;
  color: #ffffff;
  transform: translateY(-2px);
}

.button.wide {
  width: 100%;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.84rem;
}

.text-link span {
  margin-left: 5px;
}

/* ── Hero ── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgb(255 255 255 / 18%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 18%) 1px, transparent 1px);
  background-size: 58px 58px;
}

.hero-glow {
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: var(--lime);
  filter: blur(140px);
  opacity: 0.12;
}

.hero-grid {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 56px;
  padding-block: 40px;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--lime);
}

h1, h2, h3 {
  margin-top: 0;
  font-family: inherit;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero h1 .hero-title-accent {
  display: block;
  color: var(--lime);
}

.hero-copy > p {
  max-width: 610px;
  margin: 0;
  color: #ffffff;
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.hero-proof {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.hero-proof div {
  display: flex;
  flex-direction: column;
}

.hero-proof strong {
  color: var(--lime);
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 700;
}

.hero-proof span {
  margin-top: 3px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 500;
}

.hero-proof-stars {
  display: inline-flex;
  gap: 3px;
  margin-top: 4px;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 1px;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: block;
  border-radius: 60px 14px 60px 14px;
  box-shadow: 0 35px 80px rgb(0 0 0 / 28%);
}

.hero-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 700ms ease, transform 5500ms ease;
}

.hero-image-wrap img.active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero-float {
  z-index: 2;
  position: absolute;
  right: -24px;
  bottom: 32px;
  width: 240px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  left: 20px;
  display: flex;
  gap: 6px;
}

.hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 58%);
  cursor: pointer;
}

.hero-dots button.active {
  width: 22px;
  border-radius: 8px;
  background: var(--lime);
}

.hero-float span {
  color: var(--green);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-float strong {
  margin-top: 6px;
  font-family: inherit;
  font-weight: 700;
}

.hero-float small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Search band ── */

.search-band {
  background: var(--white);
  box-shadow: 0 12px 36px rgb(17 27 35 / 6%);
}

.quick-search {
  min-height: 140px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 60px;
}

.quick-search h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.quick-search .eyebrow {
  margin-bottom: 4px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
}

.search-field {
  position: relative;
  min-width: 0;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.search-suggestion {
  padding: 2px;
}

.search-suggestion button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.search-suggestion button:hover,
.search-suggestion--active button {
  background: var(--lime-soft);
}

.search-suggestion button strong {
  font-weight: 700;
}

.search-suggestion-arrow {
  flex: 0 0 auto;
  color: var(--muted);
  opacity: 0.55;
}

.search-suggestion button:hover .search-suggestion-arrow,
.search-suggestion--active .search-suggestion-arrow {
  color: var(--green);
  opacity: 1;
}

.search-empty {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}



/* ── Forms ── */

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #3b4a52;
  font-size: 0.76rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 400;
}

input, select {
  height: 46px;
  padding: 0 14px;
}

textarea {
  padding: 12px 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #98a29d;
}

/* ── Sections ── */

.section {
  padding-block: 64px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-heading h2,
.trust-copy h2,
.interest-grid h2,
.story-grid h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.detail-info h2 {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading .eyebrow {
  margin-bottom: 6px;
}

/* ── Vehicle cards ── */

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.vehicle-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.vehicle-image {
  position: relative;
  aspect-ratio: 3 / 4;
  display: block;
  overflow: hidden;
  background: #dfe4df;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 450ms ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.04);
}

.vehicle-image > span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgb(17 27 35 / 82%);
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.vehicle-content {
  padding: 20px;
}

.vehicle-content > p {
  margin: 0 0 2px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.vehicle-content h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.vehicle-content > small {
  display: block;
  min-height: 20px;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}

.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.vehicle-specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f0f3ef;
  color: #57645e;
  font-size: 0.7rem;
  font-weight: 500;
}

.vehicle-specs .spec-chip-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--green);
}

.vehicle-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.vehicle-price div {
  display: flex;
  flex-direction: column;
}

.vehicle-price small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
}

.vehicle-price strong {
  margin-top: 2px;
  color: var(--green);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
}

.vehicle-price > a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── Trust ── */

.trust-section {
  background: var(--green-dark);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.trust-copy p {
  max-width: 500px;
  margin: 18px 0 26px;
  color: #ffffff;
  line-height: 1.7;
  font-weight: 400;
}

.trust-list {
  border-top: 1px solid rgb(255 255 255 / 15%);
}

.trust-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgb(255 255 255 / 15%);
}

.trust-list article > span {
  color: #ffffff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
}

.trust-list h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
  font-weight: 700;
}

.trust-list p {
  margin: 0;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 400;
}

/* ── CTA panel ── */

.cta-panel {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 10%, var(--lime-soft), transparent 30%),
    var(--green);
  color: var(--white);
}

/* Outer section behind CTA — pure white */
.cta-section {
  background: #ffffff;
}

.cta-panel h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */

.footer {
  padding-top: 56px;
  background: #1d2127;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 1.05fr;
  gap: 48px;
  padding-bottom: 44px;
}

.footer-logo {
  width: 180px;
  height: 50px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  margin-bottom: 8px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* Section title with turquoise short line */
.footer-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.footer-title strong {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-title-line {
  width: 28px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}

.footer-grid p {
  max-width: 340px;
  margin: 0;
  color: rgb(255 255 255 / 72%);
  line-height: 1.6;
  font-size: 0.82rem;
  font-weight: 400;
}

.footer-grid a {
  color: rgb(255 255 255 / 72%);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  transition: color 160ms ease;
}

.footer-grid a:hover {
  color: rgb(255 255 255 / 85%);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(255 255 255 / 25%);
}

/* Social icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  text-decoration: none;
  line-height: 0;
  transition:
    transform 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
  fill: currentColor;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  display: block;
  position: relative;
  z-index: 1;
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--green) 85%, white);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--green) 32%, transparent);
}

.footer-social a:hover svg {
  color: #ffffff;
  fill: #ffffff;
  opacity: 1;
  visibility: visible;
}

/* Contact icons */
.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.footer-contact-icon {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 3px;
}

/* Contact units */
.footer-unit {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.footer-unit-title {
  color: var(--green) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-unit span {
  color: rgb(255 255 255 / 60%) !important;
  font-size: 0.8rem !important;
  font-weight: 400;
}

.footer-unit a {
  font-size: 0.82rem;
}

/* Phone links — visually identical to surrounding text, no hover effect */
.footer-contact-line[href^="tel:"],
.footer-contact-line[href^="tel:"]:hover,
.footer-contact-line[href^="tel:"]:focus,
.footer-contact-line[href^="tel:"]:active,
.footer-contact-line[href^="tel:"]:visited {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
  background: transparent;
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  color: rgb(255 255 255 / 55%);
  font-size: 0.78rem;
  font-weight: 400;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  padding-block: 16px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: rgb(255 255 255 / 45%);
  font-size: 0.72rem;
  font-weight: 400;
}

/* ══════════════════════════════════════
   PAGE HERO (Estoque, Contato, etc.)
   ══════════════════════════════════════ */

.page-hero {
  padding: 64px 0 60px;
  background:
    radial-gradient(circle at 85% 25%, var(--lime-soft), transparent 30%),
    var(--green);
  color: var(--white);
}

.page-hero h1 {
  max-width: 880px;
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--store-secondary);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.6;
}

.contact-hero {
  padding-bottom: 100px;
}

/* ── Inventory layout ── */

.inventory-section {
  padding-top: 44px;
}

.inventory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.filter-toggle {
  display: none;
}

.inventory-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.inventory-sidebar-header {
  display: none;
}

.inventory-sidebar label {
  gap: 5px;
}

.inventory-sidebar label > span {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inventory-sidebar input,
.inventory-sidebar select {
  height: 42px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 400;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.filter-actions .button {
  min-height: 44px;
  font-size: 0.86rem;
  font-weight: 600;
}

.filter-actions .text-link {
  align-self: center;
  font-size: 0.78rem;
}

.inventory-sidebar-overlay {
  display: none;
}

.inventory-main {
  min-width: 0;
}

.inventory-main .results-line {
  margin: 0 0 16px;
}

.results-line {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.results-line strong {
  color: var(--ink);
  font-weight: 700;
}

.inventory-grid {
  row-gap: 20px;
}

.empty-state {
  padding: 56px 24px;
  border: 1px dashed #bdc8c1;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.empty-state > span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.empty-state h2 {
  margin: 6px 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 400;
}

/* ══════════════════════════════════════
   VEHICLE DETAIL
   ══════════════════════════════════════ */

.breadcrumb {
  display: flex;
  gap: 8px;
  padding-block: 22px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  padding-bottom: 60px;
}

.detail-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  background: #e8ece8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.detail-thumbnails {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  border-radius: 12px;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(0 0 0 / 6%);
  box-shadow: 0 4px 16px rgb(0 0 0 / 6%);
  scrollbar-width: thin;
  scrollbar-color: rgb(0 0 0 / 12%) transparent;
}

.detail-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.detail-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.detail-thumbnails::-webkit-scrollbar-thumb {
  background: rgb(0 0 0 / 12%);
  border-radius: 4px;
}

.detail-thumbnails img {
  width: 88px;
  height: 66px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
  opacity: 0.72;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.detail-thumbnails img:hover {
  opacity: 0.92;
  border-color: rgb(0 0 0 / 18%);
}

.detail-thumbnails img.active-thumb {
  border-color: var(--green);
  opacity: 1;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 20%, transparent);
}

.detail-status {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f3ec;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

.detail-media > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgb(17 27 35 / 78%);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 500;
}

/* ── Galeria de fotos (enhanced) ── */

.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.gallery-main {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  background: #e8ece8;
  overflow: hidden;
}

.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-expand-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(17 27 35 / 62%);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Setas discretas da imagem principal */
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgb(17 27 35 / 8%);
  border-radius: 50%;
  background: rgb(255 255 255 / 72%);
  color: var(--ink);
  box-shadow: 0 2px 10px rgb(17 27 35 / 12%);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.gallery-nav--prev { left: 12px; }
.gallery-nav--next { right: 12px; }
.gallery-nav:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-50%) scale(1.04);
}

/* Miniaturas: faixa transparente, sem container branco */
.gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gallery-thumbs-scroll {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
}
.gallery-thumbs-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-thumbs-nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.gallery-thumbs-nav:hover:not(:disabled) {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
}
/* Setas das miniaturas ficam SEMPRE visíveis (antes, display:none no
   estado disabled fazia a seta esquerda/direita "sumir" nas pontas do
   scroll). Inativas apenas esmaecem. */
.gallery-thumbs-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #e8ece8;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease, opacity 160ms ease;
}
.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 160ms ease;
}
.gallery-thumb:hover img {
  opacity: 0.92;
}
.gallery-thumb--active {
  border-color: var(--green);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 22%, transparent);
}
.gallery-thumb--active img {
  opacity: 1;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(10 14 17 / 92%);
  backdrop-filter: blur(6px);
  animation: gallery-fade 160ms ease;
}

.gallery-lightbox-image {
  max-width: min(920px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: var(--white);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.gallery-lightbox-close:hover {
  background: rgb(255 255 255 / 24%);
  transform: rotate(90deg);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: var(--white);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.gallery-lightbox-nav--prev { left: 22px; }
.gallery-lightbox-nav--next { right: 22px; }
.gallery-lightbox-nav:hover {
  background: var(--green);
  color: var(--white);
}

.gallery-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@keyframes gallery-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}


.detail-summary {
  padding-top: 0;
}

.detail-summary h1 {
  margin-bottom: 2px;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.detail-version {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.detail-price {
  display: flex;
  flex-direction: column;
  margin: 22px 0 20px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.detail-price small {
  color: var(--muted);
  font-weight: 500;
}

.detail-price strong {
  margin-top: 2px;
  color: var(--green);
  font-family: inherit;
  font-size: 2rem;
  font-weight: 700;
}

/* Spec cards with icons */
.detail-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.spec-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 13px 12px;
  border-radius: 10px;
  background: #f5f7f4;
  border: 1px solid transparent;
  transition: border-color 180ms ease;
}

.spec-card:hover {
  border-color: #d5dfd8;
}

.spec-icon {
  color: var(--green);
  flex-shrink: 0;
  margin-bottom: 2px;
}

.spec-card span {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spec-card strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 400;
}

/* Detail info section */
.detail-info {
  background: var(--white);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.detail-content-stack {
  display: grid;
  gap: 48px;
}

.detail-description {
  max-width: 760px;
}

.detail-description p {
  margin-bottom: 0;
  white-space: pre-line;
}

.detail-info p,
.interest-grid p,
.story-grid p {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 400;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-content: start;
}

.feature-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--green);
  font-weight: 600;
}

.feature-list .feature-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--green);
}
/* ── Opcionais agrupados (detalhe do veículo) ── */

.feature-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-group {
  padding: 0;
}

.feature-group-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  position: relative;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* Linha divisória abaixo dos títulos dos grupos — 50px mais estreita que a
   largura total (30px a menos do que a versão anterior), mantendo posição,
   cor, espessura e espaçamento do título originais. */
.feature-group-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 50px;
  bottom: 0;
  border-bottom: 1px solid var(--line);
}

.feature-group-items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.feature-item .feature-icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--green);
}



/* Interest / contact form */
.interest-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form.compact {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
  font-size: 0.74rem;
}

.consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--green);
}

.form-success {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.form-success > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--green);
  font-size: 1.3rem;
}

.form-success h2 {
  margin-bottom: 4px;
  font-weight: 700;
}

.form-success p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
}

/* ── Sucesso do envio em verde moderno e suave (veículo + contato) ──
   Escopado às páginas com o visual: interesse (veiculo.php) e #mensagem (contato.php). */
.interest-grid .form-success > span,
#mensagem .form-success > span {
  background: #e3f6ec; /* fundo do ícone em verde bem claro */
  color: #1a9b63;      /* check em verde suave */
}

.interest-grid .form-success h2,
#mensagem .form-success h2 {
  color: #0d6f4f; /* título em verde escuro moderno */
}

.interest-grid .form-success .text-link,
#mensagem .form-success .text-link {
  color: #0d6f4f;
}

.interest-grid .form-success .text-link:hover,
#mensagem .form-success .text-link:hover {
  color: #0a5c40;
}


.related {
  padding-top: 16px;
}

/* ══════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════ */

.unit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.unit-info h2 {
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.unit-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.unit-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.unit-icon {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 2px;
}

.unit-detail-item span,
.unit-detail-item a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;
}

.unit-detail-item a:hover {
  color: var(--green);
}

.unit-hours-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.unit-hours-list span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 400;
}

.map-frame {
  overflow: hidden;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #dfe7e4;
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Fallback neutro do mapa (nunca iframe quebrado). */
.map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.map-fallback-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--ink);
}

.map-fallback-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
}

.map-fallback-body a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

.map-fallback-body a:hover {
  text-decoration: underline;
}

.form-panel {
  padding: 38px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-panel > h2 {
  margin-bottom: 22px;
  font-size: 1.7rem;
  font-weight: 700;
}

.form-panel .eyebrow {
  margin-bottom: 3px;
}

/* ══════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════ */

.about-hero {
  padding: 64px 0 60px;
  background:
    radial-gradient(circle at 85% 25%, var(--lime-soft), transparent 30%),
    var(--green);
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 72px;
  align-items: end;
}

.about-grid h1 {
  max-width: 850px;
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.about-grid > p {
  margin: 0 0 6px;
  color: var(--store-secondary);
  line-height: 1.6;
  font-size: 0.98rem;
  font-weight: 400;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  border-radius: 18px 60px 18px 60px;
}

.values-section {
  background: var(--green);
  color: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.values-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 14px;
  background: rgb(255 255 255 / 5%);
}

.values-grid article > span {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
}

.values-grid h3 {
  margin: 50px 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
}

.values-grid p {
  margin: 0;
  color: var(--store-secondary);
  font-weight: 400;
}

/* ── Utility: muted text on primary-colored backgrounds ── */
.store-on-primary-muted { color: var(--store-secondary); }

/* ══════════════════════════════════════
   COMPACT OFFERS (related vehicles)
   ══════════════════════════════════════ */

.compact-offers {
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.compact-offers .vehicle-image {
  aspect-ratio: 3 / 4;
}

.compact-offers .vehicle-content {
  padding: 13px;
}

.compact-offers .vehicle-content h3 {
  font-size: 0.96rem;
}

.compact-offers .vehicle-content > small,
.compact-offers .vehicle-specs {
  display: none;
}

.compact-offers .vehicle-price {
  margin-top: 10px;
  padding-top: 10px;
}

.compact-offers .vehicle-price strong {
  font-size: 0.9rem;
}

.compact-offers .vehicle-price > a {
  width: 30px;
  height: 30px;
}

/* ══════════════════════════════════════
   DASHBOARD (admin panel)
   ══════════════════════════════════════ */

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  background: #f3f6f5;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  border-right: 1px solid #dfe7e4;
  background: var(--white);
}

.dashboard-brand {
  display: block;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--line);
}

.dashboard-brand img {
  width: 175px;
  height: 52px;
  object-fit: contain;
  transition: opacity 160ms ease;
}

.dashboard-brand:hover img {
  opacity: 0.82;
}

.dashboard-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  flex: 1;
}

.dashboard-nav-label {
  padding: 0 13px 12px;
  color: #8b9893;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.dashboard-nav-item {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border-radius: 9px;
  color: #4f5d58;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.dashboard-nav-item:hover:not(.disabled):not(.active) {
  background: #f3f6f5;
  color: var(--ink);
}

.dashboard-nav-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f3f6f5;
  color: #7a8c84;
  flex-shrink: 0;
  transition: background 160ms ease, color 160ms ease;
}

.dashboard-nav-item.active .dashboard-nav-icon {
  background: rgb(255 255 255 / 22%);
  color: var(--white);
}

.dashboard-nav-item:hover:not(.disabled):not(.active) .dashboard-nav-icon {
  background: #e8edea;
  color: var(--green);
}

.dashboard-nav-icon.muted {
  background: #f8faf9;
  color: #b7c2bd;
}

.dashboard-nav-item.active {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 14px var(--store-primary-glow);
}

.dashboard-nav-item.disabled {
  color: #a8b1ad;
  cursor: default;
}

.dashboard-local-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 11px;
  /* Identidade da loja (antes: gradiente teal fixo, fora da marca). */
  background: var(--lime-soft);
  color: var(--green-dark);
  border: 1px solid color-mix(in srgb, var(--green) 35%, white);
}

.dashboard-local-note strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-local-note span {
  font-size: 0.68rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--green-dark) 75%, var(--ink));
}


.dashboard-logout {
  margin-top: 10px;
  padding: 9px 14px;
  border: 1px solid #dfe4df;
  border-radius: 9px;
  background: transparent;
  color: #4a5650;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dashboard-logout:hover {
  background: #fdece8;
  border-color: #f3c9bd;
  color: #b32d14;
}


.dashboard-content {
  min-width: 0;
}

.dashboard-topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid #dfe7e4;
  background: var(--white);
}

.dashboard-topbar > div {
  display: flex;
  flex-direction: column;
}

.dashboard-topbar span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.dashboard-topbar strong {
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 700;
}

.dashboard-preview {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-dark);
  gap: 8px;
}

.dashboard-preview:hover {
  background: #f8faf9;
  border-color: #c8d6cf;
}

.dashboard-page {
  width: min(1050px, calc(100% - 64px));
  margin: 0 auto;
  padding: 54px 0 90px;
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.dashboard-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.dashboard-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.dashboard-success {
  margin-bottom: 18px;
  padding: 14px 17px;
  border: 1px solid #9fdedb;
  border-radius: 10px;
  background: #e7f8f7;
  color: #006c68;
  font-size: 0.84rem;
  font-weight: 600;
}

.editor-shell {
  overflow: hidden;
  border: 1px solid #dfe7e4;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 38px rgb(17 27 35 / 6%);
}

.editor-tabs {
  display: flex;
  gap: 6px;
  padding: 16px 22px 0;
  border-bottom: 1px solid var(--line);
}

.editor-tabs button {
  padding: 12px 15px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.editor-tabs button.active {
  border-color: var(--green);
  color: var(--green-dark);
}

.editor-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding: 30px;
}

.editor-fields label:has(textarea) {
  grid-column: 1 / -1;
}

.editor-fields input,
.editor-fields textarea {
  background: #fbfcfb;
}

/* ── Upload cards (favicon / logos) ── */

.upload-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 12px;
  background: #f8faf9;
}

.upload-card-preview {
  display: flex;
  gap: 16px;
  align-items: center;
}

.upload-card-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #e8ece8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.upload-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-label span {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 600;
}

.upload-input {
  height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-size: 0.84rem;
  color: var(--ink);
  cursor: pointer;
}

.upload-input::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 160ms ease;
}

.upload-input::file-selector-button:hover {
  background: var(--green-dark);
}

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 30px;
  border-top: 1px solid var(--line);
  background: #f8faf9;
}

/* ══════════════════════════════════════
   FINANCIAMENTO FORM
   ══════════════════════════════════════ */

.fin-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.fin-section-title {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.03em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.fin-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fin-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fin-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.fin-card label {
  gap: 5px;
}

.fin-card label > span {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 600;
}

.fin-card input,
.fin-card select,
.fin-card textarea {
  height: 44px;
  border-radius: 9px;
  font-size: 0.88rem;
}

.fin-card textarea {
  height: auto;
}

.field-error {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 2px;
}

.fin-consent {
  display: flex;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.5;
}

.fin-consent input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green);
}

.fin-consent a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
}

.fin-privacy-note {
  padding: 14px 18px;
  border-radius: 10px;
  background: #f8faf7;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 680px) {
  .fin-row-2,
  .fin-row-3 {
    grid-template-columns: 1fr;
  }

  .fin-card {
    padding: 20px 16px;
  }
}

/* ══════════════════════════════════════
   WHATSAPP FLOAT
   ══════════════════════════════════════ */

.whatsapp-float {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 22px rgb(37 211 102 / 38%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgb(37 211 102 / 50%);
}

/* ══════════════════════════════════════
   RESPONSIVE – 960px
   ══════════════════════════════════════ */

@media (max-width: 960px) {
  .nav {
    gap: 16px;
  }

  .nav .nav-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero-copy {
    max-width: 760px;
  }

  .quick-search,
  .trust-grid,
  .detail-info-grid,
  .interest-grid,
  .story-grid,
  .about-grid,
  .unit-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .compact-offers {
    grid-template-columns: repeat(3, 1fr);
  }

  .inventory-layout {
    grid-template-columns: 1fr;
  }

  .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
  }

  .filter-toggle:hover {
    background: #f3f5f2;
  }

  .inventory-sidebar {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    width: 290px;
    max-width: 85vw;
    height: 100dvh;
    overflow-y: auto;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 0 0 1px rgb(17 27 35 / 6%), 0 18px 55px rgb(17 27 35 / 16%);
    transform: translateX(-100%);
    transition: transform 260ms ease;
  }

  .inventory-sidebar.open {
    transform: translateX(0);
  }

  .inventory-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }

  .inventory-sidebar-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
  }

  .filter-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f0f3ef;
    color: var(--ink);
    cursor: pointer;
    font-size: 1rem;
  }

  .inventory-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgb(17 27 35 / 40%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
  }

  .inventory-sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .inventory-main .results-line {
    margin-top: 0;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .about-grid > p {
    max-width: 700px;
  }

  .map-frame {
    height: 300px;
  }

  .section {
    padding-block: 48px;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE – 680px
   ══════════════════════════════════════ */

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1220px);
  }

  .contact-bar {
    min-height: auto;
    padding-block: 6px;
  }

  .contact-bar-inner {
    flex-direction: column;
    gap: 6px;
    padding-block: 3px;
  }

  .contact-bar-info {
    gap: 12px;
    justify-content: center;
    font-size: 0.66rem;
  }

  .contact-bar-social {
    gap: 10px;
  }

  .contact-bar-login {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .header-inner {
    min-height: 60px;
  }

  .brand-logo {
    width: 150px;
    height: 40px;
  }

  .menu-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 0;
    border-radius: 8px;
    background: #e9ede8;
  }

  .menu-button span {
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .nav {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 22px 40px rgb(17 27 35 / 15%);
  }

  .nav.open {
    display: flex;
  }

  .nav > a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav > a::after {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    padding-block: 48px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-actions,
  .hero-proof {
    flex-direction: column;
  }

  .hero-proof {
    gap: 14px;
  }

  .hero-proof div {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .quick-search {
    display: block;
    padding-block: 28px;
  }

  .search-form {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .section {
    padding-block: 44px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .text-link {
    display: inline-block;
    margin-top: 12px;
  }

  .vehicle-grid,
  .values-grid,
  .detail-specs,
  .feature-list,
  .feature-groups,
  .field-row {
    grid-template-columns: 1fr;
  }

  .compact-offers {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .compact-offers .vehicle-card {
    min-width: 220px;
    scroll-snap-align: start;
  }

  .cta-panel {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer {
    padding-top: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .page-hero,
  .about-hero {
    padding-block: 48px;
  }

  .contact-hero {
    padding-bottom: 70px;
  }

  .detail-grid {
    gap: 16px;
  }

  .gallery-nav {
    width: 32px;
    height: 32px;
  }
  .gallery-nav svg {
    width: 18px;
    height: 18px;
  }
  .gallery-nav--prev { left: 8px; }
  .gallery-nav--next { right: 8px; }

  .gallery-thumbs-nav {
    width: 26px;
    height: 26px;
  }
  .gallery-thumb {
    width: 72px;
    height: 56px;
  }

  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .gallery-lightbox-nav--prev { left: 8px; }
  .gallery-lightbox-nav--next { right: 8px; }

  .detail-summary h1 {
    font-size: 2.2rem;
  }

  .form-panel,
  .contact-form.compact {
    padding: 22px;
  }

  .inventory-section {
    padding-top: 32px;
  }

  .whatsapp-float {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-float svg {
    width: 21px;
    height: 21px;
  }

  .dashboard {
    display: block;
  }

  .dashboard-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px 14px;
  }

  .dashboard-brand {
    padding-bottom: 15px;
  }

  .dashboard-sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 14px;
  }

  .dashboard-nav-item {
    min-width: 0;
    white-space: nowrap;
  }

  .dashboard-nav-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-nav-label,
  .dashboard-nav-item.disabled,
  .dashboard-local-note {
    display: none;
  }

  .dashboard-nav-item.active {
    justify-content: center;
    grid-column: 1 / -1;
  }

  .dashboard-topbar {
    padding: 0 18px;
  }

  .dashboard-page {
    width: min(100% - 28px, 1050px);
    padding-top: 38px;
  }

  .dashboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-fields {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .editor-fields label:has(textarea) {
    grid-column: auto;
  }

  .editor-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 20px 22px;
  }
}

/* ── Vehicles admin table ── */

.vehicles-page {
  --vehicles-space-1: 4px;
  --vehicles-space-2: 8px;
  --vehicles-space-3: 12px;
  --vehicles-space-4: 16px;
  --vehicles-space-5: 24px;
}

.vehicles-page .dashboard-heading {
  margin-bottom: 28px;
}

.vehicles-page .dashboard-summary {
  margin-bottom: 28px;
}

.vehicles-page .dashboard-search {
  margin-bottom: var(--vehicles-space-4);
}

.vehicles-results-line {
  margin-bottom: var(--vehicles-space-4);
}

.vehicles-page .vehicles-modal-actions {
  justify-content: flex-start;
}

.vehicles-page .vehicles-inline-form {
  display: inline;
  margin: 0;
}

.vehicles-table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.vehicles-admin-table {
  width: 100%;
  min-width: 1020px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: #34413b;
}

.vehicles-admin-table .vehicles-col-photo { width: 8%; }
.vehicles-admin-table .vehicles-col-name { width: 24.5%; }
.vehicles-admin-table .vehicles-col-year { width: 10.5%; }
.vehicles-admin-table .vehicles-col-price { width: 14%; }
.vehicles-admin-table .vehicles-col-status { width: 15%; }
.vehicles-admin-table .vehicles-col-featured { width: 9%; }
.vehicles-admin-table .vehicles-col-actions { width: 19%; }

.vehicles-admin-table thead tr {
  height: 48px;
}

.vehicles-admin-table th {
  text-align: left;
  padding: 0 var(--vehicles-space-4);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 2px solid #eef2ee;
  white-space: nowrap;
  background: #fafcfa;
}

.vehicles-admin-table td {
  padding: var(--vehicles-space-3) var(--vehicles-space-4);
  border-bottom: 1px solid #f3f6f5;
  vertical-align: middle;
}

/* Altura mínima uniforme das linhas (na ROW, não na célula: altura fixa na
   célula fazia o preço ficar desalinhado no eixo vertical da linha). */
.vehicles-admin-table tbody tr {
  height: 84px;
}

.vehicles-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.vehicles-admin-table tbody tr:hover {
  background: #fafcfb;
}

.vehicles-admin-table td strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.vehicles-admin-table td small {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
  margin-top: var(--vehicles-space-1);
  overflow-wrap: break-word;
}

.vehicles-admin-table .year-cell,
.vehicles-admin-table .vehicle-price {
  white-space: nowrap;
  vertical-align: middle;
}

/* A regra .vehicle-price do SITE PÚBLICO (display:flex, margin-top,
   padding-top, border-top) vazava para a célula da tabela: a célula virava
   um flex box, ganhava uma divisória superior e o preço descia do eixo da
   linha. Aqui ela volta a ser uma célula comum, centralizada no eixo. */
.vehicles-admin-table .vehicle-price {
  display: table-cell;
  align-items: initial;
  justify-content: initial;
  margin: 0;
  padding: var(--vehicles-space-3) var(--vehicles-space-4);
  border-top: 0;
  color: var(--green);
  font-weight: 600;
}

.vehicles-admin-table .status-column,
.vehicles-admin-table .status-cell,
.vehicles-admin-table .featured-column,
.vehicles-admin-table .featured-cell,
.vehicles-admin-table .actions-column {
  text-align: center;
}

.vehicles-admin-table .status-cell form,
.vehicles-admin-table .featured-cell form {
  margin: 0;
}

.vehicles-admin-table .status-select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 34px;
  margin: 0 auto;
  padding: 0 28px 0 10px;
  border-radius: 8px;
  color: #44524b;
  font-size: 0.76rem;
  font-weight: 600;
}

.vehicles-admin-table .featured-toggle {
  min-width: 68px;
  height: 34px;
  justify-content: center;
}

.vehicles-admin-table .vehicle-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.vehicles-admin-table .vehicle-actions .button-sm {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 38px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.vehicles-admin-table .vehicle-actions .button-sm svg {
  flex-shrink: 0;
}

.vehicles-admin-table .vehicle-actions .button-sm:hover {
  border-color: #c3d0ca;
  background: #f5f8f6;
}

.vehicles-admin-table .vehicle-actions .button-sm.danger {
  border-color: #f0cbcb;
  color: #b3403f;
  background: #fffafa;
}

.vehicles-admin-table .vehicle-actions .button-sm.danger:hover {
  border-color: #e3aeae;
  background: #fdeeee;
  color: #9c2f2e;
}

.vehicles-admin-table .vehicle-actions .button-sm:focus-visible,
.vehicles-admin-table .status-select:focus-visible,
.vehicles-admin-table .featured-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--green) 55%, white);
  outline-offset: 2px;
}

.vehicles-table-thumb {
  width: 56px;
  height: 56px;
  /* Evita que a regra global img{max-width:100%} estreite só a largura da
     foto, deixando-a espremida na vertical. Mantém o quadrado 56×56. */
  max-width: none;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2ee;
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
}

.vehicles-table-thumb-placeholder {
  display: flex; /* bloco como o img: mesma altura de linha sem artefatos */
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  background: #f5f7f4;
  border-radius: 8px;
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px dashed #d8dfda;
}

/* Coluna "Foto": reduz só o padding direito para a miniatura quadrada caber
   na coluna sem alargar a tabela (a largura total da célula é preservada).
   Escopada à listagem de veículos — não afeta a tabela de Financiamentos. */
.vehicles-list-wrap .vehicles-admin-table th:first-child,
.vehicles-list-wrap .vehicles-admin-table td:first-child {
  padding-right: var(--vehicles-space-2);
}

@media (max-width: 1100px) {
  .vehicles-admin-table {
    min-width: 1020px;
  }
}

@media (max-width: 768px) {
  .vehicles-page .dashboard-heading,
  .vehicles-page .dashboard-summary {
    margin-bottom: var(--vehicles-space-5);
  }

  .vehicles-page .dashboard-search {
    margin-bottom: var(--vehicles-space-3);
  }

  .vehicles-table-wrap {
    border-radius: 12px;
  }

  .vehicles-admin-table {
    min-width: 1020px;
  }

  .vehicles-admin-table th {
    padding-inline: var(--vehicles-space-3);
  }

  .vehicles-admin-table td {
    padding: 10px var(--vehicles-space-3);
  }
}

/* ── Badges ── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-success {
  background: #d9f7e9;
  color: #0d6b3d;
}

.badge-danger {
  background: #fde8e8;
  color: #9b1c1c;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-muted {
  background: #eef2ee;
  color: var(--muted);
}

/* ── Login page ── */

.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f5f7f4;
}

.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 48px 32px;
  box-shadow: 0 4px 24px rgb(0 0 0 / 7%);
}

.login-logo {
  height: 52px;
  margin-bottom: 24px;
  object-fit: contain;
}

.login-card h1 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.login-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.login-card .button {
  display: inline-flex;
}


.login-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.login-form label {
  display: grid;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #3b4a52;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 400;
  font-size: 0.9rem;
  padding: 12px 14px;
}

.login-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent);
}

.login-form .button {
  margin-top: 4px;
}

.login-error {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdece8;
  color: #b32d14;
  font-size: 0.82rem;
  line-height: 1.5;
}

.login-back {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.login-back:hover {
  color: var(--green);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 0;
}

.login-form .login-remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}

.login-form .login-remember input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.login-forgot {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.login-forgot:hover {
  color: var(--green);
  text-decoration: underline;
}

.login-alert {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: left;
}

.login-alert.success {
  background: #e5f6ec;
  color: #0d6b3d;
}


/* ── Pill badges (alternate style for table cells) ── */

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.badge-pill.success { background: #e5f7ee; color: #0d6b3d; }
.badge-pill.danger  { background: #fde8e8; color: #9b1c1c; }
.badge-pill.warning { background: #fef7e0; color: #92400e; }
.badge-pill.info    { background: #e5f0ff; color: #1e40af; }
.badge-pill.muted   { background: #f0f3f0; color: #627079; }

/* ── Empty state ── */

.dashboard-empty {
  text-align: center;
  padding: 56px 24px;
}

.dashboard-empty > span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green); /* micro-label na cor da loja */
  margin-bottom: 8px;
}

.dashboard-empty h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.dashboard-empty p {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Dashboard summary cards ── */

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.dashboard-summary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-summary-card:hover {
  border-color: #c8d6cf;
  box-shadow: var(--shadow);
}

.dashboard-summary-card .dashboard-summary-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lime-soft);
  color: var(--green-dark);
  flex-shrink: 0;
}

.dashboard-summary-card strong {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green); /* números das métricas na cor da loja */
}

.dashboard-summary-card span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Admin search ── */

.dashboard-search {
  position: relative;
  margin-bottom: 20px;
}

.dashboard-search input {
  height: 46px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 400;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-search input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 12%, transparent);
}

.dashboard-search input::placeholder {
  color: #98a29d;
}

.dashboard-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* ── Error card (compact, not full-screen) ── */

.dashboard-error-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid #f5c6c6;
  border-radius: 12px;
  background: #fff8f8;
  margin-bottom: 24px;
}

.dashboard-error-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fde8e8;
  color: #c53030;
  flex-shrink: 0;
}

.dashboard-error-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #9b1c1c;
  margin-bottom: 3px;
}

.dashboard-error-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #b04040;
  line-height: 1.5;
}

/* ── Featured toggle ── */

.featured-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 160ms ease;
  white-space: nowrap;
}

.featured-toggle:hover {
  border-color: #c8cfb8;
  background: #fafbf8;
}

.featured-toggle.on {
  /* Estado selecionado "Sim" com o tom da loja. */
  border-color: color-mix(in srgb, var(--green) 45%, white);
  background: color-mix(in srgb, var(--green) 12%, white);
  color: var(--green-dark);
}

.featured-toggle.on:hover {
  background: color-mix(in srgb, var(--green) 20%, white);
}

.featured-toggle svg {
  width: 14px;
  height: 14px;
}

/* ── Vehicles mobile cards ── */

.vehicles-mobile-list {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.vehicle-mobile-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.vehicle-mobile-card-top {
  display: flex;
  gap: 12px;
  padding: 14px;
  align-items: center;
}

.vehicle-mobile-card-top img {
  width: 64px;
  height: 85px;
  object-fit: cover;
  border-radius: 6px;
  background: #eef2ee;
  flex-shrink: 0;
}

.vehicle-mobile-card-top strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.vehicle-mobile-card-top small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.vehicle-mobile-card-top span {
  display: block;
  font-size: 0.8rem;
  margin-top: 4px;
}

.vehicle-mobile-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #fafcfa;
  font-size: 0.8rem;
}

.text-muted {
  color: var(--muted);
  font-size: 0.82rem;
  cursor: default;
}

@media (max-width: 768px) {
  .vehicles-table-wrap {
    display: none;
  }

  .vehicles-mobile-list {
    display: flex;
  }
}

/* ── Vehicle form ── */

.vehicle-form {
  --vf-gap: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--vf-gap);
}

/* Seções agrupadas (carro/moto): o gap do formulário não alcança os fieldsets
   internos — aplica o mesmo respiro vertical, evitando blocos grudados. */
.vehicle-form #vf-car:not([hidden]),
.vehicle-form #vf-moto:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: var(--vf-gap);
}

.vehicle-form fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 24px 22px;
}

.vehicle-form legend {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 8px;
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid > .form-field-full {
  grid-column: 1 / -1;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #52606d;
}

.form-grid label span {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Respiro no formulário de veículo: mais espaço entre label e campo. */
.vehicle-form .form-grid label {
  gap: 7px;
}

/* Respiro entre as linhas de campos (cada linha é um bloco .form-grid). */
.vehicle-form .form-grid + .form-grid {
  margin-top: 16px;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.vehicle-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  background: #fbfcfb;
  color: #52606d;
  min-height: 42px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-grid input::placeholder,
.vehicle-form textarea::placeholder {
  color: #9aa6a5;
  opacity: 1;
}

.form-grid input:focus,
.form-grid select:focus,
.vehicle-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--store-primary-glow, rgba(210, 174, 109, 0.18));
  background: #fff;
}

.form-grid input:disabled,
.form-grid select:disabled,
.vehicle-form textarea:disabled {
  color: #8b9690;
  background: #f1f3f1;
  cursor: not-allowed;
}

.form-grid select option:disabled {
  color: #9aa6a5;
}

.form-grid textarea,
.vehicle-form textarea {
  width: 100%;
  resize: vertical;
}

/* Contador de características do formulário de moto. */
.moto-features-count {
  margin: 10px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

/* ── Color input dropdown ── */

.color-input-container {
  position: relative;
}

.color-input-container input {
  width: 100%;
}

.color-input-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-input-list li {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--ink);
}

.color-input-list li:hover,
.color-input-list li:focus {
  background: var(--green);
  color: #fff;
  outline: none;
}

/* ── Seletor pesquisável de marca/modelo de moto ── */
.moto-search .color-input-list {
  max-height: 280px;
}

.moto-select-empty {
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── FIPE block ── */

.fipe-block {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #f6faf8 0%, #f0f7f4 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.fipe-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.fipe-reference {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 400;
}

.fipe-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0d7a3e;
  margin-left: auto;
  letter-spacing: -0.02em;
}

.fipe-value.muted {
  color: #8a9995;
  font-weight: 500;
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* ── Opcionais (feature toggles) ── */

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-toggle {
  padding: 6px 14px;
  border: 1px solid #444;
  border-radius: 6px;
  background: transparent;
  color: #444;
  font-size: 0.8rem;
  font-weight: 400; /* visual do sistema antigo (botões herdavam 400 do body) */
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.feature-toggle:hover {
  background: #f0f0f0;
}

.feature-toggle-on {
  background: #444;
  color: #fff;
}

.feature-toggle-on:hover {
  background: #333;
}

/* Opcionais: checkbox real (visual escondido, focado por teclado) + label clicável.
   O estado selecionado é puro CSS (:checked + label) — sem JS para alternar. */
.feature-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

label.feature-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.feature-check:checked + .feature-toggle {
  background: #444;
  color: #fff;
}

.feature-check:checked + .feature-toggle:hover {
  background: #333;
}

.feature-check:focus-visible + .feature-toggle {
  /* Mesmo anel de foco global do sistema antigo (:focus-visible laranja). */
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}


.feature-panel-groups {
  display: grid;
  gap: 14px;
}

.feature-panel-group {
  padding: 14px;
  border: 1px solid rgb(0 0 0 / 12%);
  border-radius: 8px;
}

.feature-panel-group-title {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #444;
}

/* Validação visual (substitui a validação nativa silenciosa). */
.vehicle-form input.vf-invalid,
.vehicle-form select.vf-invalid,
.vehicle-form textarea.vf-invalid {
  border-color: #c62828 !important;
  box-shadow: 0 0 0 1px #c62828 inset;
  background-color: #fff5f5;
}

.vf-error {
  display: block;
  color: #c62828;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
}


.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

.form-alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}

.form-alert-error {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f5c6c6;
}

.form-alert-success {
  background: #d9f7e9;
  color: #0d6b3d;
  border: 1px solid #b7ebd0;
}

/* ── Photos section ── */

.photos-section {
  padding: 2px 0;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* mobile */
  gap: 12px;
}

@media (min-width: 769px) {
  .photos-grid {
    grid-template-columns: repeat(4, 1fr); /* desktop/tablet médio */
    gap: 14px;
  }
}

@media (min-width: 1400px) {
  .photos-grid {
    grid-template-columns: repeat(6, 1fr); /* desktop grande */
    gap: 12px;
  }

  /* Cards proporcionais à grade de 6 colunas */
  .photo-card-topline { padding: 6px 7px 4px; min-height: 28px; }
  .photo-order-badge { font-size: 0.66rem; }
  .photo-main-badge { font-size: 0.6rem; }
  .photo-drag-handle { font-size: 0.9rem; }
  .photo-card-actions { padding: 5px 7px 7px; }
  .photo-action { width: 24px; height: 24px; }
  .photo-card-upload { min-height: 140px; padding: 12px; }
  .photo-card-upload small { font-size: 0.64rem; }
}

.photo-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 3px 14px rgba(28, 45, 38, 0.06);
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.photo-card-main {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--store-primary-glow, rgba(210, 174, 109, 0.18)), 0 5px 16px rgba(28, 45, 38, 0.08);
}

.photo-card-dragging {
  opacity: 0.48;
  transform: scale(0.97) rotate(0.4deg);
  box-shadow: 0 12px 28px rgba(28, 45, 38, 0.18);
}

.photo-card[draggable="true"] {
  cursor: grab;
}

.photo-card[draggable="true"]:active {
  cursor: grabbing;
}

.photo-card-drop-target {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--store-primary-glow, rgba(210, 174, 109, 0.18));
}

.photo-card-topline {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px 6px;
  color: var(--muted);
}

.photo-order-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-drag-handle {
  margin-left: auto;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: #9aa6a5;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.1em;
  cursor: grab;
  touch-action: none;
}

.photo-drag-handle:hover,
.photo-drag-handle:active {
  color: var(--green);
  cursor: grabbing;
}

.photo-card-actions {
  display: flex;
  gap: 5px;
  padding: 7px 9px 9px;
  justify-content: flex-end;
  border-top: 1px solid #edf0ed;
}

.photo-action {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.photo-action:hover {
  color: var(--green-dark);
  border-color: var(--green);
  background: #fffaf1;
}

.photo-action.danger:hover {
  color: #b42318;
  border-color: #e6b5b0;
  background: #fff6f5;
}

.photo-main-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.text-link.danger {
  color: #c53030;
}

.photo-card-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  gap: 8px;
  padding: 16px;
  text-align: center;
  border-style: dashed;
  box-shadow: none;
}

.photo-upload-input {
  display: none;
}

.photo-upload-btn {
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.82rem;
}

.photo-card-upload small,
.photos-section > #photo-status {
  color: #8b9690;
  font-size: 0.72rem;
  line-height: 1.45;
}

.photos-section > #photo-status {
  margin: 10px 2px 0;
}

.photo-upload-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.photo-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Overlay de upload/otimização de fotos ── */

.upload-lock {
  overflow: hidden;
}

.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 27, 35, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.upload-overlay[hidden] {
  display: none;
}

.upload-overlay-open {
  opacity: 1;
}

.upload-overlay-card {
  width: min(360px, 90vw);
  padding: 30px 26px 26px;
  border-radius: 18px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(8px);
  transition: transform 220ms ease;
}

.upload-overlay-open .upload-overlay-card {
  transform: translateY(0);
}

.upload-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border: 4px solid #e3e9e5;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: upload-spin 0.8s linear infinite;
}

@keyframes upload-spin {
  to { transform: rotate(360deg); }
}

.upload-overlay-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.upload-overlay-progress {
  margin: 4px 0 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
}

.upload-overlay-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.upload-overlay-error {
  margin: 12px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b42318;
}

/* ── Actions column in listing ── */

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

.actions-cell .button-sm {
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.actions-cell .button-sm:hover {
  background: #f5f7f5;
  border-color: #c8d6cf;
}

.actions-cell .button-sm.danger {
  color: #c53030;
  border-color: #f5c6c6;
}

.actions-cell .button-sm.danger:hover {
  background: #fde8e8;
  border-color: #e8b4b4;
}

@media (max-width: 768px) {
  .vehicle-form {
    --vf-gap: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .photo-card-topline { padding: 7px 8px 5px; }
  .photo-card-upload { min-height: 150px; }
}

/* ── Modal ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Corrige modal de exclusão sempre visível: o atributo hidden
   era anulado pela regra .modal-overlay acima (display: flex).
   Com esta regra, o modal só aparece quando o JS remove o hidden. */
.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-box h3 {
  margin-bottom: 8px;
}

.modal-box p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ── Status select inline ── */

.status-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  min-width: 130px;
}

.status-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 15%, transparent);
}

/* ── Lead detail labels ── */

.lead-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}

.lead-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

/* ── Leads filter bar ── */

.leads-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.leads-filter-select {
  min-width: 150px;
  height: 46px;
  border-radius: 12px;
  font-size: 0.84rem;
}

/* ── Leads period filter ── */

.leads-period-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  height: 46px;
}

.leads-period-btn {
  padding: 0 14px;
  height: 100%;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.leads-period-btn:last-child {
  border-right: 0;
}

.leads-period-btn:hover {
  background: #f3f6f5;
  color: var(--ink);
}

.leads-period-btn.active {
  background: var(--green);
  color: var(--white);
}

/* ── Leads clear filters ── */

.leads-clear-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.8rem;
  gap: 6px;
}

/* ── Leads WhatsApp link in table ── */

.leads-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #25d366;
  font-size: 0.73rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.leads-wa-link:hover {
  opacity: 0.8;
}

/* ── Leads inline status select ── */

.leads-status-inline {
  min-width: 130px;
  height: 34px;
  padding: 0 8px;
  font-size: 0.74rem;
  border-radius: 8px;
}

/* ── Leads mobile cards ── */

.leads-mobile-list {
  display: none;
  gap: 14px;
}

.leads-mobile-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.leads-mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #f3f6f5;
}

.leads-mobile-card-header strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.leads-mobile-card-header small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

.leads-mobile-card-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leads-mobile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.leads-mobile-row span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.leads-mobile-row strong {
  font-size: 0.84rem;
  font-weight: 600;
  text-align: right;
}

.leads-mobile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f3f6f5;
  background: #fafcfa;
}

.leads-mobile-card-actions .button-sm {
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 160ms ease, border-color 160ms ease;
}

.leads-mobile-card-actions .button-sm:hover {
  background: #f5f7f5;
  border-color: #c8d6cf;
}

.leads-mobile-card-actions .button-sm.danger {
  color: #c53030;
  border-color: #f5c6c6;
}

.leads-mobile-card-actions .button-sm.danger:hover {
  background: #fde8e8;
  border-color: #e8b4b4;
}

/* ── Print: lead detail ── */
/* ── Leads table (desktop) — largura fixa, sem barra horizontal ── */

.leads-admin-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.leads-admin-table th,
.leads-admin-table td {
  padding: 12px 12px;
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
}

.leads-admin-table th {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 2px solid #eef2ee;
  white-space: nowrap;
  background: #fafcfa;
}

.leads-admin-table td {
  border-bottom: 1px solid #f3f6f5;
}

.leads-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.leads-admin-table tbody tr:hover {
  background: #fafcfb;
}

.leads-admin-table td strong {
  display: block;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leads-admin-table td small {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leads-td-date {
  white-space: nowrap;
  font-size: 0.78rem;
  color: #5c6b64;
}

.leads-td-date .leads-td-time {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  color: #98a29c;
  font-weight: 500;
}

/* Ações em grade 2×2 (visualizar | editar / imprimir | excluir) nas
   listagens de Leads e Financiamentos. Escopo pelo wrapper
   leads-table-desktop — não afeta a listagem de Veículos. */
.leads-table-desktop .actions-cell {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px;
  justify-content: center;
  align-content: center;
  justify-items: center;
}

/* Botões idênticos (mesmo tamanho, raio, borda e centralização do
   ícone) nas duas listagens — aparência compacta e alinhada. */
.leads-table-desktop .actions-cell .button-sm {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Coluna Ações mais equilibrada na tabela de Leads: a largura fixa de
   18% deixava a grade 2×2 “solta” no meio de uma célula muito larga.
   O min-width evita corte em telas menores (a célula nunca encolhe
   abaixo do necessário para a grade). */
.leads-admin-table col:nth-child(7) {
  width: 14% !important;
}
.leads-admin-table td:last-child {
  min-width: 92px;
}

/* Status e ações compactos dentro da tabela de leads */
.leads-admin-table .leads-status-inline {
  width: 100%;
  min-width: 0;
}

.leads-admin-table .actions-cell {
  gap: 4px;
  flex-wrap: wrap;
}

.leads-admin-table .actions-cell .button-sm {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.leads-admin-table .actions-cell .button-sm:hover {
  background: #f5f7f5;
  border-color: #c8d6cf;
}

.leads-admin-table .actions-cell .button-sm.danger {
  color: #c53030;
  border-color: #f5c6c6;
}

.leads-admin-table .actions-cell .button-sm.danger:hover {
  background: #fde8e8;
  border-color: #e8b4b4;
}

/* ── Cards de leads — grade responsiva ── */

.leads-mobile-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.leads-mobile-time {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: #98a29c;
}

@media (max-width: 480px) {
  .leads-mobile-card-grid {
    grid-template-columns: 1fr;
  }
}



@media print {
  .lead-print-header { display: flex !important; }
  .lead-print .form-actions,
  .lead-print .button,
  .lead-print .no-print,
  .lead-print .text-link[href]::after { display: none !important; }
  .lead-print-footer { display: block !important; }
}

/* ── Responsive: leads — cards abaixo de 1200px ── */

@media (max-width: 1199px) {
  .leads-table-desktop {
    display: none;
  }

  .leads-mobile-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 14px;
    align-items: start;
  }

  .leads-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .leads-filters .dashboard-search {
    min-width: 0;
  }

  .leads-period-group {
    overflow-x: auto;
  }

  .leads-period-btn {
    flex-shrink: 0;
    font-size: 0.74rem;
    padding: 0 10px;
  }
}

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

/* ══════════════════════════════════════
   VISÃO GERAL — DASHBOARD
   ══════════════════════════════════════ */

.dash-page {
  width: min(1180px, calc(100% - 64px));
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.dash-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.dash-stat-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex-shrink: 0;
  /* Ícones das métricas com o tom da loja (sem paleta aleatória). */
  background: var(--lime-soft);
  color: var(--green-dark);
}

.dash-stat strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--green); /* números das métricas na cor da loja */
}

.dash-stat div > span {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 600;
}

/* ── Cards / gráficos ── */

.dash-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.dash-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.dash-card-main {
  grid-column: 1 / -1;
}

.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dash-card-head strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}

.dash-card-head span {
  display: block;
  margin-top: 3px;
  font-size: 0.73rem;
  color: var(--muted);
}

.dash-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
  transition: color 160ms ease;
}

.dash-card-link:hover {
  color: var(--green);
}

.dash-bars {
  display: block;
  height: 210px;
}

.dash-chart-empty {
  margin: 0;
  padding: 18px 0 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.dash-donut-row {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.dash-donut-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  flex-shrink: 0;
}

.dash-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dash-donut-center strong {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.dash-donut-center span {
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.dash-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: #3c4843;
}

.dash-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-legend strong {
  margin-left: auto;
  min-width: 22px;
  text-align: right;
}

.dash-brand-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-brand-row {
  display: grid;
  grid-template-columns: 108px 1fr 34px;
  align-items: center;
  gap: 12px;
}

.dash-brand-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3c4843;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dash-brand-track {
  height: 9px;
  border-radius: 6px;
  background: #eef2ee;
  overflow: hidden;
}

.dash-brand-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  min-width: 4px;
  transition: width 500ms ease;
}

/* ── Atividades recentes + atalhos ── */

.dash-bottom {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  align-items: start;
}

.dash-recent {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background 160ms ease;
}

.dash-recent-item:hover {
  background: #f6f8f6;
}

.dash-recent-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 9px;
  background: #eef2ee;
  flex-shrink: 0;
}

.dash-recent-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
  /* Tom da loja nos ícones de atividade (sem cores hardcoded). */
  background: var(--lime-soft);
  color: var(--green-dark);
}

.dash-recent-text {
  min-width: 0;
  flex: 1;
}

.dash-recent-text strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-recent-text small {
  display: block;
  margin-top: 1px;
  font-size: 0.73rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-recent time {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.dash-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dash-quick-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dash-quick-item:hover {
  border-color: #c3d6cd;
  background: #fff;
  transform: translateY(-1px);
}

.dash-quick-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  flex-shrink: 0;
}

.dash-quick-item > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

/* ── Desempenho do site (visitas / visualizações / conversão) ── */

.dash-subhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 14px;
}

.dash-subhead h2 {
  margin: 2px 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.dash-subhead p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.dash-stats--perf {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.dash-metric-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.dash-metric-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-metric-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-metric-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 188px;
  padding-top: 10px;
}

.dash-metric-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dash-metric-inner {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  max-width: 44px;
  height: 150px;
  justify-content: center;
}

.dash-metric-bar {
  width: 38%;
  max-width: 16px;
  border-radius: 5px 5px 1px 1px;
  min-height: 2px;
  transition: height 400ms ease;
}

.dash-metric-bar--visits {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
}

.dash-metric-bar--leads {
  background: linear-gradient(180deg, var(--store-dark), #4b5563);
}

.dash-metric-day {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-top-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-top-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 11px;
  text-decoration: none;
  transition: background 160ms ease;
}

.dash-top-item:hover {
  background: #f6f8f6;
}

.dash-top-rank strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #f0f4f0;
  color: #3c4843;
  font-size: 0.74rem;
  flex-shrink: 0;
}

.dash-top-item:first-child .dash-top-rank strong {
  background: var(--green);
  color: #fff;
}

.dash-top-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2ee;
  flex-shrink: 0;
}

.dash-top-thumb--icon {
  display: grid;
  place-items: center;
  color: #8a949c;
}

.dash-top-info {
  min-width: 0;
  flex: 1;
}

.dash-top-info strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1d2127;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-top-info small {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.dash-top-count {
  text-align: right;
  flex-shrink: 0;
}

.dash-top-count strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}

.dash-top-count small {
  display: block;
  margin-top: 2px;
  font-size: 0.64rem;
  color: var(--muted);
  font-weight: 600;
}

.dash-conversion strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--green-dark);
}

.dash-conversion span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.dash-conversion-meta {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

/* ══════════════════════════════════════
   CONFIGURAÇÕES
   ══════════════════════════════════════ */

.config-page {
  width: min(980px, calc(100% - 64px));
}

.config-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  margin-bottom: 24px;
  border: 1px solid #bfe9e6;
  border-radius: 16px;
  background: linear-gradient(120deg, #e8faf8, #f3fcfb);
}

.config-banner-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  flex-shrink: 0;
}

.config-banner strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}

.config-banner p {
  margin: 3px 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #3d706b;
}

.config-badge {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.config-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, transform 160ms ease;
}

.config-section:hover {
  border-color: #c3d6cd;
  transform: translateY(-2px);
}

.config-section-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.config-pill {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 20px;
  background: #eef2ee;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   LEADS — melhorias de leitura
   ══════════════════════════════════════ */

.leads-vehicle-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.leads-vehicle-cell .leads-thumb {
  width: 52px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2ee;
  flex-shrink: 0;
}

.leads-vehicle-cell .leads-thumb-placeholder {
  width: 52px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f5f7f4;
  border: 1px dashed #d8dfda;
  color: #9fb0a9;
  flex-shrink: 0;
}

.leads-vehicle-cell div {
  min-width: 0;
}

.leads-vehicle-cell strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leads-vehicle-cell small {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leads-price {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--green-dark);
}

.leads-fin-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

/* ── Editor do Site: aba SEO & Performance ── */

.editor-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.editor-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.seo-google-preview {
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.seo-preview-item { max-width: 600px; }
.seo-preview-title { color: #1a0dab; font-size: 1.05rem; line-height: 1.3; }
.seo-preview-url { color: #006621; font-size: 0.8rem; margin: 2px 0 4px; word-break: break-all; }
.seo-preview-desc { color: #4d5156; font-size: 0.84rem; line-height: 1.45; }

.seo-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.seo-status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.seo-status-item strong { font-size: 0.8rem; }
.seo-status-item a { font-size: 0.78rem; color: var(--green-dark); word-break: break-all; }

.seo-status-badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: #eef5f0;
  color: #2e7d4f;
}

.seo-diagnostic { margin-top: 4px; }
.seo-diagnostic .button { margin-top: 6px; }
.seo-diagnostic-results { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

.seo-diag-table { width: 100%; border-collapse: collapse; }
.seo-diag-table td { padding: 7px 10px; border-bottom: 1px solid #eef0ed; font-size: 0.85rem; }
.seo-diag-table td:last-child { text-align: right; }

.leads-fin-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3c4843;
  white-space: nowrap;
}

.leads-mobile-card-vehicle > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.leads-mobile-card-vehicle > span.leads-thumb-placeholder {
  width: 48px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f5f7f4;
  border: 1px dashed #d8dfda;
  color: #9fb0a9;
  flex-shrink: 0;
}

.leads-fin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.leads-fin-empty {
  color: #b0bbb5;
  font-size: 0.78rem;
}

/* Status select com cor por status */
.status-select.is-new { border-color: #bfd9fe; background: #eef5ff; color: #1e40af; }
.status-select.is-analyzing { border-color: #f3dcae; background: #fef7e6; color: #92400e; }
.status-select.is-contacted { border-color: #bfe6cf; background: #edf9f2; color: #0d6b3d; }
.status-select.is-approved { border-color: #d3dade; background: #f3f5f6; color: #627079; }
.status-select.is-rejected { border-color: #f2c6c6; background: #fdeeee; color: #9b1c1c; }

/* Filtro rápido de financiamentos */
.leads-fin-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: #4a5650;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.leads-fin-chip:hover {
  border-color: #c8d6cf;
  background: #f8faf9;
}

.leads-fin-chip.active {
  border-color: #e0c388;
  background: #fef7e6;
  color: #92400e;
}

.leads-fin-chip > span {
  padding: 1px 8px;
  border-radius: 20px;
  background: #eef2ee;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.leads-fin-chip.active > span {
  background: #f3e6cc;
  color: #92400e;
}

/* Resumo compacto no cabeçalho das cards mobile */
.leads-mobile-card-vehicle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #f3f6f5;
  background: #fafcfa;
}

.leads-mobile-card-vehicle img {
  width: 48px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2ee;
}

.leads-mobile-card-vehicle strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
}

.leads-mobile-card-vehicle small {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--muted);
}

.leads-mobile-actions-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Responsivo: dashboard + configurações ── */

@media (max-width: 1100px) {
  .dash-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .dash-stats--perf {
    grid-template-columns: repeat(2, 1fr);
  }

  .config-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .dash-charts {
    grid-template-columns: 1fr;
  }

  .dash-card-main {
    grid-column: auto;
  }

  .dash-bottom {
    grid-template-columns: 1fr;
  }

  .dash-quick {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .dash-page,
  .config-page {
    width: min(100% - 32px, 1180px);
  }

  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dash-stats--perf {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dash-stat {
    padding: 14px;
    gap: 11px;
  }

  .dash-stat-icon {
    width: 38px;
    height: 38px;
  }

  .dash-stat strong {
    font-size: 1.3rem;
  }

  .dash-card {
    padding: 18px 16px;
  }

  .dash-brand-row {
    grid-template-columns: 84px 1fr 30px;
    gap: 8px;
  }

  .dash-quick {
    grid-template-columns: 1fr;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .config-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .config-badge {
    margin-left: 0;
  }

  .leads-filters .leads-fin-chip {
    justify-content: center;
  }
}


.config-section h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.config-section p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Configurações: E-mail / SMTP ── */

.config-smtp {
  margin: 0 0 26px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.config-smtp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.config-smtp-head h2 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.config-smtp-head p {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.smtp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.smtp-badge--ok {
  background: #d9f7e9;
  color: #0d6b3d;
  border: 1px solid #b7ebd0;
}

.smtp-badge--off {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #dbe3ea;
}

.smtp-pass-hint {
  font-style: normal;
  color: #0d6b3d;
  font-size: 0.7rem;
  font-weight: 600;
}

.smtp-form .form-grid {
  margin-top: 4px;
}

.smtp-form .form-actions {
  margin-top: 6px;
}

@media (max-width: 680px) {
  .config-smtp {
    padding: 18px;
  }

  .config-smtp-head {
    flex-direction: column;
  }

  .smtp-badge {
    align-self: flex-start;
  }
}

.dash-quick-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
}

.dash-quick-item small {
  display: block;
  margin-top: 1px;
  font-size: 0.7rem;
  color: var(--muted);
}

.dash-quick-item > svg {
  color: #9fb0a9;
  flex-shrink: 0;
}

.dash-brand-value {
  font-size: 0.8rem;
  font-weight: 800;
  text-align: right;
}


/* Mensagem de erro no formulário de contato/interesse (Continental). */
.contact-form .form-error {
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  background: #fde8e8;
  color: #9b1c1c;
  font-size: 0.8rem;
  font-weight: 600;
}


/* ── Configurações do Site: campos de imagem (logo, favicon, imagens) ── */
/* Corrige abas do editor: o atributo hidden era anulado por
   .config-section { display: flex }. Com esta regra, só a aba ativa aparece. */
.site-config-tab[hidden] {
  display: none;
}
.site-image-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Página Site: diagramação fiel ao editor original ── */
.site-config-tab {
  display: block;
}
.site-config-tab[hidden] {
  display: none;
}
.editor-tabs {
  align-items: stretch;
}
.editor-tabs button {
  white-space: nowrap;
  line-height: 1.2;
}
.editor-fields .editor-field-wide {
  grid-column: 1 / -1;
}

/* ── Página Site: seções internas (Identidade Visual / Contato) ── */
.site-section {
  padding: 26px 30px;
}
.site-section + .site-section {
  border-top: 1px solid var(--line);
}
.site-section-head {
  margin-bottom: 18px;
}
.site-section-head h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.site-section-head p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 4px 0 0;
}
.site-section .editor-fields {
  padding: 0;
}

/* Alerta de sucesso: respiro entre a barra de abas e o conteúdo */
.site-alert {
  margin: 18px 30px;
}

/* Corrige elementos ocultos (ex.: .form-success "Mensagem enviada", .form-error):
   o atributo hidden era anulado por regras com display (grid/flex). */
[hidden] {
  display: none !important;
}

.editor-footer .button-primary {
  min-width: 180px;
}

.site-image-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}
.site-image-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-image-preview {
  width: 72px;
  height: 72px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 4px;
}
.site-image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.site-image-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.site-image-controls .button {
  position: relative;
}
.site-config-form .editor-tabs + .config-section {
  border-top: 1px solid var(--line);
}


/* ── Página Contato: unidades e horários ── */
.section .unit-grid + .unit-grid {
  margin-top: 72px;
}
/* Mapa das unidades: bloco grande, arredondado e integrado (referência antiga) */
.unit-map {
  overflow: hidden;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #dfe7e4;
  box-shadow: var(--shadow-sm);
}
.unit-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.unit-map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.hours-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.hours-panel h2 {
  margin: 6px 0 18px;
  font-size: 1.5rem;
  font-weight: 800;
}
.hours-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hours-item {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 700;
}
.hours-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}


/* Mobile: mapa menor e espaçamento reduzido entre unidades (deve vir por último
   para vencer as regras de desktop com mesma especificidade). */
@media (max-width: 960px) {
  .unit-map {
    height: 300px;
  }

  .section .unit-grid + .unit-grid {
    margin-top: 40px;
  }
}


/* ── Cloudflare Turnstile (captcha) nos formulários públicos ──
   Mesmo padrão nos 3 formulários: alinhado aos campos, com respiro acima e
   abaixo, sem borda/caixa extra e sem esconder a mensagem da chave de teste. */
.cf-turnstile {
  margin-top: 14px;
  margin-bottom: 20px;
}
/* ══════════════════════════════════════════════════════════════════
   PAINEL — SISTEMA DE DESIGN (auditoria visual)
   Escopado ao painel (.dashboard). Não afeta o site público.
   ══════════════════════════════════════════════════════════════════ */

/* 1. Paleta de cinzas + base do painel */
.dashboard {
  --ink: #26333d;
  --muted: #5e6e78;
  --muted-soft: #8b99a2;
  --line: #e3e8e6;
  --paper-soft: #f6f8f7;
  color: var(--ink);
}

/* 2. Hierarquia tipográfica */
.dashboard .dashboard-heading { margin-bottom: 28px; }
.dashboard .dashboard-heading .eyebrow { color: var(--green); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; margin-bottom: 12px; }
.dashboard .dashboard-heading h1 { margin: 0 0 10px; font-size: clamp(2.1rem, 3.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.dashboard .dashboard-heading p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.dashboard .dashboard-topbar strong { color: var(--ink); font-size: 0.95rem; }
.dashboard .dashboard-topbar span { color: var(--muted-soft); }

/* 3. Botões do painel — sem "lift", altura/raio consistentes */
.dashboard .button { min-height: 42px; border-radius: 9px; font-size: 0.88rem; font-weight: 600; transform: none; }
.dashboard .button:hover, .dashboard .button:focus-visible { transform: none; }
.dashboard .button:focus-visible { outline: 2px solid color-mix(in srgb, var(--green) 55%, white); outline-offset: 2px; }
.dashboard .button-dark { background: var(--green); color: #fff; }
.dashboard .button-cancel { border: 1px solid var(--line); color: var(--ink); background: #fff; }

/* 4. Botões pequenos e controles de tabela */
.dashboard .button-sm {
  min-height: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

/* 5. Tabelas — padrão único */
.dashboard .vehicles-admin-table,
.dashboard .leads-admin-table { color: var(--ink); }
.dashboard .vehicles-admin-table th,
.dashboard .leads-admin-table th {
  height: 46px;
  padding: 0 14px;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.dashboard .vehicles-admin-table td,
.dashboard .leads-admin-table td { padding: 12px 14px; vertical-align: middle; }
.dashboard .vehicles-admin-table tbody tr:hover,
.dashboard .leads-admin-table tbody tr:hover { background: #fafcfb; }
.dashboard .vehicles-admin-table td strong,
.dashboard .leads-admin-table td strong { color: var(--ink); font-weight: 600; }
.dashboard .vehicles-admin-table td small,
.dashboard .leads-admin-table td small { color: var(--muted); font-weight: 400; }
.dashboard .vehicles-admin-table .vehicle-price { color: var(--green); font-weight: 700; }
.dashboard .vehicles-admin-table .status-cell, .dashboard .vehicles-admin-table .status-column,
.dashboard .vehicles-admin-table .featured-cell, .dashboard .vehicles-admin-table .featured-column,
.dashboard .vehicles-admin-table .actions-cell, .dashboard .vehicles-admin-table .actions-column,
.dashboard .leads-admin-table .actions-cell, .dashboard .leads-admin-table .actions-column { text-align: center; }

/* Leads e Financiamentos: densidade e acabamento compartilhados. */
.dashboard .leads-table-desktop {
  overflow: hidden;
  scrollbar-gutter: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  background-clip: padding-box;
}

.dashboard .leads-table-desktop .leads-admin-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.dashboard .leads-table-desktop .leads-admin-table thead,
.dashboard .leads-table-desktop .leads-admin-table thead tr {
  background: var(--paper-soft);
}

.dashboard .leads-table-desktop .leads-admin-table th {
  height: 38px;
  padding: 0 10px;
  background: var(--paper-soft);
  vertical-align: middle;
}

.dashboard .leads-table-desktop .leads-admin-table th:first-child {
  border-top-left-radius: 13px;
}

.dashboard .leads-table-desktop .leads-admin-table th:last-child {
  border-top-right-radius: 13px;
}

.dashboard .leads-table-desktop .leads-admin-table td {
  padding: 4px 10px;
  line-height: 1.18;
  vertical-align: middle;
}

.dashboard .leads-table-desktop .leads-admin-table td small,
.dashboard .leads-table-desktop .leads-td-date .leads-td-time,
.dashboard .leads-table-desktop .leads-vehicle-cell small {
  margin-top: 0;
  line-height: 1.15;
}

.dashboard .leads-table-desktop .leads-admin-table td strong {
  line-height: 1.18;
}

.dashboard .leads-table-desktop td:nth-child(3) > div {
  gap: 0 !important;
  line-height: 1.15;
}

.dashboard .leads-table-desktop .leads-wa-link {
  line-height: 1.15;
}

.dashboard .leads-table-desktop .leads-vehicle-cell {
  gap: 6px;
}

.dashboard .leads-table-desktop .leads-vehicle-cell > div {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.dashboard .leads-table-desktop .leads-vehicle-cell small {
  margin-top: 0;
  font-size: 0.7rem;
}

.dashboard .leads-table-desktop .leads-price {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.dashboard .leads-table-desktop .leads-fin-cell {
  justify-content: center;
  gap: 2px;
}

.dashboard .leads-table-desktop .leads-fin {
  padding: 2px 7px;
}

.dashboard .leads-table-desktop .leads-fin-value {
  font-size: 0.72rem;
  line-height: 1.15;
}

.dashboard .leads-table-desktop td > form {
  margin: 0;
}

.dashboard .leads-table-desktop .leads-status-inline {
  display: block;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0.74rem;
}

.dashboard .leads-table-desktop .actions-cell {
  display: table-cell;
  min-width: 84px;
  height: auto;
  padding: 2px 10px;
  vertical-align: middle;
  box-sizing: border-box;
}

.dashboard .leads-table-desktop .leads-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 24px);
  grid-template-rows: repeat(2, 24px);
  place-items: center;
  gap: 5px;
  width: 53px;
  margin: 0 auto;
}

.dashboard .leads-table-desktop .leads-actions-grid .button-sm {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border-radius: 7px;
  box-sizing: border-box;
  line-height: 1;
}

/* 6. Formulários — inputs/selects uniformes */
.dashboard .form-grid input,
.dashboard .form-grid select,
.dashboard .form-grid textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 8px 12px;
}
.dashboard .form-grid textarea { min-height: 0; padding: 10px 12px; }
.dashboard .form-grid input::placeholder,
.dashboard .form-grid textarea::placeholder { color: var(--muted-soft); opacity: 1; }
.dashboard .form-grid input:focus,
.dashboard .form-grid select:focus,
.dashboard .form-grid textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent);
}
.dashboard .form-grid label span { color: var(--muted); font-weight: 600; font-size: 0.78rem; }
.dashboard .status-select { min-height: 34px; border-radius: 8px; font-size: 0.78rem; }

/* 7. Alertas — padding/raio/margem consistentes */
.dashboard .form-alert { padding: 14px 18px; border-radius: 10px; font-size: 0.88rem; font-weight: 500; margin-bottom: 20px; border: 1px solid; }
.dashboard .form-alert-success { background: #d9f7e9; color: #0d6b3d; border-color: #b7ebd0; }
.dashboard .form-alert-error { background: #fde8e8; color: #9b1c1c; border-color: #f5c6c6; }
.dashboard .vf-created-alert {
  transition: opacity 500ms ease, margin 500ms ease, padding 500ms ease, border-width 500ms ease;
  overflow: hidden;
}
.dashboard .vf-created-alert.vf-hide {
  opacity: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
}

/* 8. Cards / resumo */
.dashboard .dashboard-summary-card,
.dashboard .dash-card { border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 6px 20px rgb(17 27 35 / 5%); }
.dashboard .dash-card-head strong { color: var(--ink); font-size: 0.92rem; font-weight: 700; }
.dashboard .dash-card-head span { color: var(--muted); }
.dashboard .dashboard-summary { gap: 16px; margin-bottom: 26px; }

/* 9. Sidebar / topbar */
.dashboard .dashboard-nav-item { color: var(--muted); font-weight: 500; }
.dashboard .dashboard-nav-item:hover:not(.disabled):not(.active) { background: var(--paper-soft); color: var(--ink); }
.dashboard .dashboard-nav-item.active { background: var(--green); color: #fff; font-weight: 600; }
.dashboard .dashboard-nav-label { color: var(--muted-soft); }
.dashboard .dashboard-local-note { color: var(--muted); }

/* 10. Toast de feedback (listagem de veículos) — flutuante, não desloca a página */
.dashboard .vehicles-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 9px;
  background: #d9f7e9;
  color: #0d6b3d;
  border: 1px solid #b7ebd0;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgb(17 27 35 / 14%);
}
.dashboard .vehicles-toast[hidden] { display: none; }
.dashboard .vehicles-toast.vehicles-toast-error { background: #fde8e8; color: #9b1c1c; border-color: #f5c6c6; }

/* 11. Responsivo — ajustes finos do painel */
@media (max-width: 768px) {
  .dashboard .dashboard-heading h1 { font-size: 1.95rem; }
  .dashboard .dashboard-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dashboard .dashboard-summary { grid-template-columns: repeat(2, 1fr); }
  .dashboard .dash-charts { grid-template-columns: 1fr; }
  .dashboard .dashboard-topbar { padding: 0 18px; }
  .dashboard .dashboard-page { width: min(1050px, calc(100% - 28px)); }
}

/* Leads/Financiamentos: resumo com 5 cards (Total, Novo, Em análise, Contatado, Aprovado)
   em UMA única linha no desktop. Recusado continua no banco/filtro/listagem — só o card foi removido. */
.dashboard .dashboard-summary.leads-summary {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1100px) {
  .dashboard .dashboard-summary.leads-summary { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .dashboard .dashboard-summary.leads-summary { grid-template-columns: repeat(2, 1fr); }
}

/* ── Listagem de veículos: eixo vertical único ──
   Todas as células de uma linha (foto, veículo, ano, preço, status,
   destaque e ações) compartilham o MESMO centro vertical. Linhas com
   altura mínima uniforme; cabeçalhos no mesmo eixo horizontal das
   colunas; divisórias discretas no rodapé de cada linha. */

.dashboard .vehicles-page .vehicles-admin-table thead tr {
  height: 48px;
}

.dashboard .vehicles-page .vehicles-admin-table th {
  height: 48px;
  padding: 0 16px;
  vertical-align: middle;
  text-align: left;
  background: #fafcfa;
  border-bottom: 2px solid #eef2ee;
}

.dashboard .vehicles-page .vehicles-admin-table tbody tr {
  height: 84px; /* altura mínima uniforme de todas as linhas */
}

.dashboard .vehicles-page .vehicles-admin-table td {
  height: auto; /* sem altura fixa por célula: o centro da linha é a referência */
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f3f6f5;
}

.dashboard .vehicles-page .vehicles-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Respiro extra entre ANO e PREÇO: a coluna Preço (4ª) ganha mais ar à
   esquerda — no cabeçalho e nos valores juntos, mantendo o alinhamento. */
.dashboard .vehicles-page .vehicles-admin-table th:nth-child(4),
.dashboard .vehicles-page .vehicles-admin-table td:nth-child(4) {
  padding-left: 22px;
}

/* Foto: miniatura no centro da linha (o bloco preenche a coluna sem
   empurrar o eixo). */
.dashboard .vehicles-page .vehicles-admin-table td:first-child {
  padding-right: 8px;
  vertical-align: middle;
}

/* Preço: célula comum, no eixo, com a cor de destaque da loja. */
.dashboard .vehicles-page .vehicles-admin-table .vehicle-price {
  display: table-cell;
  align-items: initial;
  justify-content: initial;
  margin: 0;
  border-top: 0;
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}

/* Ano, status, destaque e ações centralizados no mesmo eixo vertical. */
.dashboard .vehicles-page .vehicles-admin-table .year-cell,
.dashboard .vehicles-page .vehicles-admin-table .status-cell,
.dashboard .vehicles-page .vehicles-admin-table .featured-cell,
.dashboard .vehicles-page .vehicles-admin-table .actions-column {
  vertical-align: middle;
}

.dashboard .vehicles-page .vehicles-admin-table .status-column,
.dashboard .vehicles-page .vehicles-admin-table .status-cell,
.dashboard .vehicles-page .vehicles-admin-table .featured-column,
.dashboard .vehicles-page .vehicles-admin-table .featured-cell,
.dashboard .vehicles-page .vehicles-admin-table .actions-column {
  text-align: center;
}

/* Select de status: centrado na linha e na coluna. */
.dashboard .vehicles-page .vehicles-admin-table .status-select {
  display: block;
  width: 100%;
  max-width: 170px;
  height: 34px;
  margin: 0 auto;
  padding: 0 28px 0 10px;
  border-radius: 8px;
  color: #44524b;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Destaque: controle Sim/Não no mesmo eixo do Status. */
.dashboard .vehicles-page .vehicles-admin-table .featured-toggle {
  height: 34px;
  margin: 0;
}

/* Ações: botões iguais, centralizados na linha e sob o cabeçalho AÇÕES. */
.dashboard .vehicles-page .vehicles-admin-table .vehicle-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.dashboard .vehicles-page .vehicles-admin-table .vehicle-actions .button-sm {
  width: 100%;
  height: 38px;
  margin: 0;
  vertical-align: middle;
}

/* Nome + versão: bloco único, nome forte, versão menor e suave. */
.dashboard .vehicles-page .vehicles-admin-table td strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.dashboard .vehicles-page .vehicles-admin-table td small {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: break-word;
}


/* ── Identidade da loja no painel (acentos via variável dinâmica) ──
   A cor vem da configuração da loja (primaryColor), injetada em
   :root { --green; --green-dark; --lime-soft; ... } pelo painel.
   Nenhum valor de cor hardcoded aqui. */

/* Micro-títulos / indicadores (ESTOQUE, PAINEL, DESEMPENHO...) */
.dashboard :is(.dashboard-heading, .dash-subhead, .config-smtp-head) .eyebrow,
.dashboard .eyebrow {
  color: var(--green);
}

/* Contagem da listagem ("N veículos encontrados") */
.dashboard .vehicles-page .vehicles-results-line strong {
  color: var(--green);
}

/* Cabeçalho do topbar: nome da página em destaque discreto (mantém
   o cinza escuro de base; a cor da loja fica nos acentos). */
.dashboard .dashboard-topbar strong {
  color: var(--ink);
}

/* Botões primários com a cor da loja (Cadastrar/Salvar/Publicar). */
.dashboard .button-dark {
  background: var(--green);
  color: #fff;
}
.dashboard .button-dark:hover {
  background: var(--green-dark);
}
/* ══════════════════════════════════════════════════════════════════
   FORMATO DAS FOTOS DOS VEÍCULOS (Site > Identidade Visual)
   Horizontal → cards/galeria 4:3; Vertical → 3:4 (padrão atual).
   Nunca deforma: object-fit preserva a proporção (cover nos cards e
   miniaturas; contain na imagem principal). A foto grande da home
   (hero) não é afetada por estas regras.
   ══════════════════════════════════════════════════════════════════ */

body.photo-format-vertical .vehicle-image,
body.photo-format-vertical .gallery-main,
body.photo-format-vertical .hero-image-wrap {
  aspect-ratio: 3 / 4;
}

body.photo-format-horizontal .vehicle-image,
body.photo-format-horizontal .gallery-main,
body.photo-format-horizontal .hero-image-wrap {
  aspect-ratio: 4 / 3;
}

body.photo-format-vertical .gallery-thumb {
  width: 72px;
  height: 96px;
}

body.photo-format-horizontal .gallery-thumb {
  width: 96px;
  height: 72px;
}

/* A galeria de miniaturas é SEMPRE horizontal (faixa única com rolagem
   lateral + setas), independente do formato configurado da loja. Apenas o
   tamanho de cada miniatura acompanha o formato (Vertical 72×96,
   Horizontal 96×72). */
body.photo-format-vertical .gallery-thumbs,
body.photo-format-horizontal .gallery-thumbs,
body.photo-format-vertical .gallery-thumbs-scroll,
body.photo-format-horizontal .gallery-thumbs-scroll {
  flex-direction: row;
}


/* ── Página do veículo com foto HORIZONTAL: resumo mais compacto ──
   Com a foto em 4:3 a coluna da direita fica mais alta que a imagem;
   compactar os blocos aproxima a coluna da altura da foto e elimina o
   espaço vazio abaixo da imagem. Sem distorção (object-fit mantido). */
body.photo-format-horizontal .detail-summary h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 0;
}

body.photo-format-horizontal .detail-version {
  font-size: 0.92rem;
}

body.photo-format-horizontal .detail-status {
  margin-top: 8px;
}

body.photo-format-horizontal .detail-price {
  margin: 14px 0 12px;
  padding: 12px 0;
}

body.photo-format-horizontal .detail-price strong {
  font-size: 1.7rem;
}

body.photo-format-horizontal .detail-specs {
  gap: 6px;
  margin-bottom: 14px;
}

body.photo-format-horizontal .spec-card {
  gap: 2px;
  padding: 9px 10px;
}

body.photo-format-horizontal .spec-icon {
  margin-bottom: 0;
}

body.photo-format-horizontal .spec-card span {
  font-size: 0.6rem;
}

body.photo-format-horizontal .spec-card strong {
  font-size: 0.8rem;
}

body.photo-format-horizontal .detail-note {
  margin-top: 6px;
}


/* ── Página do veículo (formato HORIZONTAL): foto grande preenche o bloco ──
   Com a foto em 4:3, a imagem principal usa cover para ocupar 100% do bloco,
   sem faixas cinza laterais e sem deformar (o excedente é cortado, mantendo a
   imagem centralizada). Miniaturas já usam cover. O lightbox mantém contain
   (imagem completa, sem crop). No formato Vertical o comportamento atual
   (contain) é mantido. */
body.photo-format-horizontal .gallery-main-image {
  object-fit: cover;
}
