:root {
  /* Cores profissionais para vendas */
  --bg: #f8fafc;
  --panel: #ffffff;
  --muted: #64748b;
  --text: #1e293b;
  --brand: #dc2626;
  --brand-600: #b91c1c;
  --brand-light: #fef2f2;
  --surface: #ffffff;
  --success: #059669;
  --warning: #d97706;
  --accent: #7c3aed;
  --accent-light: #f3f4f6;
  
  /* Sombras profissionais */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e2e8f0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand__logo {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}

.brand__logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}
.brand__name { 
  font-weight: 700; 
  letter-spacing: 0.2px; 
  font-size: 20px;
  color: var(--brand);
}

.topnav { display: flex; gap: 16px; }
.topnav__link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.topnav__link.is-active, .topnav__link:hover { color: #fff; }

.hero { 
  padding: 80px 0 60px; 
  text-align: center;
  background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 50%, #f0f9ff 100%);
  border-radius: 0 0 32px 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23dc2626" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23dc2626" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23dc2626" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23dc2626" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23dc2626" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}
.hero__title { 
  margin: 0 0 16px; 
  font-size: 56px; 
  font-weight: 900;
  background: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}
.hero__subtitle { 
  margin: 0 0 24px; 
  color: var(--muted); 
  font-size: 22px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.hero__slogan {
  margin: 0 0 40px;
  position: relative;
  z-index: 2;
}

.slogan-text {
  display: inline-block;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid var(--brand);
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3);
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slogan-text::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, var(--brand) 0%, #ff6b6b 100%);
  border-radius: 25px;
  z-index: -1;
  opacity: 0.2;
}
.ref-note { margin-top: 8px; color: var(--muted); font-size: 12px; }
.ref-note a { color: var(--muted); }

.search { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  max-width: 600px;
  margin: 0 auto;
}
.search__input {
  flex: 1;
  height: 56px;
  padding: 0 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.search__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.button {
  height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  min-width: 140px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.button:hover::before {
  left: 100%;
}

.button:hover { 
  background: linear-gradient(135deg, #128c7e 0%, #0f766e 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.button:active {
  transform: translateY(0) scale(1.02);
}

.filters {
  margin: 32px 0;
  background: var(--panel);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.filters__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 24px;
}
.field { display: grid; gap: 8px; }
.field__label { 
  color: var(--text); 
  font-size: 14px; 
  font-weight: 600;
}
.field__control {
  height: 48px;
  border-radius: 12px;
  background: var(--panel);
  border: 2px solid #e2e8f0;
  color: var(--text);
  padding: 0 16px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.field__control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.results { margin: 40px 0 60px; }
.results__head { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 24px;
}
.results__actions { display: flex; align-items: center; gap: 16px; }
.results__count { 
  color: var(--muted); 
  font-size: 16px;
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  justify-items: center;
  align-items: stretch;
}

.card {
  background: var(--panel);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  max-width: 400px;
  min-height: 500px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(220, 38, 38, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  opacity: 1;
}
.card__media { 
  aspect-ratio: 16/9; 
  background: #f8fafc; 
  position: relative;
  overflow: hidden;
}
.card__media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center; 
  display: block;
  transition: all 0.3s ease;
}
.card:hover .card__media img {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.card__media img:hover {
  cursor: pointer;
  transform: scale(1.08);
  filter: brightness(1.2);
}
.card__body { 
  padding: 20px; 
  display: grid; 
  gap: 16px; 
}
.card__title { 
  margin: 0; 
  font-size: 18px; 
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.card__meta { 
  display: flex; 
  gap: 12px; 
  color: var(--muted); 
  font-size: 14px;
  flex-wrap: wrap;
}
.price { 
  font-size: 24px; 
  font-weight: 800; 
  color: var(--brand);
  margin: 8px 0;
}
.badge { color: var(--success); font-weight: 600; font-size: 12px; }
.card__actions { 
  display: flex; 
  gap: 12px; 
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-secondary {
  height: 48px; 
  padding: 0 20px; 
  border-radius: 14px; 
  border: 2px solid #e2e8f0;
  background: transparent; 
  color: var(--text); 
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 120px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--brand-light);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.footer { 
  border-top: 1px solid #e2e8f0; 
  padding: 40px 0; 
  background: var(--panel);
  margin-top: 60px;
}
.footer__inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}
.footer__sub { 
  color: var(--muted); 
  font-size: 14px; 
  margin-top: 8px; 
}
.footer__address { 
  color: var(--muted); 
  font-size: 13px; 
  margin-top: 6px; 
}
.footnav { display: flex; gap: 20px; }
.footnav a { 
  color: var(--muted); 
  text-decoration: none; 
  font-weight: 500;
  transition: color 0.2s ease;
}
.footnav a:hover { color: var(--brand); }
.whatsapp-link {
  color: #25d366 !important;
  font-weight: 600;
  background: rgba(37, 211, 102, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.whatsapp-link:hover {
  color: #128c7e !important;
  background: rgba(37, 211, 102, 0.2);
  transform: translateY(-1px);
}

/* Animações e efeitos premium */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Elementos de vendas profissionais */
.sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, #ff6b6b 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
  z-index: 10;
}

.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--success) 0%, #10b981 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.new-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
  z-index: 10;
}

.price-highlight {
  background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 100%);
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--brand);
  margin: 16px 0;
  text-align: center;
}

.urgency-text {
  color: var(--warning);
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}

.trust-indicators {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 32px 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
}

.trust-icon {
  width: 24px;
  height: 24px;
  color: var(--success);
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

/* Sistema de Comparação */
.compare-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  z-index: 15;
  backdrop-filter: blur(10px);
}

.compare-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.compare-btn.active {
  background: var(--accent);
  color: white;
}

.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-xl);
}

.compare-bar.show {
  transform: translateY(0);
}

.compare-items {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.compare-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.compare-actions {
  display: flex;
  gap: 12px;
  margin-left: 20px;
}

/* Loading e efeitos de transição */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--brand);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Efeito de shimmer para loading de imagens */
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Contadores e Timers */
.view-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 10;
}


.price-drop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--brand);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 20;
}

.card:hover .price-drop {
  opacity: 1;
  animation: pulse 1s infinite;
}

/* Notificações */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 1001;
  font-weight: 600;
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  background: var(--brand);
}

.notification.warning {
  background: var(--warning);
}

/* Modal de Privacidade */
.privacy-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px 0;
}

.privacy-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.privacy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.privacy-section h4 {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.privacy-section p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.privacy-section ul {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0 16px;
  padding: 0;
}

.privacy-section li {
  margin-bottom: 4px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets (768px e abaixo) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .header {
    padding: 16px 0;
  }
  
  .brand__logo-img {
    height: 40px;
  }
  
  .brand__title {
    font-size: 20px;
  }
  
  .brand__subtitle {
    font-size: 12px;
  }
  
  .filters {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .filters__group {
    flex-direction: column;
    gap: 8px;
  }
  
  .filters__group label {
    font-size: 12px;
  }
  
  .filters__group select,
  .filters__group input {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .card {
    max-width: none;
  }
  
  .card__image {
    height: 180px;
  }
  
  .card__title {
    font-size: 14px;
  }
  
  .card__price {
    font-size: 18px;
  }
  
  .card__details {
    font-size: 12px;
  }
  
  .card__actions {
    flex-direction: column;
    gap: 6px;
  }
  
  .btn {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .modal-content {
    width: 95%;
    max-width: 500px;
    margin: 20px auto;
    max-height: 90vh;
  }
  
  .modal-header h3 {
    font-size: 18px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-group label {
    font-size: 13px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer {
    padding: 20px 0;
  }
  
  .footer__content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer__links {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer__address {
    font-size: 11px;
  }
}

/* Celulares (480px e abaixo) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .header {
    padding: 12px 0;
  }
  
  .brand__logo-img {
    height: 35px;
  }
  
  .brand__title {
    font-size: 18px;
  }
  
  .brand__subtitle {
    font-size: 11px;
  }
  
  .filters {
    padding: 12px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .card__image {
    height: 160px;
  }
  
  .card__title {
    font-size: 13px;
  }
  
  .card__price {
    font-size: 16px;
  }
  
  .card__details {
    font-size: 11px;
  }
  
  .modal-content {
    width: 98%;
    margin: 10px auto;
    max-height: 95vh;
  }
  
  .modal-header h3 {
    font-size: 16px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 13px;
    padding: 8px 10px;
  }
  
  .btn {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .footer {
    padding: 16px 0;
  }
  
  .footer__content {
    gap: 12px;
  }
  
  .footer__links {
    gap: 6px;
  }
  
  .footer__address {
    font-size: 10px;
  }
}

/* Telas muito pequenas (360px e abaixo) */
@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }
  
  .brand__title {
    font-size: 16px;
  }
  
  .brand__subtitle {
    font-size: 10px;
  }
  
  .card__image {
    height: 140px;
  }
  
  .card__title {
    font-size: 12px;
  }
  
  .card__price {
    font-size: 14px;
  }
  
  .card__details {
    font-size: 10px;
  }
  
  .modal-content {
    width: 100%;
    margin: 5px auto;
    border-radius: 8px;
  }
  
  .btn {
    font-size: 10px;
    padding: 5px 8px;
  }
}

/* Melhorias para touch em dispositivos móveis */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  .card__actions .btn {
    min-height: 40px;
  }
  
  .modal-close {
    min-width: 44px;
    min-height: 44px;
  }
  
  .filters__group select,
  .filters__group input {
    min-height: 44px;
  }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}


/* Sistema de Avaliações */
.vehicle-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
}

.stars {
  color: #fbbf24;
  font-size: 16px;
}

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

.reviews-container {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.reviews-summary {
  margin-bottom: 12px;
}

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

.reviews-list {
  max-height: 200px;
  overflow-y: auto;
}

.review-item {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.reviewer-name {
  font-weight: 600;
  color: var(--text);
}

.review-stars {
  color: #fbbf24;
  font-size: 12px;
}

.review-date {
  color: var(--muted);
  font-size: 11px;
  margin-left: auto;
}

.review-comment {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Modal de Avaliação */
.review-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
}

.modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 24px;
  width: min(90vw, 500px);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.modal-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text);
}

.review-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Sistema de Estrelas */
.star-rating {
  display: flex;
  gap: 4px;
  direction: rtl;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  font-size: 24px;
  color: #374151;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
  color: #fbbf24;
}

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

.btn-cancel {
  padding: 10px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.btn-cancel:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.4);
}

.btn-submit {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.btn-submit:hover {
  background: var(--brand-600);
}

/* Modal para Visualizar Fotos */
.photos-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.photos-modal[aria-hidden="false"] {
  display: flex;
}

/* Modal de Simulação */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.simulation-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
}

.radio-label input[type="radio"] {
  margin: 0;
  width: auto;
}

.radio-label span {
  font-size: 1rem;
  color: #333;
}

.modal-content--photos {
  width: min(95vw, 1000px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.photos-gallery {
  display: grid;
  gap: 20px;
}

.photos-main {
  position: relative;
  background: #0b1224;
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.main-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.2s;
}

.photo-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: var(--brand);
}

.photo-nav--prev {
  left: 20px;
}

.photo-nav--next {
  right: 20px;
}

.photos-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0;
  justify-content: center;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 8px;
}

.thumbnail {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  opacity: 0.6;
  transition: all 0.3s;
  background: #0b1224;
  flex-shrink: 0;
}

.thumbnail:hover {
  opacity: 1;
  border-color: var(--brand);
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.photo-counter {
  text-align: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}
  

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .results__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ===== RESPONSIVE DESIGN MELHORADO ===== */

/* Tablets (768px e abaixo) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .topbar__inner {
    height: 56px;
  }
  
  .brand__logo-img {
    height: 40px;
  }
  
  .brand__title {
    font-size: 20px;
  }
  
  .brand__subtitle {
    font-size: 12px;
  }
  
  .filters {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 16px;
  }
  
  .filters__group {
    flex-direction: column;
    gap: 8px;
  }
  
  .filters__group label {
    font-size: 12px;
  }
  
  .filters__group select,
  .filters__group input {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .card {
    max-width: none;
  }
  
  .card__image {
    height: 180px;
  }
  
  .card__title {
    font-size: 14px;
  }
  
  .card__price {
    font-size: 18px;
  }
  
  .card__details {
    font-size: 12px;
  }
  
  .card__actions {
    flex-direction: column;
    gap: 6px;
  }
  
  .btn {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .modal-content {
    width: 95%;
    max-width: 500px;
    margin: 20px auto;
    max-height: 90vh;
  }
  
  .modal-header h3 {
    font-size: 18px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-group label {
    font-size: 13px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer {
    padding: 20px 0;
  }
  
  .footer__content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer__links {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer__address {
    font-size: 11px;
  }
  
  .photos-modal .modal-content--photos {
    width: 95vw;
    max-height: 95vh;
  }
  
  .photos-main {
    min-height: 300px;
  }
  
  .photo-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .photo-nav--prev {
    left: 10px;
  }
  
  .photo-nav--next {
    right: 10px;
  }
  
  .thumbnail {
    width: 80px;
    height: 60px;
  }
}

/* Celulares (480px e abaixo) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .topbar__inner {
    height: 48px;
  }
  
  .brand__logo-img {
    height: 35px;
  }
  
  .brand__title {
    font-size: 18px;
  }
  
  .brand__subtitle {
    font-size: 11px;
  }
  
  .filters {
    padding: 12px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .card__image {
    height: 160px;
  }
  
  .card__title {
    font-size: 13px;
  }
  
  .card__price {
    font-size: 16px;
  }
  
  .card__details {
    font-size: 11px;
  }
  
  .modal-content {
    width: 98%;
    margin: 10px auto;
    max-height: 95vh;
  }
  
  .modal-header h3 {
    font-size: 16px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 13px;
    padding: 8px 10px;
  }
  
  .btn {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .footer {
    padding: 16px 0;
  }
  
  .footer__content {
    gap: 12px;
  }
  
  .footer__links {
    gap: 6px;
  }
  
  .footer__address {
    font-size: 10px;
  }
  
  .photos-modal .modal-content--photos {
    width: 98vw;
    max-height: 98vh;
  }
  
  .photos-main {
    min-height: 250px;
    padding: 10px;
  }
  
  .photo-nav {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .photo-nav--prev {
    left: 5px;
  }
  
  .photo-nav--next {
    right: 5px;
  }
  
  .thumbnail {
    width: 60px;
    height: 45px;
  }
  
  .photo-counter {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* Telas muito pequenas (360px e abaixo) */
@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }
  
  .brand__title {
    font-size: 16px;
  }
  
  .brand__subtitle {
    font-size: 10px;
  }
  
  .card__image {
    height: 140px;
  }
  
  .card__title {
    font-size: 12px;
  }
  
  .card__price {
    font-size: 14px;
  }
  
  .card__details {
    font-size: 10px;
  }
  
  .modal-content {
    width: 100%;
    margin: 5px auto;
    border-radius: 8px;
  }
  
  .btn {
    font-size: 10px;
    padding: 5px 8px;
  }
  
  .photos-modal .modal-content--photos {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .photos-main {
    min-height: 200px;
    padding: 5px;
  }
  
  .photo-nav {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  
  .thumbnail {
    width: 50px;
    height: 38px;
  }
}

/* Melhorias para touch em dispositivos móveis */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  .card__actions .btn {
    min-height: 40px;
  }
  
  .modal-close {
    min-width: 44px;
    min-height: 44px;
  }
  
  .filters__group select,
  .filters__group input {
    min-height: 44px;
  }
  
  .photo-nav {
    min-width: 44px;
    min-height: 44px;
  }
  
  .thumbnail {
    min-width: 60px;
    min-height: 45px;
  }
}


