body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4 !important;
  height: 100%;
  margin: 0;
  padding: 0;
}

.single-product-section {
  background-color: #f4f4f4;
  padding-top: 50px;
  padding-bottom: 50px;
}

.thumbnail {
  width: 90px;
  flex: 1 1 0; /* Dynamic expansion/contraction */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s;
  min-height: 70px; /* Minimum size if there are many images */
  max-height: 160px; /* Maximum size for 3-image optimization */
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #9135ED;
  transform: scale(1.05);
}

.image-view {
  display: flex;
  flex-direction: row;
  align-items: stretch; /* Forces main-image and thumbnails to match height */
  gap: 20px;
  height: 560px;
  background: transparent;
  margin-top: 0;
  padding-top: 0;
}

.main-image {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align to top for perfect sync with thumbnails */
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}

.img-magnifier-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
}

.product-image {
  max-width: 100%;
  max-height: 560px; /* Match the fixed height of the side strip */
  object-fit: contain;
  display: block;
}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%; /* Fill container height */
  width: 105px;
  flex-shrink: 0;
  padding-right: 5px;
}

/* Scrollbar styling */
.thumbnails::-webkit-scrollbar { width: 4px; }
.thumbnails::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.thumbnails::-webkit-scrollbar-track { background: transparent; }

/* Responsive styles */
@media (max-width: 1200px) {
  .image-view {
    flex-direction: column;
    height: auto;
    gap: 20px;
    align-items: center;
    max-height: none;
    padding: 0 10px;
  }
  .main-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    margin-bottom: 0;
  }
  .product-image {
    height: auto;
    max-height: 500px;
    width: 100%;
  }
  .thumbnails {
    flex-direction: row;
    width: 100%;
    max-width: 550px;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    padding-right: 0;
    padding-bottom: 15px;
    gap: 12px;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .thumbnails:after { content: ""; flex: 0 0 1px; }

  .thumbnail {
    flex: 0 0 calc(33.333% - 8px);
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    min-width: 100px;
    max-width: 180px;
  }
}

/* Extreme Mobile size */
@media (max-width: 576px) {
  .single-product-section {
    padding-top: 30px;
  }
  .image-view {
    padding: 0 18px;
  }
  .related-products .container {
    padding-left: 30px; /* Extra padding to reduce card width */
    padding-right: 30px;
  }
  .main-image, .thumbnails {
    max-width: 100%;
  }
  .thumbnail {
    min-width: 80px;
  }
}

.price {
  font-weight: bold;
  font-size: 1.5em;
  color: #000 !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price .old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 0.7em;
  font-weight: normal;
}

.price .new-price, .price .current-price {
  color: #000 !important;
}

.price .discount-separator {
  color: #999;
  font-size: 0.7em;
}

.price .discount-text {
  color: #28a745 !important;
  font-size: 0.7em;
}

.description {
  font-size: 0.9em;
  color: #666;
}

.line {
  border-top: 1px solid #ccc;
  margin: 15px 0;
}

.in-stock {
  color: green;
  font-weight: bold;
}

.reviews {
  margin-top: 20px;
}

.view-more-btn {
  background-color: #9135ED !important;
  color: white !important;
}


.btn-add-to-wishlist {
  background-color:transparent!important;
  color: rgb(0, 0, 0) !important;
  border: 0.5px solid rgb(170, 170, 170) !important;
}

.btn-add-to-wishlist:hover {
  background-color: #b4b4b4 !important;
  color: rgb(0, 0, 0) !important;
}

.heart{
  color: rgb(255, 113, 113) !important;
}

.card-div{
  height: 100% !important;
  transition: transform 0.2s;
 }
 .card-div:hover{
   transform: scale(1.05);
  }
 
 .card-img-half {
   height: 70% !important;
   width: auto;
   border: none; /* Remove border */
   transition: transform 0.2s;
 }
 
 .card-img-half img{
     width: 100%; /* Make the image take the full width */
     height: auto; /* Maintain aspect ratio */
     object-fit: cover;
 }
 
 .card-body-half{
   width: auto;
   height: 30% !important;
   padding: 0px !important;
 }
 
 .card:hover {
   transform: scale(1.05); /* Slight zoom effect */
 }
 
 .star-rating {
   color: #F5BF25; /* Gold color for stars */
 }
 
.price-container {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: #333 !important;
}

.price-container .old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 0.9em !important;
  font-weight: normal;
}

.price-container .new-price, .price-container .current-price {
  font-weight: bold;
  color: #000 !important;
  font-size: 1.1em !important;
}

.price-container .discount-separator {
  font-size: 0.9em;
  font-weight: bold;
  color: #999;
}

.price-container .discount-text {
  font-size: 0.9em !important;
  font-weight: 600;
  color: #28a745 !important;
}

.button-container {
  display: flex;
  justify-content: space-between; /* Ensure buttons are spaced out evenly */
  align-items: center; /* Center items vertically */
  margin-top: 10px;
  width: 100%; /* Make sure the container is full width */
}

.view-more-btn{
  background-color: #9135ED;
  color: white;
}

.view-more-btn :hover{
  background-color: #ffffff;
  color: #742bbd;
  padding: 5px;
}

.card-link {
  text-decoration: none !important; /* Remove underline */
  color: inherit !important; /* Inherit text color */
}

.card-link:hover {
  color: #9135ED !important; /* Change color on hover */
}

.some {
  flex: 1; /* Allow buttons to take equal width */
  padding: 10px; /* Adjust padding for uniformity */
  color: white;
  text-align: center;
  text-decoration: none;
  margin: 0 5px; /* Add side margin for spacing */
}


.this-month {
  display: flex;
  flex-direction: column;
  align-items:flex-start;
  
  margin: 1rem 0;
}
.this-month-square {
  width: 20px;
  height: 25px;
  background-color: #9135ED; /* Adjust color as needed */
  margin-right: 10px;
  border-radius: 5px;
}
.this-month-box{
display: flex;
flex-direction: row;
justify-content: space-between;
}

.btn-add-to-carts:hover{
  background-color: #9135ED !important;
  border: none;
}

.star-rating i{
  display: inline;
}

.star-rating p{
  display: inline;
}

.cart-cart:hover{
  background-color: #454242 !important;
}
.buy-buy:hover{
  background-color: #742cbb !important;
}

/* Responsive styles */
@media(max-width: 990px) {
  .left-side-div {
    margin-bottom: 30px;
  }
}
@media(max-width: 770px) {
  .button-container a {
    font-size: 12px;
  }
}
