/* Accordion Styles for Product Detail Sections */
.accordion-container {
  margin: 2rem 0;
}

.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.accordion-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.accordion-header:hover {
  background: #e9ecef;
}

.accordion-item.active .accordion-header {
  background: #007bff;
  color: white;
  border-bottom-color: #0056b3;
}

.accordion-icon {
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 1rem;
  min-width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.accordion-item.active .accordion-content {
  border-top: 1px solid #dee2e6;
}

/* Content inside accordion */
.accordion-content > div {
  padding: 1.5rem;
}

/* Rich Text Content Styles */
.rich-content {
  line-height: 1.6;
  color: #333;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
  margin: 1.5rem 0 1rem 0;
  color: #2c3e50;
  font-weight: 600;
}

.rich-content h1 { font-size: 2rem; }
.rich-content h2 { font-size: 1.75rem; }
.rich-content h3 { font-size: 1.5rem; }
.rich-content h4 { font-size: 1.25rem; }
.rich-content h5 { font-size: 1.1rem; }
.rich-content h6 { font-size: 1rem; }

.rich-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.rich-content strong,
.rich-content b {
  font-weight: 600;
  color: #2c3e50;
}

.rich-content em,
.rich-content i {
  font-style: italic;
}

.rich-content u {
  text-decoration: underline;
}

.rich-content ul,
.rich-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.rich-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.rich-content ul li {
  list-style-type: disc;
}

.rich-content ol li {
  list-style-type: decimal;
}

.rich-content blockquote {
  border-left: 4px solid #007bff;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  font-style: italic;
  color: #495057;
}

.rich-content code {
  background: #f1f3f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #e83e8c;
}

.rich-content pre {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

.rich-content pre code {
  background: none;
  padding: 0;
  color: #333;
}

.rich-content a {
  color: #007bff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.rich-content a:hover {
  color: #0056b3;
  border-bottom-color: #0056b3;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.rich-content img:hover {
  transform: scale(1.02);
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rich-content th,
.rich-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.rich-content th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.rich-content tr:hover {
  background: #f8f9fa;
}

.rich-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #007bff, transparent);
  margin: 2rem 0;
}

/* Emoji support */
.rich-content .emoji {
  font-size: 1.2em;
  vertical-align: middle;
}

/* Gallery styles for rich content images */
.rich-content .image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.rich-content .image-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

/* Accessory gallery styles */
.accessory-gallery {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-thumb:hover {
  border-color: #007bff;
  transform: scale(1.05);
}

/* Technical data styles */
.dim-technical-data {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
}

.tech-data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

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

.tech-label {
  font-weight: 600;
  color: #495057;
}

.tech-value {
  color: #007bff;
  font-weight: 500;
}

/* Description styles */
.description-content {
  line-height: 1.6;
  color: #333;
}

.description-content p {
  margin-bottom: 1rem;
}

/* Code example styles */
.code-example {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Technical drawings styles */
.technical-drawings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.drawing-item {
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem;
  transition: transform 0.2s ease;
}

.drawing-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.drawing-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.drawing-item h4 {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #333;
}

/* Product code table styles */
.product-code-table {
  overflow-x: auto;
  /* Dinamik boşluk için container query */
  container-type: inline-size;
  container-name: codeTable;
}

.product-code-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.product-code-table th,
.product-code-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.product-code-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.product-code-table tr:hover {
  background: #f8f9fa;
}

/* Accessories styles */
.accessories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.accessory-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.accessory-item:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.accessory-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.accessory-info h4 {
  margin: 0.5rem 0;
  color: #333;
  font-size: 1rem;
}

.accessory-code {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.accessory-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.accessory-price {
  font-weight: 600;
  color: #007bff;
  font-size: 1.1rem;
}

/* DIM options styles */
.dim-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.dim-option {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

.dim-option h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 0.9rem;
}

.dim-option p {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: #007bff;
  font-size: 1.1rem;
}

.dim-option small {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .accordion-header {
    padding: 0.75rem 1rem;
  }
  
  .accordion-header h3 {
    font-size: 1rem;
  }
  
  .accordion-content > div {
    padding: 1rem;
  }
  
  .technical-drawings {
    grid-template-columns: 1fr;
  }
  
  .accessories-grid {
    grid-template-columns: 1fr;
  }
  
  .dim-options {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .rich-content {
    font-size: 0.9rem;
  }
  
  .rich-content h1 { font-size: 1.5rem; }
  .rich-content h2 { font-size: 1.3rem; }
  .rich-content h3 { font-size: 1.2rem; }
  .rich-content h4 { font-size: 1.1rem; }
  
  .rich-content table {
    font-size: 0.8rem;
  }
  
  .rich-content th,
  .rich-content td {
    padding: 0.5rem;
  }
  
  .accessory-gallery {
    justify-content: center;
  }
  
  .gallery-thumb {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .accordion-item {
    margin-bottom: 0.5rem;
  }
  
  .accordion-header {
    padding: 0.5rem 0.75rem;
  }
  
  .accordion-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
  }
  
  .accordion-content > div {
    padding: 0.75rem;
  }
}