@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, body {
  overflow-x: hidden;
}
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: 50px;
  list-style: none;
  /* padding: 5px; */
  margin: 0;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  text-decoration: none;
  color: white;
  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: #ffffff;
  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; */
}

.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: 55px;
  width: 100%;
  background: #c5392a;
  padding: 5px 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;
}
.search-block {
  position: relative;
  box-sizing: border-box;
  width: fit-content;
}

.mainbox {
  box-sizing: border-box;
  position: relative;
  width: 230px;
  height: 50px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  border-radius: 160px;
  background-color: #c5392a;
  transition: all 0.3s ease;
}

.checkbox:focus {
  border: none;
  outline: none;
}

.checkbox:checked {
  right: 10px;
  width: 40px;
}

.checkbox:checked ~ .mainbox {
  width: 50px;
}

.checkbox:checked ~ .mainbox .search_input {
  width: 0;
  height: 0px;
  border: 1px solid #c5392a;
}

.checkbox:checked ~ .mainbox .iconContainer {
  padding-right: 8px;
}

.checkbox {
  box-sizing: border-box;
  width: 9px;
  height: 30px;
  position: absolute;
  right: -2px;
  top: 10px;
  z-index: 9;
  cursor: pointer;
  appearance: none;
  width: 20px;
}

.search_input {
  box-sizing: border-box;
  height: 80%;
  width: 220px;
  background-color: transparent;
  border: none;
  outline: none;
  padding-bottom: 4px;
  padding-left: 10px;
  font-size: 1em;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 72px;
  transition: all 0.3s ease;
}

.search_input::placeholder {
  color: #ffffff;
}

.iconContainer {
  box-sizing: border-box;
  padding-top: 5px;
  width: fit-content;
  margin-left: 11px;
  transition: all 0.3s ease;
}

.bi {
  color: white;
}

.search_icon {
  box-sizing: border-box;
  fill: white;
  font-size: 1.3em;
}
.menu-toggle {
  font-size: 24px;
  background: none;
  color: white; 
  border: none;
  cursor: pointer;
  margin-right: auto;
}
.slider {
	width: 100%;
  height: 370px;
	margin: 4em auto 0 auto;
	
}

.slider-wrapper {
	width: 100%;
	height: 350px;
	position: relative;
}

.slide {
	float: left;
	position: absolute;
	width: 100%;
	height: auto;
	opacity: 0;
	transition: opacity 3s;
}

.slider-wrapper > .slide:first-child {
	opacity: 1;
}

.products-brands {
  margin-top: 2%;
}
.products-brands h1 {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
}
.container {
  display: flex;
  margin-top: 2%;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  background-color: #af502e52;
}
.box {
  /* background-color: #d9d9d9; */
  padding-top: 30px;
  padding: 10px;
  width: 377px;
  text-align: center;
}
.box img {
  margin-bottom: 4%;
}
.box p {
  font-size: 14px;
  padding: 10px;
  text-align: left;
}
.container-products {
  width: 80%;
  margin: auto;
}

.container-products h1 {
  font-weight: 600;
  text-align: center;
  font-size: 30px;
  margin-top: 5%;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 5%;
}
.item {
  text-align: center;
}
.item img {
  width: 100%;
  height: auto;
}
.item a {
  text-decoration: none;
  font-weight: bold;
  display: flex;
  margin-top: 10px;
  color: #006c5b;
  align-items: center;
  gap: 20px;
}
.item .arrow {
  width: 40px;
  height: 40px;
  display: block;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 999;
  font-size: 18px;
  border: none;
  outline: none;
  background: none;
  /* background-color: #ffffff; */
  /* color: white; */
  cursor: pointer;
  padding: 10px;
  border-radius: 50px;
  width: 40px;
  height: 40px;
}

.footer {
  background-color: #c5392a;
  padding: 40px 20px;
  /* margin-top: 2rem; */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 250px;
  margin: 20px 10px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-weight: bold;
  color: white;
}

.footer-section strong {
  color: white;
}

.footer-section ul {
  list-style: none;
}
.footer-section a {
  text-decoration: none;
  color: #ffffff;
}
.footer-section ul li {
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-section p {
  margin: 8px 0;
}

.social-icons {
  margin-top: 15px;
}

.social-icons .bi {
  font-size: 20px;
  margin-right: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.social-icons .bi:hover {
  transform: scale(1.2);
}

.footer ul {
  padding-left: 0%;
  font-weight: 500;
}

.tabs,
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.tab,
.sub-tab {
  font-weight: 600;
  width: 17%;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  background-color: #c5392a;
  color: white;
  transition: background 0.3s;
}
.sub-tabs {
  width: 20%;
  height: 100%;
  display: grid;
  justify-content: left !important;
  gap: 22px;
  margin-top: 22px;
}
.sub-tab {
  width: 143%;
  height: 50px;
  border-radius: 0%;
  gap: 0%;
  margin: 0% !important;
}
.tab.active,
.sub-tab.active {
  background-color: #007f5f;
}
.content-section {
  display: none;
}
.content-section.active {
  display: flex;
  /* justify-content: center; */
  width: 100%;
}
.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 55px;
  margin-top: 20px;
  justify-content: center;
  width: 100%;
}
.brand .brand-img {
  display: block;
  margin: auto;
  width: 100% !important;
}

.brand h3 {
  margin-bottom: 10px;
}
ul {
  list-style: disc inside;
  padding: 0%;
  gap: 10px;
  display: grid;
  font-weight: 501;
}
.form-section {
  background: #af512e4d;
  padding: 5rem;
  text-align: center;
}
.form-container {
  display: grid;
  margin-top: 5rem;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.form-container input,
.form-container select,
.form-container textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #ffffff;
  color: #000000;
  margin: 10px 0;
}
.submit-btn {
  display: inline-block;
  background: black;
  color: white;
  padding: 15px 50px;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  font-size: 16px;
  margin-top: 2%;
  border: none;
}
@media (max-width: 600px) {
  .tab,
  .sub-tab {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media screen and (max-width: 1024px) {
  .nav-links {
    gap: 10px;
  }
  .nt-search-input {
    padding: 12px;
    font-size: 10px;
  }
  /* 
  .box {
    width: 300px;
    padding: 25px;
  }

  .box p {
    font-size: 14px;
  } */
  .products-brands h1 {
    font-size: 1.5rem;
    padding: 0 15px;
    margin-top: 10%;
  }

  .container {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }

  .box {
    width: 45%;
    padding: 35px;
  }

  .box p {
    font-size: 13px;
    padding: 5px;
  }
  .container-products {
    width: 90%;
    margin-top: 5%;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 5%;
  }

  .container-products h1 {
    font-size: 1.5rem;
  }

  .item a {
    justify-content: left;
    gap: 15px;
    font-size: 15px;
  }

  .item .arrow {
    width: 35px;
    height: 35px;
  }
  .sub-tab {
    width: 20%;
    padding: 8px 10px !important;
    height: 40px !important;
  }
  .tab {
    padding: 8px 10px;
  }
  .sub-tabs {
    width: 100% !important;
    display: flex;
    justify-content: center !important;
  }
  .content-section.active {
    display: block !important;
  }
}
@media (min-width: 768px) {
  
  .mySlides img {
    margin-top: 5%;
  }
  /* .grid {
    grid-template-columns: repeat(2, 1fr);
  } */
  /* .box {
    width: 46%;
  } */
  .container {
    flex-direction: row;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .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: #c5392a;
    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;
  }
  .top-nav {
    flex-direction: row;
    gap: 40px;
  }

  .img2,
  .img1,
  .img3 {
    width: 140px;
    height: 50px;
    margin-top: 0;
  }
  .mySlides img {
    width: 100% !important;
    height: 30vh !important;
    margin-top: 11%;
  }
  .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;
  }
  .products-brands h1 {
    font-size: 1rem;
    padding: 0 15px;
    margin-top: 0%;
  }

  .container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .box {
    width: 90%;
    padding: 35px;
  }

  .box p {
    font-size: 13px;
    padding: 5px;
  }
  .container-products {
    width: 90%;
    margin-top: 5%;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 5%;
  }

  .container-products h1 {
    font-size: 1.5rem;
  }

  .item a {
    justify-content: left;
    gap: 15px;
    font-size: 15px;
  }

  .item .arrow {
    width: 35px;
    height: 35px;
  }
  .sub-tabs {
    width: 100% !important;
    display: flex;
    justify-content: center !important;
    gap: 0 !important;
    height: 20% !important;
  }
}

@media (max-width: 425px) {
  .sub-tab {
    width: 27% !important;
  }
}
@media (max-width: 767px) {
  .img2,
  .img1,
  .img3 {
    width: 88px;
    height: 50px;
    margin-top: 0;
  }
  .tab, .sub-tab{
    width: 100%;
  }
  .brands {
    gap: 10px;
    margin-top: 20px;
    padding-left: 20px;
    display: flex;
    justify-content: center;
}
  .footer-section p {
    display: grid;
  }
  .mySlides img {
    width: 100% !important;
    height: 30vh !important;
    margin-top: 18%;
  }
  .form-section {
    padding: 2rem;
  }
  .form-container input,
  .form-container select,
  .form-container textarea {
    width: 100%;
    padding: 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #ffffff;
    color: #000000;
    margin: 10px;
  }
}
