/* Ekipart Class - ürün sayfası / mağaza görselleri
   Genişlik ve boşluk değerleri ayarlardan inline olarak eklenir. */

.sabit-gorseller {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.sabit-gorseller img {
    height: auto;
    display: block;
}

.sabit-gorseller .sg-link {
    display: inline-block;
    line-height: 0;
}

.sabit-gorseller--archive {
    margin-top: 6px;
    justify-content: center;
}

/* --- Rozet sarmalayıcı + tooltip --- */

.sg-badge {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.sg-badge[data-sg-tip]:hover::after {
    content: attr(data-sg-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: rgba(30, 30, 30, .95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    width: max-content;
    max-width: 220px;
    text-align: center;
    z-index: 999;
    pointer-events: none;
}

.sg-badge[data-sg-tip]:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 3px;
    border: 5px solid transparent;
    border-top-color: rgba(30, 30, 30, .95);
    z-index: 999;
    pointer-events: none;
}

/* --- Rozet modu (ürün görseli üzerinde) --- */

.woocommerce-product-gallery,
ul.products li.product {
    position: relative;
}

.sg-overlay {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none; /* galeri tıklamalarını engellemesin */
}

.sg-overlay .sg-badge {
    pointer-events: auto; /* rozetin kendisi tıklanabilir/hover edilebilir kalsın */
}

.sg-overlay img {
    height: auto;
    display: block;
}

.sg-overlay--top-left     { top: 8px;    left: 8px; }
.sg-overlay--top-right    { top: 8px;    right: 8px;   align-items: flex-end; }
.sg-overlay--bottom-left  { bottom: 8px; left: 8px; }
.sg-overlay--bottom-right { bottom: 8px; right: 8px;   align-items: flex-end; }
