/* Kıyaslama kartları — liste ve benzer bölümler (2–4 moto) */

.sbk-related-kiyas {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.65rem 0.75rem 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    height: 100%;
    outline: none;
}

.sbk-related-kiyas:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.1);
    color: inherit;
    text-decoration: none;
}

.sbk-related-kiyas:focus-visible {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Görsel alan: badge burada, görseller düzenli grid */
.sbk-related-kiyas__thumb-wrap {
    position: relative;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 0.45rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.sbk-related-kiyas__thumbs {
    display: grid;
    gap: 0.35rem;
    align-items: stretch;
}

.sbk-related-kiyas--n2 .sbk-related-kiyas__thumbs {
    grid-template-columns: repeat(2, 1fr);
}

.sbk-related-kiyas--n3 .sbk-related-kiyas__thumbs {
    grid-template-columns: repeat(3, 1fr);
}

.sbk-related-kiyas--n4 .sbk-related-kiyas__thumbs {
    grid-template-columns: repeat(2, 1fr);
}

.sbk-related-kiyas__cell {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    max-height: 88px;
}

.sbk-related-kiyas__cell img {
    width: 100%;
    height: 100%;
    max-height: 88px;
    object-fit: contain;
}

.sbk-related-kiyas__badge {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #4338ca;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e0e7ff;
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.sbk-related-kiyas__title {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    color: #475569;
    text-align: left;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
}

/* Ana liste grid */
.sbk-kiyasla-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
}

.sbk-kiyasla-grid__cell {
    min-width: 0;
}

.sbk-kiyasla-grid .benzer-ilanlar-container {
    grid-column: 1 / -1;
}

@media (max-width: 991px) {
    .sbk-kiyasla-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.sbk-kiyasla-grid .sbk-related-kiyas__cell {
    min-height: 82px;
    max-height: 96px;
}

.sbk-kiyasla-grid .sbk-related-kiyas__cell img {
    max-height: 96px;
}

.sbk-kiyasla-grid .sbk-related-kiyas__title {
    font-size: 0.875rem;
}

/* Benzer bölüm: daha kompakt */
.sbk-benzer-kiyas-section .sbk-related-kiyas__cell {
    min-height: 52px;
    max-height: 58px;
}

.sbk-benzer-kiyas-section .sbk-related-kiyas__cell img {
    max-height: 58px;
}

.sbk-benzer-kiyas-section .sbk-related-kiyas__thumb-wrap {
    padding: 0.35rem;
}

.sbk-benzer-kiyas-section .sbk-related-kiyas {
    padding: 0.55rem 0.65rem 0.65rem;
}

/* Keşif çubuğu */
.sbk-kiyas-discover {
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    max-width: 680px;
}

.sbk-kiyas-discover__lead {
    margin: 0 0 0.9rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.45;
}

.sbk-kiyas-discover__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.sbk-kiyas-discover__row:first-of-type {
    margin-top: 0;
}

.sbk-kiyas-discover__row + .sbk-kiyas-discover__row {
    margin-top: 0.65rem;
}

.sbk-kiyas-discover__label {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    min-width: 4rem;
}

.sbk-kiyas-discover__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sbk-kiyas-discover__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sbk-kiyas-discover__chip:hover {
    border-color: #a5b4fc;
    color: #312e81;
    background: #eef2ff;
    text-decoration: none;
}

.sbk-kiyas-discover__chip.is-active {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.sbk-kiyas-discover__chip.is-active:hover {
    color: #fff;
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

/* Boş liste */
.sbk-kiyas-empty {
    text-align: center;
    padding: 2rem 1.25rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.sbk-kiyas-empty__text {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.sbk-kiyas-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #4f46e5;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.sbk-kiyas-empty__btn:hover {
    background: #4338ca;
    color: #fff;
    text-decoration: none;
}
