/* Product Page Styles */
.cs_product_page_section {
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
  position: relative;
  padding-top: 120px; /* Add padding to prevent header overlap */
}

.cs_product_image_section {
  padding: 20px;
}

.cs_product_main_image {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.cs_product_main_image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Breadcrumb Navigation */
.cs_breadcrumb {
  margin-bottom: 30px;
  padding: 15px 0;
}

.cs_breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.cs_breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
  font-weight: 600;
}

.cs_breadcrumb .breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cs_breadcrumb .breadcrumb-item a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.cs_breadcrumb .breadcrumb-item.active {
  color: #495057;
  font-weight: 600;
}

/* Image Zoom Functionality */
.cs_image_zoom_container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
}

.cs_zoom_image {
  transition: transform 0.3s ease;
}

.cs_image_zoom_container:hover .cs_zoom_image {
  transform: scale(1.05);
}

.cs_zoom_tooltip {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cs_image_zoom_container:hover .cs_zoom_tooltip {
  opacity: 1;
}

.cs_zoom_tooltip i {
  margin-right: 5px;
}

/* E-commerce Style Sticky Image Section */
.cs_sticky_image {
  position: sticky;
  top: 140px; /* Increased to account for header */
  z-index: 10;
  align-self: flex-start;
  width: 100%;
}

.cs_product_details_section {
  padding: 20px 0 20px 40px;
  position: relative;
}

/* Responsive adjustments for sticky behavior */
@media (max-width: 991px) {
  .cs_sticky_image {
    position: relative;
    top: auto;
  }
  
  .cs_product_details_section {
    padding: 20px 0 20px 0;
    margin-top: 40px;
  }
}

@media (min-width: 992px) {
  /* Ensure proper scrolling behavior on desktop */
  .cs_product_page_section {
    min-height: calc(100vh - 200px);
  }
  
  .cs_sticky_image {
    height: fit-content;
    max-height: none; /* Remove max-height restriction */
    overflow: visible; /* Keep overflow visible */
  }
  
  /* Remove the gradient overlay */
  .cs_sticky_image::after {
    display: none;
  }
  
  /* Ensure proper spacing for next section */
  .cs_related_products_section {
    position: relative;
    z-index: 5;
    margin-top: 60px;
  }
}

.cs_product_category_badge {
  margin-bottom: 20px;
}

.cs_badge {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 25%, #22c55e 75%, #16a34a 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cs_product_title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 30px;
  line-height: 1.2;
}

.cs_product_subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 25px;
  font-style: italic;
}

.cs_product_info {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cs_product_specs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cs_spec_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cs_spec_item:last-child {
  border-bottom: none;
}

.cs_spec_label {
  font-weight: 600;
  color: #495057;
  min-width: 150px;
  font-size: 14px;
  text-align: left;
}

.cs_spec_value {
  color: #2c3e50;
  font-weight: 500;
  text-align: right;
}

.cs_product_description {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  margin-top: 30px;
}

.cs_product_description h3 {
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 30px 0 15px 0;
  border-bottom: 2px solid #1e40af;
  padding-bottom: 8px;
}

.cs_product_description h3:first-child {
  margin-top: 0;
}

.cs_product_description p {
  color: #495057;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 16px;
}

.cs_product_description ul, .cs_product_description ol {
  color: #495057;
  line-height: 1.7;
  margin-bottom: 20px;
  padding-left: 25px;
}

.cs_product_description li {
  margin-bottom: 8px;
}

.cs_product_description strong {
  color: #2c3e50;
  font-weight: 600;
}

.cs_product_details {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
}

.cs_detail_row {
  display: flex;
  margin-bottom: 10px;
}

.cs_detail_row:last-child {
  margin-bottom: 0;
}

.cs_detail_label {
  font-weight: 600;
  color: #495057;
  min-width: 120px;
}

.cs_detail_value {
  color: #6c757d;
  flex: 1;
}

.cs_disclaimer {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  margin-top: 25px;
}

.cs_disclaimer p {
  margin: 0;
  color: #856404;
  font-size: 14px;
}

/* Enhanced Action Buttons */
.cs_action_buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.cs_enquire_btn, .cs_contact_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
  min-width: 160px;
}

.cs_btn_primary {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 25%, #22c55e 75%, #16a34a 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.cs_btn_primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(30, 60, 114, 0.4);
  color: white;
  text-decoration: none;
}

.cs_btn_secondary {
  background: transparent;
  color: #1e40af;
  border: 2px solid #1e40af;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
}

.cs_btn_secondary:hover {
  background: #1e40af;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
  text-decoration: none;
}

.cs_enquire_btn i, .cs_contact_btn i {
  transition: transform 0.3s ease;
}

.cs_btn_primary:hover i:last-child {
  transform: translateX(5px);
}

.cs_btn_secondary:hover i {
  transform: scale(1.1);
}

/* Related Products Section */
.cs_related_products_section {
  background: #f8f9fa;
  padding: 80px 0;
}

.cs_related_products_section .cs_slider_container {
  padding: 0 15px;
}

.cs_related_products_section .cs_slide {
  padding: 0 10px;
}

/* Other Products Card - Simplified Design */
.cs_other_product_card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgb(153 153 153 / 10%);
  transition: all 0.3s ease;
  height: 100%;
  margin: 15px;
}

.cs_other_product_card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgb(153 153 153 / 30%);
}

.cs_product_thumbnail {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.cs_product_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cs_other_product_card:hover .cs_product_thumbnail img {
  transform: scale(1.05);
}

.cs_product_info {
  padding: 20px;
  text-align: center;
}

.cs_product_info .cs_product_category {
  color: #1e40af;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.cs_product_info h4 {
  margin-bottom: 15px;
}

.cs_product_info h4 a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.cs_product_info h4 a:hover {
  color: #1e40af;
}

.cs_view_btn_simple {
  display: inline-block;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 25%, #22c55e 75%, #16a34a 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cs_view_btn_simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cs_action_buttons {
    flex-direction: column;
  }
  
  .cs_product_title {
    font-size: 2rem;
  }
  
  .cs_product_subtitle {
    font-size: 1rem;
  }
  
  .cs_spec_item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .cs_spec_value {
    text-align: left;
  }
  
  .cs_detail_row {
    flex-direction: column;
    gap: 5px;
  }
  
  .cs_sticky_image {
    position: relative;
    top: auto;
  }
}
