/* Sosyal kanıt — kategori satırı sağında, net ve dikkat çekici */

.sp-inline {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 1.7em;
    text-align: right;
    overflow: hidden;
}

.sp-inline__item {
    position: absolute;
    right: 0;
    top: 50%;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    max-width: 100%;
    margin-top: 0;
    padding: 3px 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(calc(-50% + 10px));
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.sp-inline__item.is-active {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
}

.sp-inline__item i {
    flex-shrink: 0;
    font-size: 16px;
    color: #059669;
}

.sp-inline__item strong {
    font-weight: 800;
    font-size: 1.05em;
    color: var(--accent, #2563eb);
    font-variant-numeric: tabular-nums;
}

.sp-product__dot {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
    animation: sp-pulse 1.8s ease-out infinite;
}

@keyframes sp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Sol alt sipariş toast */
.sp-toast-host {
    position: fixed;
    left: 14px;
    bottom: 18px;
    z-index: 99990;
    pointer-events: none;
    max-width: min(300px, calc(100vw - 28px));
}

.sp-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.sp-toast.is-in {
    opacity: 1;
    transform: translateY(0);
}

.sp-toast.is-out {
    opacity: 0;
    transform: translateY(8px);
}

.sp-toast__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #059669;
    font-size: 15px;
}

.sp-toast__body {
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #374151;
}

.sp-toast__body strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-toast__meta {
    color: #9ca3af;
    font-size: 11px;
}

@media (max-width: 640px) {
    .sp-inline {
        height: 1.55em;
    }
    .sp-inline__item {
        font-size: 0.8rem;
        gap: 5px;
    }
    .sp-inline__item i {
        font-size: 14px;
    }
    .sp-product__dot {
        width: 7px;
        height: 7px;
    }
    .sp-toast-host {
        left: 10px;
        bottom: 78px;
        max-width: min(260px, calc(100vw - 88px));
    }
    .sp-toast {
        padding: 8px 10px;
        border-radius: 10px;
    }
    .sp-toast__icon {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }
    .sp-toast__body,
    .sp-toast__body strong {
        font-size: 11.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-product__dot { animation: none; }
    .sp-inline__item { transition: none; }
    .sp-toast { transition: none; }
}
