@font-face {
  font-family: "Montserrat";
  src: url(../../fonts/Montserrat-Regular.woff2);
}

body {
  font-family: "Montserrat";
  /* display: none; */
  width: 100%;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Scanner loading animation */
.scanner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 5px solid transparent;
  border-top: 5px solid pink;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  top: 0;
  left: 0;
  z-index: 1000;
  position: fixed;
  width: 100%;
}

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  width: 100%;
  padding: 20px;

  box-shadow: 1px 1px 1px #29282815;
}


.mira_logo {
  width: 60px;
}

.header div:first-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.shop-dropdown {
  /* position: ab; */
  padding: 25px 10px;
  position: absolute;
  top: -90px;
  width: 100%;
  background-color: #fff;
  z-index: 10;
}

.shop-dropdown.active {
  top: 90%;
}

.shop-dropdown ul {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.shop-dropdown ul li {
  list-style-type: none;
}

.shop-dropdown ul li a {
  text-decoration: none;
  color: #000;
  text-transform: uppercase;
}

/* Search Container */
.search-container {
  position: relative;
  display: inline-block;
}

/* Search Icon */
.search-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: 40px;
  /* Adjust based on your layout */
  right: 0;
  width: 300px;
  /* Adjust width as needed */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  z-index: 10;
  display: none;
  /* Hidden by default */
}

/* Search Input */
.search-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}


nav ul {
  display: flex;
  gap: 20px;
}

nav li {
  list-style-type: none;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
}

nav li:first-child {
  text-transform: capitalize;
}

nav li:first-child a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

nav li:first-child a img {
  width: 20px;
  font-weight: bold;
}

nav a {
  text-decoration: none;
  color: #000;
}

.header img {
  width: 50px;
}

.icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.icons a {
  text-decoration: none;
}

.icons img {
  width: 29px;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: px;
  /* background-color: red; */
  color: black;
  padding: 0px 6px;
  /* color: rgb(0, 0, 0); */
  margin-top: 6px;
  font-size: 14px;
  margin-left: 7px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1px;
  /* display: none;  */
}

.icons img:last-child {
  display: none;
}

.sorting-and-filter {
  width: 100%;
  background-color: #fff;
  margin-top: 120px;
}

.sorting-and-filter div:first-child {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.sorting-and-filter div:first-child img {
  width: 20px;
}

.sorting-and-filter div:first-child p {
  text-transform: capitalize;
  display: flex;
  flex-direction: row;
  padding: 0 20px;
  gap: 5px;
  cursor: pointer;
  align-items: center;
}

.sort-content-box {
  background-color: #fff;
  width: 100%;
  position: absolute;
  z-index: 1000;
  visibility: hidden;
  transition: 0.2s visibility ease-in-out;
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  overflow-x: hidden;
}

.sort-content-box.active {
  visibility: visible;
}

.sort-list-item {
  font-size: 15px;
  list-style-type: circle;
  cursor: pointer;
}

.sort-list-item.active {
  list-style-type: disc;
}

.ambition-products-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  gap: 10px;
  margin-top: 20px;
  padding: 10px;
  margin-top: 4rem;
}

.product-container {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: #000;
  cursor: pointer;
  margin-top: -5rem;
}

.product-container img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* .product-container:hover {
    background-color: #9695952a;
  } */

.product-price-and-name {
  display: flex;
  flex-direction: row;
  color: #000;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}

.ambition-navigation {
  display: flex;
  flex-direction: row;
  padding: 20px;
  justify-content: space-between;
  align-items: center;
}

.navigate-prev,
.navigate-next {
  display: flex;
  flex-direction: row;
  cursor: pointer;
  gap: 5px;
  align-items: center;
}

.navigate-prev {
  visibility: hidden;
}

.navigate-prev.active {
  visibility: visible;
}

.navigate-next {
  visibility: visible;
}

.navigate-next.active {
  visibility: hidden;
}

.navigate-prev img {
  rotate: 180deg;
}

.navigation-arrow {
  width: 20px;
}

.navigating-numbers {
  display: flex;
  flex-direction: row;
  gap: 5px;
  color: #000;
}

.navigating-numbers span {
  padding: 2px 5px;
  cursor: pointer;
  border: none;
}

.navigating-numbers span.active {
  border-bottom: 3pt solid #000;
}

footer {
  margin-top: 40px;
  color: #000;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

footer h2 {
  text-transform: uppercase;
  font-size: 17px;
}

.introducing-community {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: #000;
}

.introducing-community div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.introducing-community div:first-child h2 {
  text-transform: uppercase;
  font-size: 17px;
}

.introducing-community div:first-child p {
  font-size: 15px;
}

.introducing-community div:nth-child(2) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.introducing-community div:nth-child(2) input {
  outline: none;
  border: none;
  color: #000;
  border-bottom: 2.5pt solid #000;
  font-size: 16px;
}

.introducing-community div:nth-child(2) button {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 8px 20px;
  border: none;
  gap: 5px;
  font-size: 16px;
}

.introducing-community div:nth-child(2) button img {
  width: 20px;
}

.handles-and-copyright {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.socials {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.socials i {
  color: #000;
  font-size: 25px;
}

footer h2:nth-child(2) {
  font-weight: normal;
}

.copyright {
  text-transform: uppercase;
  font-size: 14px;
}

@media screen and (max-width: 1000px) {
  body {
    position: relative;
  }

  .header {
    position: relative;
    padding: 7px 12px;
  }

  nav {
    position: fixed;
    box-shadow: 2px 2px 2px #2b2a2aa9;
    width: 300px;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: #fff;
    height: 100%;
    transition: transform 0.7s ease-in-out;
    transform: translateX(-400px);
    left: -50%;
  }

  nav.active-ham {
    left: 0;
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    gap: 30px;
    background-color: #fff;
    padding-top: 9%;
  }

  nav ul li {
    padding: 0 15px;
  }

  nav li:first-child a {
    justify-content: space-between;
  }

  .icons img:last-child {
    display: block;
  }

  .sorting-and-filter div:first-child {
    margin-top: -1rem;
  }

  .ambition-products-container {
    margin-top: 1rem;
  }

  .product-container {
    margin-top: -1rem;
    padding: 11px;
  }

  .product-price-and-name {
    font-size: 12px;
    font-weight: 400;
  }

  .icons img:first-child {
    display: block;
  }

  .ambition-products-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .introducing-community {
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .introducing-community div:nth-child(2) {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .introducing-community div:nth-child(2) input {
    width: 100%;
  }
}

@media screen and (max-width: 400px) {
  .header {
    padding: 10px;
  }

  nav {
    width: 75%;
    height: 100%;
    transition: transform 0.7s ease-in-out;
    transform: translateX(-400px);
  }

  .cart-count {
    margin-left: 6.5px;
  }

  .icons {
    gap: 0px;
  }

  .sort-list-item {
    font-size: 14px;
  }
}


@media screen and (max-width: 350px) {
  .search-dropdown {
    width: max-content;
  }
}