/* ==========================================================================
   Product Detail Page Specific Styles
   ========================================================================== */

/* Product Showcase - Wide product images display */
.product-showcase {
  margin: var(--spacing-3xl) 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.product-showcase-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--gray-50);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-showcase-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-showcase-item img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.3s ease;
}

.product-showcase-item:hover img {
  transform: scale(1.05);
}

/* Main Product Image - Full Width Display */
.product-showcase-main-image {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  overflow: hidden;
}

.product-showcase-main-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  box-sizing: border-box;
}

/* Product Content Sections */
.product-section {
  padding: var(--spacing-3xl) 0;
}

.product-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin: var(--spacing-3xl) 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.product-description p {
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Product Features List */
.product-features {
  margin: var(--spacing-3xl) 0 var(--spacing-md) 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.product-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.125rem;
  line-height: 2;
  color: var(--gray-700);
}

.product-features-list li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--gray-200);
}

.product-features-list li:last-child {
  border-bottom: none;
}

.product-features-list li strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* Technical Specifications Table */
.technical-specs {
  margin: var(--spacing-3xl) 0;
}

.technical-specs h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--gray-900);
  font-size: 1.75rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.specs-table thead {
  background: linear-gradient(135deg, var(--green-primary), var(--earth-green));
  color: var(--white);
}

.specs-table th {
  padding: var(--spacing-lg);
  text-align: left;
  font-weight: 600;
  font-size: 1.125rem;
}

.specs-table td {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.specs-table tbody tr:last-child td {
  border-bottom: none;
}

.specs-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

/* Product Gallery */
.product-gallery {
  margin: var(--spacing-3xl) 0;
}

.product-gallery h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--gray-900);
  font-size: 1.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--gray-100);
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.3s ease;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-900);
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--white);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-900);
  transition: all 0.3s ease;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

/* Process Flow */
.process-flow {
  margin: var(--spacing-3xl) 0;
  background: var(--gray-50);
  padding: var(--spacing-3xl);
  border-radius: var(--border-radius-lg);
}

.process-flow h3 {
  margin-bottom: var(--spacing-xl);
  color: var(--gray-900);
  font-size: 1.75rem;
  text-align: center;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  position: relative;
}

.process-step {
  flex: 1;
  min-width: 150px;
  text-align: center;
  position: relative;
}

.process-step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--green-primary), var(--earth-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
  box-shadow: var(--shadow-md);
}

.process-step-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
}

.process-step-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.process-arrow {
  font-size: 2rem;
  color: var(--green-primary);
  flex-shrink: 0;
}

/* CTA Section */
.product-cta {
  position: relative;
  background-color: #ffffff; /* Beyaz arka plan - sayfa ile aynı */
  background-image: url('/assets/img/arkaplan.png'); /* Arka plan görseli */
  background-repeat: no-repeat; /* Tekrar etme */
  background-size: 100% auto; /* Görseli sayfaya sığdır */
  background-position: center center; /* Ortala */
  color: var(--gray-900); /* Siyah renk - arka plan görseli üzerinde okunabilir */
  padding: var(--spacing-3xl) 0;
  text-align: center;
  margin-top: var(--spacing-3xl);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Görseli öne getir */
}

.product-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* Şeffaf yap - görselin görünmesini engellemesin */
  z-index: 0; /* Görselin arkasında */
  pointer-events: none;
}

.product-cta .container {
  position: relative;
  z-index: 2; /* İçeriği görselin üstünde */
  /* Kartı sayfanın tamamına yakın genişlikte ve görünür tut */
  max-width: 100%;
  /* Kartın kendisi: hafif şeffaf beyaz arka plan, tam genişlik hissi */
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 3rem;
  border-radius: 0; /* Kenarlardan tam sayfaya otursun */
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.product-cta h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--gray-900); /* Siyah renk - arka plan görseli üzerinde okunabilir */
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8); /* Beyaz gölge - okunabilirlik için */
}

.product-cta p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  color: #000000 !important; /* Alt taraftaki açıklama yazısını tüm ürünlerde siyah yap */
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8); /* Beyaz gölge - okunabilirlik için */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.product-cta .btn {
  background: var(--green-primary) !important; /* Buton arka planını yeşil yap */
  color: #ffffff !important; /* Yazıyı beyaz yap */
  border-color: var(--green-primary) !important;
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.product-cta .btn:hover {
  background: #0b7a3a !important; /* Hover için daha koyu yeşil ton */
  color: #ffffff !important;
  border-color: #0b7a3a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .product-showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0;
  }
  
  .product-showcase-item {
    min-height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
  }
  
  .product-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  
  .product-showcase-main-image {
    padding: var(--spacing-md);
  }
  
  .product-showcase-main-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  
  .product-description {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 var(--spacing-md);
  }
  
  .product-description p {
    margin-bottom: 1rem;
  }
  
  .product-features {
    padding: 0 var(--spacing-md);
  }
  
  .product-features-list {
    font-size: 0.9rem;
    line-height: 1.8;
    padding-left: 1rem;
  }
  
  .product-features-list li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
  }
  
  .product-features-list strong {
    font-weight: 600;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-md);
  }
  
  .gallery-item {
    padding: var(--spacing-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border-radius: var(--border-radius);
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Product detail page mobile fixes */
  .about-main-section {
    margin-top: 70px;
    padding: var(--spacing-lg) 0;
  }
  
  .about-content {
    padding: 0;
  }
  
  .about-breadcrumb {
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-md);
  }
  
  .breadcrumb-list {
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .breadcrumb-list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: rgba(47, 168, 79, 0.1);
    touch-action: manipulation;
  }
  
  .about-page-title {
    font-size: 1.75rem;
    line-height: 1.3;
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }
  
  .process-steps {
    flex-direction: column;
  }
  
  .process-arrow {
    transform: rotate(90deg);
    margin: var(--spacing-sm) 0;
  }
  
  .specs-table {
    font-size: 0.875rem;
  }
  
  .specs-table th,
  .specs-table td {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .product-cta {
    min-height: 300px;
    background-size: 100% auto !important; /* Mobil için görsel boyutu */
    z-index: 1 !important;
  }
  
  .product-cta::after {
    z-index: 0 !important; /* Mobilde de görselin arkasında */
    background: transparent !important;
  }
  
  .product-cta h2 {
    font-size: 1.75rem;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Previous Works Gallery - Daha Önceki Çalışmalarımız
   ========================================================================== */
.product-previous-works {
  margin: var(--spacing-lg) 0 var(--spacing-xl) 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.previous-works-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
  margin-top: 0;
  font-family: var(--font-display);
}

.previous-works-slider-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
}

.previous-works-slider-track {
  display: inline-flex;
  gap: var(--spacing-xl);
  animation: previousWorksScroll 20s linear infinite;
  will-change: transform;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  width: auto;
  min-width: max-content;
}

@keyframes previousWorksScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.previous-works-slider-item {
  flex-shrink: 0;
  width: 250px;
  height: 180px;
  background: var(--white);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.previous-works-slider-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.previous-works-slider-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
}

/* Responsive - Previous Works */
@media (max-width: 768px) {
  .product-previous-works {
    margin: var(--spacing-lg) 0;
  }
  
  .previous-works-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
  }
  
  .previous-works-slider-item {
    width: 200px;
    height: 140px;
  }
}

