.upper-container {
  display: flex;
  padding-inline: 10%;
  margin-top: 50px;
  align-items: center;
  justify-content: center;
}
.upper-container > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.left-container {
}
.right-container {
}
.main-image-container{
  display: flex;
  position: relative;
  justify-content: center;
  width: 100%;
}
.image-container {
  width: 100%;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}
.image-container img {
  background-color: var(--lightGray-color);
  width: 80%;
  border-radius: 10px;
}
.image-more {
  display: flex;
  width: 90%;
  flex-direction: row;
  justify-content: space-between;
  width: 80%;
  margin-top: 20px;
}
.image-more > img {
  max-width: 20%;
  flex: 1;
  aspect-ratio: 1/1;
  cursor: pointer;
}
.color-container {
  background-color: var(--lightGray-color);
  border-radius: 15px;
  width: 80%;
  margin-block: 20px;
  align-items: center;
  display: flex;
  flex-direction: column;
  padding-block: 15px;
  margin-top: 50px;
}
.color-title {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  direction: ltr;
  width: 70%;
}
.color-title > p {
  flex: 1;
  color: black;
  text-align: center;
  font-family: "Inter";
  font-weight: bold;
  font-size: x-large;
}
.color-item {
  justify-content: center;
  align-items: center;
  display: flex;
  background-color: white;
  width: 80%;
  border-radius: 15px;
  margin-block: 15px;
  padding-block: 5px;
  user-select: none;
  display: flex;
  direction: rtl;
}
.color-item>div{
  height: 50px;
  width: 50px;
  margin-left: 30px;
  border-radius: 10px;
}
.color-item p {
  font-size: xx-large;
  font-family: 'Inter';
}

.color-item-selected {
  border: solid var(--onPrimary-color);
}
.color-item-unselected {
  cursor: pointer;
}
.color-item-selected p {
  color: var(--onPrimary-color);
}
.color-item-unselected p {
  color: black;
}

/* right container assets */
.title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  direction: rtl;
}
.title-container div {
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-name {
  color: black;
  font-weight: bold;
  font-size: xx-large;
  cursor: default;
}

.product-price {
  color: black;
  font-weight: bold;
  font-size: xx-large;
  direction: rtl;
  margin: 0;
  margin-block: 10px;
}
.product-discount {
  color: var(--gray-color);
  text-decoration: line-through;
  font-size: x-large;
  text-align: center;
  direction: rtl;
  margin: 0;
  margin-block: 10px;
}
.dimension-title > p {
  flex: 1;
  color: black;
  /* This ensures the flex-child's content is centered */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Crucial for RTL text centering */
  text-align: center;
  direction: rtl; /* Set this back to RTL so the browser calculates the glyph positions correctly */

  font-family: "Inter";
  font-weight: bold;
  font-size: x-large;
  margin: 0; /* Remove default margins which can push text to one side */
}

.product-score {
  color: black;
  font-size: xx-large;
}
.score-icon {
  width: 35px;
}
.description-container {
  width: 90%;
  margin-top: 35px;
}
.description-container p {
  color: black;
  font-family: "Yekan";
  direction: rtl;
  font-size: x-large;
  cursor: text;
  line-height: 2; /* Increased line spacing */
}
.divider {
  width: 90%;
  background-color: var(--lightGray-color);
  height: 3px;
  margin-block: 15px;
}

.price-container {
  width: 90%;
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 55px;
}
.count-container {
  background-color: var(--lightGray-color);
  display: flex;
  justify-content: space-around;
  padding: 10px;
  width: 180px;
  padding-inline: 20px;
  border-radius: 35px;
  margin-bottom: 10px;
}
.count-container p {
  flex: 1;
  color: var(--onPrimary-color);
  font-size: 40px;
  user-select: none;
  justify-content: center;
  align-items: center;
  margin: 0;
  margin-block: 10px;
  text-align: center;
}
.item-price p {
  color: black;
  font-weight: bold;
  font-size: x-large;
  direction: rtl;
}
.add-to-cart {
  background-color: var(--onPrimary-color);
  width: 90%;
  border: none;
  border-radius: 20px;
  font-size: x-large;
  font-family: "Inter";
  color: white;
  padding-block: 25px;
  margin-top: 30px;
  cursor: pointer;
}

.feedback-container {
  width: 100%;
  align-items: center;
  display: flex;
  flex-direction: column;

  margin-top: 100px;
}
.rating-container {
  height: 50px;

  display: flex;
  width: 80%;
  justify-content: space-between;
}
.rating-title {
  color: black;
  font-size: xx-large;
  font-weight: bold;
}
.feedback-input {
  margin-top: 40px;
  background-color: var(--lightGray-color);
  width: 70%;
  min-height: 250px;
  border-radius: 20px;
  border: none;
  justify-content: center;
  display: flex;
}
.feedback-input textarea {
  width: 95%;
  height: 250px;
  font-size: x-large;
  direction: rtl;
  text-align: right;
  background-color: transparent;
  margin: 20px;
  border: none;
  outline: none;
}

/* Change placeholder color */
.feedback-input textarea::placeholder {
  color: #888; /* Replace with your desired color */
  opacity: 1; /* Ensure full opacity */
}
.button-container {
  justify-content: left;
  display: flex;
  width: 70%;
  margin-top: 50px;
}
.button-container button {
  color: white;
  background-color: var(--primary-color);
  font-size: xx-large;
  font-family: "Yekan";
  padding: 20px;
  padding-inline: 65px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
}
.more-products-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 100px;
}

.more-products-title-container {
  display: flex;
  justify-content: right;
  align-items: center;
  width: 80%;
}
.more-products-title-container p {
  color: black;
  font-size: xx-large;
  font-weight: bold;
}

.list-container {
  background-color: white;
  width: 100%;
  direction: rtl;
  justify-content: center;
  align-items: center;
  padding-left: 8%;
  padding-right: 8%;
  box-sizing: border-box;
}
.list-container > div {
  display: flex;
  overflow-x: auto;

  /* Firefox */
  scrollbar-width: thin; /* "thin" | "auto" | "none" */
  scrollbar-color: var(--primary-color) transparent;
}

/* Chrome, Edge, Safari */
.list-container div::-webkit-scrollbar {
  height: 6px; /* horizontal scrollbar thickness */
}

.list-container div::-webkit-scrollbar-track {
  background: transparent;
}

.list-container div::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

.list-container div::-webkit-scrollbar-button {
  display: none; /* hides arrows */
}

.list-item-container {
  min-width: 250px;
  background: white;
  border: none;
  padding: 1rem;
  text-align: center;
  flex: 0 0 auto;
  font-size: 1.1rem;
  height: auto;
  flex-direction: column;
  align-items: center;
  margin-inline: 20px;

  overflow: hidden;
}
.list-item-container img,
p,
button {
  cursor: pointer;
}

.list-item-container > div {
  display: flex;
  justify-content: space-between;
  direction: rtl;
  padding: 0;
  margin: 0;
  width: 100%;
}
.item-image-container {
  display: flex;
  position: relative;
  justify-content: center;
  width: 100%;
  padding-left: 15px;

}

.item-image {
  background-color: var(--lightGray-color);

  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: scale-down;
  display: block;
  border-radius: 10px;
  padding: 35px;
}
.item-name {
  color: black;
  width: 100%;
  text-align: right;
  font-family: "Koodak";
  font-weight: bold;
  word-break: normal;
  max-width: 250px;
  white-space: normal;
  overflow: visible;
  display: block;
  text-align: right;
  margin: 0;
  margin-block: 10px;
}
.category-container p {
  cursor: pointer;
  color: var(--primary-color);
  font-size: large;
  margin-inline: 5px;
}
.item-rating-container {
  justify-content: left;
  display: flex;
  align-items: center;
  direction: ltr;
  width: auto;
}
.item-rating-container img {
  width: 20px;
  padding: 0;
}
.item-rating-container p {
  color: black;
  font-family: "Inter";
  font-weight: bold;
  margin-right: 10px;
}

.item-price-container {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: min-content;
}
.item-price {
  color: black;
  font-weight: bold;
  font-family: "Koodak";
  font-size: larger;
  width: 100%;
  text-align: right;
  padding: 0;
  margin: 0;
}
.item-discount {
  color: var(--gray-color);
  text-decoration: line-through;
  font-size: large;
  width: 100%;
  margin: 0;
  margin-block: 5px;
  text-align: right;
}
.item-buy {
  background-color: var(--onPrimary-color);
  border: none;
  aspect-ratio: 2/1;
  height: 50px;
  color: white;
  font-family: "Koodak";
  font-size: larger;
  border-radius: 15px;
  text-align: center;
}
@media only screen and (max-width: 768px) {
  .upper-container {
    display: flex;
    flex-direction: column;
    padding-inline: 10%;
    margin-top: 50px;
    align-items: center;
    justify-content: center;
  }
  .upper-container > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .left-container {
  }
  .right-container {
  }
  .image-container {
    width: 100%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
  }
  .image-container img {
    background-color: var(--lightGray-color);
    width: 100%;
    border-radius: 15px;
  }
  .image-more {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
  }
  .image-more > img {
    max-width: 20%;
    flex: 1;
    aspect-ratio: 1/1;
    border-radius: 5px;
    padding: 4px;
  }
  .color-container {
    background-color: var(--lightGray-color);
    border-radius: 15px;
    width: 90%;
    margin-block: 20px;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-block: 15px;
    margin-top: 50px;
  }
  .color-title {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    direction: ltr;
    width: 90%;
  }
  .color-title > p {
    flex: 1;
    color: black;
    text-align: center;
    font-family: "Inter";
    font-weight: bold;
    font-size: large;
  }
  .color-item {
    justify-content: center;
    align-items: center;
    display: flex;
    background-color: white;
    width: 80%;
    border-radius: 15px;
    margin-block: 5px;
    padding-block: 5px;
    user-select: none;
  }
  .color-item div{
    width: 25px;
    height: 25px;
  }
  .color-item p {
    font-size: large;
  }

  .color-item-selected {
    border: solid var(--onPrimary-color);
  }
  .color-item-unselected {
    cursor: pointer;
  }
  .color-item-selected p {
    color: var(--onPrimary-color);
  }
  .color-item-unselected p {
    color: black;
  }

  /* right container assets */
  .title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    direction: rtl;
  }
  .title-container div {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .product-name {
    color: black;
    font-weight: bold;
    font-size: x-large;
  }
  .product-score {
    color: black;
    font-size: x-large;
  }
  .score-icon {
    width: 25px;
  }
  .description-container {
    width: 100%;
    margin-top: 15px;
  }
  .description-container p {
    color: black;
    font-family: "Yekan";
    direction: rtl;
    font-size: large;
    line-height: 2; /* Increased line spacing */
  }
  .divider {
    width: 90%;
    background-color: var(--lightGray-color);
    height: 3px;
    margin-block: 15px;
  }

  .price-container {
    width: 90%;
    align-items: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 55px;
  }
  .product-price {
    color: black;
    font-weight: bold;
    font-size: xx-large;
    direction: rtl;
    
  }

  .count-container {
    background-color: var(--lightGray-color);
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 10px;
    width: 55%;
    padding-inline: 20px;
    border-radius: 35px;
  }
  .count-container p {
    color: var(--onPrimary-color);
    font-size: xx-large;
  }

  .add-to-cart {
    background-color: var(--onPrimary-color);
    width: 80%;
    border: none;
    border-radius: 20px;
    font-size: x-large;
    font-family: "Inter";
    color: white;
    padding-block: 25px;
    margin-top: 30px;
    cursor: pointer;
  }

  .feedback-container {
    width: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;

    margin-top: 100px;
  }
  .rating-container {
    height: 50px;

    display: flex;
    width: 80%;
    justify-content: space-between;
  }
  .rating-title {
    color: black;
    font-size: x-large;
    font-weight: bold;
  }
  .feedback-input {
    margin-top: 40px;
    background-color: var(--lightGray-color);
    width: 90%;
    min-height: 250px;
    border-radius: 20px;
    border: none;
    justify-content: center;
    display: flex;
  }
  .feedback-input textarea {
    width: 95%;
    height: 250px;
    font-size: large;
    direction: rtl;
    text-align: right;
    background-color: transparent;
    margin: 20px;
    border: none;
    outline: none;
  }

  /* Change placeholder color */
  .feedback-input textarea::placeholder {
    color: #888; /* Replace with your desired color */
    opacity: 1; /* Ensure full opacity */
  }
  .button-container {
    justify-content: center;
    display: flex;
    width: 70%;
    margin-top: 50px;
  }
  .button-container button {
    color: white;
    background-color: var(--primary-color);
    font-size: large;
    font-family: "Yekan";
    padding: 20px;
    padding-inline: 65px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
  }
  .more-products-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 100px;
    margin-top: 50px;
  }

  .more-products-title-container {
    display: flex;
    justify-content: right;
    align-items: center;
    width: 80%;
  }
  .more-products-title-container p {
    color: black;
    font-size: x-large;
    font-weight: bold;
  }

  .list-container {
    background-color: white;
    width: 100%;
    direction: rtl;
    justify-content: center;
    align-items: center;
    padding-left: 8%;
    padding-right: 8%;
    box-sizing: border-box;
  }
  .list-container div {
    display: flex;
    overflow-x: auto;

    /* Firefox */
    scrollbar-width: thin; /* "thin" | "auto" | "none" */
    scrollbar-color: var(--primary-color) transparent;
  }

  /* Chrome, Edge, Safari */
  .list-container div::-webkit-scrollbar {
    height: 6px; /* horizontal scrollbar thickness */
  }

  .list-container div::-webkit-scrollbar-track {
    background: transparent;
  }

  .list-container div::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
  }

  .list-container div::-webkit-scrollbar-button {
    display: none; /* hides arrows */
  }

  .list-item-container {
    min-width: 250px;
    background: white;
    border: none;

    padding: 1rem;
    text-align: center;
    flex: 0 0 auto;
    font-size: 1.1rem;
    height: auto;
    flex-direction: column;
    align-items: center;
    margin-inline: 20px;
  }
  .list-item-container img,
  p,
  button {
    cursor: pointer;
  }

  .list-item-container > div {
    display: flex;
    justify-content: space-between;
    direction: rtl;
    padding: 0;
    margin: 0;
    width: 100%;
  }
  .item-image {
    background-color: var(--lightGray-color);

    max-width: 150px;
    aspect-ratio: 1 / 1;
    object-fit: scale-down;
    display: block;
    border-radius: 10px;
    padding: 35px;
  }
  .item-name {
    color: black;
    width: 100%;
    text-align: right;
    font-family: "Koodak";
    font-weight: bold;
    word-break: normal;
    max-width: 250px;
    white-space: normal;
    overflow: visible;
    display: block;
  }
  .category-container p {
    cursor: pointer;
    color: var(--primary-color);
    font-size: large;
    margin-inline: 5px;
  }
  .item-rating-container {
    justify-content: left;
    display: flex;
    align-items: center;
    direction: ltr;
    width: auto;
  }
  .item-rating-container img {
    width: 20px;
    padding: 0;
  }
  .item-rating-container p {
    color: black;
    font-family: "Inter";
    font-weight: bold;
    margin-right: 10px;
  }

  .item-price-container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: min-content;
  }

  .item-discount {
    color: var(--gray-color);
    text-decoration: line-through;
    font-size: large;
  }
  .item-buy {
    background-color: var(--onPrimary-color);
    border: none;
    aspect-ratio: 2/1;
    height: 50px;
    color: white;
    font-family: "Koodak";
    font-size: larger;
    border-radius: 15px;
    text-align: center;
  }
}
