@import 'variables.css';

.product-suitable {
    /*background-color: #F8F9FA;*/
    padding: var(--spacing-xl);
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-suitable__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.product-suitable__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-suitable__text {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.product-suitable__text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-suitable__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    padding: var(--spacing-sm) 0;
    transition: color 0.3s ease;
}

.product-suitable__toggle:hover {
    color: #1d4d36;
}

.product-suitable__toggle-icon {
    transition: transform 0.3s ease;
}

.product-suitable__toggle.expanded .product-suitable__toggle-icon {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .product-suitable {
        padding: var(--spacing-lg);
    }

    .product-suitable__title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-lg);
    }

    .product-suitable__text {
        font-size: var(--font-size-sm);
    }
}
