/* ============================================================
   VOI Marketplace - Estilos Globais
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #1a3fa8;
  --primary-dark: #142e80;
  --primary-light: #2d55c8;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  cursor: pointer; border: 2px solid transparent; transition: all .2s; white-space: nowrap;
  text-decoration: none; line-height: 1;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-gray { background: var(--gray-200); color: var(--gray-700); border-color: var(--gray-200); }
.btn-gray:hover { background: var(--gray-300); color: var(--gray-800); }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-size: 14px; color: var(--gray-800);
  background: #fff; transition: border-color .2s, box-shadow .2s; font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,63,168,.12); }
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ---- Cards ---- */
.card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-100); font-weight: 700; font-size: 15px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* badges genéricos (usados fora da imagem) */
.badge-primary { background: rgba(26,63,168,.1); color: var(--primary); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }
.badge-live    { background: var(--danger); color: #fff; animation: pulse 1.5s infinite; }

/* badges sólidos — sobre imagens e uso geral */
.badge-warning,
.badge-sol-warning  { background-color: #f59e0b; color: #1a1a1a; }

.badge-success,
.badge-sol-success  { background-color: #16a34a; color: #ffffff; }

.badge-danger,
.badge-sol-danger   { background-color: #dc2626; color: #ffffff; }

.badge-dark,
.badge-sol-dark     { background-color: #1e293b; color: #ffffff; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; border-left: 4px solid; }
.alert-success { background: rgba(16,185,129,.08); border-color: var(--success); color: #065f46; }
.alert-danger  { background: rgba(239,68,68,.08);  border-color: var(--danger);  color: #991b1b; }
.alert-warning { background: rgba(245,158,11,.08); border-color: var(--accent);  color: #92400e; }
.alert-info    { background: rgba(59,130,246,.08); border-color: var(--info);    color: #1e40af; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--gray-50); color: var(--gray-600); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--gray-200); }
td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 32px; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--gray-200); color: var(--gray-600); background: #fff; transition: all .2s;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- Section ---- */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-title { font-size: 26px; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; }
.section-subtitle { color: var(--gray-500); font-size: 14px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-500); }
.text-primary{ color: var(--primary); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent-dark); }
.fw-bold { font-weight: 700; }
.fw-800  { font-weight: 800; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }

/* ---- Stars ---- */
.stars { color: var(--accent); font-size: 14px; letter-spacing: 1px; }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; opacity: .3; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); font-size: 14px; margin-bottom: 20px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #fff; border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; color: var(--primary); }
.logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 22px; height: 22px; fill: #fff; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  color: var(--gray-600); transition: all .2s;
}
.nav a:hover, .nav a.active { color: var(--primary); background: rgba(26,63,168,.06); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: var(--radius); border: 1.5px solid var(--gray-200);
  background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--gray-700);
  transition: all .2s;
}
.user-btn:hover { border-color: var(--primary); color: var(--primary); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); min-width: 200px; z-index: 100; display: none;
}
.dropdown-menu.open { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px; color: var(--gray-700); transition: background .15s; }
.dropdown-item:hover { background: var(--gray-50); color: var(--primary); }
.dropdown-divider { border-top: 1px solid var(--gray-100); margin: 4px 0; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0f2878 0%, #1a3fa8 50%, #2563eb 100%);
  color: #fff; padding: 72px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.08);
}
.hero::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 28px; line-height: 1.7; }
.hero-search {
  background: #fff; border-radius: var(--radius-xl); padding: 12px;
  display: flex; gap: 10px; flex-wrap: wrap; box-shadow: var(--shadow-xl);
}
.hero-search .form-control { border: none; box-shadow: none; flex: 1; min-width: 160px; }
.hero-search .form-control:focus { box-shadow: none; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-tag {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.hero-tag:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: #fff; border-bottom: 1px solid var(--gray-100); padding: 20px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(26,63,168,.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.stat-icon svg { width: 20px; height: 20px; fill: var(--primary); }
.stat-value { font-size: 22px; font-weight: 900; color: var(--gray-900); }
.stat-label { font-size: 12px; color: var(--gray-500); }

/* ============================================================
   VEHICLE CARD
   ============================================================ */
.veiculo-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
  overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.veiculo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.veiculo-card-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100);
}
.veiculo-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.veiculo-card:hover .veiculo-card-img img { transform: scale(1.04); }
.veiculo-card-img .no-photo {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--gray-400); font-size: 13px; gap: 8px;
}
.veiculo-card-img .no-photo svg { width: 40px; height: 40px; fill: var(--gray-300); }
.veiculo-card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.veiculo-card-fav { position: absolute; top: 10px; right: 10px; }
.fav-btn {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s; box-shadow: var(--shadow-sm);
}
.fav-btn svg { width: 16px; height: 16px; fill: var(--gray-400); transition: fill .2s; }
.fav-btn.active svg, .fav-btn:hover svg { fill: var(--danger); }
.veiculo-card-body { padding: 14px 16px; }
.veiculo-card-title { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.veiculo-card-sub { font-size: 12px; color: var(--gray-500); margin-bottom: 10px; }
.veiculo-card-specs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.spec-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gray-600); }
.spec-item svg { width: 13px; height: 13px; fill: var(--gray-400); }
.veiculo-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--gray-100); }
.veiculo-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.veiculo-price-label { font-size: 11px; color: var(--gray-400); font-weight: 400; }

/* ============================================================
   FILTERS SIDEBAR
   ============================================================ */
.filters-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 20px; position: sticky; top: 80px; }
.filters-title { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.filters-title svg { width: 18px; height: 18px; fill: var(--primary); }
.filter-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-100); }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-label { font-size: 12px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.comprar-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }

/* ============================================================
   LEILÃO
   ============================================================ */
.leilao-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.leilao-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.leilao-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.leilao-card-img img { width: 100%; height: 100%; object-fit: cover; }
.leilao-card-body { padding: 14px 16px; }
.countdown {
  display: flex; gap: 8px; justify-content: center; margin: 16px 0;
}
.countdown-item { text-align: center; }
.countdown-num {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; background: var(--primary); color: #fff;
  border-radius: var(--radius); font-size: 22px; font-weight: 900;
}
.countdown-label { font-size: 10px; color: var(--gray-500); margin-top: 4px; text-transform: uppercase; }
.countdown-sep { font-size: 22px; font-weight: 900; color: var(--primary); align-self: flex-start; padding-top: 14px; }
.lance-form { background: var(--gray-50); border-radius: var(--radius-lg); padding: 20px; margin-top: 20px; }
.lance-form h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.ofertas-list { max-height: 300px; overflow-y: auto; }
.oferta-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.oferta-item:last-child { border-bottom: none; }
.oferta-item.top { background: rgba(26,63,168,.04); border-radius: var(--radius); padding: 10px 12px; }

/* ============================================================
   PHOTO UPLOAD
   ============================================================ */
.photo-upload-area {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; cursor: pointer; transition: all .2s;
  background: var(--gray-50);
}
.photo-upload-area:hover, .photo-upload-area.drag-over { border-color: var(--primary); background: rgba(26,63,168,.04); }
.photo-upload-area svg { width: 40px; height: 40px; fill: var(--gray-400); margin: 0 auto 12px; }
.photo-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.photo-preview-item { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); }
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: rgba(0,0,0,.6); border: none; border-radius: 50%; color: #fff; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar { background: var(--gray-900); color: #fff; padding: 24px 0; }
.admin-sidebar-logo { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  font-size: 14px; color: rgba(255,255,255,.7); transition: all .2s;
}
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.admin-nav a svg { width: 18px; height: 18px; fill: currentColor; }
.admin-nav .nav-section { padding: 14px 20px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.35); }
.admin-content { padding: 28px; background: var(--gray-50); }
.admin-page-title { font-size: 22px; font-weight: 800; color: var(--gray-900); margin-bottom: 24px; }
.metric-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 20px; }
.metric-card-icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.metric-card-icon svg { width: 22px; height: 22px; fill: currentColor; }
.metric-value { font-size: 28px; font-weight: 900; color: var(--gray-900); }
.metric-label { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--gray-900); color: rgba(255,255,255,.7); padding: 48px 0 24px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xl); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .comprar-layout { grid-template-columns: 1fr; }
  .filters-card { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--gray-200); padding: 12px; box-shadow: var(--shadow-lg); }
  .hamburger { display: flex; }
  .header { position: relative; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 28px; }
  .hero-search { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}

    /* === Estilos para o Novo Upload de Fotos === */
    .photo-preview-item {
        position: relative;
        aspect-ratio: 1 / 1;
        border-radius: 8px;
        overflow: hidden;
        background: #f0f0f0;
        border: 1px solid #ddd;
    }
    .photo-preview-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .photo-preview-item .progress-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 5px;
        width: 0;
        background: var(--primary, #007bff);
        transition: width 0.3s;
    }
    .photo-preview-item.loading .progress-bar { width: 20%; } 
    .photo-preview-item.success .progress-bar {
        background: var(--success, #28a745);
        width: 100% !important;
    }
    .photo-preview-item.error .progress-bar {
        background: var(--danger, #dc3545);
        width: 100% !important;
        text-align: center; 
        color: white;
        font-size: 9px;
        height: 100%;
        display: flex; 
        align-items: center;
        justify-content: center;
        padding: 4px;
        box-sizing: border-box;
    }
    .photo-remove {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 22px;
        height: 22px;
        background: rgba(0,0,0,0.6);
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }