/* ========== urundetay.css ========== */
/* Ürün Detay Sayfası Stilleri */

.urun-detay-page {
    padding: 30px 0 60px;
    background: #f8f9fa;
    min-height: 600px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-wrapper {
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
}

.breadcrumb-item {
    font-size: 13px;
    color: #666;
}

.breadcrumb-item a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ff5252;
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item:before {
    content: "›";
    padding: 0 8px;
    color: #999;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* ===== ANA ÜRÜN BÖLÜMÜ ===== */
.urun-detay-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #f0f0f0;
}

/* Galeri */
.urun-galeri {
    position: relative;
}

.urun-ana-resim {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
    min-height: 400px;
}

.urun-ana-resim img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.urun-ana-resim:hover img {
    transform: scale(1.05);
}

.urun-detay-arac-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
    z-index: 5;
}

.urun-detay-arac-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Ürün Bilgileri */
.urun-bilgiler {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.urun-baslik {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.urun-kodlar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid #ff6b6b;
}

.kod-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.kod-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    min-width: 100px;
}

.kod-value {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    font-family: monospace;
}

.urun-marka-bilgi {
    background: #fff;
    padding: 10px 0;
}

.marka-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.marka-label {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.marka-value {
    font-size: 16px;
    color: #ff6b6b;
    font-weight: 600;
}

.urun-arac-bilgi {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.bilgi-baslik {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-left: 12px;
}

.bilgi-baslik:before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 16px;
    background: #ff6b6b;
    border-radius: 2px;
}

.arac-detay {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #555;
}

.arac-item i {
    color: #ff6b6b;
    width: 20px;
    font-size: 16px;
}

.arac-item strong {
    color: #333;
    font-weight: 600;
    margin-right: 5px;
}

.urun-stok-bilgi {
    margin: 10px 0;
}

.stok-durum {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.stok-var {
    background: #e8f5e9;
    color: #2e7d32;
}

.stok-var i {
    color: #4caf50;
}

.stok-yok {
    background: #ffebee;
    color: #c62828;
}

.stok-yok i {
    color: #f44336;
}

.urun-fiyat-alani {
    border-top: 2px solid #f0f0f0;
    padding-top: 25px;
    margin-top: 10px;
}

.fiyat-wrapper {
    margin-bottom: 15px;
}

/* Fiyat ve KDV aynı satırda */
.fiyat-kdv-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fiyat {
    font-size: 25px;
    font-weight: 700;
    color: #ff6b6b;
    line-height: 1.2;
    white-space: nowrap;
}

.fiyat-sor {
    color: #ff9800;
    font-size: 24px;
}

.fiyat-bilgi {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    white-space: nowrap;
}

.sepete-ekle-alani {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.adet-secici {
    display: flex;
    align-items: center;
    border: 1px solid #e1e1e1;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
}

.adet-btn {
    width: 40px;
    height: 48px;
    background: #f8f9fa;
    border: none;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adet-btn:hover {
    background: #ff6b6b;
    color: #fff;
}

.adet-input {
    width: 60px;
    height: 48px;
    border: none;
    border-left: 1px solid #e1e1e1;
    border-right: 1px solid #e1e1e1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    -moz-appearance: textfield;
}

.adet-input::-webkit-outer-spin-button,
.adet-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-sepete-ekle {
    flex: 1;
    min-width: 200px;
    height: 48px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-sepete-ekle:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.btn-fiyat-sor {
    flex: 1;
    height: 48px;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-fiyat-sor:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,152,0,0.3);
}

.btn-stok-yok {
    flex: 1;
    height: 48px;
    background: #999;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-favori {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.btn-favori:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.btn-favori.active {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

/* ===== TAB MENÜSÜ ===== */
.urun-detay-tabs {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 40px;
    border: 1px solid #f0f0f0;
}

.tab-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #f0f0f0;
    gap: 5px;
}

.tab-item {
    margin-bottom: -2px;
}

.tab-link {
    padding: 12px 25px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-link i {
    font-size: 16px;
}

.tab-link:hover {
    color: #ff6b6b;
}

.tab-item.active .tab-link {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
}

.tab-content {
    padding: 20px 10px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Açıklama İçeriği */
.aciklama-icerik {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.aciklama-icerik p {
    margin-bottom: 15px;
}

/* Özellikler Tablosu */
.ozellikler-grid {
    overflow-x: auto;
}

.ozellikler-tablo {
    width: 100%;
    border-collapse: collapse;
}

.ozellikler-tablo tr {
    border-bottom: 1px solid #f0f0f0;
}

.ozellikler-tablo tr:last-child {
    border-bottom: none;
}

.ozellikler-tablo th {
    width: 200px;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    border-right: 1px solid #f0f0f0;
}

.ozellikler-tablo td {
    padding: 12px 20px;
    color: #555;
    font-size: 14px;
}

/* Grup Listesi */
.grup-icerik h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.grup-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.grup-list li {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    color: #666;
    border: 1px solid #f0f0f0;
}

/* ===== BENZER ÜRÜNLER ===== */
.benzer-urunler {
    margin-top: 40px;
}

/* Benzer Ürünler Butonları */
.btn-benzer-fiyat-sor {
    width: 100%;
    padding: 8px;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
}

.btn-benzer-fiyat-sor:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255,152,0,0.3);
    text-decoration: none;
    color: #fff;
}

.btn-benzer-stok-yok {
    width: 100%;
    padding: 8px;
    background: #999;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: not-allowed;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-benzer-sepete-ekle {
    width: 100%;
    padding: 8px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-benzer-sepete-ekle:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255,107,107,0.3);
}

.benzer-baslik {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.benzer-baslik:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 5px;
    height: 22px;
    background: #ff6b6b;
    border-radius: 3px;
}

.benzer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benzer-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.benzer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255,107,107,0.15);
    border-color: #ff6b6b;
}

.benzer-link {
    text-decoration: none;
    color: #333;
    display: block;
}

.benzer-resim {
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.benzer-resim img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.benzer-card:hover .benzer-resim img {
    transform: scale(1.08);
}

.benzer-arac-logo {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benzer-arac-logo img {
    max-width: 100%;
    max-height: 100%;
}

.benzer-bilgi {
    padding: 15px;
}

.benzer-marka {
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
}

.benzer-adi {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #333;
}

.benzer-fiyat .fiyat {
    font-size: 16px;
    font-weight: 700;
    color: #ff6b6b;
}

.benzer-fiyat .fiyat-sor {
    font-size: 13px;
    color: #ff9800;
}

.benzer-actions {
    padding: 0 15px 15px 15px;
}

.btn-benzer-sepete-ekle {
    width: 100%;
    padding: 8px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-benzer-sepete-ekle:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255,107,107,0.3);
}


/* ===== TOAST BİLDİRİMLERİ ===== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: #4caf50;
}

.toast.success i {
    color: #4caf50;
}

.toast.error {
    border-left-color: #f44336;
}

.toast.error i {
    color: #f44336;
}

.toast.warning {
    border-left-color: #ff9800;
}

.toast.warning i {
    color: #ff9800;
}

.toast.info {
    border-left-color: #2196f3;
}

.toast.info i {
    color: #2196f3;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .benzer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .urun-detay-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .benzer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .urun-detay-page {
        padding: 20px 0 40px;
    }
    
    .urun-baslik {
        font-size: 22px;
    }
    
    .fiyat {
        font-size: 26px;
    }
    
    .fiyat-kdv-wrapper {
        flex-direction: row;
        align-items: baseline;
    }
    
    .sepete-ekle-alani {
        flex-direction: column;
    }
    
    .adet-secici {
        width: 100%;
    }
    
    .adet-btn {
        width: 50px;
    }
    
    .adet-input {
        flex: 1;
    }
    
    .btn-sepete-ekle,
    .btn-fiyat-sor,
    .btn-stok-yok {
        width: 100%;
    }
    
    .btn-favori {
        width: 100%;
        border-radius: 50px;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .ozellikler-tablo th {
        width: 140px;
    }
    
    /* Benzer Ürünler - Mobilde 2'li Kolon */
    .benzer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .benzer-card {
        width: 100%;
        margin: 0;
    }

    .benzer-adi {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .benzer-fiyat .fiyat {
        font-size: 13px;
    }

    .btn-benzer-sepete-ekle, 
    .btn-benzer-fiyat-sor, 
    .btn-benzer-stok-yok {
        font-size: 12px;
        padding: 8px 5px;
        width: 100%;
        text-align: center;
    }

    .btn-benzer-sepete-ekle i {
        margin-right: 3px;
    }
}

@media (max-width: 480px) {
    .urun-ana-resim {
        min-height: 250px;
    }
    
    .urun-detay-arac-logo {
        width: 50px;
        height: 50px;
    }
    
    .kod-label {
        min-width: 80px;
    }
    
    .fiyat {
        font-size: 22px;
    }
    
    .fiyat-bilgi {
        font-size: 12px;
    }
    
    .ozellikler-tablo th {
        display: block;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .ozellikler-tablo td {
        display: block;
        width: 100%;
        padding-top: 0;
    }

    /* Çok küçük ekranlarda benzer ürünler */
    .benzer-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}