.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.trending-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trending-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trending-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.trending-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f8f8;
    padding: 10px;
}

.trending-card-content {
    padding: 15px;
}

.trending-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 5px;
}

.merchant {
    color: #666;
    font-size: 14px;
}

.loading {
    display: none;
    margin: 20px 0;
    text-align: center;
    color: #666;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007BFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    color: #dc3545;
    text-align: center;
    padding: 20px;
    display: none;
}

@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
} 