﻿/* ——— sade, modern görünüm ——— */
.ko-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ko-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ko-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .ko-title h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
    }

.ko-sub {
    color: #6b7280;
    font-size: 14px;
}

.ko-count {
    background: #eef2ff;
    color: #4338ca;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.ko-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ko-select {
    min-width: 280px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.ko-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
}

    .ko-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.ko-btn-ghost {
    background: #fff;
    border-color: #e5e7eb;
}

    .ko-btn-ghost:hover {
        background: #f9fafb;
    }

.ko-btn-primary {
    background: #4f46e5;
    color: #fff;
}

    .ko-btn-primary:hover {
        background: #4338ca;
    }

.ko-empty {
    padding: 32px;
    background: #fafafa;
    border: 1px dashed #e5e7eb;
    border-radius: 16px;
    color: #6b7280;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.ko-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.ko-card {
    position: relative;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: transform .12s ease, box-shadow .12s ease;
}

    .ko-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
    }

.ko-grip {
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 16px;
    color: #94a3b8;
    user-select: none;
}

.ko-badge {
    position: absolute;
    right: 8px;
    top: 8px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 999px;
}

.ko-img {
    aspect-ratio: 4/3;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .ko-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ko-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ko-name {
    font-weight: 600;
    line-height: 1.2;
    height: 40px;
    overflow: hidden;
}

.ko-meta {
    color: #6b7280;
    font-size: 12px;
}

.ko-price {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

    .ko-price .old {
        text-decoration: line-through;
        color: #9ca3af;
        font-size: 12px;
    }

    .ko-price .new {
        color: #111827;
        font-weight: 700;
    }

.ko-link {
    position: absolute;
    right: 10px;
    bottom: 10px;
    color: #4f46e5;
    background: #eef2ff;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ko-link:hover {
        background: #e0e7ff;
    }

.ko-skel .ko-img {
    background: linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 50%,#f3f4f6 75%);
    background-size: 400% 100%;
    animation: sh 1.2s ease-in-out infinite;
}

.ko-line {
    height: 10px;
    background: #f3f4f6;
    border-radius: 6px;
    margin-top: 6px;
}

    .ko-line.w60 {
        width: 60%;
    }

    .ko-line.w40 {
        width: 40%;
    }

@keyframes sh {
    0% {
        background-position: 100% 0
    }

    100% {
        background-position: 0 0
    }
}
