﻿/* Genel Ayarlar ve Font */
:root {
    --primary-color: #e62e2d; /* Canlı bir e-ticaret kırmızısı (Sepete Ekle butonu) */
    --secondary-color: #ffc107; /* Yıldız Renkleri */
    --text-color: #333;
    --light-gray: #f8f8f8;
    --border-color: #eee;
    --font-stack: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.product-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #999;
}

    .breadcrumb a {
        color: #666;
        text-decoration: none;
    }

    .breadcrumb span {
        font-weight: 600;
        color: var(--primary-color);
    }

/* 1. ÜST KISIM (Product Hero) */
.product-hero {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    padding: 20px 0;
}

/* Görseller */
.product-gallery {
    flex: 1;
    max-width: 550px;
}

.main-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Hafif gölge */
}

    .main-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease-in-out;
    }

.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

    .thumbnail-images .thumb {
        width: 70px;
        height: 70px;
        object-fit: cover;
        cursor: pointer;
        border: 3px solid transparent;
        border-radius: 4px;
        transition: border-color 0.2s, opacity 0.2s;
        opacity: 0.7;
    }

        .thumbnail-images .thumb:hover,
        .thumbnail-images .thumb.active {
            border-color: var(--primary-color);
            opacity: 1;
        }

/* Ürün Bilgisi */
.product-info {
    flex: 1;
}

.product-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.product-reviews {
    margin-bottom: 20px;
}

.rating {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-right: 10px;
}

.product-reviews a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
}

.product-short-description {
    margin: 25px 0;
    font-size: 1.1em;
    color: #555;
    padding-left: 15px;
    border-left: 3px solid var(--border-color);
}

/* Fiyat Bölümü */
.price-section {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.current-price {
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-color);
}

/* Kategori ve Varyasyonlar */
.product-options p {
    margin-bottom: 15px;
}

.product-options a {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: underline;
}

.product-options label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 15px;
}

.product-options select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 100%;
    max-width: 200px;
}

/* Eylem Butonları ve Miktar */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.quantity-input {
    width: 60px;
    padding: 12px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.1em;
}

.add-to-cart-btn {
    flex-grow: 1;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 4px 10px rgba(230, 46, 45, 0.3);
}

    .add-to-cart-btn:hover {
        background-color: #b31e1d; /* Koyu kırmızı */
        transform: translateY(-2px);
    }

.wishlist-btn {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 6px;
    transition: border-color 0.3s, background-color 0.3s;
}

    .wishlist-btn:hover {
        border-color: #dc3545;
        color: #dc3545;
        background-color: #fff0f0;
    }

/* Stok ve Kargo */
.stock-status {
    display: flex;
    gap: 20px;
    font-size: 0.95em;
}

    .stock-status p {
        font-weight: 600;
    }

.in-stock {
    color: #28a745;
}

.fast-shipping {
    color: #17a2b8;
}

/* Meta Bilgileri */
.info-separator {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 30px 0;
}

.meta-info p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.meta-info strong {
    color: var(--text-color);
}


/* 2. DETAYLI AÇIKLAMA BÖLÜMÜ (Tabs) */
.product-details {
    margin-top: 50px;
    padding-top: 30px;
}

/* Sekmeli Yapı (Tabs) Stili (Önceki önerideki CSS'i kullanır) */
.tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

    .tabs input[type="radio"] {
        display: none;
    }

    .tabs label {
        padding: 15px 25px;
        background-color: var(--light-gray);
        color: var(--text-color);
        font-weight: 600;
        cursor: pointer;
        border-radius: 6px 6px 0 0;
        margin-right: 5px;
        transition: background-color 0.3s;
        border: 1px solid var(--border-color);
        border-bottom: none;
    }

    .tabs input[type="radio"]:checked + label {
        background-color: white;
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
        border-bottom: 1px solid white; /* İçerikle birleşimi simüle eder */
    }

.tab-content {
    order: 1;
    width: 100%;
    padding: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 0 6px 6px 6px;
    background-color: white;
    display: none;
}

.tabs input[type="radio"]:checked + label + .tab-content {
    display: block;
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .product-hero {
        flex-direction: column;
        gap: 30px;
    }

    .product-gallery, .product-info {
        max-width: 100%;
    }

    .product-title {
        font-size: 2em;
    }
}

@media (max-width: 576px) {
    .price-section {
        margin: 20px 0;
    }

    .current-price {
        font-size: 2.5em;
    }

    .product-actions {
        flex-wrap: wrap;
    }

    .add-to-cart-btn {
        flex-basis: 100%;
        order: 1; /* Buton alta kayar */
    }

    .wishlist-btn {
        flex-basis: calc(50% - 37.5px); /* İstenirse miktar kutusuyla yan yana */
    }
}
