/* Sticky Header Styles */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Logo Block (Stacked Vertically) */
.logo-block {
  display: block;
  text-align: center;
}

.logo-block img {
  display: block;
  margin: 0 auto 5px;
  max-height: 40px;
}

/* Header Flex Container */
.header-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Navigation Link Styles with Hover Animation */
.navbar-nav .nav-link {
  font-weight: 500;
  position: relative;
  display: inline-block;
  color: #000;
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #007BFF;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #007BFF;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Navbar Toggler (Mobile) */
.navbar-toggler {
  border: none;
}

/* Animation on Collapse */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-in-out;
}

/* Fade-In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*----categories----*/

/* Base Styles */
.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu {
  border-radius: 0;
  border: 1px solid #dee2e6;
  min-width: 180px; /* default width */
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.dropdown-item:hover {
  background-color: #007bff;
  color: white;
}

.all-categories-btn {
  font-weight: 600;
  text-transform: uppercase;
}

/* Medium Screens */
@media (max-width: 992px) {
  .dropdown-menu {
    min-width: 160px;
    padding: 0.4rem 0;
  }

  .dropdown-item {
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* Tablet Screens */
@media (max-width: 768px) {
  .dropdown-submenu .dropdown-menu {
    left: 0;
    top: 100%;
  }

  .dropdown-menu {
    min-width: 140px;
    padding: 0.3rem 0;
  }

  .dropdown-item {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Mobile Screens */
@media (max-width: 576px) {
  .dropdown-menu {
    min-width: 120px;
    padding: 0.25rem 0;
  }

  .dropdown-item {
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
  }
}


    /*----material-text----*/

    .material-handling-section {
  background: #f9f9f9; /* Light, clean background */
  padding: 50px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: 10px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* Subtle animation on load */
.material-handling-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
  }
}

/* Product Card Effects */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-image img {
  transition: transform 0.3s ease;
}

.product-image img:hover {
  transform: scale(1.04);
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: white;
}

/* Responsive Adjustments (Optional if you're using Bootstrap 5) */
@media (max-width: 576px) {
  .product-card {
    padding: 1rem;
  }

  .product-card h5 {
    font-size: 1rem;
  }

  .product-card img {
    max-height: 140px;
  }
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  .product {
    background: #f8f9fa;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
  }
  .pagination .page-link.active {
    background-color: #007bff;
    color: white;
  }
  .pagination .page-link.disabled {
    pointer-events: none;
    color: #ccc;
  }