#upper-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 98%;
  /* height: 25vw; */
  height: 52px;
  /* max-height: 60px; */
  margin: 0px auto;
  background-color: var(--light3);
  border-radius: 0px 0px 20px 25px;
  padding: 0px 10px 0px 10px;
  position: relative;
}

#upper-section img {
  width: 45px;
  margin-right: 10px;
}

.product-details-card {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
  max-width: 900px;
  margin: 20px auto;
  direction: rtl; /* For Arabic layout */
}

.product-image {
  /* flex: 1 1 300px; */
  /* text-align: center; */
  margin: 5px auto;
  /* width: 80%; */
  max-width: 512px;
  /* margin-top: 10px; */
  /* background-color: var(--dark3); */
  border-radius: 0px 0px 50px 50px;
  /* margin-top: -40px; */
  /* opacity: 0.3; */
  z-index: 10;
}

.product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-info {
  /* flex: 2 1 500px; */
  padding: 50px 20px 10px;
  /* background-color: var(--light3); */
  margin-top: -50px;
  /* width: 100%; */
  /* height: 100%; */
  /* margin-bottom: 35px; */
  /* border-radius: 30px 30px 0px 0px; */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info #p-name,
.product-info .price {
  text-align: center;
  direction: rtl;
  /* display: none; */
  margin-top: 8px;
  font-weight: bold;
}

hr {
  width: 88%;
  margin: 10px auto;
  color: var(--primaryDark);
}

.description {
  text-align: right;
  font-size: 14px;
}

#add-to-cart-btn {
  margin: 10px auto;
  display: block;
}

/* Fade-in animation */
.product-details {
  opacity: 0;
  /* transform: translateY(15px); */
  /* transition: opacity 0.4s ease, transform 1s ease; */
}
.product-details.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Layout - Mobile First */
.product-details {
  width: 100%;
  margin: 0px auto;
  /* padding: 15px; */
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
  /* border-radius: 8px; */
  /* background: var(--light2); */
  /* display: none; */
  /* flex-direction: column; */
  /* gap: 15px; */
  position: relative;
  /* height: 100vh; */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-details img {
  width: 80%;
  height: 100%;
  border-radius: 50%;
  /* margin-top: 30px; */
  margin: 0px auto;
  display: block;
  object-fit: fill;
  border: 1px solid var(--dark3);
}

/* Name & Price */
.product-name {
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
}
.product-price {
  font-size: 1.2rem;
  color: #27ae60;
  text-align: center;
}

/* Description */
.product-description {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* Add to Cart button */

#add-btn{
  width: 100%;
  position: fixed;
  bottom: 13px;
  right: 0px;
}

#add-to-cart {
  display: block;
  padding: 6px 30px;
  background-color: var(--successColor);
  color: white;
  text-align: center;
  border-radius: 6px;
  /* font-weight: bold; */
  text-decoration: none;
  /* transition: background-color 0.3s ease; */
  border: none;
  margin: 0px auto;
  font-size: 12px;
}

#add-to-cart:hover {
  /* background-color: #e65c00; */
}

#add-to-cart i {
  font-size: 16px;
  margin-right: 5px;
}

/* Larger Screens */
@media (min-width: 768px) {
  /* .product-details {
    flex-direction: row;
    gap: 25px;
  }
  .product-details img {
    max-width: 300px;
    flex-shrink: 0;
  }
  .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  } */
}
