@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url(//db.onlinewebfonts.com/c/4baee4a2550da10078fd0d6dd9440bc1?family=MTN+Brighter+Sans);
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "MTN Brighter Sans", sans-serif;
}

:root {
  --primary: #057a7a;
  --white: #ffffff;
  --secondary: #057a7a;
  --muted: #dfdede;
  ---danger: #ff0000;
  ---success: #01970e;
  --lighter: #b5ffce;
  --dark: #000000;
}

button {
  cursor: pointer;
}
a {
  text-decoration: none;
}

img {
  width: 100%;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1rem;
}

h4 {
  font-size: 0.8rem;
}

small {
  font-size: 0.7rem;
}

p {
  font-size: 0.8rem;
}

#header {
  width: 100%;
  height: 100px;
  position: relative;
}

.nav-bar {
  background-color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 70px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  position: fixed;
}

.logo {
  width: 120px;
}

.background {
  background-color: var(--secondary);
  transition: all 0.4s;
}

#search-btn {
  color: var(--secondary);
}

.info {
  display: flex;
  align-items: center;
}

select {
  background-color: var(--white);
  padding: 10px 12px;
  margin-right: 15px;
  outline: transparent;
  border: none;
  width: 150px;
}

select option {
  padding: 10px 20px;
  background-color: var(--white);
}

.search-area {
  background-color: var(--white);
  padding: 8px 10px 8px 20px;
  display: flex;
  align-items: center;
  width: 300px;
}

.search-area input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.8rem;
}

#search-btn {
  border: none;
  outline: none;
  background-color: transparent;
  text-align: center;
}

#nav-list {
  display: flex;
}

#nav-list a {
  color: var(--white);
}

#top-reg {
  color: white;
}

#top-log {
  color: white;
}
#nav-list li {
  list-style: none;
  padding: 10px 12px;
  transition: 0.5s;
  cursor: pointer;
}

#nav-list li:hover {
  color: var(--lighter);
}

.hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 100px;
  margin-top: 100px;
  display: none;
}

/* --------------- mobile menu -------------- */
.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  display: block;
  background-color: var(--white);
  padding: 100px 50px;
  height: 100vh;
  box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.5);
  padding-top: 120px;
  animation: animate 0.5s ease;
  position: fixed;
}

/* -------------------------------- */
.hidden {
  display: none;
}

.mobile-menu .categories #product-selection {
  width: 100%;
  margin-bottom: 20px;
  border: 2px solid var(--secondary);
  border-radius: 5px;
}
.mobile-menu .categories #product-selectionm {
  width: 100%;
  margin-bottom: 20px;
  border: 2px solid var(--secondary);
  border-radius: 5px;
}
.mobile-menu .categories .search-area {
  width: 100%;
  margin-bottom: 20px;
  border: 2px solid var(--secondary);
  border-radius: 5px;
}

#nav-menu a {
  color: var(--secondary);
  font-weight: 500;
  text-transform: uppercase;
}

#nav-menu a li {
  list-style: none;
  padding: 10px 20px;
  width: 100%;
  transition: all 0.4s ease-in-out;
}

#nav-menu li {
  list-style: none;
  padding: 10px 20px;
  width: 100%;
  transition: all 0.4s ease-in-out;
  color: var(--secondary);
  font-weight: 500;
  text-transform: uppercase;
  font-weight: 700;
}

#nav-menu a li:hover {
  background-color: var(--secondary);
  color: var(--white);
  font-weight: 700;
}

#nav-menu li:hover {
  background-color: var(--secondary);
  color: var(--white);
  font-weight: 700;
}

#menu-btn {
  width: 50px;
  padding: 15px;
  display: none;
}

.pop-up {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  background-color: transparent;
}

.menu-icon {
  position: absolute;
  top: 30px;
  right: 50px;
  z-index: 10000;
  position: fixed;
}

#avatar {
  width: 40px;
  border-radius: 50%;
  border: 4px solid var(--white);
}

.hi {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.menu-avatar {
  top: 20px;
  right: 120px;
  z-index: 10000;
  position: fixed;
  cursor: pointer;
  animation: hello 0.4s ease;
}

@keyframes hello {
  0% {
    right: 80px;
  }
  100% {
    right: 120px;
  }
}

@keyframes animate {
  0% {
    right: -200px;
  }
  100% {
    right: 0px;
  }
}

/* --------------------------product------------------ */

#product {
  width: 100%;
  padding: 10px 30px;
}

#all-product {
  width: 100%;
  margin-bottom: 40px;
  display: block;
}

#gadgets-product {
  width: 100%;
  margin-bottom: 40px;
}

#viechle-product {
  width: 100%;
  margin-bottom: 40px;
}

#clothing-product {
  width: 100%;
  margin-bottom: 40px;
}

#agro-product {
  width: 100%;
  margin-bottom: 40px;
}
#sport-product {
  width: 100%;
  margin-bottom: 40px;
}
#food-products {
  width: 100%;
  margin-bottom: 40px;
}

#all-product > h2 {
  padding-bottom: 30px;
}

.product-list {
  display: grid;
  grid-template-columns: 19% 19% 19% 19% 19%;
  column-gap: 1rem;
  row-gap: 1rem;
}

.product {
  border: 1px solid var(--primary);
  border-radius: 5px 5px 0 0;
}

.product-img a img {
  border-radius: 5px 5px 0 0;
}

.product-info {
  padding: 10px 25px;
}

#price {
  color: var(--primary);
  padding: 10px 0;
}

#buy {
  background-color: var(--secondary);
  width: 100%;
  text-align: center;
  padding: 10px;
  color: var(--white);
  border: none;
  outline: none;
  margin: 10px 0;
  font-weight: 500;
}

.product:hover {
  box-shadow: 0px 2px 4px rgba(139, 247, 211, 0.2);
}

.intro {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
  align-items: center;
}

.intro button {
  background-color: var(---danger);
  padding: 10px 15px;
  color: var(--white);
  border: none;
  outline: transparent;
}

/* ---------------------- Footer Section -------------- */

#footer {
  width: 100%;
  margin-top: 50px;
  background-color: var(--dark);
}

.features {
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 70px;
}

.fea-img {
  width: 50px;
  height: auto;
}

.fea-left-col {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.fea-mid-col {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.fea-right-col {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.txt h4 {
  columns: var(--primary);
}

.about {
  padding: 40px 70px;
  display: flex;
  color: var(--white);
  justify-content: space-between;
  align-items: flex-start;
}

.jig-img {
  flex-basis: 20%;
}

.jig-info {
  flex-basis: 33%;
}

.contact {
  flex-basis: 35%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact input {
  width: 65%;
  background-color: #000;
  border: 2px solid var(--muted);
  padding: 10px 15px;
  color: var(--muted);
  outline: transparent;
  border-radius: 10px;
  font-weight: 500;
}

#send {
  background-color: var(--muted);
  border: 2px solid var(--muted);
  padding: 10px 15px;
  color: var(--dark);
  outline: transparent;
  border-radius: 10px;
  font-weight: 700;
}

.secure {
  padding: 30px 70px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.privacy {
  flex-basis: 45%;
}

.policy {
  flex-basis: 45%;
}

.about p {
  color: var(--muted);
}

.secure p {
  color: var(--muted);
}

.copywrite {
  padding: 20px 70px;
}

.copywrite > p {
  color: var(--muted);
  padding: 15px 0px;
  text-align: center;
}

hr {
  border-color: var(--muted);
  margin: 10px 0;
}

.line {
  margin: 0 70px;
}

/* ------------------------ Overlay Layer -------------------- */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  opacity: 0.95;
  position: fixed;
  filter: blur(20%);
  cursor: pointer;
  animation: fade-in 0.5s ease-in-out;
}

.form-input {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0%);
  background-color: var(--white);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
  padding: 40px 50px;
  width: 30%;
  border-radius: 10px;
  font-family: "MTN Brighter Sans";
  padding-top: 80px;
  animation: fade-in 0.5s ease-in-out;
}

.sign-up {
  animation: fade-in 0.5s ease-in-out;
}
.sign-in {
  animation: fade-in 0.5s ease-in-out;
}
.sign-up input {
  width: 100%;
  padding: 10px 15px;
  font-size: 0.8rem;
  margin-bottom: 15px;
  outline-color: var(--secondary);
}

#register-button {
  width: 100%;
  padding: 10px 15px;
  text-align: center;
  margin: 10px 0;
  background-color: var(--secondary);
  border: none;
  outline: transparent;
  color: var(--white);
  font-weight: 500;
}

#already-reg {
  background-color: transparent;
  color: var(---danger);
  border: none;
  outline: transparent;
}

#already-log {
  background-color: transparent;
  color: var(---danger);
  border: none;
  outline: transparent;
}

.sign-up p {
  padding: 8px 0;
  font-weight: 300;
}

.sign-in input {
  width: 100%;
  padding: 10px 15px;
  font-size: 0.8rem;
  margin-bottom: 15px;
  outline-color: var(--secondary);
}

#login-button {
  width: 100%;
  padding: 10px 15px;
  text-align: center;
  margin: 10px 0;
  background-color: var(--secondary);
  border: none;
  outline: transparent;
  color: var(--white);
  font-weight: 500;
}

#close-btn {
  position: absolute;
  top: 28px;
  right: 50px;
  width: 20px;
  height: auto;
  cursor: pointer;
}

@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#prod {
  width: 100%;
  padding: 20px 70px;
  margin-bottom: 40px;
  margin-top: 40px;
}

.bcontainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
}

.pcont {
  display: grid;
  grid-template-columns: 3fr 1fr;
  column-gap: 1.5rem;
}

.prod-image {
  border: 2px solid var(--secondary);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  height: 250px;
  /* padding: 10px; */
}

#main-product {
  height: 100%;
}

.prod-imgs {
  margin-bottom: 30px;
}

.prod-text {
  margin-bottom: 20px;
}

.other-image {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  row-gap: 1.3rem;
}

#other-img-attached {
  display: block;
  text-align: center;
  height: 100%;
  width: 100%;
}

.other-img {
  border: 2px solid var(--secondary);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  justify-content: center;
  height: 70px;
  padding: 2px;
}

#product-discription {
  margin-bottom: 20px;
}

.seller-detail {
  margin-top: 30px;
}

.seller-detail {
  display: flex;
  gap: 1.5rem;
}

#profile-name {
  color: var(--secondary);
  padding: 10px 0;
}

.thing {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 5px 0;
}

#chat {
  padding: 8px 25px;
  background-color: #f2f2f2;
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 20px;
  border: none;
  outline: none;
}

.profile-picture {
  width: 65px;
  height: 70px;
  box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--white);
}

#main-product {
  display: block;
  text-align: center;
  align-items: center;
  justify-self: center;
}
/* --------------- media queries ------------------- */

@media screen and (min-width: 1201px) {
  .form-input {
    padding: 30px 30px;
    width: 30%;
    padding-top: 70px;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1200px) {
  .features {
    padding: 40px 50px;
  }

  .fea-left-col {
    flex-basis: 30%;
  }
  .fea-mid-col {
    flex-basis: 30%;
  }
  .fea-right-col {
    flex-basis: 30%;
  }

  .txt h4 {
    columns: var(--primary);
  }

  .about {
    padding: 40px 50px;
    display: flex;
  }

  .jig-img {
    flex-basis: 15%;
  }

  .jig-info {
    flex-basis: 35%;
  }

  .contact {
    flex-basis: 45%;
  }

  .contact input {
    width: 63%;
  }

  .form-input {
    padding: 30px 30px;
    width: 50%;
    padding-top: 70px;
  }

  .sign-in input {
    width: 100%;
    padding: 10px 15px;
  }

  #close-btn {
    top: 25px;
    right: 50px;
    width: 15px;
  }
}

@media screen and (min-width: 781px) and (max-width: 1024px) {
  .nav-bar {
    padding: 20px 50px;
  }

  .logo {
    width: 90px;
  }

  select {
    width: 100px;
  }

  .search-area {
    width: 200px;
  }

  #nav-list li {
    padding: 8px;
  }

  .hero {
    justify-content: space-between;
    padding: 20px 50px;
    margin-top: 30px;
  }

  .left-col {
    flex-basis: 40%;
  }

  .right-col {
    flex-basis: 50%;
  }

  #title {
    font-size: 3rem;
    line-height: 60px;
  }

  .left-col p {
    padding: 10px 0;
  }

  #product {
    padding: 10px 50px;
  }

  .product-list {
    grid-template-columns: 32% 32% 32%;
  }

  .features {
    padding: 40px 30px;
  }

  .fea-left-col {
    flex-basis: 30%;
  }
  .fea-mid-col {
    flex-basis: 30%;
  }
  .fea-right-col {
    flex-basis: 30%;
  }

  .about {
    padding: 40px 40px;
    display: flex;
  }

  .jig-img {
    flex-basis: 20%;
  }

  .jig-info {
    flex-basis: 40%;
  }

  .contact {
    flex-basis: 35%;
    display: block;
  }

  .contact input {
    width: 100%;
    margin-bottom: 10px;
  }

  #send {
    width: 100%;
    margin-top: 5px;
  }

  .form-input {
    padding: 30px 30px;
    width: 60%;
    padding-top: 70px;
  }

  .sign-in input {
    width: 100%;
    padding: 10px 15px;
  }

  #close-btn {
    top: 25px;
    right: 50px;
    width: 15px;
  }

  .bcontainer {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 3rem;
  }

  #avatar {
    width: 40px;
  }

  .menu-avatar {
    top: 15px;
    right: 140px;
  }
}

@media screen and (min-width: 481px) and (max-width: 780px) {
  .nav-bar {
    padding: 20px 50px;
  }

  .logo {
    width: 100px;
  }

  select {
    width: 100px;
  }

  .search-area {
    display: none;
  }

  .info {
    display: none;
  }

  #nav-list {
    display: none;
  }

  #menu-btn {
    display: block;
  }

  .menu-icon {
    top: 15px;
  }

  .mobile-menu {
    width: 80%;
  }

  #title {
    font-size: 4rem;
    line-height: 70px;
  }

  .mobile-menu .categories .search-area {
    width: 100%;
    margin-bottom: 20px;
    display: block;
  }

  .mobile-menu .categories .search-area {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
  }

  .hero {
    flex-wrap: wrap;
    padding: 20px 40px;
  }

  .left-col {
    flex-basis: 100%;
  }

  .right-col {
    flex-basis: 100%;
    display: none;
  }

  #reg {
    margin-top: 10%;
  }

  #login {
    margin-top: 10%;
  }

  #product {
    padding: 10px 30px;
  }

  .product-list {
    grid-template-columns: 47% 47%;
    column-gap: 1.5rem;
    row-gap: 1.5rem;
  }

  .features {
    padding: 40px 50px;
    flex-wrap: wrap;
  }

  .fea-left-col {
    flex-basis: 100%;
    margin-bottom: 30px;
    gap: 2.5rem;
  }
  .fea-mid-col {
    flex-basis: 100%;
    margin-bottom: 30px;
    gap: 2.5rem;
  }
  .fea-right-col {
    flex-basis: 100%;
    gap: 2.5rem;
  }

  .about {
    padding: 40px 40px;
    display: flex;
    flex-wrap: wrap;
  }

  .jig-img {
    flex-basis: 100%;
    margin-bottom: 30px;
  }

  .jig-info {
    flex-basis: 100%;
    margin-bottom: 30px;
  }

  .contact {
    flex-basis: 100%;
    display: block;
  }

  .contact input {
    width: 100%;
    margin-bottom: 15px;
  }

  #send {
    width: 100%;
    margin-top: 10px;
  }

  .secure {
    padding: 30px 50px;
  }

  .copywrite {
    padding: 20px 50px;
  }

  .line {
    margin: 0 40px;
  }

  .form-input {
    padding: 30px 30px;
    width: 75%;
    padding-top: 60px;
  }

  .sign-in input {
    width: 100%;
    padding: 7px 15px;
  }

  #close-btn {
    top: 25px;
    right: 50px;
    width: 15px;
  }

  .bcontainer {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 3rem;
  }

  #prod {
    padding: 20px 50px;
  }
}

@media screen and (min-width: 0px) and (max-width: 480px) {
  .nav-bar {
    padding: 15px 30px;
  }

  .logo {
    width: 90px;
  }

  select {
    width: 100px;
  }

  .search-area {
    display: none;
  }

  .info {
    display: none;
  }

  #nav-list {
    display: none;
  }

  #menu-btn {
    display: block;
  }

  .menu-icon {
    top: 10px;
    right: 20px;
  }

  .mobile-menu {
    width: 80%;
    padding: 100px 20px;
  }

  .mobile-menu .categories .search-area {
    width: 100%;
    margin-bottom: 20px;
    display: block;
  }

  .mobile-menu .categories .search-area {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
  }

  .hero {
    flex-wrap: wrap;
    padding: 20px 30px;
  }

  .left-col {
    flex-basis: 100%;
  }

  .right-col {
    flex-basis: 100%;
    display: none;
  }

  #title {
    font-size: 2.8rem;
    line-height: 60px;
  }

  #reg {
    margin-top: 10%;
  }

  #login {
    margin-top: 10%;
  }

  #product {
    padding: 10px 30px;
  }

  .product-list {
    grid-template-columns: 100%;
    column-gap: 1rem;
    row-gap: 1rem;
  }

  .features {
    padding: 40px 50px;
    flex-wrap: wrap;
  }

  .fea-left-col {
    flex-basis: 100%;
    margin-bottom: 30px;
    gap: 2.5rem;
  }
  .fea-mid-col {
    flex-basis: 100%;
    margin-bottom: 30px;
    gap: 2.5rem;
  }
  .fea-right-col {
    flex-basis: 100%;
    gap: 2.5rem;
  }

  .about {
    padding: 40px 40px;
    display: flex;
    flex-wrap: wrap;
  }

  .jig-img {
    flex-basis: 100%;
    margin-bottom: 30px;
  }

  .jig-info {
    flex-basis: 100%;
    margin-bottom: 30px;
  }

  .contact {
    flex-basis: 100%;
    display: block;
  }

  .contact input {
    width: 100%;
    margin-bottom: 15px;
  }

  #send {
    width: 100%;
    margin-top: 10px;
  }

  .secure {
    padding: 30px 40px;
    flex-wrap: wrap;
  }

  .copywrite {
    padding: 20px 30px;
  }

  .privacy {
    flex-basis: 100%;
    margin-bottom: 25px;
  }

  .policy {
    flex-basis: 100%;
  }

  .line {
    margin: 0 30px;
  }

  .form-input {
    padding: 30px 30px;
    width: 80%;
    padding-top: 60px;
  }

  .sign-in input {
    width: 100%;
    padding: 7px 15px;
  }

  #close-btn {
    top: 25px;
    right: 50px;
    width: 15px;
  }

  .bcontainer {
    display: grid;
    grid-template-columns: 1fr;
  }
  #prod {
    padding: 20px 35px;
  }

  .pcont {
    grid-template-columns: 68% 25%;
    column-gap: 1rem;
  }

  .other-image {
    row-gap: 1rem;
  }

  .thing {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 2px 0;
  }

  .profile-picture {
    width: 45px;
    height: 50px;
  }
  .seller-detail {
    gap: 01rem;
  }
  small {
    font-size: 0.68rem;
  }

  .chat-seller {
    flex-basis: 100%;
  }
  #product-discription {
    font-size: 0.7rem;
  }
  #avatar {
    width: 40px;
  }

  .menu-avatar {
    top: 15px;
    right: 140px;
  }
}
