@import url("https://fonts.googleapis.com/css2?family=ABeeZee&family=Inria+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat:wght@300;400;500;600;700;900&display=swap");
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inria Sans", sans-serif;
  color: #000000;
}

/*---------------------------Main Container------------------------- */

.container {
  padding: 12vh 2vw 1vh 0vw;
  margin-top: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
/* Parent Category Viewer --------------------*/
.parent-category-viewer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f2f2f2;
  padding: 20px;
}

.left-side {
  text-align: left;
  font-size: 20px;
  background-color: #00838ddb;
  color:#fff7f7;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.right-side {
  text-align: right;
 background-color: #00838ddb;
 color:#fff7f7;
  font-size: 20px;
  padding: 0.2em 0.4em;
  width:fit-content;
  border-radius: 4px;
}

.right-side a{
  text-decoration: none;
  color:#fff7f7;
}

/*---------------Some categories card--------------*/

.categories-card {
  overflow:scroll;
  margin-top: 2vh;
  margin-left: 2vw;
  padding-top: 1vh;
  max-height: 280px;
  min-width: 80vw;
  border: 1px solid #d3d7e2;
  box-shadow: 0px 4px 8px rgba(38, 38, 38, 0.2);
}

.categories-card .heading {
  top: 0;
}

.categories-card .heading p {
  font-family: "Merriweather", serif;
  font-weight: bold;
  font-size: 5vh;
  text-align: center;
  color: #00838d;
}

.card-boxes {
  max-height: 200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  transition: all 0.3s ease-out;
  margin-top: 2vh;
  margin-bottom: 3vh;
  overflow-y: scroll;
}

.card-boxes::-webkit-scrollbar {
  display: none;
}

.card {
  display: block;
  top: 0px;
  position: relative;
  max-height: 70px;
  max-width: 220px;
  min-width: 220px;
  background-color: #ebf6f8;
  border-radius: 4px;
  padding: 18px 20px;
  margin: 12px;
  margin-left: 4.5vw;
  text-decoration: none;
  z-index: 0;
  overflow: hidden;
  border: 1px solid #f2f8f9;
}

.card:hover {
  transition: all 0.2s ease-out;
  box-shadow: 0px 4px 8px rgba(38, 38, 38, 0.2);
  top: -4px;
  border: 1px solid #cccccc;
  background-color: white;
}

.card:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: #00838d;
  height: 32px;
  width: 32px;
  border-radius: 32px;
  transform: scale(2);
  transform-origin: 50% 50%;
  transition: transform 0.15s ease-out;
}

.card:hover:before {
  transform: scale(2.15);
}

.card h3 {
  color: #262626;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 32px;
  height: 32px;
  overflow: hidden;
  top: 0;
  right: 0;
  background-color: #00838d;
  border-radius: 0 4px 0 32px;
}

.go-arrow {
  margin-top: -4px;
  margin-right: -4px;
  color: white;
  font-family: courier, sans;
}

.show-all-categories {
  height: 40px;
  width: 40px;
  z-index: 1;
  cursor: pointer;
  border-radius: 50%;
  margin-top: -3vh;
  background-color: #0287c4;
  border: none;
  box-shadow: 4px 6px 6px rgba(0, 0, 0, 0.2);
}

.show-all-categories:hover {
  height: 50px;
  width: 50px;
  border: 2px solid black;
}

/*--------------------product Portion------------------*/

.product-portion {
  margin-left: 4vw;
  width: 90vw;
}

/* Breadcrump */

ol {
  margin-top: 4vh;
  margin-left: 1.5vw;
}

.breadcrumb {
  list-style: none;
}

.breadcrumb li {
  display: inline-block;
  font-weight: bold;
  font-size: 20px;
}

.breadcrumb li::after {
  content: " >    ";
}

.breadcrumb li:last-child {
  color: #0287c4;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  font-weight: normal;
  text-decoration: none;
  color: #222;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/*---product----*/

.searched-product {
  /* margin-top: 1vh; */
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.product {
  height: 45vh;
  width: 15vw;
  background: #ececec;
  border-radius: 1vh;
  margin-top: 4vh;
  margin-left: 2vw;
  position: relative;
}

.product img {
  height: 28vh;
  width: 13vw;
  margin-top: 1vh;
  margin-left: 0.8vw;
}

/*product details*/

.product-details {
  cursor: pointer;
}

.product-details .product-title {
  font-size: large;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-details .product-writer {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

.product p {
  margin-left: 1vw;
  font-size: 1vw;
}

.price-and-button {
  display: flex;
  justify-content: space-between;
  margin-top: 1vh;
  font-size: 2vw;
}

.add-to-cart {
  height: 4vh;
  width: 6vw;
  border: none;
  background: #cbcbcb;
  margin-right: 1vw;
  font-size: 1vw;
  cursor: pointer;
}

.add-to-cart:hover {
  background: #737373;
}

.view-all-button {
  padding: 5px 10px;
  font-size: 14px;
  background-color: #4CAF50;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.view-all-button:hover {
  background-color: #45a049;
}


.view-all-button a{
  text-decoration: none;
}

/*------------------Responsive For width less than 700px------------------------*/

@media only screen and (max-width: 700px) {
  .container {
    margin-top: 0vh;
    display: flex;
  }
  /*Some categories card*/
  .categories-card {
    padding-top: 0;
    max-height: 230px;
  }
  .categories-card .heading p {
    top: 0;
    font-size:8vw;
  }
  .card-boxes {
    max-height: 150px;
  }
  .card {
    max-height: 50px;
    max-width: 130px;
    min-width: 130px;
    padding: 10px 10px;
  }

  .card h3 {
    font-size: 10px;
    line-height: 20px;
  }
  /*--------------------product Portion------------------*/
  .product-portion {
    margin-left: 1vw;
    width: 90vw;
  }
  /* Product */
  .breadcrumb li {
    font-size: 14px;
  }

  .product {
    height: 37vh;
    width: 39vw;
    margin-left: 4vw;
  }
  .product img {
    height: 19vh;
    width: 34vw;
    margin-left: 2vw;
    margin-right: 1vw;
  }
  .product-details .product-title {
    font-size: 12px;
    font-weight: bold;
  }
  .product-details p {
    font-size: 9px;
    margin-top: 1.5vh;
  }
  .price-and-button p {
    font-size: 9px;
  }
  .add-to-cart {
    margin-top: 2vh;
    height: 20px;
    width: 55px;
    font-size: 9px;
  }
}
