/**
 * Alhadil Beauty - Product Page Styles
 * 
 * Modern styling for the product detail page with clean, consistent design.
 */

:root {
  /* Color variables - matching the global variables */
  --primary-color: #3a0d45;
  --secondary-color: #d28599;
  --secondary-hover: #c07385;
  --text-color-light: #fff;
  --border-color: rgba(255, 255, 255, 0.1);
  --bg-light: rgba(255, 255, 255, 0.05);
  --bg-medium: rgba(255, 255, 255, 0.1);
  --bg-dark: rgba(0, 0, 0, 0.5);
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;

  /* Transition variables */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border radius */
  --radius-small: 5px;
  --radius-medium: 10px;
  --radius-large: 20px;
  --radius-round: 50%;
}

/* Body background and reset */
body {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

/* Breadcrumb */
.breadcrumb-area {
  background-color: var(--bg-light);
  padding: 15px 0;
  margin-bottom: 30px;
}

.breadcrumb {
  background: transparent;
  margin-bottom: 0;
  padding: 0;
}

.breadcrumb-item {
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: var(--secondary-color);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Alert Messages */
.alert {
  border-radius: var(--radius-medium);
  padding: 15px 20px;
  margin-bottom: 20px;
  animation: fadeInDown 0.4s ease;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.2);
  color: var(--success-color);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: var(--danger-color);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Details Section */
.product-details-section {
  padding: 0 0 80px;
}

.product-detail-main {
  margin-bottom: 40px;
}

/* Product Gallery & Slider */
.product-gallery {
  position: relative;
  margin-bottom: 30px;
}

/* Product Slider Container */
.product-slider-container {
  position: relative;
  background-color: var(--bg-light);
  border-radius: var(--radius-medium);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
}

/* Main Product Slider */
.product-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Fixed product slide display */
.product-slide {
  padding: 20px;
  height: 500px;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-slide.active {
  display: flex;
  opacity: 1;
}

.product-slide img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Slider Navigation Arrows */
.slider-arrows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background-color: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-light);
  font-size: 16px;
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition-normal);
  z-index: 5;
  backdrop-filter: blur(10px);
}

.slider-arrow:hover {
  background-color: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slider-arrow:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 134, 152, 0.3);
}

.slider-prev {
  left: 15px;
}

.slider-next {
  right: 15px;
}

/* Hide arrows when only 1 image */
.slider-arrow[disabled] {
  display: none;
}

/* Product Thumbnails */
.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 5px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.product-thumbnails::-webkit-scrollbar {
  height: 5px;
}

.product-thumbnails::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.product-thumbnails::-webkit-scrollbar-thumb {
  background-color: var(--secondary-color);
  border-radius: var(--radius-large);
}

.product-thumbnail {
  flex: 0 0 80px;
  height: 80px;
  border-radius: var(--radius-small);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-color);
  transition: all var(--transition-normal);
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
}

.product-thumbnail.active {
  border-color: var(--secondary-color);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(212, 134, 152, 0.3);
}

.product-thumbnail:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.product-thumbnail img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Hide thumbnails when only 1 image */
.product-thumbnails.single-image {
  display: none;
}

.product-no-image {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  border-radius: var(--radius-medium);
  border: 1px solid var(--border-color);
}

.product-no-image svg {
  width: 100%;
  height: 100%;
}

/* Product Labels */
.product-labels {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.label {
  padding: 5px 12px;
  border-radius: var(--radius-large);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.label-new {
  background-color: var(--info-color);
  color: var(--text-color-light);
}

.label-sale {
  background-color: var(--danger-color);
  color: var(--text-color-light);
}

.label-bestseller {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
}

/* Product Info */
.product-info {
  padding: 15px 0;
}

.product-title {
  color: var(--text-color-light);
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.stars {
  color: var(--warning-color);
  font-size: 1rem;
  margin-right: 10px;
}

.rating-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.rating-count:hover {
  color: var(--secondary-color);
}

/* Product Price */
.product-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.price,
.price-new {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.price-old {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}

.discount-percentage {
  background-color: var(--danger-color);
  color: var(--text-color-light);
  padding: 3px 8px;
  border-radius: var(--radius-large);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Short Description */
.product-short-desc {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.product-short-desc p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Product Colors Section */
.product-colors {
  margin-bottom: 20px;
}

.product-colors h4 {
  color: var(--text-color-light);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Product Color Swatches */
.product-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.product-color-swatch {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-round);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.product-color-swatch::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: inherit;
  border-radius: inherit;
  z-index: -1;
}

.product-color-swatch.active {
  border-color: var(--secondary-color);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(212, 134, 152, 0.2);
}

.product-color-swatch:hover {
  transform: scale(1.1);
}

.product-color-swatch:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 134, 152, 0.3);
}

.product-color-swatch i {
  color: #fff;
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  transition: opacity var(--transition-fast);
  font-size: 14px;
}

.product-color-swatch.active i {
  opacity: 1;
}

/* Selected Color Name */
.selected-color-name {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-style: italic;
}

/* Product Variants */
.product-variants {
  margin-bottom: 20px;
}

.product-variants h4 {
  color: var(--text-color-light);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Variant Options */
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.variant-option {
  padding: 8px 20px;
  border-radius: var(--radius-large);
  background-color: var(--bg-light);
  border: 2px solid var(--border-color);
  color: var(--text-color-light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-weight: 500;
}

.variant-option.active {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-color-light);
  box-shadow: 0 4px 12px rgba(210, 133, 153, 0.3);
}

.variant-option:hover:not(.active) {
  background-color: var(--bg-medium);
  border-color: var(--secondary-color);
}

.variant-option:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 134, 152, 0.3);
}

/* Quantity Controls */
.product-quantity {
  margin-bottom: 25px;
}

.product-quantity h4 {
  color: var(--text-color-light);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-large);
  overflow: hidden;
  border: 2px solid var(--border-color);
  background-color: var(--bg-light);
}

.quantity-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-color-light);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  position: relative;
}

.quantity-btn:hover {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-btn:focus {
  outline: none;
  background-color: rgba(210, 133, 153, 0.2);
}

.quantity-selector input {
  width: 60px;
  height: 45px;
  text-align: center;
  border: none;
  background-color: transparent;
  color: var(--text-color-light);
  font-size: 1.1rem;
  font-weight: 600;
}

.quantity-selector input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Remove spinner buttons */
.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-selector input[type="number"] {
  -moz-appearance: textfield;
}

/* Stock Status */
.stock-status {
  font-size: 0.9rem;
}

.in-stock {
  color: var(--success-color);
}

.out-of-stock {
  color: var(--danger-color);
}

/* Product Action Buttons */
.product-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

/* Add to Cart Button */
.btn-add-to-cart {
  flex: 1;
  padding: 14px 20px;
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-normal);
  border-radius: var(--radius-large);
  position: relative;
  overflow: hidden;
}

.btn-add-to-cart:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-add-to-cart:hover:not([disabled]) {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 133, 153, 0.4);
}

.btn-add-to-cart:hover:not([disabled]):before {
  left: 100%;
}

.btn-add-to-cart:active:not([disabled]) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(210, 133, 153, 0.4);
}

.btn-add-to-cart:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 134, 152, 0.3);
}

.btn-add-to-cart[disabled] {
  background-color: var(--bg-medium);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  box-shadow: none;
}

/* Add to Wishlist Button */
.btn-add-to-wishlist {
  width: 52px;
  height: 52px;
  background-color: var(--bg-light);
  color: var(--text-color-light);
  border: 2px solid var(--border-color);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  border-radius: var(--radius-round);
  flex-shrink: 0;
}

.btn-add-to-wishlist:hover {
  background-color: rgba(210, 133, 153, 0.2);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 133, 153, 0.3);
}

.btn-add-to-wishlist:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(210, 133, 153, 0.3);
}

.btn-add-to-wishlist:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 134, 152, 0.3);
}

.btn-add-to-wishlist.in-wishlist {
  color: var(--danger-color);
  background-color: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
}

.btn-add-to-wishlist.in-wishlist:hover {
  background-color: rgba(220, 53, 69, 0.15);
}

/* Wishlist heart animation */
@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

.btn-add-to-wishlist.in-wishlist i {
  animation: heartBeat 1s;
}

/* Product Meta */
.product-meta {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.meta-item {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.meta-label {
  color: var(--text-color-light);
  font-weight: 600;
  margin-right: 5px;
}

.meta-value {
  color: rgba(255, 255, 255, 0.7);
}

.meta-value a {
  color: var(--secondary-color);
  transition: color var(--transition-normal);
}

.meta-value a:hover {
  color: var(--secondary-hover);
}

/* Social Share */
.product-share {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-share span {
  color: var(--text-color-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background-color: var(--bg-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-light);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(210, 133, 153, 0.3);
}

.social-links a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 134, 152, 0.3);
}

/* Reviews Section */
.product-reviews-section {
  margin-top: 50px;
  margin-bottom: 30px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  color: var(--text-color-light);
  font-size: 1.8rem;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.reviews-container {
  background-color: var(--bg-light);
  border-radius: var(--radius-medium);
  padding: 25px;
  border: 1px solid var(--border-color);
}

.review-item {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-round);
  overflow: hidden;
  background-color: var(--bg-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-light);
  font-size: 1.2rem;
  font-weight: 600;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-details h5 {
  color: var(--text-color-light);
  margin-bottom: 5px;
  font-size: 1rem;
}

.review-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  color: var(--success-color);
  font-size: 0.8rem;
  gap: 5px;
}

.review-rating {
  display: flex;
  color: var(--warning-color);
}

.review-title {
  color: var(--text-color-light);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.review-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Related Products Section */
.related-products-section {
  margin-top: 60px;
  padding: 0 45px;
  position: relative;
}

/* Related Products Slider */
.related-products-slider {
  position: relative;
  overflow: hidden;
}

.related-products-slider .row {
  transition: transform 0.5s ease;
  flex-wrap: nowrap;
}

.related-products-slider .col-lg-3,
.related-products-slider .col-md-4,
.related-products-slider .col-sm-6 {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 0 10px;
  transition: transform 0.5s ease;
}

/* Related Products navigation arrows */
.related-carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.related-carousel-arrow:hover {
  background-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.related-carousel-arrow[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.related-carousel-arrow[disabled]:hover {
  transform: translateY(-50%);
}

.related-carousel-arrow.prev {
  left: 0px;
}

.related-carousel-arrow.next {
  right: 0px;
}

/* Style for Product Cards in Related Products */
.related-products-section .product-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  position: relative;
}

.related-products-section .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-products-section .product-image {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
}

.related-products-section .product-image img,
.related-products-section .product-image svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.related-products-section .product-card:hover .product-image img {
  transform: scale(1.05);
}

.related-products-section .product-labels {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.related-products-section .label {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.related-products-section .product-info {
  padding: 15px;
}

.related-products-section .product-title {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-products-section .product-title a {
  color: var(--text-color-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-products-section .product-title a:hover {
  color: var(--secondary-color);
}

.related-products-section .product-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.related-products-section .price,
.related-products-section .price-new {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.related-products-section .price-old {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}

.related-products-section .product-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index: 5;
}

.related-products-section .product-card:hover .product-actions {
  bottom: 0;
}

.related-products-section .action-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.related-products-section .action-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 991px) {
  .product-title {
    font-size: 1.7rem;
  }

  .product-slide {
    height: 400px;
  }

  .product-buttons {
    flex-direction: row;
    gap: 15px;
  }

  .btn-add-to-wishlist {
    width: 52px;
    height: 52px;
  }

  .related-carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .related-products-section {
    padding: 0 35px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .product-slide {
    height: 350px;
    padding: 15px;
  }

  .product-thumbnail {
    flex: 0 0 60px;
    height: 60px;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .review-header {
    flex-direction: column;
    gap: 15px;
  }

  .related-carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .related-products-section {
    padding: 0 30px;
  }

  .quantity-selector {
    border-radius: var(--radius-medium);
  }

  .quantity-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .quantity-selector input {
    width: 50px;
    height: 40px;
    font-size: 1rem;
  }

  .product-buttons {
    flex-direction: row;
    gap: 12px;
  }

  .btn-add-to-wishlist {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .product-color-swatch {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 575px) {
  .product-slide {
    height: 300px;
    padding: 10px;
  }

  .product-thumbnail {
    flex: 0 0 50px;
    height: 50px;
  }

  .product-title {
    font-size: 1.3rem;
  }

  .product-price .price,
  .product-price .price-new {
    font-size: 1.5rem;
  }

  .slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .related-products-section .product-card {
    margin-bottom: 15px;
  }

  .related-carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .related-products-section {
    padding: 0 25px;
  }

  .btn-add-to-cart {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .product-buttons {
    flex-direction: row;
    gap: 10px;
  }

  .btn-add-to-wishlist {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .product-labels .label {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .social-links a {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .product-color-swatch {
    width: 40px;
    height: 40px;
  }

  .product-color-swatch i {
    font-size: 12px;
  }
}

/* RTL Support */
html[dir="rtl"] .slider-prev {
  right: 15px;
  left: auto;
}

html[dir="rtl"] .slider-next {
  left: 15px;
  right: auto;
}

/* Flip the arrow icons in RTL mode */
html[dir="rtl"] .slider-arrow i {
  transform: scaleX(-1);
}

html[dir="rtl"] .product-labels {
  left: auto;
  right: 15px;
}

html[dir="rtl"] .meta-label {
  margin-right: 0;
  margin-left: 5px;
}

html[dir="rtl"] .stars {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .related-carousel-arrow.prev {
  right: 0;
  left: auto;
}

html[dir="rtl"] .related-carousel-arrow.next {
  left: 0;
  right: auto;
}

/* Flip the related carousel arrow icons in RTL mode */
html[dir="rtl"] .related-carousel-arrow i {
  transform: scaleX(-1);
}

html[dir="rtl"] .quantity-controls {
  flex-direction: row-reverse;
}

html[dir="rtl"] .product-buttons {
  flex-direction: row-reverse;
}

html[dir="rtl"] .social-links {
  flex-direction: row-reverse;
}
