/* Resetando estilos e corrigindo problemas de contraste */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Adicionando altura mínima de 100vh e flexbox para garantir que a página sempre ocupe a tela inteira */
html,
body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Atualizando .logo para usar flexbox e alinhar logo com texto */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-btn:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Main */
/* Fazendo o main ocupar todo o espaço disponível para empurrar o footer para baixo */
.main {
  flex: 1;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
}

/* Top Bar */
/* Reorganizando top-bar para ter duas linhas: categorias+busca / ordenação */
.top-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.top-bar-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap; /* Impedindo quebra de linha */
  min-height: 50px; /* Altura mínima fixa */
}

.categories {
  display: flex;
  gap: 0.5rem;
  /* Removendo flex-wrap para impedir quebra de linha */
  flex-wrap: nowrap;
  /* Removing fixed width to allow buttons to expand naturally */
  flex: 1;
  max-width: 600px;
  flex-shrink: 0; /* Impedindo que o container encolha */
}

.category-btn {
  /* Aumentando padding e adicionando flex para botões do mesmo tamanho */
  padding: 0.875rem 1.75rem;
  border: 1px solid #e2e8f0;
  /* Melhorando contraste do texto para acessibilidade */
  background: white;
  color: #475569;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  /* Making buttons flexible to fit content instead of fixed width */
  flex: 1;
  min-width: fit-content;
  flex-shrink: 0; /* Impedindo que o botão encolha */
  text-align: center;
  /* Removing text truncation to show full text */
  white-space: nowrap;
}

.category-btn.active,
.category-btn:hover {
  /* Melhorando contraste para acessibilidade - cor mais escura */
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.top-bar-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.search-container {
  position: relative;
  flex: 1; /* Expandir para ocupar espaço disponível */
  min-width: 200px; /* Largura mínima para não ficar muito pequeno */
}

.search-input {
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  width: 100%; /* Ocupar toda a largura do container */
  font-size: 0.875rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  z-index: 1;
}

/* Adding search dropdown styles for property list */
.search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow: hidden;
  z-index: 100;
  display: none;
}

.search-dropdown.show {
  display: block;
}

/* Adicionando estilos para o header do dropdown com botão fechar */
.search-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-dropdown-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.875rem;
}

.search-dropdown-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.search-dropdown-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.search-dropdown-close:active {
  background: #cbd5e1;
}

/* Container para os itens com scroll */
.search-dropdown-items {
  max-height: 350px;
  overflow-y: auto;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background: #f8fafc;
}

.search-dropdown-item-name {
  font-weight: 500;
  color: #1e293b;
  flex: 1;
}

.search-dropdown-item-category {
  font-size: 0.75rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
}

.search-dropdown-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

.sort-dropdown {
  position: relative;
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  background: white;
  /* Melhorando contraste do texto */
  color: #475569;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sort-btn:hover {
  /* Melhorando contraste no hover */
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.sort-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 50;
  display: none;
}

.sort-menu.show {
  display: block;
}

.sort-menu button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sort-menu button:hover {
  background: #f1f5f9;
}

/* Products Grid */
/* Adicionando flex-grow para que a grid ocupe o espaço restante disponível */
.products-grid {
  display: grid;
  /* Mantendo 3 colunas flexíveis no desktop */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: start;
  align-content: start;
  align-items: start;
  width: 100%;
}

.product-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  /* Altura fixa para desktop, flexível para mobile */
  height: 400px;
  width: 100%;
  max-width: 100%;
}

/* Adicionando regras para product-image que estavam faltando */
.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Adding status badge styles to display construction status on cards */
.status-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  backdrop-filter: blur(4px);
  /* Adding white color for all status badges */
  color: white;
}

/* Updated colors: Lançamento = Orange, Em Obras = Violet, Pronto = Green */
.status-lancamento {
  background: rgba(249, 115, 22, 0.95);
  border: 2px solid #f97316;
}

.status-na-planta {
  background: rgba(249, 115, 22, 0.95);
  border: 2px solid #f97316;
}

/* Changed from yellow to violet */
.status-em-obras {
  background: rgba(139, 92, 246, 0.95);
  border: 2px solid #8b5cf6;
}

.status-pronto {
  background: rgba(34, 197, 94, 0.95);
  border: 2px solid #22c55e;
}

.product-features {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  max-width: 90%;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: white;
  white-space: nowrap;
}

.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* Reduced gap from 0.5rem to 0.25rem to minimize spacing between elements */
  gap: 0.25rem;
}

.product-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  /* Reduced margin-bottom from 0.75rem to 0.5rem to minimize white space */
  margin-bottom: 0.5rem;
}

.product-price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b82f6;
}

.product-location {
  color: #64748b;
  font-size: 0.875rem;
  text-align: right;
  flex-shrink: 0;
  max-width: 45%;
  /* Adding flex display for location pin icon alignment */
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
}

.product-location svg {
  /* Styling the location pin icon in cards */
  flex-shrink: 0;
  color: #64748b;
}

.details-btn {
  display: inline-block;
  width: 100%;
  padding: 0.625rem 1rem;
  /* Melhorando contraste do botão */
  background: #2563eb;
  color: white;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-top: auto;
}

.details-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.details-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Load More */
.load-more-container {
  text-align: center;
  margin-top: 2rem;
}

/* Applying light button style to match other unselected buttons */
.load-more-btn {
  padding: 0.75rem 2rem;
  background: white;
  /* Melhorando contraste */
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-btn:hover {
  /* Melhorando contraste no hover */
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 2rem 0;
  margin-top: auto;
  /* Adding width and positioning fixes for landscape mobile */
  width: 100%;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  /* Ensuring full width coverage */
  width: 100%;
  max-width: 100%;
}

.social-links {
  display: flex;
  gap: 1rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #94a3b8;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: all 0.3s ease;
  stroke: #94a3b8;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link.facebook:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
}

.social-link.facebook:hover svg {
  stroke: white !important;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  border-color: #e4405f !important;
}

.social-link.instagram:hover svg {
  stroke: white !important;
}

.social-link.youtube:hover {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
}

.social-link.youtube:hover svg {
  stroke: white !important;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal {
  background: white;
  border-radius: 0.75rem;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background: #f1f5f9;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-image {
  grid-column: 1;
  position: sticky;
  top: 0;
  height: fit-content;
}

.modal-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.modal-info-column {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3b82f6;
}

.modal-category-location {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #64748b;
  font-size: 0.875rem;
  padding: 0;
  gap: 1rem;
}

.modal-category {
  text-align: left;
  /* Adding flex display for icon alignment */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-category svg {
  /* Styling the category icon */
  flex-shrink: 0;
  color: #64748b;
}

.modal-location {
  text-align: left;
  font-weight: 500;
  /* Adding flex display for location pin icon alignment */
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.modal-location svg {
  /* Styling the location pin icon */
  flex-shrink: 0;
  color: #64748b;
}

.modal-characteristics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.characteristics-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.characteristics-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.characteristic {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-item {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #3b82f6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.modal-description {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.875rem;
}

.modal-buttons {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0;
}

.modal-cta-btn {
  padding: 0.875rem;
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-cta-btn:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.modal-page-btn {
  padding: 0.875rem;
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-page-btn:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Contact Form */
.contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: flex-end;
  z-index: 1000;
}

.contact-form {
  background: white;
  height: 100vh;
  width: 400px;
  overflow-y: auto;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.contact-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.contact-close:hover {
  background: #f1f5f9;
}

.contact-form-content {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background: #2563eb;
}

.contact-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  color: #6b7280;
}

.contact-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.contact-divider span {
  background: white;
  padding: 0 1rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem;
}

.contact-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.contact-action-btn:hover {
  background: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .top-bar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap; /* Permitindo quebra no mobile */
  }

  .categories {
    width: 100%; /* Ocupando largura total no mobile */
    min-width: 100%;
    max-width: 100%;
    flex-wrap: wrap; /* Permitindo quebra de botões no mobile */
  }

  .category-btn {
    flex: 1 1 calc(50% - 0.25rem); /* 2 botões por linha no mobile */
    min-width: 120px;
    width: auto;
    max-width: none;
  }

  .search-input {
    width: 100%;
  }

  /* Grid mobile com 1 coluna */
  .products-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .product-card {
    /* No mobile, permitir largura e altura flexíveis */
    width: 100%;
    height: auto;
    min-height: 420px;
  }

  .footer {
    width: 100%;
    padding: 2rem 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
  }

  .footer-content p {
    order: 1;
    margin: 0;
  }

  .social-links {
    position: static;
    transform: none;
    order: 2;
    justify-content: center;
  }

  .modal-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .modal-image {
    grid-column: 1;
    position: relative;
  }

  .modal-image img {
    height: 250px;
  }

  .modal-info-column {
    grid-column: 1;
  }

  .modal-price {
    font-size: 1.5rem;
  }

  .characteristics-list {
    display: flex;
    flex-direction: column;
  }

  .modal-buttons {
    grid-column: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .modal-category-location {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .modal-location {
    text-align: left;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }

  .product-card {
    width: 100%;
    height: auto;
    min-height: 400px;
  }
}

@media (max-width: 991px) {
  .footer {
    width: 100%;
    padding: 2rem 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
  }

  .footer-content p {
    order: 1;
    margin: 0;
  }

  .social-links {
    position: static;
    transform: none;
    order: 2;
    justify-content: center;
  }
}

@media (max-width: 991px) and (orientation: landscape) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    width: 100%;
    height: auto;
    min-height: 380px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .modal {
    max-height: 95vh;
  }

  .modal-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .modal-image {
    grid-column: 1;
    position: relative;
    z-index: 1;
  }

  .modal-image img {
    height: 200px;
  }

  .modal-info-column {
    grid-column: 1;
  }

  .modal-buttons {
    grid-column: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
  }
}

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

/* Adicionando animação de spin para o loading do formulário */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
