/**
 * Ürün Etiketleri - Tema Uyumlu Küçük Rozetler
 * --------------------------------
 */

/* Rozetler container */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: row;
    /* Yan yana gösterim */
    flex-wrap: wrap;
    /* Sığmazsa alt satıra geç */
    gap: 5px;
    max-width: calc(100% - 20px);
}

/* Temel rozet stili - site temasına uyumlu */
.product-badges > span:not(.product-badge-dynamic) {
    position: static !important;
    /* shop.css'deki absolute positioning'i ez */
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.product-badges > span.product-badge-dynamic {
    position: static !important;
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* Yeni rozeti - yeşil */
.badge-new {
    background: #28a745;
    color: #fff;
}

/* Gelecek Ürün rozeti - mavi */
.badge-upcoming {
    background: #007bff;
    color: #fff;
}

/* Stok azalıyor rozeti - turuncu */
.badge-low-stock {
    background: #ffc107;
    color: #000;
}

/* Tükendi rozeti - üstte gösterilmesin, sadece overlay yeterli */
.badge-sold-out {
    display: none !important;
}

/* İndirim rozeti - kırmızı */
.discount-product {
    background: #ff0000 !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 2px !important;
}

/* Tükendi Overlay - resim daha net görünsün */
.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Çok hafif karartma */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    border-radius: 5px;
}

.sold-out-overlay span {
    background: rgba(52, 58, 64, 0.95);
    /* Koyu gri, tükenmişliği temsil eden */
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 4px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transform: rotate(-10deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Tükendi ürün kartında resim efektlerini devre dışı bırak */
.product-sold-out .inner-box:hover .image-box .image img {
    opacity: 1 !important;
    transform: none !important;
}

/* Tükendi ürün kartı stilleri */
.product-sold-out .cart-btn button,
.product-sold-out .theme-btn {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Shop block image container pozisyonlama */
.shop-block-one .image-box,
.shop-block-three .image-box {
    position: relative;
}

/* Liste görünümünde overlay için */
.shop-block-three .image-box figure {
    position: relative;
}
