/* Product Detail Page Specific Styles */

/* Banner Section Adjustments */
.banner-section {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.banner-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Product Header */
.product-header h2 {
  color: var(--primary);
}

/* Product Image Container */
.product-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: 8px;
}

/* Product Image Slider Styles */
.product-image-slider {
  width: 100%;
  position: relative;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
}

/* Main Image Container */
.main-image-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.images-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Product Detail Images */
.product-detail-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  box-shadow: none;
  cursor: pointer;
}

.product-detail-image.active {
  opacity: 1;
  position: relative;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
  left: 15px;
}

.slider-arrow-right {
  right: 15px;
}

/* Thumbnails Container */
.thumbnails-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.thumbnail-item {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 120, 255, 0.2);
}

.thumbnail-item:hover:not(.active) {
  border-color: rgba(0, 120, 255, 0.5);
}

/* Product Information */
.product-info {
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  color: var(--primary);
  margin-bottom: 2rem;
}

/* Section Indicator */
.section-indicator {
  display: inline-block;
  width: 30px;
  height: 3px;
  background-color: var(--primary);
  margin-right: 10px;
  vertical-align: middle;
}

.section-indicator.ml-auto {
  width: 30px;
  margin-right: 0;
  margin-left: 10px;
}

/* Test Functionality Section - Horizontal Layout with Left-Icon Right-Text */
.mb-20 h3 {
  margin-top: 3.5rem; /* Further increase top margin */
  margin-bottom: 1rem; /* Reduced bottom margin */
}
.test-functionality-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.test-functionality-item {
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex: 0 0 auto;
  width: 240px;
  box-sizing: border-box;
}

.test-functionality-item:hover {
  background-color: #f8fafc;
  transform: translateY(-3px);
}

.functionality-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* Circle Wireframe Style Icons for Test Functionality */
.functionality-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  min-width: 60px;
  background-color: transparent;
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.test-functionality-item:hover .functionality-icon {
  background-color: var(--primary);
  color: white;
  transform: scale(1.05);
}

.functionality-text {
  width: 150px;
  flex-shrink: 0;
}

.functionality-text h4 {
  font-size: 0.9rem;
  margin: 0;
  color: #1e293b;
  font-weight: 500;
  white-space: normal;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .test-functionality-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .test-functionality-item {
    width: 100%;
    max-width: 240px;
    padding: 0.8rem;
  }
  
  .functionality-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.2rem;
  }
  
  .functionality-text {
    width: calc(100% - 60px);
  }
  
  .functionality-text h4 {
    font-size: 0.8rem;
  }
}

/* Feature Items with Wireframe Style Icons */
.feature-item {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.feature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  width: 100%;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

/* Wireframe Style Icons for Features */
.feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  min-width: 60px;
  background-color: transparent;
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background-color: var(--primary);
  color: white;
  transform: scale(1.05);
}

/* Custom responsive grid for feature items */
@media (min-width: 770px) and (max-width: 1025px) {
  .feature-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.feature-item h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Simple Table Styles */
.simple-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.simple-table thead th {
  background-color: rgba(0, 71, 107, 0.05);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--primary);
}

.simple-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.3s ease;
}

.simple-table tbody tr:last-child {
  border-bottom: none;
}

.simple-table tbody tr:hover {
  background-color: rgba(0, 71, 107, 0.05);
}

.simple-table td {
  padding: 1rem 1.25rem;
  vertical-align: top;
  line-height: 1.5;
}

.simple-table td:first-child {
  font-weight: 600;
  color: var(--primary);
}

.simple-table td div {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.simple-table td div::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.simple-table td div:last-child {
  margin-bottom: 0;
}

.simple-table td div span {
  font-weight: 600;
  color: var(--primary);
}

.product-parameters-table td p {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.product-parameters-table td p::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.product-parameters-table td p:last-child {
  margin-bottom: 0;
}

.product-parameters-table td div {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.product-parameters-table td div::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.product-parameters-table td div:last-child {
  margin-bottom: 0;
}

/* Parameter value highlighting */
.product-parameters-table td p span {
  font-weight: 600;
  color: var(--primary);
}

.product-parameters-table td div span {
  font-weight: 600;
  color: var(--primary);
}

/* Table row highlighting */
.product-parameters-table .parameter-row.highlighted {
  background-color: rgba(0, 71, 107, 0.05);
  box-shadow: 0 6px 20px rgba(0, 71, 107, 0.15);
  transform: translateX(5px);
}

.product-parameters-table .parameter-row.highlighted::before {
  transform: scaleY(1);
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  width: 8px;
}

/* Search input styling */
.parameter-search-container {
  position: relative;
}

.parameter-search {
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
}

.parameter-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 71, 107, 0.1);
}

/* Copy button styling */
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background-color: rgba(0, 71, 107, 0.1);
}

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

/* Search highlighting */
.product-parameters-table mark {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0 2px;
  border-radius: 2px;
}

/* No results message */
.no-results {
  font-style: italic;
  color: #6b7280;
  padding: 2rem;
  text-align: center;
}

/* Responsive adjustments for search */
@media (max-width: 768px) {
  .parameter-search {
    width: 100% !important;
  }
}

/* Interactive expand/collapse for mobile */
@media (max-width: 768px) {
  .product-parameters-table {
    border-spacing: 0;
    width: 100%;
  }
  
  .product-parameters-table thead {
    display: none;
  }
  
  .product-parameters-table, 
  .product-parameters-table tbody, 
  .product-parameters-table tr, 
  .product-parameters-table td {
    display: block;
    width: 100%;
  }
  
  .product-parameters-table tbody {
    margin-bottom: 1rem;
  }
  
  .product-parameters-table tr {
    margin-bottom: 1rem;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
  }
  
  .product-parameters-table tr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    z-index: 5;
  }
  
  .product-parameters-table td {
    text-align: left;
    padding: 0;
    position: relative;
    border: none;
    border-radius: 0;
  }
  
  .product-parameters-table td:first-child {
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem 1rem 1.5rem;
  }
  
  .product-parameters-table td:last-child {
    padding: 1rem 1.25rem 1rem 1.5rem;
    min-height: 3rem; /* Ensure minimum height for copy button */
  }
  
  .product-parameters-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
  }
  
  .product-parameters-table td:first-child::before {
    display: none;
  }
  
  .product-parameters-table td p {
    padding-left: 0;
    text-align: left;
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 2.5rem; /* Make room for copy button */
    line-height: 1.5;
  }
  
  .product-parameters-table td p::before {
    display: none;
  }
  
  .product-parameters-table td p:last-child {
    margin-bottom: 0;
  }
  
  /* Adjust copy button position for mobile */
  .copy-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    opacity: 1; /* Always visible on mobile */
    z-index: 10;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Adjust highlighted row for mobile */
  .product-parameters-table .parameter-row.highlighted {
    background-color: white;
    box-shadow: 0 6px 20px rgba(0, 71, 107, 0.15);
    transform: none;
  }
  
  /* Ensure proper spacing between parameter values */
  .product-parameters-table td p span {
    display: inline-block;
    margin-right: 0.25rem;
  }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .banner-content h1 {
    font-size: 2.25rem;
  }
  
  .banner-content p {
    font-size: 1rem;
  }
  
  .product-header h2 {
    font-size: 2.5rem;
  }
  
  .product-info h3 {
    font-size: 2rem;
  }
  
  .functionality-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.5rem;
  }
  
  .product-parameters-table th,
  .product-parameters-table td {
    padding: 1rem;
  }
  
  /* Slider Responsive Adjustments */
  .main-image-container {
    height: 375px;
  }
  
  .thumbnail-item {
    width: 70px;
    height: 50px;
  }
  
  .slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  
  .product-image-slider {
    padding: 1rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .test-functionality-container {
    justify-content: space-between;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-gap: 20px;
  }
  
  .test-functionality-item {
    width: auto;
    min-width: 240px;
  }
}

@media (max-width: 480px) {
  .banner-section {
    height: 300px;
  }
  
  .banner-content h1 {
    font-size: 1.75rem;
  }
  
  .banner-content .flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  .product-image-container {
    padding: 1rem;
  }
  
  .test-functionality-item {
    padding: 1rem;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
}