/* General Styles */
body {
  background-color: #f4f4f4;
  color: #333;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
  color: #333;
  font-size: 14px;
  margin-bottom: 20px;
  padding: 10px 0;
}

.breadcrumbs a {
  color: #DB4437;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Product Details */
.product-details {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

/* Amazon-style Zoom Functionality */
.product-image-container {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.main-image-wrapper {
  position: relative;
  cursor: crosshair;
  width: 100%;
  max-width: 450px;
}

.main-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.zoom-lens {
  position: absolute;
  border: 1px solid #ccc;
  background-color: rgba(255, 255, 255, 0.4);
  width: 175px;
  height: 175px;
  display: none;
  cursor: crosshair;
  pointer-events: none;
}

.zoom-result {
  position: absolute;
  top: 0;
  left: 105%;
  width: 450px;
  height: 450px;
  border: 1px solid #e0e0e0;
  background-repeat: no-repeat;
  background-color: #fff;
  border-radius: 8px;
  display: none;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
  max-width: 450px;
}

.image-thumbnails a {
  border: 2px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.image-thumbnails a:hover,
.image-thumbnails a.active {
  border-color: #DB4437;
}

.image-thumbnails img {
  width: 75px;
  height: 75px;
  object-fit: cover;
}

.product-info {
  flex: 2;
  min-width: 300px;
}

.product-info h1 {
  color: #DB4437;
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 15px;
}

.product-info p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Price & Discount */
.price-container {
  margin: 20px 0;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.regular-price {
  color: #777;
  font-size: 16px;
  text-decoration: line-through;
  margin-bottom: 5px;
}

.price {
  font-size: 24px;
  font-weight: bold;
  color: #FF4B2B;
  margin: 5px 0;
}

.discount {
  font-size: 16px;
  font-weight: normal;
  color: #FF4B2B;
  margin-left: 10px;
  background: rgba(255, 75, 43, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.original-price {
  color: #777;
  font-size: 14px;
  margin-top: 5px;
}

/* Stock & Rating */
.stock {
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0;
}

.in-stock {
  color: #28a745;
}

.out-of-stock {
  color: #dc3545;
}

.rating {
  color: #FFCC00;
  font-size: 18px;
  margin: 15px 0;
}

/* Add to Cart Button */
#addToCartBtn {
  padding: 12px 25px;
  background: linear-gradient(to right, #FF4B2B, #FF416C);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#addToCartBtn:hover:not(:disabled) {
  opacity: 0.9;
}

#addToCartBtn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Wishlist Button */
#wishlistBtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 25px;
  background: linear-gradient(to right, #FF4B2B, #FF416C);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#wishlistBtn:hover:not(:disabled) {
  opacity: 0.9;
}

#wishlistBtn i {
  font-size: 16px;
}

#wishlistBtn.active {
  background: linear-gradient(to right, #DB4437, #FF416C);
}

@keyframes wishlistPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

#wishlistBtn.animate i {
  animation: wishlistPulse 0.5s ease;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.quantity-selector label {
  margin-right: 15px;
  font-weight: bold;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #DB4437;
  border-radius: 4px;
  overflow: hidden;
}

.quantity-btn {
  width: 35px;
  height: 35px;
  background: #FF4B2B;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: 0.3s;
}

.quantity-btn:hover {
  background: #DB4437;
}

#quantity {
  width: 60px;
  height: 35px;
  text-align: center;
  border: none;
  border-left: 1px solid #DB4437;
  border-right: 1px solid #DB4437;
  font-size: 16px;
}

/* Removing Number Input Arrows */
#quantity::-webkit-inner-spin-button,
#quantity::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Related Products */
.related-products-container {
  margin-top: 40px;
}

.related-products-container h3 {
  color: #DB4437;
  font-size: 22px;
  margin-bottom: 20px;
}

.related-products-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.related-product {
  background: #fff;
  padding: 15px;
  padding-bottom: 50px;
  border-radius: 8px;
  text-align: center;
  width: calc(33.333% - 20px);
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  min-height: 320px;
  position: relative;
}

.related-product:hover {
  transform: translateY(-5px);
}

.related-product a {
  text-decoration: none;
  color: inherit;
}

.related-product img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.related-product h4 {
  font-size: 16px;
  color: #DB4437;
  margin: 10px 0;
}

.related-product p {
  font-size: 16px;
  color: #FF4B2B;
  font-weight: bold;
  margin: 5px 0;
}

/* Related Product Actions */
.related-product-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  padding: 0 10px;
}

.related-product .btn {
  padding: 8px 15px;
  font-size: 14px;
  background: linear-gradient(to right, #FF4B2B, #FF416C);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.related-product .btn:hover:not(:disabled) {
  opacity: 0.9;
}

.related-product .btn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

.related-wishlist-btn.active {
  background: linear-gradient(to right, #DB4437, #FF416C);
}
.price-container {
  margin: 10px 0;
}

.regular-price {
  color: #000000; /* Black color for regular price */
}

.strikethrough {
  text-decoration: line-through;
  margin-right: 8px;
  color: #000000; /* Black color for struck-through regular price */
}

.sales-price {
  color: #ff0000; /* Red color for sales price */
  font-weight: bold;
  margin-left: 8px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .zoom-result {
    display: none !important;
  }

  .main-image-wrapper {
    cursor: default;
  }
}

@media (max-width: 768px) {
  .product-details {
    flex-direction: column;
  }

  .related-product {
    width: 100%;
  }
}