/* ===== RESET E ESTILOS GERAIS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #1a365d;
  --secondary-blue: #2d4a7a;
  --accent-blue: #3a6ea5;
  --light-blue: #e8f0fe;
  --dark-blue: #0f2540;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --white: #ffffff;
  --gray-light: #edf2f7;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===== NAVEGAÇÃO ===== */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
  background-color: var(--white) !important;
  border-bottom: 2px solid var(--primary-blue);
}

.navbar-brand img {
  height: 24px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
  color: var(--primary-blue) !important;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-blue) !important;
}

/* ===== CARROSSEL ===== */
.carousel {
  margin-bottom: 2rem;
}

.carousel-inner img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

/* ===== BANNER INFORMATIVO ===== */
.banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  padding: 30px 20px;
  color: var(--white);
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.item {
  text-align: center;
  max-width: 200px;
  padding: 0 15px;
}

.item img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}

.item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.item p {
  font-size: 14px;
  opacity: 0.9;
}

/* ===== SEÇÃO CTA ===== */
.cta-catalog {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--light-blue) 0%, #d4e4f7 100%);
  position: relative;
  overflow: hidden;
}

.cta-text {
  margin-bottom: 2rem;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 15px 35px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.catalog-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(26, 54, 93, 0.5);
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
}

.catalog-btn i {
  font-size: 1.3rem;
  transition: transform 0.4s ease;
}

.catalog-btn:hover i {
  transform: translateY(3px);
}

/* ===== CATÁLOGO ===== */
.catalog-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 15px;
}

.filters {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.filter-title {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  background-color: var(--gray-light);
  border: 2px solid transparent;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: var(--primary-blue);
}

.filter-btn.active, .filter-btn:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(26, 54, 93, 0.2);
  border-color: var(--primary-blue);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.mattress-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.mattress-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(26, 54, 93, 0.15);
  border-color: var(--accent-blue);
}

.mattress-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.mattress-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mattress-card:hover .mattress-img img {
  transform: scale(1.1);
}

.mattress-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(26, 54, 93, 0.3);
}

.mattress-info {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mattress-name {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.mattress-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.mattress-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.detail-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--primary-blue);
  background: rgba(26, 54, 93, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-label {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary-blue);
  font-size: 0.8rem;
}

.detail-value {
  color: var(--text-light);
  font-size: 0.75rem;
}

.mattress-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.size-option {
  background-color: var(--gray-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-blue);
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--white);
  max-width: 1000px;
  margin: 50px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: modalAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--white);
  cursor: pointer;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  width: 45px;
  height: 45px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal:hover {
  background: var(--primary-blue);
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-img {
  flex: 1;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.modal-info {
  flex: 1;
  padding: 2.5rem;
}

.modal-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  font-weight: 800;
  position: relative;
  padding-bottom: 15px;
}

.modal-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
  border-radius: 2px;
}

.modal-description {
  margin-bottom: 2rem;
  line-height: 1.8;
  color: var(--text-light);
}

.modal-features {
  margin-bottom: 2rem;
}

.modal-features h3 {
  margin-bottom: 1rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.feature-list i {
  color: var(--primary-blue);
  margin-right: 12px;
  margin-top: 3px;
  font-size: 1.1rem;
}

.modal-sizes {
  margin-bottom: 2rem;
}

.modal-sizes h3 {
  margin-bottom: 1rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.size-card {
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 15px 10px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.size-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.size-name {
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary-blue);
}

.size-dimensions {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-animation > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-blue), var(--accent-blue));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 12px;
  font-weight: 700;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.footer-links i {
  margin-right: 10px;
  color: var(--light-blue);
  width: 20px;
  text-align: center;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: white;
  color: var(--primary-blue);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #ddd;
  position: relative;
  z-index: 1;
}

/* ===== BARRA DE PESQUISA ===== */
.navbar-search {
  position: relative;
}

.navbar-search .form-control {
  border: 2px solid var(--border-color);
  border-radius: 6px 0 0 6px;
  padding: 8px 12px;
  transition: all 0.3s ease;
  background-color: var(--white);
  font-size: 0.9rem;
}

.navbar-search .form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 0.2rem rgba(58, 110, 165, 0.25);
}

.navbar-search .btn {
  border: 2px solid var(--accent-blue);
  border-radius: 0 6px 6px 0;
  background-color: var(--accent-blue);
  color: var(--white);
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.navbar-search .btn:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* Resultados da pesquisa */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-top: 5px;
}

.search-result-item {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--light-blue);
}

.search-result-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.search-result-info {
  flex: 1;
}

.search-result-name {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.search-result-type {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: capitalize;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
}

/* ===== RESPONSIVIDADE ===== */
@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }
  
  .banner {
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .filter-options {
    justify-content: center;
  }

  .catalog {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .modal-content {
    margin: 20px auto;
  }
  
  .banner {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .item {
    flex: 1 1 45%;
    margin-bottom: 20px;
  }
  
  .navbar-search {
    margin-top: 1rem;
    max-width: 100% !important;
  }
  
  .navbar-search .input-group {
    width: 100%;
  }
  
  .search-results {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 120px;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .catalog {
    grid-template-columns: 1fr;
  }

  .mattress-details {
    flex-direction: column;
    gap: 20px;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-img {
    min-height: 250px;
  }
  
  .banner {
    flex-direction: column;
    text-align: center;
  }
  
  .item {
    flex: 1 1 100%;
    margin-bottom: 30px;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .catalog-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  .filter-options {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .mattress-details {
    flex-direction: column;
    gap: 15px;
  }
  
  .detail-item {
    flex-direction: row;
    text-align: left;
    gap: 10px;
  }
  
  .detail-icon {
    margin-bottom: 0;
  }
  
  .catalog {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-title {
    font-size: 1.6rem;
  }
  
  .cta-subtitle {
    font-size: 1rem;
  }
}

@media (min-width: 769px) {
  .navbar-search {
    min-width: 250px;
  }
}

/* Melhorias para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .catalog {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .banner {
    justify-content: space-between;
  }
}

/* Melhorias de acessibilidade e interação */
.mattress-card:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.filter-btn:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Melhorias de performance visual */
.mattress-img img {
  transition: transform 0.5s ease;
}

/* Loading states */
.search-results.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Banner informativo - layout mais flexível */
.banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
}

.item {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
}

/* Melhorias para o modal em telas pequenas */
@media (max-width: 768px) {
  .modal-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }
  
  .modal-info {
    padding: 1.5rem;
  }
  
  .modal-title {
    font-size: 1.8rem;
  }
  
  .size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Adicione estas regras ao seu CSS existente */

.modal-img {
  flex: 1;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 8px 8px 0 0; /* Adiciona bordas arredondadas apenas no topo */
}

/* Para desktop, quando o modal está em linha */
@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }
  
  .modal-img {
    border-radius: 8px 0 0 8px; /* Bordas arredondadas apenas à esquerda */
  }
}

/* Adicionar um overlay sutil para melhor contraste */
.modal-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
}

/* ===== ESTILOS PARA DESCRIÇÃO EXPANSÍVEL ===== */

.mattress-description-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.mattress-description, .mattress-full-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more-btn:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Garantir que o botão não afete o layout do card */
.mattress-card {
    position: relative;
    overflow: visible;
}

/* Ajuste para garantir que o conteúdo expandido não quebre o layout */
.mattress-info {
    position: relative;
    z-index: 2;
}

/* Quando a descrição está expandida, aumentar ligeiramente a altura do card */
.mattress-card.expanded {
    z-index: 10;
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.2);
}

/* ===== CORREÇÕES DE RESPONSIVIDADE ===== */

/* Header e Navegação Mobile */
.navbar {
  padding: 0.5rem 0;
}

.navbar-brand img {
  height: 20px;
}

@media (max-width: 768px) {
  .navbar-brand img {
    height: 16px;
  }
  
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
}

/* Carrossel Mobile */
.carousel-inner img {
  max-height: 300px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .carousel-inner img {
    max-height: 200px;
    min-height: 200px;
  }
}

/* Banner Informativo - Layout Mobile Melhorado */
@media (max-width: 768px) {
  .banner {
    flex-direction: column;
    padding: 20px 15px;
    gap: 25px;
    margin: 1.5rem 15px;
    border-radius: 12px;
  }
  
  .item {
    flex: 1 1 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }
  
  .item img {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
  }
  
  .item h3 {
    font-size: 16px;
    margin-bottom: 6px;
    text-align: center;
  }
  
  .item p {
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
  }
}

/* Seção CTA Mobile */
@media (max-width: 768px) {
  .cta-catalog {
    padding: 2.5rem 1rem;
    margin: 0 15px;
    border-radius: 12px;
  }
  
  .cta-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  
  .cta-subtitle {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  
  .catalog-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
    width: 90%;
    max-width: 280px;
  }
}

/* Filtros Mobile */
@media (max-width: 768px) {
  .filters {
    padding: 1.5rem;
    margin: 1rem 15px 2rem;
    border-radius: 12px;
  }
  
  .filter-title {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .filter-options {
    justify-content: center;
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    flex: 0 1 auto;
    min-width: 80px;
  }
}

/* Catálogo Mobile */
@media (max-width: 768px) {
  .catalog-container {
    width: 100%;
    padding: 0;
  }
  
  .catalog {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 15px;
    margin-bottom: 2rem;
  }
  
  .mattress-card {
    margin: 0 auto;
    max-width: 100%;
    border-radius: 12px;
  }
  
  .mattress-img {
    height: 200px;
  }
  
  .mattress-info {
    padding: 1.5rem;
  }
  
  .mattress-name {
    font-size: 1.2rem;
  }
  
  .mattress-details {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 1rem;
  }
  
  .detail-item {
    flex-direction: row;
    text-align: left;
    gap: 12px;
    align-items: center;
  }
  
  .detail-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .mattress-sizes {
    justify-content: center;
  }
}

/* Modal Mobile */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-body {
    flex-direction: column;
  }
  
  .modal-img {
    min-height: 250px;
    border-radius: 8px 8px 0 0;
  }
  
  .modal-info {
    padding: 1.5rem;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .modal-description {
    font-size: 0.9rem;
  }
  
  .size-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .size-card {
    padding: 12px 8px;
  }
  
  .close-modal {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* Footer Mobile */
@media (max-width: 768px) {
  footer {
    padding: 2.5rem 0 1.5rem;
    margin-top: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 15px;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-links li {
    justify-content: center;
  }
}

/* Barra de Pesquisa Mobile */
@media (max-width: 768px) {
  .navbar-search {
    width: 100%;
    margin-top: 1rem;
  }
  
  .navbar-search .input-group {
    width: 100%;
  }
  
  .search-results {
    position: fixed;
    left: 15px;
    right: 15px;
    top: 120px;
    z-index: 1050;
  }
}

/* Melhorias de Toque para Mobile */
@media (max-width: 768px) {
  .mattress-card {
    cursor: default;
  }
  
  .filter-btn, 
  .catalog-btn,
  .size-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Melhorar área de toque */
  .filter-btn,
  .mattress-card,
  .search-result-item {
    min-height: 44px; /* Tamanho mínimo recomendado para toque */
  }
}

/* Otimizações para Telas Muito Pequenas */
@media (max-width: 360px) {
  .catalog {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mattress-info {
    padding: 1.2rem;
  }
  
  .cta-title {
    font-size: 1.4rem;
  }
  
  .catalog-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .banner .item h3 {
    font-size: 15px;
  }
  
  .banner .item p {
    font-size: 12px;
  }
}

/* Prevenir zoom em inputs no iOS */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px; /* Previne zoom no iOS */
  }
}

/* Melhorias de Performance Visual */
.mattress-img img {
  transition: transform 0.4s ease;
}

/* Loading states melhorados */
.search-results.loading::before {
  content: 'Carregando...';
  display: block;
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-style: italic;
}

/* ===== CORREÇÕES PARA CARDS UNIFORMES E ALINHAMENTO ===== */

/* Garantir que todos os cards tenham a mesma altura */
.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.mattress-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid var(--border-color);
    /* Garante altura consistente */
    min-height: 480px;
}

.mattress-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0; /* Impede que a imagem diminua */
}

.mattress-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mattress-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* Garante que o conteúdo ocupe o espaço disponível */
    justify-content: space-between;
}

.mattress-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
    /* Garante comportamento consistente */
    min-height: 60px;
    display: flex;
    align-items: flex-start;
}

/* ALINHAMENTO À ESQUERDA PARA TELAS PEQUENAS */
@media (max-width: 768px) {
    .catalog-container {
        width: 100%;
        padding: 0 15px;
    }
    
    .catalog {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
        justify-items: start; /* Alinha tudo à esquerda */
    }
    
    .mattress-card {
        min-height: 420px;
        width: 100%;
        max-width: 100%;
        margin: 0; /* Remove margin auto que centralizava */
    }
    
    .filters {
        margin: 1rem 0 2rem 0; /* Remove margens laterais */
        width: 100%;
    }
    
    .filter-options {
        justify-content: flex-start; /* Alinha filtros à esquerda */
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    /* Garante que os itens internos dos cards também fiquem alinhados à esquerda */
    .mattress-info {
        padding: 1.5rem;
        align-items: flex-start;
        text-align: left;
    }
    
    .mattress-details {
        justify-content: flex-start;
        width: 100%;
    }
    
    .detail-item {
        align-items: flex-start;
        text-align: left;
    }
    
    .mattress-sizes {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Para telas muito pequenas, ajuste fino */
@media (max-width: 480px) {
    .mattress-card {
        min-height: 400px;
    }
    
    .mattress-img {
        height: 180px;
    }
    
    .mattress-info {
        padding: 1.2rem;
    }
    
    .mattress-name {
        font-size: 1.1rem;
    }
    
    .mattress-description {
        font-size: 0.9rem;
        min-height: 50px;
    }
}

/* Garantir que o container principal também fique alinhado à esquerda */
.catalog-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px;
}

@media (max-width: 768px) {
    .catalog-container {
        width: 100%;
        padding: 0 15px;
        margin: 0 auto;
    }
}

/* Correção específica para o alinhamento dos detalhes */
.mattress-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    width: 100%;
}

@media (max-width: 768px) {
    .mattress-details {
        justify-content: space-around; /* Distribui melhor no mobile */
        gap: 10px;
    }
    
    .detail-item {
        flex: 1;
        min-width: 80px;
    }
}

/* Garantir que o footer também fique alinhado */
@media (max-width: 768px) {
    .footer-content {
        text-align: left; /* Alinha o texto do footer à esquerda */
    }
    
    .footer-column {
        text-align: left; /* Sobrescreve o center que tinha antes */
    }
    
    .footer-column h3::after {
        left: 0; /* Alinha o sublinhado à esquerda */
        transform: none; /* Remove a transformação que centralizava */
    }
    
    .footer-links li {
        justify-content: flex-start; /* Alinha ícones e texto à esquerda */
    }
    
    .social-links {
        justify-content: flex-start; /* Alinha redes sociais à esquerda */
    }
}

/* ===== LAYOUT HORIZONTAL PARA ALTURA, FIRMEZA E MATERIAL ===== */

.mattress-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    gap: 10px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0; /* Permite que os itens diminuam */
}

.detail-icon {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-blue);
    background: rgba(26, 54, 93, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-label {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-blue);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.detail-value {
    color: var(--text-light);
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* MOBILE - Mantém layout horizontal */
@media (max-width: 768px) {
    .mattress-details {
        flex-direction: row; /* Garante que fique em linha */
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 1.2rem;
    }
    
    .detail-item {
        flex: 1;
        min-width: 70px;
        padding: 0 5px;
    }
    
    .detail-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .detail-label {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }
    
    .detail-value {
        font-size: 0.65rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    .mattress-details {
        gap: 5px;
    }
    
    .detail-item {
        min-width: 60px;
        padding: 0 2px;
    }
    
    .detail-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .detail-label {
        font-size: 0.65rem;
    }
    
    .detail-value {
        font-size: 0.6rem;
    }
}

/* Garantir que o texto não quebre linhas */
.detail-label,
.detail-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ajuste específico para garantir que caibam os textos */
@media (max-width: 360px) {
    .detail-label {
        font-size: 0.6rem;
    }
    
    .detail-value {
        font-size: 0.55rem;
    }
    
    .mattress-details {
        gap: 3px;
    }
}

/* ===== ESCONDER CARROSSEL NO MOBILE ===== */

.carousel {
    margin-bottom: 2rem;
}

/* Esconde o carrossel em telas menores que 769px */
@media (max-width: 768px) {
    .carousel {
        display: none !important;
    }
    
    /* Opcional: ajusta o espaçamento quando o carrossel some */
    .cta-catalog {
        margin-top: 1rem;
    }
}

/* Mantém visível em telas maiores */
@media (min-width: 769px) {
    .carousel {
        display: block;
    }
}
.carousel-inner img {
  width: 100%;
  height: 400px; /* Altura fixa para consistência */
  object-fit: cover; /* Mantém proporção e cobre o espaço */
  object-position: center; /* Centraliza a imagem */
}
/* ===== BANNER ESTÁTICO ===== */
.static-banner {
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Responsividade para o banner estático */
@media (max-width: 768px) {
  .static-banner {
    margin-bottom: 1rem;
  }
  
  .banner-image {
    max-height: 200px;
    min-height: 200px;
  }
}

/* ===== BANNER ESTÁTICO ===== */
.static-banner {
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Esconde o banner em telas menores que 769px (mobile) */
@media (max-width: 768px) {
  .static-banner {
    display: none !important;
  }
  
  /* Opcional: ajusta o espaçamento quando o banner some */
  .cta-catalog {
    margin-top: 1rem;
  }
}

/* Mantém visível em telas maiores */
@media (min-width: 769px) {
  .static-banner {
    display: block;
  }
}

/* ===== BANNER ESTÁTICO ===== */
.static-banner {
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Esconde o banner em telas menores que 769px (mobile) */
@media (max-width: 768px) {
  .static-banner {
    display: none !important;
  }
  
  /* Opcional: ajusta o espaçamento quando o banner some */
  .cta-catalog {
    margin-top: 1rem;
  }
}

/* Mantém visível em telas maiores */
@media (min-width: 769px) {
  .static-banner {
    display: block;
  }
}
/* ===== BANNER ESTÁTICO ===== */
.static-banner {
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Esconde o banner em telas menores que 769px (mobile) */
@media (max-width: 768px) {
  .static-banner {
    display: none !important;
  }
  
  /* Opcional: ajusta o espaçamento quando o banner some */
  .cta-catalog {
    margin-top: 1rem;
  }
}

/* Mantém visível em telas maiores */
@media (min-width: 769px) {
  .static-banner {
    display: block;
  }
}

/* ===== BANNER ESTÁTICO ===== */
.static-banner {
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Esconde o banner em telas menores que 769px (mobile) */
@media (max-width: 768px) {
  .static-banner {
    display: none !important;
  }
  
  /* Opcional: ajusta o espaçamento quando o banner some */
  .cta-catalog {
    margin-top: 1rem;
  }
}

/* Mantém visível em telas maiores */
@media (min-width: 769px) {
  .static-banner {
    display: block;
  }
}

/* Responsividade para o banner estático */
@media (min-width: 769px) {
  .banner-image {
    max-height: 500px;
    min-height: 400px;
  }
}
/* ===== BANNER ESTÁTICO RESPONSIVO ===== */
.static-banner {
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Desktop - Altura maior para telas grandes */
@media (min-width: 1200px) {
  .banner-image {
    max-height: 500px;
    min-height: 400px;
  }
}

/* Notebooks e tablets landscape */
@media (min-width: 992px) and (max-width: 1199px) {
  .banner-image {
    max-height: 450px;
    min-height: 350px;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .banner-image {
    max-height: 350px;
    min-height: 280px;
  }
}

/* Mobile - Banner visível e otimizado */
@media (max-width: 767px) {
  .static-banner {
    display: block !important;
    margin-bottom: 1.5rem;
  }
  
  .banner-image {
    max-height: 200px;
    min-height: 150px;
    width: 100%;
  }
}

/* Telas muito pequenas (smartphones pequenos) */
@media (max-width: 480px) {
  .banner-image {
    max-height: 180px;
    min-height: 140px;
  }
}

/* Telas extra grandes */
@media (min-width: 1400px) {
  .banner-image {
    max-height: 550px;
    min-height: 450px;
  }
}

/* Garantir que a imagem sempre ocupe toda a largura */
.static-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Adicionar transição suave para redimensionamento */
.banner-image {
  transition: all 0.3s ease;
}

/* ===== BANNER ESTÁTICO ===== */
.static-banner {
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Esconde o banner em telas menores que 769px (mobile) */
@media (max-width: 768px) {
  .static-banner {
    display: none !important;
  }
  
  /* Opcional: ajusta o espaçamento quando o banner some */
  .cta-catalog {
    margin-top: 1rem;
  }
}

/* Mantém visível em telas maiores */
@media (min-width: 769px) {
  .static-banner {
    display: block;
  }
}

/* Responsividade para o banner estático */
@media (min-width: 769px) {
  .banner-image {
    max-height: 500px;
    min-height: 400px;
  }
}