/* sayfa arkaplanı */
body {
    background-color: #f4f7fa;
}

/* Ürün Detay Konteyneri */
.product-detail-container {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Geri Dön Butonu */
.back-button-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    padding-top: 10px;
}
.back-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background-color: #2ee77d;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
}
.back-button:hover {
    background-color: #28c76f;
    transform: translateY(-2px);
}

/* Ürün Detay Kartı */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 40px;
}

/* Ürün Resim Bölümü */
.product-image-section {
    flex: 1 1 40%;
}
.main-image-wrapper {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1; /* Kare oran */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 12px;
    transition: transform 0.3s ease;
}
.main-image-wrapper:hover img {
    transform: scale(1.02);
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Thumbnail Galeri */
.thumbnail-container {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.thumbnail-image {
    width: 70px;
    height: 70px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.7;
    transition: border-color 0.3s, transform 0.2s, opacity 0.3s;
}
.thumbnail-image:hover {
    transform: scale(1.05);
    opacity: 1;
}
.thumbnail-image.active {
    border-color: #2ee77d;
    opacity: 1;
    transform: scale(1.1);
}

/* Ürün Bilgi Bölümü */
.product-info-section {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.product-name {
    font-family: 'Roboto', sans-serif;
    font-size: 2.4rem;
    color: #007bff;
    margin-bottom: 20px;
    position: relative;
}
.product-name::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: #2ee77d;
    position: absolute;
    bottom: -8px;
    left: 0;
    border-radius: 2px;
}
.short-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
    margin-top: 20px;
    flex-grow: 1;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        padding: 20px;
    }
    .product-image-section,
    .product-info-section {
        flex: 1 1 100%;
    }
    .product-name {
        font-size: 1.8rem;
    }
    .short-description {
        font-size: 0.95rem;
    }
    /* Thumbnail boyutlarını sabitliyoruz, ölçeklemeyi kaldırıyoruz */
    .thumbnail-image,
    .thumbnail-image.active {
        width: 60px;
        height: 60px;
        transform: none !important;
        opacity: 1;
        border-color: transparent;
    }
    .thumbnail-image.active {
        border: 2px solid #2ee77d;
    }

    .main-image-wrapper {
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }
    .thumbnail-image {
        width: 60px;
        height: 60px;
    }
}
