#container {
  width: 85%;
  /* border: 1px solid red; */
  display: flex;
  margin: auto;
  justify-content: space-between;
}

/* left side content div  */
.left_side_content {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.left_side_content .product-title {
  font-size: 20px;
}

.left_side_content .product-subtitle {
  font-size: 22px;
}

.left_side_content .product-desc,
.left_side_content .product-fulldesc {
  font-size: 16px;
}

.left_side_content ul {
  list-style-type: initial !important;
  padding: 0 0 0 20px !important;
}

.left_side_content ol {
  padding: 0 0 0 20px !important;
}

.left_side_content .product-btn {
  font-size: 14px;
}

.left_side_content>p {
  font-size: 0.8em;
  line-height: 1.5em;
  margin-top: 1.5em;
}

.left_side_content>ul li {
  font-size: 0.8em;
  line-height: 1.5em;
  margin-top: 5px;
}

.left_side_content #toggleButton {
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 0;
}

.left_side_content .hidden {
  margin-top: 0;
  display: none;
}

.left_side_content> :nth-child(2) {
  margin-top: 0.5em;
  font-weight: 400;
}

.left_side_content>p {
  font-size: 0.8em;
  line-height: 1.5em;
  margin-top: 1.5em;
}

.left_side_content> :nth-child(5) {
  text-decoration: none;
  cursor: pointer;
}

.left_side_content .product-fulldesc {
  font-size: 16px;
  margin-top: 20px;
  text-decoration: none;
}

/* Read More/Read Less styles for product description */
.product-fulldesc-wrapper {
  position: relative;
  margin-bottom: 1em;
}

.product-fulldesc {
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 4.5em;
  /* ~3 lines, adjust as needed */
  line-height: 1.5em;
  position: relative;
}

.product-fulldesc.expanded {
  max-height: 1000px;
  /* Large enough for most content */
}

.product-fulldesc.collapsed {
  max-height: 4.5em;
}

.read-more-btn {
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  font-size: 0.85em;
  padding: 0;
  margin-top: 0.5em;
  text-decoration: none !important;
  transition: color 0.2s;
  text-align: left;
  display: block;
}

.read-more-btn:hover,
.read-more-btn:focus,
.read-more-btn:active {
  color: #333;
  text-decoration: none !important;
}

/* middle image divv  */
.image_div {
  width: 40%;
  height: 90vh;
  overflow-x: hidden;
  margin-bottom: 20px;
}

/* Custom scrollbar styles */
.image_div::-webkit-scrollbar {
  width: 12px;
  /* Width of the scrollbar */
}

.image_div::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Background of the scrollbar track */
  border-radius: 10px;
}

.image_div::-webkit-scrollbar-thumb {
  background: #888;
  /* Color of the scrollbar thumb */
  border-radius: 10px;
  border: 3px solid #f1f1f1;
  /* Space around the thumb */
}

.image_div::-webkit-scrollbar-thumb:hover {
  background: #555;
  /* Color of the scrollbar thumb when hovered */
}

.image_div>img {
  width: 100%;
  height: 90vh;
  object-fit: cover;
}

/* right side product information div   */
.product_info_rightSide {
  width: 22%;
  /* border: 1px solid teal; */
  padding-top: 1.5em;
}

.product_name {
  display: flex;
  justify-content: space-between;
  /* border: 1px solid red; */
}

.product_name>h2 {
  font-size: 1.2em;
  font-weight: bold;
}

.product_name>img {
  width: 5%;
  height: 1em;
  margin-top: 0.2em;
}

.product_info_rightSide>p {
  font-size: 0.8em;
}

.product_info_rightSide> :nth-child(2) {
  line-height: 1.4em;
  margin-top: 1.5em;
  margin-bottom: 4em;
}

.product_info_rightSide> :nth-child(4) {
  /* border: 1px solid red; */
  padding-top: 1em;
  padding-bottom: 2em;
}

.sizes {
  line-height: 2em;
  border-bottom: 1px solid black;
  border-top: 1px solid black;
  font-size: 0.8em;
  margin-bottom: 0.8em;
}

.sizes label {
  display: flex;
}

.sizes label p {
  width: 100%;
  margin: 0;
  /* Remove default margin */
  padding: 0.5em;
  /* Add padding for better click area */
  cursor: pointer;
}

.sizes input[type="radio"] {
  display: none;
}

.sizes input[type="radio"]+label:before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 1px solid black;
  border-radius: 50%;
  margin-right: 0.5em;
  vertical-align: middle;
}

.sizes input[type="radio"]:checked+label:before {
  background-color: black;
}

.sizes label p:hover,
.sizes label p.selected {
  background-color: #e7e6e6f5;
}

.sizeScale {
  font-size: 0.9em;
  display: flex;
  justify-content: space-between;
}

.sizeScale>p:hover {
  cursor: pointer;
}

#submit-button {
  width: fit-content;
}

button {
  margin: 0.8em 0em;
  height: 7%;
  width: 100%;
  border: none;
  background-color: black;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.product_info_rightSide> :last-child {
  margin-top: -8px;
  font-size: 10px;
  color: red;
}

.popup {
  position: absolute;
  right: 0;
  top: 0;
  width: 30%;
  background-color: white;
  height: 100vh;
  overflow: scroll;
  padding: .5em;


}

.popup img {
  width: 50%;
}

.popup button {
  padding: 1em;
  position: sticky;
  bottom: 0;
}

#popupmain>div {
  margin-bottom: 10%;
}



.popup .X {
  position: absolute;
  top: 0;
  right: 0;
}

.none {
  display: none;
}

.flex {
  display: flex;
}

.add-to-cart-button {
  font-size: 15px;
  line-height: 34px;
  /* margin-right: 10px; */
}

/* New product actions container */
.product-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

/* Styled Add to Bag button like Place Order */
.add-to-cart-button {
  width: 240px;
  background-color: rgb(53, 53, 53);
  border: none;
  color: white;
  height: 40px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: initial;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: none;
}

.add-to-cart-button:hover {
  background-color: darkgray;
}

/* Heart-shaped wishlist button */
.wishlist-heart-btn {
  width: 40px;
  height: 40px;
  background-color: white;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.wishlist-heart-btn:hover {
  border-color: #333;
}

.wishlist-heart-btn.added {
  border-color: #333;
}

.heart-icon {
  width: 24px;
  height: 24px;
  color: #333;
  transition: all 0.3s ease;
  fill: white;
}

.wishlist-heart-btn:hover .heart-icon {
  color: #333;
}

.wishlist-heart-btn.added .heart-icon {
  color: #333;
  fill: #333;
  stroke: #333;
}


.add-to-wishlist-button {
  background-color: transparent;
  color: black;
  border: 2px solid black;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  line-height: 34px;
}

.add-to-wishlist-button:hover {
  background-color: black;
  color: white;
}

.add-to-wishlist-button:disabled {
  background-color: #ccc;
  color: #666;
  border-color: #ccc;
  cursor: not-allowed;
}

#AjaxLoad_StockAssignPrice {
  margin-top: 0px !important;
}

@media (max-width:1350px) {
  .image_div {
    width: 36%;
  }
}


@media (max-width:992px) {
  .image_div {
    width: 48%;
  }

  #container {
    flex-direction: column;
    width: 89%;
  }

  .product_detail_page {
    margin-bottom: 70px !important;
  }

  .left_side_content {
    width: 100%;
    height: auto;
    margin-top: 50px;
  }

  .image_div {
    width: 100%;
    margin-top: 20px;
    height: 500px;
  }

  .image_div>img {
    width: 100%;
    height: 465px;
    margin-top: 0;
    margin-left: 0;
    object-fit: cover;
  }

  .product_info_rightSide {
    width: 100%;
  }

  .product_detail_page hr {
    display: none;
  }

  .product_info_rightSide> :nth-child(2) {
    line-height: 1.4em;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
  }

  .left_side_content .product-title {
    font-size: 22px;
  }

  .left_side_content .product-subtitle {
    font-size: 16px;
  }

  .left_side_content .product-desc,
  .left_side_content .product-fulldesc {
    font-size: 16px;
  }

  .left_side_content>p,
  .left_side_content>ul li {
    font-size: 0.9em;
  }

  .add-to-cart-button {
    font-size: 18px;
    line-height: 38px;
  }

  /* Mobile responsive for product actions */
  .product-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .add-to-cart-button {
    width: 100%;
    height: 45px;
    font-size: 16px;
  }

  .wishlist-heart-btn {
    width: 45px;
    height: 45px;
    align-self: center;
  }

  .heart-icon {
    width: 20px;
    height: 20px;
  }


  .product-actions {
    flex-direction: row !important;
    gap: 12px !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-top: 6px !important;
  }

  .add-to-cart-button {
    width: 50% !important;
    min-width: 0 !important;
    font-size: 16px !important;
    height: 45px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .wishlist-heart-btn {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .heart-icon {
    width: 28px !important;
    height: 28px !important;
  }


}

@media only screen and (min-width: 375px) and (max-width: 991px) {

  .prev,
  .next,
  .text {
    font-size: 11px;
  }

}

@media only screen and (min-width: 0px) and (max-width: 390px) {
  #bookVdo {
    transform: rotateZ(90deg);
    width: 750px;
    height: 700px;
  }

  .slideshow-container {
    width: 80%;
    /* position: relative; */
    margin-top: 10%;
    font-size: 20px;
    height: 700px;
    margin-left: 25%;
    margin-bottom: 15%;
  }

  .rightoptions p,
  #search-input {
    font-size: 8px;
  }

  #footer a {
    font-size: 13px;
  }

  /* .logo img {
    padding: 2px 0px 0px;
    display: inline;
    margin-left: 30%;
    margin-top: -71px;
    width: 40%;
  } */

  body {
    line-height: 1.5em;
  }

  .popup {
    width: 50%;
  }




  .product_info_rightSide {
    width: 100%;

  }

  .left_side_content {
    width: 100%;

  }

  .image_div {
    width: 100%;
    /* border: 1px solid green; */
  }

  #container {
    flex-direction: column
  }
}