/* Product Detail Page Stilleri */

.product-detail {
    padding-top: 40px;
    padding-bottom: 80px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 20px;
}

.product-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.price-action {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--new-tag-bg); /* Kırmızı fiyat */
}

/* Aksiyon Butonları */
.btn-live-demo, .btn-buy {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.btn-live-demo {
    background-color: var(--secondary-color); /* Yeşil */
    color: white;
}
.btn-live-demo:hover {
    background-color: #1e7e34;
}

.btn-buy {
    background-color: var(--primary-color); /* Mavi */
    color: white;
}
.btn-buy:hover {
    background-color: #0056b3;
}


/* ==================================== */
/* Sekme (Tabs) Yapısı */
/* ==================================== */

.tabs-section {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    border-bottom: 3px solid var(--light-gray);
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 5px;
}

.tab-link {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s;
    border-bottom: 3px solid transparent; 
    white-space: nowrap; 
}

.tab-link:hover {
    color: var(--primary-color);
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: #f1f1f1; 
}

.tab-content {
    padding: 30px 10px;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

/* İçerik Stilleri */
.tab-content h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}
.tab-content ul {
    list-style: none;
    padding-left: 0;
}
.tab-content ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--light-gray);
    font-size: 1.05rem;
}
.tab-content ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}
.tab-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ================================================= */
/* Resim Galerisi - YÜKSEKLİK VE KAYDIRMA ÇÖZÜMÜ */
/* ================================================= */

.image-wrapper-scroll {
    max-height: 450px; /* Görsel alanının maksimum yüksekliği */
    overflow-y: auto; /* Yüksekliği aşarsa dikey kaydırma çubuğu göster */
    margin-top: 20px;
    padding: 10px; 
    border: 1px solid var(--light-gray);
    border-radius: 8px;
}

/* Tab içerisindeki img elementleri */
.tab-content img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px; /* Görseller arasına boşluk */
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.image-gallery h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Animasyon */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 15px;
    }
    .product-header h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .price-action {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .btn-live-demo, .btn-buy {
        flex-grow: 1;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .detail-price {
        font-size: 1.5rem;
    }
    .tab-buttons {
        flex-wrap: nowrap;
        padding: 0 10px;
        border-bottom: none;
    }
    .tab-link {
        padding: 10px 15px;
        font-size: 0.9rem;
        margin-bottom: 5px; 
    }
    .tab-content {
        padding: 20px 0;
    }
    .tab-content h3 {
        font-size: 1.4rem;
    }
    .image-wrapper-scroll {
        max-height: 350px; /* Mobil için biraz daha küçültelim */
    }
}