/* 
* TudiBom - Responsividade
* Ajustes responsivos adicionais
*/

/* Este arquivo contém ajustes específicos de responsividade
   que complementam os já definidos nos arquivos styles.css e admin.css */

/* Overlay para navegação móvel */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
  display: none;
}

.nav-overlay.active {
  display: block;
}

/* Estilo adicional para menu toggler quando ativo */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Impedir scroll quando modais estão ativos */
body.no-scroll {
  overflow: hidden;
}

/* Ajustes para a seção Sobre (tablets e smartphones) */
@media screen and (max-width: 768px) {
  .about {
    padding: 50px 0;
  }
  
  .about-content {
    padding: 15px;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .about p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .about-icons {
    margin-bottom: 30px;
  }
  
  .about-icon i {
    font-size: 2rem;
    width: 60px;
    height: 60px;
  }
  
  /* Modais em mobile */
  .image-modal-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .expanded-image {
    max-height: 70vh;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .close-image-modal {
    top: -35px;
    font-size: 1.8rem;
  }
  
  .description-modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .description-modal-header {
    padding: 15px 20px;
  }
  
  .description-modal-header h3 {
    font-size: 1.1rem;
  }
  
  .description-modal-body {
    padding: 20px;
  }
}

@media screen and (max-width: 576px) {
  .about-icon i {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
  }
  
  .about-icon span {
    font-size: 0.9rem;
  }
  
  .about-content {
    padding: 15px 10px;
  }
}

/* Ajustes para telas muito pequenas */
@media screen and (max-width: 350px) {
  .product-card {
    margin: 0 auto;
    max-width: 250px;
  }
  
  .cart-content {
    width: 95%;
    padding: 15px;
  }
  
  .site-title {
    font-size: 1.2rem;
  }
  
  .logo {
    max-width: 40px;
  }
}

/* Ajustes para tablets na orientação retrato */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-img {
    height: 180px;
  }
}

/* Ajustes para dispositivos médios */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ajustes para dispositivos grandes */
@media screen and (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Ajustes para orientação paisagem em dispositivos móveis */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 20px 0;
  }
  
  .hero h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .cart-content {
    max-height: 85vh;
  }
}

/* Ajustes de acessibilidade para alto contraste */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #c54e24;
    --primary-dark: #a13910;
    --secondary-color: #006d60;
    --secondary-dark: #00504a;
    --text-color: #000000;
    --white: #ffffff;
    --gray: #707070;
    --light-gray: #e5e5e5;
  }
  
  .notification {
    border: 2px solid #000;
  }
  
  .cart-icon {
    border: 2px solid #000;
  }
  
  .product-card {
    border: 1px solid #000;
  }
  
  .product-price {
    font-weight: bold;
  }
}
