/* Proactive Recommendations Design */
.rai-pet-reco-section {
    margin: 40px 0;
    padding: 20px;
    background: #fdfdfd;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.rai-reco-header h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.rai-reco-explanation {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}

.rai-reco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

/* BuddyBoss inspired Card Style */
.rai-product-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rai-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.rai-product-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    flex-grow: 1;
}

.rai-product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f9f9f9;
}

.rai-product-info {
    padding: 15px;
    text-align: center;
}

.rai-product-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    min-height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rai-product-price {
    font-size: 18px;
    color: #ff6b6b;
    font-weight: 700;
}

.rai-product-actions {
    padding: 15px;
    padding-top: 0;
}

.rai-add-to-cart-btn {
    width: 100%;
    background: #333 !important;
    color: #fff !important;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.rai-add-to-cart-btn:hover {
    background: #555 !important;
}

/* Success Message */
.rai-reco-success {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@media (max-width: 600px) {
    .rai-reco-grid {
        grid-template-columns: 1fr;
    }
}