@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  margin: 0;
  font-family: Poppins;
}

html {
  scroll-behavior: smooth; /* supported in all major browsers */
}

nav {
  background: white;
  padding: 15px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
  /* padding: 5px; */
  margin: 0;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.nav-hidden {
  transform: translateY(-100%);
}

.nav-links img {
  cursor: pointer;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  background-color: #e7c089;
  padding: 8px;
  height: auto;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.top-nav img {
  height: 40px;
  object-fit: contain;
  max-width: 100%;
}

.img2, .img1, .img3 {
  width: 150px;
  height: auto;
  /* margin-top: 7px; */
}

/* .nt-search-input {
  padding: 6px 10px;
  font-size: 14px;
  align-items: right;
} */

/* .search-block {
  margin-right: 0;
} */

/* .nt-search-btn {
  background-color: #333;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
} */



/* .top-nav {
  display: flex;
  height: 60px;
  justify-content: center;
  gap: 50px;
  background-color: #e7c089;
  padding: 8px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  align-items: center;
} */

.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.sticky-nav {
  display: flex;
  justify-content: center;
  position: fixed;
  top: 58px; 
  width: 100%;
  background: white;
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: top 0.3s ease-in-out;
}

.sticky-top {
  top: 0 !important;
}
/* Existing styles retained */
.search-block {
  margin-right: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.nav-links li {
  margin-right: 20px;
}

.nt-search-input {
  padding: 6px 10px;
  font-size: 14px;
  align-items: right;
  border-radius: 20px;
  border: 1px solid #8a8a8a;
}

.nt-search-btn {
  background-color: #333;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
}

.menu-toggle {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: auto;
}

.subproducts_tittle {
  text-align: center;
  margin-top: 5%;
  font-weight: bold;
  font-size: 2rem;
}
.products-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 20px;
  padding: 5%;
  margin-top: -4%;
}
.product-item {
  width: 500px;
  border: 1px solid #b4b4b4;
  background-color: white;
  overflow: hidden;
}
/* .product-image {
    align-items: center;
    display: flex;
} */

.product-item img {
  width: 100%;
  padding: 15%;
  height: auto;
  align-items: center;
  display: flex;
}
.product-item .caption {
  background-color: #f07c00;
  color: #006c5b;
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}
.slideshow {
  position: relative;
}
/* Hide the images by default */
.mySlides {
  display: none;
}
/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 2s;
}
.col h2 {
  text-align: center;
  margin-bottom: 3%;
}
.card {
  border-radius: 0%;
}
.card img {
   height: 200px;
}
.card-body {
  background-color: #f07c00;
  padding: 10px;
}
.card-title {
  color: #ffffff;
  text-align: center;
}



@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
/* footer section */
.to-top {
  margin-block-start: calc(100vh + 400px);
  position: sticky;
  bottom: 1rem;
  left: 100vw; /* right: doesn't seem to work with position: sticky */
  margin-inline-end: 1rem; /* shunt it in a bit from the right */
  font-size: 2.5rem;
  z-index: 1;
}
.footer {
  background-color: #d9d9d9;
  padding: 6px;
  align-items: center;
  color: black;
  display: flex;
}
.to-top img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  font-weight: 500;
}
.foot p {
  margin-top: 1%;
}
.foot-links {
  text-decoration: none;
  margin: 0 10px;
  color: black;
}

.links {
  background-color: #d9d9d9;
  gap: 30px;
}

/* Mobile styles */
@media (max-width: 768px) {
  /* .sticky-nav {
    width: 81%;
  } */
  .slider {
    width: 100%;
    height: 150px;
    margin: 0 auto; 
  }
  .slider-wrapper {
    width: 100%;
    height: auto;
    position: relative;
  }
  .slider-wrapper img {
    width: 100%;
    height: 200px; /* Optional limit for desktop */
    object-fit: contain; /* Ensures no distortion */
  }
  .sticky-nav {
    display: block;
    position: fixed;
    top: 58px; 
    width: 100%;
    background: white;
    padding:  0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease-in-out;
  }
  .sticky-top {
    top: 0 !important;
  }
  .nav-links {
    flex-direction:row;
    align-items: flex-start;
    gap: 1px;
    padding-left: 5px;
    /* width: 75%; */
  }

  .nav-links li {
    display: none;
    width: 100%;
    margin: 10px 0;
  }

  .nav-links li.search-block {
    display: flex !important;
    justify-content: flex-end;
    margin-top: 10px;
  }

  .nav-links.show li {
    display: block;
    padding-left: 5px;
  }
  .search-block {
    margin-right: 0;
  }
  .nt-search-input {
    padding: 10px;
    font-size: 10px;
    align-items: right;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .top-nav {
    flex-direction: row;
    gap: 40px;
  }

  .img2, .img1, .img3 {
    width: 88px;
    height: 50px;
    margin-top: 0;
  }
}
@media screen and (max-width: 768px) {
  .footer {
    flex-direction: column;
    text-align: center;
    padding: 5px;
  }

  .foot {
    flex-direction: column;
    gap: 0px;
  }

  .foot p {
    margin-top: 5px;
  }

  .foot-links {
    display: inline-block;
    margin: 5px 3px;
    font-size: 13px;
  }
  .links {
    gap: 0px;
    padding: 0;
  }
}

@media (max-width: 1024px) {
  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-item {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .subproducts_tittle {
    font-size: 1.6rem;
    margin-top: 5%;
  }
  .products-container {
    grid-template-columns: 1fr;
    padding: 5% 30px;
  }

  .product-item {
    width: 100%;
  }
  .product-item .caption {
    font-size: 15px;
  }
}
