/* Clone visual do app O Rei das Elétricas */
:root {
  --primary: #4fc3f7;
  --primary-dark: #1565c0;
  --gold: #ffd700;
  --bg: #07112a;
  --surface: #0c1a3a;
  --surface-alt: #122040;
  --border: #1a3260;
  --border-light: #2a4e8a;
  --text: #ffffff;
  --text-secondary: #90caf9;
  --text-muted: #4a6fa5;
  --orange: #ff8c00;
  --success: #4caf50;
  --whatsapp: #25d366;
  --tab-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --desktop-nav-h: 72px;
}

.desktop-only { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#app {
  width: 100%;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.material-icons-round {
  font-family: "Material Icons Round";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* Screens */
.screen {
  display: none;
  flex-direction: column;
  height: calc(100dvh - var(--tab-h) - var(--safe-b));
  overflow: hidden;
}

.screen.active { display: flex; }

.screen.overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  height: 100dvh;
  background: var(--bg);
}

.screen.overlay.hidden { display: none; }

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.hidden { display: none !important; }

/* Brand header (Veículos) */
.brand-header {
  text-align: center;
  padding: 8px 16px 0;
}

.brand-logo {
  width: 104px;
  height: 104px;
  margin: 0 auto 4px;
  object-fit: contain;
}

.brand-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.brand-tagline {
  margin: 2px 0 0;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Page header */
.page-header {
  padding: 8px 16px 0;
}

.page-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.page-header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Search */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  margin: 16px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.search-bar .material-icons-round:first-child {
  color: var(--text-muted);
  font-size: 20px;
}

.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-clear {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
}

/* Section headers */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 16px 8px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.section-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* Promo carousel */
.promo-wrap {
  margin: 0 16px 16px;
}

.promo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 16px;
}

.promo-track::-webkit-scrollbar { display: none; }

.promo-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  min-height: 108px;
  position: relative;
  padding: 16px 8px 8px;
}

.promo-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(6, 14, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  z-index: 1;
}

.promo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.promo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-thumb .material-icons-round {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.5);
}

.promo-text { flex: 1; min-width: 0; }

.promo-text h3 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  padding-right: 56px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-text p {
  margin: 0 0 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-cta {
  display: inline-block;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.promo-dot.active {
  width: 18px;
  background: var(--primary);
}

/* Category bar */
.category-bar {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 52px;
  align-items: center;
}

.category-bar::-webkit-scrollbar { display: none; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.cat-chip .material-icons-round { font-size: 16px; }

.cat-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
  font-weight: 700;
}

.cat-chip.active .material-icons-round { color: var(--bg); }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.15);
  transition: transform 0.15s, opacity 0.15s;
}

.product-card:active {
  transform: scale(0.97);
  opacity: 0.8;
}

.card-media {
  position: relative;
  min-height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.card-thumb {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb .material-icons-round {
  font-size: 36px;
  color: var(--primary);
}

.card-badge {
  position: absolute;
  top: 0;
  right: 12%;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 2px 5px;
  border-radius: 8px;
  color: var(--bg);
  background: var(--primary);
}

.card-badge.orange { background: var(--orange); color: #fff; }
.card-badge.green { background: var(--success); }
.card-badge.gold { background: var(--gold); }

.card-name {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-specs .material-icons-round { font-size: 11px; color: var(--primary); }

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.card-price {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.discount-tag {
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
}

.card-original {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.empty-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.empty-sub { margin: 0; font-size: 13px; color: var(--text-muted); }

/* Services grid (Manutenção) */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 16px 16px;
}

.service-card {
  width: calc(50% - 4px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-card .material-icons-round { font-size: 24px; color: var(--primary); }

.service-card h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.service-card span {
  font-size: 11px;
  color: var(--text-muted);
}

.service-card.active {
  background: var(--primary);
  border-color: var(--primary);
}

.service-card.active .material-icons-round,
.service-card.active h4,
.service-card.active span {
  color: var(--bg);
}

/* Form cards */
.form-card {
  margin: 0 16px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.form-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.vehicle-chip .material-icons-round { font-size: 18px; }

.vehicle-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}

.vehicle-chip.active .material-icons-round { color: var(--bg); }

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.field input,
.form-card textarea {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  padding: 0 16px;
  height: 48px;
  outline: none;
  font-family: var(--font);
}

.form-card textarea {
  height: 100px;
  padding-top: 16px;
  resize: vertical;
}

.field input:focus,
.form-card textarea:focus,
.field select:focus {
  border-color: var(--primary);
}

.field select,
.admin-card select {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  padding: 0 16px;
  height: 48px;
  outline: none;
  font-family: var(--font);
}

.admin-card textarea {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  padding: 12px 16px;
  font-family: var(--font);
  resize: vertical;
}

/* Buttons */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--bg);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(79, 195, 247, 0.4);
  font-family: var(--font);
}

.btn-primary:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
  opacity: 0.85;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  margin: 0 16px 24px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.15);
}

.info-note {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 0 16px 24px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 18px;
}

.info-note .material-icons-round { font-size: 14px; flex-shrink: 0; }

/* Success view */
.success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  min-height: 60vh;
}

.success-icon {
  font-size: 72px !important;
  color: var(--primary);
  margin-bottom: 24px;
}

.success-view h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
}

.success-view p {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 24px;
}

/* Loja */
.logo-card {
  margin: 0 16px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.logo-card img {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.logo-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.logo-slogan {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}

.logo-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.map-card {
  display: block;
  margin: 0 16px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.map-placeholder {
  height: 130px;
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.map-placeholder .material-icons-round {
  font-size: 44px;
  color: var(--primary);
}

.map-info {
  padding: 16px;
}

.map-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.map-info span {
  font-size: 13px;
  color: var(--text-secondary);
}

.info-card {
  margin: 0 16px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.card-header .material-icons-round {
  font-size: 20px;
  color: var(--primary);
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.hours-list li:last-child { border-bottom: 0; }

.hours-list .day { color: var(--text-secondary); }
.hours-list .time { font-weight: 600; }
.hours-list .closed { color: var(--text-muted); }

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.contact-row:last-child { border-bottom: 0; }

.contact-row:active { opacity: 0.7; }

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
}

.contact-icon .material-icons-round {
  font-size: 20px;
  color: var(--primary);
}

.contact-info { flex: 1; }

.contact-info small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.contact-info strong {
  font-size: 13px;
  font-weight: 600;
}

.contact-row > .material-icons-round:last-child {
  color: var(--text-muted);
  font-size: 20px;
}

.store-footer {
  text-align: center;
  padding: 0 16px 32px;
}

.store-footer p {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 13px !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.admin-link .material-icons-round { font-size: 14px; }

/* Product detail */
.detail-nav {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.detail-nav button {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.detail-nav h1 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
}

.nav-spacer { width: 40px; }

.detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}

.detail-hero {
  min-height: 180px;
  background: var(--surface);
  display: grid;
  place-items: center;
  position: relative;
}

.detail-hero img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
}

.detail-hero .material-icons-round {
  font-size: 88px;
  color: var(--primary);
}

.detail-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--bg);
  background: var(--primary);
}

.detail-badge.orange { background: var(--orange); color: #fff; }
.detail-badge.green { background: var(--success); }
.detail-badge.gold { background: var(--gold); }

.specs-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.spec-box {
  flex: 1;
  text-align: center;
  padding: 16px 4px;
  border-left: 1px solid var(--border);
}

.spec-box:first-child { border-left: 0; }

.spec-box .material-icons-round {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 4px;
}

.spec-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.spec-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.detail-section {
  padding: 16px;
}

.detail-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.detail-price {
  color: var(--gold);
  font-size: 30px;
  font-weight: 800;
}

.detail-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}

.detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 26px;
  margin: 0;
}

.category-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.detail-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: calc(16px + var(--safe-b));
}

.detail-footer .btn-primary,
.detail-footer .btn-whatsapp {
  width: 100%;
  margin: 0;
  height: 50px;
}

/* Tab bar */
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-top: 8px;
  padding-bottom: calc(8px + var(--safe-b));
  padding-inline: 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 40;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

.tab-item .material-icons-round { font-size: 24px; }

.tab-item.active { color: var(--primary); }

#product-detail ~ .tab-bar,
.screen.overlay.active ~ .tab-bar {
  display: none;
}

/* Sync badge */
.sync-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 30;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  opacity: 0.6;
}

.sync-badge .material-icons-round {
  font-size: 16px;
  color: var(--success);
}

.sync-badge.offline .material-icons-round { color: var(--text-muted); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
  transform: translateX(-50%) translateY(120%);
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 100;
  transition: transform 0.25s;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* Admin styles */
.admin-shell {
  min-height: 100dvh;
  padding: 16px 16px 32px;
  max-width: 430px;
  margin: 0 auto;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.admin-card h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
}

.admin-card > p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid .full { grid-column: 1 / -1; }

.admin-table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--surface-alt);
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
}

.btn-danger {
  background: #ff4444;
  border-color: #ff4444;
  color: #fff;
}

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
}

.login-logo {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo img {
  width: 80px;
  margin: 0 auto 8px;
}

.admin-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

@media (min-width: 768px) {
  .mobile-only { display: none !important; }
  .desktop-only { display: block !important; }

  html { scroll-behavior: smooth; }

  body { overflow-x: hidden; }

  #app {
    min-height: auto;
    overflow: visible;
  }

  /* Tab bar nunca aparece no desktop */
  .tab-bar {
    display: none !important;
  }

  /* Todas as seções visíveis (exceto modal de detalhe) */
  .screen:not(.overlay) {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  .screen-scroll {
    overflow: visible;
    height: auto;
    padding-bottom: 0;
  }

  .desktop-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
  }

  .desktop-section:first-of-type {
    padding-top: 2rem;
  }

  .desktop-container {
    width: min(1180px, calc(100% - 3rem));
    margin-inline: auto;
  }

  /* Header desktop */
  .desktop-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 17, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .desktop-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--desktop-nav-h);
  }

  .desktop-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
  }

  .desktop-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
  }

  .desktop-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
  }

  .desktop-brand span {
    font-size: 0.72rem;
    color: var(--text-secondary);
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
  }

  .desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
  }

  .desktop-nav a:hover {
    background: var(--surface-alt);
    color: var(--text);
  }

  .desktop-wa-btn {
    background: var(--whatsapp) !important;
    color: #fff !important;
    font-weight: 700 !important;
  }

  /* Hero desktop */
  .desktop-hero {
    background:
      linear-gradient(135deg, rgba(7, 17, 42, 0.92), rgba(12, 26, 58, 0.88)),
      url("../assets/hero-banner.jpg") center / cover no-repeat;
    padding: 4rem 0;
  }

  .desktop-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
  }

  .desktop-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
  }

  .desktop-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: 0.03em;
  }

  .desktop-tagline {
    margin: 0.4rem 0 0.8rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.08em;
  }

  .desktop-lead {
    margin: 0 0 1.5rem;
    max-width: 32rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
  }

  .desktop-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .desktop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    width: auto !important;
    margin: 0 !important;
    height: auto !important;
  }

  .desktop-hero-logo {
    width: min(280px, 30vw);
    filter: drop-shadow(0 12px 40px rgba(79, 195, 247, 0.25));
  }

  /* Conteúdo dentro das seções */
  #veiculos .screen-scroll,
  #manutencao .screen-scroll,
  #loja .screen-scroll {
    width: min(1180px, calc(100% - 3rem));
    margin-inline: auto;
  }

  .page-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 0.04em;
  }

  .section-header {
    padding: 0 0 1rem;
  }

  .section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.03em;
  }

  .search-bar {
    max-width: 420px;
    margin: 0 0 1.5rem;
  }

  .promo-wrap {
    margin: 0 0 2rem;
  }

  .promo-track {
    border-radius: 16px;
  }

  .promo-slide {
    flex: 0 0 100%;
  }

  .category-bar {
    padding: 0 0 1.25rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 0;
  }

  .services-grid {
    margin: 0 0 2rem;
    gap: 1rem;
  }

  .service-card {
    width: calc(33.333% - 0.67rem);
  }

  #maint-form-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
  }

  #maint-form-view .form-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  #maint-form-view .btn-primary,
  #maint-form-view .info-note {
    grid-column: 1 / -1;
  }

  .form-card {
    margin: 0;
  }

  .btn-primary,
  .btn-whatsapp {
    max-width: 360px;
  }

  #loja .screen-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
  }

  #loja .page-header {
    grid-column: 1 / -1;
  }

  .logo-card {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto 1rem;
  }

  .map-card {
    margin: 0;
  }

  .info-card {
    margin: 0;
  }

  #loja .btn-whatsapp {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 320px;
    width: 100%;
  }

  /* Modal detalhe desktop — só quando aberto */
  #product-detail.screen.overlay:not(.hidden) {
    position: fixed;
    inset: 0;
    z-index: 200;
    height: 100dvh;
    background: rgba(4, 10, 26, 0.75);
    backdrop-filter: blur(4px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  #product-detail.screen.overlay.hidden {
    display: none !important;
  }

  .detail-panel {
    width: min(720px, 100%);
    max-height: min(90vh, 860px);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  }

  #product-detail .detail-scroll {
    flex: 1;
    overflow-y: auto;
  }

  .sync-badge { display: none !important; }

  /* Footer desktop */
  .desktop-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
  }

  .desktop-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .desktop-footer img {
    width: 72px;
    margin-bottom: 0.75rem;
  }

  .desktop-footer strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
  }

  .desktop-footer p {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
  }

  .desktop-footer h4 {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
  }

  .desktop-footer a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 0.25rem 0;
  }

  .desktop-footer a:hover { color: var(--primary); }

  .desktop-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .sync-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .sync-label .material-icons-round {
    font-size: 16px;
    color: var(--success);
  }

  .toast {
    bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .detail-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .service-card { width: calc(50% - 0.5rem); }
  #loja .screen-scroll { grid-template-columns: 1fr; }
}
