/* Stok Durumu CSS Stilleri */

/* Stokta olmayan ürünler için siyah-beyaz filtre */
.urun.stokta-yok {
    filter: grayscale(100%);
    opacity: 0.6;
    position: relative;
}

.urun.stokta-yok:hover {
    filter: grayscale(80%);
    opacity: 0.8;
}

/* Stokta olmayan ürün üzerine "Stokta Yok" etiketi */
.urun.stokta-yok::before {
    content: "STOKTA YOK";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
}

/* Stokta olan ürünler için yeşil etiket */
.urun.stokta-var::before {
    content: "STOKTA VAR";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 128, 0, 0.8);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
}

/* Stokta olmayan ürünlerin fiyat bölümü */
.urun.stokta-yok div {
    color: #999 !important;
}

.urun.stokta-yok b {
    color: #666 !important;
}

/* Stok sayısı gösterimi */
.stok-sayisi {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 3px;
    z-index: 10;
}

.stok-sayisi.az-stok {
    background: rgba(255, 165, 0, 0.8);
}

.stok-sayisi.stok-yok {
    background: rgba(255, 0, 0, 0.8);
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .urun.stokta-yok::before,
    .urun.stokta-var::before {
        font-size: 10px;
        padding: 3px 6px;
        top: 5px;
        right: 5px;
    }
    
    .stok-sayisi {
        font-size: 9px;
        padding: 2px 5px;
        bottom: 5px;
        left: 5px;
    }
}