/* Additional responsive optimizations */

/* Improve mobile experience */
@media (max-width: 576px) {
  /* Adjust hero section for mobile */
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Adjust section padding */
  .categories, .products, .about, .newsletter {
    padding: 2.5rem 0;
  }
  
  /* Make product cards more compact */
  .product-card {
    margin-bottom: 1.5rem;
  }
  
  .product-img {
    height: 180px;
  }
  
  .product-content {
    padding: 1rem;
  }
  
  /* Improve footer layout */
  .footer-section {
    margin-bottom: 1.5rem;
  }
}

/* Improve tablet experience */
@media (min-width: 577px) and (max-width: 991px) {
  /* Adjust product grid for better tablet layout */
  .products-grid, .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Adjust section padding */
  .categories, .products, .about, .newsletter {
    padding: 3rem 0;
  }
}

/* Optimize for larger screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Enhance product grid for larger screens */
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Improve accessibility */
.btn:focus, a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Add smooth transitions */
.product-card, .category-card, .btn {
  transition: all 0.3s ease;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
  .btn, nav ul li a {
    padding: 12px 20px;
  }
  
  nav ul li {
    margin-left: 0.5rem;
  }
}

/* Print styles */
@media print {
  header, footer, .newsletter, .hero {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }
}
