@media (max-width: 1199px) {
  .main-image-wrapper {
    height: 450px;
  }
}

@media (max-width: 991px) {
  .infra-stats {
    gap: 20px;
  }

  .tech-features {
    gap: 20px;
  }

  .quality-principles,
  .standards-list {
    gap: 15px;
  }

  .equipment-icon-wrapper,
  .cert-icon-wrapper {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  .product-detail-gallery {
    position: static;
    margin-bottom: 30px;
  }

  .main-image-wrapper {
    height: 400px;
  }

  .product-detail-info {
    padding: 30px;
  }

  .product-tabs .tab-content {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  #header .main-nav #navbarNav {
    display: block;
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    opacity: 0;
    visibility: hidden;
    background: rgba(5, 5, 5, 1) !important;
    z-index: 111;
    padding: 20px;
    transition: all 0.5s ease-in-out;
  }

  #header .main-nav #navbarNav.show {
    left: 0;
    opacity: 1;
    visibility: visible;
  }
  body:has(#header .main-nav #navbarNav.show) {
    overflow: hidden;
  }
  #header .main-nav .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--bg-card);
    color: var(--white) !important;
    margin: 0 5px;
    margin-right: 5px;
    text-align: center;
    text-decoration: none;
    box-shadow: none !important;
  }
  #header .main-nav .navbar-toggler .cancel-menu {
    display: none;
  }
  #header .main-nav .navbar-toggler.show .cancel-menu {
    display: block;
  }
  #header .main-nav .navbar-toggler.show .click-menu {
    display: none;
  }

  #header .main-nav #navbarNav .navbar-nav {
    align-items: start !important;
  }
  .btn-outline-light,
  .btn-blue {
    padding: 10px 20px;
  }
  .hero-bg {
    min-height: 450px;
    margin-top: 70px;
  }
  .hero-title {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .hero-tagline,
  .page-subtitle {
    font-size: 1rem;
  }

  section,
  .section-compact {
    padding: 50px 0;
  }

  .stat-number {
    font-size: 2rem;
  }

  .product-filters {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 15px;
    font-size: 0.75rem;
  }

  .social-links-large {
    grid-template-columns: 1fr;
  }

  .infra-stats {
    flex-direction: column;
    gap: 20px;
  }

  .infra-stat-item h3 {
    font-size: 2rem;
  }

  .capacity-icon {
    font-size: 2rem;
  }

  .equipment-icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .dept-number,
  .stage-number {
    font-size: 2.5rem;
  }

  .tech-feature-item,
  .principle-item,
  .standard-item {
    padding: 15px;
  }

  .metric-value {
    font-size: 2.5rem;
  }

  .cert-icon-wrapper {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .safety-card i,
  .testing-icon {
    font-size: 2.5rem;
  }

  .main-image-wrapper {
    height: 350px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .product-detail-title {
    font-size: 1.5rem;
  }

  .current-price {
    font-size: 1.5rem;
  }

  .product-detail-info {
    padding: 25px;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
    min-width: auto;
  }

  .product-tabs .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .product-tabs .nav-item {
    min-width: 120px;
  }

  .product-tabs .nav-link {
    padding: 15px 15px;
    font-size: 0.75rem;
  }

  .product-tabs .tab-content {
    padding: 20px;
  }

  .spec-table td {
    padding: 12px 8px;
    font-size: 0.9rem;
  }

  .application-card {
    padding: 25px;
  }

  .cert-detail-card {
    padding: 20px;
    gap: 15px;
  }
  #products .section-header > a {
    display: none;
  }
  iframe {
    filter: grayscale(0) invert(0) contrast(100%);
  }
}
@media (max-width: 576px) {
  .equipment-body,
  .stage-body {
    padding: 20px;
  }

  .department-card,
  .safety-card,
  .testing-card,
  .metric-card {
    padding: 30px 20px;
  }

  .testimonial-card {
    padding: 25px;
  }

  .capacity-card {
    padding: 30px 15px;
  }
  .main-image-wrapper {
    height: 300px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-category {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-detail-title {
    font-size: 1.3rem;
  }

  .product-highlights {
    padding: 20px;
  }

  .meta-item {
    flex-direction: column;
    gap: 5px;
  }

  .meta-label {
    min-width: auto;
  }

  .application-card i {
    font-size: 2rem;
  }

  .cert-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}
