/**
 * Purchase V2 - Satın Alma Sistemi Stilleri
 */

/* Satıldı badge - SOL ÜST KÖŞE (görseldeki gibi) */
.sold-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    pointer-events: none;
}

/* AdvertBox-Main için relative position - badge için */
.AdvertBox-Main {
    position: relative;
}

/* Ürün detay sayfası için daha büyük badge */
.buy-box .sold-badge {
    top: 10px;
    left: 10px;
    padding: 6px 16px;
    font-size: 14px;
}

/* Buy box için relative position */
.buy-box {
    position: relative;
}

/* ilan-image-wrapper için boyut kontrolü */
.ilan-image-wrapper {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

/* Satılmış ürün kartı */
.product-sold {
    opacity: 0.7;
    position: relative;
}

.product-sold::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

/* Satıldı butonu */
.btn-secondary.direct-buy-btn[disabled] {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-secondary.direct-buy-btn[disabled]:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sold-badge {
        font-size: 12px;
        padding: 4px 10px;
        top: 5px;
        left: 5px;
    }
}
