/* Media Queries */

/* Large Devices (Desktops) */
@media (max-width: 1200px) {
  .featured-grid {
    gap: var(--spacing-md);
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-content h2 {
    font-size: 3rem;
  }
}

/* Medium Devices (Tablets) */
@media (max-width: 992px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .about-text {
    padding-right: 0;
    order: 2;
  }
  
  .about-image {
    order: 1;
    height: 400px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .contact-info {
    margin-bottom: var(--spacing-lg);
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-xl);
    z-index: 1001;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-btn {
    display: flex;
    z-index: 1002;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .process-images {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .process-images img {
    height: 300px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 576px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .hero-content {
    padding: var(--spacing-lg);
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-item {
    max-width: 450px;
    margin: 0 auto;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  .filter-btn {
    width: 80%;
  }
  
  .modal-content {
    max-width: 95%;
  }
}

/* Navigation overlay for mobile menu */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  z-index: 20;
}