.product-page {
  margin: 20px;
}

.product-details-container {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.image-slider-container {
  flex: 1;
}

.image-slider-container img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 20px;
}

.product-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-name {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.product-description h3,
.product-rating h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.product-description p {
  font-size: 1rem;
  color: #666;
}

.product-rating span {
  font-size: 1.1rem;
  color: #f4a261;
}

.product-pricing {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.product-pricing .original-price {
  font-size: 1.1rem;
  color: #888;
  text-decoration: line-through;
}

.product-pricing .discounted-price {
  font-size: 1.3rem;
  color: #d32f2f;
  font-weight: bold;
}

.product-reviews {
  margin-top: 40px;
}

.review-card {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.review-card .review-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
}

.review-card .review-rating,
.review-card .review-author {
  font-size: 0.9rem;
  color: #888;
}

.add-review-container {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-bottom: 5rem;
}

.add-review-container h4 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
}

.add-review-container form textarea,
.add-review-container form input {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.add-review-container form button {
  padding: 10px 20px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.add-review-container form button:hover {
  background-color: #b71c1c;
}

/* Image Slider Styling */
.image-slider-container {
  position: relative;
  width: 100%;
  max-width: 500px; /* Reduced size */
  padding: 1rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px; /* Softer rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Slightly heavier shadow for depth */
  background-color: #fff; /* White background */
}

.image-slider-container img {
  width: 100%;
  height: 300px; /* Smaller height for a more compact look */
  object-fit: contain; /* Keep images sharp and well-cropped */
  display: none;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out; /* Smooth transition for zoom effect */
}

.image-slider-container .active {
  display: block;
  transform: scale(1.05); /* Slight zoom effect on active image */
}

/* Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.2rem; /* Slightly smaller arrow */
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  height: 2.5rem;
  width: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.7); /* Darker hover effect */
}

.slider-arrow-left {
  left: 20px; /* Positioning for the left arrow */
}

.slider-arrow-right {
  right: 20px; /* Positioning for the right arrow */
}

/* Optional: Dots Navigation */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.slider-dots span {
  width: 10px; /* Smaller dot size */
  height: 10px;
  border-radius: 50%;
  background-color: #bbb;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.slider-dots span.active {
  background-color: #d32f2f; /* Red dot when active */
}

.slider-dots span:hover {
  background-color: #f4a261; /* Warm color on hover */
}

/* Add to Cart Button Styling */
.add-to-cart-container {
  display: flex;
  justify-content: flex-start;
}

.add-to-cart-button {
  padding: 9px 17px;
  background-color: #d32f2f;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-to-cart-button:hover {
  background-color: #b71c1c;
  transform: scale(1.05); /* Slight zoom effect on hover */
}

.add-to-cart-button:active {
  background-color: #9a1c1c;
}

.add-to-cart-button:focus {
  outline: none;
}

/* Reviews Section */
.product-reviews {
  margin-top: 40px;
  background-color: #f9f9f9;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-reviews h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.review-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1rem;
}

.review-author-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author-photo {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.review-author {
  font-weight: bold;
  color: #333;
}

.review-rating {
  font-weight: 600;
  color: #f4a261;
}

.review-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.review-date {
  font-size: 0.9rem;
  color: #888;
  text-align: right;
  margin-top: 10px;
}

form {
  display: flex;
  flex-direction: column;
}

.clrspan {
  display: flex;
  text-transform: capitalize;
}
#colormark {
  width: 19px;
  margin-left: 0.5rem;
  border-radius: 50%;
  filter: contrast(0.9);
}

/* Optional: Add some responsiveness for smaller screens */
@media (max-width: 768px) {
  .review-card {
    padding: 15px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-rating {
    margin-top: 10px;
  }
}

@media (max-width: 650px) {
  .product-details-container {
    flex-direction: column;
  }
  .image-slider-container {
    width: 95%;
    margin-left: -5px;
  }
  .image-slider-container img {
    height: 200px;
  }
}
