﻿/* Tüm kapsayıcı kutu */
.urun-sayfasi-wrapper {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

/* ÜST KISIM: YAN YANA TUTUCU */
.ust-alan {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 30px;
}

/* 1. SOL TARAFI (RESİM) */
.sol-resim-alani {
    width: 50%;
    padding: 15px;
    box-sizing: border-box;
    border-right: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    background-color: #fff;
}

    .sol-resim-alani img {
        max-width: 100%;
        max-height: 450px;
        object-fit: contain;
        mix-blend-mode: multiply;
        image-rendering: -webkit-optimize-contrast;
        padding: 10px;
    }

/* 2. SAĞ TARAFI (BİLGİLER) */
.sag-bilgi-alani {
    width: 50%;
    padding: 10px 10px 10px 30px;
    box-sizing: border-box;
}

/* Marka */
.marka {
    color: #0f2f74;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #eef2f9;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Başlık */
.baslik {
    font-size: 26px;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.3;
}

/* Ürün Kodu */
.kod {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

    .kod span {
        background-color: #f5f5f5;
        padding: 3px 8px;
        border-radius: 4px;
        border: 1px solid #e5e5e5;
        font-family: 'Consolas', monospace;
        color: #333;
    }

/* Uyumlu Model */
.uyumlu-model {
    font-size: 13px;
    color: #444;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .uyumlu-model span {
        background-color: #fff3e6;
        color: #d8640c;
        padding: 3px 10px;
        border-radius: 4px;
        font-weight: 600;
        border: 1px solid #f0d5b8;
    }

/* Fiyat Kutusu */
.fiyat-kutu {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.eski-fiyat {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

.yeni-fiyat {
    color: #0f2f74 !important;
    font-size: 30px;
    font-weight: bold;
}

.btn-sepet {
    background-color: #0f2f74;
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-sepet:hover {
        background-color: #d8640c;
    }

/* 3. ALT KISIM (PREMIUM GÖRÜNÜM) */
.alt-aciklama-alani {
    width: 100%;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.aciklama-baslik {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
    position: relative;
    display: inline-block;
}

    .aciklama-baslik::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #0f2f74;
        bottom: -8px;
        left: 0;
        border-radius: 2px;
    }

/* İÇERİK TİPOGRAFİSİ */
.icerik {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

    .icerik p {
        margin-bottom: 15px;
    }

    .icerik strong, .icerik b {
        color: #000;
        font-weight: 600;
    }

    .icerik img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 10px 0;
    }

/* Kapsayıcı stil */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: fit-content;
    overflow: hidden;
    background-color: #f9f9f9;
}

.quantity-btn {
    background-color: #fff;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    transition: background 0.2s;
}

    .quantity-btn:hover {
        background-color: #e2e2e2;
    }

    .quantity-btn:active {
        background-color: #d1d1d1;
    }

.quantity-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background-color: #fff;
    -webkit-appearance: none;
    margin: 0;
    text-indent: 15px;
}

    .quantity-input[type=number] {
        -moz-appearance: textfield;
    }

    .quantity-input:focus {
        outline: none;
    }

.mb-1 {
    margin-bottom: 10px;
}

/* ===== RESPONSIVE ===== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .urun-sayfasi-wrapper {
        max-width: 100%;
        margin: 10px;
        padding: 15px;
    }

    .sol-resim-alani {
        min-height: 350px;
    }

    .baslik {
        font-size: 22px;
    }

    .yeni-fiyat {
        font-size: 26px;
    }
}

/* Küçük Tablet / Büyük Telefon (576px - 767px) */
@media (max-width: 767px) {
    .ust-alan {
        flex-direction: column;
    }

    .sol-resim-alani,
    .sag-bilgi-alani {
        width: 100%;
        border-right: none;
    }

    .sol-resim-alani {
        min-height: 300px;
        padding: 10px;
        border-bottom: 1px solid #f1f1f1;
    }

    .sag-bilgi-alani {
        padding: 20px 10px;
    }

    .baslik {
        font-size: 20px;
    }

    .marka {
        font-size: 12px;
    }

    .kod, .uyumlu-model {
        font-size: 12px;
    }

    .yeni-fiyat {
        font-size: 24px;
    }

    .btn-sepet {
        padding: 12px;
        font-size: 16px;
    }

    .aciklama-baslik {
        font-size: 18px;
    }

    .icerik {
        font-size: 14px;
        text-align: left;
    }
}

/* Mobil Telefon (575px ve altı) */
@media (max-width: 575px) {
    .urun-sayfasi-wrapper {
        margin: 0;
        padding: 10px;
        border: none;
        border-radius: 0;
    }

    .sol-resim-alani {
        min-height: 250px;
    }

        .sol-resim-alani img {
            max-height: 250px;
        }

    .marka {
        font-size: 11px;
        padding: 3px 8px;
    }

    .baslik {
        font-size: 18px;
    }

    .kod, .uyumlu-model {
        font-size: 11px;
    }

        .kod span, .uyumlu-model span {
            padding: 2px 6px;
        }

    .fiyat-kutu {
        padding: 10px;
    }

    .eski-fiyat {
        font-size: 14px;
    }

    .yeni-fiyat {
        font-size: 22px;
    }

    .btn-sepet {
        padding: 12px;
        font-size: 15px;
    }

    .alt-aciklama-alani {
        margin-top: 20px;
        padding-top: 15px;
    }

    .aciklama-baslik {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .icerik {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Quantity Control */
    .quantity-control {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .quantity-btn {
        width: 45px;
        height: 45px;
    }

    .quantity-input {
        width: 60px;
        height: 45px;
    }
}

/* Çok Küçük Ekranlar (400px ve altı) */
@media (max-width: 400px) {
    .baslik {
        font-size: 16px;
    }

    .yeni-fiyat {
        font-size: 20px;
    }

    .btn-sepet {
        font-size: 14px;
        padding: 10px;
    }
}
