main {
  display: flex;
  height: auto;
  overflow: hidden;
}
.main-container {
  display: flex;
  position: relative;
  min-height: 100svh;
  min-width: 100svw;
  background-color: rgb(255, 255, 255);
  justify-content: center;
  align-items: center;
}
/* Reusable underline animation */
.ua {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #000000;
}

.ua::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px; /* Set the desired thickness */
  bottom: 0;
  left: 0;
  background-color: #000000; /* Set the color */
  transition: width 0.3s ease; /* Add a transition for smooth effect */
  transform-origin: 0% 100%;
  transform: scaleX(0); /* Start with no width */
}

.ua:hover::after {
  width: 100%;
  transform-origin: 0% 100%;
  transform: scaleX(1); /* Expand to full width on hover */
}
.zoom {
  transform: scale(1);
  transition: transform 0.3s ease;
}
.zoom:hover {
  transform: scale(1.06);
}
.lists-container div {
  text-align: justify;
  /* hyphens: auto; */
  padding-right: 1.5rem;
}
.lists-container div p {
  font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
    Helvetica, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgb(0, 0, 0);
}
.lists-container ul:hover .sl {
  color: rgb(0, 0, 0);
  text-decoration: none;
  opacity: 0.3;
}
.lists-container ul:hover .sl:hover {
  opacity: 1;
}
.lists-container ul li {
  width: 0;
}
.lists-container ul {
  width: 0;
}

#lightbox {
  flex-direction: column;
  position: fixed;
  z-index: 100;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
}
#lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  padding: 0.2rem;
  background-color: black;
  border: 0.3rem white solid;
  border-radius: 1rem;
  pointer-events: none;
}

#lightbox p {
  color: white;
  font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
    Helvetica, sans-serif;
  font-size: 2rem;
  margin-top: 0.5rem;
}
#lightbox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.032);
  border: solid rgb(255, 255, 255) 0rem;
  color: white;
  font-size: 3rem;
  padding: 100% 2%;
  z-index: 100;
}

#prev {
  left: 0.1rem;
}

#next {
  right: 0.1rem;
}
.lists-container ul li button {
  display: flex;
  background: none;
  border: none;
  font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
    Helvetica, sans-serif;
  font-size: 1.7rem;
  cursor: pointer;
  width: 20rem;
}
#menu2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: white solid 0.1rem;
}
#menu2 li {
  border-bottom: white solid 0.1rem;
  display: flex;
  width: 100%;
}
.menu li button {
  background: none;
  display: block;
  width: 100%;
  padding: 0.7em 0;
  text-align: center; /* Center the text */
  color: white;
  border-bottom: white solid 0.1rem;
  font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
    Helvetica, sans-serif;
  flex-grow: 1;
}
.filter-button {
  position: relative;
  padding-left: 30px; /* Space for the color circle */
}

.color-circle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
}
.filter-button.selected .color-circle {
  border: 2px solid white;
  box-shadow: 0 0 0 2px black;
}
.rainbow {
  background: conic-gradient(
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    rgb(255, 0, 136)
  );
}
.exotic {
  background: radial-gradient(
    circle,
    purple,
    orange,
    cyan,
    purple,
    orange,
    cyan,
    purple
  );
}

.product-img {
  cursor: pointer;
}
#noResultsMessage {
  font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
    Helvetica, sans-serif;
  font-size: 3rem;
}
/* Style for the placeholder div */
.placeholder {
  width: 100%;
  height: 100%;
  background-image: url("images/placeholder.gif"); /* Set your placeholder image */
  background-size: cover; /* Adjust as needed */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* Place it above the image */
  /* Add styles to make it look like a loading indicator */
}
@media (min-width: 90em) {
  .cln-container {
    display: flex;
    position: relative;
    justify-content: center;
    gap: 2rem;
    margin-inline: auto;
    width: auto;
    height: 100%;
    margin-top: 4rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    padding: 5rem;
  }
  .cln-1 {
    display: flex;
    width: 30rem;
    height: fit-content;
  }
  .lists-container {
    padding: 2rem;
    width: 30rem;
    height: fit-content;
    left: 2rem;
    background-color: rgb(255, 255, 255);
  }
  .lists-container h2 {
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: rgb(0, 0, 0);
  }
  #type {
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  #color {
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
  }
  .lists-container ul {
    margin: 1rem 0;
  }
  .lists-container ul li {
    list-style: none;
  }
  .lists-container ul li a {
    text-decoration: none;
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-size: 1.7rem;
    color: rgb(88, 87, 87);
    padding: 0.1rem 0.1rem;
  }

  .cln-2-3-4 {
    display: flex;
    width: 80rem; /* 38*2=76rem +2rem gap */
    height: fit-content;
    flex-wrap: wrap;
    align-content: space-between;
    gap: 2rem;
  }
  .sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    width: 25rem;
    height: 30rem;
    background-color: white;
    justify-content: center;
  }
  .sub .product-img {
    height: 25rem;
    width: auto;
    border-radius: 1.5rem;
  }
  .sub p {
    font-size: 1.7rem;
    margin-top: 0.3rem;
    width: 25rem;
    color: black;
    text-align: center;
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-weight: 700;
  }
  .img-container {
    overflow: hidden;
    position: relative;
    height: 25rem;
    width: 25rem;
    border-radius: 1.5rem;
  }
  #container {
    display: none;
  }
}

/* /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

@media (max-width: 90em) {
  #lightbox img {
    max-width: 70%;
  }
  .cln-container {
    display: flex;
    position: relative;
    justify-content: center;
    gap: 2rem;
    margin-inline: auto;
    width: auto;
    height: 100%;
    margin-top: 4rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    padding: 5rem;
  }
  .cln-1 {
    display: flex;
    width: 30rem;
    height: fit-content;
  }
  .lists-container {
    padding: 2rem;
    width: 30rem;
    height: fit-content;
    left: 2rem;
    background-color: white;
  }

  .lists-container h2 {
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-size: 4rem;
    margin-bottom: 3rem;
    color: black;
  }
  #type {
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  #color {
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
  }
  .lists-container ul {
    margin: 1rem 0;
  }
  .lists-container ul li {
    list-style: none;
    margin: 0.3rem 0;
  }
  .lists-container ul li a {
    text-decoration: none;
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-size: 1.7rem;
    color: rgb(88, 87, 87);
    padding: 0.1rem 0.1rem;
  }

  .cln-2-3-4 {
    display: flex;
    width: 60rem; /* 38*2=76rem +2rem gap */
    height: fit-content;
    flex-wrap: wrap;
    align-content: space-between;
    gap: 2rem;
  }
  .sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    width: 25rem;
    height: 30rem;
    background-color: white;
    justify-content: center;
  }
  .sub .product-img {
    height: 25rem;
    width: auto;
    border-radius: 1.5rem;
  }
  .sub p {
    font-size: 1.7rem;
    margin-top: 0.3rem;
    width: 25rem;
    color: black;
    text-align: center;
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-weight: 700;
  }
  .img-container {
    overflow: hidden;
    position: relative;
    height: 25rem;
    width: 25rem;
    border-radius: 1.5rem;
  }
  #container {
    display: none;
  }
}
@media (max-width: 60em) {
  .cln-1 {
    display: none;
  }
  .cln-container {
    display: flex;
    position: relative;
    justify-content: center;
    gap: 2rem;
    margin-inline: auto;
    width: auto;
    height: 100%;
    margin-top: 4rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    padding: 5rem;
  }

  .cln-2-3-4 {
    display: flex;
    width: 60rem; /* 38*2=76rem +2rem gap */
    height: fit-content;
    flex-wrap: wrap;
    justify-content: center;
    align-content: space-evenly;
    gap: 2rem;
  }
  .sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    width: 25rem;
    height: 30rem;
    background-color: white;
    justify-content: center;
  }
  .sub .product-img {
    height: 25rem;
    width: auto;
    border-radius: 1.5rem;
  }
  .sub p {
    font-size: 1.7rem;
    margin-top: 0.3rem;
    width: 25rem;
    color: black;
    text-align: center;
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-weight: 700;
  }
  .img-container {
    overflow: hidden;
    position: relative;
    height: 25rem;
    width: 25rem;
    border-radius: 1.5rem;
  }

  /* ///////////////////////////////////////////////////////////////////// */
  #container {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 3.5rem;
    display: flex;
    z-index: 1;
    justify-content: center;
    align-items: center;
    z-index: 99;
  }

  .button {
    width: 50%;
    height: 100%;
    z-index: 2;
    background-color: #000000d5;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-size: 1.4rem;
  }
  .button p {
    pointer-events: none;
  }
  #button1 {
    border-right: white solid 0.1rem;
  }
  .button:hover {
    background-color: rgba(255, 255, 255, 0.885);
    color: black;
  }
  .menu {
    position: absolute;
    bottom: calc(100% + 0.1px);
    width: 50%;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.4s ease-in-out, visibility 0.1s ease-in-out;
    background-color: #000000d5;
    z-index: 99;
  }

  .menu li {
    list-style-type: none;
    z-index: 99;
  }

  .menu li a {
    display: block;
    padding: 1em 0;
    text-align: center; /* Center the text */
    color: white;
    border-bottom: white solid 0.1rem;
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    z-index: 99;
  }
  .menu li a:hover {
    background-color: rgba(255, 255, 255, 0.885);
    color: black;
  }
}

@media (max-width: 45em) {
  .cln-2-3-4 {
    display: flex;
    width: 40rem; /* 38*2=76rem +2rem gap */
    height: fit-content;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: space-between;
    gap: 2rem;
  }
  .img-container {
    justify-content: center;
    align-items: center;
    display: flex;
  }
  .sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    width: 18rem;
    height: 23rem;
    background-color: rgba(255, 255, 255, 0);
    justify-content: center;
  }
  .sub .product-img {
    height: 18rem;
    width: auto;
    border-radius: 1.5rem;
  }
  .sub p {
    font-size: 1.7rem;
    margin-top: 0.3rem;
    width: 18rem;
    color: black;
    text-align: center;
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-weight: 700;
  }
  .img-container {
    overflow: hidden;
    position: relative;
    height: 25rem;
    width: 25rem;
    border-radius: 1.5rem;
  }
}
@media (max-width: 32.5em) {
  .cln-2-3-4 {
    display: flex;
    width: 30rem; /* 38*2=76rem +2rem gap */
    height: fit-content;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    /* align-content: space-between; */
    gap: 0rem;
  }
  .img-container {
    justify-content: center;
    align-items: center;
    display: flex;
  }
  .sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    width: 20rem;
    height: 25rem;
    background-color: rgba(255, 255, 255, 0);
    justify-content: center;
  }
  .sub .product-img {
    height: 20rem;
    width: auto;
    border-radius: 1.5rem;
  }
  .sub p {
    font-size: 1.4rem;
    margin-top: 0.1rem;
    width: 25rem;
    color: black;
    text-align: center;
    font-family: DMSans, OpenSans, Tajawal-Bold, MerriSans, verdana, Arial,
      Helvetica, sans-serif;
    font-weight: 700;
  }
  .img-container {
    overflow: hidden;
    position: relative;
    height: 20rem;
    width: 20rem;
    border-radius: 1.5rem;
  }
}
