/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.sub_page .header_section .header_bottom {
  background-color: #075D70;
}

.header_section {
  border-top: 15px solid #075D70;
}

.header_section .header_top {
  padding: 15px 0;
  background-color: white;
  color: #075D70;
}

.header_section .header_top .header_top_container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.header_section .header_top .contact_nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.header_section .header_top .contact_nav a {
  color: #075D70;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.header_section .header_top .contact_nav a i {
  margin-right: 5px;
  background-color: #075D70;
  color: #075D70;
  width: 35px;
  height: 35px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #ffffff;
  border-radius: 100%;
}

.header_section .header_top .contact_nav a:hover i {
  background-color: #075D70;
}

.header_section .header_top .social_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.header_section .header_top .social_box a i {
  margin-right: 5px;
  background-color: #075D70;
  width: 28px;
  height: 28px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #ffffff;
  border-radius: 100%;
}

.header_section .header_top .social_box a:hover i {
  background-color: #075D70;
}

.header_section .header_bottom {
  background-color: rgba(0, 0, 0, 0.7);
}

.header_section .header_bottom .container-fluid {
  padding-right: 25px;
  padding-left: 25px;
}

.sidebar{
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 260px;
  background: #000000;
  z-index: 100;
  transition: all 0.5s ease;
}
.sidebar.close{
  width: 78px;
}
.sidebar .logo-details{
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
}
.sidebar .logo-details img{
  color: #fff;
  height: 50px;
  min-width: 58px;
  text-align: center;
  line-height: 50px;
}
.sidebar .logo-details .logo_name{
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  transition: 0.3s ease;
  transition-delay: 0.1s;
}
.sidebar.close .logo-details .logo_name{
  transition-delay: 0s;
  opacity: 0;
  pointer-events: none;
}
.sidebar .nav-links{
  height: 100%;
  padding: 30px 0 150px 0;
  overflow: auto;
}
.sidebar.close .nav-links{
  overflow: visible;
}
.sidebar .nav-links::-webkit-scrollbar{
  display: none;
}
.sidebar .nav-links li{
  position: relative;
  list-style: none;
  transition: all 0.4s ease;
}
.sidebar .nav-links li:hover{
  background: #1d1b31;
}
.sidebar .nav-links li .iocn-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar.close .nav-links li .iocn-link{
  display: block
}
.sidebar .nav-links li i{
  min-width: 78px;
  text-align: center;
  line-height: 50px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.sidebar .nav-links li.showMenu i.arrow{
  transform: rotate(-180deg);
}
.logo-details {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  transition: all 0.3s ease;
}

.logo-details img {
  height: 10px;
  width: auto;
  /* object-fit: cover; */
  transition: all 0.3s ease;
}

.logo {
  width: 20px;
  height: auto;
  transition: all 0.3s ease;
}

.logo_name {
  margin-left: 10px;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 1;
}

.sidebar.close .logo_name {
  opacity: 0;
  pointer-events: none;
}
.sidebar.close .nav-links i.arrow{
  display: none;
}
.sidebar .nav-links li a{
  display: flex;
  align-items: center;
  text-decoration: none;
}
.sidebar .nav-links li a .link_name{
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  transition: all 0.4s ease;
}
.sidebar.close .nav-links li a .link_name{
  opacity: 0;
  pointer-events: none;
}
.sidebar .nav-links li .sub-menu{
  padding: 6px 6px 14px 80px;
  margin-top: -10px;
  background: #1d1b31;
  display: none;
}
.sidebar .nav-links li.showMenu .sub-menu{
  display: block;
}
.sidebar .nav-links li .sub-menu a{
  color: #fff;
  font-size: 12px;
  padding: 5px 0;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.sidebar .nav-links li .sub-menu a:hover{
  opacity: 1;
}
.sidebar.close .nav-links li .sub-menu{
  position: absolute;
  left: 100%;
  top: -10px;
  margin-top: 0;
  padding: 10px 20px;
  border-radius: 0 6px 6px 0;
  opacity: 0;
  display: block;
  pointer-events: none;
  transition: 0s;
}
.sidebar.close .nav-links li:hover .sub-menu{
  top: 0;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}
.sidebar .nav-links li .sub-menu .link_name{
  display: none;
}
.sidebar.close .nav-links li .sub-menu .link_name{
  font-size: 18px;
  opacity: 1;
  display: block;
}
.sidebar .nav-links li .sub-menu.blank{
  opacity: 1;
  pointer-events: auto;
  padding: 3px 20px 6px 16px;
  opacity: 0;
  pointer-events: none;
}
.sidebar .nav-links li:hover .sub-menu.blank{
  top: 50%;
  transform: translateY(-50%);
}
.sidebar .profile-details{
  position: fixed;
  bottom: 0;
  width: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* background: #1d1b31; */
  padding: 12px 0;
  transition: all 0.5s ease;
}
.sidebar.close .profile-details{
  background: none;
}
.sidebar.close .profile-details{
  width: 78px;
}
.sidebar .profile-details .profile-content{
  display: flex;
  align-items: center;
}
.sidebar .profile-details img{
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 14px 0 12px;
  background: #1d1b31;
  transition: all 0.5s ease;
}
.sidebar.close .profile-details img{
  padding: 10px;
}
.sidebar .profile-details .profile_name,
.sidebar .profile-details .job{
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.sidebar.close .profile-details i,
.sidebar.close .profile-details .profile_name,
.sidebar.close .profile-details .job{
  display: none;
}
.sidebar .profile-details .job{
  font-size: 12px;
}
.home-section{
  position: relative;
  /* background: #E4E9F7; */
  height: 100vh;
  left: 260px;
  width: calc(100% - 260px);
  transition: all 0.5s ease;
}
.sidebar.close ~ .home-section{
  left: 78px;
  width: calc(100% - 78px);
}
.home-section .home-content{
  height: 60px;
  display: flex;
  align-items: center;
}
.home-section .home-content .bx-menu,
.home-section .home-content .text{
  color: #11101d;
  font-size: 35px;
}
.home-section .home-content .bx-menu{
  margin: 0 5px;
  cursor: pointer;
  position: fixed; /* Fix the position on the viewport */
  /* top: 20px; /* Adjust this to control vertical placement */
  /* left: 20px; Adjust this to control horizontal placement */ 
  z-index: 1000; /* Ensure it stays above other elements */
}
.home-section .home-content .text{
  font-size: 26px;
  font-weight: 600;
}

/* Styles for small screens */
@media (max-width: 576px) {
  .sidebar {
    width: 200px;
    height: 100%;

  }

  .sidebar.close {
    width: 60px;
    
  }

  .sidebar .logo-details {
    height: 10px;
  }

  .sidebar .logo-details img {
    font-size: 24px;
    height: 50px;
    line-height: 50px;
    min-width: 40px;
  }

  .sidebar .logo-details .logo_name {
    font-size: 16px;
  }

  .sidebar .nav-links {
    padding: 20px 0 100px 0;
    margin-top: 200px !important


  }

  .sidebar .nav-links li i {
    font-size: 20px;
    min-width: 60px;
    
  }

  .sidebar .nav-links li a .link_name {
    font-size: 14px;
  }

  .sidebar .nav-links li .sub-menu a {
    font-size: 13px;
  }

  .sidebar .profile-details {
    width: 200px;
  }

  .sidebar.close .profile-details {
    width: 60px;
  }

  .sidebar .profile-details img {
    height: 40px;
    width: 40px;
  }

  .sidebar .profile-details .profile_name,
  .sidebar .profile-details .job {
    font-size: 14px;
  }

  .home-section {
    left: 200px;
    width: calc(100% - 200px);
  }

  .sidebar.close ~ .home-section {
    left: 60px;
    width: calc(100% - 60px);
  }

  .home-section .home-content {
    height: 60px;
  }

  .home-section .home-content .bx-menu {
    font-size: 24px;
    position: fixed; /* Fix the position on the viewport */
    /* top: 20px; /* Adjust this to control vertical placement */
    /* left: 20px; Adjust this to control horizontal placement */ 
    z-index: 1000; /* Ensure it stays above other elements */
  }

  .home-section .home-content .text {
    font-size: 20px;
  }
}



/* Search box styles */
.search-box {
  position: relative;
  width: 100%;
  max-width: 600px; /* Center search box */
  margin: 0 auto; /* Center horizontally */
  padding: 10px 20px;
  background: #1d1b31;
  border-radius: 8px; /* Rounded edges for a cleaner look */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.search-box input {
  width: 100%;
  padding: 10px;
  border: none;
  outline: none;
  background: #11101d;
  color: #fff;
  border-radius: 5px;
  font-size: 14px; /* Smaller font for input */
}

.search-box i {
  position: absolute;
  top: 50%;
  right: 20px; /* Adjusted for better alignment */
  transform: translateY(-50%);
  color: #fff;
  font-size: 18px; /* Icon size adjusted */
}


/* Product container styles */
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  padding: 20px;
}

.box {
  /* background-color: #f9f9f9; Slightly brighter background */
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: background-color 0.3s, transform 0.3s;
  /* max-width: 300px; Restrict width for consistent layout */
  text-align: center; /* Center align text inside the box */
}

.box:hover {
  background-color: #3a485736;
  transform: translateY(-5px); /* Subtle hover effect */
}

.img-box img {
  /* display:flex; */
  height: 25vh; /* Adjusted for uniformity */
  width: auto;
}

.detail-box h4 {
  background-color: #075D70;
  color: white;
  clip-path: polygon(10% 0%, 90% 0%, 95% 50%, 90% 100%, 10% 100%, 5% 50%);
  padding: 4px; /* Reduced padding */
  font-size:25px; /* Uniform font size */
  margin-bottom: 10px; /* Spacing below heading */
  text-align: center;
}

.detail-box button {
  background-color: #075D70;
  color: white;
  border: none;
  padding: 6px 12px; /* Reduced size */
  text-align: center;
  font-size: 12px; /* Smaller font size */
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.2s;
}

.detail-box button:hover {
  background-color: #064d5a;
  transform: scale(1.05); /* Slight hover scale effect */
}

/* Search box styles */
.search-box {
  position: relative;
  width: 100%;
  max-width: 600px; /* Center search box */
  margin: 0 auto; /* Center horizontally */
  padding: 10px 20px;
  background: #1d1b31;
  border-radius: 8px; /* Rounded edges for a cleaner look */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.search-box input {
  width: 100%;
  padding: 10px;
  border: none;
  outline: none;
  background: #11101d;
  color: #fff;
  border-radius: 5px;
  font-size: 14px; /* Smaller font for input */
}

.search-box i {
  position: absolute;
  top: 50%;
  right: 20px; /* Adjusted for better alignment */
  transform: translateY(-50%);
  color: #fff;
  font-size: 18px; /* Icon size adjusted */
}


/* Subcategory header styles */
.subcategory-header {
  font-size: 18px;
  font-weight: bold;
  color: #075D70;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
}

.subcategory-item {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
  margin-bottom: 5px;
  text-align: center;
}
/* Product Search Styles */
.product-search-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.search-box-products {
  position: relative;
  width: 100%;
  /* max-width: 400px; */
  margin: 0 auto;
}

.search-box-products input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #075D70;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

/* .search-box-products input:focus {
  border-color: #053f52;
} */

.search-box-products i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #075D70;
  font-size: 20px;
}


/* Media Queries for Small Devices (sm) */
@media (max-width: 576px) {
  .box {
    padding: 10px;
  }

  .img-box img {
    height: 20vh;
  }

  .detail-box h4 {
    font-size: 14px;
    padding: 6px;
  }

  .detail-box button {
    padding: 5px 10px; /* Smaller padding for buttons */
    font-size: 12px;
  }
}

/* Media Queries for Medium Devices (md) */
@media (max-width: 768px) {
  .box {
    padding: 12px;
  }

  .img-box img {
    height: 20vh;
  }

  .detail-box h4 {
    font-size: 15px;
    padding: 7px;
  }

  .detail-box button {
    padding: 6px 12px; /* Slightly smaller buttons */
    font-size: 13px;
  }
}



/* Media Queries for Small Devices (sm) */
@media (max-width: 576px) {
  .box {
    padding: 10px;
  }

  .img-box img {
    height: 20vh;
  }

  .detail-box h4 {
    font-size: 14px;
    padding: 6px;
  }

  .detail-box button {
    /* padding: 5px 10px; Smaller padding for buttons */
    font-size: 8px;
  }
}

/* Media Queries for Medium Devices (md) */
@media (max-width: 768px) {
  .box {
    padding: 12px;
  }

  .img-box img {
    height: 20vh;
  }

  .detail-box h4 {
    font-size: 15px;
    padding: 7px;
  }

  .detail-box button {
    padding: 6px 12px; /* Slightly smaller buttons */
    font-size: 13px;
  }
}



/* Product Card Styles */
.product-card {
  padding: 15px;
  transition: transform 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

.img-box {
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.img-box:hover img {
  transform: scale(1.1);
}

/* Subcategory Container Styles */
.subcategory-container {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.subcategory-container:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #075D70;
}

.subcategory-item-container {
  background: white;
  border-radius: 8px;

  transition: all 0.3s ease;
}

.subcategory-item-container:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Button Styles */
.detail-box button {
  width: 100%;
  padding: 8px 15px;
  border-radius: 5px;
  background: #075D70;
  color: white;
  border: none;
  transition: all 0.3s ease;
  font-size: 14px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.detail-box button:hover {
  background: #053f52;
  transform: scale(1.05);
}

/* Category Separation */
.box {
  margin-bottom: 40px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}

.box h4 {
  margin-bottom: 25px;
}

/* Modal Button Enhancement */
.modal-footer .btn-secondary {
  background-color: #075D70;
  border: none;
}

.modal-footer .btn-secondary:hover {
  background-color: #053f52;
}

.search-recommendations {
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.recommendation-item {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recommendation-item:hover {
  background-color: #f5f5f5;
}

.product-name {
  font-weight: bold;
  color: #075D70;
}

.product-category {
  color: #666;
  font-size: 0.9em;
}

.search-box-products {
  position: relative;
}

/* Sticky Header Styles */
.box .detail-box h4 {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #075D70;
  margin: 0;
  padding: 15px;
  /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.subcategory-container{
/* /make a box shadow for the subcategory container/ */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 20px;
  border-radius: 10px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
}

/* Subcategory Header Styles */

.subcategory-container .subcategory-header {
  position: sticky;
  top: 60px; /* Below main category header */
  z-index: 90;
  background-color: #f8f9fa; /* Non-transparent background */
  margin: 0;
  padding: 12px;
}

.subcategory-item-container .subcategory-item {
  position: sticky;
  top: 110px; /* Below subcategory header */
  z-index: 80;
  background-color: #ffffff; /* Non-transparent background */
  margin: 0;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Container styles for proper sticky positioning */
.box {
  overflow: visible;
}

.subcategory-container {
  overflow: visible;
  padding-top: 0;
}

.subcategory-item-container {
  overflow: visible;
  padding-top: 0;
}

.custom-icon {
  
  background-image: url('images\\tube-fitting-icon.ico');
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}



.banner-section {
  position: relative;
  height: 40vh;
  overflow: hidden;
}

.banner-container {
  position: relative;
  height: 100%;
}

.carousel {
  height: 100%;
}

.carousel-item {
  height: 60vh;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.banner-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px;
}

.banner-content h2 {
  color: white;

}

.product-search-container {
  max-width: 600px;
  margin: 20px auto;
}

.search-box-products {
  background: rgba(255,255,255,0.9);
  border-radius: 25px;
  padding: 10px 20px;
}

@media (max-width: 768px) {
  .banner-section {
    height: 40vh;
  }
  
  .carousel-item {
    height: 40vh;
  }
}