/* Landing Product Details Page Styles */

.product-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 3rem;
  margin-top: 9rem;
}

.product-image-gallery {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: #fff;
  min-height: 500px;
}

.product-main-image {
  width: 100%;
  height: auto;
  min-height: 500px;
  max-height: 700px;
  object-fit: contain;
  background: #f8f9fa;
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
}

#mainImageContainer {
  position: relative;
  width: 100%;
  min-height: 500px;
  max-height: 700px;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#mainImageContainer img.product-main-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 1;
}

.product-thumbnails-container {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e9ecef;
}

.product-thumbnails {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.thumbnail-wrapper {
  position: relative;
  transition: transform 0.3s ease;
}

.thumbnail-wrapper:hover {
  transform: translateY(-3px);
}

.product-thumbnail {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid #dee2e6;
  transition: all 0.3s ease;
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-thumbnail:hover {
  border-color: #667eea;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.product-thumbnail.active {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 4px 16px rgba(102, 126, 234, 0.4);
  transform: scale(1.05);
}

.product-thumbnail.active + .thumbnail-wrapper {
  border-color: #667eea;
}

.product-stats-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  z-index: 100 !important; /* Lower than navbar (typically 1030-1050) */
}

.product-stats-card.sticky-top {
  position: sticky;
  top: 20px;
  z-index: 100 !important; /* Ensure it doesn't overlap navbar */
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-stars {
  color: #ffc107;
  font-size: 1.5rem;
}

.review-card {
  border-left: 3px solid #667eea;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

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

.review-date {
  font-size: 0.85rem;
  color: #6c757d;
}

.spec-item {
  padding: 0.75rem;
  border-bottom: 1px solid #e9ecef;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: #495057;
  min-width: 150px;
}

.spec-value {
  color: #6c757d;
}

/* Professional Button Styling */
.action-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  font-weight: 600;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.action-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-btn i {
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.action-btn:hover i {
  transform: scale(1.1);
}

.action-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn-primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

/* Buy Now Button - Professional Green */
.action-btn-buy-now {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  background-color: #28a745 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

.action-btn-buy-now:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea080 100%) !important;
  background-color: #218838 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5) !important;
  transform: translateY(-2px);
}

/* Disabled Button Style */
.action-btn-disabled {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
  background-color: #6c757d !important;
  color: #ffffff !important;
  border: none !important;
  opacity: 0.6;
  cursor: not-allowed !important;
}

.action-btn:disabled,
.action-btn[style*="pointer-events:none"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.engagement-btn {
  min-width: 100%;
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-width: 2px;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.engagement-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.engagement-btn:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.engagement-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.engagement-btn i {
  transition: transform 0.3s ease;
}

.engagement-btn:hover:not(:disabled) i {
  transform: scale(1.1);
}

.btn-like {
  border-color: #dc3545;
  color: #dc3545;
  background: transparent;
}

.btn-like:hover:not(:disabled) {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.btn-favorite {
  border-color: #ffc107;
  color: #ffc107;
  background: transparent;
}

.btn-favorite:hover:not(:disabled) {
  background-color: #ffc107;
  color: #212529;
  border-color: #ffc107;
}

.btn-request-quote {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  text-decoration: none;
}

.btn-request-quote:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.feature-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

/* Mobile Optimizations */
@media (max-width: 991px) {
  /* Remove sticky positioning on mobile */
  .product-stats-card.sticky-top {
    position: relative !important;
    top: 0 !important;
  }
  
  /* Reorder sidebar to appear first on mobile */
  .product-details-row {
    display: flex;
    flex-direction: column;
  }
  
  .product-details-row > .col-lg-4 {
    order: -1; /* Move sidebar to top on mobile */
    margin-bottom: 2rem;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  .product-details-row > .col-lg-8 {
    order: 1; /* Main content below sidebar */
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  /* Hero section mobile optimization */
  .product-hero {
    padding: 2rem 0 !important;
  }
  
  .product-hero .row {
    flex-direction: column;
  }
  
  .product-hero .col-lg-8 {
    margin-bottom: 1.5rem;
  }
  
  .product-hero .col-lg-4 {
    text-align: center !important;
  }
  
  .product-hero .d-flex {
    flex-wrap: wrap;
    gap: 1rem !important;
    justify-content: center;
  }
  
  .product-hero .d-flex > div {
    flex: 0 0 auto;
    min-width: auto;
  }
  
  /* Reduce padding on mobile */
  .product-stats-card {
    padding: 1.25rem;
  }
  
  /* Optimize button spacing */
  .d-grid.gap-3 {
    gap: 0.75rem !important;
  }
  
  /* Product images mobile */
  .product-image-gallery {
    margin-bottom: 1.5rem;
  }
  
  .product-thumbnails {
    gap: 0.5rem !important;
  }
  
  /* Stats row mobile */
  .row.text-center .col-6 {
    padding: 0.75rem;
  }
  
  /* Product info list mobile */
  .list-unstyled li {
    margin-bottom: 0.75rem !important;
  }
  
  /* Section spacing mobile */
  .section_space {
    padding: 2rem 0 !important;
  }
  
  /* Card spacing mobile */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Review cards mobile */
  .review-card {
    padding: 1rem !important;
  }
}

@media (max-width: 768px) {
  /* Further mobile optimizations */
  .product-hero {
    padding: 1.5rem 0 !important;
  }
  
  .product-hero h1 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }
  
  .product-hero .lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem !important;
  }
  
  .product-hero .d-flex {
    gap: 0.75rem !important;
    font-size: 0.9rem;
  }
  
  .product-stats-card {
    padding: 1rem;
    border-radius: 10px;
  }
  
  .action-btn,
  .engagement-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  /* Stack stats vertically on very small screens */
  .row.text-center .col-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 1rem;
  }
  
  /* Badge spacing mobile */
  .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }
  
  /* Price display mobile */
  .display-5 {
    font-size: 2rem !important;
  }
  
  /* Spec items mobile */
  .spec-item {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem;
  }
  
  .spec-label {
    min-width: auto !important;
  }
}

@media (max-width: 576px) {
  /* Extra small devices */
  .product-hero h1 {
    font-size: 1.5rem !important;
  }
  
  .product-stats-card {
    padding: 0.875rem;
  }
  
  .action-btn,
  .engagement-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .stat-value {
    font-size: 1.5rem !important;
  }
  
  .stat-label {
    font-size: 0.8rem !important;
  }
}

