/* ==========================================================================
   Similar Varieties — вкладка «Аналоги»
   ========================================================================== */

.sv-tab {
    padding: 20px 0 12px;
}

.sv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Карточка — вертикальная: фото сверху, название снизу */
.sv-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e4e4e4;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.sv-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11);
    transform: translateY(-3px);
    border-color: #b5d48a;
    text-decoration: none;
    color: inherit;
}

/* Фото — фиксированная высота, object-fit заполняет */
.sv-card__img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f2f7ed;
    flex-shrink: 0;
	max-width: 100%;
}

.sv-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
	    max-width: 100% !important;
}

.sv-card:hover .sv-card__img img {
    transform: scale(1.05);
}

.sv-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5d48a;
    font-size: 40px;
}

/* Название */
.sv-card__title {
    padding: 10px 14px 12px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	text-align: center;
}

.sv-card:hover .sv-card__title {
    color: #3d7a12;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 768px) {
    .sv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .sv-card__img {
        height: 140px;
    }
    .sv-card__title {
        font-size: 14px;
        padding: 8px 12px 10px;
    }
}

@media (max-width: 480px) {
    .sv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .sv-card__img {
        height: 110px;
    }
    .sv-card__title {
        font-size: 13px;
        padding: 6px 10px 8px;
    }
}
